diff --git a/CHANGELOG.md b/CHANGELOG.md index 680bfca35..0aa126eae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +# 0.10.3 +* Regenerate APIs +* Enable additional API: + * `acceleratedmobilepageurl:v1`` + * `appengine:v1` + * `clouderrorreporting:v1beta1` + * `cloudfunctions:v1` + * `firebasedynamiclinks:v1` + * `firebaserules:v1` + * `language:v1` + * `logging:v2` + * `ml:v1` + * `runtimeconfig:v1` + * `searchconsole:v1` + * `servicecontrol:v1` + * `servicemanagement:v1` + * `serviceuser:v1` + * `sourcerepo:v1` + * `spanner:v1` + * `surveys:v2` + * `tagmanager:v2` + * `toolresults:v1beta3` + * `tracing:v1` + * `webfonts:v1` + # 0.10.2 * Regenerate APIs diff --git a/api_names.yaml b/api_names.yaml index 2c4da93a6..b3376dabb 100644 --- a/api_names.yaml +++ b/api_names.yaml @@ -1429,7 +1429,7 @@ "/resourceviews:v1beta2/ZoneViewsRemoveResourcesRequest": remove_resources_request "/resourceviews:v1beta2/ZoneViewsSetServiceRequest": set_service_request "/script:v1/ExecutionResponse/status": status -"/servicemanagement:v1/servicemanagement.services.getConfig": get_service_configuration" +"/servicemanagement:v1/servicemanagement.services.getConfig": get_service_configuration "/sheets:v4/sheets.spreadsheets.sheets.copyTo": copy_spreadsheet "/sheets:v4/sheets.spreadsheets.values.batchGet": batch_get_spreadsheet_values "/sheets:v4/sheets.spreadsheets.values.get": get_spreadsheet_values diff --git a/api_names_out.yaml b/api_names_out.yaml index 5dcd3776d..5e7f7d022 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -1430,7 +1430,7 @@ "/resourceviews:v1beta2/ZoneViewsRemoveResourcesRequest": remove_resources_request "/resourceviews:v1beta2/ZoneViewsSetServiceRequest": set_service_request "/script:v1/ExecutionResponse/status": status -"/servicemanagement:v1/servicemanagement.services.getConfig": get_service_configuration" +"/servicemanagement:v1/servicemanagement.services.getConfig": get_service_configuration "/sheets:v4/sheets.spreadsheets.sheets.copyTo": copy_spreadsheet "/sheets:v4/sheets.spreadsheets.values.batchGet": batch_get_spreadsheet_values "/sheets:v4/sheets.spreadsheets.values.get": get_spreadsheet_values @@ -5731,25 +5731,51 @@ "/mybusiness:v3/AttributeValueMetadata": attribute_value_metadata "/mybusiness:v3/AttributeValueMetadata/value": value "/mybusiness:v3/AttributeValueMetadata/displayName": display_name +"/monitoring:v3/key": key "/monitoring:v3/quotaUser": quota_user "/monitoring:v3/fields": fields -"/monitoring:v3/key": key +"/monitoring:v3/monitoring.projects.timeSeries.list": list_project_time_series +"/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.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.create": create_time_series +"/monitoring:v3/monitoring.projects.timeSeries.create/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.metricDescriptors.delete": delete_project_metric_descriptor +"/monitoring:v3/monitoring.projects.metricDescriptors.delete/name": name "/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list": list_project_monitored_resource_descriptors +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/pageSize": page_size "/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/filter": filter "/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.get": get_project_monitored_resource_descriptor "/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.get/name": name "/monitoring:v3/monitoring.projects.groups.delete": delete_project_group "/monitoring:v3/monitoring.projects.groups.delete/name": name "/monitoring:v3/monitoring.projects.groups.list": list_project_groups -"/monitoring:v3/monitoring.projects.groups.list/descendantsOfGroup": descendants_of_group -"/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.list/pageToken": page_token "/monitoring:v3/monitoring.projects.groups.get": get_project_group "/monitoring:v3/monitoring.projects.groups.get/name": name "/monitoring:v3/monitoring.projects.groups.update": update_project_group @@ -5759,140 +5785,14 @@ "/monitoring:v3/monitoring.projects.groups.create/name": name "/monitoring:v3/monitoring.projects.groups.create/validateOnly": validate_only "/monitoring:v3/monitoring.projects.groups.members.list": list_project_group_members +"/monitoring:v3/monitoring.projects.groups.members.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.groups.members.list/interval.startTime": interval_start_time "/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/pageSize": page_size -"/monitoring:v3/monitoring.projects.groups.members.list/interval.startTime": interval_start_time "/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/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.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.create": create_time_series -"/monitoring:v3/monitoring.projects.timeSeries.create/name": name -"/monitoring:v3/monitoring.projects.metricDescriptors.list": list_project_metric_descriptors -"/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.list/filter": filter -"/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.metricDescriptors.delete": delete_project_metric_descriptor -"/monitoring:v3/monitoring.projects.metricDescriptors.delete/name": name -"/monitoring:v3/CollectdPayload": collectd_payload -"/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/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/Linear": linear -"/monitoring:v3/Linear/width": width -"/monitoring:v3/Linear/offset": offset -"/monitoring:v3/Linear/numFiniteBuckets": num_finite_buckets -"/monitoring:v3/Option": option -"/monitoring:v3/Option/name": name -"/monitoring:v3/Option/value": value -"/monitoring:v3/Option/value/value": value -"/monitoring:v3/Empty": empty -"/monitoring:v3/Explicit": explicit -"/monitoring:v3/Explicit/bounds": bounds -"/monitoring:v3/Explicit/bounds/bound": bound -"/monitoring:v3/TimeInterval": time_interval -"/monitoring:v3/TimeInterval/endTime": end_time -"/monitoring:v3/TimeInterval/startTime": start_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/Point": point -"/monitoring:v3/Point/value": value -"/monitoring:v3/Point/interval": interval -"/monitoring:v3/Metric": metric -"/monitoring:v3/Metric/type": type -"/monitoring:v3/Metric/labels": labels -"/monitoring:v3/Metric/labels/label": label -"/monitoring:v3/Field": field -"/monitoring:v3/Field/options": options -"/monitoring:v3/Field/options/option": option -"/monitoring:v3/Field/oneofIndex": oneof_index -"/monitoring:v3/Field/cardinality": cardinality -"/monitoring:v3/Field/packed": packed -"/monitoring:v3/Field/defaultValue": default_value -"/monitoring:v3/Field/name": name -"/monitoring:v3/Field/typeUrl": type_url -"/monitoring:v3/Field/number": number -"/monitoring:v3/Field/kind": kind -"/monitoring:v3/Field/jsonName": json_name -"/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/LabelDescriptor": label_descriptor -"/monitoring:v3/LabelDescriptor/description": description -"/monitoring:v3/LabelDescriptor/valueType": value_type -"/monitoring:v3/LabelDescriptor/key": key -"/monitoring:v3/Group": group -"/monitoring:v3/Group/filter": filter -"/monitoring:v3/Group/name": name -"/monitoring:v3/Group/parentName": parent_name -"/monitoring:v3/Group/displayName": display_name -"/monitoring:v3/Group/isCluster": is_cluster -"/monitoring:v3/Type": type -"/monitoring:v3/Type/options": options -"/monitoring:v3/Type/options/option": option -"/monitoring:v3/Type/fields": fields -"/monitoring:v3/Type/fields/field": field -"/monitoring:v3/Type/name": name -"/monitoring:v3/Type/oneofs": oneofs -"/monitoring:v3/Type/oneofs/oneof": oneof -"/monitoring:v3/Type/sourceContext": source_context -"/monitoring:v3/Type/syntax": syntax -"/monitoring:v3/BucketOptions": bucket_options -"/monitoring:v3/BucketOptions/linearBuckets": linear_buckets -"/monitoring:v3/BucketOptions/explicitBuckets": explicit_buckets -"/monitoring:v3/BucketOptions/exponentialBuckets": exponential_buckets -"/monitoring:v3/CollectdValue": collectd_value -"/monitoring:v3/CollectdValue/value": value -"/monitoring:v3/CollectdValue/dataSourceType": data_source_type -"/monitoring:v3/CollectdValue/dataSourceName": data_source_name -"/monitoring:v3/MetricDescriptor": metric_descriptor -"/monitoring:v3/MetricDescriptor/unit": unit -"/monitoring:v3/MetricDescriptor/labels": labels -"/monitoring:v3/MetricDescriptor/labels/label": label -"/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/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/CreateCollectdTimeSeriesRequest": create_collectd_time_series_request "/monitoring:v3/CreateCollectdTimeSeriesRequest/resource": resource "/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads": collectd_payloads @@ -5904,52 +5804,161 @@ "/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/ListMonitoredResourceDescriptorsResponse/nextPageToken": next_page_token "/monitoring:v3/TimeSeries": time_series +"/monitoring:v3/TimeSeries/resource": resource "/monitoring:v3/TimeSeries/metricKind": metric_kind "/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/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/Distribution/bucketCounts": bucket_counts +"/monitoring:v3/Distribution/bucketCounts/bucket_count": bucket_count +"/monitoring:v3/Distribution/bucketOptions": bucket_options "/monitoring:v3/MonitoredResource": monitored_resource +"/monitoring:v3/MonitoredResource/type": type "/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/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/type": type "/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/boolValue": bool_value +"/monitoring:v3/TypedValue/stringValue": string_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/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/offset": offset +"/monitoring:v3/Linear/numFiniteBuckets": num_finite_buckets +"/monitoring:v3/Linear/width": width +"/monitoring:v3/Empty": empty +"/monitoring:v3/Option": option +"/monitoring:v3/Option/name": name +"/monitoring:v3/Option/value": value +"/monitoring:v3/Option/value/value": value +"/monitoring:v3/Explicit": explicit +"/monitoring:v3/Explicit/bounds": bounds +"/monitoring:v3/Explicit/bounds/bound": bound +"/monitoring:v3/TimeInterval": time_interval +"/monitoring:v3/TimeInterval/endTime": end_time +"/monitoring:v3/TimeInterval/startTime": start_time +"/monitoring:v3/Exponential": exponential +"/monitoring:v3/Exponential/numFiniteBuckets": num_finite_buckets +"/monitoring:v3/Exponential/growthFactor": growth_factor +"/monitoring:v3/Exponential/scale": scale +"/monitoring:v3/Point": point +"/monitoring:v3/Point/value": value +"/monitoring:v3/Point/interval": interval +"/monitoring:v3/Field": field +"/monitoring:v3/Field/defaultValue": default_value +"/monitoring:v3/Field/name": name +"/monitoring:v3/Field/typeUrl": type_url +"/monitoring:v3/Field/number": number +"/monitoring:v3/Field/jsonName": json_name +"/monitoring:v3/Field/kind": kind +"/monitoring:v3/Field/options": options +"/monitoring:v3/Field/options/option": option +"/monitoring:v3/Field/oneofIndex": oneof_index +"/monitoring:v3/Field/cardinality": cardinality +"/monitoring:v3/Field/packed": packed +"/monitoring:v3/Metric": metric +"/monitoring:v3/Metric/type": type +"/monitoring:v3/Metric/labels": labels +"/monitoring:v3/Metric/labels/label": label +"/monitoring:v3/LabelDescriptor": label_descriptor +"/monitoring:v3/LabelDescriptor/key": key +"/monitoring:v3/LabelDescriptor/description": description +"/monitoring:v3/LabelDescriptor/valueType": value_type +"/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/filter": filter +"/monitoring:v3/Group/name": name +"/monitoring:v3/Group/parentName": parent_name +"/monitoring:v3/Group/displayName": display_name +"/monitoring:v3/Group/isCluster": is_cluster +"/monitoring:v3/Type": type +"/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/options": options +"/monitoring:v3/Type/options/option": option +"/monitoring:v3/Type/fields": fields +"/monitoring:v3/Type/fields/field": field +"/monitoring:v3/Type/name": name +"/monitoring:v3/BucketOptions": bucket_options +"/monitoring:v3/BucketOptions/linearBuckets": linear_buckets +"/monitoring:v3/BucketOptions/explicitBuckets": explicit_buckets +"/monitoring:v3/BucketOptions/exponentialBuckets": exponential_buckets +"/monitoring:v3/CollectdValue": collectd_value +"/monitoring:v3/CollectdValue/value": value +"/monitoring:v3/CollectdValue/dataSourceType": data_source_type +"/monitoring:v3/CollectdValue/dataSourceName": data_source_name +"/monitoring:v3/SourceContext": source_context +"/monitoring:v3/SourceContext/fileName": file_name +"/monitoring:v3/MetricDescriptor": metric_descriptor +"/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/MetricDescriptor/name": name +"/monitoring:v3/Range": range +"/monitoring:v3/Range/min": min +"/monitoring:v3/Range/max": max +"/monitoring:v3/ListGroupsResponse": list_groups_response +"/monitoring:v3/ListGroupsResponse/nextPageToken": next_page_token +"/monitoring:v3/ListGroupsResponse/group": group +"/monitoring:v3/ListGroupsResponse/group/group": group "/acceleratedmobilepageurl:v1/fields": fields "/acceleratedmobilepageurl:v1/key": key "/acceleratedmobilepageurl:v1/quotaUser": quota_user "/acceleratedmobilepageurl:v1/acceleratedmobilepageurl.ampUrls.batchGet": batch_get_amp_urls +"/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/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/errorMessage": error_message "/acceleratedmobilepageurl:v1/AmpUrlError/errorCode": error_code @@ -5958,15 +5967,6 @@ "/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest/urls": urls "/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest/urls/url": url "/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest/lookupStrategy": lookup_strategy -"/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/AmpUrl": amp_url -"/acceleratedmobilepageurl:v1/AmpUrl/originalUrl": original_url -"/acceleratedmobilepageurl:v1/AmpUrl/ampUrl": amp_url -"/acceleratedmobilepageurl:v1/AmpUrl/cdnAmpUrl": cdn_amp_url "/adexchangebuyer:v1.4/fields": fields "/adexchangebuyer:v1.4/key": key "/adexchangebuyer:v1.4/quotaUser": quota_user @@ -6603,9 +6603,41 @@ "/adexchangebuyer:v1.4/UpdatePrivateAuctionProposalRequest/note": note "/adexchangebuyer:v1.4/UpdatePrivateAuctionProposalRequest/proposalRevisionNumber": proposal_revision_number "/adexchangebuyer:v1.4/UpdatePrivateAuctionProposalRequest/updateAction": update_action +"/adexchangebuyer2:v2beta1/quotaUser": quota_user "/adexchangebuyer2:v2beta1/fields": fields "/adexchangebuyer2:v2beta1/key": key -"/adexchangebuyer2:v2beta1/quotaUser": quota_user +"/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.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.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.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.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/creativeId": creative_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.remove/accountId": account_id +"/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/query": query +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.list/creativeId": creative_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 @@ -6618,18 +6650,6 @@ "/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/accountId": account_id -"/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.list": list_account_client_invitations -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/pageToken": page_token -"/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.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/pageToken": page_token "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list/accountId": account_id @@ -6643,124 +6663,28 @@ "/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/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.create/duplicateIdMode": duplicate_id_mode -"/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.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.watch": watch_creative -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.watch/creativeId": creative_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.watch/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.update": update_account_creative -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.update/creativeId": creative_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.update/accountId": account_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.creatives.dealAssociations.add": add_deal_association -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.add/creativeId": creative_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.add/accountId": account_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.list": list_account_creative_deal_associations -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.list/creativeId": creative_id -"/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/query": query -"/adexchangebuyer2:v2beta1/Empty": empty -"/adexchangebuyer2:v2beta1/WatchCreativeRequest": watch_creative_request -"/adexchangebuyer2:v2beta1/WatchCreativeRequest/topic": topic -"/adexchangebuyer2:v2beta1/AppContext": app_context -"/adexchangebuyer2:v2beta1/AppContext/appTypes": app_types -"/adexchangebuyer2:v2beta1/AppContext/appTypes/app_type": app_type -"/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/storeUrl": store_url -"/adexchangebuyer2:v2beta1/NativeContent/headline": headline -"/adexchangebuyer2:v2beta1/NativeContent/appIcon": app_icon -"/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/priceDisplayText": price_display_text -"/adexchangebuyer2:v2beta1/NativeContent/clickTrackingUrl": click_tracking_url -"/adexchangebuyer2:v2beta1/NativeContent/image": image -"/adexchangebuyer2:v2beta1/NativeContent/advertiserName": advertiser_name -"/adexchangebuyer2:v2beta1/SecurityContext": security_context -"/adexchangebuyer2:v2beta1/SecurityContext/securities": securities -"/adexchangebuyer2:v2beta1/SecurityContext/securities/security": security -"/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/width": width -"/adexchangebuyer2:v2beta1/HtmlContent/snippet": snippet -"/adexchangebuyer2:v2beta1/HtmlContent/height": height -"/adexchangebuyer2:v2beta1/ServingContext": serving_context -"/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/Image": image -"/adexchangebuyer2:v2beta1/Image/width": width -"/adexchangebuyer2:v2beta1/Image/url": url -"/adexchangebuyer2:v2beta1/Image/height": height -"/adexchangebuyer2:v2beta1/Reason": reason -"/adexchangebuyer2:v2beta1/Reason/count": count -"/adexchangebuyer2:v2beta1/Reason/status": status -"/adexchangebuyer2:v2beta1/VideoContent": video_content -"/adexchangebuyer2:v2beta1/VideoContent/videoUrl": video_url -"/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/AuctionContext": auction_context -"/adexchangebuyer2:v2beta1/AuctionContext/auctionTypes": auction_types -"/adexchangebuyer2:v2beta1/AuctionContext/auctionTypes/auction_type": auction_type -"/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/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/LocationContext": location_context -"/adexchangebuyer2:v2beta1/LocationContext/geoCriteriaIds": geo_criteria_ids -"/adexchangebuyer2:v2beta1/LocationContext/geoCriteriaIds/geo_criteria_id": geo_criteria_id -"/adexchangebuyer2:v2beta1/PlatformContext": platform_context -"/adexchangebuyer2:v2beta1/PlatformContext/platforms": platforms -"/adexchangebuyer2:v2beta1/PlatformContext/platforms/platform": platform -"/adexchangebuyer2:v2beta1/ClientUser": client_user -"/adexchangebuyer2:v2beta1/ClientUser/userId": user_id -"/adexchangebuyer2:v2beta1/ClientUser/email": email -"/adexchangebuyer2:v2beta1/ClientUser/clientAccountId": client_account_id -"/adexchangebuyer2:v2beta1/ClientUser/status": status +"/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.invitations.get": get_account_client_invitation +"/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.get/invitationId": invitation_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list": list_account_client_invitations +"/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.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/pageSize": page_size "/adexchangebuyer2:v2beta1/CreativeDealAssociation": creative_deal_association +"/adexchangebuyer2:v2beta1/CreativeDealAssociation/dealsId": deals_id "/adexchangebuyer2:v2beta1/CreativeDealAssociation/accountId": account_id "/adexchangebuyer2:v2beta1/CreativeDealAssociation/creativeId": creative_id -"/adexchangebuyer2:v2beta1/CreativeDealAssociation/dealsId": deals_id -"/adexchangebuyer2:v2beta1/FilteringStats": filtering_stats -"/adexchangebuyer2:v2beta1/FilteringStats/date": date -"/adexchangebuyer2:v2beta1/FilteringStats/reasons": reasons -"/adexchangebuyer2:v2beta1/FilteringStats/reasons/reason": reason "/adexchangebuyer2:v2beta1/Creative": creative +"/adexchangebuyer2:v2beta1/Creative/accountId": account_id +"/adexchangebuyer2:v2beta1/Creative/native": native +"/adexchangebuyer2:v2beta1/Creative/servingRestrictions": serving_restrictions +"/adexchangebuyer2:v2beta1/Creative/servingRestrictions/serving_restriction": serving_restriction +"/adexchangebuyer2:v2beta1/Creative/video": video "/adexchangebuyer2:v2beta1/Creative/agencyId": agency_id "/adexchangebuyer2:v2beta1/Creative/clickThroughUrls": click_through_urls "/adexchangebuyer2:v2beta1/Creative/clickThroughUrls/click_through_url": click_through_url @@ -6793,39 +6717,38 @@ "/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 -"/adexchangebuyer2:v2beta1/Creative/video": video -"/adexchangebuyer2:v2beta1/Creative/servingRestrictions": serving_restrictions -"/adexchangebuyer2:v2beta1/Creative/servingRestrictions/serving_restriction": serving_restriction +"/adexchangebuyer2:v2beta1/FilteringStats": filtering_stats +"/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/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/contexts": contexts -"/adexchangebuyer2:v2beta1/Correction/contexts/context": context "/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/AddDealAssociationRequest": add_deal_association_request +"/adexchangebuyer2:v2beta1/AddDealAssociationRequest/association": association "/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/AddDealAssociationRequest": add_deal_association_request -"/adexchangebuyer2:v2beta1/AddDealAssociationRequest/association": association -"/adexchangebuyer2:v2beta1/StopWatchingCreativeRequest": stop_watching_creative_request "/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 @@ -6836,6 +6759,83 @@ "/adexchangebuyer2:v2beta1/Date/year": year "/adexchangebuyer2:v2beta1/Date/day": day "/adexchangebuyer2:v2beta1/Date/month": month +"/adexchangebuyer2:v2beta1/Empty": empty +"/adexchangebuyer2:v2beta1/WatchCreativeRequest": watch_creative_request +"/adexchangebuyer2:v2beta1/WatchCreativeRequest/topic": topic +"/adexchangebuyer2:v2beta1/AppContext": app_context +"/adexchangebuyer2:v2beta1/AppContext/appTypes": app_types +"/adexchangebuyer2:v2beta1/AppContext/appTypes/app_type": app_type +"/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/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/priceDisplayText": price_display_text +"/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/SecurityContext": security_context +"/adexchangebuyer2:v2beta1/SecurityContext/securities": securities +"/adexchangebuyer2:v2beta1/SecurityContext/securities/security": security +"/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/ServingContext": serving_context +"/adexchangebuyer2:v2beta1/ServingContext/appType": app_type +"/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/Image": image +"/adexchangebuyer2:v2beta1/Image/height": height +"/adexchangebuyer2:v2beta1/Image/width": width +"/adexchangebuyer2:v2beta1/Image/url": url +"/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/ClientUserInvitation": client_user_invitation +"/adexchangebuyer2:v2beta1/ClientUserInvitation/email": email +"/adexchangebuyer2:v2beta1/ClientUserInvitation/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/ClientUserInvitation/invitationId": invitation_id +"/adexchangebuyer2:v2beta1/AuctionContext": auction_context +"/adexchangebuyer2:v2beta1/AuctionContext/auctionTypes": auction_types +"/adexchangebuyer2:v2beta1/AuctionContext/auctionTypes/auction_type": auction_type +"/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/LocationContext": location_context +"/adexchangebuyer2:v2beta1/LocationContext/geoCriteriaIds": geo_criteria_ids +"/adexchangebuyer2:v2beta1/LocationContext/geoCriteriaIds/geo_criteria_id": geo_criteria_id +"/adexchangebuyer2:v2beta1/PlatformContext": platform_context +"/adexchangebuyer2:v2beta1/PlatformContext/platforms": platforms +"/adexchangebuyer2:v2beta1/PlatformContext/platforms/platform": platform +"/adexchangebuyer2:v2beta1/ClientUser": client_user +"/adexchangebuyer2:v2beta1/ClientUser/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/ClientUser/status": status +"/adexchangebuyer2:v2beta1/ClientUser/userId": user_id +"/adexchangebuyer2:v2beta1/ClientUser/email": email "/adexchangeseller:v2.0/fields": fields "/adexchangeseller:v2.0/key": key "/adexchangeseller:v2.0/quotaUser": quota_user @@ -9494,30 +9494,23 @@ "/analyticsreporting:v4/fields": fields "/analyticsreporting:v4/key": key "/analyticsreporting:v4/quotaUser": quota_user -"/analyticsreporting:v4/DynamicSegment": dynamic_segment -"/analyticsreporting:v4/DynamicSegment/sessionSegment": session_segment -"/analyticsreporting:v4/DynamicSegment/name": name -"/analyticsreporting:v4/DynamicSegment/userSegment": user_segment -"/analyticsreporting:v4/SimpleSegment": simple_segment -"/analyticsreporting:v4/SimpleSegment/orFiltersForSegment": or_filters_for_segment -"/analyticsreporting:v4/SimpleSegment/orFiltersForSegment/or_filters_for_segment": or_filters_for_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/dimensionFilter": dimension_filter "/analyticsreporting:v4/SegmentFilterClause/metricFilter": metric_filter "/analyticsreporting:v4/SegmentFilterClause/not": not -"/analyticsreporting:v4/SegmentFilterClause/dimensionFilter": dimension_filter "/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/Cohort": cohort +"/analyticsreporting:v4/Cohort/type": type "/analyticsreporting:v4/Cohort/name": name "/analyticsreporting:v4/Cohort/dateRange": date_range -"/analyticsreporting:v4/Cohort/type": type "/analyticsreporting:v4/MetricFilterClause": metric_filter_clause "/analyticsreporting:v4/MetricFilterClause/operator": operator "/analyticsreporting:v4/MetricFilterClause/filters": filters @@ -9526,10 +9519,10 @@ "/analyticsreporting:v4/OrFiltersForSegment/segmentFilterClauses": segment_filter_clauses "/analyticsreporting:v4/OrFiltersForSegment/segmentFilterClauses/segment_filter_clause": segment_filter_clause "/analyticsreporting:v4/MetricHeader": metric_header -"/analyticsreporting:v4/MetricHeader/pivotHeaders": pivot_headers -"/analyticsreporting:v4/MetricHeader/pivotHeaders/pivot_header": pivot_header "/analyticsreporting:v4/MetricHeader/metricHeaderEntries": metric_header_entries "/analyticsreporting:v4/MetricHeader/metricHeaderEntries/metric_header_entry": metric_header_entry +"/analyticsreporting:v4/MetricHeader/pivotHeaders": pivot_headers +"/analyticsreporting:v4/MetricHeader/pivotHeaders/pivot_header": pivot_header "/analyticsreporting:v4/DimensionFilterClause": dimension_filter_clause "/analyticsreporting:v4/DimensionFilterClause/operator": operator "/analyticsreporting:v4/DimensionFilterClause/filters": filters @@ -9542,11 +9535,11 @@ "/analyticsreporting:v4/SequenceSegment/segmentSequenceSteps": segment_sequence_steps "/analyticsreporting:v4/SequenceSegment/segmentSequenceSteps/segment_sequence_step": segment_sequence_step "/analyticsreporting:v4/SegmentMetricFilter": segment_metric_filter +"/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/SegmentMetricFilter/metricName": metric_name -"/analyticsreporting:v4/SegmentMetricFilter/scope": scope "/analyticsreporting:v4/DateRangeValues": date_range_values "/analyticsreporting:v4/DateRangeValues/values": values "/analyticsreporting:v4/DateRangeValues/values/value": value @@ -9560,6 +9553,7 @@ "/analyticsreporting:v4/GetReportsRequest/reportRequests": report_requests "/analyticsreporting:v4/GetReportsRequest/reportRequests/report_request": report_request "/analyticsreporting:v4/Pivot": pivot +"/analyticsreporting:v4/Pivot/startGroup": start_group "/analyticsreporting:v4/Pivot/metrics": metrics "/analyticsreporting:v4/Pivot/metrics/metric": metric "/analyticsreporting:v4/Pivot/dimensions": dimensions @@ -9567,7 +9561,6 @@ "/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/startGroup": start_group "/analyticsreporting:v4/PivotHeaderEntry": pivot_header_entry "/analyticsreporting:v4/PivotHeaderEntry/dimensionNames": dimension_names "/analyticsreporting:v4/PivotHeaderEntry/dimensionNames/dimension_name": dimension_name @@ -9582,9 +9575,16 @@ "/analyticsreporting:v4/SegmentDefinition/segmentFilters": segment_filters "/analyticsreporting:v4/SegmentDefinition/segmentFilters/segment_filter": segment_filter "/analyticsreporting:v4/MetricHeaderEntry": metric_header_entry -"/analyticsreporting:v4/MetricHeaderEntry/type": type "/analyticsreporting:v4/MetricHeaderEntry/name": name +"/analyticsreporting:v4/MetricHeaderEntry/type": type "/analyticsreporting:v4/ReportData": report_data +"/analyticsreporting:v4/ReportData/rowCount": row_count +"/analyticsreporting:v4/ReportData/rows": rows +"/analyticsreporting:v4/ReportData/rows/row": row +"/analyticsreporting:v4/ReportData/isDataGolden": is_data_golden +"/analyticsreporting:v4/ReportData/dataLastRefreshed": data_last_refreshed +"/analyticsreporting:v4/ReportData/maximums": maximums +"/analyticsreporting:v4/ReportData/maximums/maximum": maximum "/analyticsreporting:v4/ReportData/samplingSpaceSizes": sampling_space_sizes "/analyticsreporting:v4/ReportData/samplingSpaceSizes/sampling_space_size": sampling_space_size "/analyticsreporting:v4/ReportData/minimums": minimums @@ -9593,27 +9593,13 @@ "/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/rows": rows -"/analyticsreporting:v4/ReportData/rows/row": row -"/analyticsreporting:v4/ReportData/isDataGolden": is_data_golden -"/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/caseSensitive": case_sensitive "/analyticsreporting:v4/DimensionFilter/dimensionName": dimension_name "/analyticsreporting:v4/DimensionFilter/operator": operator "/analyticsreporting:v4/DimensionFilter/not": not "/analyticsreporting:v4/DimensionFilter/expressions": expressions "/analyticsreporting:v4/DimensionFilter/expressions/expression": expression -"/analyticsreporting:v4/Segment": segment -"/analyticsreporting:v4/Segment/dynamicSegment": dynamic_segment -"/analyticsreporting:v4/Segment/segmentId": segment_id -"/analyticsreporting:v4/OrderBy": order_by -"/analyticsreporting:v4/OrderBy/fieldName": field_name -"/analyticsreporting:v4/OrderBy/orderType": order_type -"/analyticsreporting:v4/OrderBy/sortOrder": sort_order +"/analyticsreporting:v4/DimensionFilter/caseSensitive": case_sensitive "/analyticsreporting:v4/SegmentDimensionFilter": segment_dimension_filter "/analyticsreporting:v4/SegmentDimensionFilter/minComparisonValue": min_comparison_value "/analyticsreporting:v4/SegmentDimensionFilter/maxComparisonValue": max_comparison_value @@ -9622,6 +9608,13 @@ "/analyticsreporting:v4/SegmentDimensionFilter/expressions": expressions "/analyticsreporting:v4/SegmentDimensionFilter/expressions/expression": expression "/analyticsreporting:v4/SegmentDimensionFilter/caseSensitive": case_sensitive +"/analyticsreporting:v4/OrderBy": order_by +"/analyticsreporting:v4/OrderBy/fieldName": field_name +"/analyticsreporting:v4/OrderBy/orderType": order_type +"/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 @@ -9634,9 +9627,9 @@ "/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 +"/analyticsreporting:v4/Report/columnHeader": column_header "/analyticsreporting:v4/PivotHeader": pivot_header "/analyticsreporting:v4/PivotHeader/pivotHeaderEntries": pivot_header_entries "/analyticsreporting:v4/PivotHeader/pivotHeaderEntries/pivot_header_entry": pivot_header_entry @@ -9650,16 +9643,14 @@ "/analyticsreporting:v4/MetricFilter/not": not "/analyticsreporting:v4/MetricFilter/metricName": metric_name "/analyticsreporting:v4/ReportRequest": report_request -"/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 -"/analyticsreporting:v4/ReportRequest/hideValueRanges": hide_value_ranges "/analyticsreporting:v4/ReportRequest/hideTotals": hide_totals -"/analyticsreporting:v4/ReportRequest/filtersExpression": filters_expression +"/analyticsreporting:v4/ReportRequest/hideValueRanges": hide_value_ranges "/analyticsreporting:v4/ReportRequest/cohortGroup": cohort_group +"/analyticsreporting:v4/ReportRequest/filtersExpression": filters_expression "/analyticsreporting:v4/ReportRequest/viewId": view_id "/analyticsreporting:v4/ReportRequest/metrics": metrics "/analyticsreporting:v4/ReportRequest/metrics/metric": metric @@ -9675,10 +9666,19 @@ "/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/Dimension": dimension "/analyticsreporting:v4/Dimension/histogramBuckets": histogram_buckets "/analyticsreporting:v4/Dimension/histogramBuckets/histogram_bucket": histogram_bucket "/analyticsreporting:v4/Dimension/name": name +"/analyticsreporting:v4/DynamicSegment": dynamic_segment +"/analyticsreporting:v4/DynamicSegment/name": name +"/analyticsreporting:v4/DynamicSegment/userSegment": user_segment +"/analyticsreporting:v4/DynamicSegment/sessionSegment": session_segment +"/analyticsreporting:v4/SimpleSegment": simple_segment +"/analyticsreporting:v4/SimpleSegment/orFiltersForSegment": or_filters_for_segment +"/analyticsreporting:v4/SimpleSegment/orFiltersForSegment/or_filters_for_segment": or_filters_for_segment "/androidenterprise:v1/fields": fields "/androidenterprise:v1/key": key "/androidenterprise:v1/quotaUser": quota_user @@ -13384,18 +13384,19 @@ "/cloudbuild:v1/fields": fields "/cloudbuild:v1/key": key "/cloudbuild:v1/quotaUser": quota_user -"/cloudbuild:v1/cloudbuild.operations.cancel": cancel_operation -"/cloudbuild:v1/cloudbuild.operations.cancel/name": name -"/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.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.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/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.list/pageToken": page_token +"/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/projectId": project_id +"/cloudbuild:v1/cloudbuild.projects.builds.cancel/id": 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 @@ -13406,30 +13407,71 @@ "/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.projects.builds.cancel": cancel_build -"/cloudbuild:v1/cloudbuild.projects.builds.cancel/projectId": project_id -"/cloudbuild:v1/cloudbuild.projects.builds.cancel/id": id -"/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/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.create": create_project_build -"/cloudbuild:v1/cloudbuild.projects.builds.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.operations.list": list_operations +"/cloudbuild:v1/cloudbuild.operations.list/pageSize": page_size +"/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.get": get_operation +"/cloudbuild:v1/cloudbuild.operations.get/name": name +"/cloudbuild:v1/cloudbuild.operations.cancel": cancel_operation +"/cloudbuild:v1/cloudbuild.operations.cancel/name": name +"/cloudbuild:v1/Empty": empty +"/cloudbuild:v1/BuildTrigger": build_trigger +"/cloudbuild:v1/BuildTrigger/disabled": disabled +"/cloudbuild:v1/BuildTrigger/createTime": create_time +"/cloudbuild:v1/BuildTrigger/triggerTemplate": trigger_template +"/cloudbuild:v1/BuildTrigger/filename": filename +"/cloudbuild:v1/BuildTrigger/id": id +"/cloudbuild:v1/BuildTrigger/build": build +"/cloudbuild:v1/BuildTrigger/substitutions": substitutions +"/cloudbuild:v1/BuildTrigger/substitutions/substitution": substitution +"/cloudbuild:v1/BuildTrigger/description": description +"/cloudbuild:v1/Build": build +"/cloudbuild:v1/Build/options": options +"/cloudbuild:v1/Build/source": source +"/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/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/sourceProvenance": source_provenance +"/cloudbuild:v1/Build/images": images +"/cloudbuild:v1/Build/images/image": image +"/cloudbuild:v1/Build/projectId": project_id +"/cloudbuild:v1/Build/finishTime": finish_time +"/cloudbuild:v1/Build/logUrl": log_url +"/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/repoSource": repo_source "/cloudbuild:v1/Source/storageSource": storage_source +"/cloudbuild:v1/Source/repoSource": repo_source "/cloudbuild:v1/BuildOptions": build_options "/cloudbuild:v1/BuildOptions/requestedVerifyOption": requested_verify_option "/cloudbuild:v1/BuildOptions/sourceProvenanceHash": source_provenance_hash "/cloudbuild:v1/BuildOptions/sourceProvenanceHash/source_provenance_hash": source_provenance_hash "/cloudbuild:v1/StorageSource": storage_source -"/cloudbuild:v1/StorageSource/generation": generation "/cloudbuild:v1/StorageSource/bucket": bucket "/cloudbuild:v1/StorageSource/object": object +"/cloudbuild:v1/StorageSource/generation": generation "/cloudbuild:v1/Results": results "/cloudbuild:v1/Results/buildStepImages": build_step_images "/cloudbuild:v1/Results/buildStepImages/build_step_image": build_step_image @@ -13443,20 +13485,26 @@ "/cloudbuild:v1/SourceProvenance/resolvedRepoSource": resolved_repo_source "/cloudbuild:v1/SourceProvenance/resolvedStorageSource": resolved_storage_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/Operation/done": done -"/cloudbuild:v1/ListBuildTriggersResponse": list_build_triggers_response -"/cloudbuild:v1/ListBuildTriggersResponse/triggers": triggers -"/cloudbuild:v1/ListBuildTriggersResponse/triggers/trigger": trigger "/cloudbuild:v1/BuiltImage": built_image -"/cloudbuild:v1/BuiltImage/digest": digest "/cloudbuild:v1/BuiltImage/name": name +"/cloudbuild:v1/BuiltImage/digest": digest +"/cloudbuild:v1/RepoSource": repo_source +"/cloudbuild:v1/RepoSource/projectId": project_id +"/cloudbuild:v1/RepoSource/repoName": repo_name +"/cloudbuild:v1/RepoSource/branchName": branch_name +"/cloudbuild:v1/RepoSource/tagName": tag_name +"/cloudbuild:v1/RepoSource/commitSha": commit_sha "/cloudbuild:v1/BuildStep": build_step "/cloudbuild:v1/BuildStep/dir": dir "/cloudbuild:v1/BuildStep/env": env @@ -13471,12 +13519,6 @@ "/cloudbuild:v1/Hash": hash_prop "/cloudbuild:v1/Hash/type": type "/cloudbuild:v1/Hash/value": value -"/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/FileHashes": file_hashes "/cloudbuild:v1/FileHashes/fileHash": file_hash "/cloudbuild:v1/FileHashes/fileHash/file_hash": file_hash @@ -13486,48 +13528,6 @@ "/cloudbuild:v1/Status/details": details "/cloudbuild:v1/Status/details/detail": detail "/cloudbuild:v1/Status/details/detail/detail": detail -"/cloudbuild:v1/Empty": empty -"/cloudbuild:v1/BuildTrigger": build_trigger -"/cloudbuild:v1/BuildTrigger/createTime": create_time -"/cloudbuild:v1/BuildTrigger/disabled": disabled -"/cloudbuild:v1/BuildTrigger/triggerTemplate": trigger_template -"/cloudbuild:v1/BuildTrigger/filename": filename -"/cloudbuild:v1/BuildTrigger/id": id -"/cloudbuild:v1/BuildTrigger/build": build -"/cloudbuild:v1/BuildTrigger/substitutions": substitutions -"/cloudbuild:v1/BuildTrigger/substitutions/substitution": substitution -"/cloudbuild:v1/BuildTrigger/description": description -"/cloudbuild:v1/Build": build -"/cloudbuild:v1/Build/createTime": create_time -"/cloudbuild:v1/Build/sourceProvenance": source_provenance -"/cloudbuild:v1/Build/images": images -"/cloudbuild:v1/Build/images/image": image -"/cloudbuild:v1/Build/projectId": project_id -"/cloudbuild:v1/Build/finishTime": finish_time -"/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/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/id": id -"/cloudbuild:v1/Build/startTime": start_time -"/cloudbuild:v1/Build/substitutions": substitutions -"/cloudbuild:v1/Build/substitutions/substitution": substitution -"/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 "/clouddebugger:v2/fields": fields "/clouddebugger:v2/key": key "/clouddebugger:v2/quotaUser": quota_user @@ -13536,8 +13536,8 @@ "/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.set/clientVersion": client_version "/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 @@ -13547,46 +13547,105 @@ "/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.list": list_debugger_debuggee_breakpoints -"/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/action.value": action_value "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/clientVersion": client_version -"/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/includeAllUsers": include_all_users +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/stripResults": strip_results "/clouddebugger:v2/clouddebugger.controller.debuggees.register": register_debuggee -"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list": list_controller_debuggee_breakpoints -"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/debuggeeId": debuggee_id -"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/successOnTimeout": success_on_timeout -"/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/debuggeeId": debuggee_id "/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.update/id": id +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list": list_controller_debuggee_breakpoints +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/waitToken": wait_token +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/successOnTimeout": success_on_timeout +"/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/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/breakpoints": breakpoints +"/clouddebugger:v2/ListBreakpointsResponse/breakpoints/breakpoint": breakpoint +"/clouddebugger:v2/ListBreakpointsResponse/nextWaitToken": next_wait_token +"/clouddebugger:v2/Breakpoint": breakpoint +"/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/Breakpoint/userEmail": user_email +"/clouddebugger:v2/Breakpoint/action": action +"/clouddebugger:v2/Breakpoint/logLevel": log_level +"/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/aliasContext": alias_context +"/clouddebugger:v2/CloudRepoSourceContext/revisionId": revision_id +"/clouddebugger:v2/CloudRepoSourceContext/aliasName": alias_name +"/clouddebugger:v2/CloudRepoSourceContext/repoId": repo_id +"/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/refersTo": refers_to "/clouddebugger:v2/StatusMessage/isError": is_error "/clouddebugger:v2/StatusMessage/description": description +"/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/value": value +"/clouddebugger:v2/Variable/varTableIndex": var_table_index +"/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/Variable/members": members -"/clouddebugger:v2/Variable/members/member": member "/clouddebugger:v2/StackFrame": stack_frame +"/clouddebugger:v2/StackFrame/function": function "/clouddebugger:v2/StackFrame/arguments": arguments "/clouddebugger:v2/StackFrame/arguments/argument": argument "/clouddebugger:v2/StackFrame/locals": locals "/clouddebugger:v2/StackFrame/locals/local": local "/clouddebugger:v2/StackFrame/location": location -"/clouddebugger:v2/StackFrame/function": function "/clouddebugger:v2/RepoId": repo_id -"/clouddebugger:v2/RepoId/uid": uid "/clouddebugger:v2/RepoId/projectRepoId": project_repo_id +"/clouddebugger:v2/RepoId/uid": uid "/clouddebugger:v2/FormatMessage": format_message "/clouddebugger:v2/FormatMessage/parameters": parameters "/clouddebugger:v2/FormatMessage/parameters/parameter": parameter @@ -13606,99 +13665,49 @@ "/clouddebugger:v2/SourceLocation/line": line "/clouddebugger:v2/SourceLocation/path": path "/clouddebugger:v2/Debuggee": debuggee -"/clouddebugger:v2/Debuggee/uniquifier": uniquifier "/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 "/clouddebugger:v2/Debuggee/labels/label": label -"/clouddebugger:v2/Debuggee/status": status "/clouddebugger:v2/Debuggee/isInactive": is_inactive +"/clouddebugger:v2/Debuggee/status": status "/clouddebugger:v2/Debuggee/project": project "/clouddebugger:v2/Debuggee/isDisabled": is_disabled "/clouddebugger:v2/Debuggee/agentVersion": agent_version "/clouddebugger:v2/Debuggee/id": id -"/clouddebugger:v2/ListActiveBreakpointsResponse": list_active_breakpoints_response -"/clouddebugger:v2/ListActiveBreakpointsResponse/breakpoints": breakpoints -"/clouddebugger:v2/ListActiveBreakpointsResponse/breakpoints/breakpoint": breakpoint -"/clouddebugger:v2/ListActiveBreakpointsResponse/waitExpired": wait_expired -"/clouddebugger:v2/ListActiveBreakpointsResponse/nextWaitToken": next_wait_token "/clouddebugger:v2/ProjectRepoId": project_repo_id "/clouddebugger:v2/ProjectRepoId/projectId": project_id "/clouddebugger:v2/ProjectRepoId/repoName": repo_name -"/clouddebugger:v2/CloudWorkspaceSourceContext": cloud_workspace_source_context -"/clouddebugger:v2/CloudWorkspaceSourceContext/workspaceId": workspace_id -"/clouddebugger:v2/CloudWorkspaceSourceContext/snapshotId": snapshot_id -"/clouddebugger:v2/UpdateActiveBreakpointResponse": update_active_breakpoint_response -"/clouddebugger:v2/GerritSourceContext": gerrit_source_context -"/clouddebugger:v2/GerritSourceContext/hostUri": host_uri -"/clouddebugger:v2/GerritSourceContext/revisionId": revision_id -"/clouddebugger:v2/GerritSourceContext/aliasName": alias_name -"/clouddebugger:v2/GerritSourceContext/gerritProject": gerrit_project -"/clouddebugger:v2/GerritSourceContext/aliasContext": alias_context -"/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/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/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/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/git": git -"/clouddebugger:v2/SourceContext/gerrit": gerrit -"/clouddebugger:v2/SourceContext/cloudRepo": cloud_repo -"/clouddebugger:v2/SourceContext/cloudWorkspace": cloud_workspace -"/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/ListActiveBreakpointsResponse": list_active_breakpoints_response +"/clouddebugger:v2/ListActiveBreakpointsResponse/nextWaitToken": next_wait_token +"/clouddebugger:v2/ListActiveBreakpointsResponse/breakpoints": breakpoints +"/clouddebugger:v2/ListActiveBreakpointsResponse/breakpoints/breakpoint": breakpoint +"/clouddebugger:v2/ListActiveBreakpointsResponse/waitExpired": wait_expired "/clouderrorreporting:v1beta1/fields": fields "/clouderrorreporting:v1beta1/key": key "/clouderrorreporting:v1beta1/quotaUser": quota_user "/clouderrorreporting:v1beta1/clouderrorreporting.projects.deleteEvents": delete_project_events "/clouderrorreporting:v1beta1/clouderrorreporting.projects.deleteEvents/projectName": project_name +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list": list_project_events +"/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/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/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 @@ -13709,29 +13718,20 @@ "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/serviceFilter.resourceType": service_filter_resource_type "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/alignmentTime": alignment_time "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/projectName": project_name -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list": list_project_events -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/projectName": project_name -"/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/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.report": report_project_event -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.report/projectName": project_name +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/timedCountDuration": timed_count_duration +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/pageToken": page_token "/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/lastSeenTime": last_seen_time "/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/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 @@ -13742,10 +13742,10 @@ "/clouderrorreporting:v1beta1/TimedCount/count": count "/clouderrorreporting:v1beta1/TimedCount/startTime": start_time "/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/ErrorGroup/name": name "/clouderrorreporting:v1beta1/ServiceContext": service_context "/clouderrorreporting:v1beta1/ServiceContext/version": version "/clouderrorreporting:v1beta1/ServiceContext/service": service @@ -13756,12 +13756,12 @@ "/clouderrorreporting:v1beta1/SourceLocation/lineNumber": line_number "/clouderrorreporting:v1beta1/ReportErrorEventResponse": report_error_event_response "/clouderrorreporting:v1beta1/HttpRequestContext": http_request_context -"/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 +"/clouderrorreporting:v1beta1/HttpRequestContext/method": method_prop +"/clouderrorreporting:v1beta1/HttpRequestContext/remoteIp": remote_ip "/clouderrorreporting:v1beta1/ListGroupStatsResponse": list_group_stats_response "/clouderrorreporting:v1beta1/ListGroupStatsResponse/timeRangeBegin": time_range_begin "/clouderrorreporting:v1beta1/ListGroupStatsResponse/errorGroupStats": error_group_stats @@ -13769,19 +13769,19 @@ "/clouderrorreporting:v1beta1/ListGroupStatsResponse/nextPageToken": next_page_token "/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/ErrorEvent/eventTime": event_time "/clouderrorreporting:v1beta1/ReportedErrorEvent": reported_error_event -"/clouderrorreporting:v1beta1/ReportedErrorEvent/eventTime": event_time "/clouderrorreporting:v1beta1/ReportedErrorEvent/context": context "/clouderrorreporting:v1beta1/ReportedErrorEvent/message": message "/clouderrorreporting:v1beta1/ReportedErrorEvent/serviceContext": service_context +"/clouderrorreporting:v1beta1/ReportedErrorEvent/eventTime": event_time "/clouderrorreporting:v1beta1/ErrorContext": error_context +"/clouderrorreporting:v1beta1/ErrorContext/httpRequest": http_request "/clouderrorreporting:v1beta1/ErrorContext/user": user "/clouderrorreporting:v1beta1/ErrorContext/reportLocation": report_location -"/clouderrorreporting:v1beta1/ErrorContext/httpRequest": http_request "/clouderrorreporting:v1beta1/TrackingIssue": tracking_issue "/clouderrorreporting:v1beta1/TrackingIssue/url": url "/cloudfunctions:v1/fields": fields @@ -13790,12 +13790,12 @@ "/cloudfunctions:v1/cloudfunctions.projects.locations.get": get_project_location "/cloudfunctions:v1/cloudfunctions.projects.locations.get/name": name "/cloudfunctions:v1/Location": location -"/cloudfunctions:v1/Location/locationId": location_id "/cloudfunctions:v1/Location/metadata": metadata "/cloudfunctions:v1/Location/metadata/metadatum": metadatum "/cloudfunctions:v1/Location/labels": labels "/cloudfunctions:v1/Location/labels/label": label "/cloudfunctions:v1/Location/name": name +"/cloudfunctions:v1/Location/locationId": location_id "/cloudfunctions:v1/OperationMetadataV1Beta2": operation_metadata_v1_beta2 "/cloudfunctions:v1/OperationMetadataV1Beta2/target": target "/cloudfunctions:v1/OperationMetadataV1Beta2/request": request @@ -13811,6 +13811,10 @@ "/cloudkms:v1/cloudkms.projects.locations.list/filter": filter "/cloudkms:v1/cloudkms.projects.locations.get": get_project_location "/cloudkms:v1/cloudkms.projects.locations.get/name": name +"/cloudkms:v1/cloudkms.projects.locations.keyRings.list": list_project_location_key_rings +"/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.list/parent": parent "/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 @@ -13822,14 +13826,10 @@ "/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/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.cryptoKeys.list": list_project_location_key_ring_crypto_keys +"/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.list/pageSize": page_size -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list/parent": parent "/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 @@ -13841,50 +13841,38 @@ "/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.list": list_project_location_key_ring_crypto_key_crypto_key_versions -"/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.destroy": destroy_crypto_key_version -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy/name": name "/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/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/name": name "/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/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/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.list": list_project_location_key_ring_crypto_key_crypto_key_versions +"/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.list/parent": parent "/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/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 @@ -13898,17 +13886,16 @@ "/cloudkms:v1/TestIamPermissionsRequest/permissions": permissions "/cloudkms:v1/TestIamPermissionsRequest/permissions/permission": permission "/cloudkms:v1/KeyRing": key_ring -"/cloudkms:v1/KeyRing/createTime": create_time "/cloudkms:v1/KeyRing/name": name +"/cloudkms:v1/KeyRing/createTime": create_time "/cloudkms:v1/EncryptResponse": encrypt_response -"/cloudkms:v1/EncryptResponse/name": name "/cloudkms:v1/EncryptResponse/ciphertext": ciphertext +"/cloudkms:v1/EncryptResponse/name": name "/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/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 @@ -13917,15 +13904,16 @@ "/cloudkms:v1/Policy/auditConfigs/audit_config": audit_config "/cloudkms:v1/Policy/bindings": bindings "/cloudkms:v1/Policy/bindings/binding": binding +"/cloudkms:v1/Policy/etag": etag "/cloudkms:v1/RestoreCryptoKeyVersionRequest": restore_crypto_key_version_request "/cloudkms:v1/UpdateCryptoKeyPrimaryVersionRequest": update_crypto_key_primary_version_request "/cloudkms:v1/UpdateCryptoKeyPrimaryVersionRequest/cryptoKeyVersionId": crypto_key_version_id -"/cloudkms:v1/DataAccessOptions": data_access_options "/cloudkms:v1/ListKeyRingsResponse": list_key_rings_response "/cloudkms:v1/ListKeyRingsResponse/nextPageToken": next_page_token "/cloudkms:v1/ListKeyRingsResponse/totalSize": total_size "/cloudkms:v1/ListKeyRingsResponse/keyRings": key_rings "/cloudkms:v1/ListKeyRingsResponse/keyRings/key_ring": key_ring +"/cloudkms:v1/DataAccessOptions": data_access_options "/cloudkms:v1/AuditConfig": audit_config "/cloudkms:v1/AuditConfig/service": service "/cloudkms:v1/AuditConfig/auditLogConfigs": audit_log_configs @@ -13944,8 +13932,8 @@ "/cloudkms:v1/Binding/members/member": member "/cloudkms:v1/Binding/role": role "/cloudkms:v1/EncryptRequest": encrypt_request -"/cloudkms:v1/EncryptRequest/additionalAuthenticatedData": additional_authenticated_data "/cloudkms:v1/EncryptRequest/plaintext": plaintext +"/cloudkms:v1/EncryptRequest/additionalAuthenticatedData": additional_authenticated_data "/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 @@ -13955,13 +13943,6 @@ "/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 @@ -13975,16 +13956,35 @@ "/cloudkms:v1/Rule/permissions": permissions "/cloudkms:v1/Rule/permissions/permission": permission "/cloudkms:v1/Rule/action": action +"/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/LogConfig": log_config +"/cloudkms:v1/LogConfig/cloudAudit": cloud_audit "/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/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/cryptoKeys": crypto_keys +"/cloudkms:v1/ListCryptoKeysResponse/cryptoKeys/crypto_key": crypto_key +"/cloudkms:v1/ListCryptoKeysResponse/totalSize": total_size "/cloudmonitoring:v2beta2/fields": fields "/cloudmonitoring:v2beta2/key": key "/cloudmonitoring:v2beta2/quotaUser": quota_user @@ -14108,9 +14108,30 @@ "/cloudmonitoring:v2beta2/WriteTimeseriesRequest/timeseries/timeseries": timeseries "/cloudmonitoring:v2beta2/WriteTimeseriesResponse": write_timeseries_response "/cloudmonitoring:v2beta2/WriteTimeseriesResponse/kind": kind -"/cloudresourcemanager:v1/key": key "/cloudresourcemanager:v1/quotaUser": quota_user "/cloudresourcemanager:v1/fields": fields +"/cloudresourcemanager:v1/key": key +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.clearOrgPolicy": clear_organization_org_policy +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.clearOrgPolicy/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.setOrgPolicy": set_organization_org_policy +"/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.organizations.search": search_organizations +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getOrgPolicy": get_organization_org_policy +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getOrgPolicy/resource": resource +"/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.liens.delete": delete_lien "/cloudresourcemanager:v1/cloudresourcemanager.liens.delete/name": name "/cloudresourcemanager:v1/cloudresourcemanager.liens.list": list_liens @@ -14120,43 +14141,20 @@ "/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.getEffectiveOrgPolicyV1": get_folder_effective_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.folders.getEffectiveOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.folders.setOrgPolicyV1": set_folder_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.folders.setOrgPolicyV1/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.clearOrgPolicyV1": clear_folder_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.folders.clearOrgPolicyV1/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.folders.getOrgPolicyV1": get_folder_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.folders.getOrgPolicyV1/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.folders.getEffectiveOrgPolicy": get_folder_effective_org_policy "/cloudresourcemanager:v1/cloudresourcemanager.folders.getEffectiveOrgPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.projects.list": list_projects -"/cloudresourcemanager:v1/cloudresourcemanager.projects.list/pageToken": page_token -"/cloudresourcemanager:v1/cloudresourcemanager.projects.list/pageSize": page_size -"/cloudresourcemanager:v1/cloudresourcemanager.projects.list/filter": filter -"/cloudresourcemanager:v1/cloudresourcemanager.projects.setOrgPolicy": set_project_org_policy -"/cloudresourcemanager:v1/cloudresourcemanager.projects.setOrgPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.projects.clearOrgPolicyV1": clear_project_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.projects.clearOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.projects.create": create_project -"/cloudresourcemanager:v1/cloudresourcemanager.projects.listOrgPolicies": list_project_org_policies -"/cloudresourcemanager:v1/cloudresourcemanager.projects.listOrgPolicies/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.projects.get": get_project -"/cloudresourcemanager:v1/cloudresourcemanager.projects.get/projectId": project_id "/cloudresourcemanager:v1/cloudresourcemanager.projects.getAncestry": get_project_ancestry "/cloudresourcemanager:v1/cloudresourcemanager.projects.getAncestry/projectId": project_id -"/cloudresourcemanager:v1/cloudresourcemanager.projects.getEffectiveOrgPolicyV1": get_project_effective_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.projects.getEffectiveOrgPolicyV1/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.projects.testIamPermissions": test_project_iam_permissions "/cloudresourcemanager:v1/cloudresourcemanager.projects.testIamPermissions/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.projects.delete": delete_project @@ -14171,87 +14169,65 @@ "/cloudresourcemanager:v1/cloudresourcemanager.projects.getIamPolicy/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.projects.getOrgPolicy": get_project_org_policy "/cloudresourcemanager:v1/cloudresourcemanager.projects.getOrgPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.projects.getOrgPolicyV1": get_project_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.projects.getOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.projects.undelete": undelete_project -"/cloudresourcemanager:v1/cloudresourcemanager.projects.undelete/projectId": project_id "/cloudresourcemanager:v1/cloudresourcemanager.projects.getEffectiveOrgPolicy": get_project_effective_org_policy "/cloudresourcemanager:v1/cloudresourcemanager.projects.getEffectiveOrgPolicy/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.projects.undelete": undelete_project +"/cloudresourcemanager:v1/cloudresourcemanager.projects.undelete/projectId": project_id "/cloudresourcemanager:v1/cloudresourcemanager.projects.update": update_project "/cloudresourcemanager:v1/cloudresourcemanager.projects.update/projectId": project_id -"/cloudresourcemanager:v1/cloudresourcemanager.projects.setOrgPolicyV1": set_project_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.projects.setOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.setOrgPolicy": set_organization_org_policy -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.setOrgPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.clearOrgPolicyV1": clear_organization_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.clearOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listOrgPolicies": list_organization_org_policies -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listOrgPolicies/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.search": search_organizations -"/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.getEffectiveOrgPolicyV1": get_organization_effective_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getEffectiveOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.clearOrgPolicy": clear_organization_org_policy -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.clearOrgPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.setIamPolicy": set_organization_iam_policy -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.setIamPolicy/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.getOrgPolicyV1": get_organization_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getEffectiveOrgPolicy": get_organization_effective_org_policy -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getEffectiveOrgPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.setOrgPolicyV1": set_organization_org_policy_v1 -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.setOrgPolicyV1/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.projects.list": list_projects +"/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 +"/cloudresourcemanager:v1/cloudresourcemanager.projects.listOrgPolicies": list_project_org_policies +"/cloudresourcemanager:v1/cloudresourcemanager.projects.listOrgPolicies/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.projects.get": get_project +"/cloudresourcemanager:v1/cloudresourcemanager.projects.get/projectId": project_id "/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/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/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/done": done +"/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/ListLiensResponse": list_liens_response +"/cloudresourcemanager:v1/ListLiensResponse/nextPageToken": next_page_token +"/cloudresourcemanager:v1/ListLiensResponse/liens": liens +"/cloudresourcemanager:v1/ListLiensResponse/liens/lien": lien "/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/ListLiensResponse": list_liens_response -"/cloudresourcemanager:v1/ListLiensResponse/liens": liens -"/cloudresourcemanager:v1/ListLiensResponse/liens/lien": lien -"/cloudresourcemanager:v1/ListLiensResponse/nextPageToken": next_page_token -"/cloudresourcemanager:v1/Constraint": constraint -"/cloudresourcemanager:v1/Constraint/constraintDefault": constraint_default -"/cloudresourcemanager:v1/Constraint/name": name -"/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/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/RestoreDefault": restore_default "/cloudresourcemanager:v1/UndeleteProjectRequest": undelete_project_request "/cloudresourcemanager:v1/ClearOrgPolicyRequest": clear_org_policy_request "/cloudresourcemanager:v1/ClearOrgPolicyRequest/etag": etag @@ -14272,42 +14248,42 @@ "/cloudresourcemanager:v1/ListProjectsResponse/projects": projects "/cloudresourcemanager:v1/ListProjectsResponse/projects/project": project "/cloudresourcemanager:v1/Project": project -"/cloudresourcemanager:v1/Project/labels": labels -"/cloudresourcemanager:v1/Project/labels/label": label -"/cloudresourcemanager:v1/Project/createTime": create_time "/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/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/nextPageToken": next_page_token "/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/BooleanPolicy": boolean_policy +"/cloudresourcemanager:v1/BooleanPolicy/enforced": enforced "/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/OrgPolicy/updateTime": update_time -"/cloudresourcemanager:v1/BooleanPolicy": boolean_policy -"/cloudresourcemanager:v1/BooleanPolicy/enforced": enforced +"/cloudresourcemanager:v1/OrgPolicy/constraint": constraint "/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/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:v1/Ancestor": ancestor "/cloudresourcemanager:v1/Ancestor/resourceId": resource_id "/cloudresourcemanager:v1/ListConstraint": list_constraint @@ -14351,92 +14327,87 @@ "/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/Policy/etag": etag -"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsRequest": list_available_org_policy_constraints_request -"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsRequest/pageToken": page_token -"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsRequest/pageSize": page_size +"/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/ResourceId": resource_id -"/cloudresourcemanager:v1/ResourceId/type": type "/cloudresourcemanager:v1/ResourceId/id": id +"/cloudresourcemanager:v1/ResourceId/type": type "/cloudresourcemanager:v1beta1/fields": fields "/cloudresourcemanager:v1beta1/key": key "/cloudresourcemanager:v1beta1/quotaUser": quota_user -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.clearOrgPolicy": clear_organization_org_policy -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.clearOrgPolicy/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/pageToken": page_token +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list/pageSize": page_size +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list/filter": filter +"/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 +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete/projectId": project_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.get": get_project +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.get/projectId": project_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.update": update_project +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.update/projectId": project_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getAncestry": get_project_ancestry +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getAncestry/projectId": project_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions": test_project_iam_permissions +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions/resource": resource "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.setIamPolicy": set_organization_iam_policy "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.setIamPolicy/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.listAvailableOrgPolicyConstraints": list_organization_available_org_policy_constraints -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.listAvailableOrgPolicyConstraints/resource": resource "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getIamPolicy": get_organization_iam_policy "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getIamPolicy/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getOrgPolicy": get_organization_org_policy -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getOrgPolicy/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getEffectiveOrgPolicy": get_organization_effective_org_policy -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getEffectiveOrgPolicy/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getOrgPolicyV1": get_organization_org_policy_v1 -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.update": update_organization -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.update/name": name -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.setOrgPolicyV1": set_organization_org_policy_v1 -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.setOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list": list_organizations -"/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.setOrgPolicy": set_organization_org_policy -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.setOrgPolicy/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.clearOrgPolicyV1": clear_organization_org_policy_v1 -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.clearOrgPolicyV1/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.listOrgPolicies": list_organization_org_policies -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.listOrgPolicies/resource": resource "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.get": get_organization "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.get/organizationId": organization_id "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.get/name": name -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getEffectiveOrgPolicyV1": get_organization_effective_org_policy_v1 -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getEffectiveOrgPolicyV1/resource": resource +"/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/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/cloudresourcemanager.projects.setIamPolicy": set_project_iam_policy -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.setIamPolicy/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy": get_project_iam_policy -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.get": get_project -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.get/projectId": project_id -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete": undelete_project -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete/projectId": project_id -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getAncestry": get_project_ancestry -"/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/ListPolicy": list_policy -"/cloudresourcemanager:v1beta1/ListPolicy/allValues": all_values -"/cloudresourcemanager:v1beta1/ListPolicy/allowedValues": allowed_values -"/cloudresourcemanager:v1beta1/ListPolicy/allowedValues/allowed_value": allowed_value -"/cloudresourcemanager:v1beta1/ListPolicy/suggestedValue": suggested_value -"/cloudresourcemanager:v1beta1/ListPolicy/inheritFromParent": inherit_from_parent -"/cloudresourcemanager:v1beta1/ListPolicy/deniedValues": denied_values -"/cloudresourcemanager:v1beta1/ListPolicy/deniedValues/denied_value": denied_value +"/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/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/createTime": create_time +"/cloudresourcemanager:v1beta1/ProjectCreationStatus/gettable": gettable +"/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/OrganizationOwner": organization_owner +"/cloudresourcemanager:v1beta1/OrganizationOwner/directoryCustomerId": directory_customer_id "/cloudresourcemanager:v1beta1/GetAncestryResponse": get_ancestry_response "/cloudresourcemanager:v1beta1/GetAncestryResponse/ancestor": ancestor "/cloudresourcemanager:v1beta1/GetAncestryResponse/ancestor/ancestor": ancestor @@ -14444,15 +14415,23 @@ "/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/nextPageToken": next_page_token +"/cloudresourcemanager:v1beta1/ListProjectsResponse/projects": projects +"/cloudresourcemanager:v1beta1/ListProjectsResponse/projects/project": project "/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/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/TestIamPermissionsRequest": test_iam_permissions_request "/cloudresourcemanager:v1beta1/TestIamPermissionsRequest/permissions": permissions "/cloudresourcemanager:v1beta1/TestIamPermissionsRequest/permissions/permission": permission -"/cloudresourcemanager:v1beta1/FolderOperation": folder_operation -"/cloudresourcemanager:v1beta1/FolderOperation/destinationParent": destination_parent -"/cloudresourcemanager:v1beta1/FolderOperation/operationType": operation_type -"/cloudresourcemanager:v1beta1/FolderOperation/displayName": display_name -"/cloudresourcemanager:v1beta1/FolderOperation/sourceParent": source_parent "/cloudresourcemanager:v1beta1/Policy": policy "/cloudresourcemanager:v1beta1/Policy/etag": etag "/cloudresourcemanager:v1beta1/Policy/version": version @@ -14460,131 +14439,58 @@ "/cloudresourcemanager:v1beta1/Policy/auditConfigs/audit_config": audit_config "/cloudresourcemanager:v1beta1/Policy/bindings": bindings "/cloudresourcemanager:v1beta1/Policy/bindings/binding": binding -"/cloudresourcemanager:v1beta1/ListAvailableOrgPolicyConstraintsRequest": list_available_org_policy_constraints_request -"/cloudresourcemanager:v1beta1/ListAvailableOrgPolicyConstraintsRequest/pageToken": page_token -"/cloudresourcemanager:v1beta1/ListAvailableOrgPolicyConstraintsRequest/pageSize": page_size +"/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/destinationParent": destination_parent +"/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/GetEffectiveOrgPolicyRequest": get_effective_org_policy_request -"/cloudresourcemanager:v1beta1/GetEffectiveOrgPolicyRequest/constraint": constraint -"/cloudresourcemanager:v1beta1/ListOrgPoliciesRequest": list_org_policies_request -"/cloudresourcemanager:v1beta1/ListOrgPoliciesRequest/pageToken": page_token -"/cloudresourcemanager:v1beta1/ListOrgPoliciesRequest/pageSize": page_size "/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/updateMask": update_mask +"/cloudresourcemanager:v1beta1/SetIamPolicyRequest/policy": policy "/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/Constraint": constraint -"/cloudresourcemanager:v1beta1/Constraint/name": name -"/cloudresourcemanager:v1beta1/Constraint/listConstraint": list_constraint -"/cloudresourcemanager:v1beta1/Constraint/version": version -"/cloudresourcemanager:v1beta1/Constraint/description": description -"/cloudresourcemanager:v1beta1/Constraint/displayName": display_name -"/cloudresourcemanager:v1beta1/Constraint/booleanConstraint": boolean_constraint -"/cloudresourcemanager:v1beta1/Constraint/constraintDefault": constraint_default -"/cloudresourcemanager:v1beta1/Binding": binding -"/cloudresourcemanager:v1beta1/Binding/members": members -"/cloudresourcemanager:v1beta1/Binding/members/member": member -"/cloudresourcemanager:v1beta1/Binding/role": role -"/cloudresourcemanager:v1beta1/RestoreDefault": restore_default -"/cloudresourcemanager:v1beta1/GetOrgPolicyRequest": get_org_policy_request -"/cloudresourcemanager:v1beta1/GetOrgPolicyRequest/constraint": constraint -"/cloudresourcemanager:v1beta1/ClearOrgPolicyRequest": clear_org_policy_request -"/cloudresourcemanager:v1beta1/ClearOrgPolicyRequest/etag": etag -"/cloudresourcemanager:v1beta1/ClearOrgPolicyRequest/constraint": constraint -"/cloudresourcemanager:v1beta1/UndeleteProjectRequest": undelete_project_request -"/cloudresourcemanager:v1beta1/ProjectCreationStatus": project_creation_status -"/cloudresourcemanager:v1beta1/ProjectCreationStatus/ready": ready -"/cloudresourcemanager:v1beta1/ProjectCreationStatus/createTime": create_time -"/cloudresourcemanager:v1beta1/ProjectCreationStatus/gettable": gettable -"/cloudresourcemanager:v1beta1/BooleanConstraint": boolean_constraint -"/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/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/Project": project -"/cloudresourcemanager:v1beta1/Project/name": name -"/cloudresourcemanager:v1beta1/Project/projectId": project_id -"/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/ListOrgPoliciesResponse": list_org_policies_response -"/cloudresourcemanager:v1beta1/ListOrgPoliciesResponse/policies": policies -"/cloudresourcemanager:v1beta1/ListOrgPoliciesResponse/policies/policy": policy -"/cloudresourcemanager:v1beta1/ListOrgPoliciesResponse/nextPageToken": next_page_token -"/cloudresourcemanager:v1beta1/FolderOperationError": folder_operation_error -"/cloudresourcemanager:v1beta1/FolderOperationError/errorMessageId": error_message_id -"/cloudresourcemanager:v1beta1/BooleanPolicy": boolean_policy -"/cloudresourcemanager:v1beta1/BooleanPolicy/enforced": enforced -"/cloudresourcemanager:v1beta1/OrgPolicy": org_policy -"/cloudresourcemanager:v1beta1/OrgPolicy/version": version -"/cloudresourcemanager:v1beta1/OrgPolicy/restoreDefault": restore_default -"/cloudresourcemanager:v1beta1/OrgPolicy/listPolicy": list_policy -"/cloudresourcemanager:v1beta1/OrgPolicy/etag": etag -"/cloudresourcemanager:v1beta1/OrgPolicy/booleanPolicy": boolean_policy -"/cloudresourcemanager:v1beta1/OrgPolicy/constraint": constraint -"/cloudresourcemanager:v1beta1/OrgPolicy/updateTime": update_time -"/cloudresourcemanager:v1beta1/Ancestor": ancestor -"/cloudresourcemanager:v1beta1/Ancestor/resourceId": resource_id -"/cloudresourcemanager:v1beta1/ListConstraint": list_constraint -"/cloudresourcemanager:v1beta1/ListConstraint/suggestedValue": suggested_value -"/cloudresourcemanager:v1beta1/SetOrgPolicyRequest": set_org_policy_request -"/cloudresourcemanager:v1beta1/SetOrgPolicyRequest/policy": policy -"/cloudresourcemanager:v1beta1/SetIamPolicyRequest": set_iam_policy_request -"/cloudresourcemanager:v1beta1/SetIamPolicyRequest/updateMask": update_mask -"/cloudresourcemanager:v1beta1/SetIamPolicyRequest/policy": policy -"/cloudresourcemanager:v1beta1/Empty": empty -"/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/ListAvailableOrgPolicyConstraintsResponse": list_available_org_policy_constraints_response -"/cloudresourcemanager:v1beta1/ListAvailableOrgPolicyConstraintsResponse/nextPageToken": next_page_token -"/cloudresourcemanager:v1beta1/ListAvailableOrgPolicyConstraintsResponse/constraints": constraints -"/cloudresourcemanager:v1beta1/ListAvailableOrgPolicyConstraintsResponse/constraints/constraint": constraint -"/cloudtrace:v1/fields": fields "/cloudtrace:v1/key": key "/cloudtrace:v1/quotaUser": quota_user +"/cloudtrace:v1/fields": fields "/cloudtrace:v1/cloudtrace.projects.patchTraces": patch_project_traces "/cloudtrace:v1/cloudtrace.projects.patchTraces/projectId": project_id "/cloudtrace:v1/cloudtrace.projects.traces.list": list_project_traces -"/cloudtrace:v1/cloudtrace.projects.traces.list/pageToken": page_token -"/cloudtrace:v1/cloudtrace.projects.traces.list/startTime": start_time -"/cloudtrace:v1/cloudtrace.projects.traces.list/pageSize": page_size -"/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/pageSize": page_size +"/cloudtrace:v1/cloudtrace.projects.traces.list/view": view "/cloudtrace:v1/cloudtrace.projects.traces.get": get_project_trace "/cloudtrace:v1/cloudtrace.projects.traces.get/projectId": project_id "/cloudtrace:v1/cloudtrace.projects.traces.get/traceId": trace_id +"/cloudtrace:v1/Traces": traces +"/cloudtrace:v1/Traces/traces": traces +"/cloudtrace:v1/Traces/traces/trace": trace "/cloudtrace:v1/TraceSpan": trace_span +"/cloudtrace:v1/TraceSpan/startTime": start_time +"/cloudtrace:v1/TraceSpan/kind": kind "/cloudtrace:v1/TraceSpan/labels": labels "/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/TraceSpan/endTime": end_time -"/cloudtrace:v1/TraceSpan/startTime": start_time -"/cloudtrace:v1/TraceSpan/kind": kind "/cloudtrace:v1/ListTracesResponse": list_traces_response "/cloudtrace:v1/ListTracesResponse/traces": traces "/cloudtrace:v1/ListTracesResponse/traces/trace": trace @@ -14595,9 +14501,6 @@ "/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 @@ -18597,11 +18500,16 @@ "/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.locations.jobs.getMetrics": get_project_location_job_metrics +"/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics/location": location +"/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.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.get/location": location "/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 @@ -18614,35 +18522,30 @@ "/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.create": create_project_location_job -"/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.create/location": location "/dataflow:v1b3/dataflow.projects.locations.jobs.create/replaceJobId": replace_job_id -"/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.create/projectId": project_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.create/view": view +"/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.lease/location": location +"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.lease/projectId": project_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.lease/jobId": job_id "/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list": list_project_location_job_messages "/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.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/endTime": end_time "/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.workItems.lease/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.lease/jobId": job_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/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.reportStatus/jobId": job_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.reportStatus/location": location "/dataflow:v1b3/dataflow.projects.templates.launch": launch_project_template -"/dataflow:v1b3/dataflow.projects.templates.launch/projectId": project_id "/dataflow:v1b3/dataflow.projects.templates.launch/gcsPath": gcs_path "/dataflow:v1b3/dataflow.projects.templates.launch/dryRun": dry_run +"/dataflow:v1b3/dataflow.projects.templates.launch/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 @@ -18654,27 +18557,27 @@ "/dataflow:v1b3/dataflow.projects.jobs.update/jobId": job_id "/dataflow:v1b3/dataflow.projects.jobs.update/location": location "/dataflow:v1b3/dataflow.projects.jobs.create": create_project_job +"/dataflow:v1b3/dataflow.projects.jobs.create/replaceJobId": replace_job_id "/dataflow:v1b3/dataflow.projects.jobs.create/projectId": project_id "/dataflow:v1b3/dataflow.projects.jobs.create/view": view "/dataflow:v1b3/dataflow.projects.jobs.create/location": location -"/dataflow:v1b3/dataflow.projects.jobs.create/replaceJobId": replace_job_id "/dataflow:v1b3/dataflow.projects.jobs.getMetrics": get_project_job_metrics -"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/projectId": project_id -"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/jobId": job_id "/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.jobs.get/location": location "/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 "/dataflow:v1b3/dataflow.projects.jobs.list/location": location "/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.list/projectId": project_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 @@ -18689,225 +18592,84 @@ "/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/location": location "/dataflow:v1b3/dataflow.projects.jobs.messages.list/startTime": start_time "/dataflow:v1b3/dataflow.projects.jobs.messages.list/pageToken": page_token "/dataflow:v1b3/dataflow.projects.jobs.messages.list/pageSize": page_size "/dataflow:v1b3/dataflow.projects.jobs.messages.list/minimumImportance": minimum_importance -"/dataflow:v1b3/Status": status -"/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/StreamLocation": stream_location -"/dataflow:v1b3/StreamLocation/streamingStageLocation": streaming_stage_location -"/dataflow:v1b3/StreamLocation/pubsubLocation": pubsub_location -"/dataflow:v1b3/StreamLocation/sideInputLocation": side_input_location -"/dataflow:v1b3/StreamLocation/customSourceLocation": custom_source_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/computationId": computation_id -"/dataflow:v1b3/StreamingComputationConfig/systemName": system_name -"/dataflow:v1b3/StreamingComputationConfig/stageName": stage_name -"/dataflow:v1b3/StreamingComputationConfig/instructions": instructions -"/dataflow:v1b3/StreamingComputationConfig/instructions/instruction": instruction -"/dataflow:v1b3/TransformSummary": transform_summary -"/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/TransformSummary/id": id -"/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/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/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/PartialGroupByKeyInstruction/input": input -"/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/InstructionInput": instruction_input -"/dataflow:v1b3/InstructionInput/producerInstructionIndex": producer_instruction_index -"/dataflow:v1b3/InstructionInput/outputNum": output_num -"/dataflow:v1b3/StringList": string_list -"/dataflow:v1b3/StringList/elements": elements -"/dataflow:v1b3/StringList/elements/element": element -"/dataflow:v1b3/DisplayData": display_data -"/dataflow:v1b3/DisplayData/durationValue": duration_value -"/dataflow:v1b3/DisplayData/int64Value": int64_value -"/dataflow:v1b3/DisplayData/namespace": namespace -"/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/timestampValue": timestamp_value -"/dataflow:v1b3/DisplayData/javaClassValue": java_class_value -"/dataflow:v1b3/DisplayData/boolValue": bool_value -"/dataflow:v1b3/DisplayData/strValue": str_value -"/dataflow:v1b3/GetDebugConfigRequest": get_debug_config_request -"/dataflow:v1b3/GetDebugConfigRequest/componentId": component_id -"/dataflow:v1b3/GetDebugConfigRequest/workerId": worker_id -"/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/GetTemplateResponse": get_template_response -"/dataflow:v1b3/GetTemplateResponse/metadata": metadata -"/dataflow:v1b3/GetTemplateResponse/status": status -"/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/StreamingConfigTask": streaming_config_task -"/dataflow:v1b3/StreamingConfigTask/streamingComputationConfigs": streaming_computation_configs -"/dataflow:v1b3/StreamingConfigTask/streamingComputationConfigs/streaming_computation_config": streaming_computation_config -"/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/PipelineDescription": pipeline_description -"/dataflow:v1b3/PipelineDescription/displayData": display_data -"/dataflow:v1b3/PipelineDescription/displayData/display_datum": display_datum -"/dataflow:v1b3/PipelineDescription/executionPipelineStage": execution_pipeline_stage -"/dataflow:v1b3/PipelineDescription/executionPipelineStage/execution_pipeline_stage": execution_pipeline_stage -"/dataflow:v1b3/PipelineDescription/originalPipelineTransform": original_pipeline_transform -"/dataflow:v1b3/PipelineDescription/originalPipelineTransform/original_pipeline_transform": original_pipeline_transform -"/dataflow:v1b3/Step": step -"/dataflow:v1b3/Step/properties": properties -"/dataflow:v1b3/Step/properties/property": property -"/dataflow:v1b3/Step/name": name -"/dataflow:v1b3/Step/kind": kind -"/dataflow:v1b3/JobExecutionInfo": job_execution_info -"/dataflow:v1b3/JobExecutionInfo/stages": stages -"/dataflow:v1b3/JobExecutionInfo/stages/stage": stage -"/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/ListJobMessagesResponse": list_job_messages_response -"/dataflow:v1b3/ListJobMessagesResponse/jobMessages": job_messages -"/dataflow:v1b3/ListJobMessagesResponse/jobMessages/job_message": job_message -"/dataflow:v1b3/ListJobMessagesResponse/nextPageToken": next_page_token -"/dataflow:v1b3/CounterMetadata": counter_metadata -"/dataflow:v1b3/CounterMetadata/otherUnits": other_units -"/dataflow:v1b3/CounterMetadata/kind": kind -"/dataflow:v1b3/CounterMetadata/description": description -"/dataflow:v1b3/CounterMetadata/standardUnits": standard_units -"/dataflow:v1b3/ApproximateReportedProgress": approximate_reported_progress -"/dataflow:v1b3/ApproximateReportedProgress/consumedParallelism": consumed_parallelism -"/dataflow:v1b3/ApproximateReportedProgress/remainingParallelism": remaining_parallelism -"/dataflow:v1b3/ApproximateReportedProgress/position": position -"/dataflow:v1b3/ApproximateReportedProgress/fractionConsumed": fraction_consumed -"/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/IntegerList": integer_list +"/dataflow:v1b3/IntegerList/elements": elements +"/dataflow:v1b3/IntegerList/elements/element": element "/dataflow:v1b3/ResourceUtilizationReportResponse": resource_utilization_report_response "/dataflow:v1b3/SourceSplitResponse": source_split_response -"/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/SourceSplitResponse/shards": shards +"/dataflow:v1b3/SourceSplitResponse/shards/shard": shard "/dataflow:v1b3/ParallelInstruction": parallel_instruction "/dataflow:v1b3/ParallelInstruction/outputs": outputs "/dataflow:v1b3/ParallelInstruction/outputs/output": output "/dataflow:v1b3/ParallelInstruction/name": name -"/dataflow:v1b3/ParallelInstruction/parDo": par_do "/dataflow:v1b3/ParallelInstruction/read": read -"/dataflow:v1b3/ParallelInstruction/originalName": original_name +"/dataflow:v1b3/ParallelInstruction/parDo": par_do "/dataflow:v1b3/ParallelInstruction/flatten": flatten -"/dataflow:v1b3/ParallelInstruction/write": write +"/dataflow:v1b3/ParallelInstruction/originalName": original_name "/dataflow:v1b3/ParallelInstruction/systemName": system_name +"/dataflow:v1b3/ParallelInstruction/write": write "/dataflow:v1b3/ParallelInstruction/partialGroupByKey": partial_group_by_key -"/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/end": end "/dataflow:v1b3/KeyRangeDataDiskAssignment/start": start "/dataflow:v1b3/KeyRangeDataDiskAssignment/dataDisk": data_disk +"/dataflow:v1b3/KeyRangeDataDiskAssignment/end": end +"/dataflow:v1b3/Package": package +"/dataflow:v1b3/Package/name": name +"/dataflow:v1b3/Package/location": location "/dataflow:v1b3/ParDoInstruction": par_do_instruction -"/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/set": set -"/dataflow:v1b3/MetricUpdate/cumulative": cumulative -"/dataflow:v1b3/MetricUpdate/internal": internal -"/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/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/CounterStructuredName": counter_structured_name +"/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/origin": origin -"/dataflow:v1b3/CounterStructuredName/name": name -"/dataflow:v1b3/CounterStructuredName/executionStepName": execution_step_name +"/dataflow:v1b3/MetricUpdate": metric_update +"/dataflow:v1b3/MetricUpdate/updateTime": update_time +"/dataflow:v1b3/MetricUpdate/name": name +"/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/ApproximateProgress": approximate_progress "/dataflow:v1b3/ApproximateProgress/percentComplete": percent_complete "/dataflow:v1b3/ApproximateProgress/remainingTime": remaining_time "/dataflow:v1b3/ApproximateProgress/position": position "/dataflow:v1b3/WorkerMessageResponse": worker_message_response -"/dataflow:v1b3/WorkerMessageResponse/workerMetricsResponse": worker_metrics_response "/dataflow:v1b3/WorkerMessageResponse/workerHealthReportResponse": worker_health_report_response +"/dataflow:v1b3/WorkerMessageResponse/workerMetricsResponse": worker_metrics_response "/dataflow:v1b3/TemplateMetadata": template_metadata -"/dataflow:v1b3/TemplateMetadata/bypassTempDirValidation": bypass_temp_dir_validation "/dataflow:v1b3/TemplateMetadata/name": name "/dataflow:v1b3/TemplateMetadata/parameters": parameters "/dataflow:v1b3/TemplateMetadata/parameters/parameter": parameter "/dataflow:v1b3/TemplateMetadata/description": description +"/dataflow:v1b3/TemplateMetadata/bypassTempDirValidation": bypass_temp_dir_validation "/dataflow:v1b3/WorkerMessage": worker_message "/dataflow:v1b3/WorkerMessage/time": time "/dataflow:v1b3/WorkerMessage/workerHealthReport": worker_health_report @@ -18923,12 +18685,6 @@ "/dataflow:v1b3/FloatingPointList/elements": elements "/dataflow:v1b3/FloatingPointList/elements/element": element "/dataflow:v1b3/CounterUpdate": counter_update -"/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/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/floatingPoint": floating_point @@ -18937,16 +18693,22 @@ "/dataflow:v1b3/CounterUpdate/internal": internal "/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/CounterUpdate/floatingPointList": floating_point_list +"/dataflow:v1b3/CounterUpdate/integer": integer "/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/DistributionUpdate": distribution_update +"/dataflow:v1b3/DistributionUpdate/max": max +"/dataflow:v1b3/DistributionUpdate/sum": sum "/dataflow:v1b3/DistributionUpdate/count": count "/dataflow:v1b3/DistributionUpdate/min": min "/dataflow:v1b3/DistributionUpdate/sumOfSquares": sum_of_squares -"/dataflow:v1b3/DistributionUpdate/max": max -"/dataflow:v1b3/DistributionUpdate/sum": sum "/dataflow:v1b3/WorkerHealthReportResponse": worker_health_report_response "/dataflow:v1b3/WorkerHealthReportResponse/reportInterval": report_interval "/dataflow:v1b3/SourceFork": source_fork @@ -18955,42 +18717,42 @@ "/dataflow:v1b3/SourceFork/primary": primary "/dataflow:v1b3/SourceFork/primarySource": primary_source "/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/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/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/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/ComponentSource": component_source "/dataflow:v1b3/ComponentSource/originalTransformOrCollection": original_transform_or_collection "/dataflow:v1b3/ComponentSource/name": name "/dataflow:v1b3/ComponentSource/userName": user_name "/dataflow:v1b3/WorkItemServiceState": work_item_service_state -"/dataflow:v1b3/WorkItemServiceState/leaseExpireTime": lease_expire_time -"/dataflow:v1b3/WorkItemServiceState/metricShortId": metric_short_id -"/dataflow:v1b3/WorkItemServiceState/metricShortId/metric_short_id": metric_short_id -"/dataflow:v1b3/WorkItemServiceState/nextReportIndex": next_report_index -"/dataflow:v1b3/WorkItemServiceState/suggestedStopPoint": suggested_stop_point "/dataflow:v1b3/WorkItemServiceState/splitRequest": split_request "/dataflow:v1b3/WorkItemServiceState/reportStatusInterval": report_status_interval "/dataflow:v1b3/WorkItemServiceState/suggestedStopPosition": suggested_stop_position "/dataflow:v1b3/WorkItemServiceState/harnessData": harness_data "/dataflow:v1b3/WorkItemServiceState/harnessData/harness_datum": harness_datum +"/dataflow:v1b3/WorkItemServiceState/leaseExpireTime": lease_expire_time +"/dataflow:v1b3/WorkItemServiceState/metricShortId": metric_short_id +"/dataflow:v1b3/WorkItemServiceState/metricShortId/metric_short_id": metric_short_id +"/dataflow:v1b3/WorkItemServiceState/nextReportIndex": next_report_index +"/dataflow:v1b3/WorkItemServiceState/suggestedStopPoint": suggested_stop_point "/dataflow:v1b3/MetricStructuredName": metric_structured_name -"/dataflow:v1b3/MetricStructuredName/origin": origin -"/dataflow:v1b3/MetricStructuredName/name": name "/dataflow:v1b3/MetricStructuredName/context": context "/dataflow:v1b3/MetricStructuredName/context/context": context +"/dataflow:v1b3/MetricStructuredName/origin": origin +"/dataflow:v1b3/MetricStructuredName/name": name "/dataflow:v1b3/SeqMapTaskOutputInfo": seq_map_task_output_info "/dataflow:v1b3/SeqMapTaskOutputInfo/sink": sink "/dataflow:v1b3/SeqMapTaskOutputInfo/tag": tag @@ -18998,30 +18760,30 @@ "/dataflow:v1b3/JobExecutionStageInfo/stepName": step_name "/dataflow:v1b3/JobExecutionStageInfo/stepName/step_name": step_name "/dataflow:v1b3/KeyRangeLocation": key_range_location -"/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/KeyRangeLocation/end": end +"/dataflow:v1b3/KeyRangeLocation/deprecatedPersistentDirectory": deprecated_persistent_directory +"/dataflow:v1b3/KeyRangeLocation/deliveryEndpoint": delivery_endpoint "/dataflow:v1b3/SourceGetMetadataRequest": source_get_metadata_request "/dataflow:v1b3/SourceGetMetadataRequest/source": source -"/dataflow:v1b3/NameAndKind": name_and_kind -"/dataflow:v1b3/NameAndKind/name": name -"/dataflow:v1b3/NameAndKind/kind": kind "/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/stageName": stage_name "/dataflow:v1b3/SeqMapTask/userFn": user_fn "/dataflow:v1b3/SeqMapTask/userFn/user_fn": user_fn +"/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/code": code "/dataflow:v1b3/WorkerMessageCode/parameters": parameters "/dataflow:v1b3/WorkerMessageCode/parameters/parameter": parameter +"/dataflow:v1b3/WorkerMessageCode/code": code "/dataflow:v1b3/CustomSourceLocation": custom_source_location "/dataflow:v1b3/CustomSourceLocation/stateful": stateful "/dataflow:v1b3/MapTask": map_task @@ -19036,19 +18798,19 @@ "/dataflow:v1b3/ReportWorkItemStatusResponse/workItemServiceStates": work_item_service_states "/dataflow:v1b3/ReportWorkItemStatusResponse/workItemServiceStates/work_item_service_state": work_item_service_state "/dataflow:v1b3/InstructionOutput": instruction_output -"/dataflow:v1b3/InstructionOutput/codec": codec -"/dataflow:v1b3/InstructionOutput/codec/codec": codec "/dataflow:v1b3/InstructionOutput/name": name "/dataflow:v1b3/InstructionOutput/originalName": original_name "/dataflow:v1b3/InstructionOutput/systemName": system_name "/dataflow:v1b3/InstructionOutput/onlyCountKeyBytes": only_count_key_bytes "/dataflow:v1b3/InstructionOutput/onlyCountValueBytes": only_count_value_bytes +"/dataflow:v1b3/InstructionOutput/codec": codec +"/dataflow:v1b3/InstructionOutput/codec/codec": codec "/dataflow:v1b3/CreateJobFromTemplateRequest": create_job_from_template_request +"/dataflow:v1b3/CreateJobFromTemplateRequest/gcsPath": gcs_path +"/dataflow:v1b3/CreateJobFromTemplateRequest/environment": environment "/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/CreateJobFromTemplateRequest/environment": environment "/dataflow:v1b3/IntegerMean": integer_mean "/dataflow:v1b3/IntegerMean/count": count "/dataflow:v1b3/IntegerMean/sum": sum @@ -19059,10 +18821,6 @@ "/dataflow:v1b3/ListJobsResponse/failedLocation": failed_location "/dataflow:v1b3/ListJobsResponse/failedLocation/failed_location": failed_location "/dataflow:v1b3/ComputationTopology": computation_topology -"/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/ComputationTopology/systemStageName": system_stage_name "/dataflow:v1b3/ComputationTopology/inputs": inputs "/dataflow:v1b3/ComputationTopology/inputs/input": input @@ -19070,6 +18828,10 @@ "/dataflow:v1b3/ComputationTopology/keyRanges": key_ranges "/dataflow:v1b3/ComputationTopology/keyRanges/key_range": key_range "/dataflow:v1b3/ComputationTopology/userStageName": user_stage_name +"/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/RuntimeEnvironment": runtime_environment "/dataflow:v1b3/RuntimeEnvironment/zone": zone "/dataflow:v1b3/RuntimeEnvironment/serviceAccountEmail": service_account_email @@ -19077,68 +18839,68 @@ "/dataflow:v1b3/RuntimeEnvironment/bypassTempDirValidation": bypass_temp_dir_validation "/dataflow:v1b3/RuntimeEnvironment/maxWorkers": max_workers "/dataflow:v1b3/StreamingSideInputLocation": streaming_side_input_location -"/dataflow:v1b3/StreamingSideInputLocation/tag": tag "/dataflow:v1b3/StreamingSideInputLocation/stateFamily": state_family +"/dataflow:v1b3/StreamingSideInputLocation/tag": tag "/dataflow:v1b3/MountedDataDisk": mounted_data_disk "/dataflow:v1b3/MountedDataDisk/dataDisk": data_disk "/dataflow:v1b3/LaunchTemplateResponse": launch_template_response "/dataflow:v1b3/LaunchTemplateResponse/job": job -"/dataflow:v1b3/DerivedSource": derived_source -"/dataflow:v1b3/DerivedSource/derivationMode": derivation_mode -"/dataflow:v1b3/DerivedSource/source": source "/dataflow:v1b3/Job": job -"/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/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/projectId": project_id "/dataflow:v1b3/Job/type": type +"/dataflow:v1b3/Job/projectId": project_id "/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/DerivedSource": derived_source +"/dataflow:v1b3/DerivedSource/derivationMode": derivation_mode +"/dataflow:v1b3/DerivedSource/source": source "/dataflow:v1b3/DynamicSourceSplit": dynamic_source_split "/dataflow:v1b3/DynamicSourceSplit/residual": residual "/dataflow:v1b3/DynamicSourceSplit/primary": primary "/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/SendDebugCaptureResponse": send_debug_capture_response -"/dataflow:v1b3/WriteInstruction": write_instruction -"/dataflow:v1b3/WriteInstruction/input": input -"/dataflow:v1b3/WriteInstruction/sink": sink -"/dataflow:v1b3/ConcatPosition": concat_position -"/dataflow:v1b3/ConcatPosition/index": index -"/dataflow:v1b3/ConcatPosition/position": position "/dataflow:v1b3/CounterStructuredNameAndMetadata": counter_structured_name_and_metadata "/dataflow:v1b3/CounterStructuredNameAndMetadata/name": name "/dataflow:v1b3/CounterStructuredNameAndMetadata/metadata": metadata -"/dataflow:v1b3/AutoscalingSettings": autoscaling_settings -"/dataflow:v1b3/AutoscalingSettings/algorithm": algorithm -"/dataflow:v1b3/AutoscalingSettings/maxNumWorkers": max_num_workers +"/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/StreamingComputationRanges": streaming_computation_ranges "/dataflow:v1b3/StreamingComputationRanges/computationId": computation_id "/dataflow:v1b3/StreamingComputationRanges/rangeAssignments": range_assignments "/dataflow:v1b3/StreamingComputationRanges/rangeAssignments/range_assignment": range_assignment +"/dataflow:v1b3/AutoscalingSettings": autoscaling_settings +"/dataflow:v1b3/AutoscalingSettings/maxNumWorkers": max_num_workers +"/dataflow:v1b3/AutoscalingSettings/algorithm": algorithm "/dataflow:v1b3/ExecutionStageSummary": execution_stage_summary "/dataflow:v1b3/ExecutionStageSummary/outputSource": output_source "/dataflow:v1b3/ExecutionStageSummary/outputSource/output_source": output_source @@ -19155,13 +18917,19 @@ "/dataflow:v1b3/SendWorkerMessagesRequest/workerMessages": worker_messages "/dataflow:v1b3/SendWorkerMessagesRequest/workerMessages/worker_message": worker_message "/dataflow:v1b3/SourceSplitShard": source_split_shard -"/dataflow:v1b3/SourceSplitShard/source": source "/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/experiments": experiments +"/dataflow:v1b3/Environment/experiments/experiment": experiment +"/dataflow:v1b3/Environment/internalExperiments": internal_experiments +"/dataflow:v1b3/Environment/internalExperiments/internal_experiment": internal_experiment +"/dataflow:v1b3/Environment/version": version +"/dataflow:v1b3/Environment/version/version": version "/dataflow:v1b3/Environment/serviceAccountEmail": service_account_email "/dataflow:v1b3/Environment/sdkPipelineOptions": sdk_pipeline_options "/dataflow:v1b3/Environment/sdkPipelineOptions/sdk_pipeline_option": sdk_pipeline_option @@ -19172,18 +18940,12 @@ "/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/internalExperiments": internal_experiments -"/dataflow:v1b3/Environment/internalExperiments/internal_experiment": internal_experiment -"/dataflow:v1b3/Environment/version": version -"/dataflow:v1b3/Environment/version/version": version "/dataflow:v1b3/StreamingComputationTask": streaming_computation_task -"/dataflow:v1b3/StreamingComputationTask/taskType": task_type "/dataflow:v1b3/StreamingComputationTask/computationRanges": computation_ranges "/dataflow:v1b3/StreamingComputationTask/computationRanges/computation_range": computation_range "/dataflow:v1b3/StreamingComputationTask/dataDisks": data_disks "/dataflow:v1b3/StreamingComputationTask/dataDisks/data_disk": data_disk +"/dataflow:v1b3/StreamingComputationTask/taskType": task_type "/dataflow:v1b3/SendDebugCaptureRequest": send_debug_capture_request "/dataflow:v1b3/SendDebugCaptureRequest/data": data "/dataflow:v1b3/SendDebugCaptureRequest/componentId": component_id @@ -19200,32 +18962,32 @@ "/dataflow:v1b3/StreamingSetupTask/receiveWorkPort": receive_work_port "/dataflow:v1b3/StreamingSetupTask/streamingComputationTopology": streaming_computation_topology "/dataflow:v1b3/PubsubLocation": pubsub_location +"/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/PubsubLocation/subscription": subscription "/dataflow:v1b3/PubsubLocation/dropLateData": drop_late_data -"/dataflow:v1b3/PubsubLocation/trackingSubscription": tracking_subscription "/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/WorkerHealthReport/pods": pods +"/dataflow:v1b3/WorkerHealthReport/pods/pod": pod +"/dataflow:v1b3/WorkerHealthReport/pods/pod/pod": pod "/dataflow:v1b3/JobMessage": job_message -"/dataflow:v1b3/JobMessage/time": time -"/dataflow:v1b3/JobMessage/id": id "/dataflow:v1b3/JobMessage/messageText": message_text "/dataflow:v1b3/JobMessage/messageImportance": message_importance +"/dataflow:v1b3/JobMessage/time": time +"/dataflow:v1b3/JobMessage/id": id "/dataflow:v1b3/ParameterMetadata": parameter_metadata +"/dataflow:v1b3/ParameterMetadata/isOptional": is_optional +"/dataflow:v1b3/ParameterMetadata/name": name "/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 "/dataflow:v1b3/MultiOutputInfo": multi_output_info "/dataflow:v1b3/MultiOutputInfo/tag": tag "/dataflow:v1b3/SourceSplitRequest": source_split_request @@ -19233,15 +18995,20 @@ "/dataflow:v1b3/SourceSplitRequest/options": options "/dataflow:v1b3/SourceGetMetadataResponse": source_get_metadata_response "/dataflow:v1b3/SourceGetMetadataResponse/metadata": metadata +"/dataflow:v1b3/ShellTask": shell_task +"/dataflow:v1b3/ShellTask/command": command +"/dataflow:v1b3/ShellTask/exitCode": exit_code "/dataflow:v1b3/MetricShortId": metric_short_id "/dataflow:v1b3/MetricShortId/metricIndex": metric_index "/dataflow:v1b3/MetricShortId/shortId": short_id -"/dataflow:v1b3/ShellTask": shell_task -"/dataflow:v1b3/ShellTask/exitCode": exit_code -"/dataflow:v1b3/ShellTask/command": command "/dataflow:v1b3/TaskRunnerSettings": task_runner_settings -"/dataflow:v1b3/TaskRunnerSettings/streamingWorkerMainClass": streaming_worker_main_class +"/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 @@ -19251,15 +19018,10 @@ "/dataflow:v1b3/TaskRunnerSettings/logToSerialconsole": log_to_serialconsole "/dataflow:v1b3/TaskRunnerSettings/continueOnException": continue_on_exception "/dataflow:v1b3/TaskRunnerSettings/parallelWorkerSettings": parallel_worker_settings -"/dataflow:v1b3/TaskRunnerSettings/taskUser": task_user "/dataflow:v1b3/TaskRunnerSettings/vmId": vm_id +"/dataflow:v1b3/TaskRunnerSettings/taskUser": task_user "/dataflow:v1b3/TaskRunnerSettings/alsologtostderr": alsologtostderr "/dataflow:v1b3/TaskRunnerSettings/taskGroup": task_group -"/dataflow:v1b3/TaskRunnerSettings/harnessCommand": harness_command -"/dataflow:v1b3/TaskRunnerSettings/logDir": log_dir -"/dataflow:v1b3/TaskRunnerSettings/dataflowApiVersion": dataflow_api_version -"/dataflow:v1b3/TaskRunnerSettings/oauthScopes": oauth_scopes -"/dataflow:v1b3/TaskRunnerSettings/oauthScopes/oauth_scope": oauth_scope "/dataflow:v1b3/Position": position "/dataflow:v1b3/Position/recordIndex": record_index "/dataflow:v1b3/Position/shufflePosition": shuffle_position @@ -19267,10 +19029,9 @@ "/dataflow:v1b3/Position/byteOffset": byte_offset "/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 @@ -19278,22 +19039,15 @@ "/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/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/WorkerPool/network": network "/dataflow:v1b3/WorkerPool/defaultPackageSet": default_package_set +"/dataflow:v1b3/WorkerPool/network": network "/dataflow:v1b3/WorkerPool/zone": zone -"/dataflow:v1b3/WorkerPool/numThreadsPerWorker": num_threads_per_worker "/dataflow:v1b3/WorkerPool/numWorkers": num_workers +"/dataflow:v1b3/WorkerPool/numThreadsPerWorker": num_threads_per_worker "/dataflow:v1b3/WorkerPool/diskSourceImage": disk_source_image "/dataflow:v1b3/WorkerPool/packages": packages "/dataflow:v1b3/WorkerPool/packages/package": package @@ -19306,14 +19060,18 @@ "/dataflow:v1b3/WorkerPool/diskType": disk_type "/dataflow:v1b3/WorkerPool/machineType": machine_type "/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/taskrunnerSettings": taskrunner_settings +"/dataflow:v1b3/WorkerPool/autoscalingSettings": autoscaling_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/WorkItem": work_item -"/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 "/dataflow:v1b3/WorkItem/seqMapTask": seq_map_task @@ -19321,19 +19079,22 @@ "/dataflow:v1b3/WorkItem/packages/package": package "/dataflow:v1b3/WorkItem/projectId": project_id "/dataflow:v1b3/WorkItem/reportStatusInterval": report_status_interval -"/dataflow:v1b3/WorkItem/sourceOperationTask": source_operation_task "/dataflow:v1b3/WorkItem/streamingSetupTask": streaming_setup_task -"/dataflow:v1b3/WorkItem/streamingConfigTask": streaming_config_task +"/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/ReportedParallelism": reported_parallelism +"/dataflow:v1b3/ReportedParallelism/isInfinite": is_infinite +"/dataflow:v1b3/ReportedParallelism/value": value "/dataflow:v1b3/ResourceUtilizationReport": resource_utilization_report "/dataflow:v1b3/ResourceUtilizationReport/cpuTime": cpu_time "/dataflow:v1b3/ResourceUtilizationReport/cpuTime/cpu_time": cpu_time -"/dataflow:v1b3/ReportedParallelism": reported_parallelism -"/dataflow:v1b3/ReportedParallelism/value": value -"/dataflow:v1b3/ReportedParallelism/isInfinite": is_infinite "/dataflow:v1b3/TopologyConfig": topology_config -"/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/TopologyConfig/computations": computations @@ -19341,18 +19102,19 @@ "/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/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/baseUrl": base_url -"/dataflow:v1b3/WorkerSettings/reportingEnabled": reporting_enabled "/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/baseUrl": base_url +"/dataflow:v1b3/WorkerSettings/reportingEnabled": reporting_enabled "/dataflow:v1b3/DataDiskAssignment": data_disk_assignment "/dataflow:v1b3/DataDiskAssignment/vmInstance": vm_instance "/dataflow:v1b3/DataDiskAssignment/dataDisks": data_disks @@ -19362,40 +19124,164 @@ "/dataflow:v1b3/ApproximateSplitRequest": approximate_split_request "/dataflow:v1b3/ApproximateSplitRequest/position": position "/dataflow:v1b3/ApproximateSplitRequest/fractionConsumed": fraction_consumed +"/dataflow:v1b3/Status": status +"/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/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/SendWorkerMessagesResponse": send_worker_messages_response +"/dataflow:v1b3/SendWorkerMessagesResponse/workerMessageResponses": worker_message_responses +"/dataflow:v1b3/SendWorkerMessagesResponse/workerMessageResponses/worker_message_response": worker_message_response +"/dataflow:v1b3/LeaseWorkItemResponse": lease_work_item_response +"/dataflow:v1b3/LeaseWorkItemResponse/workItems": work_items +"/dataflow:v1b3/LeaseWorkItemResponse/workItems/work_item": work_item +"/dataflow:v1b3/TransformSummary": transform_summary +"/dataflow:v1b3/TransformSummary/name": name +"/dataflow:v1b3/TransformSummary/id": id +"/dataflow:v1b3/TransformSummary/outputCollectionName": output_collection_name +"/dataflow:v1b3/TransformSummary/outputCollectionName/output_collection_name": output_collection_name +"/dataflow:v1b3/TransformSummary/displayData": display_data +"/dataflow:v1b3/TransformSummary/displayData/display_datum": display_datum +"/dataflow:v1b3/TransformSummary/kind": kind +"/dataflow:v1b3/TransformSummary/inputCollectionName": input_collection_name +"/dataflow:v1b3/TransformSummary/inputCollectionName/input_collection_name": input_collection_name +"/dataflow:v1b3/StreamingComputationConfig": streaming_computation_config +"/dataflow:v1b3/StreamingComputationConfig/systemName": system_name +"/dataflow:v1b3/StreamingComputationConfig/stageName": stage_name +"/dataflow:v1b3/StreamingComputationConfig/instructions": instructions +"/dataflow:v1b3/StreamingComputationConfig/instructions/instruction": instruction +"/dataflow:v1b3/StreamingComputationConfig/computationId": computation_id +"/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/spec": spec +"/dataflow:v1b3/Sink/spec/spec": spec +"/dataflow:v1b3/Sink/codec": codec +"/dataflow:v1b3/Sink/codec/codec": codec +"/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/originalCombineValuesStepName": original_combine_values_step_name +"/dataflow:v1b3/PartialGroupByKeyInstruction/sideInputs": side_inputs +"/dataflow:v1b3/PartialGroupByKeyInstruction/sideInputs/side_input": side_input +"/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/StageSource": stage_source +"/dataflow:v1b3/StageSource/originalTransformOrCollection": original_transform_or_collection +"/dataflow:v1b3/StageSource/name": name +"/dataflow:v1b3/StageSource/sizeBytes": size_bytes +"/dataflow:v1b3/StageSource/userName": user_name +"/dataflow:v1b3/InstructionInput": instruction_input +"/dataflow:v1b3/InstructionInput/producerInstructionIndex": producer_instruction_index +"/dataflow:v1b3/InstructionInput/outputNum": output_num +"/dataflow:v1b3/StringList": string_list +"/dataflow:v1b3/StringList/elements": elements +"/dataflow:v1b3/StringList/elements/element": element +"/dataflow:v1b3/DisplayData": display_data +"/dataflow:v1b3/DisplayData/durationValue": duration_value +"/dataflow:v1b3/DisplayData/int64Value": int64_value +"/dataflow:v1b3/DisplayData/namespace": namespace +"/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/timestampValue": timestamp_value +"/dataflow:v1b3/DisplayData/boolValue": bool_value +"/dataflow:v1b3/DisplayData/javaClassValue": java_class_value +"/dataflow:v1b3/DisplayData/strValue": str_value +"/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/workItemTypes": work_item_types +"/dataflow:v1b3/LeaseWorkItemRequest/workItemTypes/work_item_type": work_item_type +"/dataflow:v1b3/LeaseWorkItemRequest/location": location +"/dataflow:v1b3/GetDebugConfigRequest": get_debug_config_request +"/dataflow:v1b3/GetDebugConfigRequest/componentId": component_id +"/dataflow:v1b3/GetDebugConfigRequest/workerId": worker_id +"/dataflow:v1b3/GetTemplateResponse": get_template_response +"/dataflow:v1b3/GetTemplateResponse/metadata": metadata +"/dataflow:v1b3/GetTemplateResponse/status": status +"/dataflow:v1b3/ReportWorkItemStatusRequest": report_work_item_status_request +"/dataflow:v1b3/ReportWorkItemStatusRequest/workItemStatuses": work_item_statuses +"/dataflow:v1b3/ReportWorkItemStatusRequest/workItemStatuses/work_item_status": work_item_status +"/dataflow:v1b3/ReportWorkItemStatusRequest/workerId": worker_id +"/dataflow:v1b3/ReportWorkItemStatusRequest/currentWorkerTime": current_worker_time +"/dataflow:v1b3/ReportWorkItemStatusRequest/location": location +"/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/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/PipelineDescription": pipeline_description +"/dataflow:v1b3/PipelineDescription/originalPipelineTransform": original_pipeline_transform +"/dataflow:v1b3/PipelineDescription/originalPipelineTransform/original_pipeline_transform": original_pipeline_transform +"/dataflow:v1b3/PipelineDescription/displayData": display_data +"/dataflow:v1b3/PipelineDescription/displayData/display_datum": display_datum +"/dataflow:v1b3/PipelineDescription/executionPipelineStage": execution_pipeline_stage +"/dataflow:v1b3/PipelineDescription/executionPipelineStage/execution_pipeline_stage": execution_pipeline_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/JobExecutionInfo": job_execution_info +"/dataflow:v1b3/JobExecutionInfo/stages": stages +"/dataflow:v1b3/JobExecutionInfo/stages/stage": stage +"/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/ListJobMessagesResponse": list_job_messages_response +"/dataflow:v1b3/ListJobMessagesResponse/nextPageToken": next_page_token +"/dataflow:v1b3/ListJobMessagesResponse/jobMessages": job_messages +"/dataflow:v1b3/ListJobMessagesResponse/jobMessages/job_message": job_message +"/dataflow:v1b3/CounterMetadata": counter_metadata +"/dataflow:v1b3/CounterMetadata/standardUnits": standard_units +"/dataflow:v1b3/CounterMetadata/otherUnits": other_units +"/dataflow:v1b3/CounterMetadata/kind": kind +"/dataflow:v1b3/CounterMetadata/description": description +"/dataflow:v1b3/ApproximateReportedProgress": approximate_reported_progress +"/dataflow:v1b3/ApproximateReportedProgress/fractionConsumed": fraction_consumed +"/dataflow:v1b3/ApproximateReportedProgress/consumedParallelism": consumed_parallelism +"/dataflow:v1b3/ApproximateReportedProgress/remainingParallelism": remaining_parallelism +"/dataflow:v1b3/ApproximateReportedProgress/position": position +"/dataproc:v1/quotaUser": quota_user "/dataproc:v1/fields": fields "/dataproc:v1/key": key -"/dataproc:v1/quotaUser": quota_user -"/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/region": region -"/dataproc:v1/dataproc.projects.regions.clusters.list/filter": filter -"/dataproc:v1/dataproc.projects.regions.clusters.list/pageToken": page_token -"/dataproc:v1/dataproc.projects.regions.clusters.create/projectId": project_id -"/dataproc:v1/dataproc.projects.regions.clusters.create/region": region -"/dataproc:v1/dataproc.projects.regions.clusters.patch/region": region -"/dataproc:v1/dataproc.projects.regions.clusters.patch/updateMask": update_mask -"/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.get/region": region -"/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.delete/projectId": project_id -"/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.diagnose": diagnose_cluster -"/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.operations.cancel/name": name +"/dataproc:v1/dataproc.projects.regions.operations.delete/name": name +"/dataproc:v1/dataproc.projects.regions.operations.list/pageSize": page_size "/dataproc:v1/dataproc.projects.regions.operations.list/filter": filter "/dataproc:v1/dataproc.projects.regions.operations.list/name": name "/dataproc:v1/dataproc.projects.regions.operations.list/pageToken": page_token -"/dataproc:v1/dataproc.projects.regions.operations.list/pageSize": page_size "/dataproc:v1/dataproc.projects.regions.operations.get/name": name -"/dataproc:v1/dataproc.projects.regions.operations.cancel/name": name -"/dataproc:v1/dataproc.projects.regions.operations.delete/name": name +"/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/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.jobs.cancel/jobId": job_id +"/dataproc:v1/dataproc.projects.regions.jobs.get/region": region "/dataproc:v1/dataproc.projects.regions.jobs.get/projectId": project_id "/dataproc:v1/dataproc.projects.regions.jobs.get/jobId": job_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/projectId": project_id "/dataproc:v1/dataproc.projects.regions.jobs.patch/jobId": job_id @@ -19404,32 +19290,147 @@ "/dataproc:v1/dataproc.projects.regions.jobs.submit": submit_job "/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/region": region "/dataproc:v1/dataproc.projects.regions.jobs.delete/projectId": project_id "/dataproc:v1/dataproc.projects.regions.jobs.delete/jobId": job_id -"/dataproc:v1/dataproc.projects.regions.jobs.list/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.jobs.delete/region": region "/dataproc:v1/dataproc.projects.regions.jobs.list/filter": filter "/dataproc:v1/dataproc.projects.regions.jobs.list/jobStateMatcher": job_state_matcher "/dataproc:v1/dataproc.projects.regions.jobs.list/pageToken": page_token "/dataproc:v1/dataproc.projects.regions.jobs.list/pageSize": page_size "/dataproc:v1/dataproc.projects.regions.jobs.list/region": region "/dataproc:v1/dataproc.projects.regions.jobs.list/clusterName": cluster_name -"/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/projectId": project_id -"/dataproc:v1/dataproc.projects.regions.jobs.cancel/jobId": job_id +"/dataproc:v1/dataproc.projects.regions.jobs.list/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.clusters.list/region": region +"/dataproc:v1/dataproc.projects.regions.clusters.list/filter": filter +"/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.create/region": region +"/dataproc:v1/dataproc.projects.regions.clusters.create/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.clusters.get/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.clusters.get/region": region +"/dataproc:v1/dataproc.projects.regions.clusters.get/clusterName": cluster_name +"/dataproc:v1/dataproc.projects.regions.clusters.patch/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.clusters.patch/region": region +"/dataproc:v1/dataproc.projects.regions.clusters.patch/updateMask": update_mask +"/dataproc:v1/dataproc.projects.regions.clusters.patch/clusterName": cluster_name +"/dataproc:v1/dataproc.projects.regions.clusters.delete/projectId": project_id +"/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.diagnose": diagnose_cluster +"/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/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 +"/dataproc:v1/InstanceGroupConfig": instance_group_config +"/dataproc:v1/InstanceGroupConfig/accelerators": accelerators +"/dataproc:v1/InstanceGroupConfig/accelerators/accelerator": accelerator +"/dataproc:v1/InstanceGroupConfig/numInstances": num_instances +"/dataproc:v1/InstanceGroupConfig/diskConfig": disk_config +"/dataproc:v1/InstanceGroupConfig/isPreemptible": is_preemptible +"/dataproc:v1/InstanceGroupConfig/managedGroupConfig": managed_group_config +"/dataproc:v1/InstanceGroupConfig/machineTypeUri": machine_type_uri +"/dataproc:v1/InstanceGroupConfig/imageUri": image_uri +"/dataproc:v1/InstanceGroupConfig/instanceNames": instance_names +"/dataproc:v1/InstanceGroupConfig/instanceNames/instance_name": instance_name +"/dataproc:v1/JobScheduling": job_scheduling +"/dataproc:v1/JobScheduling/maxFailuresPerHour": max_failures_per_hour +"/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/NodeInitializationAction": node_initialization_action +"/dataproc:v1/NodeInitializationAction/executionTimeout": execution_timeout +"/dataproc:v1/NodeInitializationAction/executableFile": executable_file +"/dataproc:v1/CancelJobRequest": cancel_job_request +"/dataproc:v1/SparkSqlJob": spark_sql_job +"/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 +"/dataproc:v1/SparkSqlJob/jarFileUris/jar_file_uri": jar_file_uri +"/dataproc:v1/SparkSqlJob/loggingConfig": logging_config +"/dataproc:v1/SparkSqlJob/properties": properties +"/dataproc:v1/SparkSqlJob/properties/property": property +"/dataproc:v1/Cluster": cluster +"/dataproc:v1/Cluster/labels": labels +"/dataproc:v1/Cluster/labels/label": label +"/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/projectId": project_id +"/dataproc:v1/ListOperationsResponse": list_operations_response +"/dataproc:v1/ListOperationsResponse/operations": operations +"/dataproc:v1/ListOperationsResponse/operations/operation": operation +"/dataproc:v1/ListOperationsResponse/nextPageToken": next_page_token +"/dataproc:v1/OperationMetadata": operation_metadata +"/dataproc:v1/OperationMetadata/endTime": end_time +"/dataproc:v1/OperationMetadata/startTime": start_time +"/dataproc:v1/OperationMetadata/warnings": warnings +"/dataproc:v1/OperationMetadata/warnings/warning": warning +"/dataproc:v1/OperationMetadata/insertTime": insert_time +"/dataproc:v1/OperationMetadata/statusHistory": status_history +"/dataproc:v1/OperationMetadata/statusHistory/status_history": status_history +"/dataproc:v1/OperationMetadata/operationType": operation_type +"/dataproc:v1/OperationMetadata/description": description +"/dataproc:v1/OperationMetadata/status": status +"/dataproc:v1/OperationMetadata/details": details +"/dataproc:v1/OperationMetadata/state": state +"/dataproc:v1/OperationMetadata/clusterUuid": cluster_uuid +"/dataproc:v1/OperationMetadata/clusterName": cluster_name +"/dataproc:v1/OperationMetadata/innerState": inner_state +"/dataproc:v1/SoftwareConfig": software_config +"/dataproc:v1/SoftwareConfig/imageVersion": image_version +"/dataproc:v1/SoftwareConfig/properties": properties +"/dataproc:v1/SoftwareConfig/properties/property": property +"/dataproc:v1/JobPlacement": job_placement +"/dataproc:v1/JobPlacement/clusterName": cluster_name +"/dataproc:v1/JobPlacement/clusterUuid": cluster_uuid +"/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 +"/dataproc:v1/PigJob/scriptVariables/script_variable": script_variable +"/dataproc:v1/PigJob/loggingConfig": logging_config +"/dataproc:v1/PigJob/properties": properties +"/dataproc:v1/PigJob/properties/property": property +"/dataproc:v1/ClusterStatus": cluster_status +"/dataproc:v1/ClusterStatus/stateStartTime": state_start_time +"/dataproc:v1/ClusterStatus/substate": substate +"/dataproc:v1/ClusterStatus/detail": detail +"/dataproc:v1/ClusterStatus/state": state "/dataproc:v1/ListClustersResponse": list_clusters_response "/dataproc:v1/ListClustersResponse/clusters": clusters "/dataproc:v1/ListClustersResponse/clusters/cluster": cluster "/dataproc:v1/ListClustersResponse/nextPageToken": next_page_token +"/dataproc:v1/SparkJob": spark_job +"/dataproc:v1/SparkJob/mainClass": main_class +"/dataproc:v1/SparkJob/archiveUris": archive_uris +"/dataproc:v1/SparkJob/archiveUris/archive_uri": archive_uri +"/dataproc:v1/SparkJob/mainJarFileUri": main_jar_file_uri +"/dataproc:v1/SparkJob/jarFileUris": jar_file_uris +"/dataproc:v1/SparkJob/jarFileUris/jar_file_uri": jar_file_uri +"/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/Job": job -"/dataproc:v1/Job/labels": labels -"/dataproc:v1/Job/labels/label": label -"/dataproc:v1/Job/driverOutputResourceUri": driver_output_resource_uri -"/dataproc:v1/Job/sparkJob": spark_job -"/dataproc:v1/Job/sparkSqlJob": spark_sql_job -"/dataproc:v1/Job/statusHistory": status_history -"/dataproc:v1/Job/statusHistory/status_history": status_history "/dataproc:v1/Job/yarnApplications": yarn_applications "/dataproc:v1/Job/yarnApplications/yarn_application": yarn_application "/dataproc:v1/Job/pysparkJob": pyspark_job @@ -19441,25 +19442,18 @@ "/dataproc:v1/Job/scheduling": scheduling "/dataproc:v1/Job/pigJob": pig_job "/dataproc:v1/Job/hiveJob": hive_job -"/dataproc:v1/SparkJob": spark_job -"/dataproc:v1/SparkJob/jarFileUris": jar_file_uris -"/dataproc:v1/SparkJob/jarFileUris/jar_file_uri": jar_file_uri -"/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/SparkJob/mainClass": main_class -"/dataproc:v1/SparkJob/archiveUris": archive_uris -"/dataproc:v1/SparkJob/archiveUris/archive_uri": archive_uri -"/dataproc:v1/SparkJob/mainJarFileUri": main_jar_file_uri +"/dataproc:v1/Job/labels": labels +"/dataproc:v1/Job/labels/label": label +"/dataproc:v1/Job/driverOutputResourceUri": driver_output_resource_uri +"/dataproc:v1/Job/statusHistory": status_history +"/dataproc:v1/Job/statusHistory/status_history": status_history +"/dataproc:v1/Job/sparkJob": spark_job +"/dataproc:v1/Job/sparkSqlJob": spark_sql_job "/dataproc:v1/JobStatus": job_status -"/dataproc:v1/JobStatus/stateStartTime": state_start_time -"/dataproc:v1/JobStatus/substate": substate "/dataproc:v1/JobStatus/state": state "/dataproc:v1/JobStatus/details": details +"/dataproc:v1/JobStatus/stateStartTime": state_start_time +"/dataproc:v1/JobStatus/substate": substate "/dataproc:v1/ManagedGroupConfig": managed_group_config "/dataproc:v1/ManagedGroupConfig/instanceGroupManagerName": instance_group_manager_name "/dataproc:v1/ManagedGroupConfig/instanceTemplateName": instance_template_name @@ -19468,19 +19462,15 @@ "/dataproc:v1/ClusterOperationStatus/details": details "/dataproc:v1/ClusterOperationStatus/innerState": inner_state "/dataproc:v1/ClusterOperationStatus/stateStartTime": state_start_time +"/dataproc:v1/QueryList": query_list +"/dataproc:v1/QueryList/queries": queries +"/dataproc:v1/QueryList/queries/query": query "/dataproc:v1/YarnApplication": yarn_application "/dataproc:v1/YarnApplication/state": state "/dataproc:v1/YarnApplication/name": name "/dataproc:v1/YarnApplication/trackingUrl": tracking_url "/dataproc:v1/YarnApplication/progress": progress -"/dataproc:v1/QueryList": query_list -"/dataproc:v1/QueryList/queries": queries -"/dataproc:v1/QueryList/queries/query": query "/dataproc:v1/HadoopJob": hadoop_job -"/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/HadoopJob/jarFileUris": jar_file_uris "/dataproc:v1/HadoopJob/jarFileUris/jar_file_uri": jar_file_uri "/dataproc:v1/HadoopJob/loggingConfig": logging_config @@ -19490,22 +19480,26 @@ "/dataproc:v1/HadoopJob/args/arg": arg "/dataproc:v1/HadoopJob/fileUris": file_uris "/dataproc:v1/HadoopJob/fileUris/file_uri": file_uri +"/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/DiagnoseClusterRequest": diagnose_cluster_request "/dataproc:v1/DiskConfig": disk_config "/dataproc:v1/DiskConfig/numLocalSsds": num_local_ssds "/dataproc:v1/DiskConfig/bootDiskSizeGb": boot_disk_size_gb "/dataproc:v1/ClusterOperationMetadata": cluster_operation_metadata -"/dataproc:v1/ClusterOperationMetadata/operationType": operation_type -"/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/ClusterOperationMetadata/status": status "/dataproc:v1/ClusterOperationMetadata/statusHistory": status_history "/dataproc:v1/ClusterOperationMetadata/statusHistory/status_history": status_history -"/dataproc:v1/ClusterOperationMetadata/clusterUuid": cluster_uuid "/dataproc:v1/ClusterOperationMetadata/clusterName": cluster_name +"/dataproc:v1/ClusterOperationMetadata/clusterUuid": cluster_uuid +"/dataproc:v1/ClusterOperationMetadata/operationType": operation_type +"/dataproc:v1/ClusterOperationMetadata/description": description +"/dataproc:v1/ClusterOperationMetadata/warnings": warnings +"/dataproc:v1/ClusterOperationMetadata/warnings/warning": warning "/dataproc:v1/Empty": empty "/dataproc:v1/HiveJob": hive_job "/dataproc:v1/HiveJob/continueOnFailure": continue_on_failure @@ -19529,8 +19523,6 @@ "/dataproc:v1/ClusterConfig/masterConfig": master_config "/dataproc:v1/ClusterConfig/secondaryWorkerConfig": secondary_worker_config "/dataproc:v1/PySparkJob": py_spark_job -"/dataproc:v1/PySparkJob/archiveUris": archive_uris -"/dataproc:v1/PySparkJob/archiveUris/archive_uri": archive_uri "/dataproc:v1/PySparkJob/jarFileUris": jar_file_uris "/dataproc:v1/PySparkJob/jarFileUris/jar_file_uri": jar_file_uri "/dataproc:v1/PySparkJob/loggingConfig": logging_config @@ -19543,10 +19535,12 @@ "/dataproc:v1/PySparkJob/pythonFileUris": python_file_uris "/dataproc:v1/PySparkJob/pythonFileUris/python_file_uri": python_file_uri "/dataproc:v1/PySparkJob/mainPythonFileUri": main_python_file_uri +"/dataproc:v1/PySparkJob/archiveUris": archive_uris +"/dataproc:v1/PySparkJob/archiveUris/archive_uri": archive_uri "/dataproc:v1/GceClusterConfig": gce_cluster_config -"/dataproc:v1/GceClusterConfig/internalIpOnly": internal_ip_only "/dataproc:v1/GceClusterConfig/metadata": metadata "/dataproc:v1/GceClusterConfig/metadata/metadatum": metadatum +"/dataproc:v1/GceClusterConfig/internalIpOnly": internal_ip_only "/dataproc:v1/GceClusterConfig/serviceAccountScopes": service_account_scopes "/dataproc:v1/GceClusterConfig/serviceAccountScopes/service_account_scope": service_account_scope "/dataproc:v1/GceClusterConfig/tags": tags @@ -19555,14 +19549,14 @@ "/dataproc:v1/GceClusterConfig/subnetworkUri": subnetwork_uri "/dataproc:v1/GceClusterConfig/networkUri": network_uri "/dataproc:v1/GceClusterConfig/zoneUri": zone_uri -"/dataproc:v1/AcceleratorConfig": accelerator_config -"/dataproc:v1/AcceleratorConfig/acceleratorCount": accelerator_count -"/dataproc:v1/AcceleratorConfig/acceleratorTypeUri": accelerator_type_uri "/dataproc:v1/ClusterMetrics": cluster_metrics "/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/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 @@ -19586,120 +19580,57 @@ "/dataproc:v1/JobReference/jobId": job_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 -"/dataproc:v1/InstanceGroupConfig": instance_group_config -"/dataproc:v1/InstanceGroupConfig/accelerators": accelerators -"/dataproc:v1/InstanceGroupConfig/accelerators/accelerator": accelerator -"/dataproc:v1/InstanceGroupConfig/numInstances": num_instances -"/dataproc:v1/InstanceGroupConfig/diskConfig": disk_config -"/dataproc:v1/InstanceGroupConfig/managedGroupConfig": managed_group_config -"/dataproc:v1/InstanceGroupConfig/isPreemptible": is_preemptible -"/dataproc:v1/InstanceGroupConfig/imageUri": image_uri -"/dataproc:v1/InstanceGroupConfig/machineTypeUri": machine_type_uri -"/dataproc:v1/InstanceGroupConfig/instanceNames": instance_names -"/dataproc:v1/InstanceGroupConfig/instanceNames/instance_name": instance_name -"/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/scriptVariables": script_variables -"/dataproc:v1/SparkSqlJob/scriptVariables/script_variable": script_variable -"/dataproc:v1/SparkSqlJob/jarFileUris": jar_file_uris -"/dataproc:v1/SparkSqlJob/jarFileUris/jar_file_uri": jar_file_uri -"/dataproc:v1/SparkSqlJob/loggingConfig": logging_config -"/dataproc:v1/SparkSqlJob/properties": properties -"/dataproc:v1/SparkSqlJob/properties/property": property -"/dataproc:v1/Cluster": cluster -"/dataproc:v1/Cluster/projectId": project_id -"/dataproc:v1/Cluster/labels": labels -"/dataproc:v1/Cluster/labels/label": label -"/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/ListOperationsResponse": list_operations_response -"/dataproc:v1/ListOperationsResponse/operations": operations -"/dataproc:v1/ListOperationsResponse/operations/operation": operation -"/dataproc:v1/ListOperationsResponse/nextPageToken": next_page_token -"/dataproc:v1/OperationMetadata": operation_metadata -"/dataproc:v1/OperationMetadata/endTime": end_time -"/dataproc:v1/OperationMetadata/startTime": start_time -"/dataproc:v1/OperationMetadata/warnings": warnings -"/dataproc:v1/OperationMetadata/warnings/warning": warning -"/dataproc:v1/OperationMetadata/insertTime": insert_time -"/dataproc:v1/OperationMetadata/statusHistory": status_history -"/dataproc:v1/OperationMetadata/statusHistory/status_history": status_history -"/dataproc:v1/OperationMetadata/operationType": operation_type -"/dataproc:v1/OperationMetadata/description": description -"/dataproc:v1/OperationMetadata/status": status -"/dataproc:v1/OperationMetadata/details": details -"/dataproc:v1/OperationMetadata/state": state -"/dataproc:v1/OperationMetadata/clusterName": cluster_name -"/dataproc:v1/OperationMetadata/clusterUuid": cluster_uuid -"/dataproc:v1/OperationMetadata/innerState": inner_state -"/dataproc:v1/JobPlacement": job_placement -"/dataproc:v1/JobPlacement/clusterName": cluster_name -"/dataproc:v1/JobPlacement/clusterUuid": cluster_uuid -"/dataproc:v1/SoftwareConfig": software_config -"/dataproc:v1/SoftwareConfig/imageVersion": image_version -"/dataproc:v1/SoftwareConfig/properties": properties -"/dataproc:v1/SoftwareConfig/properties/property": property -"/dataproc:v1/PigJob": pig_job -"/dataproc:v1/PigJob/jarFileUris": jar_file_uris -"/dataproc:v1/PigJob/jarFileUris/jar_file_uri": jar_file_uri -"/dataproc:v1/PigJob/scriptVariables": script_variables -"/dataproc:v1/PigJob/scriptVariables/script_variable": script_variable -"/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/ClusterStatus": cluster_status -"/dataproc:v1/ClusterStatus/detail": detail -"/dataproc:v1/ClusterStatus/state": state -"/dataproc:v1/ClusterStatus/stateStartTime": state_start_time -"/dataproc:v1/ClusterStatus/substate": substate -"/datastore:v1/fields": fields "/datastore:v1/key": key "/datastore:v1/quotaUser": quota_user +"/datastore:v1/fields": fields "/datastore:v1/datastore.projects.allocateIds": allocate_project_ids "/datastore:v1/datastore.projects.allocateIds/projectId": project_id -"/datastore:v1/datastore.projects.commit": commit_project -"/datastore:v1/datastore.projects.commit/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/RunQueryRequest": run_query_request +"/datastore:v1/RunQueryRequest/readOptions": read_options +"/datastore:v1/RunQueryRequest/query": query +"/datastore:v1/RunQueryRequest/partitionId": partition_id +"/datastore:v1/RunQueryRequest/gqlQuery": gql_query +"/datastore:v1/RollbackRequest": rollback_request +"/datastore:v1/RollbackRequest/transaction": transaction +"/datastore:v1/CompositeFilter": composite_filter +"/datastore:v1/CompositeFilter/filters": filters +"/datastore:v1/CompositeFilter/filters/filter": filter +"/datastore:v1/CompositeFilter/op": op +"/datastore:v1/AllocateIdsResponse": allocate_ids_response +"/datastore:v1/AllocateIdsResponse/keys": keys +"/datastore:v1/AllocateIdsResponse/keys/key": key +"/datastore:v1/Query": query +"/datastore:v1/Query/limit": limit +"/datastore:v1/Query/filter": filter +"/datastore:v1/Query/startCursor": start_cursor +"/datastore:v1/Query/offset": offset +"/datastore:v1/Query/kind": kind +"/datastore:v1/Query/kind/kind": kind +"/datastore:v1/Query/distinctOn": distinct_on +"/datastore:v1/Query/distinctOn/distinct_on": distinct_on +"/datastore:v1/Query/order": order +"/datastore:v1/Query/order/order": order +"/datastore:v1/Query/projection": projection +"/datastore:v1/Query/projection/projection": projection +"/datastore:v1/Query/endCursor": end_cursor +"/datastore:v1/PropertyFilter": property_filter +"/datastore:v1/PropertyFilter/value": value +"/datastore:v1/PropertyFilter/property": property +"/datastore:v1/PropertyFilter/op": op "/datastore:v1/EntityResult": entity_result -"/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/EntityResult/cursor": cursor "/datastore:v1/Value": value "/datastore:v1/Value/entityValue": entity_value "/datastore:v1/Value/geoPointValue": geo_point_value @@ -19714,33 +19645,37 @@ "/datastore:v1/Value/blobValue": blob_value "/datastore:v1/Value/meaning": meaning "/datastore:v1/Value/arrayValue": array_value +"/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/PartitionId": partition_id "/datastore:v1/PartitionId/namespaceId": namespace_id "/datastore:v1/PartitionId/projectId": project_id "/datastore:v1/Entity": entity +"/datastore:v1/Entity/key": key "/datastore:v1/Entity/properties": properties "/datastore:v1/Entity/properties/property": property -"/datastore:v1/Entity/key": key +"/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": 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/readOptions": read_options -"/datastore:v1/LookupRequest/keys": keys -"/datastore:v1/LookupRequest/keys/key": key +"/datastore:v1/QueryResultBatch/entityResults": entity_results +"/datastore:v1/QueryResultBatch/entityResults/entity_result": entity_result "/datastore:v1/PathElement": path_element "/datastore:v1/PathElement/id": id "/datastore:v1/PathElement/name": name "/datastore:v1/PathElement/kind": kind "/datastore:v1/GqlQueryParameter": gql_query_parameter -"/datastore:v1/GqlQueryParameter/cursor": cursor "/datastore:v1/GqlQueryParameter/value": value +"/datastore:v1/GqlQueryParameter/cursor": cursor "/datastore:v1/BeginTransactionResponse": begin_transaction_response "/datastore:v1/BeginTransactionResponse/transaction": transaction "/datastore:v1/AllocateIdsRequest": allocate_ids_request @@ -19754,39 +19689,39 @@ "/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/RunQueryResponse/query": query "/datastore:v1/CommitRequest": commit_request +"/datastore:v1/CommitRequest/mode": mode "/datastore:v1/CommitRequest/mutations": mutations "/datastore:v1/CommitRequest/mutations/mutation": mutation "/datastore:v1/CommitRequest/transaction": transaction -"/datastore:v1/CommitRequest/mode": mode -"/datastore:v1/BeginTransactionRequest": begin_transaction_request "/datastore:v1/PropertyOrder": property_order "/datastore:v1/PropertyOrder/property": property "/datastore:v1/PropertyOrder/direction": direction +"/datastore:v1/BeginTransactionRequest": begin_transaction_request "/datastore:v1/KindExpression": kind_expression "/datastore:v1/KindExpression/name": name "/datastore:v1/LatLng": lat_lng -"/datastore:v1/LatLng/longitude": longitude "/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 +"/datastore:v1/Projection/property": property "/datastore:v1/ArrayValue": array_value "/datastore:v1/ArrayValue/values": values "/datastore:v1/ArrayValue/values/value": value -"/datastore:v1/Projection": projection -"/datastore:v1/Projection/property": property "/datastore:v1/Mutation": mutation +"/datastore:v1/Mutation/upsert": upsert "/datastore:v1/Mutation/delete": delete "/datastore:v1/Mutation/insert": insert "/datastore:v1/Mutation/baseVersion": base_version "/datastore:v1/Mutation/update": update -"/datastore:v1/Mutation/upsert": upsert "/datastore:v1/ReadOptions": read_options "/datastore:v1/ReadOptions/readConsistency": read_consistency "/datastore:v1/ReadOptions/transaction": transaction @@ -19803,40 +19738,8 @@ "/datastore:v1/GqlQuery/positionalBindings": positional_bindings "/datastore:v1/GqlQuery/positionalBindings/positional_binding": positional_binding "/datastore:v1/Filter": filter -"/datastore:v1/Filter/propertyFilter": property_filter "/datastore:v1/Filter/compositeFilter": composite_filter -"/datastore:v1/RollbackRequest": rollback_request -"/datastore:v1/RollbackRequest/transaction": transaction -"/datastore:v1/RunQueryRequest": run_query_request -"/datastore:v1/RunQueryRequest/readOptions": read_options -"/datastore:v1/RunQueryRequest/query": query -"/datastore:v1/RunQueryRequest/partitionId": partition_id -"/datastore:v1/RunQueryRequest/gqlQuery": gql_query -"/datastore:v1/CompositeFilter": composite_filter -"/datastore:v1/CompositeFilter/filters": filters -"/datastore:v1/CompositeFilter/filters/filter": filter -"/datastore:v1/CompositeFilter/op": op -"/datastore:v1/AllocateIdsResponse": allocate_ids_response -"/datastore:v1/AllocateIdsResponse/keys": keys -"/datastore:v1/AllocateIdsResponse/keys/key": key -"/datastore:v1/Query": query -"/datastore:v1/Query/kind": kind -"/datastore:v1/Query/kind/kind": kind -"/datastore:v1/Query/distinctOn": distinct_on -"/datastore:v1/Query/distinctOn/distinct_on": distinct_on -"/datastore:v1/Query/order": order -"/datastore:v1/Query/order/order": order -"/datastore:v1/Query/projection": projection -"/datastore:v1/Query/projection/projection": projection -"/datastore:v1/Query/endCursor": end_cursor -"/datastore:v1/Query/filter": filter -"/datastore:v1/Query/limit": limit -"/datastore:v1/Query/startCursor": start_cursor -"/datastore:v1/Query/offset": offset -"/datastore:v1/PropertyFilter": property_filter -"/datastore:v1/PropertyFilter/value": value -"/datastore:v1/PropertyFilter/property": property -"/datastore:v1/PropertyFilter/op": op +"/datastore:v1/Filter/propertyFilter": property_filter "/deploymentmanager:v2/fields": fields "/deploymentmanager:v2/key": key "/deploymentmanager:v2/quotaUser": quota_user @@ -26140,16 +26043,16 @@ "/drive:v2/drive.revisions.update": update_revision "/drive:v2/drive.revisions.update/fileId": file_id "/drive:v2/drive.revisions.update/revisionId": revision_id -"/drive:v2/drive.teamdrives.delete": delete_teamdrife +"/drive:v2/drive.teamdrives.delete": delete_teamdrive "/drive:v2/drive.teamdrives.delete/teamDriveId": team_drive_id -"/drive:v2/drive.teamdrives.get": get_teamdrife +"/drive:v2/drive.teamdrives.get": get_teamdrive "/drive:v2/drive.teamdrives.get/teamDriveId": team_drive_id -"/drive:v2/drive.teamdrives.insert": insert_teamdrife +"/drive:v2/drive.teamdrives.insert": insert_teamdrive "/drive:v2/drive.teamdrives.insert/requestId": request_id "/drive:v2/drive.teamdrives.list": list_teamdrives "/drive:v2/drive.teamdrives.list/maxResults": max_results "/drive:v2/drive.teamdrives.list/pageToken": page_token -"/drive:v2/drive.teamdrives.update": update_teamdrife +"/drive:v2/drive.teamdrives.update": update_teamdrive "/drive:v2/drive.teamdrives.update/teamDriveId": team_drive_id "/drive:v2/About": about "/drive:v2/About/additionalRoleInfo": additional_role_info @@ -26200,6 +26103,11 @@ "/drive:v2/About/remainingChangeIds": remaining_change_ids "/drive:v2/About/rootFolderId": root_folder_id "/drive:v2/About/selfLink": self_link +"/drive:v2/About/teamDriveThemes": team_drive_themes +"/drive:v2/About/teamDriveThemes/team_drive_theme": team_drive_theme +"/drive:v2/About/teamDriveThemes/team_drive_theme/backgroundImageLink": background_image_link +"/drive:v2/About/teamDriveThemes/team_drive_theme/colorRgb": color_rgb +"/drive:v2/About/teamDriveThemes/team_drive_theme/id": id "/drive:v2/About/user": user "/drive:v2/App": app "/drive:v2/App/authorized": authorized @@ -26562,8 +26470,15 @@ "/drive:v2/StartPageToken/kind": kind "/drive:v2/StartPageToken/startPageToken": start_page_token "/drive:v2/TeamDrive": team_drive +"/drive:v2/TeamDrive/backgroundImageFile": background_image_file +"/drive:v2/TeamDrive/backgroundImageFile/id": id +"/drive:v2/TeamDrive/backgroundImageFile/width": width +"/drive:v2/TeamDrive/backgroundImageFile/xCoordinate": x_coordinate +"/drive:v2/TeamDrive/backgroundImageFile/yCoordinate": y_coordinate +"/drive:v2/TeamDrive/backgroundImageLink": background_image_link "/drive:v2/TeamDrive/capabilities": capabilities "/drive:v2/TeamDrive/capabilities/canAddChildren": can_add_children +"/drive:v2/TeamDrive/capabilities/canChangeTeamDriveBackground": can_change_team_drive_background "/drive:v2/TeamDrive/capabilities/canComment": can_comment "/drive:v2/TeamDrive/capabilities/canCopy": can_copy "/drive:v2/TeamDrive/capabilities/canDeleteTeamDrive": can_delete_team_drive @@ -26576,9 +26491,11 @@ "/drive:v2/TeamDrive/capabilities/canRename": can_rename "/drive:v2/TeamDrive/capabilities/canRenameTeamDrive": can_rename_team_drive "/drive:v2/TeamDrive/capabilities/canShare": can_share +"/drive:v2/TeamDrive/colorRgb": color_rgb "/drive:v2/TeamDrive/id": id "/drive:v2/TeamDrive/kind": kind "/drive:v2/TeamDrive/name": name +"/drive:v2/TeamDrive/themeId": theme_id "/drive:v2/TeamDriveList": team_drive_list "/drive:v2/TeamDriveList/items": items "/drive:v2/TeamDriveList/items/item": item @@ -26748,16 +26665,16 @@ "/drive:v3/drive.revisions.update": update_revision "/drive:v3/drive.revisions.update/fileId": file_id "/drive:v3/drive.revisions.update/revisionId": revision_id -"/drive:v3/drive.teamdrives.create": create_teamdrife +"/drive:v3/drive.teamdrives.create": create_teamdrive "/drive:v3/drive.teamdrives.create/requestId": request_id -"/drive:v3/drive.teamdrives.delete": delete_teamdrife +"/drive:v3/drive.teamdrives.delete": delete_teamdrive "/drive:v3/drive.teamdrives.delete/teamDriveId": team_drive_id -"/drive:v3/drive.teamdrives.get": get_teamdrife +"/drive:v3/drive.teamdrives.get": get_teamdrive "/drive:v3/drive.teamdrives.get/teamDriveId": team_drive_id "/drive:v3/drive.teamdrives.list": list_teamdrives "/drive:v3/drive.teamdrives.list/pageSize": page_size "/drive:v3/drive.teamdrives.list/pageToken": page_token -"/drive:v3/drive.teamdrives.update": update_teamdrife +"/drive:v3/drive.teamdrives.update": update_teamdrive "/drive:v3/drive.teamdrives.update/teamDriveId": team_drive_id "/drive:v3/About": about "/drive:v3/About/appInstalled": app_installed @@ -26778,6 +26695,11 @@ "/drive:v3/About/storageQuota/usage": usage "/drive:v3/About/storageQuota/usageInDrive": usage_in_drive "/drive:v3/About/storageQuota/usageInDriveTrash": usage_in_drive_trash +"/drive:v3/About/teamDriveThemes": team_drive_themes +"/drive:v3/About/teamDriveThemes/team_drive_theme": team_drive_theme +"/drive:v3/About/teamDriveThemes/team_drive_theme/backgroundImageLink": background_image_link +"/drive:v3/About/teamDriveThemes/team_drive_theme/colorRgb": color_rgb +"/drive:v3/About/teamDriveThemes/team_drive_theme/id": id "/drive:v3/About/user": user "/drive:v3/Change": change "/drive:v3/Change/file": file @@ -27002,8 +26924,15 @@ "/drive:v3/StartPageToken/kind": kind "/drive:v3/StartPageToken/startPageToken": start_page_token "/drive:v3/TeamDrive": team_drive +"/drive:v3/TeamDrive/backgroundImageFile": background_image_file +"/drive:v3/TeamDrive/backgroundImageFile/id": id +"/drive:v3/TeamDrive/backgroundImageFile/width": width +"/drive:v3/TeamDrive/backgroundImageFile/xCoordinate": x_coordinate +"/drive:v3/TeamDrive/backgroundImageFile/yCoordinate": y_coordinate +"/drive:v3/TeamDrive/backgroundImageLink": background_image_link "/drive:v3/TeamDrive/capabilities": capabilities "/drive:v3/TeamDrive/capabilities/canAddChildren": can_add_children +"/drive:v3/TeamDrive/capabilities/canChangeTeamDriveBackground": can_change_team_drive_background "/drive:v3/TeamDrive/capabilities/canComment": can_comment "/drive:v3/TeamDrive/capabilities/canCopy": can_copy "/drive:v3/TeamDrive/capabilities/canDeleteTeamDrive": can_delete_team_drive @@ -27016,9 +26945,11 @@ "/drive:v3/TeamDrive/capabilities/canRename": can_rename "/drive:v3/TeamDrive/capabilities/canRenameTeamDrive": can_rename_team_drive "/drive:v3/TeamDrive/capabilities/canShare": can_share +"/drive:v3/TeamDrive/colorRgb": color_rgb "/drive:v3/TeamDrive/id": id "/drive:v3/TeamDrive/kind": kind "/drive:v3/TeamDrive/name": name +"/drive:v3/TeamDrive/themeId": theme_id "/drive:v3/TeamDriveList": team_drive_list "/drive:v3/TeamDriveList/kind": kind "/drive:v3/TeamDriveList/nextPageToken": next_page_token @@ -27035,35 +26966,30 @@ "/firebasedynamiclinks:v1/quotaUser": quota_user "/firebasedynamiclinks:v1/fields": fields "/firebasedynamiclinks:v1/firebasedynamiclinks.shortLinks.create": create_short_link_short_dynamic_link -"/firebasedynamiclinks:v1/ITunesConnectAnalytics": i_tunes_connect_analytics -"/firebasedynamiclinks:v1/ITunesConnectAnalytics/at": at -"/firebasedynamiclinks:v1/ITunesConnectAnalytics/ct": ct -"/firebasedynamiclinks:v1/ITunesConnectAnalytics/mt": mt -"/firebasedynamiclinks:v1/ITunesConnectAnalytics/pt": pt "/firebasedynamiclinks:v1/SocialMetaTagInfo": social_meta_tag_info +"/firebasedynamiclinks:v1/SocialMetaTagInfo/socialDescription": social_description "/firebasedynamiclinks:v1/SocialMetaTagInfo/socialTitle": social_title "/firebasedynamiclinks:v1/SocialMetaTagInfo/socialImageLink": social_image_link -"/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/AndroidInfo": android_info -"/firebasedynamiclinks:v1/AndroidInfo/androidLink": android_link -"/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/DynamicLinkWarning": dynamic_link_warning -"/firebasedynamiclinks:v1/DynamicLinkWarning/warningMessage": warning_message -"/firebasedynamiclinks:v1/DynamicLinkWarning/warningCode": warning_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 -"/firebasedynamiclinks:v1/IosInfo/iosFallbackLink": ios_fallback_link -"/firebasedynamiclinks:v1/IosInfo/iosAppStoreId": ios_app_store_id "/firebasedynamiclinks:v1/IosInfo/iosIpadFallbackLink": ios_ipad_fallback_link "/firebasedynamiclinks:v1/IosInfo/iosIpadBundleId": ios_ipad_bundle_id "/firebasedynamiclinks:v1/IosInfo/iosCustomScheme": ios_custom_scheme "/firebasedynamiclinks:v1/IosInfo/iosBundleId": ios_bundle_id +"/firebasedynamiclinks:v1/IosInfo/iosFallbackLink": ios_fallback_link +"/firebasedynamiclinks:v1/IosInfo/iosAppStoreId": ios_app_store_id "/firebasedynamiclinks:v1/AnalyticsInfo": analytics_info -"/firebasedynamiclinks:v1/AnalyticsInfo/itunesConnectAnalytics": itunes_connect_analytics "/firebasedynamiclinks:v1/AnalyticsInfo/googlePlayAnalytics": google_play_analytics +"/firebasedynamiclinks:v1/AnalyticsInfo/itunesConnectAnalytics": itunes_connect_analytics "/firebasedynamiclinks:v1/CreateShortDynamicLinkRequest": create_short_dynamic_link_request "/firebasedynamiclinks:v1/CreateShortDynamicLinkRequest/dynamicLinkInfo": dynamic_link_info "/firebasedynamiclinks:v1/CreateShortDynamicLinkRequest/longDynamicLink": long_dynamic_link @@ -27076,83 +27002,71 @@ "/firebasedynamiclinks:v1/Suffix": suffix "/firebasedynamiclinks:v1/Suffix/option": option "/firebasedynamiclinks:v1/GooglePlayAnalytics": google_play_analytics +"/firebasedynamiclinks:v1/GooglePlayAnalytics/utmContent": utm_content "/firebasedynamiclinks:v1/GooglePlayAnalytics/utmMedium": utm_medium "/firebasedynamiclinks:v1/GooglePlayAnalytics/utmTerm": utm_term "/firebasedynamiclinks:v1/GooglePlayAnalytics/utmSource": utm_source "/firebasedynamiclinks:v1/GooglePlayAnalytics/utmCampaign": utm_campaign "/firebasedynamiclinks:v1/GooglePlayAnalytics/gclid": gclid -"/firebasedynamiclinks:v1/GooglePlayAnalytics/utmContent": utm_content "/firebasedynamiclinks:v1/DynamicLinkInfo": dynamic_link_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/DynamicLinkInfo/androidInfo": android_info -"/firebasedynamiclinks:v1/DynamicLinkInfo/navigationInfo": navigation_info -"/firebasedynamiclinks:v1/DynamicLinkInfo/analyticsInfo": analytics_info +"/firebasedynamiclinks:v1/ITunesConnectAnalytics": i_tunes_connect_analytics +"/firebasedynamiclinks:v1/ITunesConnectAnalytics/at": at +"/firebasedynamiclinks:v1/ITunesConnectAnalytics/ct": ct +"/firebasedynamiclinks:v1/ITunesConnectAnalytics/mt": mt +"/firebasedynamiclinks:v1/ITunesConnectAnalytics/pt": pt "/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 +"/firebaserules:v1/firebaserules.projects.releases.create/name": name "/firebaserules:v1/firebaserules.projects.releases.delete": delete_project_release "/firebaserules:v1/firebaserules.projects.releases.delete/name": name "/firebaserules:v1/firebaserules.projects.releases.get": get_project_release "/firebaserules:v1/firebaserules.projects.releases.get/name": name "/firebaserules:v1/firebaserules.projects.releases.list": list_project_releases -"/firebaserules:v1/firebaserules.projects.releases.list/filter": filter "/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.releases.update": update_project_release -"/firebaserules:v1/firebaserules.projects.releases.update/name": name -"/firebaserules:v1/firebaserules.projects.releases.create": create_project_release -"/firebaserules:v1/firebaserules.projects.releases.create/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/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/Source": source -"/firebaserules:v1/Source/files": files -"/firebaserules:v1/Source/files/file": file -"/firebaserules:v1/SourcePosition": source_position -"/firebaserules:v1/SourcePosition/line": line -"/firebaserules:v1/SourcePosition/column": column -"/firebaserules:v1/SourcePosition/fileName": file_name -"/firebaserules:v1/Issue": issue -"/firebaserules:v1/Issue/severity": severity -"/firebaserules:v1/Issue/description": description -"/firebaserules:v1/Issue/sourcePosition": source_position -"/firebaserules:v1/TestRulesetRequest": test_ruleset_request -"/firebaserules:v1/TestRulesetRequest/source": source -"/firebaserules:v1/Ruleset": ruleset -"/firebaserules:v1/Ruleset/source": source -"/firebaserules:v1/Ruleset/createTime": create_time -"/firebaserules:v1/Ruleset/name": name +"/firebaserules:v1/firebaserules.projects.releases.list/filter": filter +"/firebaserules:v1/FunctionCall": function_call +"/firebaserules:v1/FunctionCall/function": function +"/firebaserules:v1/FunctionCall/args": args +"/firebaserules:v1/FunctionCall/args/arg": arg +"/firebaserules:v1/File": file +"/firebaserules:v1/File/fingerprint": fingerprint +"/firebaserules:v1/File/name": name +"/firebaserules:v1/File/content": content "/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/FunctionCall": function_call -"/firebaserules:v1/FunctionCall/args": args -"/firebaserules:v1/FunctionCall/args/arg": arg -"/firebaserules:v1/FunctionCall/function": function -"/firebaserules:v1/File": file -"/firebaserules:v1/File/name": name -"/firebaserules:v1/File/content": content -"/firebaserules:v1/File/fingerprint": fingerprint "/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/Release/createTime": create_time "/firebaserules:v1/TestRulesetResponse": test_ruleset_response "/firebaserules:v1/TestRulesetResponse/issues": issues "/firebaserules:v1/TestRulesetResponse/issues/issue": issue @@ -27170,6 +27084,23 @@ "/firebaserules:v1/ListRulesetsResponse/rulesets/ruleset": ruleset "/firebaserules:v1/ListRulesetsResponse/nextPageToken": next_page_token "/firebaserules:v1/Empty": empty +"/firebaserules:v1/Source": source +"/firebaserules:v1/Source/files": files +"/firebaserules:v1/Source/files/file": file +"/firebaserules:v1/SourcePosition": source_position +"/firebaserules:v1/SourcePosition/column": column +"/firebaserules:v1/SourcePosition/fileName": file_name +"/firebaserules:v1/SourcePosition/line": line +"/firebaserules:v1/Issue": issue +"/firebaserules:v1/Issue/sourcePosition": source_position +"/firebaserules:v1/Issue/severity": severity +"/firebaserules:v1/Issue/description": description +"/firebaserules:v1/TestRulesetRequest": test_ruleset_request +"/firebaserules:v1/TestRulesetRequest/source": source +"/firebaserules:v1/Ruleset": ruleset +"/firebaserules:v1/Ruleset/name": name +"/firebaserules:v1/Ruleset/source": source +"/firebaserules:v1/Ruleset/createTime": create_time "/fitness:v1/fields": fields "/fitness:v1/key": key "/fitness:v1/quotaUser": quota_user @@ -28660,34 +28591,34 @@ "/genomics:v1/key": key "/genomics:v1/quotaUser": quota_user "/genomics:v1/fields": fields -"/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.export/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.get/readGroupSetId": read_group_set_id "/genomics:v1/genomics.readgroupsets.coveragebuckets.list/referenceName": reference_name "/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/targetBucketWidth": target_bucket_width "/genomics:v1/genomics.reads.search": search_reads +"/genomics:v1/genomics.callsets.delete/callSetId": call_set_id "/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/genomics.annotationsets.delete": delete_annotationset "/genomics:v1/genomics.annotationsets.delete/annotationSetId": annotation_set_id "/genomics:v1/genomics.annotationsets.search": search_annotationset_annotation_sets "/genomics:v1/genomics.annotationsets.get/annotationSetId": annotation_set_id "/genomics:v1/genomics.annotationsets.update": update_annotationset -"/genomics:v1/genomics.annotationsets.update/annotationSetId": annotation_set_id "/genomics:v1/genomics.annotationsets.update/updateMask": update_mask -"/genomics:v1/genomics.variants.merge": merge_variants +"/genomics:v1/genomics.annotationsets.update/annotationSetId": annotation_set_id "/genomics:v1/genomics.variants.delete": delete_variant "/genomics:v1/genomics.variants.delete/variantId": variant_id "/genomics:v1/genomics.variants.import": import_variants +"/genomics:v1/genomics.variants.merge": merge_variants "/genomics:v1/genomics.variants.create": create_variant "/genomics:v1/genomics.variants.search": search_variants "/genomics:v1/genomics.variants.get": get_variant @@ -28699,29 +28630,31 @@ "/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.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.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.patch/datasetId": dataset_id "/genomics:v1/genomics.datasets.testIamPermissions": test_dataset_iam_permissions "/genomics:v1/genomics.datasets.testIamPermissions/resource": resource "/genomics:v1/genomics.datasets.delete": delete_dataset "/genomics:v1/genomics.datasets.delete/datasetId": dataset_id "/genomics:v1/genomics.datasets.list": list_datasets -"/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.datasets.list/pageToken": page_token "/genomics:v1/genomics.datasets.create": create_dataset "/genomics:v1/genomics.datasets.setIamPolicy": set_dataset_iam_policy "/genomics:v1/genomics.datasets.setIamPolicy/resource": resource -"/genomics:v1/genomics.datasets.getIamPolicy": get_dataset_iam_policy -"/genomics:v1/genomics.datasets.getIamPolicy/resource": resource +"/genomics:v1/genomics.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.patch": patch_variantset @@ -28729,8 +28662,8 @@ "/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.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 @@ -28739,64 +28672,16 @@ "/genomics:v1/genomics.annotations.update/annotationId": annotation_id "/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.operations.cancel": cancel_operation +"/genomics:v1/genomics.operations.cancel/name": name "/genomics:v1/genomics.operations.list": list_operations +"/genomics:v1/genomics.operations.list/pageSize": page_size "/genomics:v1/genomics.operations.list/filter": filter "/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.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/AnnotationSet": annotation_set -"/genomics:v1/AnnotationSet/referenceSetId": reference_set_id -"/genomics:v1/AnnotationSet/type": type -"/genomics:v1/AnnotationSet/info": info -"/genomics:v1/AnnotationSet/info/info": info -"/genomics:v1/AnnotationSet/info/info/info": info -"/genomics:v1/AnnotationSet/id": id -"/genomics:v1/AnnotationSet/datasetId": dataset_id -"/genomics:v1/AnnotationSet/sourceUri": source_uri -"/genomics:v1/AnnotationSet/name": name -"/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/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/exportUri": export_uri -"/genomics:v1/ExportReadGroupSetRequest/referenceNames": reference_names -"/genomics:v1/ExportReadGroupSetRequest/referenceNames/reference_name": reference_name -"/genomics:v1/ExportReadGroupSetRequest/projectId": project_id -"/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 @@ -28810,15 +28695,15 @@ "/genomics:v1/ImportVariantsRequest/normalizeReferenceNames": normalize_reference_names "/genomics:v1/ImportVariantsRequest/format": format "/genomics:v1/VariantAnnotation": variant_annotation -"/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/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/ListCoverageBucketsResponse": list_coverage_buckets_response "/genomics:v1/ListCoverageBucketsResponse/nextPageToken": next_page_token "/genomics:v1/ListCoverageBucketsResponse/bucketWidth": bucket_width @@ -28832,29 +28717,29 @@ "/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/referenceId": reference_id -"/genomics:v1/SearchAnnotationsRequest/end": end -"/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/SearchAnnotationsRequest/pageToken": page_token "/genomics:v1/OperationEvent": operation_event -"/genomics:v1/OperationEvent/startTime": start_time "/genomics:v1/OperationEvent/description": description "/genomics:v1/OperationEvent/endTime": end_time +"/genomics:v1/OperationEvent/startTime": start_time "/genomics:v1/CodingSequence": coding_sequence "/genomics:v1/CodingSequence/start": start "/genomics:v1/CodingSequence/end": end -"/genomics:v1/SearchReferencesResponse": search_references_response -"/genomics:v1/SearchReferencesResponse/references": references -"/genomics:v1/SearchReferencesResponse/references/reference": reference -"/genomics:v1/SearchReferencesResponse/nextPageToken": next_page_token -"/genomics:v1/GetIamPolicyRequest": get_iam_policy_request "/genomics:v1/TestIamPermissionsResponse": test_iam_permissions_response "/genomics:v1/TestIamPermissionsResponse/permissions": permissions "/genomics:v1/TestIamPermissionsResponse/permissions/permission": permission +"/genomics:v1/GetIamPolicyRequest": get_iam_policy_request +"/genomics:v1/SearchReferencesResponse": search_references_response +"/genomics:v1/SearchReferencesResponse/nextPageToken": next_page_token +"/genomics:v1/SearchReferencesResponse/references": references +"/genomics:v1/SearchReferencesResponse/references/reference": reference "/genomics:v1/SearchAnnotationSetsRequest": search_annotation_sets_request "/genomics:v1/SearchAnnotationSetsRequest/datasetIds": dataset_ids "/genomics:v1/SearchAnnotationSetsRequest/datasetIds/dataset_id": dataset_id @@ -28865,31 +28750,32 @@ "/genomics:v1/SearchAnnotationSetsRequest/pageToken": page_token "/genomics:v1/SearchAnnotationSetsRequest/pageSize": page_size "/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/SearchReadGroupSetsResponse/nextPageToken": next_page_token +"/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/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/LinearAlignment": linear_alignment -"/genomics:v1/LinearAlignment/mappingQuality": mapping_quality -"/genomics:v1/LinearAlignment/position": position -"/genomics:v1/LinearAlignment/cigar": cigar -"/genomics:v1/LinearAlignment/cigar/cigar": cigar +"/genomics:v1/SearchReferencesRequest/md5checksums": md5checksums +"/genomics:v1/SearchReferencesRequest/md5checksums/md5checksum": md5checksum "/genomics:v1/Dataset": dataset -"/genomics:v1/Dataset/id": id -"/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/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 @@ -28902,22 +28788,21 @@ "/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/datasetId": dataset_id +"/genomics:v1/ReadGroupSet/filename": filename +"/genomics:v1/ReadGroupSet/readGroups": read_groups +"/genomics:v1/ReadGroupSet/readGroups/read_group": read_group +"/genomics:v1/ReadGroupSet/name": name +"/genomics:v1/ReadGroupSet/referenceSetId": reference_set_id "/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/ReadGroupSet/datasetId": dataset_id -"/genomics:v1/ReadGroupSet/readGroups": read_groups -"/genomics:v1/ReadGroupSet/readGroups/read_group": read_group -"/genomics:v1/ReadGroupSet/filename": filename -"/genomics:v1/ReadGroupSet/name": name -"/genomics:v1/ReadGroupSet/referenceSetId": reference_set_id "/genomics:v1/SearchVariantSetsResponse": search_variant_sets_response -"/genomics:v1/SearchVariantSetsResponse/nextPageToken": next_page_token "/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 @@ -28931,11 +28816,11 @@ "/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/pageSize": page_size "/genomics:v1/SearchCallSetsRequest/variantSetIds": variant_set_ids "/genomics:v1/SearchCallSetsRequest/variantSetIds/variant_set_id": variant_set_id -"/genomics:v1/SearchCallSetsRequest/name": name -"/genomics:v1/SearchCallSetsRequest/pageToken": page_token "/genomics:v1/ImportReadGroupSetsRequest": import_read_group_sets_request "/genomics:v1/ImportReadGroupSetsRequest/referenceSetId": reference_set_id "/genomics:v1/ImportReadGroupSetsRequest/partitionStrategy": partition_strategy @@ -28943,12 +28828,11 @@ "/genomics:v1/ImportReadGroupSetsRequest/sourceUris": source_uris "/genomics:v1/ImportReadGroupSetsRequest/sourceUris/source_uri": source_uri "/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/Policy/etag": etag +"/genomics:v1/Policy/version": version "/genomics:v1/SearchReadsRequest": search_reads_request -"/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 @@ -28957,10 +28841,9 @@ "/genomics:v1/SearchReadsRequest/end": end "/genomics:v1/SearchReadsRequest/pageToken": page_token "/genomics:v1/SearchReadsRequest/pageSize": page_size +"/genomics:v1/SearchReadsRequest/start": start "/genomics:v1/CancelOperationRequest": cancel_operation_request "/genomics:v1/Annotation": annotation -"/genomics:v1/Annotation/reverseStrand": reverse_strand -"/genomics:v1/Annotation/referenceName": reference_name "/genomics:v1/Annotation/info": info "/genomics:v1/Annotation/info/info": info "/genomics:v1/Annotation/info/info/info": info @@ -28973,6 +28856,10 @@ "/genomics:v1/Annotation/variant": variant "/genomics:v1/Annotation/referenceId": reference_id "/genomics:v1/Annotation/id": id +"/genomics:v1/Annotation/reverseStrand": reverse_strand +"/genomics:v1/Annotation/referenceName": reference_name +"/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 @@ -28981,93 +28868,88 @@ "/genomics:v1/Operation/response": response "/genomics:v1/Operation/response/response": response "/genomics:v1/Operation/name": name -"/genomics:v1/RuntimeMetadata": runtime_metadata -"/genomics:v1/RuntimeMetadata/computeEngine": compute_engine "/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 "/genomics:v1/VariantCall": variant_call -"/genomics:v1/VariantCall/phaseset": phaseset -"/genomics:v1/VariantCall/info": info -"/genomics:v1/VariantCall/info/info": info -"/genomics:v1/VariantCall/info/info/info": info "/genomics:v1/VariantCall/callSetName": call_set_name "/genomics:v1/VariantCall/genotypeLikelihood": genotype_likelihood "/genomics:v1/VariantCall/genotypeLikelihood/genotype_likelihood": genotype_likelihood "/genomics:v1/VariantCall/callSetId": call_set_id "/genomics:v1/VariantCall/genotype": genotype "/genomics:v1/VariantCall/genotype/genotype": genotype +"/genomics:v1/VariantCall/phaseset": phaseset +"/genomics:v1/VariantCall/info": info +"/genomics:v1/VariantCall/info/info": info +"/genomics:v1/VariantCall/info/info/info": info "/genomics:v1/SearchVariantsResponse": search_variants_response -"/genomics:v1/SearchVariantsResponse/nextPageToken": next_page_token "/genomics:v1/SearchVariantsResponse/variants": variants "/genomics:v1/SearchVariantsResponse/variants/variant": variant +"/genomics:v1/SearchVariantsResponse/nextPageToken": next_page_token "/genomics:v1/ListBasesResponse": list_bases_response +"/genomics:v1/ListBasesResponse/sequence": sequence "/genomics:v1/ListBasesResponse/offset": offset "/genomics:v1/ListBasesResponse/nextPageToken": next_page_token -"/genomics:v1/ListBasesResponse/sequence": sequence "/genomics:v1/Status": status +"/genomics:v1/Status/code": code +"/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/UndeleteDatasetRequest": undelete_dataset_request "/genomics:v1/Binding": binding -"/genomics:v1/Binding/role": role "/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/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/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/BatchCreateAnnotationsResponse": batch_create_annotations_response "/genomics:v1/BatchCreateAnnotationsResponse/entries": entries "/genomics:v1/BatchCreateAnnotationsResponse/entries/entry": entry "/genomics:v1/ReferenceBound": reference_bound -"/genomics:v1/ReferenceBound/upperBound": upper_bound "/genomics:v1/ReferenceBound/referenceName": reference_name +"/genomics:v1/ReferenceBound/upperBound": upper_bound "/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/ListOperationsResponse/nextPageToken": next_page_token "/genomics:v1/Variant": variant +"/genomics:v1/Variant/variantSetId": variant_set_id +"/genomics:v1/Variant/referenceName": reference_name "/genomics:v1/Variant/info": info "/genomics:v1/Variant/info/info": info "/genomics:v1/Variant/info/info/info": info "/genomics:v1/Variant/referenceBases": reference_bases -"/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/names": names +"/genomics:v1/Variant/names/name": name "/genomics:v1/Variant/filter": filter "/genomics:v1/Variant/filter/filter": filter +"/genomics:v1/Variant/end": end "/genomics:v1/Variant/calls": calls "/genomics:v1/Variant/calls/call": call "/genomics:v1/Variant/created": created "/genomics:v1/Variant/start": start "/genomics:v1/Variant/quality": quality "/genomics:v1/Variant/id": id -"/genomics:v1/Variant/variantSetId": variant_set_id -"/genomics:v1/Variant/referenceName": reference_name "/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/SearchVariantsRequest": search_variants_request -"/genomics:v1/SearchVariantsRequest/start": start -"/genomics:v1/SearchVariantsRequest/variantName": variant_name -"/genomics:v1/SearchVariantsRequest/referenceName": reference_name "/genomics:v1/SearchVariantsRequest/variantSetIds": variant_set_ids "/genomics:v1/SearchVariantsRequest/variantSetIds/variant_set_id": variant_set_id "/genomics:v1/SearchVariantsRequest/end": end @@ -29076,6 +28958,9 @@ "/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/SearchVariantsRequest/referenceName": reference_name "/genomics:v1/OperationMetadata": operation_metadata "/genomics:v1/OperationMetadata/projectId": project_id "/genomics:v1/OperationMetadata/clientId": client_id @@ -29091,63 +28976,63 @@ "/genomics:v1/OperationMetadata/labels/label": label "/genomics:v1/OperationMetadata/createTime": create_time "/genomics:v1/SearchReadGroupSetsRequest": search_read_group_sets_request +"/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/SearchReadGroupSetsRequest/datasetIds": dataset_ids -"/genomics:v1/SearchReadGroupSetsRequest/datasetIds/dataset_id": dataset_id "/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/SearchAnnotationsResponse/nextPageToken": next_page_token +"/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/version": version -"/genomics:v1/Program/name": name +"/genomics:v1/CoverageBucket": coverage_bucket +"/genomics:v1/CoverageBucket/range": range +"/genomics:v1/CoverageBucket/meanCoverage": mean_coverage "/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/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/ExternalId": external_id "/genomics:v1/ExternalId/sourceName": source_name "/genomics:v1/ExternalId/id": id "/genomics:v1/Reference": reference +"/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/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/VariantSetMetadata": variant_set_metadata +"/genomics:v1/VariantSetMetadata/number": number "/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/type": type "/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/SearchVariantSetsRequest": search_variant_sets_request "/genomics:v1/SearchVariantSetsRequest/datasetIds": dataset_ids "/genomics:v1/SearchVariantSetsRequest/datasetIds/dataset_id": dataset_id @@ -29170,6 +29055,15 @@ "/genomics:v1/MergeVariantsRequest/infoMergeConfig/info_merge_config": info_merge_config "/genomics:v1/MergeVariantsRequest/variantSetId": variant_set_id "/genomics:v1/Read": read +"/genomics:v1/Read/readGroupSetId": read_group_set_id +"/genomics:v1/Read/duplicateFragment": duplicate_fragment +"/genomics:v1/Read/readNumber": read_number +"/genomics:v1/Read/alignedSequence": aligned_sequence +"/genomics:v1/Read/readGroupId": read_group_id +"/genomics:v1/Read/nextMatePosition": next_mate_position +"/genomics:v1/Read/info": info +"/genomics:v1/Read/info/info": info +"/genomics:v1/Read/info/info/info": info "/genomics:v1/Read/properPlacement": proper_placement "/genomics:v1/Read/supplementaryAlignment": supplementary_alignment "/genomics:v1/Read/fragmentLength": fragment_length @@ -29177,27 +29071,14 @@ "/genomics:v1/Read/alignedQuality": aligned_quality "/genomics:v1/Read/alignedQuality/aligned_quality": aligned_quality "/genomics:v1/Read/alignment": alignment -"/genomics:v1/Read/id": id "/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/info": info -"/genomics:v1/Read/info/info": info -"/genomics:v1/Read/info/info/info": info -"/genomics:v1/Read/nextMatePosition": next_mate_position "/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/CigarUnit": cigar_unit -"/genomics:v1/CigarUnit/operationLength": operation_length -"/genomics:v1/CigarUnit/operation": operation -"/genomics:v1/CigarUnit/referenceSequence": reference_sequence "/genomics:v1/ReferenceSet": reference_set "/genomics:v1/ReferenceSet/ncbiTaxonId": ncbi_taxon_id "/genomics:v1/ReferenceSet/sourceUri": source_uri @@ -29209,6 +29090,56 @@ "/genomics:v1/ReferenceSet/description": description "/genomics:v1/ReferenceSet/sourceAccessions": source_accessions "/genomics:v1/ReferenceSet/sourceAccessions/source_accession": source_accession +"/genomics:v1/CigarUnit": cigar_unit +"/genomics:v1/CigarUnit/referenceSequence": reference_sequence +"/genomics:v1/CigarUnit/operationLength": operation_length +"/genomics:v1/CigarUnit/operation": operation +"/genomics:v1/Transcript": transcript +"/genomics:v1/Transcript/exons": exons +"/genomics:v1/Transcript/exons/exon": exon +"/genomics:v1/Transcript/codingSequence": coding_sequence +"/genomics:v1/Transcript/geneId": gene_id +"/genomics:v1/AnnotationSet": annotation_set +"/genomics:v1/AnnotationSet/name": name +"/genomics:v1/AnnotationSet/referenceSetId": reference_set_id +"/genomics:v1/AnnotationSet/type": type +"/genomics:v1/AnnotationSet/info": info +"/genomics:v1/AnnotationSet/info/info": info +"/genomics:v1/AnnotationSet/info/info/info": info +"/genomics:v1/AnnotationSet/id": id +"/genomics:v1/AnnotationSet/datasetId": dataset_id +"/genomics:v1/AnnotationSet/sourceUri": source_uri +"/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/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/exportUri": export_uri +"/genomics:v1/ExportReadGroupSetRequest/referenceNames": reference_names +"/genomics:v1/ExportReadGroupSetRequest/referenceNames/reference_name": reference_name +"/genomics:v1/ExportReadGroupSetRequest/projectId": project_id +"/genomics:v1/Exon": exon +"/genomics:v1/Exon/start": start +"/genomics:v1/Exon/end": end +"/genomics:v1/Exon/frame": frame +"/genomics:v1/CallSet": call_set +"/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/CallSet/sampleId": sample_id "/gmail:v1/fields": fields "/gmail:v1/key": key "/gmail:v1/quotaUser": quota_user @@ -30236,28 +30167,28 @@ "/iam:v1/fields": fields "/iam:v1/key": key "/iam:v1/quotaUser": quota_user -"/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.create": create_service_account -"/iam:v1/iam.projects.serviceAccounts.create/name": name +"/iam:v1/iam.projects.serviceAccounts.list": list_project_service_accounts +"/iam:v1/iam.projects.serviceAccounts.list/pageSize": page_size +"/iam:v1/iam.projects.serviceAccounts.list/name": name +"/iam:v1/iam.projects.serviceAccounts.list/pageToken": page_token "/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.create": create_service_account +"/iam:v1/iam.projects.serviceAccounts.create/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.update": update_project_service_account +"/iam:v1/iam.projects.serviceAccounts.update/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 @@ -30269,21 +30200,32 @@ "/iam:v1/iam.projects.serviceAccounts.keys.create": create_service_account_key "/iam:v1/iam.projects.serviceAccounts.keys.create/name": name "/iam:v1/iam.roles.queryGrantableRoles": query_grantable_roles +"/iam:v1/QueryGrantableRolesResponse": query_grantable_roles_response +"/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/name": name -"/iam:v1/ServiceAccount/email": email -"/iam:v1/ServiceAccount/projectId": project_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/Empty": empty "/iam:v1/QueryGrantableRolesRequest": query_grantable_roles_request "/iam:v1/QueryGrantableRolesRequest/fullResourceName": full_resource_name +"/iam:v1/Empty": empty +"/iam:v1/ServiceAccount": service_account +"/iam:v1/ServiceAccount/projectId": project_id +"/iam:v1/ServiceAccount/oauth2ClientId": oauth2_client_id +"/iam:v1/ServiceAccount/uniqueId": unique_id +"/iam:v1/ServiceAccount/displayName": display_name +"/iam:v1/ServiceAccount/etag": etag +"/iam:v1/ServiceAccount/email": email +"/iam:v1/ServiceAccount/name": name "/iam:v1/ListServiceAccountKeysResponse": list_service_account_keys_response "/iam:v1/ListServiceAccountKeysResponse/keys": keys "/iam:v1/ListServiceAccountKeysResponse/keys/key": key @@ -30296,54 +30238,43 @@ "/iam:v1/ServiceAccountKey/name": name "/iam:v1/ServiceAccountKey/validBeforeTime": valid_before_time "/iam:v1/ServiceAccountKey/keyAlgorithm": key_algorithm -"/iam:v1/ServiceAccountKey/privateKeyType": private_key_type "/iam:v1/ServiceAccountKey/validAfterTime": valid_after_time +"/iam:v1/ServiceAccountKey/privateKeyType": private_key_type "/iam:v1/CreateServiceAccountKeyRequest": create_service_account_key_request "/iam:v1/CreateServiceAccountKeyRequest/keyAlgorithm": key_algorithm "/iam:v1/CreateServiceAccountKeyRequest/privateKeyType": private_key_type -"/iam:v1/SignJwtResponse": sign_jwt_response -"/iam:v1/SignJwtResponse/keyId": key_id -"/iam:v1/SignJwtResponse/signedJwt": signed_jwt -"/iam:v1/SignBlobResponse": sign_blob_response -"/iam:v1/SignBlobResponse/signature": signature -"/iam:v1/SignBlobResponse/keyId": key_id "/iam:v1/TestIamPermissionsRequest": test_iam_permissions_request "/iam:v1/TestIamPermissionsRequest/permissions": permissions "/iam:v1/TestIamPermissionsRequest/permissions/permission": permission +"/iam:v1/SignBlobResponse": sign_blob_response +"/iam:v1/SignBlobResponse/signature": signature +"/iam:v1/SignBlobResponse/keyId": key_id +"/iam:v1/SignJwtResponse": sign_jwt_response +"/iam:v1/SignJwtResponse/keyId": key_id +"/iam:v1/SignJwtResponse/signedJwt": signed_jwt "/iam:v1/Policy": policy -"/iam:v1/Policy/version": version "/iam:v1/Policy/bindings": bindings "/iam:v1/Policy/bindings/binding": binding "/iam:v1/Policy/etag": etag +"/iam:v1/Policy/version": version "/iam:v1/SignJwtRequest": sign_jwt_request "/iam:v1/SignJwtRequest/payload": payload "/iam:v1/AuditData": audit_data "/iam:v1/AuditData/policyDelta": policy_delta "/iam:v1/BindingDelta": binding_delta -"/iam:v1/BindingDelta/member": member "/iam:v1/BindingDelta/role": role "/iam:v1/BindingDelta/action": action +"/iam:v1/BindingDelta/member": member "/iam:v1/PolicyDelta": policy_delta "/iam:v1/PolicyDelta/bindingDeltas": binding_deltas "/iam:v1/PolicyDelta/bindingDeltas/binding_delta": binding_delta +"/iam:v1/CreateServiceAccountRequest": create_service_account_request +"/iam:v1/CreateServiceAccountRequest/serviceAccount": service_account +"/iam:v1/CreateServiceAccountRequest/accountId": account_id "/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/accountId": account_id -"/iam:v1/CreateServiceAccountRequest/serviceAccount": service_account -"/iam:v1/QueryGrantableRolesResponse": query_grantable_roles_response -"/iam:v1/QueryGrantableRolesResponse/roles": roles -"/iam:v1/QueryGrantableRolesResponse/roles/role": role -"/iam:v1/Role": role -"/iam:v1/Role/title": title -"/iam:v1/Role/name": name -"/iam:v1/Role/description": description -"/iam:v1/SignBlobRequest": sign_blob_request -"/iam:v1/SignBlobRequest/bytesToSign": bytes_to_sign -"/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 @@ -30668,22 +30599,22 @@ "/identitytoolkit:v3/VerifyPasswordResponse/photoUrl": photo_url "/identitytoolkit:v3/VerifyPasswordResponse/refreshToken": refresh_token "/identitytoolkit:v3/VerifyPasswordResponse/registered": registered +"/kgsearch:v1/key": key "/kgsearch:v1/quotaUser": quota_user "/kgsearch:v1/fields": fields -"/kgsearch:v1/key": key "/kgsearch:v1/kgsearch.entities.search": search_entities -"/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/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/SearchResponse": search_response +"/kgsearch:v1/SearchResponse/@type": _type "/kgsearch:v1/SearchResponse/@context": _context "/kgsearch:v1/SearchResponse/itemListElement": item_list_element "/kgsearch:v1/SearchResponse/itemListElement/item_list_element": item_list_element -"/kgsearch:v1/SearchResponse/@type": _type "/language:v1/key": key "/language:v1/quotaUser": quota_user "/language:v1/fields": fields @@ -30691,14 +30622,26 @@ "/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/AnalyzeSyntaxRequest": analyze_syntax_request +"/language:v1/AnalyzeSyntaxRequest/encodingType": encoding_type +"/language:v1/AnalyzeSyntaxRequest/document": document +"/language:v1/AnalyzeSentimentResponse": analyze_sentiment_response +"/language:v1/AnalyzeSentimentResponse/documentSentiment": document_sentiment +"/language:v1/AnalyzeSentimentResponse/language": language +"/language:v1/AnalyzeSentimentResponse/sentences": sentences +"/language:v1/AnalyzeSentimentResponse/sentences/sentence": sentence +"/language:v1/AnalyzeEntitiesResponse": analyze_entities_response +"/language:v1/AnalyzeEntitiesResponse/entities": entities +"/language:v1/AnalyzeEntitiesResponse/entities/entity": entity +"/language:v1/AnalyzeEntitiesResponse/language": language "/language:v1/Entity": entity -"/language:v1/Entity/mentions": mentions -"/language:v1/Entity/mentions/mention": mention -"/language:v1/Entity/name": name "/language:v1/Entity/type": type "/language:v1/Entity/metadata": metadata "/language:v1/Entity/metadata/metadatum": metadatum "/language:v1/Entity/salience": salience +"/language:v1/Entity/mentions": mentions +"/language:v1/Entity/mentions/mention": mention +"/language:v1/Entity/name": name "/language:v1/AnalyzeSyntaxResponse": analyze_syntax_response "/language:v1/AnalyzeSyntaxResponse/sentences": sentences "/language:v1/AnalyzeSyntaxResponse/sentences/sentence": sentence @@ -30709,60 +30652,57 @@ "/language:v1/AnnotateTextRequest/encodingType": encoding_type "/language:v1/AnnotateTextRequest/document": document "/language:v1/AnnotateTextRequest/features": features -"/language:v1/AnalyzeSentimentRequest": analyze_sentiment_request -"/language:v1/AnalyzeSentimentRequest/encodingType": encoding_type -"/language:v1/AnalyzeSentimentRequest/document": document "/language:v1/AnnotateTextResponse": annotate_text_response +"/language:v1/AnnotateTextResponse/documentSentiment": document_sentiment +"/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/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/beginOffset": begin_offset -"/language:v1/TextSpan/content": content +"/language:v1/DependencyEdge/label": label "/language:v1/Token": token -"/language:v1/Token/partOfSpeech": part_of_speech "/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/TextSpan": text_span +"/language:v1/TextSpan/beginOffset": begin_offset +"/language:v1/TextSpan/content": content "/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/Status/code": code -"/language:v1/Status/message": message -"/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/EntityMention": entity_mention "/language:v1/EntityMention/text": text "/language:v1/EntityMention/type": type -"/language:v1/Sentence": sentence -"/language:v1/Sentence/text": text -"/language:v1/Sentence/sentiment": sentiment +"/language:v1/Features": features +"/language:v1/Features/extractSyntax": extract_syntax +"/language:v1/Features/extractDocumentSentiment": extract_document_sentiment +"/language:v1/Features/extractEntities": extract_entities "/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/Document/language": language +"/language:v1/Sentence": sentence +"/language:v1/Sentence/text": text +"/language:v1/Sentence/sentiment": sentiment +"/language:v1/AnalyzeEntitiesRequest": analyze_entities_request +"/language:v1/AnalyzeEntitiesRequest/document": document +"/language:v1/AnalyzeEntitiesRequest/encodingType": encoding_type "/language:v1/Sentiment": sentiment "/language:v1/Sentiment/score": score "/language:v1/Sentiment/magnitude": magnitude -"/language:v1/AnalyzeEntitiesRequest": analyze_entities_request -"/language:v1/AnalyzeEntitiesRequest/encodingType": encoding_type -"/language:v1/AnalyzeEntitiesRequest/document": document "/language:v1/PartOfSpeech": part_of_speech -"/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 @@ -30772,80 +30712,23 @@ "/language:v1/PartOfSpeech/gender": gender "/language:v1/PartOfSpeech/person": person "/language:v1/PartOfSpeech/proper": proper -"/language:v1/AnalyzeSyntaxRequest": analyze_syntax_request -"/language:v1/AnalyzeSyntaxRequest/encodingType": encoding_type -"/language:v1/AnalyzeSyntaxRequest/document": document -"/language:v1/AnalyzeSentimentResponse": analyze_sentiment_response -"/language:v1/AnalyzeSentimentResponse/documentSentiment": document_sentiment -"/language:v1/AnalyzeSentimentResponse/language": language -"/language:v1/AnalyzeSentimentResponse/sentences": sentences -"/language:v1/AnalyzeSentimentResponse/sentences/sentence": sentence -"/language:v1/AnalyzeEntitiesResponse": analyze_entities_response -"/language:v1/AnalyzeEntitiesResponse/language": language -"/language:v1/AnalyzeEntitiesResponse/entities": entities -"/language:v1/AnalyzeEntitiesResponse/entities/entity": entity -"/language:v1beta1/quotaUser": quota_user +"/language:v1/PartOfSpeech/case": case +"/language:v1/PartOfSpeech/tense": tense +"/language:v1/PartOfSpeech/reciprocity": reciprocity "/language:v1beta1/fields": fields "/language:v1beta1/key": key +"/language:v1beta1/quotaUser": quota_user "/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/language.documents.analyzeSentiment": analyze_document_sentiment -"/language:v1beta1/AnnotateTextRequest": annotate_text_request -"/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/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/DependencyEdge": dependency_edge -"/language:v1beta1/DependencyEdge/headTokenIndex": head_token_index -"/language:v1beta1/DependencyEdge/label": label -"/language:v1beta1/Token": token -"/language:v1beta1/Token/partOfSpeech": part_of_speech -"/language:v1beta1/Token/text": text -"/language:v1beta1/Token/dependencyEdge": dependency_edge -"/language:v1beta1/Token/lemma": lemma -"/language:v1beta1/TextSpan": text_span -"/language:v1beta1/TextSpan/beginOffset": begin_offset -"/language:v1beta1/TextSpan/content": content -"/language:v1beta1/Status": status -"/language:v1beta1/Status/code": code -"/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/Features": features -"/language:v1beta1/Features/extractEntities": extract_entities -"/language:v1beta1/Features/extractSyntax": extract_syntax -"/language:v1beta1/Features/extractDocumentSentiment": extract_document_sentiment -"/language:v1beta1/EntityMention": entity_mention -"/language:v1beta1/EntityMention/text": text -"/language:v1beta1/EntityMention/type": type -"/language:v1beta1/Document": document -"/language:v1beta1/Document/type": type -"/language:v1beta1/Document/content": content -"/language:v1beta1/Document/gcsContentUri": gcs_content_uri -"/language:v1beta1/Document/language": language -"/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 -"/language:v1beta1/AnalyzeEntitiesRequest": analyze_entities_request -"/language:v1beta1/AnalyzeEntitiesRequest/encodingType": encoding_type -"/language:v1beta1/AnalyzeEntitiesRequest/document": document "/language:v1beta1/PartOfSpeech": part_of_speech "/language:v1beta1/PartOfSpeech/form": form "/language:v1beta1/PartOfSpeech/number": number @@ -30860,31 +30743,79 @@ "/language:v1beta1/PartOfSpeech/tense": tense "/language:v1beta1/PartOfSpeech/reciprocity": reciprocity "/language:v1beta1/AnalyzeSyntaxRequest": analyze_syntax_request -"/language:v1beta1/AnalyzeSyntaxRequest/encodingType": encoding_type "/language:v1beta1/AnalyzeSyntaxRequest/document": document +"/language:v1beta1/AnalyzeSyntaxRequest/encodingType": encoding_type "/language:v1beta1/AnalyzeSentimentResponse": analyze_sentiment_response -"/language:v1beta1/AnalyzeSentimentResponse/documentSentiment": document_sentiment -"/language:v1beta1/AnalyzeSentimentResponse/language": language "/language:v1beta1/AnalyzeSentimentResponse/sentences": sentences "/language:v1beta1/AnalyzeSentimentResponse/sentences/sentence": sentence +"/language:v1beta1/AnalyzeSentimentResponse/documentSentiment": document_sentiment +"/language:v1beta1/AnalyzeSentimentResponse/language": language "/language:v1beta1/AnalyzeEntitiesResponse": analyze_entities_response -"/language:v1beta1/AnalyzeEntitiesResponse/language": language "/language:v1beta1/AnalyzeEntitiesResponse/entities": entities "/language:v1beta1/AnalyzeEntitiesResponse/entities/entity": entity +"/language:v1beta1/AnalyzeEntitiesResponse/language": language +"/language:v1beta1/Entity": entity +"/language:v1beta1/Entity/mentions": mentions +"/language:v1beta1/Entity/mentions/mention": mention +"/language:v1beta1/Entity/name": name +"/language:v1beta1/Entity/type": type +"/language:v1beta1/Entity/metadata": metadata +"/language:v1beta1/Entity/metadata/metadatum": metadatum +"/language:v1beta1/Entity/salience": salience "/language:v1beta1/AnalyzeSyntaxResponse": analyze_syntax_response "/language:v1beta1/AnalyzeSyntaxResponse/language": language "/language:v1beta1/AnalyzeSyntaxResponse/sentences": sentences "/language:v1beta1/AnalyzeSyntaxResponse/sentences/sentence": sentence "/language:v1beta1/AnalyzeSyntaxResponse/tokens": tokens "/language:v1beta1/AnalyzeSyntaxResponse/tokens/token": token -"/language:v1beta1/Entity": entity -"/language:v1beta1/Entity/type": type -"/language:v1beta1/Entity/metadata": metadata -"/language:v1beta1/Entity/metadata/metadatum": metadatum -"/language:v1beta1/Entity/salience": salience -"/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/encodingType": encoding_type +"/language:v1beta1/AnnotateTextRequest/document": document +"/language:v1beta1/AnnotateTextRequest/features": features +"/language:v1beta1/AnnotateTextResponse": annotate_text_response +"/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/AnnotateTextResponse/language": language +"/language:v1beta1/AnalyzeSentimentRequest": analyze_sentiment_request +"/language:v1beta1/AnalyzeSentimentRequest/document": document +"/language:v1beta1/AnalyzeSentimentRequest/encodingType": encoding_type +"/language:v1beta1/DependencyEdge": dependency_edge +"/language:v1beta1/DependencyEdge/headTokenIndex": head_token_index +"/language:v1beta1/DependencyEdge/label": label +"/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/TextSpan": text_span +"/language:v1beta1/TextSpan/beginOffset": begin_offset +"/language:v1beta1/TextSpan/content": content +"/language:v1beta1/Status": status +"/language:v1beta1/Status/code": code +"/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/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/Sentence": sentence +"/language:v1beta1/Sentence/text": text +"/language:v1beta1/Sentence/sentiment": sentiment +"/language:v1beta1/Document": document +"/language:v1beta1/Document/type": type +"/language:v1beta1/Document/content": content +"/language:v1beta1/Document/gcsContentUri": gcs_content_uri +"/language:v1beta1/Document/language": language "/licensing:v1/fields": fields "/licensing:v1/key": key "/licensing:v1/quotaUser": quota_user @@ -30937,60 +30868,24 @@ "/logging:v2/fields": fields "/logging:v2/key": key "/logging:v2/quotaUser": quota_user -"/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/pageToken": page_token -"/logging:v2/logging.folders.logs.list/pageSize": page_size -"/logging:v2/logging.folders.logs.list/parent": parent -"/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.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/parent": parent -"/logging:v2/logging.organizations.logs.list/pageToken": page_token -"/logging:v2/logging.organizations.logs.list/pageSize": page_size -"/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.sinks.list": list_organization_sinks -"/logging:v2/logging.organizations.sinks.list/pageToken": page_token -"/logging:v2/logging.organizations.sinks.list/pageSize": page_size -"/logging:v2/logging.organizations.sinks.list/parent": parent -"/logging:v2/logging.organizations.sinks.get": get_organization_sink -"/logging:v2/logging.organizations.sinks.get/sinkName": sink_name -"/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.entries.list": list_entry_log_entries -"/logging:v2/logging.entries.write": write_entry_log_entries +"/logging:v2/logging.projects.metrics.list": list_project_metrics +"/logging:v2/logging.projects.metrics.list/parent": parent +"/logging:v2/logging.projects.metrics.list/pageToken": page_token +"/logging:v2/logging.projects.metrics.list/pageSize": page_size +"/logging:v2/logging.projects.metrics.get": get_project_metric +"/logging:v2/logging.projects.metrics.get/metricName": metric_name +"/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.projects.metrics.delete": delete_project_metric +"/logging:v2/logging.projects.metrics.delete/metricName": metric_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/parent": parent "/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.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.sinks.list": list_project_sinks @@ -31002,30 +30897,21 @@ "/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.metrics.create": create_project_metric -"/logging:v2/logging.projects.metrics.create/parent": parent -"/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/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.get": get_project_metric -"/logging:v2/logging.projects.metrics.get/metricName": metric_name -"/logging:v2/logging.projects.metrics.update": update_project_metric -"/logging:v2/logging.projects.metrics.update/metricName": metric_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.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.logs.list/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.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.list/parent": parent "/logging:v2/logging.billingAccounts.sinks.get": get_billing_account_sink "/logging:v2/logging.billingAccounts.sinks.get/sinkName": sink_name "/logging:v2/logging.billingAccounts.sinks.update": update_billing_account_sink @@ -31034,16 +30920,107 @@ "/logging:v2/logging.billingAccounts.sinks.create": create_billing_account_sink "/logging:v2/logging.billingAccounts.sinks.create/parent": parent "/logging:v2/logging.billingAccounts.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/pageToken": page_token +"/logging:v2/logging.folders.logs.list/pageSize": page_size +"/logging:v2/logging.folders.logs.list/parent": parent +"/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.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/parent": parent +"/logging:v2/logging.folders.sinks.list/pageToken": page_token +"/logging:v2/logging.folders.sinks.list/pageSize": page_size +"/logging:v2/logging.folders.sinks.get": get_folder_sink +"/logging:v2/logging.folders.sinks.get/sinkName": sink_name +"/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.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.organizations.sinks.delete": delete_organization_sink +"/logging:v2/logging.organizations.sinks.delete/sinkName": sink_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.get": get_organization_sink +"/logging:v2/logging.organizations.sinks.get/sinkName": sink_name +"/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.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.entries.list": list_entry_log_entries +"/logging:v2/logging.entries.write": write_entry_log_entries +"/logging:v2/ListLogsResponse": list_logs_response +"/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/sinks": sinks +"/logging:v2/ListSinksResponse/sinks/sink": sink +"/logging:v2/ListSinksResponse/nextPageToken": next_page_token +"/logging:v2/HttpRequest": http_request +"/logging:v2/HttpRequest/cacheValidatedWithOriginServer": cache_validated_with_origin_server +"/logging:v2/HttpRequest/status": status +"/logging:v2/HttpRequest/referer": referer +"/logging:v2/HttpRequest/userAgent": user_agent +"/logging:v2/HttpRequest/latency": latency +"/logging:v2/HttpRequest/cacheFillBytes": cache_fill_bytes +"/logging:v2/HttpRequest/requestMethod": request_method +"/logging:v2/HttpRequest/responseSize": response_size +"/logging:v2/HttpRequest/requestSize": request_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/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/displayName": display_name +"/logging:v2/MonitoredResourceDescriptor/description": description +"/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/entries": entries +"/logging:v2/ListLogEntriesResponse/entries/entry": entry +"/logging:v2/ListLogEntriesResponse/nextPageToken": next_page_token "/logging:v2/LogLine": log_line -"/logging:v2/LogLine/sourceLocation": source_location -"/logging:v2/LogLine/time": time "/logging:v2/LogLine/severity": severity "/logging:v2/LogLine/logMessage": log_message +"/logging:v2/LogLine/sourceLocation": source_location +"/logging:v2/LogLine/time": time "/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/textPayload": text_payload +"/logging:v2/LogEntry/protoPayload": proto_payload +"/logging:v2/LogEntry/protoPayload/proto_payload": proto_payload "/logging:v2/LogEntry/trace": trace "/logging:v2/LogEntry/labels": labels "/logging:v2/LogEntry/labels/label": label @@ -31055,12 +31032,8 @@ "/logging:v2/LogEntry/resource": resource "/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 -"/logging:v2/Empty": empty +"/logging:v2/LogEntry/operation": operation "/logging:v2/SourceLocation": source_location "/logging:v2/SourceLocation/file": file "/logging:v2/SourceLocation/functionName": function_name @@ -31075,6 +31048,10 @@ "/logging:v2/ListLogEntriesRequest/resourceNames": resource_names "/logging:v2/ListLogEntriesRequest/resourceNames/resource_name": resource_name "/logging:v2/RequestLog": request_log +"/logging:v2/RequestLog/moduleId": module_id +"/logging:v2/RequestLog/endTime": end_time +"/logging:v2/RequestLog/userAgent": user_agent +"/logging:v2/RequestLog/wasLoadingRequest": was_loading_request "/logging:v2/RequestLog/sourceReference": source_reference "/logging:v2/RequestLog/sourceReference/source_reference": source_reference "/logging:v2/RequestLog/responseSize": response_size @@ -31105,10 +31082,6 @@ "/logging:v2/RequestLog/megaCycles": mega_cycles "/logging:v2/RequestLog/first": first "/logging:v2/RequestLog/versionId": version_id -"/logging:v2/RequestLog/moduleId": module_id -"/logging:v2/RequestLog/endTime": end_time -"/logging:v2/RequestLog/userAgent": user_agent -"/logging:v2/RequestLog/wasLoadingRequest": was_loading_request "/logging:v2/ListMonitoredResourceDescriptorsResponse": list_monitored_resource_descriptors_response "/logging:v2/ListMonitoredResourceDescriptorsResponse/resourceDescriptors": resource_descriptors "/logging:v2/ListMonitoredResourceDescriptorsResponse/resourceDescriptors/resource_descriptor": resource_descriptor @@ -31116,101 +31089,55 @@ "/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/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/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/LogEntryOperation/last": last -"/logging:v2/LogMetric": log_metric -"/logging:v2/LogMetric/name": name -"/logging:v2/LogMetric/description": description -"/logging:v2/LogMetric/version": version -"/logging:v2/LogMetric/filter": filter +"/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/MonitoredResource/type": type +"/logging:v2/LogSink": log_sink +"/logging:v2/LogSink/name": name +"/logging:v2/LogSink/filter": filter +"/logging:v2/LogSink/destination": destination +"/logging:v2/LogSink/endTime": end_time +"/logging:v2/LogSink/writerIdentity": writer_identity +"/logging:v2/LogSink/startTime": start_time +"/logging:v2/LogSink/outputVersionFormat": output_version_format "/logging:v2/WriteLogEntriesRequest": write_log_entries_request -"/logging:v2/WriteLogEntriesRequest/labels": labels -"/logging:v2/WriteLogEntriesRequest/labels/label": label -"/logging:v2/WriteLogEntriesRequest/resource": resource "/logging:v2/WriteLogEntriesRequest/logName": log_name "/logging:v2/WriteLogEntriesRequest/entries": entries "/logging:v2/WriteLogEntriesRequest/entries/entry": entry "/logging:v2/WriteLogEntriesRequest/partialSuccess": partial_success -"/logging:v2/LogSink": log_sink -"/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/LogSink/destination": destination -"/logging:v2/LogSink/filter": filter -"/logging:v2/LogSink/endTime": end_time -"/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/HttpRequest": http_request -"/logging:v2/HttpRequest/userAgent": user_agent -"/logging:v2/HttpRequest/latency": latency -"/logging:v2/HttpRequest/cacheFillBytes": cache_fill_bytes -"/logging:v2/HttpRequest/requestMethod": request_method -"/logging:v2/HttpRequest/responseSize": response_size -"/logging:v2/HttpRequest/requestSize": request_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/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/labels": labels -"/logging:v2/MonitoredResourceDescriptor/labels/label": label -"/logging:v2/MonitoredResourceDescriptor/name": name -"/logging:v2/MonitoredResourceDescriptor/displayName": display_name -"/logging:v2/MonitoredResourceDescriptor/description": description -"/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:v2beta1/fields": fields +"/logging:v2/WriteLogEntriesRequest/labels": labels +"/logging:v2/WriteLogEntriesRequest/labels/label": label +"/logging:v2/WriteLogEntriesRequest/resource": resource "/logging:v2beta1/key": key "/logging:v2beta1/quotaUser": quota_user -"/logging:v2beta1/logging.projects.metrics.create": create_project_metric -"/logging:v2beta1/logging.projects.metrics.create/parent": parent -"/logging:v2beta1/logging.projects.metrics.delete": delete_project_metric -"/logging:v2beta1/logging.projects.metrics.delete/metricName": metric_name -"/logging:v2beta1/logging.projects.metrics.list": list_project_metrics -"/logging:v2beta1/logging.projects.metrics.list/pageToken": page_token -"/logging:v2beta1/logging.projects.metrics.list/pageSize": page_size -"/logging:v2beta1/logging.projects.metrics.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.update": update_project_metric -"/logging:v2beta1/logging.projects.metrics.update/metricName": metric_name +"/logging:v2beta1/fields": fields +"/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/parent": parent +"/logging:v2beta1/logging.organizations.logs.list/pageToken": page_token +"/logging:v2beta1/logging.organizations.logs.list/pageSize": page_size +"/logging:v2beta1/logging.organizations.logs.delete": delete_organization_log +"/logging:v2beta1/logging.organizations.logs.delete/logName": log_name +"/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.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.sinks.list": list_project_sinks @@ -31222,42 +31149,68 @@ "/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.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.metrics.create": create_project_metric +"/logging:v2beta1/logging.projects.metrics.create/parent": parent +"/logging:v2beta1/logging.projects.metrics.delete": delete_project_metric +"/logging:v2beta1/logging.projects.metrics.delete/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.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/pageSize": page_size "/logging:v2beta1/logging.billingAccounts.logs.list/parent": parent "/logging:v2beta1/logging.billingAccounts.logs.list/pageToken": page_token -"/logging:v2beta1/logging.billingAccounts.logs.list/pageSize": page_size -"/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.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/parent": parent -"/logging:v2beta1/logging.organizations.logs.list/pageToken": page_token -"/logging:v2beta1/logging.organizations.logs.list/pageSize": page_size -"/logging:v2beta1/logging.entries.list": list_entry_log_entries -"/logging:v2beta1/logging.entries.write": write_entry_log_entries +"/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/metrics": metrics +"/logging:v2beta1/ListLogMetricsResponse/metrics/metric": metric +"/logging:v2beta1/ListLogMetricsResponse/nextPageToken": next_page_token +"/logging:v2beta1/LogEntry": log_entry +"/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/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/Empty": empty +"/logging:v2beta1/SourceLocation": source_location +"/logging:v2beta1/SourceLocation/line": line +"/logging:v2beta1/SourceLocation/file": file +"/logging:v2beta1/SourceLocation/functionName": function_name "/logging:v2beta1/ListLogEntriesRequest": list_log_entries_request +"/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/filter": filter "/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/versionId": version_id -"/logging:v2beta1/RequestLog/moduleId": module_id -"/logging:v2beta1/RequestLog/endTime": end_time -"/logging:v2beta1/RequestLog/userAgent": user_agent -"/logging:v2beta1/RequestLog/wasLoadingRequest": was_loading_request -"/logging:v2beta1/RequestLog/sourceReference": source_reference -"/logging:v2beta1/RequestLog/sourceReference/source_reference": source_reference -"/logging:v2beta1/RequestLog/responseSize": response_size -"/logging:v2beta1/RequestLog/traceId": trace_id "/logging:v2beta1/RequestLog/line": line "/logging:v2beta1/RequestLog/line/line": line "/logging:v2beta1/RequestLog/referrer": referrer @@ -31265,13 +31218,13 @@ "/logging:v2beta1/RequestLog/requestId": request_id "/logging:v2beta1/RequestLog/nickname": nickname "/logging:v2beta1/RequestLog/status": status -"/logging:v2beta1/RequestLog/resource": resource "/logging:v2beta1/RequestLog/pendingTime": pending_time +"/logging:v2beta1/RequestLog/resource": resource "/logging:v2beta1/RequestLog/taskName": task_name "/logging:v2beta1/RequestLog/urlMapEntry": url_map_entry "/logging:v2beta1/RequestLog/instanceIndex": instance_index -"/logging:v2beta1/RequestLog/finished": finished "/logging:v2beta1/RequestLog/host": host +"/logging:v2beta1/RequestLog/finished": finished "/logging:v2beta1/RequestLog/httpVersion": http_version "/logging:v2beta1/RequestLog/startTime": start_time "/logging:v2beta1/RequestLog/latency": latency @@ -31283,6 +31236,15 @@ "/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 +"/logging:v2beta1/RequestLog/wasLoadingRequest": was_loading_request +"/logging:v2beta1/RequestLog/sourceReference": source_reference +"/logging:v2beta1/RequestLog/sourceReference/source_reference": source_reference +"/logging:v2beta1/RequestLog/responseSize": response_size +"/logging:v2beta1/RequestLog/traceId": trace_id "/logging:v2beta1/ListMonitoredResourceDescriptorsResponse": list_monitored_resource_descriptors_response "/logging:v2beta1/ListMonitoredResourceDescriptorsResponse/resourceDescriptors": resource_descriptors "/logging:v2beta1/ListMonitoredResourceDescriptorsResponse/resourceDescriptors/resource_descriptor": resource_descriptor @@ -31290,29 +31252,21 @@ "/logging:v2beta1/SourceReference": source_reference "/logging:v2beta1/SourceReference/repository": repository "/logging:v2beta1/SourceReference/revisionId": revision_id -"/logging:v2beta1/WriteLogEntriesResponse": write_log_entries_response "/logging:v2beta1/LogEntryOperation": log_entry_operation -"/logging:v2beta1/LogEntryOperation/last": last -"/logging:v2beta1/LogEntryOperation/id": id "/logging:v2beta1/LogEntryOperation/producer": producer "/logging:v2beta1/LogEntryOperation/first": first +"/logging:v2beta1/LogEntryOperation/last": last +"/logging:v2beta1/LogEntryOperation/id": id "/logging:v2beta1/LogMetric": log_metric "/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/MonitoredResource": monitored_resource "/logging:v2beta1/MonitoredResource/labels": labels "/logging:v2beta1/MonitoredResource/labels/label": label "/logging:v2beta1/MonitoredResource/type": type -"/logging:v2beta1/LogSink": log_sink -"/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/LogSink/filter": filter -"/logging:v2beta1/LogSink/destination": destination -"/logging:v2beta1/LogSink/endTime": end_time "/logging:v2beta1/WriteLogEntriesRequest": write_log_entries_request "/logging:v2beta1/WriteLogEntriesRequest/labels": labels "/logging:v2beta1/WriteLogEntriesRequest/labels/label": label @@ -31321,16 +31275,19 @@ "/logging:v2beta1/WriteLogEntriesRequest/entries": entries "/logging:v2beta1/WriteLogEntriesRequest/entries/entry": entry "/logging:v2beta1/WriteLogEntriesRequest/partialSuccess": partial_success +"/logging:v2beta1/LogSink": log_sink +"/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/LogSink/filter": filter +"/logging:v2beta1/LogSink/destination": destination +"/logging:v2beta1/LogSink/endTime": end_time "/logging:v2beta1/ListLogsResponse": list_logs_response "/logging:v2beta1/ListLogsResponse/logNames": log_names "/logging:v2beta1/ListLogsResponse/logNames/log_name": log_name "/logging:v2beta1/ListLogsResponse/nextPageToken": next_page_token -"/logging:v2beta1/ListSinksResponse": list_sinks_response -"/logging:v2beta1/ListSinksResponse/nextPageToken": next_page_token -"/logging:v2beta1/ListSinksResponse/sinks": sinks -"/logging:v2beta1/ListSinksResponse/sinks/sink": sink "/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 @@ -31344,66 +31301,59 @@ "/logging:v2beta1/HttpRequest/requestUrl": request_url "/logging:v2beta1/HttpRequest/remoteIp": remote_ip "/logging:v2beta1/HttpRequest/serverIp": server_ip +"/logging:v2beta1/HttpRequest/cacheLookup": cache_lookup +"/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/key": key "/logging:v2beta1/LabelDescriptor/description": description "/logging:v2beta1/LabelDescriptor/valueType": value_type +"/logging:v2beta1/LabelDescriptor/key": key "/logging:v2beta1/MonitoredResourceDescriptor": monitored_resource_descriptor -"/logging:v2beta1/MonitoredResourceDescriptor/name": name "/logging:v2beta1/MonitoredResourceDescriptor/displayName": display_name "/logging:v2beta1/MonitoredResourceDescriptor/description": description "/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/line": line "/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/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/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/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/trace": trace -"/logging:v2beta1/LogEntry/labels": labels -"/logging:v2beta1/LogEntry/labels/label": label -"/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 +"/logging:v2beta1/ListLogEntriesResponse/nextPageToken": next_page_token "/manufacturers:v1/fields": fields "/manufacturers:v1/key": key "/manufacturers:v1/quotaUser": quota_user "/manufacturers:v1/manufacturers.accounts.products.list": list_account_products +"/manufacturers:v1/manufacturers.accounts.products.list/parent": parent "/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/parent": parent "/manufacturers:v1/manufacturers.accounts.products.get/name": name +"/manufacturers:v1/Count": count +"/manufacturers:v1/Count/value": value +"/manufacturers:v1/Count/unit": unit +"/manufacturers:v1/Product": product +"/manufacturers:v1/Product/manuallyDeletedAttributes": manually_deleted_attributes +"/manufacturers:v1/Product/manuallyDeletedAttributes/manually_deleted_attribute": manually_deleted_attribute +"/manufacturers:v1/Product/issues": issues +"/manufacturers:v1/Product/issues/issue": issue +"/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/name": name +"/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 @@ -31412,39 +31362,27 @@ "/manufacturers:v1/ProductDetail/attributeValue": attribute_value "/manufacturers:v1/ProductDetail/sectionName": section_name "/manufacturers:v1/ProductDetail/attributeName": attribute_name -"/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/timestamp": timestamp "/manufacturers:v1/Issue/severity": severity "/manufacturers:v1/Issue/description": description "/manufacturers:v1/Issue/type": type "/manufacturers:v1/Issue/attribute": attribute -"/manufacturers:v1/Issue/timestamp": timestamp +"/manufacturers:v1/FeatureDescription": feature_description +"/manufacturers:v1/FeatureDescription/headline": headline +"/manufacturers:v1/FeatureDescription/text": text +"/manufacturers:v1/FeatureDescription/image": image "/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/Image/status": status "/manufacturers:v1/Attributes": attributes -"/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/flavor": flavor "/manufacturers:v1/Attributes/productDetail": product_detail "/manufacturers:v1/Attributes/productDetail/product_detail": product_detail -"/manufacturers:v1/Attributes/flavor": flavor "/manufacturers:v1/Attributes/ageGroup": age_group "/manufacturers:v1/Attributes/mpn": mpn "/manufacturers:v1/Attributes/productPageUrl": product_page_url @@ -31468,25 +31406,18 @@ "/manufacturers:v1/Attributes/videoLink": video_link "/manufacturers:v1/Attributes/videoLink/video_link": video_link "/manufacturers:v1/Attributes/color": color -"/manufacturers:v1/Count": count -"/manufacturers:v1/Count/value": value -"/manufacturers:v1/Count/unit": unit -"/manufacturers:v1/Product": product -"/manufacturers:v1/Product/manuallyProvidedAttributes": manually_provided_attributes -"/manufacturers:v1/Product/targetCountry": target_country -"/manufacturers:v1/Product/contentLanguage": content_language -"/manufacturers:v1/Product/name": name -"/manufacturers:v1/Product/manuallyDeletedAttributes": manually_deleted_attributes -"/manufacturers:v1/Product/manuallyDeletedAttributes/manually_deleted_attribute": manually_deleted_attribute -"/manufacturers:v1/Product/issues": issues -"/manufacturers:v1/Product/issues/issue": issue -"/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/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 "/mirror:v1/fields": fields "/mirror:v1/key": key "/mirror:v1/quotaUser": quota_user @@ -31684,17 +31615,17 @@ "/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.cancel": cancel_project_job +"/ml:v1/ml.projects.jobs.cancel/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/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.cancel": cancel_project_operation "/ml:v1/ml.projects.operations.cancel/name": name "/ml:v1/ml.projects.operations.delete": delete_project_operation @@ -31709,9 +31640,9 @@ "/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 "/ml:v1/ml.projects.models.list/parent": parent -"/ml:v1/ml.projects.models.list/pageToken": page_token "/ml:v1/ml.projects.models.get": get_project_model "/ml:v1/ml.projects.models.get/name": name "/ml:v1/ml.projects.models.create": create_project_model @@ -31728,6 +31659,37 @@ "/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/GoogleApi__HttpBody": google_api__http_body +"/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/lastUseTime": last_use_time +"/ml:v1/GoogleCloudMlV1beta1__Version/runtimeVersion": runtime_version +"/ml:v1/GoogleCloudMlV1beta1__Version/description": description +"/ml:v1/GoogleCloudMlV1beta1__Version/deploymentUri": deployment_uri +"/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/name": name +"/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 +"/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__PredictionOutput": google_cloud_ml_v1__prediction_output +"/ml:v1/GoogleCloudMlV1__PredictionOutput/predictionCount": prediction_count +"/ml:v1/GoogleCloudMlV1__PredictionOutput/errorCount": error_count +"/ml:v1/GoogleCloudMlV1__PredictionOutput/outputPath": output_path +"/ml:v1/GoogleCloudMlV1__PredictionOutput/nodeHours": node_hours +"/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/GoogleCloudMlV1__ManualScaling": google_cloud_ml_v1__manual_scaling "/ml:v1/GoogleCloudMlV1__ManualScaling/nodes": nodes "/ml:v1/GoogleCloudMlV1__TrainingOutput": google_cloud_ml_v1__training_output @@ -31739,87 +31701,87 @@ "/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/objectiveValue": objective_value "/ml:v1/GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric/trainingStep": training_step +"/ml:v1/GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric/objectiveValue": objective_value "/ml:v1/GoogleCloudMlV1__Version": google_cloud_ml_v1__version +"/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/isDefault": is_default "/ml:v1/GoogleCloudMlV1__Version/createTime": create_time "/ml:v1/GoogleCloudMlV1__Version/manualScaling": manual_scaling "/ml:v1/GoogleCloudMlV1__Version/name": name -"/ml:v1/GoogleCloudMlV1__Version/lastUseTime": last_use_time -"/ml:v1/GoogleCloudMlV1__Version/runtimeVersion": runtime_version -"/ml:v1/GoogleCloudMlV1__Version/description": description -"/ml:v1/GoogleCloudMlV1__Version/deploymentUri": deployment_uri "/ml:v1/GoogleCloudMlV1__ParameterSpec": google_cloud_ml_v1__parameter_spec +"/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/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__PredictionInput": google_cloud_ml_v1__prediction_input -"/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/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/GoogleCloudMlV1beta1__OperationMetadata": google_cloud_ml_v1beta1__operation_metadata -"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/endTime": end_time -"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/operationType": operation_type -"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/startTime": start_time -"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/isCancellationRequested": is_cancellation_requested -"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/createTime": create_time -"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/modelName": model_name -"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/version": version +"/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/GoogleCloudMlV1__PredictionInput/region": region "/ml:v1/GoogleCloudMlV1__OperationMetadata": google_cloud_ml_v1__operation_metadata -"/ml:v1/GoogleCloudMlV1__OperationMetadata/createTime": create_time "/ml:v1/GoogleCloudMlV1__OperationMetadata/modelName": model_name "/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/GoogleCloudMlV1beta1__OperationMetadata": google_cloud_ml_v1beta1__operation_metadata +"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/operationType": operation_type +"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/startTime": start_time +"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/isCancellationRequested": is_cancellation_requested +"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/createTime": create_time +"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/modelName": model_name +"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/version": version +"/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/endTime": end_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/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/goal": goal +"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/hyperparameterMetricTag": hyperparameter_metric_tag "/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 "/ml:v1/GoogleCloudMlV1__ListJobsResponse/jobs/job": job +"/ml:v1/GoogleCloudMlV1__ListJobsResponse/nextPageToken": next_page_token "/ml:v1/GoogleCloudMlV1__SetDefaultVersionRequest": google_cloud_ml_v1__set_default_version_request "/ml:v1/GoogleLongrunning__Operation": google_longrunning__operation +"/ml:v1/GoogleLongrunning__Operation/done": done "/ml:v1/GoogleLongrunning__Operation/response": response "/ml:v1/GoogleLongrunning__Operation/response/response": response "/ml:v1/GoogleLongrunning__Operation/name": name "/ml:v1/GoogleLongrunning__Operation/error": error "/ml:v1/GoogleLongrunning__Operation/metadata": metadata "/ml:v1/GoogleLongrunning__Operation/metadata/metadatum": metadatum -"/ml:v1/GoogleLongrunning__Operation/done": done "/ml:v1/GoogleCloudMlV1__Model": google_cloud_ml_v1__model -"/ml:v1/GoogleCloudMlV1__Model/onlinePredictionLogging": online_prediction_logging "/ml:v1/GoogleCloudMlV1__Model/defaultVersion": default_version "/ml:v1/GoogleCloudMlV1__Model/regions": regions "/ml:v1/GoogleCloudMlV1__Model/regions/region": region "/ml:v1/GoogleCloudMlV1__Model/name": name "/ml:v1/GoogleCloudMlV1__Model/description": description +"/ml:v1/GoogleCloudMlV1__Model/onlinePredictionLogging": online_prediction_logging "/ml:v1/GoogleProtobuf__Empty": google_protobuf__empty "/ml:v1/GoogleCloudMlV1__CancelJobRequest": google_cloud_ml_v1__cancel_job_request "/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/GoogleCloudMlV1beta1__ManualScaling": google_cloud_ml_v1beta1__manual_scaling "/ml:v1/GoogleCloudMlV1beta1__ManualScaling/nodes": nodes "/ml:v1/GoogleRpc__Status": google_rpc__status @@ -31828,16 +31790,7 @@ "/ml:v1/GoogleRpc__Status/details/detail/detail": detail "/ml:v1/GoogleRpc__Status/code": code "/ml:v1/GoogleRpc__Status/message": message -"/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__TrainingInput": google_cloud_ml_v1__training_input -"/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/parameterServerType": parameter_server_type "/ml:v1/GoogleCloudMlV1__TrainingInput/scaleTier": scale_tier "/ml:v1/GoogleCloudMlV1__TrainingInput/jobDir": job_dir "/ml:v1/GoogleCloudMlV1__TrainingInput/hyperparameters": hyperparameters @@ -31848,48 +31801,26 @@ "/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/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__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__Job": google_cloud_ml_v1__job -"/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/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/trainingInput": training_input "/ml:v1/GoogleCloudMlV1__Job/createTime": create_time -"/ml:v1/GoogleApi__HttpBody": google_api__http_body -"/ml:v1/GoogleApi__HttpBody/data": data -"/ml:v1/GoogleApi__HttpBody/contentType": content_type -"/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 -"/ml:v1/GoogleCloudMlV1beta1__Version": google_cloud_ml_v1beta1__version -"/ml:v1/GoogleCloudMlV1beta1__Version/createTime": create_time -"/ml:v1/GoogleCloudMlV1beta1__Version/manualScaling": manual_scaling -"/ml:v1/GoogleCloudMlV1beta1__Version/name": name -"/ml:v1/GoogleCloudMlV1beta1__Version/lastUseTime": last_use_time -"/ml:v1/GoogleCloudMlV1beta1__Version/runtimeVersion": runtime_version -"/ml:v1/GoogleCloudMlV1beta1__Version/description": description -"/ml:v1/GoogleCloudMlV1beta1__Version/deploymentUri": deployment_uri -"/ml:v1/GoogleCloudMlV1beta1__Version/isDefault": is_default -"/ml:v1/GoogleCloudMlV1__HyperparameterOutput": google_cloud_ml_v1__hyperparameter_output -"/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/GoogleCloudMlV1__HyperparameterOutput/hyperparameters": hyperparameters -"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/hyperparameters/hyperparameter": hyperparameter -"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/trialId": trial_id -"/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/predictionCount": prediction_count -"/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/GoogleCloudMlV1__Job/trainingInput": training_input +"/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 "/oauth2:v2/fields": fields "/oauth2:v2/key": key "/oauth2:v2/quotaUser": quota_user @@ -32014,28 +31945,118 @@ "/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.exams.getToken": get_exam_token +"/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.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.leads.list": list_leads +"/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.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.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/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.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.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.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/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.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.getPartnersstatus/requestMetadata.partnersSessionId": request_metadata_partners_session_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.updateLeads": update_leads +"/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.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.updateCompanies": update_companies +"/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.updateCompanies/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.updateCompanies/requestMetadata.userOverrides.userId": request_metadata_user_overrides_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/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id "/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/address": address "/partners:v2/partners.companies.get/requestMetadata.locale": request_metadata_locale "/partners:v2/partners.companies.list": list_companies +"/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/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id "/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 @@ -32050,42 +32071,36 @@ "/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/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.leads.create": create_lead "/partners:v2/partners.companies.leads.create/companyId": company_id "/partners:v2/partners.users.createCompanyRelation": create_user_company_relation +"/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.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.createCompanyRelation/userId": user_id -"/partners:v2/partners.users.createCompanyRelation/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id "/partners:v2/partners.users.deleteCompanyRelation": delete_user_company_relation -"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.experimentIds": request_metadata_experiment_ids -"/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.deleteCompanyRelation/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.users.deleteCompanyRelation/userId": user_id "/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 +"/partners:v2/partners.users.get/userView": user_view "/partners:v2/partners.users.get/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id "/partners:v2/partners.users.get/requestMetadata.locale": request_metadata_locale "/partners:v2/partners.users.get/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address "/partners:v2/partners.users.get/requestMetadata.experimentIds": request_metadata_experiment_ids -"/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.get/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.users.get/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.users.get/userView": user_view +"/partners:v2/partners.users.get/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id "/partners:v2/partners.users.updateProfile": update_user_profile "/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 @@ -32096,128 +32111,117 @@ "/partners:v2/partners.users.updateProfile/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_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/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/orderBy": order_by -"/partners:v2/partners.leads.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/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.offers.list": list_offers -"/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.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.offers.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_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.history.list": list_offer_histories -"/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.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.analytics.list": list_analytics -"/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.analytics.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.userStates.list": list_user_states -"/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.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.updateCompanies": update_companies -"/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.updateCompanies/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.updateCompanies/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.getPartnersstatus": get_partnersstatus -"/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.getPartnersstatus/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.getPartnersstatus/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.updateLeads": update_leads -"/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.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.updateLeads/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/Certification": certification +"/partners:v2/Certification/lastAchieved": last_achieved +"/partners:v2/Certification/achieved": achieved +"/partners:v2/Certification/expiration": expiration +"/partners:v2/Certification/warning": warning +"/partners:v2/Certification/certificationType": certification_type +"/partners:v2/User": user +"/partners:v2/User/examStatus": exam_status +"/partners:v2/User/examStatus/exam_status": exam_status +"/partners:v2/User/id": id +"/partners:v2/User/publicProfile": public_profile +"/partners:v2/User/certificationStatus": certification_status +"/partners:v2/User/certificationStatus/certification_status": certification_status +"/partners:v2/User/companyVerificationEmail": company_verification_email +"/partners:v2/User/company": company +"/partners:v2/User/profile": profile +"/partners:v2/User/lastAccessTime": last_access_time +"/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/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/analytics": analytics +"/partners:v2/ListAnalyticsResponse/analytics/analytic": analytic +"/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/Company": company +"/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/Company/localizedInfos": localized_infos +"/partners:v2/Company/localizedInfos/localized_info": localized_info +"/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/primaryLocation": primary_location +"/partners:v2/Company/services": services +"/partners:v2/Company/services/service": service +"/partners:v2/Company/ranks": ranks +"/partners:v2/Company/ranks/rank": rank +"/partners:v2/Company/specializationStatus": specialization_status +"/partners:v2/Company/specializationStatus/specialization_status": specialization_status +"/partners:v2/Company/badgeTier": badge_tier +"/partners:v2/Company/companyTypes": company_types +"/partners:v2/Company/companyTypes/company_type": company_type +"/partners:v2/Company/autoApprovalEmailDomains": auto_approval_email_domains +"/partners:v2/Company/autoApprovalEmailDomains/auto_approval_email_domain": auto_approval_email_domain +"/partners:v2/Company/primaryLanguageCode": primary_language_code +"/partners:v2/Company/profileStatus": profile_status +"/partners:v2/Company/locations": locations +"/partners:v2/Company/locations/location": location "/partners:v2/CreateLeadResponse": create_lead_response -"/partners:v2/CreateLeadResponse/responseMetadata": response_metadata "/partners:v2/CreateLeadResponse/lead": lead "/partners:v2/CreateLeadResponse/recaptchaStatus": recaptcha_status +"/partners:v2/CreateLeadResponse/responseMetadata": response_metadata "/partners:v2/GetCompanyResponse": get_company_response "/partners:v2/GetCompanyResponse/company": company "/partners:v2/GetCompanyResponse/responseMetadata": response_metadata "/partners:v2/Location": location +"/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/Location/administrativeArea": administrative_area "/partners:v2/Location/locality": locality "/partners:v2/Location/latLng": lat_lng "/partners:v2/Location/dependentLocality": dependent_locality -"/partners:v2/Location/address": address "/partners:v2/Location/regionCode": region_code +"/partners:v2/Location/address": address "/partners:v2/Location/postalCode": postal_code -"/partners:v2/Location/sortingCode": sorting_code -"/partners:v2/Location/languageCode": language_code -"/partners:v2/Location/addressLine": address_line -"/partners:v2/Location/addressLine/address_line": address_line -"/partners:v2/CertificationExamStatus": certification_exam_status -"/partners:v2/CertificationExamStatus/type": type -"/partners:v2/CertificationExamStatus/numberUsersPass": number_users_pass "/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/CertificationExamStatus": certification_exam_status +"/partners:v2/CertificationExamStatus/numberUsersPass": number_users_pass +"/partners:v2/CertificationExamStatus/type": type "/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/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/UserProfile": user_profile +"/partners:v2/UserProfile/familyName": family_name +"/partners:v2/UserProfile/languages": languages +"/partners:v2/UserProfile/languages/language": language +"/partners:v2/UserProfile/emailOptIns": email_opt_ins +"/partners:v2/UserProfile/markets": markets +"/partners:v2/UserProfile/markets/market": market +"/partners:v2/UserProfile/adwordsManagerAccount": adwords_manager_account +"/partners:v2/UserProfile/phoneNumber": phone_number +"/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 @@ -32227,21 +32231,9 @@ "/partners:v2/UserProfile/address": address "/partners:v2/UserProfile/industries": industries "/partners:v2/UserProfile/industries/industry": industry -"/partners:v2/UserProfile/emailOptIns": email_opt_ins -"/partners:v2/UserProfile/languages": languages -"/partners:v2/UserProfile/languages/language": language -"/partners:v2/UserProfile/familyName": family_name -"/partners:v2/UserProfile/markets": markets -"/partners:v2/UserProfile/markets/market": market -"/partners:v2/UserProfile/adwordsManagerAccount": adwords_manager_account -"/partners:v2/UserProfile/phoneNumber": phone_number -"/partners:v2/UserProfile/primaryCountryCode": primary_country_code -"/partners:v2/UserProfile/emailAddress": email_address +"/partners:v2/GetPartnersStatusResponse": get_partners_status_response +"/partners:v2/GetPartnersStatusResponse/responseMetadata": response_metadata "/partners:v2/HistoricalOffer": historical_offer -"/partners:v2/HistoricalOffer/creationTime": creation_time -"/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 @@ -32250,80 +32242,78 @@ "/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/status": status +"/partners:v2/HistoricalOffer/clientEmail": client_email +"/partners:v2/HistoricalOffer/clientId": client_id "/partners:v2/UserOverrides": user_overrides -"/partners:v2/UserOverrides/userId": user_id "/partners:v2/UserOverrides/ipAddress": ip_address +"/partners:v2/UserOverrides/userId": user_id "/partners:v2/LogUserEventRequest": log_user_event_request +"/partners:v2/LogUserEventRequest/url": url +"/partners:v2/LogUserEventRequest/requestMetadata": request_metadata +"/partners:v2/LogUserEventRequest/eventScope": event_scope +"/partners:v2/LogUserEventRequest/eventDatas": event_datas +"/partners:v2/LogUserEventRequest/eventDatas/event_data": event_data "/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/LogUserEventRequest/eventDatas": event_datas -"/partners:v2/LogUserEventRequest/eventDatas/event_data": event_data -"/partners:v2/LogUserEventRequest/eventScope": event_scope "/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/AnalyticsDataPoint/eventCount": event_count "/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/PublicProfile": public_profile -"/partners:v2/PublicProfile/profileImage": profile_image "/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/AdWordsManagerAccountInfo": ad_words_manager_account_info -"/partners:v2/AdWordsManagerAccountInfo/customerName": customer_name "/partners:v2/AdWordsManagerAccountInfo/id": id +"/partners:v2/AdWordsManagerAccountInfo/customerName": customer_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/available": available -"/partners:v2/AvailableOffer/description": description -"/partners:v2/AvailableOffer/offerLevel": offer_level -"/partners:v2/AvailableOffer/name": name -"/partners:v2/AvailableOffer/id": id -"/partners:v2/AvailableOffer/qualifiedCustomersComplete": qualified_customers_complete -"/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/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/LatLng": lat_lng -"/partners:v2/LatLng/longitude": longitude "/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 "/partners:v2/LogMessageRequest/requestMetadata": request_metadata "/partners:v2/LogMessageRequest/level": level "/partners:v2/LogMessageRequest/details": details -"/partners:v2/DebugInfo": debug_info -"/partners:v2/DebugInfo/serviceUrl": service_url -"/partners:v2/DebugInfo/serverInfo": server_info -"/partners:v2/DebugInfo/serverTraceInfo": server_trace_info "/partners:v2/Lead": lead -"/partners:v2/Lead/phoneNumber": phone_number -"/partners:v2/Lead/adwordsCustomerId": adwords_customer_id "/partners:v2/Lead/createTime": create_time "/partners:v2/Lead/marketingOptIn": marketing_opt_in "/partners:v2/Lead/type": type @@ -32338,28 +32328,34 @@ "/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/DebugInfo": debug_info +"/partners:v2/DebugInfo/serverInfo": server_info +"/partners:v2/DebugInfo/serverTraceInfo": server_trace_info +"/partners:v2/DebugInfo/serviceUrl": service_url "/partners:v2/ListUserStatesResponse": list_user_states_response "/partners:v2/ListUserStatesResponse/userStates": user_states "/partners:v2/ListUserStatesResponse/userStates/user_state": user_state "/partners:v2/ListUserStatesResponse/responseMetadata": response_metadata "/partners:v2/CompanyRelation": company_relation -"/partners:v2/CompanyRelation/badgeTier": badge_tier +"/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/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/companyId": company_id "/partners:v2/CompanyRelation/logoUrl": logo_url "/partners:v2/CompanyRelation/resolvedTimestamp": resolved_timestamp "/partners:v2/CompanyRelation/companyAdmin": company_admin -"/partners:v2/CompanyRelation/isPending": is_pending "/partners:v2/CompanyRelation/address": address +"/partners:v2/CompanyRelation/isPending": is_pending "/partners:v2/CompanyRelation/creationTime": creation_time -"/partners:v2/CompanyRelation/state": state -"/partners:v2/CompanyRelation/managerAccount": manager_account -"/partners:v2/CompanyRelation/name": name -"/partners:v2/CompanyRelation/segment": segment -"/partners:v2/CompanyRelation/segment/segment": segment "/partners:v2/Date": date "/partners:v2/Date/year": year "/partners:v2/Date/day": day @@ -32376,13 +32372,13 @@ "/partners:v2/RequestMetadata/experimentIds/experiment_id": experiment_id "/partners:v2/RequestMetadata/trafficSource": traffic_source "/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/CreateLeadRequest/requestMetadata": request_metadata "/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/warning": warning "/partners:v2/ExamStatus/expiration": expiration @@ -32391,10 +32387,10 @@ "/partners:v2/ExamStatus/passed": passed "/partners:v2/ExamStatus/taken": taken "/partners:v2/ListOffersResponse": list_offers_response +"/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/ListOffersResponse/responseMetadata": response_metadata "/partners:v2/CountryOfferInfo": country_offer_info "/partners:v2/CountryOfferInfo/getYAmount": get_y_amount "/partners:v2/CountryOfferInfo/offerCountryCode": offer_country_code @@ -32406,21 +32402,21 @@ "/partners:v2/ListCompaniesResponse/companies": companies "/partners:v2/ListCompaniesResponse/companies/company": company "/partners:v2/OfferCustomer": offer_customer -"/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/offerType": offer_type "/partners:v2/OfferCustomer/creationTime": creation_time "/partners:v2/OfferCustomer/eligibilityDaysLeft": eligibility_days_left +"/partners:v2/OfferCustomer/offerType": offer_type "/partners:v2/OfferCustomer/getYAmount": get_y_amount +"/partners:v2/OfferCustomer/name": name "/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 @@ -32442,163 +32438,48 @@ "/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/User": user -"/partners:v2/User/examStatus": exam_status -"/partners:v2/User/examStatus/exam_status": exam_status -"/partners:v2/User/id": id -"/partners:v2/User/publicProfile": public_profile -"/partners:v2/User/companyVerificationEmail": company_verification_email -"/partners:v2/User/certificationStatus": certification_status -"/partners:v2/User/certificationStatus/certification_status": certification_status -"/partners:v2/User/company": company -"/partners:v2/User/profile": profile -"/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/analytics": analytics -"/partners:v2/ListAnalyticsResponse/analytics/analytic": analytic -"/partners:v2/Company": company -"/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/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/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/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/companyTypes": company_types -"/partners:v2/Company/companyTypes/company_type": company_type -"/partners:v2/Company/autoApprovalEmailDomains": auto_approval_email_domains -"/partners:v2/Company/autoApprovalEmailDomains/auto_approval_email_domain": auto_approval_email_domain -"/partners:v2/Company/primaryLanguageCode": primary_language_code -"/partners:v2/Company/profileStatus": profile_status -"/partners:v2/Company/locations": locations -"/partners:v2/Company/locations/location": location -"/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 +"/people:v1/fields": fields "/people:v1/key": key "/people:v1/quotaUser": quota_user -"/people:v1/fields": fields -"/people:v1/people.people.getBatchGet/requestMask.includeField": request_mask_include_field "/people:v1/people.people.getBatchGet/resourceNames": resource_names +"/people:v1/people.people.getBatchGet/requestMask.includeField": request_mask_include_field "/people:v1/people.people.get": get_person "/people:v1/people.people.get/resourceName": resource_name "/people:v1/people.people.get/requestMask.includeField": request_mask_include_field "/people:v1/people.people.connections.list": list_person_connections -"/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/pageSize": page_size "/people:v1/people.people.connections.list/syncToken": sync_token -"/people:v1/Organization": organization -"/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/Organization/phoneticName": phonetic_name -"/people:v1/Organization/type": type -"/people:v1/Organization/jobDescription": job_description -"/people:v1/Biography": biography -"/people:v1/Biography/value": value -"/people:v1/Biography/contentType": content_type -"/people:v1/Biography/metadata": metadata -"/people:v1/AgeRangeType": age_range_type -"/people:v1/AgeRangeType/ageRange": age_range -"/people:v1/AgeRangeType/metadata": metadata +"/people:v1/people.people.connections.list/sortOrder": sort_order "/people:v1/FieldMetadata": field_metadata -"/people:v1/FieldMetadata/primary": primary "/people:v1/FieldMetadata/source": source "/people:v1/FieldMetadata/verified": verified +"/people:v1/FieldMetadata/primary": primary +"/people:v1/Source": source +"/people:v1/Source/profileMetadata": profile_metadata +"/people:v1/Source/type": type +"/people:v1/Source/etag": etag +"/people:v1/Source/id": id "/people:v1/PersonResponse": person_response "/people:v1/PersonResponse/person": person "/people:v1/PersonResponse/httpStatusCode": http_status_code "/people:v1/PersonResponse/requestedResourceName": requested_resource_name "/people:v1/RelationshipInterest": relationship_interest +"/people:v1/RelationshipInterest/metadata": metadata "/people:v1/RelationshipInterest/value": value "/people:v1/RelationshipInterest/formattedValue": formatted_value -"/people:v1/RelationshipInterest/metadata": metadata -"/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/person": person -"/people:v1/Relation/formattedType": formatted_type "/people:v1/Relation/metadata": metadata "/people:v1/Relation/type": type +"/people:v1/Relation/person": person +"/people:v1/Relation/formattedType": formatted_type "/people:v1/Occupation": occupation "/people:v1/Occupation/metadata": metadata "/people:v1/Occupation/value": value "/people:v1/Person": person -"/people:v1/Person/residences": residences -"/people:v1/Person/residences/residence": residence -"/people:v1/Person/genders": genders -"/people:v1/Person/genders/gender": gender -"/people:v1/Person/resourceName": resource_name -"/people:v1/Person/interests": interests -"/people:v1/Person/interests/interest": interest -"/people:v1/Person/biographies": biographies -"/people:v1/Person/biographies/biography": biography -"/people:v1/Person/skills": skills -"/people:v1/Person/skills/skill": skill -"/people:v1/Person/relationshipStatuses": relationship_statuses -"/people:v1/Person/relationshipStatuses/relationship_status": relationship_status -"/people:v1/Person/photos": photos -"/people:v1/Person/photos/photo": photo -"/people:v1/Person/ageRange": age_range -"/people:v1/Person/taglines": taglines -"/people:v1/Person/taglines/tagline": tagline -"/people:v1/Person/ageRanges": age_ranges -"/people:v1/Person/ageRanges/age_range": age_range -"/people:v1/Person/addresses": addresses -"/people:v1/Person/addresses/address": address -"/people:v1/Person/events": events -"/people:v1/Person/events/event": event -"/people:v1/Person/memberships": memberships -"/people:v1/Person/memberships/membership": membership -"/people:v1/Person/phoneNumbers": phone_numbers -"/people:v1/Person/phoneNumbers/phone_number": phone_number "/people:v1/Person/coverPhotos": cover_photos "/people:v1/Person/coverPhotos/cover_photo": cover_photo "/people:v1/Person/imClients": im_clients @@ -32627,18 +32508,46 @@ "/people:v1/Person/braggingRights": bragging_rights "/people:v1/Person/braggingRights/bragging_right": bragging_right "/people:v1/Person/metadata": metadata +"/people:v1/Person/residences": residences +"/people:v1/Person/residences/residence": residence +"/people:v1/Person/genders": genders +"/people:v1/Person/genders/gender": gender +"/people:v1/Person/resourceName": resource_name +"/people:v1/Person/interests": interests +"/people:v1/Person/interests/interest": interest +"/people:v1/Person/biographies": biographies +"/people:v1/Person/biographies/biography": biography +"/people:v1/Person/skills": skills +"/people:v1/Person/skills/skill": skill +"/people:v1/Person/relationshipStatuses": relationship_statuses +"/people:v1/Person/relationshipStatuses/relationship_status": relationship_status +"/people:v1/Person/photos": photos +"/people:v1/Person/photos/photo": photo +"/people:v1/Person/ageRange": age_range +"/people:v1/Person/taglines": taglines +"/people:v1/Person/taglines/tagline": tagline +"/people:v1/Person/ageRanges": age_ranges +"/people:v1/Person/ageRanges/age_range": age_range +"/people:v1/Person/addresses": addresses +"/people:v1/Person/addresses/address": address +"/people:v1/Person/events": events +"/people:v1/Person/events/event": event +"/people:v1/Person/memberships": memberships +"/people:v1/Person/memberships/membership": membership +"/people:v1/Person/phoneNumbers": phone_numbers +"/people:v1/Person/phoneNumbers/phone_number": phone_number "/people:v1/GetPeopleResponse": get_people_response "/people:v1/GetPeopleResponse/responses": responses "/people:v1/GetPeopleResponse/responses/response": response +"/people:v1/Photo": photo +"/people:v1/Photo/url": url +"/people:v1/Photo/metadata": metadata "/people:v1/PhoneNumber": phone_number "/people:v1/PhoneNumber/metadata": metadata "/people:v1/PhoneNumber/type": type "/people:v1/PhoneNumber/value": value "/people:v1/PhoneNumber/formattedType": formatted_type "/people:v1/PhoneNumber/canonicalForm": canonical_form -"/people:v1/Photo": photo -"/people:v1/Photo/url": url -"/people:v1/Photo/metadata": metadata "/people:v1/ListConnectionsResponse": list_connections_response "/people:v1/ListConnectionsResponse/nextPageToken": next_page_token "/people:v1/ListConnectionsResponse/connections": connections @@ -32646,10 +32555,13 @@ "/people:v1/ListConnectionsResponse/nextSyncToken": next_sync_token "/people:v1/ListConnectionsResponse/totalPeople": total_people "/people:v1/Birthday": birthday -"/people:v1/Birthday/date": date "/people:v1/Birthday/metadata": metadata "/people:v1/Birthday/text": text +"/people:v1/Birthday/date": date "/people:v1/Address": address +"/people:v1/Address/formattedValue": formatted_value +"/people:v1/Address/country": country +"/people:v1/Address/type": type "/people:v1/Address/extendedAddress": extended_address "/people:v1/Address/poBox": po_box "/people:v1/Address/postalCode": postal_code @@ -32659,20 +32571,12 @@ "/people:v1/Address/countryCode": country_code "/people:v1/Address/formattedType": formatted_type "/people:v1/Address/city": city -"/people:v1/Address/formattedValue": formatted_value -"/people:v1/Address/country": country -"/people:v1/Address/type": type "/people:v1/Residence": residence +"/people:v1/Residence/value": value "/people:v1/Residence/metadata": metadata "/people:v1/Residence/current": current -"/people:v1/Residence/value": value "/people:v1/ContactGroupMembership": contact_group_membership "/people:v1/ContactGroupMembership/contactGroupId": contact_group_id -"/people:v1/Event": event -"/people:v1/Event/date": date -"/people:v1/Event/formattedType": formatted_type -"/people:v1/Event/metadata": metadata -"/people:v1/Event/type": type "/people:v1/PersonMetadata": person_metadata "/people:v1/PersonMetadata/objectType": object_type "/people:v1/PersonMetadata/linkedPeopleResourceNames": linked_people_resource_names @@ -32682,30 +32586,35 @@ "/people:v1/PersonMetadata/previousResourceNames": previous_resource_names "/people:v1/PersonMetadata/previousResourceNames/previous_resource_name": previous_resource_name "/people:v1/PersonMetadata/deleted": deleted +"/people:v1/Event": event +"/people:v1/Event/metadata": metadata +"/people:v1/Event/type": type +"/people:v1/Event/date": date +"/people:v1/Event/formattedType": formatted_type "/people:v1/ProfileMetadata": profile_metadata "/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/Url": url "/people:v1/Url/metadata": metadata "/people:v1/Url/type": type "/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/url": url "/people:v1/CoverPhoto/metadata": metadata "/people:v1/CoverPhoto/default": default -"/people:v1/CoverPhoto/url": url "/people:v1/Interest": interest "/people:v1/Interest/metadata": metadata "/people:v1/Interest/value": value "/people:v1/ImClient": im_client "/people:v1/ImClient/formattedProtocol": formatted_protocol "/people:v1/ImClient/formattedType": formatted_type -"/people:v1/ImClient/protocol": protocol "/people:v1/ImClient/metadata": metadata "/people:v1/ImClient/type": type +"/people:v1/ImClient/protocol": protocol "/people:v1/ImClient/username": username "/people:v1/EmailAddress": email_address "/people:v1/EmailAddress/displayName": display_name @@ -32714,9 +32623,9 @@ "/people:v1/EmailAddress/value": value "/people:v1/EmailAddress/formattedType": formatted_type "/people:v1/Nickname": nickname -"/people:v1/Nickname/value": value "/people:v1/Nickname/metadata": metadata "/people:v1/Nickname/type": type +"/people:v1/Nickname/value": value "/people:v1/Skill": skill "/people:v1/Skill/metadata": metadata "/people:v1/Skill/value": value @@ -32730,34 +32639,56 @@ "/people:v1/RelationshipStatus/formattedValue": formatted_value "/people:v1/RelationshipStatus/metadata": metadata "/people:v1/RelationshipStatus/value": value +"/people:v1/Tagline": tagline +"/people:v1/Tagline/metadata": metadata +"/people:v1/Tagline/value": value "/people:v1/Date": date "/people:v1/Date/year": year "/people:v1/Date/day": day "/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/phoneticFamilyName": phonetic_family_name +"/people:v1/Name/familyName": family_name +"/people:v1/Name/phoneticMiddleName": phonetic_middle_name +"/people:v1/Name/metadata": metadata "/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/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/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/current": current +"/people:v1/Organization/formattedType": formatted_type +"/people:v1/Organization/startDate": start_date +"/people:v1/Organization/domain": domain +"/people:v1/Organization/department": department +"/people:v1/Organization/phoneticName": phonetic_name +"/people:v1/Organization/type": type +"/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/Biography": biography +"/people:v1/Biography/contentType": content_type +"/people:v1/Biography/metadata": metadata +"/people:v1/Biography/value": value +"/people:v1/AgeRangeType": age_range_type +"/people:v1/AgeRangeType/ageRange": age_range +"/people:v1/AgeRangeType/metadata": metadata "/plus:v1/fields": fields "/plus:v1/key": key "/plus:v1/quotaUser": quota_user @@ -33519,9 +33450,9 @@ "/prediction:v1.6/Update/csvInstance": csv_instance "/prediction:v1.6/Update/csvInstance/csv_instance": csv_instance "/prediction:v1.6/Update/output": output -"/proximitybeacon:v1beta1/fields": fields "/proximitybeacon:v1beta1/key": key "/proximitybeacon:v1beta1/quotaUser": quota_user +"/proximitybeacon:v1beta1/fields": fields "/proximitybeacon:v1beta1/proximitybeacon.beaconinfo.getforobserved": getforobserved_beaconinfo "/proximitybeacon:v1beta1/proximitybeacon.namespaces.list": list_namespaces "/proximitybeacon:v1beta1/proximitybeacon.namespaces.list/projectId": project_id @@ -33529,6 +33460,13 @@ "/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.list": list_beacons +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/q": q +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageSize": page_size +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/projectId": project_id +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageToken": page_token +"/proximitybeacon:v1beta1/proximitybeacon.beacons.register": register_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.register/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.activate": activate_beacon "/proximitybeacon:v1beta1/proximitybeacon.beacons.activate/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.activate/beaconName": beacon_name @@ -33536,51 +33474,93 @@ "/proximitybeacon:v1beta1/proximitybeacon.beacons.get/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.get/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.update": update_beacon -"/proximitybeacon:v1beta1/proximitybeacon.beacons.update/projectId": project_id "/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.decommission/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.deactivate/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.register": register_beacon -"/proximitybeacon:v1beta1/proximitybeacon.beacons.register/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.beacons.list": list_beacons -"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/q": q -"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageSize": page_size -"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageToken": page_token +"/proximitybeacon:v1beta1/proximitybeacon.beacons.delete/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list": list_beacon_diagnostics "/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.beacons.diagnostics.list/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/pageToken": page_token +"/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.list": list_beacon_attachments -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list/projectId": project_id "/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.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.create/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete": batch_beacon_attachment_delete -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/namespacedType": namespaced_type "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/beaconName": beacon_name -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete": delete_beacon_attachment -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete/attachmentName": attachment_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/projectId": project_id +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse": get_info_for_observed_beacons_response +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse/beacons": beacons +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse/beacons/beacon": beacon +"/proximitybeacon:v1beta1/Beacon": beacon +"/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 +"/proximitybeacon:v1beta1/Beacon/description": description +"/proximitybeacon:v1beta1/Beacon/placeId": place_id +"/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/AdvertisedId": advertised_id +"/proximitybeacon:v1beta1/AdvertisedId/type": type +"/proximitybeacon:v1beta1/AdvertisedId/id": id +"/proximitybeacon:v1beta1/IndoorLevel": indoor_level +"/proximitybeacon:v1beta1/IndoorLevel/name": name +"/proximitybeacon:v1beta1/Date": date +"/proximitybeacon:v1beta1/Date/year": year +"/proximitybeacon:v1beta1/Date/day": day +"/proximitybeacon:v1beta1/Date/month": month +"/proximitybeacon:v1beta1/ListNamespacesResponse": list_namespaces_response +"/proximitybeacon:v1beta1/ListNamespacesResponse/namespaces": namespaces +"/proximitybeacon:v1beta1/ListNamespacesResponse/namespaces/namespace": namespace +"/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/Diagnostics": diagnostics +"/proximitybeacon:v1beta1/Diagnostics/alerts": alerts +"/proximitybeacon:v1beta1/Diagnostics/alerts/alert": alert +"/proximitybeacon:v1beta1/Diagnostics/estimatedLowBatteryDate": estimated_low_battery_date +"/proximitybeacon:v1beta1/Diagnostics/beaconName": beacon_name +"/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/attachmentName": attachment_name +"/proximitybeacon:v1beta1/BeaconAttachment/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/BeaconAttachment/data": data +"/proximitybeacon:v1beta1/BeaconAttachment/creationTimeMs": creation_time_ms "/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/EphemeralIdRegistration/beaconEcdhPublicKey": beacon_ecdh_public_key +"/proximitybeacon:v1beta1/EphemeralIdRegistration/initialClockValue": initial_clock_value +"/proximitybeacon:v1beta1/EphemeralIdRegistration/rotationPeriodExponent": rotation_period_exponent "/proximitybeacon:v1beta1/LatLng": lat_lng "/proximitybeacon:v1beta1/LatLng/latitude": latitude "/proximitybeacon:v1beta1/LatLng/longitude": longitude @@ -33594,16 +33574,16 @@ "/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/BeaconInfo/beaconName": beacon_name "/proximitybeacon:v1beta1/EphemeralIdRegistrationParams": ephemeral_id_registration_params "/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/serviceEcdhPublicKey": service_ecdh_public_key "/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/minRotationPeriodExponent": min_rotation_period_exponent "/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/maxRotationPeriodExponent": max_rotation_period_exponent +"/proximitybeacon:v1beta1/DeleteAttachmentsResponse": delete_attachments_response +"/proximitybeacon:v1beta1/DeleteAttachmentsResponse/numDeleted": num_deleted "/proximitybeacon:v1beta1/Observation": observation "/proximitybeacon:v1beta1/Observation/advertisedId": advertised_id "/proximitybeacon:v1beta1/Observation/telemetry": telemetry @@ -33612,58 +33592,9 @@ "/proximitybeacon:v1beta1/ListDiagnosticsResponse/diagnostics": diagnostics "/proximitybeacon:v1beta1/ListDiagnosticsResponse/diagnostics/diagnostic": diagnostic "/proximitybeacon:v1beta1/ListDiagnosticsResponse/nextPageToken": next_page_token -"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse": get_info_for_observed_beacons_response -"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse/beacons": beacons -"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse/beacons/beacon": beacon -"/proximitybeacon:v1beta1/Beacon": beacon -"/proximitybeacon:v1beta1/Beacon/description": description -"/proximitybeacon:v1beta1/Beacon/placeId": place_id -"/proximitybeacon:v1beta1/Beacon/latLng": lat_lng -"/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/Beacon/ephemeralIdRegistration": ephemeral_id_registration -"/proximitybeacon:v1beta1/Beacon/provisioningKey": provisioning_key -"/proximitybeacon:v1beta1/AdvertisedId": advertised_id -"/proximitybeacon:v1beta1/AdvertisedId/type": type -"/proximitybeacon:v1beta1/AdvertisedId/id": id -"/proximitybeacon:v1beta1/Date": date -"/proximitybeacon:v1beta1/Date/year": year -"/proximitybeacon:v1beta1/Date/day": day -"/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/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/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/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/attachmentName": attachment_name -"/proximitybeacon:v1beta1/BeaconAttachment/namespacedType": namespaced_type -"/proximitybeacon:v1beta1/BeaconAttachment/data": data -"/proximitybeacon:v1beta1/BeaconAttachment/creationTimeMs": creation_time_ms +"/pubsub:v1/fields": fields "/pubsub:v1/key": key "/pubsub:v1/quotaUser": quota_user -"/pubsub:v1/fields": fields "/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 @@ -33681,15 +33612,17 @@ "/pubsub:v1/pubsub.projects.subscriptions.list/pageToken": page_token "/pubsub:v1/pubsub.projects.subscriptions.list/pageSize": page_size "/pubsub:v1/pubsub.projects.subscriptions.list/project": project +"/pubsub:v1/pubsub.projects.subscriptions.create/name": name "/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.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.snapshots.setIamPolicy": set_snapshot_iam_policy -"/pubsub:v1/pubsub.projects.snapshots.setIamPolicy/resource": resource +"/pubsub:v1/pubsub.projects.topics.publish": publish_topic +"/pubsub:v1/pubsub.projects.topics.publish/topic": topic "/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 @@ -33702,8 +33635,6 @@ "/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 -"/pubsub:v1/pubsub.projects.topics.publish": publish_topic -"/pubsub:v1/pubsub.projects.topics.publish/topic": topic "/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 @@ -33713,35 +33644,35 @@ "/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/ModifyPushConfigRequest": modify_push_config_request -"/pubsub:v1/ModifyPushConfigRequest/pushConfig": push_config "/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/nextPageToken": next_page_token +"/pubsub:v1/ListTopicsResponse/topics": topics +"/pubsub:v1/ListTopicsResponse/topics/topic": topic +"/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/Empty": empty -"/pubsub:v1/ListTopicsResponse": list_topics_response -"/pubsub:v1/ListTopicsResponse/topics": topics -"/pubsub:v1/ListTopicsResponse/topics/topic": topic -"/pubsub:v1/ListTopicsResponse/nextPageToken": next_page_token "/pubsub:v1/ListTopicSubscriptionsResponse": list_topic_subscriptions_response +"/pubsub:v1/ListTopicSubscriptionsResponse/nextPageToken": next_page_token "/pubsub:v1/ListTopicSubscriptionsResponse/subscriptions": subscriptions "/pubsub:v1/ListTopicSubscriptionsResponse/subscriptions/subscription": subscription -"/pubsub:v1/ListTopicSubscriptionsResponse/nextPageToken": next_page_token "/pubsub:v1/PullResponse": pull_response "/pubsub:v1/PullResponse/receivedMessages": received_messages "/pubsub:v1/PullResponse/receivedMessages/received_message": received_message "/pubsub:v1/ReceivedMessage": received_message -"/pubsub:v1/ReceivedMessage/ackId": ack_id "/pubsub:v1/ReceivedMessage/message": message +"/pubsub:v1/ReceivedMessage/ackId": ack_id "/pubsub:v1/PushConfig": push_config "/pubsub:v1/PushConfig/pushEndpoint": push_endpoint "/pubsub:v1/PushConfig/attributes": attributes @@ -33750,8 +33681,8 @@ "/pubsub:v1/TestIamPermissionsResponse/permissions": permissions "/pubsub:v1/TestIamPermissionsResponse/permissions/permission": permission "/pubsub:v1/PullRequest": pull_request -"/pubsub:v1/PullRequest/maxMessages": max_messages "/pubsub:v1/PullRequest/returnImmediately": return_immediately +"/pubsub:v1/PullRequest/maxMessages": max_messages "/pubsub:v1/ListSubscriptionsResponse": list_subscriptions_response "/pubsub:v1/ListSubscriptionsResponse/nextPageToken": next_page_token "/pubsub:v1/ListSubscriptionsResponse/subscriptions": subscriptions @@ -33763,20 +33694,20 @@ "/pubsub:v1/PublishResponse/messageIds": message_ids "/pubsub:v1/PublishResponse/messageIds/message_id": message_id "/pubsub:v1/Subscription": subscription -"/pubsub:v1/Subscription/name": name -"/pubsub:v1/Subscription/topic": topic "/pubsub:v1/Subscription/pushConfig": push_config "/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds +"/pubsub:v1/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/Topic": topic +"/pubsub:v1/Topic/name": name "/qpxExpress:v1/fields": fields "/qpxExpress:v1/key": key "/qpxExpress:v1/quotaUser": quota_user @@ -34511,48 +34442,51 @@ "/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/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/error": error -"/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/Empty": empty -"/runtimeconfig:v1/CancelOperationRequest": cancel_operation_request "/script:v1/fields": fields "/script:v1/key": key "/script:v1/quotaUser": quota_user "/script:v1/script.scripts.run": run_script "/script:v1/script.scripts.run/scriptId": script_id +"/script:v1/ScriptStackTraceElement": script_stack_trace_element +"/script:v1/ScriptStackTraceElement/lineNumber": line_number +"/script:v1/ScriptStackTraceElement/function": function "/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/code": code -"/script:v1/Status/message": message "/script:v1/Status/details": details "/script:v1/Status/details/detail": detail "/script:v1/Status/details/detail/detail": detail +"/script:v1/Status/code": code +"/script:v1/Status/message": message "/script:v1/ExecutionRequest": execution_request -"/script:v1/ExecutionRequest/sessionState": session_state "/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/ExecutionResponse": execution_response "/script:v1/ExecutionResponse/result": result "/script:v1/Operation": operation @@ -34563,9 +34497,6 @@ "/script:v1/Operation/error": error "/script:v1/Operation/metadata": metadata "/script:v1/Operation/metadata/metadatum": metadatum -"/script:v1/ScriptStackTraceElement": script_stack_trace_element -"/script:v1/ScriptStackTraceElement/lineNumber": line_number -"/script:v1/ScriptStackTraceElement/function": function "/searchconsole:v1/fields": fields "/searchconsole:v1/key": key "/searchconsole:v1/quotaUser": quota_user @@ -34587,15 +34518,17 @@ "/searchconsole:v1/TestStatus": test_status "/searchconsole:v1/TestStatus/status": status "/searchconsole:v1/TestStatus/details": details -"/searchconsole:v1/RunMobileFriendlyTestRequest": run_mobile_friendly_test_request -"/searchconsole:v1/RunMobileFriendlyTestRequest/url": url -"/searchconsole:v1/RunMobileFriendlyTestRequest/requestScreenshot": request_screenshot "/searchconsole:v1/Image": image "/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 +"/servicecontrol:v1/quotaUser": quota_user "/servicecontrol:v1/fields": fields "/servicecontrol:v1/key": key -"/servicecontrol:v1/quotaUser": quota_user +"/servicecontrol:v1/servicecontrol.services.allocateQuota": allocate_service_quota +"/servicecontrol:v1/servicecontrol.services.allocateQuota/serviceName": service_name "/servicecontrol:v1/servicecontrol.services.startReconciliation": start_service_reconciliation "/servicecontrol:v1/servicecontrol.services.startReconciliation/serviceName": service_name "/servicecontrol:v1/servicecontrol.services.check": check_service @@ -34606,91 +34539,6 @@ "/servicecontrol:v1/servicecontrol.services.endReconciliation/serviceName": service_name "/servicecontrol:v1/servicecontrol.services.report": report_service "/servicecontrol:v1/servicecontrol.services.report/serviceName": service_name -"/servicecontrol:v1/servicecontrol.services.allocateQuota": allocate_service_quota -"/servicecontrol:v1/servicecontrol.services.allocateQuota/serviceName": service_name -"/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/quotaMode": quota_mode -"/servicecontrol:v1/QuotaOperation/methodName": method_name -"/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/quotaInfo": quota_info -"/servicecontrol:v1/ReportInfo/operationId": operation_id -"/servicecontrol:v1/Operation": operation -"/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/Operation/metricValueSets": metric_value_sets -"/servicecontrol:v1/Operation/metricValueSets/metric_value_set": metric_value_set -"/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/operationId": operation_id -"/servicecontrol:v1/CheckResponse/checkErrors": check_errors -"/servicecontrol:v1/CheckResponse/checkErrors/check_error": check_error -"/servicecontrol:v1/CheckResponse/checkInfo": check_info -"/servicecontrol:v1/CheckResponse/quotaInfo": quota_info -"/servicecontrol:v1/CheckResponse/serviceConfigId": service_config_id -"/servicecontrol:v1/ReportRequest": report_request -"/servicecontrol:v1/ReportRequest/operations": operations -"/servicecontrol:v1/ReportRequest/operations/operation": operation -"/servicecontrol:v1/ReportRequest/serviceConfigId": service_config_id -"/servicecontrol:v1/Status": status -"/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/Status/message": message -"/servicecontrol:v1/AuditLog": audit_log -"/servicecontrol:v1/AuditLog/resourceName": resource_name -"/servicecontrol:v1/AuditLog/authorizationInfo": authorization_info -"/servicecontrol:v1/AuditLog/authorizationInfo/authorization_info": authorization_info -"/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/serviceName": service_name -"/servicecontrol:v1/AuditLog/response": response -"/servicecontrol:v1/AuditLog/response/response": response -"/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/MetricValue": metric_value "/servicecontrol:v1/MetricValue/stringValue": string_value "/servicecontrol:v1/MetricValue/labels": labels @@ -34703,9 +34551,9 @@ "/servicecontrol:v1/MetricValue/startTime": start_time "/servicecontrol:v1/MetricValue/moneyValue": money_value "/servicecontrol:v1/Money": money -"/servicecontrol:v1/Money/units": units "/servicecontrol:v1/Money/currencyCode": currency_code "/servicecontrol:v1/Money/nanos": nanos +"/servicecontrol:v1/Money/units": units "/servicecontrol:v1/EndReconciliationResponse": end_reconciliation_response "/servicecontrol:v1/EndReconciliationResponse/quotaMetrics": quota_metrics "/servicecontrol:v1/EndReconciliationResponse/quotaMetrics/quota_metric": quota_metric @@ -34713,20 +34561,20 @@ "/servicecontrol:v1/EndReconciliationResponse/reconciliationErrors": reconciliation_errors "/servicecontrol:v1/EndReconciliationResponse/reconciliationErrors/reconciliation_error": reconciliation_error "/servicecontrol:v1/EndReconciliationResponse/serviceConfigId": service_config_id +"/servicecontrol:v1/ExplicitBuckets": explicit_buckets +"/servicecontrol:v1/ExplicitBuckets/bounds": bounds +"/servicecontrol:v1/ExplicitBuckets/bounds/bound": bound "/servicecontrol:v1/Distribution": distribution -"/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/Distribution/count": count "/servicecontrol:v1/Distribution/mean": mean -"/servicecontrol:v1/ExplicitBuckets": explicit_buckets -"/servicecontrol:v1/ExplicitBuckets/bounds": bounds -"/servicecontrol:v1/ExplicitBuckets/bounds/bound": bound +"/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/ExponentialBuckets": exponential_buckets "/servicecontrol:v1/ExponentialBuckets/growthFactor": growth_factor "/servicecontrol:v1/ExponentialBuckets/scale": scale @@ -34751,25 +34599,25 @@ "/servicecontrol:v1/LinearBuckets/numFiniteBuckets": num_finite_buckets "/servicecontrol:v1/LinearBuckets/width": width "/servicecontrol:v1/AuthenticationInfo": authentication_info -"/servicecontrol:v1/AuthenticationInfo/authoritySelector": authority_selector "/servicecontrol:v1/AuthenticationInfo/principalEmail": principal_email +"/servicecontrol:v1/AuthenticationInfo/authoritySelector": authority_selector "/servicecontrol:v1/AllocateQuotaResponse": allocate_quota_response -"/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/AllocateQuotaResponse/quotaMetrics": quota_metrics +"/servicecontrol:v1/AllocateQuotaResponse/quotaMetrics/quota_metric": quota_metric +"/servicecontrol:v1/AllocateQuotaResponse/operationId": operation_id "/servicecontrol:v1/ReleaseQuotaRequest": release_quota_request "/servicecontrol:v1/ReleaseQuotaRequest/serviceConfigId": service_config_id "/servicecontrol:v1/ReleaseQuotaRequest/releaseOperation": release_operation +"/servicecontrol:v1/RequestMetadata": request_metadata +"/servicecontrol:v1/RequestMetadata/callerIp": caller_ip +"/servicecontrol:v1/RequestMetadata/callerSuppliedUserAgent": caller_supplied_user_agent "/servicecontrol:v1/QuotaError": quota_error "/servicecontrol:v1/QuotaError/subject": subject "/servicecontrol:v1/QuotaError/description": description "/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 @@ -34785,18 +34633,18 @@ "/servicecontrol:v1/AllocateQuotaRequest/allocateOperation": allocate_operation "/servicecontrol:v1/AllocateQuotaRequest/allocationMode": allocation_mode "/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/MetricValueSet/metricName": metric_name "/servicecontrol:v1/ReportError": report_error -"/servicecontrol:v1/ReportError/status": status "/servicecontrol:v1/ReportError/operationId": operation_id -"/servicecontrol:v1/CheckError": check_error -"/servicecontrol:v1/CheckError/code": code -"/servicecontrol:v1/CheckError/detail": detail +"/servicecontrol:v1/ReportError/status": status "/servicecontrol:v1/StartReconciliationRequest": start_reconciliation_request -"/servicecontrol:v1/StartReconciliationRequest/reconciliationOperation": reconciliation_operation "/servicecontrol:v1/StartReconciliationRequest/serviceConfigId": service_config_id +"/servicecontrol:v1/StartReconciliationRequest/reconciliationOperation": reconciliation_operation +"/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 @@ -34805,17 +34653,109 @@ "/servicecontrol:v1/QuotaInfo/limitExceeded": limit_exceeded "/servicecontrol:v1/QuotaInfo/limitExceeded/limit_exceeded": limit_exceeded "/servicecontrol:v1/CheckRequest": check_request -"/servicecontrol:v1/CheckRequest/serviceConfigId": service_config_id "/servicecontrol:v1/CheckRequest/skipActivationCheck": skip_activation_check "/servicecontrol:v1/CheckRequest/operation": operation "/servicecontrol:v1/CheckRequest/requestProjectSettings": request_project_settings -"/servicemanagement:v1/fields": fields +"/servicecontrol:v1/CheckRequest/serviceConfigId": service_config_id +"/servicecontrol:v1/QuotaOperation": quota_operation +"/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/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/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/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/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/ReportResponse": report_response +"/servicecontrol:v1/ReportResponse/reportInfos": report_infos +"/servicecontrol:v1/ReportResponse/reportInfos/report_info": report_info +"/servicecontrol:v1/ReportResponse/serviceConfigId": service_config_id +"/servicecontrol:v1/ReportResponse/reportErrors": report_errors +"/servicecontrol:v1/ReportResponse/reportErrors/report_error": report_error +"/servicecontrol:v1/CheckResponse": check_response +"/servicecontrol:v1/CheckResponse/operationId": operation_id +"/servicecontrol:v1/CheckResponse/checkErrors": check_errors +"/servicecontrol:v1/CheckResponse/checkErrors/check_error": check_error +"/servicecontrol:v1/CheckResponse/checkInfo": check_info +"/servicecontrol:v1/CheckResponse/quotaInfo": quota_info +"/servicecontrol:v1/CheckResponse/serviceConfigId": service_config_id +"/servicecontrol:v1/Status": status +"/servicecontrol:v1/Status/code": code +"/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/ReportRequest": report_request +"/servicecontrol:v1/ReportRequest/operations": operations +"/servicecontrol:v1/ReportRequest/operations/operation": operation +"/servicecontrol:v1/ReportRequest/serviceConfigId": service_config_id +"/servicecontrol:v1/AuditLog": audit_log +"/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/status": status +"/servicecontrol:v1/AuditLog/authenticationInfo": authentication_info +"/servicecontrol:v1/AuditLog/serviceName": service_name +"/servicecontrol:v1/AuditLog/response": response +"/servicecontrol:v1/AuditLog/response/response": response +"/servicecontrol:v1/AuditLog/methodName": method_name +"/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/LogEntry": log_entry +"/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/LogEntry/textPayload": text_payload +"/servicecontrol:v1/LogEntry/protoPayload": proto_payload +"/servicecontrol:v1/LogEntry/protoPayload/proto_payload": proto_payload +"/servicecontrol:v1/LogEntry/timestamp": timestamp "/servicemanagement:v1/key": key "/servicemanagement:v1/quotaUser": quota_user -"/servicemanagement:v1/servicemanagement.services.enable": enable_service -"/servicemanagement:v1/servicemanagement.services.enable/serviceName": service_name +"/servicemanagement:v1/fields": fields +"/servicemanagement:v1/servicemanagement.services.create": create_service +"/servicemanagement:v1/servicemanagement.services.generateConfigReport": generate_service_config_report +"/servicemanagement:v1/servicemanagement.services.get": get_service +"/servicemanagement:v1/servicemanagement.services.get/serviceName": service_name +"/servicemanagement:v1/servicemanagement.services.testIamPermissions": test_service_iam_permissions +"/servicemanagement:v1/servicemanagement.services.testIamPermissions/resource": resource +"/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.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 @@ -34829,36 +34769,27 @@ "/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.create": create_service -"/servicemanagement:v1/servicemanagement.services.generateConfigReport": generate_service_config_report -"/servicemanagement:v1/servicemanagement.services.get": get_service -"/servicemanagement:v1/servicemanagement.services.get/serviceName": service_name -"/servicemanagement:v1/servicemanagement.services.testIamPermissions": test_service_iam_permissions -"/servicemanagement:v1/servicemanagement.services.testIamPermissions/resource": resource -"/servicemanagement:v1/servicemanagement.services.getConfig/view": view -"/servicemanagement:v1/servicemanagement.services.getConfig/serviceName": service_name -"/servicemanagement:v1/servicemanagement.services.getConfig/configId": config_id +"/servicemanagement:v1/servicemanagement.services.rollouts.create": create_service_rollout +"/servicemanagement:v1/servicemanagement.services.rollouts.create/serviceName": service_name "/servicemanagement:v1/servicemanagement.services.rollouts.list": list_service_rollouts -"/servicemanagement:v1/servicemanagement.services.rollouts.list/pageSize": page_size "/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.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.create": create_service_rollout -"/servicemanagement:v1/servicemanagement.services.rollouts.create/serviceName": service_name +"/servicemanagement:v1/servicemanagement.services.configs.submit": submit_config_source +"/servicemanagement:v1/servicemanagement.services.configs.submit/serviceName": service_name "/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/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.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/servicemanagement.operations.list": list_operations "/servicemanagement:v1/servicemanagement.operations.list/name": name "/servicemanagement:v1/servicemanagement.operations.list/pageToken": page_token @@ -34866,296 +34797,6 @@ "/servicemanagement:v1/servicemanagement.operations.list/filter": filter "/servicemanagement:v1/servicemanagement.operations.get": get_operation "/servicemanagement:v1/servicemanagement.operations.get/name": name -"/servicemanagement:v1/VisibilityRule": visibility_rule -"/servicemanagement:v1/VisibilityRule/restriction": restriction -"/servicemanagement:v1/VisibilityRule/selector": selector -"/servicemanagement:v1/HttpRule": http_rule -"/servicemanagement:v1/HttpRule/put": put -"/servicemanagement:v1/HttpRule/delete": delete -"/servicemanagement:v1/HttpRule/body": body -"/servicemanagement:v1/HttpRule/post": post -"/servicemanagement:v1/HttpRule/mediaDownload": media_download -"/servicemanagement:v1/HttpRule/additionalBindings": additional_bindings -"/servicemanagement:v1/HttpRule/additionalBindings/additional_binding": additional_binding -"/servicemanagement:v1/HttpRule/responseBody": response_body -"/servicemanagement:v1/HttpRule/mediaUpload": media_upload -"/servicemanagement:v1/HttpRule/selector": selector -"/servicemanagement:v1/HttpRule/custom": custom -"/servicemanagement:v1/HttpRule/patch": patch -"/servicemanagement:v1/HttpRule/get": get -"/servicemanagement:v1/MonitoringDestination": monitoring_destination -"/servicemanagement:v1/MonitoringDestination/monitoredResource": monitored_resource -"/servicemanagement:v1/MonitoringDestination/metrics": metrics -"/servicemanagement:v1/MonitoringDestination/metrics/metric": metric -"/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/element": element -"/servicemanagement:v1/ConfigChange/oldValue": old_value -"/servicemanagement:v1/ConfigChange/advices": advices -"/servicemanagement:v1/ConfigChange/advices/advice": advice -"/servicemanagement:v1/ConfigChange/newValue": new_value -"/servicemanagement:v1/ConfigChange/changeType": change_type -"/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/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/responseTypeUrl": response_type_url -"/servicemanagement:v1/Method/options": options -"/servicemanagement:v1/Method/options/option": option -"/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/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/startTime": start_time -"/servicemanagement:v1/FlowOperationMetadata/isPersisted": is_persisted -"/servicemanagement:v1/FlowOperationMetadata/resourceNames": resource_names -"/servicemanagement:v1/FlowOperationMetadata/resourceNames/resource_name": resource_name -"/servicemanagement:v1/FlowOperationMetadata/flowName": flow_name -"/servicemanagement:v1/FlowOperationMetadata/cancelState": cancel_state -"/servicemanagement:v1/FlowOperationMetadata/deadline": deadline -"/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/metric": metric -"/servicemanagement:v1/CounterOptions/field": field -"/servicemanagement:v1/Http": http -"/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/Field": field -"/servicemanagement:v1/Field/defaultValue": default_value -"/servicemanagement:v1/Field/name": name -"/servicemanagement:v1/Field/typeUrl": type_url -"/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/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/TestIamPermissionsRequest": test_iam_permissions_request -"/servicemanagement:v1/TestIamPermissionsRequest/permissions": permissions -"/servicemanagement:v1/TestIamPermissionsRequest/permissions/permission": permission -"/servicemanagement:v1/Enum": enum -"/servicemanagement:v1/Enum/sourceContext": source_context -"/servicemanagement:v1/Enum/syntax": syntax -"/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/LabelDescriptor": label_descriptor -"/servicemanagement:v1/LabelDescriptor/key": key -"/servicemanagement:v1/LabelDescriptor/description": description -"/servicemanagement:v1/LabelDescriptor/valueType": value_type -"/servicemanagement:v1/Diagnostic": diagnostic -"/servicemanagement:v1/Diagnostic/message": message -"/servicemanagement:v1/Diagnostic/location": location -"/servicemanagement:v1/Diagnostic/kind": kind -"/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/sourceContext": source_context -"/servicemanagement:v1/Type/syntax": syntax -"/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/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/AuditConfig/service": service -"/servicemanagement:v1/SubmitConfigSourceRequest": submit_config_source_request -"/servicemanagement:v1/SubmitConfigSourceRequest/configSource": config_source -"/servicemanagement:v1/SubmitConfigSourceRequest/validateOnly": validate_only -"/servicemanagement:v1/AuthorizationConfig": authorization_config -"/servicemanagement:v1/AuthorizationConfig/provider": provider -"/servicemanagement:v1/DocumentationRule": documentation_rule -"/servicemanagement:v1/DocumentationRule/selector": selector -"/servicemanagement:v1/DocumentationRule/description": description -"/servicemanagement:v1/DocumentationRule/deprecationDescription": deprecation_description -"/servicemanagement:v1/CloudAuditOptions": cloud_audit_options -"/servicemanagement:v1/ContextRule": context_rule -"/servicemanagement:v1/ContextRule/requested": requested -"/servicemanagement:v1/ContextRule/requested/requested": requested -"/servicemanagement:v1/ContextRule/selector": selector -"/servicemanagement:v1/ContextRule/provided": provided -"/servicemanagement:v1/ContextRule/provided/provided": provided -"/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/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/aliases": aliases -"/servicemanagement:v1/Endpoint/aliases/alias": alias -"/servicemanagement:v1/Endpoint/features": features -"/servicemanagement:v1/Endpoint/features/feature": feature -"/servicemanagement:v1/Endpoint/allowCors": allow_cors -"/servicemanagement:v1/Endpoint/name": name -"/servicemanagement:v1/Endpoint/apis": apis -"/servicemanagement:v1/Endpoint/apis/api": api -"/servicemanagement:v1/OAuthRequirements": o_auth_requirements -"/servicemanagement:v1/OAuthRequirements/canonicalScopes": canonical_scopes -"/servicemanagement:v1/Usage": usage -"/servicemanagement:v1/Usage/rules": rules -"/servicemanagement:v1/Usage/rules/rule": rule -"/servicemanagement:v1/Usage/requirements": requirements -"/servicemanagement:v1/Usage/requirements/requirement": requirement -"/servicemanagement:v1/Usage/producerNotificationChannel": producer_notification_channel -"/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/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/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/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/name": name -"/servicemanagement:v1/LogDescriptor/description": description -"/servicemanagement:v1/LogDescriptor/displayName": display_name -"/servicemanagement:v1/LogDescriptor/labels": labels -"/servicemanagement:v1/LogDescriptor/labels/label": label -"/servicemanagement:v1/ConfigFile": config_file -"/servicemanagement:v1/ConfigFile/fileContents": file_contents -"/servicemanagement:v1/ConfigFile/filePath": file_path -"/servicemanagement:v1/ConfigFile/fileType": file_type -"/servicemanagement:v1/MonitoredResourceDescriptor": monitored_resource_descriptor -"/servicemanagement:v1/MonitoredResourceDescriptor/name": name -"/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/CustomErrorRule": custom_error_rule -"/servicemanagement:v1/CustomErrorRule/selector": selector -"/servicemanagement:v1/CustomErrorRule/isErrorType": is_error_type -"/servicemanagement:v1/MediaDownload": media_download -"/servicemanagement:v1/MediaDownload/enabled": enabled -"/servicemanagement:v1/MediaDownload/downloadService": download_service -"/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/uploadService": upload_service -"/servicemanagement:v1/MediaUpload/enabled": enabled "/servicemanagement:v1/Advice": advice "/servicemanagement:v1/Advice/description": description "/servicemanagement:v1/ManagedService": managed_service @@ -35179,55 +34820,59 @@ "/servicemanagement:v1/Documentation/pages": pages "/servicemanagement:v1/Documentation/pages/page": page "/servicemanagement:v1/Condition": condition -"/servicemanagement:v1/Condition/op": op -"/servicemanagement:v1/Condition/svc": svc -"/servicemanagement:v1/Condition/value": value "/servicemanagement:v1/Condition/sys": sys +"/servicemanagement:v1/Condition/value": value +"/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/AuditLogConfig": audit_log_config "/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/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/BackendRule": backend_rule -"/servicemanagement:v1/BackendRule/deadline": deadline -"/servicemanagement:v1/BackendRule/address": address -"/servicemanagement:v1/BackendRule/selector": selector +"/servicemanagement:v1/UndeleteServiceResponse": undelete_service_response +"/servicemanagement:v1/UndeleteServiceResponse/service": service "/servicemanagement:v1/Policy": policy +"/servicemanagement:v1/Policy/etag": etag +"/servicemanagement:v1/Policy/iamOwned": iam_owned +"/servicemanagement:v1/Policy/rules": rules +"/servicemanagement:v1/Policy/rules/rule": rule "/servicemanagement:v1/Policy/version": version "/servicemanagement:v1/Policy/auditConfigs": audit_configs "/servicemanagement:v1/Policy/auditConfigs/audit_config": audit_config "/servicemanagement:v1/Policy/bindings": bindings "/servicemanagement:v1/Policy/bindings/binding": binding -"/servicemanagement:v1/Policy/etag": etag -"/servicemanagement:v1/Policy/iamOwned": iam_owned -"/servicemanagement:v1/Policy/rules": rules -"/servicemanagement:v1/Policy/rules/rule": rule -"/servicemanagement:v1/UndeleteServiceResponse": undelete_service_response -"/servicemanagement:v1/UndeleteServiceResponse/service": service "/servicemanagement:v1/Api": api "/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/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/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/Authentication": authentication "/servicemanagement:v1/Authentication/rules": rules "/servicemanagement:v1/Authentication/rules/rule": rule @@ -35242,44 +34887,28 @@ "/servicemanagement:v1/Operation/metadata/metadatum": metadatum "/servicemanagement:v1/Operation/done": done "/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/role": role "/servicemanagement:v1/Binding/members": members "/servicemanagement:v1/Binding/members/member": member +"/servicemanagement:v1/Binding/role": role "/servicemanagement:v1/AuthProvider": auth_provider -"/servicemanagement:v1/AuthProvider/audiences": audiences "/servicemanagement:v1/AuthProvider/id": id "/servicemanagement:v1/AuthProvider/issuer": issuer "/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/AuthProvider/audiences": audiences "/servicemanagement:v1/Service": service -"/servicemanagement:v1/Service/id": id -"/servicemanagement:v1/Service/usage": usage -"/servicemanagement:v1/Service/metrics": metrics -"/servicemanagement:v1/Service/metrics/metric": metric -"/servicemanagement:v1/Service/authentication": authentication -"/servicemanagement:v1/Service/experimental": experimental -"/servicemanagement:v1/Service/control": control -"/servicemanagement:v1/Service/configVersion": config_version -"/servicemanagement:v1/Service/monitoring": monitoring -"/servicemanagement:v1/Service/producerProjectId": producer_project_id -"/servicemanagement:v1/Service/systemTypes": system_types -"/servicemanagement:v1/Service/systemTypes/system_type": system_type "/servicemanagement:v1/Service/visibility": visibility +"/servicemanagement:v1/Service/quota": quota "/servicemanagement:v1/Service/name": name "/servicemanagement:v1/Service/customError": custom_error "/servicemanagement:v1/Service/title": title @@ -35293,22 +34922,36 @@ "/servicemanagement:v1/Service/types/type": type "/servicemanagement:v1/Service/sourceInfo": source_info "/servicemanagement:v1/Service/http": http -"/servicemanagement:v1/Service/systemParameters": system_parameters "/servicemanagement:v1/Service/backend": backend +"/servicemanagement:v1/Service/systemParameters": system_parameters "/servicemanagement:v1/Service/documentation": documentation "/servicemanagement:v1/Service/monitoredResources": monitored_resources "/servicemanagement:v1/Service/monitoredResources/monitored_resource": monitored_resource "/servicemanagement:v1/Service/logging": logging -"/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 +"/servicemanagement:v1/Service/metrics/metric": metric +"/servicemanagement:v1/Service/authentication": authentication +"/servicemanagement:v1/Service/experimental": experimental +"/servicemanagement:v1/Service/control": control +"/servicemanagement:v1/Service/configVersion": config_version +"/servicemanagement:v1/Service/monitoring": monitoring +"/servicemanagement:v1/Service/producerProjectId": producer_project_id +"/servicemanagement:v1/Service/systemTypes": system_types +"/servicemanagement:v1/Service/systemTypes/system_type": system_type +"/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/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/kind": kind -"/servicemanagement:v1/CustomHttpPattern/path": path "/servicemanagement:v1/OperationMetadata": operation_metadata "/servicemanagement:v1/OperationMetadata/startTime": start_time "/servicemanagement:v1/OperationMetadata/resourceNames": resource_names @@ -35316,48 +34959,386 @@ "/servicemanagement:v1/OperationMetadata/steps": steps "/servicemanagement:v1/OperationMetadata/steps/step": step "/servicemanagement:v1/OperationMetadata/progressPercentage": progress_percentage +"/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/HttpRule": http_rule +"/servicemanagement:v1/HttpRule/selector": selector +"/servicemanagement:v1/HttpRule/custom": custom +"/servicemanagement:v1/HttpRule/get": get +"/servicemanagement:v1/HttpRule/patch": patch +"/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/additionalBindings": additional_bindings +"/servicemanagement:v1/HttpRule/additionalBindings/additional_binding": additional_binding +"/servicemanagement:v1/HttpRule/responseBody": response_body +"/servicemanagement:v1/HttpRule/mediaUpload": media_upload +"/servicemanagement:v1/VisibilityRule": visibility_rule +"/servicemanagement:v1/VisibilityRule/restriction": restriction +"/servicemanagement:v1/VisibilityRule/selector": selector +"/servicemanagement:v1/MonitoringDestination": monitoring_destination +"/servicemanagement:v1/MonitoringDestination/monitoredResource": monitored_resource +"/servicemanagement:v1/MonitoringDestination/metrics": metrics +"/servicemanagement:v1/MonitoringDestination/metrics/metric": metric +"/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/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/Rollout/status": status +"/servicemanagement:v1/Rollout/serviceName": service_name +"/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/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/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/Method/name": name +"/servicemanagement:v1/Method/requestTypeUrl": request_type_url +"/servicemanagement:v1/QuotaLimit": quota_limit +"/servicemanagement:v1/QuotaLimit/unit": unit +"/servicemanagement:v1/QuotaLimit/maxLimit": max_limit +"/servicemanagement:v1/QuotaLimit/name": name +"/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/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/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/FlowOperationMetadata/startTime": start_time +"/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/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/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/Field/number": number +"/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/sourceContext": source_context +"/servicemanagement:v1/Enum/syntax": syntax +"/servicemanagement:v1/Enum/name": name +"/servicemanagement:v1/Enum/enumvalue": enumvalue +"/servicemanagement:v1/Enum/enumvalue/enumvalue": enumvalue +"/servicemanagement:v1/Diagnostic": diagnostic +"/servicemanagement:v1/Diagnostic/location": location +"/servicemanagement:v1/Diagnostic/kind": kind +"/servicemanagement:v1/Diagnostic/message": message +"/servicemanagement:v1/EnableServiceRequest": enable_service_request +"/servicemanagement:v1/EnableServiceRequest/consumerId": consumer_id +"/servicemanagement:v1/LabelDescriptor": label_descriptor +"/servicemanagement:v1/LabelDescriptor/key": key +"/servicemanagement:v1/LabelDescriptor/description": description +"/servicemanagement:v1/LabelDescriptor/valueType": value_type +"/servicemanagement:v1/GenerateConfigReportResponse": generate_config_report_response +"/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/GenerateConfigReportResponse/diagnostics": diagnostics +"/servicemanagement:v1/GenerateConfigReportResponse/diagnostics/diagnostic": diagnostic +"/servicemanagement:v1/Type": type +"/servicemanagement:v1/Type/oneofs": oneofs +"/servicemanagement:v1/Type/oneofs/oneof": oneof +"/servicemanagement:v1/Type/sourceContext": source_context +"/servicemanagement:v1/Type/syntax": syntax +"/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/Experimental": experimental +"/servicemanagement:v1/Experimental/authorization": authorization +"/servicemanagement:v1/ListServiceConfigsResponse": list_service_configs_response +"/servicemanagement:v1/ListServiceConfigsResponse/nextPageToken": next_page_token +"/servicemanagement:v1/ListServiceConfigsResponse/serviceConfigs": service_configs +"/servicemanagement:v1/ListServiceConfigsResponse/serviceConfigs/service_config": service_config +"/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/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/requested": requested +"/servicemanagement:v1/ContextRule/requested/requested": requested +"/servicemanagement:v1/ContextRule/selector": selector +"/servicemanagement:v1/ContextRule/provided": provided +"/servicemanagement:v1/ContextRule/provided/provided": provided +"/servicemanagement:v1/CloudAuditOptions": cloud_audit_options +"/servicemanagement:v1/MetricDescriptor": metric_descriptor +"/servicemanagement:v1/MetricDescriptor/metricKind": metric_kind +"/servicemanagement:v1/MetricDescriptor/description": description +"/servicemanagement:v1/MetricDescriptor/displayName": display_name +"/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/SourceContext": source_context +"/servicemanagement:v1/SourceContext/fileName": file_name +"/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/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/target": target +"/servicemanagement:v1/Endpoint/name": name +"/servicemanagement:v1/Endpoint/features": features +"/servicemanagement:v1/Endpoint/features/feature": feature +"/servicemanagement:v1/OAuthRequirements": o_auth_requirements +"/servicemanagement:v1/OAuthRequirements/canonicalScopes": canonical_scopes +"/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/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/permissions": permissions +"/servicemanagement:v1/Rule/permissions/permission": permission +"/servicemanagement:v1/Rule/action": action +"/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/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/name": name +"/servicemanagement:v1/LogDescriptor/description": description +"/servicemanagement:v1/LogDescriptor/displayName": display_name +"/servicemanagement:v1/LogDescriptor/labels": labels +"/servicemanagement:v1/LogDescriptor/labels/label": label +"/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/isErrorType": is_error_type +"/servicemanagement:v1/CustomErrorRule/selector": selector +"/servicemanagement:v1/MediaDownload": media_download +"/servicemanagement:v1/MediaDownload/enabled": enabled +"/servicemanagement:v1/MediaDownload/downloadService": download_service +"/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/uploadService": upload_service +"/servicemanagement:v1/MediaUpload/enabled": enabled +"/serviceuser:v1/quotaUser": quota_user "/serviceuser:v1/fields": fields "/serviceuser:v1/key": key -"/serviceuser:v1/quotaUser": quota_user +"/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.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.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/serviceuser.services.search": search_services -"/serviceuser:v1/serviceuser.services.search/pageToken": page_token -"/serviceuser:v1/serviceuser.services.search/pageSize": page_size +"/serviceuser:v1/LogDescriptor": log_descriptor +"/serviceuser:v1/LogDescriptor/name": name +"/serviceuser:v1/LogDescriptor/description": description +"/serviceuser:v1/LogDescriptor/displayName": display_name +"/serviceuser:v1/LogDescriptor/labels": labels +"/serviceuser:v1/LogDescriptor/labels/label": label +"/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/CustomErrorRule": custom_error_rule +"/serviceuser:v1/CustomErrorRule/isErrorType": is_error_type +"/serviceuser:v1/CustomErrorRule/selector": selector +"/serviceuser:v1/MediaDownload": media_download +"/serviceuser:v1/MediaDownload/enabled": enabled +"/serviceuser:v1/MediaDownload/downloadService": download_service +"/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/uploadService": upload_service +"/serviceuser:v1/MediaUpload/enabled": enabled "/serviceuser:v1/UsageRule": usage_rule "/serviceuser:v1/UsageRule/selector": selector "/serviceuser:v1/UsageRule/allowUnregisteredCalls": allow_unregistered_calls "/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/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/BackendRule": backend_rule +"/serviceuser:v1/BackendRule/address": address +"/serviceuser:v1/BackendRule/selector": selector +"/serviceuser:v1/BackendRule/deadline": deadline "/serviceuser:v1/AuthenticationRule": authentication_rule -"/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/oauth": oauth -"/serviceuser:v1/BackendRule": backend_rule -"/serviceuser:v1/BackendRule/deadline": deadline -"/serviceuser:v1/BackendRule/address": address -"/serviceuser:v1/BackendRule/selector": selector +"/serviceuser:v1/AuthenticationRule/requirements": requirements +"/serviceuser:v1/AuthenticationRule/requirements/requirement": requirement "/serviceuser:v1/Api": api "/serviceuser:v1/Api/name": name "/serviceuser:v1/Api/sourceContext": source_context @@ -35374,43 +35355,50 @@ "/serviceuser:v1/MetricRule/metricCosts": metric_costs "/serviceuser:v1/MetricRule/metricCosts/metric_cost": metric_cost "/serviceuser:v1/Authentication": authentication -"/serviceuser:v1/Authentication/providers": providers -"/serviceuser:v1/Authentication/providers/provider": provider "/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/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/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/id": id "/serviceuser:v1/AuthProvider/issuer": issuer "/serviceuser:v1/AuthProvider/jwksUri": jwks_uri "/serviceuser:v1/AuthProvider/audiences": audiences "/serviceuser:v1/Service": service +"/serviceuser:v1/Service/enums": enums +"/serviceuser:v1/Service/enums/enum": enum +"/serviceuser:v1/Service/context": context +"/serviceuser:v1/Service/id": id +"/serviceuser:v1/Service/usage": usage +"/serviceuser:v1/Service/metrics": metrics +"/serviceuser:v1/Service/metrics/metric": metric "/serviceuser:v1/Service/authentication": authentication "/serviceuser:v1/Service/experimental": experimental "/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 @@ -35432,42 +35420,32 @@ "/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 -"/serviceuser:v1/Service/id": id -"/serviceuser:v1/Service/usage": usage -"/serviceuser:v1/Service/metrics": metrics -"/serviceuser:v1/Service/metrics/metric": metric "/serviceuser:v1/EnumValue": enum_value +"/serviceuser:v1/EnumValue/name": name "/serviceuser:v1/EnumValue/options": options "/serviceuser:v1/EnumValue/options/option": option "/serviceuser:v1/EnumValue/number": number -"/serviceuser:v1/EnumValue/name": name "/serviceuser:v1/CustomHttpPattern": custom_http_pattern "/serviceuser:v1/CustomHttpPattern/path": path "/serviceuser:v1/CustomHttpPattern/kind": kind "/serviceuser:v1/OperationMetadata": operation_metadata +"/serviceuser:v1/OperationMetadata/progressPercentage": progress_percentage "/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/progressPercentage": progress_percentage +"/serviceuser:v1/PublishedService": published_service +"/serviceuser:v1/PublishedService/service": service +"/serviceuser:v1/PublishedService/name": name "/serviceuser:v1/SystemParameterRule": system_parameter_rule +"/serviceuser:v1/SystemParameterRule/selector": selector "/serviceuser:v1/SystemParameterRule/parameters": parameters "/serviceuser:v1/SystemParameterRule/parameters/parameter": parameter -"/serviceuser:v1/SystemParameterRule/selector": selector -"/serviceuser:v1/PublishedService": published_service -"/serviceuser:v1/PublishedService/name": name -"/serviceuser:v1/PublishedService/service": service "/serviceuser:v1/VisibilityRule": visibility_rule "/serviceuser:v1/VisibilityRule/restriction": restriction "/serviceuser:v1/VisibilityRule/selector": selector "/serviceuser:v1/HttpRule": http_rule -"/serviceuser:v1/HttpRule/body": body -"/serviceuser:v1/HttpRule/mediaDownload": media_download -"/serviceuser:v1/HttpRule/post": post "/serviceuser:v1/HttpRule/additionalBindings": additional_bindings "/serviceuser:v1/HttpRule/additionalBindings/additional_binding": additional_binding "/serviceuser:v1/HttpRule/responseBody": response_body @@ -35478,6 +35456,9 @@ "/serviceuser:v1/HttpRule/patch": patch "/serviceuser:v1/HttpRule/put": put "/serviceuser:v1/HttpRule/delete": delete +"/serviceuser:v1/HttpRule/body": body +"/serviceuser:v1/HttpRule/mediaDownload": media_download +"/serviceuser:v1/HttpRule/post": post "/serviceuser:v1/MonitoringDestination": monitoring_destination "/serviceuser:v1/MonitoringDestination/monitoredResource": monitored_resource "/serviceuser:v1/MonitoringDestination/metrics": metrics @@ -35494,12 +35475,12 @@ "/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 +"/serviceuser:v1/Step/status": status "/serviceuser:v1/LoggingDestination": logging_destination -"/serviceuser:v1/LoggingDestination/monitoredResource": monitored_resource "/serviceuser:v1/LoggingDestination/logs": logs "/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 @@ -35509,39 +35490,39 @@ "/serviceuser:v1/Logging/consumerDestinations/consumer_destination": consumer_destination "/serviceuser:v1/Logging/producerDestinations": producer_destinations "/serviceuser:v1/Logging/producerDestinations/producer_destination": producer_destination -"/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/QuotaLimit": quota_limit -"/serviceuser:v1/QuotaLimit/description": description -"/serviceuser:v1/QuotaLimit/metric": metric -"/serviceuser:v1/QuotaLimit/displayName": display_name -"/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/description": description +"/serviceuser:v1/QuotaLimit/metric": metric +"/serviceuser:v1/QuotaLimit/displayName": display_name +"/serviceuser:v1/QuotaLimit/values": values +"/serviceuser:v1/QuotaLimit/values/value": value +"/serviceuser:v1/Method": method_prop +"/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/Method/name": name +"/serviceuser:v1/Method/requestTypeUrl": request_type_url +"/serviceuser:v1/Method/requestStreaming": request_streaming "/serviceuser:v1/Mixin": mixin "/serviceuser:v1/Mixin/name": name "/serviceuser:v1/Mixin/root": root "/serviceuser:v1/CustomError": custom_error -"/serviceuser:v1/CustomError/types": types -"/serviceuser:v1/CustomError/types/type": type "/serviceuser:v1/CustomError/rules": rules "/serviceuser:v1/CustomError/rules/rule": rule +"/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 @@ -35549,49 +35530,49 @@ "/serviceuser:v1/Control": control "/serviceuser:v1/Control/environment": environment "/serviceuser:v1/SystemParameter": system_parameter -"/serviceuser:v1/SystemParameter/httpHeader": http_header "/serviceuser:v1/SystemParameter/name": name "/serviceuser:v1/SystemParameter/urlQueryParameter": url_query_parameter +"/serviceuser:v1/SystemParameter/httpHeader": http_header "/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/Field": field -"/serviceuser:v1/Field/kind": kind -"/serviceuser:v1/Field/jsonName": json_name -"/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/Field/cardinality": cardinality +"/serviceuser:v1/Field/packed": packed +"/serviceuser:v1/Field/defaultValue": default_value "/serviceuser:v1/Enum": enum +"/serviceuser:v1/Enum/sourceContext": source_context +"/serviceuser:v1/Enum/syntax": syntax "/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/EnableServiceRequest": enable_service_request "/serviceuser:v1/LabelDescriptor": label_descriptor "/serviceuser:v1/LabelDescriptor/valueType": value_type "/serviceuser:v1/LabelDescriptor/key": key "/serviceuser:v1/LabelDescriptor/description": description -"/serviceuser:v1/EnableServiceRequest": enable_service_request "/serviceuser:v1/Type": type -"/serviceuser:v1/Type/options": options -"/serviceuser:v1/Type/options/option": option "/serviceuser:v1/Type/fields": fields "/serviceuser:v1/Type/fields/field": field "/serviceuser:v1/Type/name": name "/serviceuser:v1/Type/oneofs": oneofs "/serviceuser:v1/Type/oneofs/oneof": oneof -"/serviceuser:v1/Type/sourceContext": source_context "/serviceuser:v1/Type/syntax": syntax +"/serviceuser:v1/Type/sourceContext": source_context +"/serviceuser:v1/Type/options": options +"/serviceuser:v1/Type/options/option": option "/serviceuser:v1/Experimental": experimental "/serviceuser:v1/Experimental/authorization": authorization "/serviceuser:v1/Backend": backend @@ -35604,33 +35585,33 @@ "/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/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/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/SourceContext": source_context "/serviceuser:v1/SourceContext/fileName": file_name "/serviceuser:v1/Endpoint": endpoint -"/serviceuser:v1/Endpoint/aliases": aliases -"/serviceuser:v1/Endpoint/aliases/alias": alias -"/serviceuser:v1/Endpoint/allowCors": allow_cors -"/serviceuser:v1/Endpoint/target": target -"/serviceuser:v1/Endpoint/name": name "/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/target": target +"/serviceuser:v1/Endpoint/name": name "/serviceuser:v1/ListEnabledServicesResponse": list_enabled_services_response "/serviceuser:v1/ListEnabledServicesResponse/services": services "/serviceuser:v1/ListEnabledServicesResponse/services/service": service @@ -35646,33 +35627,6 @@ "/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/MonitoredResourceDescriptor": monitored_resource_descriptor -"/serviceuser:v1/MonitoredResourceDescriptor/labels": labels -"/serviceuser:v1/MonitoredResourceDescriptor/labels/label": label -"/serviceuser:v1/MonitoredResourceDescriptor/name": name -"/serviceuser:v1/MonitoredResourceDescriptor/displayName": display_name -"/serviceuser:v1/MonitoredResourceDescriptor/description": description -"/serviceuser:v1/MonitoredResourceDescriptor/type": type -"/serviceuser:v1/CustomErrorRule": custom_error_rule -"/serviceuser:v1/CustomErrorRule/isErrorType": is_error_type -"/serviceuser:v1/CustomErrorRule/selector": selector -"/serviceuser:v1/MediaDownload": media_download -"/serviceuser:v1/MediaDownload/enabled": enabled -"/serviceuser:v1/MediaDownload/downloadService": download_service -"/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/uploadService": upload_service -"/serviceuser:v1/MediaUpload/enabled": enabled "/sheets:v4/fields": fields "/sheets:v4/key": key "/sheets:v4/quotaUser": quota_user @@ -35689,25 +35643,25 @@ "/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.update": update_spreadsheet_value +"/sheets:v4/sheets.spreadsheets.values.update/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.update/responseValueRenderOption": response_value_render_option "/sheets:v4/sheets.spreadsheets.values.update/valueInputOption": value_input_option "/sheets:v4/sheets.spreadsheets.values.update/responseDateTimeRenderOption": response_date_time_render_option "/sheets:v4/sheets.spreadsheets.values.update/range": range "/sheets:v4/sheets.spreadsheets.values.update/includeValuesInResponse": include_values_in_response -"/sheets:v4/sheets.spreadsheets.values.update/spreadsheetId": spreadsheet_id -"/sheets:v4/sheets.spreadsheets.values.update/responseValueRenderOption": response_value_render_option "/sheets:v4/sheets.spreadsheets.values.batchUpdate": batch_update_values "/sheets:v4/sheets.spreadsheets.values.batchUpdate/spreadsheetId": spreadsheet_id "/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.batchGet/valueRenderOption": value_render_option -"/sheets:v4/sheets.spreadsheets.values.batchGet/dateTimeRenderOption": date_time_render_option +"/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/range": range "/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.append/responseValueRenderOption": response_value_render_option "/sheets:v4/sheets.spreadsheets.values.append/insertDataOption": insert_data_option @@ -35717,11 +35671,73 @@ "/sheets:v4/sheets.spreadsheets.values.batchClear/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.sheets.copyTo/sheetId": sheet_id "/sheets:v4/sheets.spreadsheets.sheets.copyTo/spreadsheetId": spreadsheet_id +"/sheets:v4/Response": response +"/sheets:v4/Response/addSheet": add_sheet +"/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/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/chartId": chart_id +"/sheets:v4/EmbeddedChart/position": position +"/sheets:v4/EmbeddedChart/spec": spec +"/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/GridData": grid_data +"/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/GridData/startRow": start_row +"/sheets:v4/GridData/columnMetadata": column_metadata +"/sheets:v4/GridData/columnMetadata/column_metadatum": column_metadatum +"/sheets:v4/Border": border +"/sheets:v4/Border/width": width +"/sheets:v4/Border/style": style +"/sheets:v4/Border/color": color +"/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/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/find": find +"/sheets:v4/FindReplaceRequest/searchByRegex": search_by_regex +"/sheets:v4/FindReplaceRequest/replacement": replacement +"/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/range": range "/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 @@ -35730,45 +35746,45 @@ "/sheets:v4/UpdateSheetPropertiesRequest/properties": properties "/sheets:v4/UpdateSheetPropertiesRequest/fields": fields "/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/GridProperties/frozenRowCount": frozen_row_count -"/sheets:v4/GridProperties/hideGridlines": hide_gridlines "/sheets:v4/UnmergeCellsRequest": unmerge_cells_request "/sheets:v4/UnmergeCellsRequest/range": range -"/sheets:v4/UpdateEmbeddedObjectPositionResponse": update_embedded_object_position_response -"/sheets:v4/UpdateEmbeddedObjectPositionResponse/position": position -"/sheets:v4/SortSpec": sort_spec -"/sheets:v4/SortSpec/dimensionIndex": dimension_index -"/sheets:v4/SortSpec/sortOrder": sort_order "/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/properties": properties "/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/conditionalFormats": conditional_formats "/sheets:v4/Sheet/conditionalFormats/conditional_format": conditional_format "/sheets:v4/Sheet/protectedRanges": protected_ranges "/sheets:v4/Sheet/protectedRanges/protected_range": protected_range +"/sheets:v4/Sheet/basicFilter": basic_filter +"/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/value": value -"/sheets:v4/PivotGroupValueMetadata/collapsed": collapsed "/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/PivotGroupValueMetadata": pivot_group_value_metadata +"/sheets:v4/PivotGroupValueMetadata/collapsed": collapsed +"/sheets:v4/PivotGroupValueMetadata/value": value "/sheets:v4/Editors": editors "/sheets:v4/Editors/users": users "/sheets:v4/Editors/users/user": user @@ -35776,10 +35792,10 @@ "/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/index": index -"/sheets:v4/UpdateConditionalFormatRuleRequest/sheetId": sheet_id "/sheets:v4/UpdateConditionalFormatRuleRequest/newIndex": new_index "/sheets:v4/UpdateConditionalFormatRuleRequest/rule": rule +"/sheets:v4/UpdateConditionalFormatRuleRequest/index": index +"/sheets:v4/UpdateConditionalFormatRuleRequest/sheetId": sheet_id "/sheets:v4/DataValidationRule": data_validation_rule "/sheets:v4/DataValidationRule/showCustomUi": show_custom_ui "/sheets:v4/DataValidationRule/strict": strict @@ -35788,57 +35804,44 @@ "/sheets:v4/BasicChartDomain": basic_chart_domain "/sheets:v4/BasicChartDomain/domain": domain "/sheets:v4/PasteDataRequest": paste_data_request -"/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/PasteDataRequest/type": type +"/sheets:v4/PasteDataRequest/html": html "/sheets:v4/AppendDimensionRequest": append_dimension_request -"/sheets:v4/AppendDimensionRequest/sheetId": sheet_id "/sheets:v4/AppendDimensionRequest/dimension": dimension "/sheets:v4/AppendDimensionRequest/length": length +"/sheets:v4/AppendDimensionRequest/sheetId": sheet_id "/sheets:v4/AddNamedRangeRequest": add_named_range_request "/sheets:v4/AddNamedRangeRequest/namedRange": named_range "/sheets:v4/UpdateEmbeddedObjectPositionRequest": update_embedded_object_position_request +"/sheets:v4/UpdateEmbeddedObjectPositionRequest/newPosition": new_position "/sheets:v4/UpdateEmbeddedObjectPositionRequest/fields": fields "/sheets:v4/UpdateEmbeddedObjectPositionRequest/objectId": object_id_prop -"/sheets:v4/UpdateEmbeddedObjectPositionRequest/newPosition": new_position "/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/domain": domain -"/sheets:v4/PieChartSpec/threeDimensional": three_dimensional "/sheets:v4/UpdateFilterViewRequest": update_filter_view_request -"/sheets:v4/UpdateFilterViewRequest/fields": fields "/sheets:v4/UpdateFilterViewRequest/filter": filter +"/sheets:v4/UpdateFilterViewRequest/fields": fields "/sheets:v4/ConditionalFormatRule": conditional_format_rule +"/sheets:v4/ConditionalFormatRule/booleanRule": boolean_rule "/sheets:v4/ConditionalFormatRule/ranges": ranges "/sheets:v4/ConditionalFormatRule/ranges/range": range "/sheets:v4/ConditionalFormatRule/gradientRule": gradient_rule -"/sheets:v4/ConditionalFormatRule/booleanRule": boolean_rule "/sheets:v4/CopyPasteRequest": copy_paste_request +"/sheets:v4/CopyPasteRequest/destination": destination "/sheets:v4/CopyPasteRequest/pasteOrientation": paste_orientation "/sheets:v4/CopyPasteRequest/source": source "/sheets:v4/CopyPasteRequest/pasteType": paste_type -"/sheets:v4/CopyPasteRequest/destination": destination -"/sheets:v4/BooleanCondition": boolean_condition -"/sheets:v4/BooleanCondition/type": type -"/sheets:v4/BooleanCondition/values": values -"/sheets:v4/BooleanCondition/values/value": value "/sheets:v4/Request": request -"/sheets:v4/Request/addFilterView": add_filter_view -"/sheets:v4/Request/setDataValidation": set_data_validation -"/sheets:v4/Request/updateBorders": update_borders -"/sheets:v4/Request/deleteConditionalFormatRule": delete_conditional_format_rule -"/sheets:v4/Request/repeatCell": repeat_cell -"/sheets:v4/Request/clearBasicFilter": clear_basic_filter -"/sheets:v4/Request/appendDimension": append_dimension -"/sheets:v4/Request/updateConditionalFormatRule": update_conditional_format_rule -"/sheets:v4/Request/insertRange": insert_range "/sheets:v4/Request/moveDimension": move_dimension "/sheets:v4/Request/updateBanding": update_banding "/sheets:v4/Request/addProtectedRange": add_protected_range @@ -35851,8 +35854,8 @@ "/sheets:v4/Request/pasteData": paste_data "/sheets:v4/Request/setBasicFilter": set_basic_filter "/sheets:v4/Request/addConditionalFormatRule": add_conditional_format_rule -"/sheets:v4/Request/updateCells": update_cells "/sheets:v4/Request/addNamedRange": add_named_range +"/sheets:v4/Request/updateCells": update_cells "/sheets:v4/Request/updateSpreadsheetProperties": update_spreadsheet_properties "/sheets:v4/Request/deleteEmbeddedObject": delete_embedded_object "/sheets:v4/Request/updateFilterView": update_filter_view @@ -35863,31 +35866,42 @@ "/sheets:v4/Request/mergeCells": merge_cells "/sheets:v4/Request/updateNamedRange": update_named_range "/sheets:v4/Request/updateSheetProperties": update_sheet_properties -"/sheets:v4/Request/autoFill": auto_fill "/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/updateChartSpec": update_chart_spec "/sheets:v4/Request/addSheet": add_sheet "/sheets:v4/Request/updateProtectedRange": update_protected_range -"/sheets:v4/Request/copyPaste": copy_paste "/sheets:v4/Request/deleteFilterView": delete_filter_view +"/sheets:v4/Request/copyPaste": copy_paste "/sheets:v4/Request/insertDimension": insert_dimension "/sheets:v4/Request/deleteRange": delete_range "/sheets:v4/Request/deleteBanding": delete_banding +"/sheets:v4/Request/addFilterView": add_filter_view +"/sheets:v4/Request/setDataValidation": set_data_validation +"/sheets:v4/Request/updateBorders": update_borders +"/sheets:v4/Request/deleteConditionalFormatRule": delete_conditional_format_rule +"/sheets:v4/Request/clearBasicFilter": clear_basic_filter +"/sheets:v4/Request/repeatCell": repeat_cell +"/sheets:v4/Request/appendDimension": append_dimension +"/sheets:v4/Request/updateConditionalFormatRule": update_conditional_format_rule +"/sheets:v4/Request/insertRange": insert_range +"/sheets:v4/BooleanCondition": boolean_condition +"/sheets:v4/BooleanCondition/type": type +"/sheets:v4/BooleanCondition/values": values +"/sheets:v4/BooleanCondition/values/value": value "/sheets:v4/GridRange": grid_range -"/sheets:v4/GridRange/startColumnIndex": start_column_index -"/sheets:v4/GridRange/sheetId": sheet_id "/sheets:v4/GridRange/endRowIndex": end_row_index "/sheets:v4/GridRange/endColumnIndex": end_column_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/axis": axis -"/sheets:v4/BasicChartSpec/axis/axis": axis "/sheets:v4/BasicChartSpec/chartType": chart_type "/sheets:v4/BasicChartSpec/series": series "/sheets:v4/BasicChartSpec/series/series": series @@ -35895,21 +35909,23 @@ "/sheets:v4/BasicChartSpec/domains": domains "/sheets:v4/BasicChartSpec/domains/domain": domain "/sheets:v4/BasicChartSpec/headerCount": header_count +"/sheets:v4/BasicChartSpec/axis": axis +"/sheets:v4/BasicChartSpec/axis/axis": axis "/sheets:v4/SetDataValidationRequest": set_data_validation_request "/sheets:v4/SetDataValidationRequest/rule": rule "/sheets:v4/SetDataValidationRequest/range": range "/sheets:v4/CellData": cell_data -"/sheets:v4/CellData/formattedValue": formatted_value +"/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/CellData/pivotTable": pivot_table "/sheets:v4/CellData/userEnteredFormat": user_entered_format -"/sheets:v4/CellData/note": note "/sheets:v4/CellData/effectiveFormat": effective_format -"/sheets:v4/CellData/userEnteredValue": user_entered_value -"/sheets:v4/CellData/dataValidation": data_validation -"/sheets:v4/CellData/effectiveValue": effective_value +"/sheets:v4/CellData/note": note "/sheets:v4/BatchUpdateSpreadsheetRequest": batch_update_spreadsheet_request "/sheets:v4/BatchUpdateSpreadsheetRequest/includeSpreadsheetInResponse": include_spreadsheet_in_response "/sheets:v4/BatchUpdateSpreadsheetRequest/responseRanges": response_ranges @@ -35918,14 +35934,14 @@ "/sheets:v4/BatchUpdateSpreadsheetRequest/requests": requests "/sheets:v4/BatchUpdateSpreadsheetRequest/requests/request": request "/sheets:v4/BasicChartAxis": basic_chart_axis +"/sheets:v4/BasicChartAxis/format": format "/sheets:v4/BasicChartAxis/position": position "/sheets:v4/BasicChartAxis/title": title -"/sheets:v4/BasicChartAxis/format": format "/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/Padding/right": right "/sheets:v4/DeleteDimensionRequest": delete_dimension_request "/sheets:v4/DeleteDimensionRequest/range": range "/sheets:v4/UpdateChartSpecRequest": update_chart_spec_request @@ -35934,20 +35950,20 @@ "/sheets:v4/DeleteFilterViewRequest": delete_filter_view_request "/sheets:v4/DeleteFilterViewRequest/filterId": filter_id "/sheets:v4/BatchUpdateValuesResponse": batch_update_values_response -"/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/BatchUpdateValuesResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedRows": total_updated_rows +"/sheets:v4/BatchUpdateValuesResponse/responses": responses +"/sheets:v4/BatchUpdateValuesResponse/responses/response": response "/sheets:v4/SortRangeRequest": sort_range_request "/sheets:v4/SortRangeRequest/range": range "/sheets:v4/SortRangeRequest/sortSpecs": sort_specs "/sheets:v4/SortRangeRequest/sortSpecs/sort_spec": sort_spec "/sheets:v4/MergeCellsRequest": merge_cells_request -"/sheets:v4/MergeCellsRequest/range": range "/sheets:v4/MergeCellsRequest/mergeType": merge_type +"/sheets:v4/MergeCellsRequest/range": range "/sheets:v4/AddProtectedRangeRequest": add_protected_range_request "/sheets:v4/AddProtectedRangeRequest/protectedRange": protected_range "/sheets:v4/BatchClearValuesRequest": batch_clear_values_request @@ -35958,9 +35974,9 @@ "/sheets:v4/DuplicateSheetResponse": duplicate_sheet_response "/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/delimiter": delimiter "/sheets:v4/ClearBasicFilterRequest": clear_basic_filter_request "/sheets:v4/ClearBasicFilterRequest/sheetId": sheet_id "/sheets:v4/BatchUpdateSpreadsheetResponse": batch_update_spreadsheet_response @@ -35974,14 +35990,14 @@ "/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 @@ -35994,27 +36010,27 @@ "/sheets:v4/NumberFormat/type": type "/sheets:v4/NumberFormat/pattern": pattern "/sheets:v4/SheetProperties": sheet_properties -"/sheets:v4/SheetProperties/title": title -"/sheets:v4/SheetProperties/index": index -"/sheets:v4/SheetProperties/tabColor": tab_color -"/sheets:v4/SheetProperties/sheetId": sheet_id "/sheets:v4/SheetProperties/rightToLeft": right_to_left "/sheets:v4/SheetProperties/hidden": hidden -"/sheets:v4/SheetProperties/sheetType": sheet_type "/sheets:v4/SheetProperties/gridProperties": grid_properties +"/sheets:v4/SheetProperties/sheetType": sheet_type +"/sheets:v4/SheetProperties/title": title +"/sheets:v4/SheetProperties/tabColor": tab_color +"/sheets:v4/SheetProperties/index": index +"/sheets:v4/SheetProperties/sheetId": sheet_id "/sheets:v4/UpdateDimensionPropertiesRequest": update_dimension_properties_request "/sheets:v4/UpdateDimensionPropertiesRequest/properties": properties "/sheets:v4/UpdateDimensionPropertiesRequest/range": range "/sheets:v4/UpdateDimensionPropertiesRequest/fields": fields "/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/range": range "/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/FilterView/namedRangeId": named_range_id @@ -36024,29 +36040,29 @@ "/sheets:v4/BandingProperties/secondBandColor": second_band_color "/sheets:v4/BandingProperties/footerColor": footer_color "/sheets:v4/BandingProperties/headerColor": header_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/AddProtectedRangeResponse": add_protected_range_response -"/sheets:v4/AddProtectedRangeResponse/protectedRange": protected_range "/sheets:v4/UpdateValuesResponse": update_values_response +"/sheets:v4/UpdateValuesResponse/updatedRange": updated_range +"/sheets:v4/UpdateValuesResponse/updatedCells": updated_cells "/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/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/ErrorValue": error_value +"/sheets:v4/ErrorValue/type": type +"/sheets:v4/ErrorValue/message": message "/sheets:v4/CopySheetToAnotherSpreadsheetRequest": copy_sheet_to_another_spreadsheet_request "/sheets:v4/CopySheetToAnotherSpreadsheetRequest/destinationSpreadsheetId": destination_spreadsheet_id "/sheets:v4/PivotGroupSortValueBucket": pivot_group_sort_value_bucket @@ -36064,73 +36080,73 @@ "/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/GradientRule/midpoint": midpoint "/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/DeleteEmbeddedObjectRequest": delete_embedded_object_request -"/sheets:v4/DeleteEmbeddedObjectRequest/objectId": object_id_prop +"/sheets:v4/InterpolationPoint/color": color "/sheets:v4/FindReplaceResponse": find_replace_response -"/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/FindReplaceResponse/formulasChanged": formulas_changed -"/sheets:v4/DeleteSheetRequest": delete_sheet_request -"/sheets:v4/DeleteSheetRequest/sheetId": sheet_id +"/sheets:v4/FindReplaceResponse/valuesChanged": values_changed +"/sheets:v4/DeleteEmbeddedObjectRequest": delete_embedded_object_request +"/sheets:v4/DeleteEmbeddedObjectRequest/objectId": object_id_prop "/sheets:v4/DuplicateFilterViewRequest": duplicate_filter_view_request "/sheets:v4/DuplicateFilterViewRequest/filterId": filter_id +"/sheets:v4/DeleteSheetRequest": delete_sheet_request +"/sheets:v4/DeleteSheetRequest/sheetId": sheet_id "/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/oldRule": old_rule +"/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/ConditionValue": condition_value "/sheets:v4/ConditionValue/relativeDate": relative_date "/sheets:v4/ConditionValue/userEnteredValue": user_entered_value -"/sheets:v4/DuplicateSheetRequest": duplicate_sheet_request -"/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/ExtendedValue": extended_value -"/sheets:v4/ExtendedValue/errorValue": error_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/BandedRange": banded_range -"/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/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/ExtendedValue/errorValue": error_value +"/sheets:v4/AddChartRequest": add_chart_request +"/sheets:v4/AddChartRequest/chart": chart "/sheets:v4/Spreadsheet": spreadsheet +"/sheets:v4/Spreadsheet/spreadsheetUrl": spreadsheet_url "/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/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/BandedRange": banded_range +"/sheets:v4/BandedRange/rowProperties": row_properties +"/sheets:v4/BandedRange/columnProperties": column_properties +"/sheets:v4/BandedRange/range": range +"/sheets:v4/BandedRange/bandedRangeId": banded_range_id "/sheets:v4/UpdateProtectedRangeRequest": update_protected_range_request "/sheets:v4/UpdateProtectedRangeRequest/protectedRange": protected_range "/sheets:v4/UpdateProtectedRangeRequest/fields": fields "/sheets:v4/TextFormat": text_format "/sheets:v4/TextFormat/underline": underline -"/sheets:v4/TextFormat/foregroundColor": foreground_color "/sheets:v4/TextFormat/bold": bold +"/sheets:v4/TextFormat/foregroundColor": foreground_color "/sheets:v4/TextFormat/fontFamily": font_family "/sheets:v4/TextFormat/italic": italic "/sheets:v4/TextFormat/strikethrough": strikethrough @@ -36142,19 +36158,19 @@ "/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/iterativeCalculationSettings": iterative_calculation_settings -"/sheets:v4/SpreadsheetProperties/autoRecalc": auto_recalc -"/sheets:v4/SpreadsheetProperties/defaultFormat": default_format -"/sheets:v4/SpreadsheetProperties/title": title -"/sheets:v4/SpreadsheetProperties/timeZone": time_zone -"/sheets:v4/SpreadsheetProperties/locale": locale "/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/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/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/RepeatCellRequest": repeat_cell_request "/sheets:v4/RepeatCellRequest/range": range "/sheets:v4/RepeatCellRequest/fields": fields @@ -36165,15 +36181,8 @@ "/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/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/BatchUpdateValuesRequest/responseValueRenderOption": response_value_render_option +"/sheets:v4/UpdateSpreadsheetPropertiesRequest/properties": properties "/sheets:v4/ProtectedRange": protected_range "/sheets:v4/ProtectedRange/range": range "/sheets:v4/ProtectedRange/editors": editors @@ -36184,57 +36193,64 @@ "/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/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/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/DimensionProperties/pixelSize": pixel_size +"/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/startIndex": start_index "/sheets:v4/DimensionRange/endIndex": end_index "/sheets:v4/DimensionRange/sheetId": sheet_id "/sheets:v4/DimensionRange/dimension": dimension -"/sheets:v4/NamedRange": named_range -"/sheets:v4/NamedRange/namedRangeId": named_range_id -"/sheets:v4/NamedRange/range": range -"/sheets:v4/NamedRange/name": name "/sheets:v4/CutPasteRequest": cut_paste_request +"/sheets:v4/CutPasteRequest/destination": destination "/sheets:v4/CutPasteRequest/source": source "/sheets:v4/CutPasteRequest/pasteType": paste_type -"/sheets:v4/CutPasteRequest/destination": destination +"/sheets:v4/Borders": borders +"/sheets:v4/Borders/top": top +"/sheets:v4/Borders/left": left +"/sheets:v4/Borders/right": right +"/sheets:v4/Borders/bottom": bottom "/sheets:v4/BasicChartSeries": basic_chart_series "/sheets:v4/BasicChartSeries/series": series "/sheets:v4/BasicChartSeries/type": type "/sheets:v4/BasicChartSeries/targetAxis": target_axis -"/sheets:v4/Borders": borders -"/sheets:v4/Borders/bottom": bottom -"/sheets:v4/Borders/top": top -"/sheets:v4/Borders/left": left -"/sheets:v4/Borders/right": right "/sheets:v4/AutoResizeDimensionsRequest": auto_resize_dimensions_request "/sheets:v4/AutoResizeDimensionsRequest/dimensions": dimensions "/sheets:v4/UpdateBordersRequest": update_borders_request -"/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/UpdateBordersRequest/innerVertical": inner_vertical "/sheets:v4/UpdateBordersRequest/right": right +"/sheets:v4/UpdateBordersRequest/range": range +"/sheets:v4/UpdateBordersRequest/innerHorizontal": inner_horizontal "/sheets:v4/CellFormat": cell_format +"/sheets:v4/CellFormat/wrapStrategy": wrap_strategy +"/sheets:v4/CellFormat/textRotation": text_rotation "/sheets:v4/CellFormat/numberFormat": number_format -"/sheets:v4/CellFormat/hyperlinkDisplayType": hyperlink_display_type "/sheets:v4/CellFormat/horizontalAlignment": horizontal_alignment +"/sheets:v4/CellFormat/hyperlinkDisplayType": hyperlink_display_type "/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/padding": padding "/sheets:v4/CellFormat/textDirection": text_direction -"/sheets:v4/CellFormat/textRotation": text_rotation -"/sheets:v4/CellFormat/wrapStrategy": wrap_strategy +"/sheets:v4/CellFormat/borders": borders "/sheets:v4/ClearValuesResponse": clear_values_response -"/sheets:v4/ClearValuesResponse/spreadsheetId": spreadsheet_id "/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 @@ -36257,101 +36273,39 @@ "/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/PivotGroup/sortOrder": sort_order -"/sheets:v4/PivotGroup/valueBucket": value_bucket "/sheets:v4/PivotTable": pivot_table -"/sheets:v4/PivotTable/source": source -"/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/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/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/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/range": 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/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/deleteConditionalFormatRule": delete_conditional_format_rule -"/sheets:v4/Response/updateEmbeddedObjectPosition": update_embedded_object_position -"/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/startIndex": start_index -"/sheets:v4/TextFormatRun/format": format -"/sheets:v4/EmbeddedChart": embedded_chart -"/sheets:v4/EmbeddedChart/position": position -"/sheets:v4/EmbeddedChart/spec": spec -"/sheets:v4/EmbeddedChart/chartId": chart_id -"/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/GridData": grid_data -"/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/GridData/startRow": start_row -"/sheets:v4/Border": border -"/sheets:v4/Border/color": color -"/sheets:v4/Border/width": width -"/sheets:v4/Border/style": style -"/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/searchByRegex": search_by_regex -"/sheets:v4/FindReplaceRequest/find": find -"/sheets:v4/FindReplaceRequest/replacement": replacement -"/sheets:v4/FindReplaceRequest/range": range -"/sheets:v4/FindReplaceRequest/sheetId": sheet_id -"/sheets:v4/FindReplaceRequest/allSheets": all_sheets -"/sheets:v4/FindReplaceRequest/matchCase": match_case -"/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 "/siteVerification:v1/fields": fields "/siteVerification:v1/key": key "/siteVerification:v1/quotaUser": quota_user @@ -36382,22 +36336,190 @@ "/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.pages.get": get_presentation_page -"/slides:v1/slides.presentations.pages.get/presentationId": presentation_id -"/slides:v1/slides.presentations.pages.get/pageObjectId": page_object_id +"/slides:v1/slides.presentations.get": get_presentation +"/slides:v1/slides.presentations.get/presentationId": presentation_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/presentationId": presentation_id "/slides:v1/slides.presentations.pages.getThumbnail/pageObjectId": page_object_id +"/slides:v1/slides.presentations.pages.get": get_presentation_page +"/slides:v1/slides.presentations.pages.get/presentationId": presentation_id +"/slides:v1/slides.presentations.pages.get/pageObjectId": page_object_id +"/slides:v1/Shape": shape +"/slides:v1/Shape/shapeType": shape_type +"/slides:v1/Shape/text": text +"/slides:v1/Shape/placeholder": placeholder +"/slides:v1/Shape/shapeProperties": shape_properties +"/slides:v1/Image": image +"/slides:v1/Image/imageProperties": image_properties +"/slides:v1/Image/contentUrl": content_url +"/slides:v1/InsertTextRequest": insert_text_request +"/slides:v1/InsertTextRequest/objectId": object_id_prop +"/slides:v1/InsertTextRequest/text": text +"/slides:v1/InsertTextRequest/insertionIndex": insertion_index +"/slides:v1/InsertTextRequest/cellLocation": cell_location +"/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/AutoText": auto_text +"/slides:v1/AutoText/type": type +"/slides:v1/AutoText/content": content +"/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/applyMode": apply_mode +"/slides:v1/UpdatePageElementTransformRequest/objectId": object_id_prop +"/slides:v1/UpdatePageElementTransformRequest/transform": transform +"/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/paragraphMarker": paragraph_marker +"/slides:v1/TextElement/startIndex": start_index +"/slides:v1/TextElement/endIndex": end_index +"/slides:v1/TextElement/textRun": text_run +"/slides:v1/TextElement/autoText": auto_text +"/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/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/LineProperties": line_properties +"/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/LineProperties/weight": weight +"/slides:v1/LineProperties/lineFill": line_fill +"/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 +"/slides:v1/Presentation/masters": masters +"/slides:v1/Presentation/masters/master": master +"/slides:v1/Presentation/locale": locale +"/slides:v1/Presentation/pageSize": page_size +"/slides:v1/Presentation/presentationId": presentation_id +"/slides:v1/Presentation/slides": slides +"/slides:v1/Presentation/slides/slide": slide +"/slides:v1/Presentation/revisionId": revision_id +"/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/brightness": brightness +"/slides:v1/ImageProperties/transparency": transparency +"/slides:v1/ImageProperties/shadow": shadow +"/slides:v1/ImageProperties/contrast": contrast +"/slides:v1/ImageProperties/link": link +"/slides:v1/ImageProperties/recolor": recolor +"/slides:v1/ImageProperties/cropProperties": crop_properties +"/slides:v1/ImageProperties/outline": outline +"/slides:v1/ReplaceAllShapesWithImageResponse": replace_all_shapes_with_image_response +"/slides:v1/ReplaceAllShapesWithImageResponse/occurrencesChanged": occurrences_changed +"/slides:v1/Line": line +"/slides:v1/Line/lineType": line_type +"/slides:v1/Line/lineProperties": line_properties +"/slides:v1/CreateSheetsChartRequest": create_sheets_chart_request +"/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/CreateSheetsChartRequest/chartId": chart_id +"/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/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/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/Response/replaceAllText": replace_all_text +"/slides:v1/Response/createSlide": create_slide +"/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/SubstringMatchCriteria": substring_match_criteria +"/slides:v1/SubstringMatchCriteria/text": text +"/slides:v1/SubstringMatchCriteria/matchCase": match_case +"/slides:v1/LayoutReference": layout_reference +"/slides:v1/LayoutReference/predefinedLayout": predefined_layout +"/slides:v1/LayoutReference/layoutId": layout_id +"/slides:v1/TextRun": text_run +"/slides:v1/TextRun/content": content +"/slides:v1/TextRun/style": style +"/slides:v1/TableRange": table_range +"/slides:v1/TableRange/location": location +"/slides:v1/TableRange/rowSpan": row_span +"/slides:v1/TableRange/columnSpan": column_span +"/slides:v1/CreateTableRequest": create_table_request +"/slides:v1/CreateTableRequest/elementProperties": element_properties +"/slides:v1/CreateTableRequest/rows": rows +"/slides:v1/CreateTableRequest/objectId": object_id_prop +"/slides:v1/CreateTableRequest/columns": columns +"/slides:v1/CreateTableResponse": create_table_response +"/slides:v1/CreateTableResponse/objectId": object_id_prop +"/slides:v1/Table": table +"/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/Table/rows": rows +"/slides:v1/PageBackgroundFill": page_background_fill +"/slides:v1/PageBackgroundFill/propertyState": property_state +"/slides:v1/PageBackgroundFill/stretchedPictureFill": stretched_picture_fill +"/slides:v1/PageBackgroundFill/solidFill": solid_fill +"/slides:v1/SheetsChart": sheets_chart +"/slides:v1/SheetsChart/contentUrl": content_url +"/slides:v1/SheetsChart/spreadsheetId": spreadsheet_id +"/slides:v1/SheetsChart/chartId": chart_id +"/slides:v1/SheetsChart/sheetsChartProperties": sheets_chart_properties +"/slides:v1/SolidFill": solid_fill +"/slides:v1/SolidFill/color": color +"/slides:v1/SolidFill/alpha": alpha +"/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 @@ -36408,87 +36530,65 @@ "/slides:v1/StretchedPictureFill/contentUrl": content_url "/slides:v1/StretchedPictureFill/size": size "/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/UpdateTextStyleRequest/cellLocation": cell_location +"/slides:v1/UpdateTextStyleRequest/style": style "/slides:v1/DeleteTableColumnRequest": delete_table_column_request -"/slides:v1/DeleteTableColumnRequest/cellLocation": cell_location "/slides:v1/DeleteTableColumnRequest/tableObjectId": table_object_id +"/slides:v1/DeleteTableColumnRequest/cellLocation": cell_location "/slides:v1/List": list -"/slides:v1/List/listId": list_id "/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/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/objectId": object_id_prop "/slides:v1/PageElement/shape": shape "/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/sheetsChart": sheets_chart -"/slides:v1/PageElement/title": title -"/slides:v1/PageElement/video": video -"/slides:v1/PageElement/wordArt": word_art "/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/CreateImageRequest/objectId": object_id_prop "/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/CreateParagraphBulletsRequest/bulletPreset": bullet_preset "/slides:v1/TextStyle": text_style +"/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/TextStyle/smallCaps": small_caps "/slides:v1/TextStyle/backgroundColor": background_color -"/slides:v1/TextStyle/underline": underline "/slides:v1/TextStyle/link": link -"/slides:v1/TextStyle/bold": bold +"/slides:v1/TextStyle/underline": underline "/slides:v1/TextStyle/foregroundColor": foreground_color -"/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/bold": bold "/slides:v1/Size": size "/slides:v1/Size/height": height "/slides:v1/Size/width": width "/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/UpdateVideoPropertiesRequest/videoProperties": video_properties "/slides:v1/Request": request -"/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/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/deleteTableColumn": delete_table_column -"/slides:v1/Request/duplicateObject": duplicate_object -"/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 @@ -36498,6 +36598,28 @@ "/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/Request/deleteTableColumn": delete_table_column +"/slides:v1/Request/duplicateObject": duplicate_object +"/slides:v1/Request/createLine": create_line +"/slides:v1/Request/updateVideoProperties": update_video_properties +"/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/UpdateImagePropertiesRequest": update_image_properties_request "/slides:v1/UpdateImagePropertiesRequest/fields": fields "/slides:v1/UpdateImagePropertiesRequest/imageProperties": image_properties @@ -36517,21 +36639,21 @@ "/slides:v1/TableCellProperties": table_cell_properties "/slides:v1/TableCellProperties/tableCellBackgroundFill": table_cell_background_fill "/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/Outline/outlineFill": outline_fill "/slides:v1/RefreshSheetsChartRequest": refresh_sheets_chart_request "/slides:v1/RefreshSheetsChartRequest/objectId": object_id_prop -"/slides:v1/TableColumnProperties": table_column_properties -"/slides:v1/TableColumnProperties/columnWidth": column_width +"/slides:v1/NotesProperties": notes_properties +"/slides:v1/NotesProperties/speakerNotesObjectId": speaker_notes_object_id "/slides:v1/ShapeProperties": shape_properties "/slides:v1/ShapeProperties/shapeBackgroundFill": shape_background_fill "/slides:v1/ShapeProperties/shadow": shadow "/slides:v1/ShapeProperties/link": link "/slides:v1/ShapeProperties/outline": outline -"/slides:v1/NotesProperties": notes_properties -"/slides:v1/NotesProperties/speakerNotesObjectId": speaker_notes_object_id +"/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 @@ -36542,11 +36664,11 @@ "/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/CreateSlideRequest/slideLayoutReference": slide_layout_reference -"/slides:v1/CreateSlideRequest/objectId": object_id_prop "/slides:v1/BatchUpdatePresentationRequest": batch_update_presentation_request "/slides:v1/BatchUpdatePresentationRequest/requests": requests "/slides:v1/BatchUpdatePresentationRequest/requests/request": request @@ -36561,46 +36683,46 @@ "/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 +"/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/insertRight": insert_right -"/slides:v1/InsertTableColumnsRequest/tableObjectId": table_object_id "/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/Thumbnail": thumbnail "/slides:v1/Thumbnail/height": height "/slides:v1/Thumbnail/contentUrl": content_url "/slides:v1/Thumbnail/width": width "/slides:v1/LayoutPlaceholderIdMapping": layout_placeholder_id_mapping -"/slides:v1/LayoutPlaceholderIdMapping/objectId": object_id_prop "/slides:v1/LayoutPlaceholderIdMapping/layoutPlaceholder": layout_placeholder "/slides:v1/LayoutPlaceholderIdMapping/layoutPlaceholderObjectId": layout_placeholder_object_id +"/slides:v1/LayoutPlaceholderIdMapping/objectId": object_id_prop "/slides:v1/UpdateShapePropertiesRequest": update_shape_properties_request +"/slides:v1/UpdateShapePropertiesRequest/fields": fields "/slides:v1/UpdateShapePropertiesRequest/objectId": object_id_prop "/slides:v1/UpdateShapePropertiesRequest/shapeProperties": shape_properties -"/slides:v1/UpdateShapePropertiesRequest/fields": fields "/slides:v1/WordArt": word_art "/slides:v1/WordArt/renderedText": rendered_text "/slides:v1/Recolor": recolor +"/slides:v1/Recolor/name": name "/slides:v1/Recolor/recolorStops": recolor_stops "/slides:v1/Recolor/recolorStops/recolor_stop": recolor_stop -"/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/RgbColor": rgb_color -"/slides:v1/RgbColor/green": green -"/slides:v1/RgbColor/blue": blue -"/slides:v1/RgbColor/red": red +"/slides:v1/Link/pageObjectId": page_object_id "/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/CreateLineRequest": create_line_request "/slides:v1/CreateLineRequest/objectId": object_id_prop "/slides:v1/CreateLineRequest/elementProperties": element_properties @@ -36620,24 +36742,24 @@ "/slides:v1/PageProperties/pageBackgroundFill": page_background_fill "/slides:v1/PageProperties/colorScheme": color_scheme "/slides:v1/TableCell": table_cell -"/slides:v1/TableCell/columnSpan": column_span "/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/columnSpan": column_span "/slides:v1/NestingLevel": nesting_level "/slides:v1/NestingLevel/bulletStyle": bullet_style "/slides:v1/UpdateLinePropertiesRequest": update_line_properties_request "/slides:v1/UpdateLinePropertiesRequest/objectId": object_id_prop "/slides:v1/UpdateLinePropertiesRequest/lineProperties": line_properties "/slides:v1/UpdateLinePropertiesRequest/fields": fields -"/slides:v1/UpdateSlidesPositionRequest": update_slides_position_request -"/slides:v1/UpdateSlidesPositionRequest/slideObjectIds": slide_object_ids -"/slides:v1/UpdateSlidesPositionRequest/slideObjectIds/slide_object_id": slide_object_id -"/slides:v1/UpdateSlidesPositionRequest/insertionIndex": insertion_index "/slides:v1/TableCellBackgroundFill": table_cell_background_fill "/slides:v1/TableCellBackgroundFill/solidFill": solid_fill "/slides:v1/TableCellBackgroundFill/propertyState": property_state +"/slides:v1/UpdateSlidesPositionRequest": update_slides_position_request +"/slides:v1/UpdateSlidesPositionRequest/insertionIndex": insertion_index +"/slides:v1/UpdateSlidesPositionRequest/slideObjectIds": slide_object_ids +"/slides:v1/UpdateSlidesPositionRequest/slideObjectIds/slide_object_id": slide_object_id "/slides:v1/UpdatePagePropertiesRequest": update_page_properties_request "/slides:v1/UpdatePagePropertiesRequest/fields": fields "/slides:v1/UpdatePagePropertiesRequest/objectId": object_id_prop @@ -36646,9 +36768,9 @@ "/slides:v1/Group/children": children "/slides:v1/Group/children/child": child "/slides:v1/Placeholder": placeholder -"/slides:v1/Placeholder/type": type "/slides:v1/Placeholder/parentObjectId": parent_object_id "/slides:v1/Placeholder/index": index +"/slides:v1/Placeholder/type": type "/slides:v1/DuplicateObjectRequest": duplicate_object_request "/slides:v1/DuplicateObjectRequest/objectIds": object_ids "/slides:v1/DuplicateObjectRequest/objectIds/object_id": object_id_prop @@ -36657,24 +36779,24 @@ "/slides:v1/ReplaceAllTextRequest/replaceText": replace_text "/slides:v1/ReplaceAllTextRequest/containsText": contains_text "/slides:v1/Page": page -"/slides:v1/Page/objectId": object_id_prop -"/slides:v1/Page/revisionId": revision_id -"/slides:v1/Page/layoutProperties": layout_properties +"/slides:v1/Page/pageType": page_type "/slides:v1/Page/pageElements": page_elements "/slides:v1/Page/pageElements/page_element": page_element "/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/Page/pageProperties": page_properties +"/slides:v1/Page/objectId": object_id_prop +"/slides:v1/Page/revisionId": revision_id +"/slides:v1/Page/layoutProperties": layout_properties "/slides:v1/ShapeBackgroundFill": shape_background_fill "/slides:v1/ShapeBackgroundFill/solidFill": solid_fill "/slides:v1/ShapeBackgroundFill/propertyState": property_state "/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 @@ -36700,22 +36822,22 @@ "/slides:v1/ReplaceAllShapesWithImageRequest/replaceMethod": replace_method "/slides:v1/ReplaceAllShapesWithImageRequest/containsText": contains_text "/slides:v1/Shadow": shadow -"/slides:v1/Shadow/rotateWithShape": rotate_with_shape -"/slides:v1/Shadow/propertyState": property_state "/slides:v1/Shadow/blurRadius": blur_radius "/slides:v1/Shadow/transform": transform "/slides:v1/Shadow/type": type "/slides:v1/Shadow/alignment": alignment "/slides:v1/Shadow/alpha": alpha "/slides:v1/Shadow/color": color +"/slides:v1/Shadow/rotateWithShape": rotate_with_shape +"/slides:v1/Shadow/propertyState": property_state "/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/OutlineFill": outline_fill "/slides:v1/OutlineFill/solidFill": solid_fill "/slides:v1/TableCellLocation": table_cell_location @@ -36726,185 +36848,21 @@ "/slides:v1/ReplaceAllTextResponse": replace_all_text_response "/slides:v1/ReplaceAllTextResponse/occurrencesChanged": occurrences_changed "/slides:v1/UpdateParagraphStyleRequest": update_paragraph_style_request -"/slides:v1/UpdateParagraphStyleRequest/objectId": object_id_prop -"/slides:v1/UpdateParagraphStyleRequest/textRange": text_range "/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/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/shapeProperties": shape_properties -"/slides:v1/Image": image -"/slides:v1/Image/imageProperties": image_properties -"/slides:v1/Image/contentUrl": content_url -"/slides:v1/AffineTransform": affine_transform -"/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/AffineTransform/translateY": translate_y -"/slides:v1/InsertTextRequest": insert_text_request -"/slides:v1/InsertTextRequest/objectId": object_id_prop -"/slides:v1/InsertTextRequest/text": text -"/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/style": style -"/slides:v1/CreateVideoResponse": create_video_response -"/slides:v1/CreateVideoResponse/objectId": object_id_prop -"/slides:v1/UpdatePageElementTransformRequest": update_page_element_transform_request -"/slides:v1/UpdatePageElementTransformRequest/objectId": object_id_prop -"/slides:v1/UpdatePageElementTransformRequest/transform": transform -"/slides:v1/UpdatePageElementTransformRequest/applyMode": apply_mode -"/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/DeleteObjectRequest": delete_object_request -"/slides:v1/DeleteObjectRequest/objectId": object_id_prop -"/slides:v1/TextElement": text_element -"/slides:v1/TextElement/paragraphMarker": paragraph_marker -"/slides:v1/TextElement/startIndex": start_index -"/slides:v1/TextElement/endIndex": end_index -"/slides:v1/TextElement/textRun": text_run -"/slides:v1/TextElement/autoText": auto_text -"/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/number": number -"/slides:v1/InsertTableRowsRequest/cellLocation": cell_location -"/slides:v1/InsertTableRowsRequest/tableObjectId": table_object_id -"/slides:v1/InsertTableRowsRequest/insertBelow": insert_below -"/slides:v1/LayoutProperties": layout_properties -"/slides:v1/LayoutProperties/displayName": display_name -"/slides:v1/LayoutProperties/masterObjectId": master_object_id -"/slides:v1/LayoutProperties/name": name -"/slides:v1/LineProperties": line_properties -"/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/dashStyle": dash_style -"/slides:v1/LineProperties/link": link -"/slides:v1/Presentation": presentation -"/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/Presentation/title": title -"/slides:v1/Presentation/layouts": layouts -"/slides:v1/Presentation/layouts/layout": layout -"/slides:v1/Presentation/locale": locale -"/slides:v1/Presentation/masters": masters -"/slides:v1/Presentation/masters/master": master -"/slides:v1/Presentation/pageSize": page_size -"/slides:v1/Presentation/presentationId": presentation_id -"/slides:v1/OpaqueColor": opaque_color -"/slides:v1/OpaqueColor/themeColor": theme_color -"/slides:v1/OpaqueColor/rgbColor": rgb_color -"/slides:v1/ImageProperties": image_properties -"/slides:v1/ImageProperties/transparency": transparency -"/slides:v1/ImageProperties/shadow": shadow -"/slides:v1/ImageProperties/link": link -"/slides:v1/ImageProperties/contrast": contrast -"/slides:v1/ImageProperties/recolor": recolor -"/slides:v1/ImageProperties/cropProperties": crop_properties -"/slides:v1/ImageProperties/outline": outline -"/slides:v1/ImageProperties/brightness": brightness -"/slides:v1/ReplaceAllShapesWithImageResponse": replace_all_shapes_with_image_response -"/slides:v1/ReplaceAllShapesWithImageResponse/occurrencesChanged": occurrences_changed -"/slides:v1/Line": line -"/slides:v1/Line/lineType": line_type -"/slides:v1/Line/lineProperties": line_properties -"/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/spreadsheetId": spreadsheet_id -"/slides:v1/CreateSheetsChartRequest/linkingMode": linking_mode -"/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/layoutObjectId": layout_object_id -"/slides:v1/SlideProperties/masterObjectId": master_object_id -"/slides:v1/SlideProperties/notesPage": notes_page -"/slides:v1/Response": response -"/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/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/createSheetsChart": create_sheets_chart -"/slides:v1/Response/replaceAllShapesWithSheetsChart": replace_all_shapes_with_sheets_chart -"/slides:v1/SubstringMatchCriteria": substring_match_criteria -"/slides:v1/SubstringMatchCriteria/text": text -"/slides:v1/SubstringMatchCriteria/matchCase": match_case -"/slides:v1/LayoutReference": layout_reference -"/slides:v1/LayoutReference/predefinedLayout": predefined_layout -"/slides:v1/LayoutReference/layoutId": layout_id -"/slides:v1/TextRun": text_run -"/slides:v1/TextRun/content": content -"/slides:v1/TextRun/style": style -"/slides:v1/TableRange": table_range -"/slides:v1/TableRange/location": location -"/slides:v1/TableRange/rowSpan": row_span -"/slides:v1/TableRange/columnSpan": column_span -"/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/CreateTableResponse": create_table_response -"/slides:v1/CreateTableResponse/objectId": object_id_prop -"/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/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/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 +"/sourcerepo:v1/quotaUser": quota_user "/sourcerepo:v1/fields": fields "/sourcerepo:v1/key": key -"/sourcerepo:v1/quotaUser": quota_user +"/sourcerepo:v1/sourcerepo.projects.repos.create": create_project_repo +"/sourcerepo:v1/sourcerepo.projects.repos.create/parent": parent +"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy": set_repo_iam_policy +"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy/resource": resource "/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 @@ -36915,48 +36873,6 @@ "/sourcerepo:v1/sourcerepo.projects.repos.delete/name": name "/sourcerepo:v1/sourcerepo.projects.repos.list": list_project_repos "/sourcerepo:v1/sourcerepo.projects.repos.list/name": name -"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy": set_repo_iam_policy -"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy/resource": resource -"/sourcerepo:v1/sourcerepo.projects.repos.create": create_project_repo -"/sourcerepo:v1/sourcerepo.projects.repos.create/parent": parent -"/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/iamOwned": iam_owned -"/sourcerepo:v1/Policy/rules": rules -"/sourcerepo:v1/Policy/rules/rule": rule -"/sourcerepo:v1/Policy/version": version -"/sourcerepo:v1/Policy/auditConfigs": audit_configs -"/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 -"/sourcerepo:v1/AuditConfig": audit_config -"/sourcerepo:v1/AuditConfig/exemptedMembers": exempted_members -"/sourcerepo:v1/AuditConfig/exemptedMembers/exempted_member": exempted_member -"/sourcerepo:v1/AuditConfig/service": service -"/sourcerepo:v1/AuditConfig/auditLogConfigs": audit_log_configs -"/sourcerepo:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config -"/sourcerepo:v1/SetIamPolicyRequest": set_iam_policy_request -"/sourcerepo:v1/SetIamPolicyRequest/policy": policy -"/sourcerepo:v1/SetIamPolicyRequest/updateMask": update_mask -"/sourcerepo:v1/CloudAuditOptions": cloud_audit_options -"/sourcerepo:v1/Binding": binding -"/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/Repo": repo -"/sourcerepo:v1/Repo/mirrorConfig": mirror_config -"/sourcerepo:v1/Repo/url": url -"/sourcerepo:v1/Repo/size": size -"/sourcerepo:v1/Repo/name": name "/sourcerepo:v1/TestIamPermissionsResponse": test_iam_permissions_response "/sourcerepo:v1/TestIamPermissionsResponse/permissions": permissions "/sourcerepo:v1/TestIamPermissionsResponse/permissions/permission": permission @@ -36979,8 +36895,6 @@ "/sourcerepo:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/sourcerepo:v1/AuditLogConfig/logType": log_type "/sourcerepo:v1/Rule": rule -"/sourcerepo:v1/Rule/conditions": conditions -"/sourcerepo:v1/Rule/conditions/condition": condition "/sourcerepo:v1/Rule/logConfig": log_config "/sourcerepo:v1/Rule/logConfig/log_config": log_config "/sourcerepo:v1/Rule/in": in @@ -36991,24 +36905,64 @@ "/sourcerepo:v1/Rule/notIn": not_in "/sourcerepo:v1/Rule/notIn/not_in": not_in "/sourcerepo:v1/Rule/description": description +"/sourcerepo:v1/Rule/conditions": conditions +"/sourcerepo:v1/Rule/conditions/condition": condition "/sourcerepo:v1/LogConfig": log_config "/sourcerepo:v1/LogConfig/dataAccess": data_access "/sourcerepo:v1/LogConfig/cloudAudit": cloud_audit "/sourcerepo:v1/LogConfig/counter": counter +"/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 +"/sourcerepo:v1/Policy/version": version +"/sourcerepo:v1/Policy/auditConfigs": audit_configs +"/sourcerepo:v1/Policy/auditConfigs/audit_config": audit_config +"/sourcerepo:v1/Policy/bindings": bindings +"/sourcerepo:v1/Policy/bindings/binding": binding +"/sourcerepo:v1/DataAccessOptions": data_access_options +"/sourcerepo:v1/AuditConfig": audit_config +"/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/updateMask": update_mask +"/sourcerepo:v1/SetIamPolicyRequest/policy": policy +"/sourcerepo:v1/CloudAuditOptions": cloud_audit_options +"/sourcerepo:v1/Binding": binding +"/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/Repo": repo +"/sourcerepo:v1/Repo/url": url +"/sourcerepo:v1/Repo/size": size +"/sourcerepo:v1/Repo/name": name +"/sourcerepo:v1/Repo/mirrorConfig": mirror_config "/spanner:v1/fields": fields "/spanner:v1/key": key "/spanner:v1/quotaUser": quota_user "/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.setIamPolicy": set_instance_iam_policy -"/spanner:v1/spanner.projects.instances.setIamPolicy/resource": resource +"/spanner:v1/spanner.projects.instances.list/pageToken": page_token +"/spanner:v1/spanner.projects.instances.list/pageSize": page_size "/spanner:v1/spanner.projects.instances.create": create_instance "/spanner:v1/spanner.projects.instances.create/parent": parent +"/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.get": get_project_instance @@ -37017,6 +36971,16 @@ "/spanner:v1/spanner.projects.instances.patch/name": name "/spanner:v1/spanner.projects.instances.testIamPermissions": test_instance_iam_permissions "/spanner:v1/spanner.projects.instances.testIamPermissions/resource": resource +"/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 +"/spanner:v1/spanner.projects.instances.databases.list/parent": parent +"/spanner:v1/spanner.projects.instances.databases.list/pageToken": page_token +"/spanner:v1/spanner.projects.instances.databases.list/pageSize": page_size +"/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.create": create_database +"/spanner:v1/spanner.projects.instances.databases.create/parent": parent "/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 @@ -37027,37 +36991,17 @@ "/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.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 -"/spanner:v1/spanner.projects.instances.databases.list/pageToken": page_token -"/spanner:v1/spanner.projects.instances.databases.list/pageSize": page_size -"/spanner:v1/spanner.projects.instances.databases.list/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.create": create_database -"/spanner:v1/spanner.projects.instances.databases.create/parent": parent "/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.list/filter": filter "/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.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 @@ -37068,6 +37012,16 @@ "/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.executeSql": execute_session_sql +"/spanner:v1/spanner.projects.instances.databases.sessions.executeSql/session": session "/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 @@ -37085,60 +37039,24 @@ "/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/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/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/displayName": display_name -"/spanner:v1/PlanNode/kind": kind -"/spanner:v1/PlanNode/childLinks": child_links -"/spanner:v1/PlanNode/childLinks/child_link": child_link -"/spanner:v1/AuditConfig": audit_config -"/spanner:v1/AuditConfig/service": service -"/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/CreateInstanceMetadata": create_instance_metadata -"/spanner:v1/CreateInstanceMetadata/instance": instance -"/spanner:v1/CreateInstanceMetadata/startTime": start_time -"/spanner:v1/CreateInstanceMetadata/cancelTime": cancel_time -"/spanner:v1/CreateInstanceMetadata/endTime": end_time -"/spanner:v1/ChildLink": child_link -"/spanner:v1/ChildLink/childIndex": child_index -"/spanner:v1/ChildLink/variable": variable -"/spanner:v1/ChildLink/type": type -"/spanner:v1/CloudAuditOptions": cloud_audit_options -"/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/singleUseTransaction": single_use_transaction "/spanner:v1/CommitRequest/mutations": mutations "/spanner:v1/CommitRequest/mutations/mutation": mutation "/spanner:v1/CommitRequest/transactionId": transaction_id -"/spanner:v1/BeginTransactionRequest": begin_transaction_request -"/spanner:v1/BeginTransactionRequest/options": options -"/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/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/GetIamPolicyRequest": get_iam_policy_request "/spanner:v1/CreateDatabaseMetadata": create_database_metadata "/spanner:v1/CreateDatabaseMetadata/database": database "/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 @@ -37149,10 +37067,12 @@ "/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/LogConfig": log_config -"/spanner:v1/LogConfig/cloudAudit": cloud_audit "/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/ListInstancesResponse": list_instances_response @@ -37160,14 +37080,14 @@ "/spanner:v1/ListInstancesResponse/instances": instances "/spanner:v1/ListInstancesResponse/instances/instance": instance "/spanner:v1/KeyRange": key_range +"/spanner:v1/KeyRange/endClosed": end_closed +"/spanner:v1/KeyRange/endClosed/end_closed": end_closed "/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/ShortRepresentation": short_representation "/spanner:v1/ShortRepresentation/description": description "/spanner:v1/ShortRepresentation/subqueries": subqueries @@ -37183,31 +37103,31 @@ "/spanner:v1/TransactionOptions/readWrite": read_write "/spanner:v1/TransactionOptions/readOnly": read_only "/spanner:v1/CreateDatabaseRequest": create_database_request -"/spanner:v1/CreateDatabaseRequest/createStatement": create_statement "/spanner:v1/CreateDatabaseRequest/extraStatements": extra_statements "/spanner:v1/CreateDatabaseRequest/extraStatements/extra_statement": extra_statement +"/spanner:v1/CreateDatabaseRequest/createStatement": create_statement "/spanner:v1/CreateInstanceRequest": create_instance_request -"/spanner:v1/CreateInstanceRequest/instanceId": instance_id "/spanner:v1/CreateInstanceRequest/instance": instance +"/spanner:v1/CreateInstanceRequest/instanceId": instance_id "/spanner:v1/Condition": condition -"/spanner:v1/Condition/op": op "/spanner:v1/Condition/svc": svc "/spanner:v1/Condition/value": value "/spanner:v1/Condition/sys": sys "/spanner:v1/Condition/values": values "/spanner:v1/Condition/values/value": value "/spanner:v1/Condition/iam": iam +"/spanner:v1/Condition/op": op "/spanner:v1/AuditLogConfig": audit_log_config "/spanner:v1/AuditLogConfig/exemptedMembers": exempted_members "/spanner:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/spanner:v1/AuditLogConfig/logType": log_type "/spanner:v1/ReadOnly": read_only +"/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/ReadOnly/minReadTimestamp": min_read_timestamp "/spanner:v1/ExecuteSqlRequest": execute_sql_request "/spanner:v1/ExecuteSqlRequest/queryMode": query_mode "/spanner:v1/ExecuteSqlRequest/transaction": transaction @@ -37218,53 +37138,53 @@ "/spanner:v1/ExecuteSqlRequest/params": params "/spanner:v1/ExecuteSqlRequest/params/param": param "/spanner:v1/Policy": policy -"/spanner:v1/Policy/iamOwned": iam_owned -"/spanner:v1/Policy/rules": rules -"/spanner:v1/Policy/rules/rule": rule "/spanner:v1/Policy/version": version "/spanner:v1/Policy/auditConfigs": audit_configs "/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/Policy/rules": rules +"/spanner:v1/Policy/rules/rule": rule "/spanner:v1/ReadRequest": read_request +"/spanner:v1/ReadRequest/transaction": transaction +"/spanner:v1/ReadRequest/resumeToken": resume_token +"/spanner:v1/ReadRequest/table": table "/spanner:v1/ReadRequest/limit": limit "/spanner:v1/ReadRequest/index": index "/spanner:v1/ReadRequest/keySet": key_set "/spanner:v1/ReadRequest/columns": columns "/spanner:v1/ReadRequest/columns/column": column -"/spanner:v1/ReadRequest/transaction": transaction -"/spanner:v1/ReadRequest/resumeToken": resume_token -"/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/Write/table": table "/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 "/spanner:v1/Operation/response/response": response "/spanner:v1/Operation/name": name "/spanner:v1/Operation/error": error "/spanner:v1/Operation/metadata": metadata "/spanner:v1/Operation/metadata/metadatum": metadatum +"/spanner:v1/Operation/done": done "/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/ResultSet/stats": stats "/spanner:v1/Status": status -"/spanner:v1/Status/message": message "/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/Binding": binding "/spanner:v1/Binding/members": members "/spanner:v1/Binding/members/member": member @@ -37280,22 +37200,22 @@ "/spanner:v1/PartialResultSet/metadata": metadata "/spanner:v1/PartialResultSet/values": values "/spanner:v1/PartialResultSet/values/value": value -"/spanner:v1/ListOperationsResponse": list_operations_response -"/spanner:v1/ListOperationsResponse/nextPageToken": next_page_token -"/spanner:v1/ListOperationsResponse/operations": operations -"/spanner:v1/ListOperationsResponse/operations/operation": operation "/spanner:v1/UpdateInstanceMetadata": update_instance_metadata "/spanner:v1/UpdateInstanceMetadata/instance": instance "/spanner:v1/UpdateInstanceMetadata/startTime": start_time "/spanner:v1/UpdateInstanceMetadata/cancelTime": cancel_time "/spanner:v1/UpdateInstanceMetadata/endTime": end_time +"/spanner:v1/ListOperationsResponse": list_operations_response +"/spanner:v1/ListOperationsResponse/nextPageToken": next_page_token +"/spanner:v1/ListOperationsResponse/operations": operations +"/spanner:v1/ListOperationsResponse/operations/operation": operation "/spanner:v1/ResultSetMetadata": result_set_metadata "/spanner:v1/ResultSetMetadata/transaction": transaction "/spanner:v1/ResultSetMetadata/rowType": row_type "/spanner:v1/TransactionSelector": transaction_selector +"/spanner:v1/TransactionSelector/id": id "/spanner:v1/TransactionSelector/singleUse": single_use "/spanner:v1/TransactionSelector/begin": begin -"/spanner:v1/TransactionSelector/id": id "/spanner:v1/Mutation": mutation "/spanner:v1/Mutation/delete": delete "/spanner:v1/Mutation/insert": insert @@ -37303,33 +37223,33 @@ "/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/keys": keys "/spanner:v1/KeySet/keys/key": key "/spanner:v1/KeySet/keys/key/key": key "/spanner:v1/KeySet/all": all -"/spanner:v1/KeySet/ranges": ranges -"/spanner:v1/KeySet/ranges/range": range "/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/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/SetIamPolicyRequest": set_iam_policy_request -"/spanner:v1/SetIamPolicyRequest/updateMask": update_mask -"/spanner:v1/SetIamPolicyRequest/policy": policy "/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/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/Instance/name": name +"/spanner:v1/Instance/displayName": display_name "/spanner:v1/RollbackRequest": rollback_request "/spanner:v1/RollbackRequest/transactionId": transaction_id "/spanner:v1/Transaction": transaction @@ -37353,15 +37273,49 @@ "/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/queryPlan": query_plan "/spanner:v1/ResultSetStats/queryStats": query_stats "/spanner:v1/ResultSetStats/queryStats/query_stat": query_stat -"/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/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/displayName": display_name +"/spanner:v1/PlanNode/kind": kind +"/spanner:v1/PlanNode/childLinks": child_links +"/spanner:v1/PlanNode/childLinks/child_link": child_link +"/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/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/ChildLink": child_link +"/spanner:v1/ChildLink/childIndex": child_index +"/spanner:v1/ChildLink/variable": variable +"/spanner:v1/ChildLink/type": type +"/spanner:v1/CloudAuditOptions": cloud_audit_options +"/spanner:v1/Delete": delete +"/spanner:v1/Delete/table": table +"/spanner:v1/Delete/keySet": key_set "/speech:v1beta1/fields": fields "/speech:v1beta1/key": key "/speech:v1beta1/quotaUser": quota_user @@ -37376,44 +37330,29 @@ "/speech:v1beta1/speech.operations.list/filter": filter "/speech:v1beta1/speech.operations.get": get_operation "/speech:v1beta1/speech.operations.get/name": name -"/speech:v1beta1/Operation": operation -"/speech:v1beta1/Operation/response": response -"/speech:v1beta1/Operation/response/response": response -"/speech:v1beta1/Operation/name": name -"/speech:v1beta1/Operation/error": error -"/speech:v1beta1/Operation/metadata": metadata -"/speech:v1beta1/Operation/metadata/metadatum": metadatum -"/speech:v1beta1/Operation/done": done -"/speech:v1beta1/RecognitionConfig": recognition_config -"/speech:v1beta1/RecognitionConfig/encoding": encoding -"/speech:v1beta1/RecognitionConfig/profanityFilter": profanity_filter -"/speech:v1beta1/RecognitionConfig/speechContext": speech_context -"/speech:v1beta1/RecognitionConfig/maxAlternatives": max_alternatives -"/speech:v1beta1/RecognitionConfig/sampleRate": sample_rate -"/speech:v1beta1/RecognitionConfig/languageCode": language_code "/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/SyncRecognizeResponse": sync_recognize_response -"/speech:v1beta1/SyncRecognizeResponse/results": results -"/speech:v1beta1/SyncRecognizeResponse/results/result": result +"/speech:v1beta1/Status/message": message "/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/nextPageToken": next_page_token "/speech:v1beta1/ListOperationsResponse/operations": operations "/speech:v1beta1/ListOperationsResponse/operations/operation": operation +"/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 @@ -37423,6 +37362,21 @@ "/speech:v1beta1/RecognitionAudio": recognition_audio "/speech:v1beta1/RecognitionAudio/content": content "/speech:v1beta1/RecognitionAudio/uri": uri +"/speech:v1beta1/Operation": operation +"/speech:v1beta1/Operation/metadata": metadata +"/speech:v1beta1/Operation/metadata/metadatum": metadatum +"/speech:v1beta1/Operation/done": done +"/speech:v1beta1/Operation/response": response +"/speech:v1beta1/Operation/response/response": response +"/speech:v1beta1/Operation/name": name +"/speech:v1beta1/Operation/error": error +"/speech:v1beta1/RecognitionConfig": recognition_config +"/speech:v1beta1/RecognitionConfig/maxAlternatives": max_alternatives +"/speech:v1beta1/RecognitionConfig/languageCode": language_code +"/speech:v1beta1/RecognitionConfig/sampleRate": sample_rate +"/speech:v1beta1/RecognitionConfig/encoding": encoding +"/speech:v1beta1/RecognitionConfig/profanityFilter": profanity_filter +"/speech:v1beta1/RecognitionConfig/speechContext": speech_context "/sqladmin:v1beta4/fields": fields "/sqladmin:v1beta4/key": key "/sqladmin:v1beta4/quotaUser": quota_user @@ -38267,18 +38221,18 @@ "/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.transferJobs.list/filter": filter +"/storagetransfer:v1/storagetransfer.transferJobs.create": create_transfer_job +"/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 @@ -38292,53 +38246,71 @@ "/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.resume": resume_transfer_operation -"/storagetransfer:v1/storagetransfer.transferOperations.resume/name": name +"/storagetransfer:v1/storagetransfer.googleServiceAccounts.get": get_google_service_account +"/storagetransfer:v1/storagetransfer.googleServiceAccounts.get/projectId": project_id +"/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/TransferJob": transfer_job +"/storagetransfer:v1/TransferJob/status": status +"/storagetransfer:v1/TransferJob/schedule": schedule +"/storagetransfer:v1/TransferJob/name": name +"/storagetransfer:v1/TransferJob/deletionTime": deletion_time +"/storagetransfer:v1/TransferJob/projectId": project_id +"/storagetransfer:v1/TransferJob/lastModificationTime": last_modification_time +"/storagetransfer:v1/TransferJob/description": description +"/storagetransfer:v1/TransferJob/creationTime": creation_time +"/storagetransfer:v1/TransferJob/transferSpec": transfer_spec +"/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/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 -"/storagetransfer:v1/TransferOperation/counters": counters "/storagetransfer:v1/TransferOperation/status": status +"/storagetransfer:v1/TransferOperation/counters": counters "/storagetransfer:v1/TransferOperation/errorBreakdowns": error_breakdowns "/storagetransfer:v1/TransferOperation/errorBreakdowns/error_breakdown": error_breakdown "/storagetransfer:v1/TransferOperation/name": name "/storagetransfer:v1/TransferOperation/projectId": project_id +"/storagetransfer:v1/TransferOperation/endTime": end_time +"/storagetransfer:v1/TransferOperation/startTime": start_time "/storagetransfer:v1/AwsS3Data": aws_s3_data -"/storagetransfer:v1/AwsS3Data/bucketName": bucket_name "/storagetransfer:v1/AwsS3Data/awsAccessKey": aws_access_key +"/storagetransfer:v1/AwsS3Data/bucketName": bucket_name "/storagetransfer:v1/AwsAccessKey": aws_access_key "/storagetransfer:v1/AwsAccessKey/accessKeyId": access_key_id "/storagetransfer:v1/AwsAccessKey/secretAccessKey": secret_access_key "/storagetransfer:v1/Empty": empty "/storagetransfer:v1/PauseTransferOperationRequest": pause_transfer_operation_request "/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/objectsCopiedToSink": objects_copied_to_sink "/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/TransferCounters/objectsFoundFromSource": objects_found_from_source -"/storagetransfer:v1/TransferCounters/bytesDeletedFromSource": bytes_deleted_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/TransferCounters/bytesDeletedFromSink": bytes_deleted_from_sink -"/storagetransfer:v1/TransferCounters/bytesFailedToDeleteFromSink": bytes_failed_to_delete_from_sink "/storagetransfer:v1/ErrorSummary": error_summary +"/storagetransfer:v1/ErrorSummary/errorCode": error_code "/storagetransfer:v1/ErrorSummary/errorCount": error_count "/storagetransfer:v1/ErrorSummary/errorLogEntries": error_log_entries "/storagetransfer:v1/ErrorSummary/errorLogEntries/error_log_entry": error_log_entry -"/storagetransfer:v1/ErrorSummary/errorCode": error_code "/storagetransfer:v1/HttpData": http_data "/storagetransfer:v1/HttpData/listUrl": list_url "/storagetransfer:v1/GcsData": gcs_data @@ -38352,38 +38324,38 @@ "/storagetransfer:v1/UpdateTransferJobRequest/projectId": project_id "/storagetransfer:v1/UpdateTransferJobRequest/updateTransferJobFieldMask": update_transfer_job_field_mask "/storagetransfer:v1/ObjectConditions": object_conditions +"/storagetransfer:v1/ObjectConditions/maxTimeElapsedSinceLastModification": max_time_elapsed_since_last_modification "/storagetransfer:v1/ObjectConditions/includePrefixes": include_prefixes "/storagetransfer:v1/ObjectConditions/includePrefixes/include_prefix": include_prefix "/storagetransfer:v1/ObjectConditions/minTimeElapsedSinceLastModification": min_time_elapsed_since_last_modification "/storagetransfer:v1/ObjectConditions/excludePrefixes": exclude_prefixes "/storagetransfer:v1/ObjectConditions/excludePrefixes/exclude_prefix": exclude_prefix -"/storagetransfer:v1/ObjectConditions/maxTimeElapsedSinceLastModification": max_time_elapsed_since_last_modification "/storagetransfer:v1/Operation": operation +"/storagetransfer:v1/Operation/done": done "/storagetransfer:v1/Operation/response": response "/storagetransfer:v1/Operation/response/response": response "/storagetransfer:v1/Operation/name": name "/storagetransfer:v1/Operation/error": error "/storagetransfer:v1/Operation/metadata": metadata "/storagetransfer:v1/Operation/metadata/metadatum": metadatum -"/storagetransfer:v1/Operation/done": done -"/storagetransfer:v1/TransferSpec": transfer_spec -"/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/TransferSpec/transferOptions": transfer_options "/storagetransfer:v1/TransferOptions": transfer_options "/storagetransfer:v1/TransferOptions/overwriteObjectsAlreadyExistingInSink": overwrite_objects_already_existing_in_sink "/storagetransfer:v1/TransferOptions/deleteObjectsFromSourceAfterTransfer": delete_objects_from_source_after_transfer "/storagetransfer:v1/TransferOptions/deleteObjectsUniqueInSink": delete_objects_unique_in_sink +"/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/ResumeTransferOperationRequest": resume_transfer_operation_request "/storagetransfer:v1/Status": status +"/storagetransfer:v1/Status/code": code +"/storagetransfer:v1/Status/message": message "/storagetransfer:v1/Status/details": details "/storagetransfer:v1/Status/details/detail": detail "/storagetransfer:v1/Status/details/detail/detail": detail -"/storagetransfer:v1/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 @@ -38391,28 +38363,10 @@ "/storagetransfer:v1/GoogleServiceAccount": google_service_account "/storagetransfer:v1/GoogleServiceAccount/accountEmail": account_email "/storagetransfer:v1/TimeOfDay": time_of_day -"/storagetransfer:v1/TimeOfDay/minutes": minutes "/storagetransfer:v1/TimeOfDay/hours": hours "/storagetransfer:v1/TimeOfDay/nanos": nanos "/storagetransfer:v1/TimeOfDay/seconds": seconds -"/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/TransferJob": transfer_job -"/storagetransfer:v1/TransferJob/schedule": schedule -"/storagetransfer:v1/TransferJob/name": name -"/storagetransfer:v1/TransferJob/deletionTime": deletion_time -"/storagetransfer:v1/TransferJob/projectId": project_id -"/storagetransfer:v1/TransferJob/lastModificationTime": last_modification_time -"/storagetransfer:v1/TransferJob/description": description -"/storagetransfer:v1/TransferJob/creationTime": creation_time -"/storagetransfer:v1/TransferJob/transferSpec": transfer_spec -"/storagetransfer:v1/TransferJob/status": status -"/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/TimeOfDay/minutes": minutes "/surveys:v2/fields": fields "/surveys:v2/key": key "/surveys:v2/quotaUser": quota_user @@ -39944,9 +39898,12 @@ "/toolresults:v1beta3/ToolOutputReference/creationTime": creation_time "/toolresults:v1beta3/ToolOutputReference/output": output "/toolresults:v1beta3/ToolOutputReference/testCase": test_case +"/tracing:v1/fields": fields "/tracing:v1/key": key "/tracing:v1/quotaUser": quota_user -"/tracing:v1/fields": fields +"/tracing:v1/tracing.projects.traces.listSpans": list_project_trace_spans +"/tracing:v1/tracing.projects.traces.listSpans/name": name +"/tracing:v1/tracing.projects.traces.listSpans/pageToken": page_token "/tracing:v1/tracing.projects.traces.list": list_project_traces "/tracing:v1/tracing.projects.traces.list/filter": filter "/tracing:v1/tracing.projects.traces.list/endTime": end_time @@ -39959,26 +39916,23 @@ "/tracing:v1/tracing.projects.traces.get/name": name "/tracing:v1/tracing.projects.traces.batchUpdate": batch_trace_update_spans "/tracing:v1/tracing.projects.traces.batchUpdate/parent": parent -"/tracing:v1/tracing.projects.traces.listSpans": list_project_trace_spans -"/tracing:v1/tracing.projects.traces.listSpans/name": name -"/tracing:v1/tracing.projects.traces.listSpans/pageToken": page_token "/tracing:v1/Trace": trace "/tracing:v1/Trace/name": name "/tracing:v1/Module": module -"/tracing:v1/Module/module": module "/tracing:v1/Module/buildId": build_id +"/tracing:v1/Module/module": module "/tracing:v1/Status": status +"/tracing:v1/Status/code": code "/tracing:v1/Status/message": message "/tracing:v1/Status/details": details "/tracing:v1/Status/details/detail": detail "/tracing:v1/Status/details/detail/detail": detail -"/tracing:v1/Status/code": code +"/tracing:v1/Empty": empty "/tracing:v1/ListTracesResponse": list_traces_response "/tracing:v1/ListTracesResponse/traces": traces "/tracing:v1/ListTracesResponse/traces/trace": trace "/tracing:v1/ListTracesResponse/nextPageToken": next_page_token "/tracing:v1/Span": span -"/tracing:v1/Span/hasRemoteParent": has_remote_parent "/tracing:v1/Span/localEndTime": local_end_time "/tracing:v1/Span/parentId": parent_id "/tracing:v1/Span/timeEvents": time_events @@ -39992,11 +39946,11 @@ "/tracing:v1/Span/attributes/attribute": attribute "/tracing:v1/Span/id": id "/tracing:v1/Span/localStartTime": local_start_time -"/tracing:v1/Empty": empty +"/tracing:v1/Span/hasRemoteParent": has_remote_parent "/tracing:v1/AttributeValue": attribute_value -"/tracing:v1/AttributeValue/intValue": int_value "/tracing:v1/AttributeValue/stringValue": string_value "/tracing:v1/AttributeValue/boolValue": bool_value +"/tracing:v1/AttributeValue/intValue": int_value "/tracing:v1/BatchUpdateSpansRequest": batch_update_spans_request "/tracing:v1/BatchUpdateSpansRequest/spanUpdates": span_updates "/tracing:v1/BatchUpdateSpansRequest/spanUpdates/span_update": span_update @@ -40005,37 +39959,37 @@ "/tracing:v1/StackTrace/stackFrame/stack_frame": stack_frame "/tracing:v1/StackTrace/stackTraceHashId": stack_trace_hash_id "/tracing:v1/TimeEvent": time_event -"/tracing:v1/TimeEvent/localTime": local_time "/tracing:v1/TimeEvent/networkEvent": network_event "/tracing:v1/TimeEvent/annotation": annotation +"/tracing:v1/TimeEvent/localTime": local_time "/tracing:v1/NetworkEvent": network_event +"/tracing:v1/NetworkEvent/messageSize": message_size "/tracing:v1/NetworkEvent/kernelTime": kernel_time "/tracing:v1/NetworkEvent/type": type "/tracing:v1/NetworkEvent/messageId": message_id -"/tracing:v1/NetworkEvent/messageSize": message_size +"/tracing:v1/ListSpansResponse": list_spans_response +"/tracing:v1/ListSpansResponse/spans": spans +"/tracing:v1/ListSpansResponse/spans/span": span +"/tracing:v1/ListSpansResponse/nextPageToken": next_page_token "/tracing:v1/SpanUpdates": span_updates "/tracing:v1/SpanUpdates/spans": spans "/tracing:v1/SpanUpdates/spans/span": span -"/tracing:v1/ListSpansResponse": list_spans_response -"/tracing:v1/ListSpansResponse/nextPageToken": next_page_token -"/tracing:v1/ListSpansResponse/spans": spans -"/tracing:v1/ListSpansResponse/spans/span": span "/tracing:v1/StackFrame": stack_frame +"/tracing:v1/StackFrame/fileName": file_name +"/tracing:v1/StackFrame/sourceVersion": source_version +"/tracing:v1/StackFrame/originalFunctionName": original_function_name "/tracing:v1/StackFrame/functionName": function_name "/tracing:v1/StackFrame/lineNumber": line_number "/tracing:v1/StackFrame/loadModule": load_module "/tracing:v1/StackFrame/columnNumber": column_number -"/tracing:v1/StackFrame/fileName": file_name -"/tracing:v1/StackFrame/sourceVersion": source_version -"/tracing:v1/StackFrame/originalFunctionName": original_function_name "/tracing:v1/Link": link "/tracing:v1/Link/type": type "/tracing:v1/Link/traceId": trace_id "/tracing:v1/Link/spanId": span_id "/tracing:v1/Annotation": annotation +"/tracing:v1/Annotation/description": description "/tracing:v1/Annotation/attributes": attributes "/tracing:v1/Annotation/attributes/attribute": attribute -"/tracing:v1/Annotation/description": description "/translate:v2/fields": fields "/translate:v2/key": key "/translate:v2/quotaUser": quota_user @@ -40116,120 +40070,6 @@ "/vision:v1/fields": fields "/vision:v1/key": key "/vision:v1/vision.images.annotate": annotate_image -"/vision:v1/FaceAnnotation": face_annotation -"/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 -"/vision:v1/FaceAnnotation/rollAngle": roll_angle -"/vision:v1/FaceAnnotation/sorrowLikelihood": sorrow_likelihood -"/vision:v1/FaceAnnotation/tiltAngle": tilt_angle -"/vision:v1/FaceAnnotation/fdBoundingPoly": fd_bounding_poly -"/vision:v1/FaceAnnotation/angerLikelihood": anger_likelihood -"/vision:v1/FaceAnnotation/landmarks": landmarks -"/vision:v1/FaceAnnotation/landmarks/landmark": landmark -"/vision:v1/FaceAnnotation/surpriseLikelihood": surprise_likelihood -"/vision:v1/FaceAnnotation/joyLikelihood": joy_likelihood -"/vision:v1/FaceAnnotation/landmarkingConfidence": landmarking_confidence -"/vision:v1/BatchAnnotateImagesRequest": batch_annotate_images_request -"/vision:v1/BatchAnnotateImagesRequest/requests": requests -"/vision:v1/BatchAnnotateImagesRequest/requests/request": request -"/vision:v1/DetectedBreak": detected_break -"/vision:v1/DetectedBreak/type": type -"/vision:v1/DetectedBreak/isPrefix": is_prefix -"/vision:v1/ImageContext": image_context -"/vision:v1/ImageContext/latLongRect": lat_long_rect -"/vision:v1/ImageContext/cropHintsParams": crop_hints_params -"/vision:v1/ImageContext/languageHints": language_hints -"/vision:v1/ImageContext/languageHints/language_hint": language_hint -"/vision:v1/Page": page -"/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/imageContext": image_context -"/vision:v1/Status": status -"/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/Symbol": symbol -"/vision:v1/Symbol/boundingBox": bounding_box -"/vision:v1/Symbol/text": text -"/vision:v1/Symbol/property": property -"/vision:v1/LatLongRect": lat_long_rect -"/vision:v1/LatLongRect/minLatLng": min_lat_lng -"/vision:v1/LatLongRect/maxLatLng": max_lat_lng -"/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/longitude": longitude -"/vision:v1/LatLng/latitude": latitude -"/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/Feature": feature -"/vision:v1/Feature/type": type -"/vision:v1/Feature/maxResults": max_results -"/vision:v1/ImageProperties": image_properties -"/vision:v1/ImageProperties/dominantColors": dominant_colors -"/vision:v1/SafeSearchAnnotation": safe_search_annotation -"/vision:v1/SafeSearchAnnotation/spoof": spoof -"/vision:v1/SafeSearchAnnotation/medical": medical -"/vision:v1/SafeSearchAnnotation/violence": violence -"/vision:v1/SafeSearchAnnotation/adult": adult -"/vision:v1/DominantColorsAnnotation": dominant_colors_annotation -"/vision:v1/DominantColorsAnnotation/colors": colors -"/vision:v1/DominantColorsAnnotation/colors/color": color -"/vision:v1/TextAnnotation": text_annotation -"/vision:v1/TextAnnotation/pages": pages -"/vision:v1/TextAnnotation/pages/page": page -"/vision:v1/TextAnnotation/text": text -"/vision:v1/Vertex": vertex -"/vision:v1/Vertex/y": y -"/vision:v1/Vertex/x": x -"/vision:v1/DetectedLanguage": detected_language -"/vision:v1/DetectedLanguage/languageCode": language_code -"/vision:v1/DetectedLanguage/confidence": confidence -"/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/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/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/logoAnnotations": logo_annotations -"/vision:v1/AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation -"/vision:v1/AnnotateImageResponse/webDetection": web_detection -"/vision:v1/AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation -"/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/CropHintsParams": crop_hints_params "/vision:v1/CropHintsParams/aspectRatios": aspect_ratios "/vision:v1/CropHintsParams/aspectRatios/aspect_ratio": aspect_ratio @@ -40245,6 +40085,12 @@ "/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 @@ -40256,12 +40102,6 @@ "/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/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/Position": position "/vision:v1/Position/y": y "/vision:v1/Position/x": x @@ -40271,20 +40111,20 @@ "/vision:v1/ColorInfo/color": color "/vision:v1/ColorInfo/score": score "/vision:v1/WebPage": web_page -"/vision:v1/WebPage/score": score "/vision:v1/WebPage/url": url +"/vision:v1/WebPage/score": score "/vision:v1/EntityAnnotation": entity_annotation -"/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/EntityAnnotation/mid": mid "/vision:v1/EntityAnnotation/confidence": confidence -"/vision:v1/EntityAnnotation/locale": locale "/vision:v1/EntityAnnotation/boundingPoly": bounding_poly +"/vision:v1/EntityAnnotation/locale": locale "/vision:v1/EntityAnnotation/description": description "/vision:v1/EntityAnnotation/topicality": topicality +"/vision:v1/EntityAnnotation/properties": properties +"/vision:v1/EntityAnnotation/properties/property": property +"/vision:v1/EntityAnnotation/score": score "/vision:v1/CropHint": crop_hint "/vision:v1/CropHint/confidence": confidence "/vision:v1/CropHint/importanceFraction": importance_fraction @@ -40296,18 +40136,132 @@ "/vision:v1/WebImage/score": score "/vision:v1/WebImage/url": url "/vision:v1/Word": word -"/vision:v1/Word/property": property "/vision:v1/Word/boundingBox": bounding_box "/vision:v1/Word/symbols": symbols "/vision:v1/Word/symbols/symbol": symbol +"/vision:v1/Word/property": property "/vision:v1/Image": image "/vision:v1/Image/content": content "/vision:v1/Image/source": source "/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/Paragraph/property": property +"/vision:v1/FaceAnnotation": face_annotation +"/vision:v1/FaceAnnotation/fdBoundingPoly": fd_bounding_poly +"/vision:v1/FaceAnnotation/angerLikelihood": anger_likelihood +"/vision:v1/FaceAnnotation/landmarks": landmarks +"/vision:v1/FaceAnnotation/landmarks/landmark": landmark +"/vision:v1/FaceAnnotation/surpriseLikelihood": surprise_likelihood +"/vision:v1/FaceAnnotation/landmarkingConfidence": landmarking_confidence +"/vision:v1/FaceAnnotation/joyLikelihood": joy_likelihood +"/vision:v1/FaceAnnotation/detectionConfidence": detection_confidence +"/vision:v1/FaceAnnotation/panAngle": pan_angle +"/vision:v1/FaceAnnotation/underExposedLikelihood": under_exposed_likelihood +"/vision:v1/FaceAnnotation/blurredLikelihood": blurred_likelihood +"/vision:v1/FaceAnnotation/headwearLikelihood": headwear_likelihood +"/vision:v1/FaceAnnotation/boundingPoly": bounding_poly +"/vision:v1/FaceAnnotation/rollAngle": roll_angle +"/vision:v1/FaceAnnotation/sorrowLikelihood": sorrow_likelihood +"/vision:v1/FaceAnnotation/tiltAngle": tilt_angle +"/vision:v1/BatchAnnotateImagesRequest": batch_annotate_images_request +"/vision:v1/BatchAnnotateImagesRequest/requests": requests +"/vision:v1/BatchAnnotateImagesRequest/requests/request": request +"/vision:v1/DetectedBreak": detected_break +"/vision:v1/DetectedBreak/type": type +"/vision:v1/DetectedBreak/isPrefix": is_prefix +"/vision:v1/ImageContext": image_context +"/vision:v1/ImageContext/latLongRect": lat_long_rect +"/vision:v1/ImageContext/cropHintsParams": crop_hints_params +"/vision:v1/ImageContext/languageHints": language_hints +"/vision:v1/ImageContext/languageHints/language_hint": language_hint +"/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/AnnotateImageRequest": annotate_image_request +"/vision:v1/AnnotateImageRequest/imageContext": image_context +"/vision:v1/AnnotateImageRequest/image": image +"/vision:v1/AnnotateImageRequest/features": features +"/vision:v1/AnnotateImageRequest/features/feature": feature +"/vision:v1/Status": status +"/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/property": property +"/vision:v1/Symbol/boundingBox": bounding_box +"/vision:v1/Symbol/text": text +"/vision:v1/LatLongRect": lat_long_rect +"/vision:v1/LatLongRect/minLatLng": min_lat_lng +"/vision:v1/LatLongRect/maxLatLng": max_lat_lng +"/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/red": red +"/vision:v1/Color/green": green +"/vision:v1/Color/blue": blue +"/vision:v1/Color/alpha": alpha +"/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/violence": violence +"/vision:v1/SafeSearchAnnotation/adult": adult +"/vision:v1/SafeSearchAnnotation/spoof": spoof +"/vision:v1/SafeSearchAnnotation/medical": medical +"/vision:v1/DominantColorsAnnotation": dominant_colors_annotation +"/vision:v1/DominantColorsAnnotation/colors": colors +"/vision:v1/DominantColorsAnnotation/colors/color": color +"/vision:v1/TextAnnotation": text_annotation +"/vision:v1/TextAnnotation/pages": pages +"/vision:v1/TextAnnotation/pages/page": page +"/vision:v1/TextAnnotation/text": text +"/vision:v1/DetectedLanguage": detected_language +"/vision:v1/DetectedLanguage/languageCode": language_code +"/vision:v1/DetectedLanguage/confidence": confidence +"/vision:v1/Vertex": vertex +"/vision:v1/Vertex/y": y +"/vision:v1/Vertex/x": x +"/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/BoundingPoly": bounding_poly +"/vision:v1/BoundingPoly/vertices": vertices +"/vision:v1/BoundingPoly/vertices/vertex": vertex +"/vision:v1/WebEntity": web_entity +"/vision:v1/WebEntity/entityId": entity_id +"/vision:v1/WebEntity/description": description +"/vision:v1/WebEntity/score": score +"/vision:v1/AnnotateImageResponse": annotate_image_response +"/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/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 "/webfonts:v1/fields": fields "/webfonts:v1/key": key "/webfonts:v1/quotaUser": quota_user @@ -42039,14 +41993,9 @@ "/youtubeAnalytics:v1/ResultTable/rows": rows "/youtubeAnalytics:v1/ResultTable/rows/row": row "/youtubeAnalytics:v1/ResultTable/rows/row/row": row +"/youtubereporting:v1/key": key "/youtubereporting:v1/quotaUser": quota_user "/youtubereporting:v1/fields": fields -"/youtubereporting:v1/key": key -"/youtubereporting:v1/youtubereporting.reportTypes.list": list_report_types -"/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/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 @@ -42063,49 +42012,54 @@ "/youtubereporting:v1/youtubereporting.jobs.delete/jobId": job_id "/youtubereporting:v1/youtubereporting.jobs.delete/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubereporting:v1/youtubereporting.jobs.reports.list": list_job_reports +"/youtubereporting:v1/youtubereporting.jobs.reports.list/jobId": job_id "/youtubereporting:v1/youtubereporting.jobs.reports.list/createdAfter": created_after "/youtubereporting:v1/youtubereporting.jobs.reports.list/startTimeAtOrAfter": start_time_at_or_after "/youtubereporting:v1/youtubereporting.jobs.reports.list/pageToken": page_token "/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.list/jobId": job_id "/youtubereporting:v1/youtubereporting.jobs.reports.get": get_job_report "/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.get/reportId": report_id +"/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/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/jobExpireTime": job_expire_time "/youtubereporting:v1/Report/downloadUrl": download_url "/youtubereporting:v1/Report/startTime": start_time +"/youtubereporting:v1/Report/createTime": create_time "/youtubereporting:v1/Empty": empty -"/youtubereporting:v1/ListReportTypesResponse": list_report_types_response -"/youtubereporting:v1/ListReportTypesResponse/reportTypes": report_types -"/youtubereporting:v1/ListReportTypesResponse/reportTypes/report_type": report_type -"/youtubereporting:v1/ListReportTypesResponse/nextPageToken": next_page_token "/youtubereporting:v1/ReportType": report_type "/youtubereporting:v1/ReportType/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/nextPageToken": next_page_token +"/youtubereporting:v1/ListReportTypesResponse/reportTypes": report_types +"/youtubereporting:v1/ListReportTypesResponse/reportTypes/report_type": report_type "/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/ListJobsResponse/nextPageToken": next_page_token "/youtubereporting:v1/Job": job -"/youtubereporting:v1/Job/id": id -"/youtubereporting:v1/Job/systemManaged": system_managed -"/youtubereporting:v1/Job/createTime": create_time "/youtubereporting:v1/Job/expireTime": expire_time "/youtubereporting:v1/Job/reportTypeId": report_type_id "/youtubereporting:v1/Job/name": name +"/youtubereporting:v1/Job/systemManaged": system_managed +"/youtubereporting:v1/Job/id": id +"/youtubereporting:v1/Job/createTime": create_time "/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/ListReportsResponse/nextPageToken": next_page_token "/youtubereporting:v1/Media": media "/youtubereporting:v1/Media/resourceName": resource_name diff --git a/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb b/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb index f48861cf0..0d5284311 100644 --- a/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +++ b/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb @@ -22,6 +22,66 @@ module Google module Apis module AcceleratedmobilepageurlV1 + # 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) + end + end + + # AMP URL response for a requested URL. + class AmpUrl + include Google::Apis::Core::Hashable + + # The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to + # the cached document in the Google AMP Cache. + # Corresponds to the JSON property `cdnAmpUrl` + # @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 + + def initialize(**args) + update!(**args) + end + + # 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) + end + end + # AMP URL Error resource for a requested URL that couldn't be found. class AmpUrlError include Google::Apis::Core::Hashable @@ -79,66 +139,6 @@ module Google @lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy) 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) - end - end - - # AMP URL response for a requested URL. - class AmpUrl - include Google::Apis::Core::Hashable - - # 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 [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to - # the cached document in the Google AMP Cache. - # Corresponds to the JSON property `cdnAmpUrl` - # @return [String] - attr_accessor :cdn_amp_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @original_url = args[:original_url] if args.key?(:original_url) - @amp_url = args[:amp_url] if args.key?(:amp_url) - @cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url) - end - end end end end diff --git a/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb b/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb index 9a45bff1d..f56df38d9 100644 --- a/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +++ b/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb @@ -22,6 +22,18 @@ 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 + + include Google::Apis::Core::JsonObjectSupport + end + class AmpUrlError class Representation < Google::Apis::Core::JsonRepresentation; end @@ -35,15 +47,22 @@ module Google end class BatchGetAmpUrlsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation - include Google::Apis::Core::JsonObjectSupport + collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation + + end end class AmpUrl - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cdn_amp_url, as: 'cdnAmpUrl' + property :original_url, as: 'originalUrl' + property :amp_url, as: 'ampUrl' + end end class AmpUrlError @@ -62,25 +81,6 @@ module Google property :lookup_strategy, as: 'lookupStrategy' 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 - - end - end - - class AmpUrl - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :original_url, as: 'originalUrl' - property :amp_url, as: 'ampUrl' - property :cdn_amp_url, as: 'cdnAmpUrl' - end - end end end end diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index a0023fd94..85d1eddcb 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 = '20170329' + REVISION = '20170330' # 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 828241462..050c0d99e 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb @@ -22,616 +22,15 @@ module Google module Apis module Adexchangebuyer2V2beta1 - # 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 request for watching changes to creative Status. - class WatchCreativeRequest - include Google::Apis::Core::Hashable - - # The Pub/Sub topic to publish notifications to. - # This topic must already exist and must give permission to - # ad-exchange-buyside-reports@google.com to write to the topic. - # This should be the full resource name in - # "projects/`project_id`/topics/`topic_id`" format. - # 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) - end - end - - # @OutputOnly The app type the restriction applies to for mobile device. - class AppContext - include Google::Apis::Core::Hashable - - # The app types this restriction applies to. - # Corresponds to the JSON property `appTypes` - # @return [Array] - attr_accessor :app_types - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @app_types = args[:app_types] if args.key?(:app_types) - end - end - - # - class ListClientsResponse - include Google::Apis::Core::Hashable - - # A token to retrieve the next page of results. - # Pass this value in the - # ListClientsRequest.pageToken - # field in the subsequent call to the - # accounts.clients.list method - # to retrieve the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The returned list of clients. - # Corresponds to the JSON property `clients` - # @return [Array] - attr_accessor :clients - - 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) - @clients = args[:clients] if args.key?(:clients) - end - end - - # Native content for a creative. - class NativeContent - include Google::Apis::Core::Hashable - - # The URL to the app store to purchase/download the promoted app. - # Corresponds to the JSON property `storeUrl` - # @return [String] - attr_accessor :store_url - - # A short title for the ad. - # Corresponds to the JSON property `headline` - # @return [String] - attr_accessor :headline - - # 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 `appIcon` - # @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 - - # A long description of the ad. - # Corresponds to the JSON property `body` - # @return [String] - attr_accessor :body - - # The app rating in the app store. Must be in the range [0-5]. - # Corresponds to the JSON property `starRating` - # @return [Float] - attr_accessor :star_rating - - # The URL to fetch a native video ad. - # Corresponds to the JSON property `videoUrl` - # @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 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 name of the advertiser or sponsor, to be displayed in the ad creative. - # Corresponds to the JSON property `advertiserName` - # @return [String] - attr_accessor :advertiser_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @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) - @price_display_text = args[:price_display_text] if args.key?(:price_display_text) - @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) - end - end - - # @OutputOnly A security context. - class SecurityContext - include Google::Apis::Core::Hashable - - # The security types in this context. - # Corresponds to the JSON property `securities` - # @return [Array] - attr_accessor :securities - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @securities = args[:securities] if args.key?(:securities) - 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 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 - - # The height of the HTML snippet 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) - @width = args[:width] if args.key?(:width) - @snippet = args[:snippet] if args.key?(:snippet) - @height = args[:height] if args.key?(:height) - end - end - - # The serving context for this restriction. - class ServingContext - include Google::Apis::Core::Hashable - - # @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] - attr_accessor :location - - # @OutputOnly The auction type the restriction applies to. - # Corresponds to the JSON property `auctionType` - # @return [Google::Apis::Adexchangebuyer2V2beta1::AuctionContext] - attr_accessor :auction_type - - # Matches all contexts. - # Corresponds to the JSON property `all` - # @return [String] - attr_accessor :all - - # @OutputOnly The app type the restriction applies to for mobile device. - # Corresponds to the JSON property `appType` - # @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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - end - end - - # An image resource. You may provide a larger image than was requested, - # so long as the aspect ratio is preserved. - class Image - include Google::Apis::Core::Hashable - - # Image width in pixels. - # Corresponds to the JSON property `width` - # @return [Fixnum] - attr_accessor :width - - # The URL of the image. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # Image 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) - @width = args[:width] if args.key?(:width) - @url = args[:url] if args.key?(:url) - @height = args[:height] if args.key?(:height) - end - end - - # A specific filtering status and how many times it occurred. - class Reason - include Google::Apis::Core::Hashable - - # The number of times the creative was filtered for the status. The - # count is aggregated across all publishers on the exchange. - # Corresponds to the JSON property `count` - # @return [String] - attr_accessor :count - - # The filtering status code. Please refer to the - # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb- - # dictionaries/creative-status-codes.txt) - # file for different statuses. - # Corresponds to the JSON property `status` - # @return [Fixnum] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @count = args[:count] if args.key?(:count) - @status = args[:status] if args.key?(:status) - 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 - - # An invitation for a new client user to get access to the Ad Exchange - # Buyer UI. - # All fields are required unless otherwise specified. - 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. - # Corresponds to the JSON property `clientAccountId` - # @return [String] - attr_accessor :client_account_id - - # The unique numerical ID of the invitation that is sent to the user. - # The value of this field is ignored in create operations. - # Corresponds to the JSON property `invitationId` - # @return [String] - attr_accessor :invitation_id - - 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) - end - end - - # @OutputOnly The auction type the restriction applies to. - class AuctionContext - include Google::Apis::Core::Hashable - - # The auction types this restriction applies to. - # Corresponds to the JSON property `auctionTypes` - # @return [Array] - attr_accessor :auction_types - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @auction_types = args[:auction_types] if args.key?(:auction_types) - end - end - - # - class ListClientUsersResponse - include Google::Apis::Core::Hashable - - # A token to retrieve the next page of results. - # Pass this value in the - # ListClientUsersRequest.pageToken - # field in the subsequent call to the - # clients.invitations.list - # method to retrieve the next - # page of results. - # Corresponds to the JSON property `nextPageToken` - # @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) - end - end - - # - class ListClientUserInvitationsResponse - include Google::Apis::Core::Hashable - - # A token to retrieve the next page of results. - # Pass this value in the - # ListClientUserInvitationsRequest.pageToken - # field in the subsequent call to the - # clients.invitations.list - # method to retrieve the next - # page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The returned list of client users. - # 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 - - # @OutputOnly The Geo criteria the restriction applies to. - class LocationContext - include Google::Apis::Core::Hashable - - # IDs representing the geo location for this context. - # Please refer to the - # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table. - # csv) - # file for different geo criteria IDs. - # Corresponds to the JSON property `geoCriteriaIds` - # @return [Array] - attr_accessor :geo_criteria_ids - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @geo_criteria_ids = args[:geo_criteria_ids] if args.key?(:geo_criteria_ids) - end - end - - # @OutputOnly The type of platform the restriction applies to. - class PlatformContext - include Google::Apis::Core::Hashable - - # The platforms this restriction applies to. - # Corresponds to the JSON property `platforms` - # @return [Array] - attr_accessor :platforms - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @platforms = args[:platforms] if args.key?(:platforms) - end - end - - # A client user is created under a client buyer and has restricted access to - # the Ad Exchange Marketplace and certain other sections - # of the Ad Exchange Buyer UI based on the role - # granted to the associated client buyer. - # The only way a new client user can be created is via accepting an - # email invitation - # (see the - # accounts.clients.invitations.create - # method). - # All fields are required unless otherwise specified. - class ClientUser - include Google::Apis::Core::Hashable - - # The unique numerical ID of the client user - # that has accepted an invitation. - # The value of this field is ignored in an update operation. - # Corresponds to the JSON property `userId` - # @return [String] - 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. - # The value of this field is ignored in an update operation. - # Corresponds to the JSON property `clientAccountId` - # @return [String] - attr_accessor :client_account_id - - # The status of the client user. - # 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) - @user_id = args[:user_id] if args.key?(:user_id) - @email = args[:email] if args.key?(:email) - @client_account_id = args[:client_account_id] if args.key?(:client_account_id) - @status = args[:status] if args.key?(:status) - end - end - # The association between a creative and a deal. class CreativeDealAssociation include Google::Apis::Core::Hashable + # The externalDealId for the deal associated with the creative. + # Corresponds to the JSON property `dealsId` + # @return [String] + attr_accessor :deals_id + # The account the creative belongs to. # Corresponds to the JSON property `accountId` # @return [String] @@ -642,52 +41,15 @@ module Google # @return [String] attr_accessor :creative_id - # The externalDealId for the deal associated with the creative. - # Corresponds to the JSON property `dealsId` - # @return [String] - attr_accessor :deals_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @deals_id = args[:deals_id] if args.key?(:deals_id) @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) - end - end - - # @OutputOnly Filtering reasons for this creative during a period of a single - # day (from midnight to midnight Pacific). - class FilteringStats - 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 `date` - # @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) - @date = args[:date] if args.key?(:date) - @reasons = args[:reasons] if args.key?(:reasons) end end @@ -695,6 +57,32 @@ module Google class Creative include Google::Apis::Core::Hashable + # The account that this creative belongs to. + # Can be used to filter the response of the + # creatives.list + # method. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # Native content for a creative. + # Corresponds to the JSON property `native` + # @return [Google::Apis::Adexchangebuyer2V2beta1::NativeContent] + attr_accessor :native + + # @OutputOnly The granular status of this ad in specific contexts. + # A context here relates to where something ultimately serves (for example, + # a physical location, a platform, an HTTPS vs HTTP request, or the type + # of auction). + # Corresponds to the JSON property `servingRestrictions` + # @return [Array] + attr_accessor :serving_restrictions + + # Video content for a creative. + # Corresponds to the JSON property `video` + # @return [Google::Apis::Adexchangebuyer2V2beta1::VideoContent] + attr_accessor :video + # The agency ID for this creative. # Corresponds to the JSON property `agencyId` # @return [String] @@ -832,38 +220,16 @@ module Google # @return [String] attr_accessor :creative_id - # The account that this creative belongs to. - # Can be used to filter the response of the - # creatives.list - # method. - # Corresponds to the JSON property `accountId` - # @return [String] - attr_accessor :account_id - - # Native content for a creative. - # Corresponds to the JSON property `native` - # @return [Google::Apis::Adexchangebuyer2V2beta1::NativeContent] - attr_accessor :native - - # Video content for a creative. - # Corresponds to the JSON property `video` - # @return [Google::Apis::Adexchangebuyer2V2beta1::VideoContent] - attr_accessor :video - - # @OutputOnly The granular status of this ad in specific contexts. - # A context here relates to where something ultimately serves (for example, - # a physical location, a platform, an HTTPS vs HTTP request, or the type - # of auction). - # Corresponds to the JSON property `servingRestrictions` - # @return [Array] - attr_accessor :serving_restrictions - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @native = args[:native] if args.key?(:native) + @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions) + @video = args[:video] if args.key?(:video) @agency_id = args[:agency_id] if args.key?(:agency_id) @click_through_urls = args[:click_through_urls] if args.key?(:click_through_urls) @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url) @@ -885,10 +251,38 @@ module Google @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) - @video = args[:video] if args.key?(:video) - @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions) + end + end + + # @OutputOnly Filtering reasons for this creative during a period of a single + # day (from midnight to midnight Pacific). + 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 + # 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 `date` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Date] + attr_accessor :date + + 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) end end @@ -921,27 +315,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] @@ -984,20 +357,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 @@ -1005,11 +399,6 @@ module Google class Correction include Google::Apis::Core::Hashable - # The contexts for the correction. - # Corresponds to the JSON property `contexts` - # @return [Array] - attr_accessor :contexts - # Additional details about what was corrected. # Corresponds to the JSON property `details` # @return [Array] @@ -1020,15 +409,39 @@ module Google # @return [String] attr_accessor :type + # The contexts for the correction. + # Corresponds to the JSON property `contexts` + # @return [Array] + attr_accessor :contexts + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @contexts = args[:contexts] if args.key?(:contexts) @details = args[:details] if args.key?(:details) @type = args[:type] if args.key?(:type) + @contexts = args[:contexts] if args.key?(:contexts) + end + end + + # A request for associating a deal and a creative. + class AddDealAssociationRequest + include Google::Apis::Core::Hashable + + # The association between a creative and a deal. + # Corresponds to the JSON property `association` + # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation] + attr_accessor :association + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @association = args[:association] if args.key?(:association) end end @@ -1061,38 +474,6 @@ module Google end end - # A request for associating a deal and a creative. - class AddDealAssociationRequest - include Google::Apis::Core::Hashable - - # The association between a creative and a deal. - # Corresponds to the JSON property `association` - # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation] - attr_accessor :association - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @association = args[:association] if args.key?(:association) - 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 The reason and details for a disapproval. class Disapproval include Google::Apis::Core::Hashable @@ -1118,6 +499,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, @@ -1195,6 +589,612 @@ module Google @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 + + # A request for watching changes to creative Status. + class WatchCreativeRequest + include Google::Apis::Core::Hashable + + # The Pub/Sub topic to publish notifications to. + # This topic must already exist and must give permission to + # ad-exchange-buyside-reports@google.com to write to the topic. + # This should be the full resource name in + # "projects/`project_id`/topics/`topic_id`" format. + # 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) + end + end + + # @OutputOnly The app type the restriction applies to for mobile device. + class AppContext + include Google::Apis::Core::Hashable + + # The app types this restriction applies to. + # Corresponds to the JSON property `appTypes` + # @return [Array] + attr_accessor :app_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_types = args[:app_types] if args.key?(:app_types) + end + end + + # + class ListClientsResponse + include Google::Apis::Core::Hashable + + # A token to retrieve the next page of results. + # Pass this value in the + # ListClientsRequest.pageToken + # field in the subsequent call to the + # accounts.clients.list method + # to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The returned list of clients. + # Corresponds to the JSON property `clients` + # @return [Array] + attr_accessor :clients + + 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) + @clients = args[:clients] if args.key?(:clients) + end + end + + # Native content for a creative. + class NativeContent + include Google::Apis::Core::Hashable + + # A long description of the ad. + # Corresponds to the JSON property `body` + # @return [String] + attr_accessor :body + + # The app rating in the app store. Must be in the range [0-5]. + # Corresponds to the JSON property `starRating` + # @return [Float] + attr_accessor :star_rating + + # The URL to fetch a native video ad. + # Corresponds to the JSON property `videoUrl` + # @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 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 name of the advertiser or sponsor, to be displayed in the ad creative. + # Corresponds to the JSON property `advertiserName` + # @return [String] + attr_accessor :advertiser_name + + # The URL to the app store to purchase/download the promoted app. + # Corresponds to the JSON property `storeUrl` + # @return [String] + attr_accessor :store_url + + # A short title for the ad. + # Corresponds to the JSON property `headline` + # @return [String] + attr_accessor :headline + + # 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 `appIcon` + # @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) + @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) + @price_display_text = args[:price_display_text] if args.key?(:price_display_text) + @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 + + # @OutputOnly A security context. + class SecurityContext + include Google::Apis::Core::Hashable + + # The security types in this context. + # Corresponds to the JSON property `securities` + # @return [Array] + attr_accessor :securities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @securities = args[:securities] if args.key?(:securities) + 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 + + # The serving context for this restriction. + class ServingContext + include Google::Apis::Core::Hashable + + # @OutputOnly The app type the restriction applies to for mobile device. + # Corresponds to the JSON property `appType` + # @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 + + # @OutputOnly The Geo criteria the restriction applies to. + # Corresponds to the JSON property `location` + # @return [Google::Apis::Adexchangebuyer2V2beta1::LocationContext] + attr_accessor :location + + # @OutputOnly The auction type the restriction applies to. + # Corresponds to the JSON property `auctionType` + # @return [Google::Apis::Adexchangebuyer2V2beta1::AuctionContext] + attr_accessor :auction_type + + # Matches all contexts. + # Corresponds to the JSON property `all` + # @return [String] + attr_accessor :all + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @location = args[:location] if args.key?(:location) + @auction_type = args[:auction_type] if args.key?(:auction_type) + @all = args[:all] if args.key?(:all) + end + end + + # An image resource. You may provide a larger image than was requested, + # so long as the aspect ratio is preserved. + class Image + include Google::Apis::Core::Hashable + + # Image height in pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Image width in pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + # The URL of the image. + # 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) + @height = args[:height] if args.key?(:height) + @width = args[:width] if args.key?(:width) + @url = args[:url] if args.key?(:url) + end + end + + # A specific filtering status and how many times it occurred. + class Reason + include Google::Apis::Core::Hashable + + # The filtering status code. Please refer to the + # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb- + # dictionaries/creative-status-codes.txt) + # file for different statuses. + # Corresponds to the JSON property `status` + # @return [Fixnum] + attr_accessor :status + + # The number of times the creative was filtered for the status. The + # count is aggregated across all publishers on the exchange. + # Corresponds to the JSON property `count` + # @return [String] + attr_accessor :count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @status = args[:status] if args.key?(:status) + @count = args[:count] if args.key?(:count) + 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 + + # An invitation for a new client user to get access to the Ad Exchange + # Buyer UI. + # All fields are required unless otherwise specified. + 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. + # Corresponds to the JSON property `clientAccountId` + # @return [String] + attr_accessor :client_account_id + + # The unique numerical ID of the invitation that is sent to the user. + # The value of this field is ignored in create operations. + # Corresponds to the JSON property `invitationId` + # @return [String] + attr_accessor :invitation_id + + 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) + end + end + + # @OutputOnly The auction type the restriction applies to. + class AuctionContext + include Google::Apis::Core::Hashable + + # The auction types this restriction applies to. + # Corresponds to the JSON property `auctionTypes` + # @return [Array] + attr_accessor :auction_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auction_types = args[:auction_types] if args.key?(:auction_types) + end + end + + # + class ListClientUserInvitationsResponse + include Google::Apis::Core::Hashable + + # A token to retrieve the next page of results. + # Pass this value in the + # ListClientUserInvitationsRequest.pageToken + # field in the subsequent call to the + # clients.invitations.list + # method to retrieve the next + # page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The returned list of client users. + # 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 + + # + class ListClientUsersResponse + include Google::Apis::Core::Hashable + + # A token to retrieve the next page of results. + # Pass this value in the + # ListClientUsersRequest.pageToken + # field in the subsequent call to the + # clients.invitations.list + # method to retrieve the next + # page of results. + # Corresponds to the JSON property `nextPageToken` + # @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) + end + end + + # @OutputOnly The Geo criteria the restriction applies to. + class LocationContext + include Google::Apis::Core::Hashable + + # IDs representing the geo location for this context. + # Please refer to the + # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table. + # csv) + # file for different geo criteria IDs. + # Corresponds to the JSON property `geoCriteriaIds` + # @return [Array] + attr_accessor :geo_criteria_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @geo_criteria_ids = args[:geo_criteria_ids] if args.key?(:geo_criteria_ids) + end + end + + # @OutputOnly The type of platform the restriction applies to. + class PlatformContext + include Google::Apis::Core::Hashable + + # The platforms this restriction applies to. + # Corresponds to the JSON property `platforms` + # @return [Array] + attr_accessor :platforms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @platforms = args[:platforms] if args.key?(:platforms) + end + end + + # A client user is created under a client buyer and has restricted access to + # the Ad Exchange Marketplace and certain other sections + # of the Ad Exchange Buyer UI based on the role + # granted to the associated client buyer. + # The only way a new client user can be created is via accepting an + # email invitation + # (see the + # accounts.clients.invitations.create + # method). + # All fields are required unless otherwise specified. + class ClientUser + include Google::Apis::Core::Hashable + + # Numerical account ID of the client buyer + # with which the user is associated; the + # buyer must be a client of the current sponsor buyer. + # The value of this field is ignored in an update operation. + # Corresponds to the JSON property `clientAccountId` + # @return [String] + attr_accessor :client_account_id + + # The status of the client user. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The unique numerical ID of the client user + # that has accepted an invitation. + # The value of this field is ignored in an update operation. + # Corresponds to the JSON property `userId` + # @return [String] + 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_account_id = args[:client_account_id] if args.key?(:client_account_id) + @status = args[:status] if args.key?(:status) + @user_id = args[:user_id] if args.key?(:user_id) + @email = args[:email] if args.key?(:email) + end + end end end end diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb index 732503def..74da5feff 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb @@ -22,6 +22,78 @@ module Google module Apis module Adexchangebuyer2V2beta1 + class CreativeDealAssociation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Creative + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FilteringStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RemoveDealAssociationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Client + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Correction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddDealAssociationRequest + 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 Disapproval + class Representation < Google::Apis::Core::JsonRepresentation; end + + 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 + + include Google::Apis::Core::JsonObjectSupport + end + + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -106,13 +178,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListClientUsersResponse + class ListClientUserInvitationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListClientUserInvitationsResponse + class ListClientUsersResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -137,75 +209,142 @@ module Google end class CreativeDealAssociation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class FilteringStats - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deals_id, as: 'dealsId' + property :account_id, as: 'accountId' + property :creative_id, as: 'creativeId' + end end class Creative - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation - include Google::Apis::Core::JsonObjectSupport + collection :serving_restrictions, as: 'servingRestrictions', class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction::Representation + + property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation + + property :agency_id, as: 'agencyId' + collection :click_through_urls, as: 'clickThroughUrls' + property :ad_choices_destination_url, as: 'adChoicesDestinationUrl' + collection :detected_sensitive_categories, as: 'detectedSensitiveCategories' + collection :restricted_categories, as: 'restrictedCategories' + collection :corrections, as: 'corrections', class: Google::Apis::Adexchangebuyer2V2beta1::Correction, decorator: Google::Apis::Adexchangebuyer2V2beta1::Correction::Representation + + property :version, as: 'version' + collection :vendor_ids, as: 'vendorIds' + collection :impression_tracking_urls, as: 'impressionTrackingUrls' + property :html, as: 'html', class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent::Representation + + collection :detected_product_categories, as: 'detectedProductCategories' + property :deals_status, as: 'dealsStatus' + property :open_auction_status, as: 'openAuctionStatus' + 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' + property :creative_id, as: 'creativeId' + 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 + + end end class RemoveDealAssociationRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Client - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :visible_to_seller, as: 'visibleToSeller' + property :entity_id, as: 'entityId' + property :client_account_id, 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 - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport - end - - class ListDealAssociationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + end end class AddDealAssociationRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation - include Google::Apis::Core::JsonObjectSupport + end end - class StopWatchingCreativeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + class ListDealAssociationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Disapproval - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :details, as: 'details' + property :reason, as: 'reason' + end + end - include Google::Apis::Core::JsonObjectSupport + class StopWatchingCreativeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class ServingRestriction - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation - include Google::Apis::Core::JsonObjectSupport + collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation + + property :status, as: 'status' + end end class Date - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :year, as: 'year' + property :day, as: 'day' + property :month, as: 'month' + end end class Empty @@ -240,11 +379,6 @@ module Google class NativeContent # @private class Representation < Google::Apis::Core::JsonRepresentation - 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' property :body, as: 'body' property :star_rating, as: 'starRating' property :video_url, as: 'videoUrl' @@ -256,6 +390,11 @@ module Google property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation 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 @@ -278,15 +417,19 @@ module Google class HtmlContent # @private class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' property :width, as: 'width' property :snippet, as: 'snippet' - property :height, as: 'height' end end class ServingContext # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 property :location, as: 'location', class: Google::Apis::Adexchangebuyer2V2beta1::LocationContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::LocationContext::Representation @@ -294,27 +437,23 @@ module Google property :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation 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 - end end class Image # @private class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' property :width, as: 'width' property :url, as: 'url' - property :height, as: 'height' end end class Reason # @private class Representation < Google::Apis::Core::JsonRepresentation - property :count, as: 'count' property :status, as: 'status' + property :count, as: 'count' end end @@ -341,15 +480,6 @@ module Google end end - 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 - - end - end - class ListClientUserInvitationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -359,6 +489,15 @@ module Google end end + 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 + + end + end + class LocationContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -376,149 +515,10 @@ module Google class ClientUser # @private class Representation < Google::Apis::Core::JsonRepresentation + property :client_account_id, as: 'clientAccountId' + property :status, as: 'status' property :user_id, as: 'userId' property :email, as: 'email' - property :client_account_id, as: 'clientAccountId' - property :status, as: 'status' - end - end - - class CreativeDealAssociation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :account_id, as: 'accountId' - property :creative_id, as: 'creativeId' - property :deals_id, as: 'dealsId' - end - end - - class FilteringStats - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - class Creative - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :agency_id, as: 'agencyId' - collection :click_through_urls, as: 'clickThroughUrls' - property :ad_choices_destination_url, as: 'adChoicesDestinationUrl' - collection :detected_sensitive_categories, as: 'detectedSensitiveCategories' - collection :restricted_categories, as: 'restrictedCategories' - collection :corrections, as: 'corrections', class: Google::Apis::Adexchangebuyer2V2beta1::Correction, decorator: Google::Apis::Adexchangebuyer2V2beta1::Correction::Representation - - property :version, as: 'version' - collection :vendor_ids, as: 'vendorIds' - collection :impression_tracking_urls, as: 'impressionTrackingUrls' - property :html, as: 'html', class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent::Representation - - collection :detected_product_categories, as: 'detectedProductCategories' - property :deals_status, as: 'dealsStatus' - property :open_auction_status, as: 'openAuctionStatus' - 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' - 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 - - property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation - - collection :serving_restrictions, as: 'servingRestrictions', class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction::Representation - - end - end - - class RemoveDealAssociationRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation - - end - end - - 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, as: 'entityId' - property :client_account_id, as: 'clientAccountId' - property :entity_name, as: 'entityName' - property :status, as: 'status' - end - end - - class Correction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation - - collection :details, as: 'details' - property :type, as: 'type' - end - end - - class ListDealAssociationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation - - end - end - - class AddDealAssociationRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation - - end - end - - class StopWatchingCreativeRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class Disapproval - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :details, as: 'details' - property :reason, as: 'reason' - 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' - end - end - - class Date - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :year, as: 'year' - property :day, as: 'day' - property :month, as: 'month' end end end diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb index b440d8a54..cc413821f 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb @@ -33,507 +33,30 @@ module Google # # @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/ class AdExchangeBuyerIIService < 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://adexchangebuyer.googleapis.com/', '') end - # Gets a client buyer with a given client account ID. - # @param [String] 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 retrieve. (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::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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists all the clients for the current sponsor buyer. - # @param [String] 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Updates an existing client buyer. - # @param [String] 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 [String] client_account_id - # Unique numerical account ID of the client to update. (required) - # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new client buyer. - # @param [String] 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves an existing client user invitation. - # @param [String] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [String] client_account_id - # Numerical account ID of the client buyer that the user invitation - # to be retrieved is associated with. (required) - # @param [String] invitation_id - # Numerical identifier of the user invitation to retrieve. (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::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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists all the client users invitations for a client - # with a given account ID. - # @param [String] 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates and sends out an email invitation to access - # an Ad Exchange client buyer account. - # @param [String] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [String] 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists all the known client users for a specified - # sponsor buyer account ID. - # @param [String] 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves an existing client user. - # @param [String] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [String] client_account_id - # Numerical account ID of the client buyer - # that the user to be retrieved is associated with. (required) - # @param [String] user_id - # Numerical identifier of the user to retrieve. (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::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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Updates an existing client user. - # Only the user status can be changed on update. - # @param [String] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [String] client_account_id - # Numerical account ID of the client buyer that the user to be retrieved - # is associated with. (required) - # @param [String] user_id - # Numerical identifier of the user to retrieve. (required) - # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates 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 [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object - # @param [String] duplicate_id_mode - # Indicates if multiple creatives can share an ID or not. Default is - # NO_DUPLICATES (one ID per creative). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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 create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', 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.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Stops watching a creative. Will stop push notifications being sent to the - # topics when the creative changes status. - # @param [String] account_id - # The account of the creative to stop notifications for. - # @param [String] creative_id - # The creative ID of the creative to stop notifications for. - # Specify "-" to specify stopping account level notifications. - # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_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::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 stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options) - command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation - command.request_object = stop_watching_creative_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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Gets a creative. # @param [String] account_id # The account the creative belongs to. # @param [String] creative_id # The ID of the creative 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 # @@ -546,14 +69,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_account_creative(account_id, creative_id, fields: nil, quota_user: nil, options: nil, &block) + def get_account_creative(account_id, creative_id, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options) 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['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 @@ -568,11 +91,11 @@ module Google # sent, only a single notification will be sent to the # creative-level notification topic. # @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_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 # @@ -585,7 +108,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 watch_creative(account_id, creative_id, watch_creative_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def watch_creative(account_id, creative_id, watch_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options) command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation command.request_object = watch_creative_request_object @@ -593,8 +116,8 @@ module Google 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['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 @@ -610,11 +133,11 @@ module Google # creatives.list # method. # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -627,7 +150,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_account_creative(account_id, creative_id, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -635,8 +158,8 @@ module Google 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['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 @@ -670,11 +193,11 @@ module Google # # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason: # unacceptable_content) OR attribute:47' - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -687,7 +210,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_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -695,8 +218,86 @@ module Google 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['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 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 [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object + # @param [String] duplicate_id_mode + # Indicates if multiple creatives can share an ID or not. Default is + # NO_DUPLICATES (one ID per creative). + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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 create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', 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.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Stops watching a creative. Will stop push notifications being sent to the + # topics when the creative changes status. + # @param [String] account_id + # The account of the creative to stop notifications for. + # @param [String] creative_id + # The creative ID of the creative to stop notifications for. + # Specify "-" to specify stopping account level notifications. + # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_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 stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation + command.request_object = stop_watching_creative_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 @@ -706,11 +307,11 @@ module Google # @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] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -723,7 +324,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 add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -731,8 +332,8 @@ module Google 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['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 @@ -742,11 +343,11 @@ module Google # @param [String] creative_id # The ID of the creative associated with the deal. # @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_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 # @@ -759,7 +360,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 remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options) command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation command.request_object = remove_deal_association_request_object @@ -767,8 +368,8 @@ module Google 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['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 @@ -801,11 +402,11 @@ module Google # not_checked` # # Example: 'dealsId=12345 AND dealsStatus:disapproved' - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -818,7 +419,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_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_account_creative_deal_associations(account_id, creative_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/{creativeId}/dealAssociations', options) command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse @@ -827,16 +428,415 @@ module Google 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['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 client buyer with a given client account ID. + # @param [String] 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 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 [String] 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 [String] 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 [String] 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 [String] 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 known client users for a specified + # sponsor buyer account ID. + # @param [String] 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 + + # Retrieves an existing client user. + # @param [String] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [String] client_account_id + # Numerical account ID of the client buyer + # that the user to be retrieved is associated with. (required) + # @param [String] 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 [String] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [String] client_account_id + # Numerical account ID of the client buyer that the user to be retrieved + # is associated with. (required) + # @param [String] 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 + + # Creates and sends out an email invitation to access + # an Ad Exchange client buyer account. + # @param [String] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [String] 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 invitation. + # @param [String] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [String] client_account_id + # Numerical account ID of the client buyer that the user invitation + # to be retrieved is associated with. (required) + # @param [String] 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 [String] 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['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/adexchangebuyer_v1_4/classes.rb b/generated/google/apis/adexchangebuyer_v1_4/classes.rb index 5f476ebd5..6dad3700e 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/classes.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/classes.rb @@ -2746,6 +2746,7 @@ module Google # # Corresponds to the JSON property `referencePayload` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :reference_payload diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 4ccf397e9..34f77cabf 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -3015,6 +3015,7 @@ module Google # Base64 encoded photo data # Corresponds to the JSON property `photoData` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :photo_data diff --git a/generated/google/apis/analyticsreporting_v4/classes.rb b/generated/google/apis/analyticsreporting_v4/classes.rb index bbb177d8f..8fe0d299f 100644 --- a/generated/google/apis/analyticsreporting_v4/classes.rb +++ b/generated/google/apis/analyticsreporting_v4/classes.rb @@ -22,83 +22,28 @@ module Google module Apis module AnalyticsreportingV4 - # Dynamic segment definition for defining the segment within the request. - # A segment can select users, sessions or both. - 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 `sessionSegment` - # @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition] - attr_accessor :session_segment - - # The name of the dynamic segment. - # Corresponds to the JSON property `name` - # @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) - @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 - - # A Simple segment conditions consist of one or more dimension/metric - # conditions that can be combined. - class SimpleSegment - include Google::Apis::Core::Hashable - - # A list of segment filters groups which are combined with logical `AND` - # operator. - # Corresponds to the JSON property `orFiltersForSegment` - # @return [Array] - attr_accessor :or_filters_for_segment - - 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) - end - end - # Column headers. class ColumnHeader include Google::Apis::Core::Hashable - # 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 + # The headers for the metrics. + # Corresponds to the JSON property `metricHeader` + # @return [Google::Apis::AnalyticsreportingV4::MetricHeader] + attr_accessor :metric_header + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @metric_header = args[:metric_header] if args.key?(:metric_header) @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric_header = args[:metric_header] if args.key?(:metric_header) end end @@ -107,6 +52,11 @@ module Google class SegmentFilterClause include Google::Apis::Core::Hashable + # Dimension filter specifies the filtering options on a dimension. + # Corresponds to the JSON property `dimensionFilter` + # @return [Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter] + attr_accessor :dimension_filter + # Metric filter to be used in a segment filter clause. # Corresponds to the JSON property `metricFilter` # @return [Google::Apis::AnalyticsreportingV4::SegmentMetricFilter] @@ -118,20 +68,15 @@ module Google attr_accessor :not alias_method :not?, :not - # Dimension filter specifies the filtering options on a dimension. - # Corresponds to the JSON property `dimensionFilter` - # @return [Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter] - attr_accessor :dimension_filter - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter) @metric_filter = args[:metric_filter] if args.key?(:metric_filter) @not = args[:not] if args.key?(:not) - @dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter) end end @@ -166,6 +111,13 @@ module Google class Cohort include Google::Apis::Core::Hashable + # 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 + # A unique name for the cohort. If not defined name will be auto-generated # with values cohort_[1234...]. # Corresponds to the JSON property `name` @@ -179,22 +131,15 @@ module Google # @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) + @type = args[:type] if args.key?(:type) @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 @@ -250,24 +195,24 @@ module Google class MetricHeader include Google::Apis::Core::Hashable - # Headers for the pivots in the response. - # Corresponds to the JSON property `pivotHeaders` - # @return [Array] - attr_accessor :pivot_headers - # Headers for the metrics in the response. # Corresponds to the JSON property `metricHeaderEntries` # @return [Array] attr_accessor :metric_header_entries + # Headers for the pivots in the response. + # Corresponds to the JSON property `pivotHeaders` + # @return [Array] + attr_accessor :pivot_headers + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @pivot_headers = args[:pivot_headers] if args.key?(:pivot_headers) @metric_header_entries = args[:metric_header_entries] if args.key?(:metric_header_entries) + @pivot_headers = args[:pivot_headers] if args.key?(:pivot_headers) end end @@ -352,6 +297,20 @@ module Google class SegmentMetricFilter include Google::Apis::Core::Hashable + # The metric that will be filtered on. A `metricFilter` must contain a + # metric name. + # Corresponds to the JSON property `metricName` + # @return [String] + attr_accessor :metric_name + + # Scope for a metric defines the level at which that metric is defined. The + # specified metric scope must be equal to or greater than its primary scope + # as defined in the data model. The primary scope is defined by if the + # segment is selecting users or sessions. + # Corresponds to the JSON property `scope` + # @return [String] + attr_accessor :scope + # Max comparison value is only used for `BETWEEN` operator. # Corresponds to the JSON property `maxComparisonValue` # @return [String] @@ -369,31 +328,17 @@ module Google # @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` - # @return [String] - attr_accessor :metric_name - - # Scope for a metric defines the level at which that metric is defined. The - # specified metric scope must be equal to or greater than its primary scope - # as defined in the data model. The primary scope is defined by if the - # segment is selecting users or sessions. - # Corresponds to the JSON property `scope` - # @return [String] - attr_accessor :scope - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) - @metric_name = args[:metric_name] if args.key?(:metric_name) - @scope = args[:scope] if args.key?(:scope) end end @@ -514,6 +459,22 @@ module Google class Pivot include Google::Apis::Core::Hashable + # 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 + # columns for "IE", k columns for "Chrome", etc. The ordering of the groups + # of columns is determined by descending order of "total" for the first of + # the k values. Ties are broken by lexicographic ordering of the first + # pivot dimension, then lexicographic ordering of the second pivot + # dimension, and so on. E.g., if the totals for the first value for + # Firefox, IE, and Chrome were 8, 2, 8, respectively, the order of columns + # would be Chrome, Firefox, IE. + # The following let you choose which of the groups of k columns are + # included in the response. + # Corresponds to the JSON property `startGroup` + # @return [Fixnum] + attr_accessor :start_group + # The pivot metrics. Pivot metrics are part of the # restriction on total number of metrics allowed in the request. # Corresponds to the JSON property `metrics` @@ -544,33 +505,17 @@ module Google # @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 - # columns for "IE", k columns for "Chrome", etc. The ordering of the groups - # of columns is determined by descending order of "total" for the first of - # the k values. Ties are broken by lexicographic ordering of the first - # pivot dimension, then lexicographic ordering of the second pivot - # dimension, and so on. E.g., if the totals for the first value for - # Firefox, IE, and Chrome were 8, 2, 8, respectively, the order of columns - # would be Chrome, Firefox, IE. - # The following let you choose which of the groups of k columns are - # included in the response. - # Corresponds to the JSON property `startGroup` - # @return [Fixnum] - attr_accessor :start_group - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) - @start_group = args[:start_group] if args.key?(:start_group) end end @@ -686,24 +631,24 @@ module Google class MetricHeaderEntry include Google::Apis::Core::Hashable - # The type of the metric, for example `INTEGER`. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - # The name of the header. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # The type of the metric, for example `INTEGER`. + # 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) @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end @@ -711,6 +656,37 @@ module Google class ReportData include Google::Apis::Core::Hashable + # 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. + # Corresponds to the JSON property `isDataGolden` + # @return [Boolean] + attr_accessor :is_data_golden + alias_method :is_data_golden?, :is_data_golden + + # 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` + # @return [String] + attr_accessor :data_last_refreshed + + # Minimum and maximum values seen over all matching rows. These are both + # empty when `hideValueRanges` in the request is false, or when + # rowCount is zero. + # Corresponds to the JSON property `maximums` + # @return [Array] + attr_accessor :maximums + # If the results are # [sampled](https://support.google.com/analytics/answer/2637192), # this returns the total number of @@ -751,52 +727,21 @@ 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. - # Corresponds to the JSON property `isDataGolden` - # @return [Boolean] - attr_accessor :is_data_golden - alias_method :is_data_golden?, :is_data_golden - - # 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` - # @return [String] - attr_accessor :data_last_refreshed - - # Minimum and maximum values seen over all matching rows. These are both - # empty when `hideValueRanges` in the request is false, or when - # rowCount is zero. - # Corresponds to the JSON property `maximums` - # @return [Array] - attr_accessor :maximums - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @sampling_space_sizes = args[:sampling_space_sizes] if args.key?(:sampling_space_sizes) - @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) @data_last_refreshed = args[:data_last_refreshed] if args.key?(:data_last_refreshed) @maximums = args[:maximums] if args.key?(:maximums) + @sampling_space_sizes = args[:sampling_space_sizes] if args.key?(:sampling_space_sizes) + @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) end end @@ -804,12 +749,6 @@ module Google class DimensionFilter include Google::Apis::Core::Hashable - # 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 - # The dimension to filter on. A DimensionFilter must contain a dimension. # Corresponds to the JSON property `dimensionName` # @return [String] @@ -835,79 +774,23 @@ module Google # @return [Array] attr_accessor :expressions + # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) @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) - end - end - - # The segment definition, if the report needs to be segmented. - # A Segment is a subset of the Analytics data. For example, of the entire - # set of users, one Segment might be users from a particular country or city. - class Segment - include Google::Apis::Core::Hashable - - # Dynamic segment definition for defining the segment within the request. - # A segment can select users, sessions or both. - # Corresponds to the JSON property `dynamicSegment` - # @return [Google::Apis::AnalyticsreportingV4::DynamicSegment] - attr_accessor :dynamic_segment - - # The segment ID of a built-in or custom segment, for example `gaid::-3`. - # Corresponds to the JSON property `segmentId` - # @return [String] - attr_accessor :segment_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dynamic_segment = args[:dynamic_segment] if args.key?(:dynamic_segment) - @segment_id = args[:segment_id] if args.key?(:segment_id) - end - end - - # Specifies the sorting options. - class OrderBy - include Google::Apis::Core::Hashable - - # The field which to sort by. The default sort order is ascending. Example: - # `ga:browser`. - # Note, that you can only specify one field for sort here. For example, - # `ga:browser, ga:city` is not valid. - # Corresponds to the JSON property `fieldName` - # @return [String] - attr_accessor :field_name - - # The order type. The default orderType is `VALUE`. - # Corresponds to the JSON property `orderType` - # @return [String] - attr_accessor :order_type - - # The sorting order for the field. - # 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) - @field_name = args[:field_name] if args.key?(:field_name) - @order_type = args[:order_type] if args.key?(:order_type) - @sort_order = args[:sort_order] if args.key?(:sort_order) + @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) end end @@ -961,6 +844,68 @@ module Google end end + # Specifies the sorting options. + class OrderBy + include Google::Apis::Core::Hashable + + # The field which to sort by. The default sort order is ascending. Example: + # `ga:browser`. + # Note, that you can only specify one field for sort here. For example, + # `ga:browser, ga:city` is not valid. + # Corresponds to the JSON property `fieldName` + # @return [String] + attr_accessor :field_name + + # The order type. The default orderType is `VALUE`. + # Corresponds to the JSON property `orderType` + # @return [String] + attr_accessor :order_type + + # The sorting order for the field. + # 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) + @field_name = args[:field_name] if args.key?(:field_name) + @order_type = args[:order_type] if args.key?(:order_type) + @sort_order = args[:sort_order] if args.key?(:sort_order) + end + end + + # The segment definition, if the report needs to be segmented. + # A Segment is a subset of the Analytics data. For example, of the entire + # set of users, one Segment might be users from a particular country or city. + class Segment + include Google::Apis::Core::Hashable + + # Dynamic segment definition for defining the segment within the request. + # A segment can select users, sessions or both. + # Corresponds to the JSON property `dynamicSegment` + # @return [Google::Apis::AnalyticsreportingV4::DynamicSegment] + attr_accessor :dynamic_segment + + # The segment ID of a built-in or custom segment, for example `gaid::-3`. + # Corresponds to the JSON property `segmentId` + # @return [String] + attr_accessor :segment_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dynamic_segment = args[:dynamic_segment] if args.key?(:dynamic_segment) + @segment_id = args[:segment_id] if args.key?(:segment_id) + end + end + # A segment sequence definition. class SegmentSequenceStep include Google::Apis::Core::Hashable @@ -1056,11 +1001,6 @@ module Google 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] @@ -1071,15 +1011,20 @@ module Google # @return [String] attr_accessor :next_page_token + # 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) - @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) + @column_header = args[:column_header] if args.key?(:column_header) end end @@ -1183,11 +1128,6 @@ module Google class ReportRequest include Google::Apis::Core::Hashable - # 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. @@ -1216,13 +1156,6 @@ module Google # @return [Fixnum] attr_accessor :page_size - # If set to true, hides the minimum and maximum across all matching rows. - # The default is false and the value ranges are returned. - # Corresponds to the JSON property `hideValueRanges` - # @return [Boolean] - attr_accessor :hide_value_ranges - alias_method :hide_value_ranges?, :hide_value_ranges - # If set to true, hides the total of all metrics for all the matching rows, # for every date range. The default false and will return the totals. # Corresponds to the JSON property `hideTotals` @@ -1230,17 +1163,12 @@ module Google attr_accessor :hide_totals alias_method :hide_totals?, :hide_totals - # Dimension or metric filters that restrict the data returned for your - # request. To use the `filtersExpression`, supply a dimension or metric on - # which to filter, followed by the filter expression. For example, the - # following expression selects `ga:browser` dimension which starts with - # Firefox; `ga:browser=~^Firefox`. For more information on dimensions - # and metric filters, see - # [Filters reference](https://developers.google.com/analytics/devguides/ - # reporting/core/v3/reference#filters). - # Corresponds to the JSON property `filtersExpression` - # @return [String] - attr_accessor :filters_expression + # If set to true, hides the minimum and maximum across all matching rows. + # The default is false and the value ranges are returned. + # Corresponds to the JSON property `hideValueRanges` + # @return [Boolean] + attr_accessor :hide_value_ranges + alias_method :hide_value_ranges?, :hide_value_ranges # Defines a cohort group. # For example: @@ -1259,6 +1187,18 @@ module Google # @return [Google::Apis::AnalyticsreportingV4::CohortGroup] attr_accessor :cohort_group + # Dimension or metric filters that restrict the data returned for your + # request. To use the `filtersExpression`, supply a dimension or metric on + # which to filter, followed by the filter expression. For example, the + # following expression selects `ga:browser` dimension which starts with + # Firefox; `ga:browser=~^Firefox`. For more information on dimensions + # and metric filters, see + # [Filters reference](https://developers.google.com/analytics/devguides/ + # reporting/core/v3/reference#filters). + # Corresponds to the JSON property `filtersExpression` + # @return [String] + attr_accessor :filters_expression + # The Analytics # [view ID](https://support.google.com/analytics/answer/1009618) # from which to retrieve data. Every [ReportRequest](#ReportRequest) @@ -1338,20 +1278,24 @@ module Google # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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_value_ranges = args[:hide_value_ranges] if args.key?(:hide_value_ranges) @hide_totals = args[:hide_totals] if args.key?(:hide_totals) - @filters_expression = args[:filters_expression] if args.key?(:filters_expression) + @hide_value_ranges = args[:hide_value_ranges] if args.key?(:hide_value_ranges) @cohort_group = args[:cohort_group] if args.key?(:cohort_group) + @filters_expression = args[:filters_expression] if args.key?(:filters_expression) @view_id = args[:view_id] if args.key?(:view_id) @metrics = args[:metrics] if args.key?(:metrics) @dimension_filter_clauses = args[:dimension_filter_clauses] if args.key?(:dimension_filter_clauses) @@ -1361,6 +1305,7 @@ module Google @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) end end @@ -1415,6 +1360,61 @@ module Google @name = args[:name] if args.key?(:name) end end + + # Dynamic segment definition for defining the segment within the request. + # A segment can select users, sessions or both. + class DynamicSegment + include Google::Apis::Core::Hashable + + # The name of the dynamic segment. + # Corresponds to the JSON property `name` + # @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 + + # 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` + # @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition] + attr_accessor :session_segment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @user_segment = args[:user_segment] if args.key?(:user_segment) + @session_segment = args[:session_segment] if args.key?(:session_segment) + end + end + + # A Simple segment conditions consist of one or more dimension/metric + # conditions that can be combined. + class SimpleSegment + include Google::Apis::Core::Hashable + + # A list of segment filters groups which are combined with logical `AND` + # operator. + # Corresponds to the JSON property `orFiltersForSegment` + # @return [Array] + attr_accessor :or_filters_for_segment + + 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) + end + end end end end diff --git a/generated/google/apis/analyticsreporting_v4/representations.rb b/generated/google/apis/analyticsreporting_v4/representations.rb index 8947d2683..6b854ecd2 100644 --- a/generated/google/apis/analyticsreporting_v4/representations.rb +++ b/generated/google/apis/analyticsreporting_v4/representations.rb @@ -22,18 +22,6 @@ module Google module Apis module AnalyticsreportingV4 - class DynamicSegment - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SimpleSegment - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ColumnHeader class Representation < Google::Apis::Core::JsonRepresentation; end @@ -160,7 +148,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Segment + class SegmentDimensionFilter class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -172,7 +160,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SegmentDimensionFilter + class Segment class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -233,41 +221,34 @@ module Google end class DynamicSegment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :name, as: 'name' - property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class SimpleSegment - # @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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport 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 class SegmentFilterClause # @private class Representation < Google::Apis::Core::JsonRepresentation + property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation + property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation property :not, as: 'not' - property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation - end end @@ -283,10 +264,10 @@ module Google class Cohort # @private class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' 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 @@ -310,10 +291,10 @@ module Google class MetricHeader # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation - collection :metric_header_entries, as: 'metricHeaderEntries', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation + collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation + end end @@ -346,11 +327,11 @@ module Google class SegmentMetricFilter # @private class Representation < Google::Apis::Core::JsonRepresentation + property :metric_name, as: 'metricName' + property :scope, as: 'scope' property :max_comparison_value, as: 'maxComparisonValue' property :comparison_value, as: 'comparisonValue' property :operator, as: 'operator' - property :metric_name, as: 'metricName' - property :scope, as: 'scope' end end @@ -383,6 +364,7 @@ module Google class Pivot # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 @@ -390,7 +372,6 @@ module Google collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation property :max_group_count, as: 'maxGroupCount' - property :start_group, as: 'startGroup' end end @@ -426,20 +407,14 @@ module Google class MetricHeaderEntry # @private class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' property :name, as: 'name' + property :type, as: 'type' end end class ReportData # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :sampling_space_sizes, as: 'samplingSpaceSizes' - collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation - - 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' collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation @@ -447,35 +422,23 @@ module Google property :data_last_refreshed, as: 'dataLastRefreshed' collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation + collection :sampling_space_sizes, as: 'samplingSpaceSizes' + collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation + + collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation + + collection :samples_read_counts, as: 'samplesReadCounts' end end class DimensionFilter # @private class Representation < Google::Apis::Core::JsonRepresentation - property :case_sensitive, as: 'caseSensitive' property :dimension_name, as: 'dimensionName' property :operator, as: 'operator' property :not, as: 'not' collection :expressions, as: 'expressions' - end - end - - class Segment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation - - property :segment_id, as: 'segmentId' - end - end - - class OrderBy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :field_name, as: 'fieldName' - property :order_type, as: 'orderType' - property :sort_order, as: 'sortOrder' + property :case_sensitive, as: 'caseSensitive' end end @@ -491,6 +454,24 @@ module Google end end + class OrderBy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :field_name, as: 'fieldName' + property :order_type, as: 'orderType' + property :sort_order, as: 'sortOrder' + end + end + + class Segment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation + + property :segment_id, as: 'segmentId' + end + end + class SegmentSequenceStep # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -519,11 +500,11 @@ module Google 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' + property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation + end end @@ -557,17 +538,15 @@ module Google class ReportRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - 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' - property :hide_value_ranges, as: 'hideValueRanges' property :hide_totals, as: 'hideTotals' - property :filters_expression, as: 'filtersExpression' + property :hide_value_ranges, as: 'hideValueRanges' property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation + property :filters_expression, as: 'filtersExpression' property :view_id, as: 'viewId' collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation @@ -583,6 +562,8 @@ module Google 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 + end end @@ -593,6 +574,25 @@ module Google property :name, as: 'name' end end + + class DynamicSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + 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 + + end + end + + class SimpleSegment + # @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 + + end + end end end end diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index e540819cf..730ee95ef 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 = '20170319' + REVISION = '20170324' # 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 2843dcc67..9481ac9e6 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -59,6 +59,7 @@ module Google # BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid # identifier must be provided as field_name. # Corresponds to the JSON property `qualifierEncoded` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :qualifier_encoded @@ -1246,8 +1247,8 @@ module Google # [Optional] Specifies a string that represents a null value in a CSV file. For # example, if you specify "\N", BigQuery interprets "\N" as a null value when # loading a CSV file. The default value is the empty string. If you set this - # property to a custom value, BigQuery still interprets the empty string as a - # null value for all data types except for STRING and BYTE. For STRING and BYTE + # property to a custom value, BigQuery throws an error if an empty string is + # present for all data types except for STRING and BYTE. For STRING and BYTE # columns, BigQuery interprets the empty string as an empty value. # Corresponds to the JSON property `nullMarker` # @return [String] @@ -1370,8 +1371,10 @@ module Google class JobConfigurationQuery include Google::Apis::Core::Hashable - # If true, allows the query to produce arbitrarily large result tables at a - # slight cost in performance. Requires destinationTable to be set. + # [Optional] If true and query uses legacy SQL dialect, allows the query to + # produce arbitrarily large result tables at a slight cost in performance. + # Requires destinationTable to be set. For standard SQL queries, this flag is + # ignored and large results are always allowed. # Corresponds to the JSON property `allowLargeResults` # @return [Boolean] attr_accessor :allow_large_results @@ -1399,8 +1402,10 @@ module Google # @return [Google::Apis::BigqueryV2::TableReference] attr_accessor :destination_table - # [Optional] Flattens all nested and repeated fields in the query results. The - # default value is true. allowLargeResults must be true if this is set to false. + # [Optional] If true and query uses legacy SQL dialect, flattens all nested and + # repeated fields in the query results. allowLargeResults must be true if this + # is set to false. For standard SQL queries, this flag is ignored and results + # are never flattened. # Corresponds to the JSON property `flattenResults` # @return [Boolean] attr_accessor :flatten_results diff --git a/generated/google/apis/books_v1/classes.rb b/generated/google/apis/books_v1/classes.rb index 8cbe63fd4..131554e43 100644 --- a/generated/google/apis/books_v1/classes.rb +++ b/generated/google/apis/books_v1/classes.rb @@ -274,6 +274,7 @@ module Google # Base64 encoded data for this annotation data. # Corresponds to the JSON property `encoded_data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :encoded_data diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 94e9432aa..c1b8ccec4 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 = '20170321' + REVISION = '20170328' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index 2a763a95e..c89795ffc 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -22,31 +22,351 @@ module Google module Apis module CloudbuildV1 - # Source describes the location of the source in a supported storage - # service. - class Source + # 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 - # 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 - - # StorageSource describes the location of the source in an archive file in - # Google Cloud Storage. - # Corresponds to the JSON property `storageSource` - # @return [Google::Apis::CloudbuildV1::StorageSource] - attr_accessor :storage_source - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @repo_source = args[:repo_source] if args.key?(:repo_source) + end + end + + # Configuration for an automated build in response to source repository + # changes. + class BuildTrigger + include Google::Apis::Core::Hashable + + # If true, the trigger will never result in a build. + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + + # Time when the trigger was created. + # @OutputOnly + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # RepoSource describes the location of the source in a Google Cloud Source + # Repository. + # Corresponds to the JSON property `triggerTemplate` + # @return [Google::Apis::CloudbuildV1::RepoSource] + attr_accessor :trigger_template + + # Path, from the source root, to a file whose contents is used for the + # template. + # Corresponds to the JSON property `filename` + # @return [String] + attr_accessor :filename + + # Unique identifier of the trigger. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A build resource in the Container Builder API. + # At a high level, a Build describes where to find source code, how to build + # it (for example, the builder image to run on the source), and what tag to + # apply to the built image when it is pushed to Google Container Registry. + # Fields can include the following variables which will be expanded when the + # build is created: + # - $PROJECT_ID: the project ID of the build. + # - $BUILD_ID: the autogenerated ID of the build. + # - $REPO_NAME: the source repository name specified by RepoSource. + # - $BRANCH_NAME: the branch name specified by RepoSource. + # - $TAG_NAME: the tag name specified by RepoSource. + # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or + # resolved from the specified branch or tag. + # Corresponds to the JSON property `build` + # @return [Google::Apis::CloudbuildV1::Build] + attr_accessor :build + + # Substitutions data for Build resource. + # Corresponds to the JSON property `substitutions` + # @return [Hash] + attr_accessor :substitutions + + # Human-readable description of this trigger. + # 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) + @disabled = args[:disabled] if args.key?(:disabled) + @create_time = args[:create_time] if args.key?(:create_time) + @trigger_template = args[:trigger_template] if args.key?(:trigger_template) + @filename = args[:filename] if args.key?(:filename) + @id = args[:id] if args.key?(:id) + @build = args[:build] if args.key?(:build) + @substitutions = args[:substitutions] if args.key?(:substitutions) + @description = args[:description] if args.key?(:description) + end + end + + # A build resource in the Container Builder API. + # At a high level, a Build describes where to find source code, how to build + # it (for example, the builder image to run on the source), and what tag to + # apply to the built image when it is pushed to Google Container Registry. + # Fields can include the following variables which will be expanded when the + # build is created: + # - $PROJECT_ID: the project ID of the build. + # - $BUILD_ID: the autogenerated ID of the build. + # - $REPO_NAME: the source repository name specified by RepoSource. + # - $BRANCH_NAME: the branch name specified by RepoSource. + # - $TAG_NAME: the tag name specified by RepoSource. + # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or + # resolved from the specified branch or tag. + class Build + include Google::Apis::Core::Hashable + + # Optional arguments to enable specific features of builds. + # Corresponds to the JSON property `options` + # @return [Google::Apis::CloudbuildV1::BuildOptions] + attr_accessor :options + + # Source describes the location of the source in a supported storage + # service. + # Corresponds to the JSON property `source` + # @return [Google::Apis::CloudbuildV1::Source] + attr_accessor :source + + # 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 + + # Unique identifier of the build. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Time at which execution of the build was started. + # @OutputOnly + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Substitutions data for Build resource. + # Corresponds to the JSON property `substitutions` + # @return [Hash] + attr_accessor :substitutions + + # Time at which the request to create the build was received. + # @OutputOnly + # Corresponds to the JSON property `createTime` + # @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. + # The digests of the pushed images will be stored in the Build resource's + # results field. + # If any of the images fail to be pushed, the build is marked FAILURE. + # Corresponds to the JSON property `images` + # @return [Array] + attr_accessor :images + + # ID of the project. + # @OutputOnly. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Time at which execution of the build was finished. + # The difference between finish_time and start_time is the duration of the + # build's execution. + # @OutputOnly + # Corresponds to the JSON property `finishTime` + # @return [String] + attr_accessor :finish_time + + # URL to logs for this build in Google Cloud Logging. + # @OutputOnly + # Corresponds to the JSON property `logUrl` + # @return [String] + attr_accessor :log_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @options = args[:options] if args.key?(:options) + @source = args[:source] if args.key?(:source) + @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) + @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) + @source_provenance = args[:source_provenance] if args.key?(:source_provenance) + @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) + 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 @@ -80,12 +400,6 @@ module Google 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 [String] - attr_accessor :generation - # Google Cloud Storage bucket containing source (see # [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) @@ -101,15 +415,21 @@ module Google # @return [String] attr_accessor :object + # 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 [String] + attr_accessor :generation + 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) + @generation = args[:generation] if args.key?(:generation) end end @@ -223,11 +543,38 @@ 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 @@ -298,44 +645,17 @@ 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) - @done = args[:done] if args.key?(:done) - 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 @@ -343,25 +663,70 @@ module Google class BuiltImage include Google::Apis::Core::Hashable - # Docker Registry 2.0 digest. - # Corresponds to the JSON property `digest` - # @return [String] - attr_accessor :digest - # Name used to push the container image to Google Container Registry, as # presented to `docker push`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # Docker Registry 2.0 digest. + # Corresponds to the JSON property `digest` + # @return [String] + attr_accessor :digest + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @digest = args[:digest] if args.key?(:digest) @name = args[:name] if args.key?(:name) + @digest = args[:digest] if args.key?(:digest) + end + end + + # RepoSource describes the location of the source in a Google Cloud Source + # Repository. + class RepoSource + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + 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) + @branch_name = args[:branch_name] if args.key?(:branch_name) + @tag_name = args[:tag_name] if args.key?(:tag_name) + @commit_sha = args[:commit_sha] if args.key?(:commit_sha) end end @@ -457,6 +822,7 @@ module Google # 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 @@ -471,51 +837,6 @@ module Google 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 hashes of byte content of files, used in # SourceProvenance messages to verify integrity of source input to the build. class FileHashes @@ -607,326 +928,6 @@ module Google @details = args[:details] if args.key?(:details) 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 for an automated build in response to source repository - # changes. - class BuildTrigger - include Google::Apis::Core::Hashable - - # Time when the trigger was created. - # @OutputOnly - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # If true, the trigger will never result in a build. - # Corresponds to the JSON property `disabled` - # @return [Boolean] - attr_accessor :disabled - alias_method :disabled?, :disabled - - # RepoSource describes the location of the source in a Google Cloud Source - # Repository. - # Corresponds to the JSON property `triggerTemplate` - # @return [Google::Apis::CloudbuildV1::RepoSource] - attr_accessor :trigger_template - - # Path, from the source root, to a file whose contents is used for the - # template. - # Corresponds to the JSON property `filename` - # @return [String] - attr_accessor :filename - - # Unique identifier of the trigger. - # @OutputOnly - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # A build resource in the Container Builder API. - # At a high level, a Build describes where to find source code, how to build - # it (for example, the builder image to run on the source), and what tag to - # apply to the built image when it is pushed to Google Container Registry. - # Fields can include the following variables which will be expanded when the - # build is created: - # - $PROJECT_ID: the project ID of the build. - # - $BUILD_ID: the autogenerated ID of the build. - # - $REPO_NAME: the source repository name specified by RepoSource. - # - $BRANCH_NAME: the branch name specified by RepoSource. - # - $TAG_NAME: the tag name specified by RepoSource. - # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or - # resolved from the specified branch or tag. - # Corresponds to the JSON property `build` - # @return [Google::Apis::CloudbuildV1::Build] - attr_accessor :build - - # Substitutions data for Build resource. - # Corresponds to the JSON property `substitutions` - # @return [Hash] - attr_accessor :substitutions - - # Human-readable description of this trigger. - # 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) - @create_time = args[:create_time] if args.key?(:create_time) - @disabled = args[:disabled] if args.key?(:disabled) - @trigger_template = args[:trigger_template] if args.key?(:trigger_template) - @filename = args[:filename] if args.key?(:filename) - @id = args[:id] if args.key?(:id) - @build = args[:build] if args.key?(:build) - @substitutions = args[:substitutions] if args.key?(:substitutions) - @description = args[:description] if args.key?(:description) - end - end - - # A build resource in the Container Builder API. - # At a high level, a Build describes where to find source code, how to build - # it (for example, the builder image to run on the source), and what tag to - # apply to the built image when it is pushed to Google Container Registry. - # Fields can include the following variables which will be expanded when the - # build is created: - # - $PROJECT_ID: the project ID of the build. - # - $BUILD_ID: the autogenerated ID of the build. - # - $REPO_NAME: the source repository name specified by RepoSource. - # - $BRANCH_NAME: the branch name specified by RepoSource. - # - $TAG_NAME: the tag name specified by RepoSource. - # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or - # resolved from the specified branch or tag. - class Build - include Google::Apis::Core::Hashable - - # Time at which the request to create the build was received. - # @OutputOnly - # Corresponds to the JSON property `createTime` - # @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. - # The digests of the pushed images will be stored in the Build resource's - # results field. - # If any of the images fail to be pushed, the build is marked FAILURE. - # Corresponds to the JSON property `images` - # @return [Array] - attr_accessor :images - - # ID of the project. - # @OutputOnly. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - # Time at which execution of the build was finished. - # The difference between finish_time and start_time is the duration of the - # build's execution. - # @OutputOnly - # Corresponds to the JSON property `finishTime` - # @return [String] - attr_accessor :finish_time - - # URL to logs for this build in Google Cloud Logging. - # @OutputOnly - # Corresponds to the JSON property `logUrl` - # @return [String] - attr_accessor :log_url - - # Source describes the location of the source in a supported storage - # service. - # Corresponds to the JSON property `source` - # @return [Google::Apis::CloudbuildV1::Source] - attr_accessor :source - - # Optional arguments to enable specific features of builds. - # Corresponds to the JSON property `options` - # @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 - - # 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 - - # Unique identifier of the build. - # @OutputOnly - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Time at which execution of the build was started. - # @OutputOnly - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Substitutions data for Build resource. - # Corresponds to the JSON property `substitutions` - # @return [Hash] - attr_accessor :substitutions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @create_time = args[:create_time] if args.key?(:create_time) - @source_provenance = args[:source_provenance] if args.key?(:source_provenance) - @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) - @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) - @id = args[:id] if args.key?(:id) - @start_time = args[:start_time] if args.key?(:start_time) - @substitutions = args[:substitutions] if args.key?(:substitutions) - 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 end end end diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index 03d0a2934..adeaaf7a5 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -22,6 +22,42 @@ module Google module Apis module CloudbuildV1 + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BuildTrigger + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Build + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + 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 @@ -64,24 +100,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListBuildTriggersResponse 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 BuiltImage class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class RepoSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BuildStep class Representation < Google::Apis::Core::JsonRepresentation; end @@ -94,12 +136,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RepoSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class FileHashes class Representation < Google::Apis::Core::JsonRepresentation; end @@ -113,48 +149,87 @@ module Google 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 BuildTrigger - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disabled, as: 'disabled' + property :create_time, as: 'createTime' + property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation - include Google::Apis::Core::JsonObjectSupport + property :filename, as: 'filename' + property :id, as: 'id' + property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation + + hash :substitutions, as: 'substitutions' + property :description, as: 'description' + end end class Build - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation - include Google::Apis::Core::JsonObjectSupport + property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation + + 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' + property :id, as: 'id' + property :start_time, as: 'startTime' + hash :substitutions, as: 'substitutions' + property :create_time, as: 'createTime' + property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation + + collection :images, as: 'images' + property :project_id, as: 'projectId' + property :finish_time, as: 'finishTime' + property :log_url, as: 'logUrl' + end end class CancelBuildRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class ListBuildsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + end end class ListOperationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + end end class Source # @private class Representation < Google::Apis::Core::JsonRepresentation - property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation - 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 @@ -169,9 +244,9 @@ module Google class StorageSource # @private class Representation < Google::Apis::Core::JsonRepresentation - property :generation, as: 'generation' property :bucket, as: 'bucket' property :object, as: 'object' + property :generation, as: 'generation' end end @@ -210,18 +285,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::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation - - hash :metadata, as: 'metadata' - property :done, as: 'done' - end - end - class ListBuildTriggersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -230,11 +293,34 @@ 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 BuiltImage # @private class Representation < Google::Apis::Core::JsonRepresentation - property :digest, as: 'digest' property :name, as: 'name' + property :digest, as: 'digest' + end + end + + class RepoSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_id, as: 'projectId' + property :repo_name, as: 'repoName' + property :branch_name, as: 'branchName' + property :tag_name, as: 'tagName' + property :commit_sha, as: 'commitSha' end end @@ -259,17 +345,6 @@ module Google 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 FileHashes # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -286,81 +361,6 @@ module Google collection :details, as: 'details' end end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class BuildTrigger - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :disabled, as: 'disabled' - property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation - - property :filename, as: 'filename' - property :id, as: 'id' - property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation - - hash :substitutions, as: 'substitutions' - property :description, as: 'description' - end - end - - class Build - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation - - collection :images, as: 'images' - property :project_id, as: 'projectId' - property :finish_time, as: 'finishTime' - property :log_url, as: 'logUrl' - property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation - - 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' - 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' - property :id, as: 'id' - property :start_time, as: 'startTime' - hash :substitutions, as: 'substitutions' - 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 end end end diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb index c2f12f3fa..ac333aa2a 100644 --- a/generated/google/apis/cloudbuild_v1/service.rb +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -46,19 +46,13 @@ module Google super('https://cloudbuild.googleapis.com/', '') 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 [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object + # Returns information about a previously requested build. + # The Build that is returned includes its status (e.g., success or failure, + # or in-progress), and timing information. + # @param [String] project_id + # ID of the project. + # @param [String] id + # ID of the build. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -68,38 +62,36 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object + # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudbuildV1::Empty] + # @return [Google::Apis::CloudbuildV1::Build] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_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? + 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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding below allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. - # @param [String] name - # The name of the operation collection. - # @param [String] filter - # The standard list filter. - # @param [String] page_token - # The standard list page token. + # Lists previously requested builds. + # Previously requested builds may still be in-progress, or may have finished + # successfully or unsuccessfully. + # @param [String] project_id + # ID of the project. # @param [Fixnum] page_size - # The standard list page size. + # Number of results to return in the list. + # @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 [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -109,32 +101,34 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudbuildV1::ListOperationsResponse] + # @return [Google::Apis::CloudbuildV1::ListBuildsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_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::CloudbuildV1::ListOperationsResponse::Representation - command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse - command.params['name'] = name unless name.nil? + def list_project_builds(project_id, page_size: nil, filter: nil, page_token: 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['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['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. + # 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] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -152,22 +146,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_operation(name, fields: nil, quota_user: 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.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. + # Cancels a requested build in progress. # @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 [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 @@ -177,20 +173,22 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object + # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudbuildV1::Empty] + # @return [Google::Apis::CloudbuildV1::Build] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def 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 + 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['triggerId'] = trigger_id unless trigger_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) @@ -332,12 +330,12 @@ module Google execute_or_queue_command(command, &block) end - # Cancels a requested build in progress. + # Deletes an BuildTrigger by its project ID and trigger ID. + # This API is experimental. # @param [String] project_id - # ID of the project. - # @param [String] id - # ID of the build. - # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object + # 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 @@ -347,73 +345,37 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object + # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudbuildV1::Build] + # @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 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 + 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['id'] = id unless 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 - # Returns information about a previously requested build. - # The Build that is returned includes its status (e.g., success or failure, - # or in-progress), and timing information. - # @param [String] project_id - # ID of the project. - # @param [String] id - # ID of the build. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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::Build] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudbuildV1::Build] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_build(project_id, id, 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists previously requested builds. - # Previously requested builds may still be in-progress, or may have finished - # successfully or unsuccessfully. - # @param [String] project_id - # ID of the project. - # @param [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. + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding below allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. + # @param [String] name + # The name of the operation collection. # @param [Fixnum] page_size - # Number of results to return in the list. + # 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 @@ -423,34 +385,32 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object + # @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudbuildV1::ListBuildsResponse] + # @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_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? + def list_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}', options) + command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? command.query['filter'] = filter unless filter.nil? command.query['pageToken'] = page_token unless page_token.nil? - command.query['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 - # 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 + # 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 @@ -468,13 +428,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 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 + 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['projectId'] = project_id unless project_id.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 + + # 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 [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 [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 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['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/clouddebugger_v2.rb b/generated/google/apis/clouddebugger_v2.rb index 85f11832b..f1adfa105 100644 --- a/generated/google/apis/clouddebugger_v2.rb +++ b/generated/google/apis/clouddebugger_v2.rb @@ -28,11 +28,11 @@ module Google VERSION = 'V2' REVISION = '20170322' - # Manage cloud debugger - AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger' - # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # Manage cloud debugger + AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger' end end end diff --git a/generated/google/apis/clouddebugger_v2/classes.rb b/generated/google/apis/clouddebugger_v2/classes.rb index 7e36f5b84..0eaa44ad1 100644 --- a/generated/google/apis/clouddebugger_v2/classes.rb +++ b/generated/google/apis/clouddebugger_v2/classes.rb @@ -22,6 +22,476 @@ module Google module Apis module ClouddebuggerV2 + # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. + class CloudWorkspaceSourceContext + include Google::Apis::Core::Hashable + + # The ID of the snapshot. + # An empty snapshot_id refers to the most recent snapshot. + # Corresponds to the JSON property `snapshotId` + # @return [String] + attr_accessor :snapshot_id + + # A CloudWorkspaceId is a unique identifier for a cloud workspace. + # A cloud workspace is a place associated with a repo where modified files + # can be stored before they are committed. + # Corresponds to the JSON property `workspaceId` + # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId] + attr_accessor :workspace_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id) + @workspace_id = args[:workspace_id] if args.key?(:workspace_id) + end + end + + # Response for updating an active breakpoint. + # The message is defined to allow future extensions. + class UpdateActiveBreakpointResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A SourceContext referring to a Gerrit project. + class GerritSourceContext + include Google::Apis::Core::Hashable + + # The full project name within the host. Projects may be nested, so + # "project/subproject" is a valid project name. + # The "repo name" is hostURI/project. + # Corresponds to the JSON property `gerritProject` + # @return [String] + attr_accessor :gerrit_project + + # 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) + @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 + + # 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @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) + 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 + + # 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 + + # 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) + @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) + @repo_id = args[:repo_id] if args.key?(:repo_id) + 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,11 +500,6 @@ module Google class StatusMessage include Google::Apis::Core::Hashable - # Reference to which the message applies. - # Corresponds to the JSON property `refersTo` - # @return [String] - attr_accessor :refers_to - # Distinguishes errors from informational messages. # Corresponds to the JSON property `isError` # @return [Boolean] @@ -46,15 +511,20 @@ module Google # @return [Google::Apis::ClouddebuggerV2::FormatMessage] attr_accessor :description + # Reference to which the message applies. + # Corresponds to the JSON property `refersTo` + # @return [String] + attr_accessor :refers_to + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @refers_to = args[:refers_to] if args.key?(:refers_to) @is_error = args[:is_error] if args.key?(:is_error) @description = args[:description] if args.key?(:description) + @refers_to = args[:refers_to] if args.key?(:refers_to) end end @@ -170,6 +640,23 @@ module Google class Variable include Google::Apis::Core::Hashable + # Simple value of the variable. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # 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 + + # Members contained or pointed to by the variable. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + # Represents a contextual status message. # The message can indicate an error or informational status, and refer to # specific parts of the containing object. @@ -192,35 +679,18 @@ 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 - - # Members contained or pointed to by the variable. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @value = args[:value] if args.key?(:value) + @var_table_index = args[:var_table_index] if args.key?(:var_table_index) + @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) - @members = args[:members] if args.key?(:members) end end @@ -228,6 +698,11 @@ module Google class StackFrame include Google::Apis::Core::Hashable + # Demangled function name at the call site. + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + # Set of arguments passed to this function. # Note that this might not be populated for all stack frames. # Corresponds to the JSON property `arguments` @@ -245,21 +720,16 @@ module Google # @return [Google::Apis::ClouddebuggerV2::SourceLocation] attr_accessor :location - # Demangled function name at the call site. - # 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) + @function = args[:function] if args.key?(:function) @arguments = args[:arguments] if args.key?(:arguments) @locals = args[:locals] if args.key?(:locals) @location = args[:location] if args.key?(:location) - @function = args[:function] if args.key?(:function) end end @@ -267,25 +737,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) - @uid = args[:uid] if args.key?(:uid) @project_repo_id = args[:project_repo_id] if args.key?(:project_repo_id) + @uid = args[:uid] if args.key?(:uid) end end @@ -447,13 +917,6 @@ module Google class Debuggee include Google::Apis::Core::Hashable - # Debuggee uniquifier within the project. - # Any string that identifies the application within the project can be used. - # Including environment and version or build IDs is recommended. - # Corresponds to the JSON property `uniquifier` - # @return [String] - attr_accessor :uniquifier - # Human readable description of the debuggee. # Including a human-readable project name, environment name and version # information is recommended. @@ -461,6 +924,13 @@ module Google # @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 @@ -485,6 +955,13 @@ module Google # @return [Hash] attr_accessor :labels + # If set to `true`, indicates that the debuggee is considered as inactive by + # the Controller service. + # Corresponds to the JSON property `isInactive` + # @return [Boolean] + attr_accessor :is_inactive + alias_method :is_inactive?, :is_inactive + # Represents a contextual status message. # The message can indicate an error or informational status, and refer to # specific parts of the containing object. @@ -494,13 +971,6 @@ module Google # @return [Google::Apis::ClouddebuggerV2::StatusMessage] attr_accessor :status - # If set to `true`, indicates that the debuggee is considered as inactive by - # the Controller service. - # Corresponds to the JSON property `isInactive` - # @return [Boolean] - attr_accessor :is_inactive - alias_method :is_inactive?, :is_inactive - # Project the debuggee is associated with. # Use the project number when registering a Google Cloud Platform project. # Corresponds to the JSON property `project` @@ -532,13 +1002,13 @@ module Google # Update properties of this object def update!(**args) - @uniquifier = args[:uniquifier] if args.key?(:uniquifier) @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) - @status = args[:status] if args.key?(:status) @is_inactive = args[:is_inactive] if args.key?(:is_inactive) + @status = args[:status] if args.key?(:status) @project = args[:project] if args.key?(:project) @is_disabled = args[:is_disabled] if args.key?(:is_disabled) @agent_version = args[:agent_version] if args.key?(:agent_version) @@ -546,41 +1016,6 @@ module Google end end - # Response for listing active breakpoints. - class ListActiveBreakpointsResponse - include Google::Apis::Core::Hashable - - # List of all active breakpoints. - # The fields `id` and `location` are guaranteed to be set on each breakpoint. - # Corresponds to the JSON property `breakpoints` - # @return [Array] - attr_accessor :breakpoints - - # 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` - # @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) - @wait_expired = args[:wait_expired] if args.key?(:wait_expired) - @next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token) - end - end - # Selects a repo using a Google Cloud Platform project ID # (e.g. winged-cargo-31) and a repo name within that project. class ProjectRepoId @@ -607,269 +1042,28 @@ module Google end end - # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. - class CloudWorkspaceSourceContext + # Response for listing active breakpoints. + class ListActiveBreakpointsResponse include Google::Apis::Core::Hashable - # A CloudWorkspaceId is a unique identifier for a cloud workspace. - # A cloud workspace is a place associated with a repo where modified files - # can be stored before they are committed. - # Corresponds to the JSON property `workspaceId` - # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId] - attr_accessor :workspace_id - - # The ID of the snapshot. - # An empty snapshot_id refers to the most recent snapshot. - # Corresponds to the JSON property `snapshotId` - # @return [String] - attr_accessor :snapshot_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @workspace_id = args[:workspace_id] if args.key?(:workspace_id) - @snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id) - end - end - - # Response for updating an active breakpoint. - # The message is defined to allow future extensions. - class UpdateActiveBreakpointResponse - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # A SourceContext referring to a Gerrit project. - class GerritSourceContext - include Google::Apis::Core::Hashable - - # The URI of a running Gerrit instance. - # Corresponds to the JSON property `hostUri` - # @return [String] - attr_accessor :host_uri - - # 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 - - # The full project name within the host. Projects may be nested, so - # "project/subproject" is a valid project name. - # The "repo name" is hostURI/project. - # Corresponds to the JSON property `gerritProject` - # @return [String] - attr_accessor :gerrit_project - - # An alias to a repo revision. - # Corresponds to the JSON property `aliasContext` - # @return [Google::Apis::ClouddebuggerV2::AliasContext] - attr_accessor :alias_context - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @host_uri = args[:host_uri] 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) - @gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project) - @alias_context = args[:alias_context] if args.key?(:alias_context) - end - end - - # A CloudWorkspaceId is a unique identifier for a cloud workspace. - # A cloud workspace is a place associated with a repo where modified files - # can be stored before they are committed. - class CloudWorkspaceId - include Google::Apis::Core::Hashable - - # A unique identifier for a cloud repo. - # Corresponds to the JSON property `repoId` - # @return [Google::Apis::ClouddebuggerV2::RepoId] - attr_accessor :repo_id - - # The unique name of the workspace within the repo. This is the name - # chosen by the client in the Source API's CreateWorkspace method. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @repo_id = args[:repo_id] 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. + # A wait token that can be used in the next method call to block until + # the list of breakpoints changes. # Corresponds to the JSON property `nextWaitToken` # @return [String] attr_accessor :next_wait_token - def initialize(**args) - update!(**args) - end + # List of all active breakpoints. + # The fields `id` and `location` are guaranteed to be set on each breakpoint. + # Corresponds to the JSON property `breakpoints` + # @return [Array] + attr_accessor :breakpoints - # 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 - - # 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` + # 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 :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 - - # 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 + attr_accessor :wait_expired + alias_method :wait_expired?, :wait_expired def initialize(**args) update!(**args) @@ -877,203 +1071,9 @@ module Google # Update properties of this object def update!(**args) - @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) - @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) - 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 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @git = args[:git] if args.key?(:git) - @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) - 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) + @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 end diff --git a/generated/google/apis/clouddebugger_v2/representations.rb b/generated/google/apis/clouddebugger_v2/representations.rb index 2635f4c56..a281c8d19 100644 --- a/generated/google/apis/clouddebugger_v2/representations.rb +++ b/generated/google/apis/clouddebugger_v2/representations.rb @@ -22,90 +22,6 @@ module Google module Apis module ClouddebuggerV2 - class StatusMessage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GitSourceContext - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Variable - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StackFrame - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RepoId - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class FormatMessage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ExtendedSourceContext - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListDebuggeesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AliasContext - 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 SourceLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Debuggee - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListActiveBreakpointsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ProjectRepoId - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CloudWorkspaceSourceContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -184,13 +100,235 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class StatusMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GitSourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Variable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StackFrame + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepoId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FormatMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExtendedSourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListDebuggeesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AliasContext + 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 SourceLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Debuggee + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProjectRepoId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListActiveBreakpointsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudWorkspaceSourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :snapshot_id, as: 'snapshotId' + property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation + + end + end + + class UpdateActiveBreakpointResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + 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 :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 + collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation + + property :next_wait_token, as: 'nextWaitToken' + end + end + + class Breakpoint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + property :user_email, as: 'userEmail' + property :action, as: 'action' + property :log_level, as: 'logLevel' + 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 :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' + property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::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 + + end + end + class StatusMessage # @private class Representation < Google::Apis::Core::JsonRepresentation - property :refers_to, as: 'refersTo' property :is_error, as: 'isError' property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation + property :refers_to, as: 'refersTo' end end @@ -205,36 +343,36 @@ module Google class Variable # @private class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + property :var_table_index, as: 'varTableIndex' + 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' - collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation - end end class StackFrame # @private class Representation < Google::Apis::Core::JsonRepresentation + property :function, as: 'function' collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation - property :function, as: 'function' end end 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 @@ -288,16 +426,16 @@ module Google class Debuggee # @private class Representation < Google::Apis::Core::JsonRepresentation - property :uniquifier, as: 'uniquifier' 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' + property :is_inactive, as: 'isInactive' property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation - property :is_inactive, as: 'isInactive' property :project, as: 'project' property :is_disabled, as: 'isDisabled' property :agent_version, as: 'agentVersion' @@ -305,16 +443,6 @@ module Google end end - class ListActiveBreakpointsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - - property :wait_expired, as: 'waitExpired' - property :next_wait_token, as: 'nextWaitToken' - end - end - class ProjectRepoId # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -323,141 +451,13 @@ module Google end end - class CloudWorkspaceSourceContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation - - property :snapshot_id, as: 'snapshotId' - end - end - - class UpdateActiveBreakpointResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class GerritSourceContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :host_uri, as: 'hostUri' - property :revision_id, as: 'revisionId' - property :alias_name, as: 'aliasName' - property :gerrit_project, as: 'gerritProject' - property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation - - end - end - - class CloudWorkspaceId - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation - - property :name, as: 'name' - end - end - - class ListBreakpointsResponse + class ListActiveBreakpointsResponse # @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 - property :next_wait_token, as: 'nextWaitToken' - end - end - - class Breakpoint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - 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 - - hash :labels, as: 'labels' - property :log_message_format, as: 'logMessageFormat' - property :create_time, as: 'createTime' - 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 :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation - - 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 - - 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 :wait_expired, as: 'waitExpired' end end end diff --git a/generated/google/apis/clouddebugger_v2/service.rb b/generated/google/apis/clouddebugger_v2/service.rb index 6e17ceed1..8ea9a6c56 100644 --- a/generated/google/apis/clouddebugger_v2/service.rb +++ b/generated/google/apis/clouddebugger_v2/service.rb @@ -199,9 +199,6 @@ module Google # Lists all breakpoints for the debuggee. # @param [String] debuggee_id # ID of the debuggee whose breakpoints to list. - # @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 @@ -213,12 +210,15 @@ module Google # @param [String] client_version # The client version making the call. # Following: `domain/type/version` (e.g., `google.com/intellij/v1`). - # @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] 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 @@ -236,17 +236,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_debugger_debuggee_breakpoints(debuggee_id, strip_results: nil, wait_token: nil, action_value: nil, client_version: nil, include_all_users: nil, include_inactive: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_debugger_debuggee_breakpoints(debuggee_id, wait_token: nil, action_value: nil, client_version: 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['stripResults'] = strip_results unless strip_results.nil? command.query['waitToken'] = wait_token unless wait_token.nil? command.query['action.value'] = action_value unless action_value.nil? command.query['clientVersion'] = client_version unless client_version.nil? - command.query['includeAllUsers'] = include_all_users unless include_all_users.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) @@ -289,58 +289,6 @@ module Google execute_or_queue_command(command, &block) end - # Returns the list of all active breakpoints for the debuggee. - # The breakpoint specification (location, condition, and expression - # fields) is semantically immutable, although the field values may - # change. For example, an agent may update the location line number - # to reflect the actual line where the breakpoint was set, but this - # doesn't change the breakpoint semantics. - # This means that an agent does not need to check if a breakpoint has changed - # when it encounters the same breakpoint on a successive call. - # Moreover, an agent should remember the breakpoints that are completed - # until the controller removes them from the active list to avoid - # setting those breakpoints again. - # @param [String] debuggee_id - # Identifies the debuggee. - # @param [Boolean] success_on_timeout - # If set to `true`, returns `google.rpc.Code.OK` status and sets the - # `wait_expired` response field to `true` when the server-selected timeout - # has expired (recommended). - # If set to `false`, returns `google.rpc.Code.ABORTED` status when the - # server-selected timeout has expired (deprecated). - # @param [String] wait_token - # A wait token that, if specified, blocks the method call until the list - # of active breakpoints has changed, or a server selected timeout has - # expired. The value should be set from the last returned response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_controller_debuggee_breakpoints(debuggee_id, 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['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. @@ -383,6 +331,58 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Returns the list of all active breakpoints for the debuggee. + # The breakpoint specification (location, condition, and expression + # fields) is semantically immutable, although the field values may + # change. For example, an agent may update the location line number + # to reflect the actual line where the breakpoint was set, but this + # doesn't change the breakpoint semantics. + # This means that an agent does not need to check if a breakpoint has changed + # when it encounters the same breakpoint on a successive call. + # Moreover, an agent should remember the breakpoints that are completed + # until the controller removes them from the active list to avoid + # setting those breakpoints again. + # @param [String] debuggee_id + # Identifies the debuggee. + # @param [String] wait_token + # A wait token that, if specified, blocks the method call until the list + # of active breakpoints has changed, or a server selected timeout has + # expired. The value should be set from the last returned response. + # @param [Boolean] success_on_timeout + # If set to `true`, returns `google.rpc.Code.OK` status and sets the + # `wait_expired` response field to `true` when the server-selected timeout + # has expired (recommended). + # If set to `false`, returns `google.rpc.Code.ABORTED` status when the + # server-selected timeout has expired (deprecated). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_controller_debuggee_breakpoints(debuggee_id, wait_token: nil, success_on_timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options) + command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.query['waitToken'] = wait_token unless wait_token.nil? + command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/clouderrorreporting_v1beta1/classes.rb b/generated/google/apis/clouderrorreporting_v1beta1/classes.rb index ab34e68e9..37ed93507 100644 --- a/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +++ b/generated/google/apis/clouderrorreporting_v1beta1/classes.rb @@ -27,19 +27,24 @@ 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` # @return [String] attr_accessor :count - # Approximate last 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 `lastSeenTime` - # @return [String] - attr_accessor :last_seen_time - # Approximate number of affected users in the given group that # match the filter criteria. # Users are distinguished by data in the `ErrorContext` of the @@ -56,6 +61,13 @@ module Google # @return [String] attr_accessor :affected_users_count + # Approximate last 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 `lastSeenTime` + # @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` @@ -83,33 +95,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) - @last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time) @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) @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 @@ -183,6 +183,12 @@ module Google class ErrorGroup include Google::Apis::Core::Hashable + # The group resource name. + # Example: projects/my-project-123/groups/my-groupid + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # 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` @@ -194,21 +200,15 @@ module Google # @return [Array] attr_accessor :tracking_issues - # The group resource name. - # Example: projects/my-project-123/groups/my-groupid - # 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) @group_id = args[:group_id] if args.key?(:group_id) @tracking_issues = args[:tracking_issues] if args.key?(:tracking_issues) - @name = args[:name] if args.key?(:name) end end @@ -313,6 +313,21 @@ module Google class HttpRequestContext include Google::Apis::Core::Hashable + # The referrer information that is provided with the request. + # Corresponds to the JSON property `referrer` + # @return [String] + attr_accessor :referrer + + # The user agent information that is provided with the request. + # Corresponds to the JSON property `userAgent` + # @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] @@ -331,33 +346,18 @@ module Google # @return [String] attr_accessor :remote_ip - # The referrer information that is provided with the request. - # Corresponds to the JSON property `referrer` - # @return [String] - attr_accessor :referrer - - # The user agent information that is provided with the request. - # Corresponds to the JSON property `userAgent` - # @return [String] - attr_accessor :user_agent - - # The URL of the request. - # 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) - @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) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @remote_ip = args[:remote_ip] if args.key?(:remote_ip) end end @@ -414,19 +414,6 @@ 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. - # Corresponds to the JSON property `eventTime` - # @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 @@ -440,16 +427,29 @@ 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 + + # 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. + # Corresponds to the JSON property `eventTime` + # @return [String] + attr_accessor :event_time + 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) + @event_time = args[:event_time] if args.key?(:event_time) end end @@ -457,13 +457,6 @@ module Google class ReportedErrorEvent include Google::Apis::Core::Hashable - # [Optional] Time when the event occurred. - # If not provided, the time when the event was received by the - # Error Reporting system will be used. - # Corresponds to the JSON property `eventTime` - # @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 @@ -506,16 +499,23 @@ module Google # @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext] attr_accessor :service_context + # [Optional] Time when the event occurred. + # If not provided, the time when the event was received by the + # Error Reporting system will be used. + # Corresponds to the JSON property `eventTime` + # @return [String] + attr_accessor :event_time + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) + @event_time = args[:event_time] if args.key?(:event_time) end end @@ -526,6 +526,14 @@ module Google class ErrorContext include Google::Apis::Core::Hashable + # 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. @@ -546,23 +554,15 @@ module Google # @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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @http_request = args[:http_request] if args.key?(:http_request) @user = args[:user] if args.key?(:user) @report_location = args[:report_location] if args.key?(:report_location) - @http_request = args[:http_request] if args.key?(:http_request) end end diff --git a/generated/google/apis/clouderrorreporting_v1beta1/representations.rb b/generated/google/apis/clouderrorreporting_v1beta1/representations.rb index 6f7f2a67e..58dd05ab7 100644 --- a/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +++ b/generated/google/apis/clouderrorreporting_v1beta1/representations.rb @@ -109,9 +109,12 @@ 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, as: 'count' - property :last_seen_time, as: 'lastSeenTime' property :affected_users_count, 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 @@ -119,9 +122,6 @@ module Google 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 @@ -147,10 +147,10 @@ module Google class ErrorGroup # @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 - property :name, as: 'name' end end @@ -181,12 +181,12 @@ module Google class HttpRequestContext # @private class Representation < Google::Apis::Core::JsonRepresentation - 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' + property :method_prop, as: 'method' + property :remote_ip, as: 'remoteIp' end end @@ -209,35 +209,35 @@ 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 + + property :event_time, as: 'eventTime' end end class ReportedErrorEvent # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 + property :event_time, as: 'eventTime' end end class ErrorContext # @private class Representation < Google::Apis::Core::JsonRepresentation + property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation + property :user, as: 'user' 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 - end end diff --git a/generated/google/apis/clouderrorreporting_v1beta1/service.rb b/generated/google/apis/clouderrorreporting_v1beta1/service.rb index 7a03b91a0..42da9f6a6 100644 --- a/generated/google/apis/clouderrorreporting_v1beta1/service.rb +++ b/generated/google/apis/clouderrorreporting_v1beta1/service.rb @@ -82,6 +82,111 @@ module Google 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 + # as `projects/` plus the + # [Google Cloud Platform project + # ID](https://support.google.com/cloud/answer/6158840). + # Example: `projects/my-project-123`. + # @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 + # [Optional] The exact value to match against + # [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ + # ServiceContext#FIELDS.version). + # @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] 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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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, 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, fields: nil, quota_user: 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['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['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Report an individual error event. + # This endpoint accepts either an OAuth token, + # or an + # API key + # for authentication. To use an API key, append it to the URL as the value of + # a `key` parameter. For example: + #
POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
+        # project/events:report?key=123ABC456
+ # @param [String] project_name + # [Required] The resource name of the Google Cloud Platform project. Written + # as `projects/` plus the + # [Google Cloud Platform project ID](https://support.google.com/cloud/answer/ + # 6158840). + # Example: `projects/my-project-123`. + # @param [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_event(project_name, reported_error_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+projectName}/events:report', options) + command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent::Representation + command.request_object = reported_error_event_object + command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse::Representation + command.response_class = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse + command.params['projectName'] = project_name unless project_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Get the specified group. # @param [String] group_name # [Required] The group resource name. Written as @@ -160,13 +265,6 @@ module Google # Google Cloud # Platform project ID. # Example: projects/my-project-123. - # @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 @@ -195,6 +293,13 @@ module Google # @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] 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] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -212,13 +317,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_group_stats(project_name, 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, service_filter_resource_type: nil, alignment_time: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_group_stats(project_name, time_range_period: nil, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, service_filter_resource_type: nil, alignment_time: nil, timed_count_duration: nil, page_token: nil, fields: nil, quota_user: 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['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? @@ -228,111 +331,8 @@ module Google 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['alignmentTime'] = alignment_time unless alignment_time.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 specified events. - # @param [String] project_name - # [Required] The resource name of the Google Cloud Platform project. Written - # as `projects/` plus the - # [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 [Fixnum] page_size - # [Optional] The maximum number of results to return per response. - # @param [String] service_filter_version - # [Optional] The exact value to match against - # [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ - # ServiceContext#FIELDS.version). - # @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] time_range_period - # Restricts the query to the specified time range. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @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, fields: nil, quota_user: 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['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil? command.query['pageToken'] = page_token unless page_token.nil? - command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Report an individual error event. - # This endpoint accepts either an OAuth token, - # or an - # API key - # for authentication. To use an API key, append it to the URL as the value of - # a `key` parameter. For example: - #
POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
-        # project/events:report?key=123ABC456
- # @param [String] project_name - # [Required] The resource name of the Google Cloud Platform project. Written - # as `projects/` plus the - # [Google Cloud Platform project ID](https://support.google.com/cloud/answer/ - # 6158840). - # Example: `projects/my-project-123`. - # @param [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_event(project_name, reported_error_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+projectName}/events:report', options) - command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent::Representation - command.request_object = reported_error_event_object - command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse::Representation - command.response_class = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse - command.params['projectName'] = project_name unless project_name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/cloudfunctions_v1/classes.rb b/generated/google/apis/cloudfunctions_v1/classes.rb index f44f7957f..fabf9dad2 100644 --- a/generated/google/apis/cloudfunctions_v1/classes.rb +++ b/generated/google/apis/cloudfunctions_v1/classes.rb @@ -26,11 +26,6 @@ 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` @@ -49,16 +44,21 @@ 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 + 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) + @location_id = args[:location_id] if args.key?(:location_id) end end diff --git a/generated/google/apis/cloudfunctions_v1/representations.rb b/generated/google/apis/cloudfunctions_v1/representations.rb index 011e62b8b..5d71906f8 100644 --- a/generated/google/apis/cloudfunctions_v1/representations.rb +++ b/generated/google/apis/cloudfunctions_v1/representations.rb @@ -37,10 +37,10 @@ module Google 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' + property :location_id, as: 'locationId' end end diff --git a/generated/google/apis/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index 1693a1652..616aa511a 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -22,82 +22,15 @@ module Google module Apis module CloudkmsV1 - # 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 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] @@ -124,23 +57,18 @@ module Google # @return [String] attr_accessor :iam - # An operator to apply the subject with. - # 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) @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) - @op = args[:op] if args.key?(:op) end end @@ -218,6 +146,7 @@ module Google # The decrypted data originally supplied in EncryptRequest.plaintext. # Corresponds to the JSON property `plaintext` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :plaintext @@ -257,25 +186,25 @@ module Google class KeyRing include Google::Apis::Core::Hashable - # Output only. The time at which this KeyRing was created. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - # Output only. The resource name for the KeyRing in the format # `projects/*/locations/*/keyRings/*`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # Output only. The time at which this KeyRing 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) - @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) + @create_time = args[:create_time] if args.key?(:create_time) end end @@ -283,24 +212,25 @@ module Google class EncryptResponse include Google::Apis::Core::Hashable + # 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 - # The encrypted data. - # Corresponds to the JSON property `ciphertext` - # @return [String] - attr_accessor :ciphertext - 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 @@ -308,24 +238,24 @@ module Google 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 + # 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) @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -358,19 +288,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` - # @return [String] - attr_accessor :etag - # # Corresponds to the JSON property `iamOwned` # @return [Boolean] @@ -407,18 +324,32 @@ 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) + @etag = args[:etag] if args.key?(:etag) end end @@ -454,19 +385,6 @@ module Google end end - # Write a Data Access (Gin) log - class DataAccessOptions - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # Response message for KeyManagementService.ListKeyRings. class ListKeyRingsResponse include Google::Apis::Core::Hashable @@ -499,6 +417,19 @@ module Google end end + # Write a Data Access (Gin) log + class DataAccessOptions + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Specifies the audit configuration for a service. # The configuration determines which permission types are logged, and what # identities, if any, are exempted from logging. @@ -688,26 +619,28 @@ module Google 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 - # Required. The data to encrypt. Must be no larger than 64KiB. - # Corresponds to the JSON property `plaintext` - # @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) + @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data) end end @@ -778,6 +711,68 @@ module Google 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 + # A CryptoKey represents a logical key that can be used for cryptographic # operations. # A CryptoKey is made up of one or more versions, which @@ -844,72 +839,15 @@ module Google 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 Cloud Audit log + # Corresponds to the JSON property `cloudAudit` + # @return [Google::Apis::CloudkmsV1::CloudAuditOptions] + attr_accessor :cloud_audit + # Options for counters # Corresponds to the JSON property `counter` # @return [Google::Apis::CloudkmsV1::CounterOptions] @@ -920,20 +858,15 @@ module Google # @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) + @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 @@ -998,12 +931,14 @@ module Google # 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 @@ -1017,6 +952,78 @@ module Google @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 + + # 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 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 end end end diff --git a/generated/google/apis/cloudkms_v1/representations.rb b/generated/google/apis/cloudkms_v1/representations.rb index 681f4074d..db5d2b2cc 100644 --- a/generated/google/apis/cloudkms_v1/representations.rb +++ b/generated/google/apis/cloudkms_v1/representations.rb @@ -22,18 +22,6 @@ module Google module Apis module CloudkmsV1 - 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 @@ -100,13 +88,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DataAccessOptions + class ListKeyRingsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListKeyRingsResponse + class DataAccessOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -160,13 +148,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CryptoKey + class Rule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Rule + class CryptoKey class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -191,34 +179,26 @@ module Google 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 + 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' collection :values, as: 'values' property :iam, as: 'iam' - property :op, as: 'op' end end @@ -255,32 +235,31 @@ module Google class KeyRing # @private class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' property :name, as: 'name' + property :create_time, as: 'createTime' end end 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 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 + 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 @@ -289,6 +268,7 @@ module Google collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation + property :etag, :base64 => true, as: 'etag' end end @@ -305,12 +285,6 @@ module Google end end - class DataAccessOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class ListKeyRingsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -321,6 +295,12 @@ module Google end end + class DataAccessOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class AuditConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -359,8 +339,8 @@ module Google class EncryptRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData' property :plaintext, :base64 => true, as: 'plaintext' + property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData' end end @@ -387,19 +367,6 @@ module Google end 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 - - property :name, as: 'name' - end - end - class Rule # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -415,15 +382,28 @@ module Google end 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 + + property :name, as: 'name' + end + end + class LogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation + 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 @@ -443,6 +423,26 @@ module Google property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData' 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' + collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation + + property :total_size, as: 'totalSize' + end + end end end end diff --git a/generated/google/apis/cloudkms_v1/service.rb b/generated/google/apis/cloudkms_v1/service.rb index b4d3e1ca3..07464e319 100644 --- a/generated/google/apis/cloudkms_v1/service.rb +++ b/generated/google/apis/cloudkms_v1/service.rb @@ -116,6 +116,47 @@ module Google execute_or_queue_command(command, &block) end + # Lists KeyRings. + # @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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should 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::ListKeyRingsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::ListKeyRingsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_token: nil, page_size: nil, fields: nil, quota_user: 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['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 new KeyRing in a given Project and Location. # @param [String] parent # Required. The resource name of the location associated with the @@ -291,47 +332,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists KeyRings. - # @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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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::ListKeyRingsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::ListKeyRingsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @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_token: nil, page_size: nil, fields: nil, quota_user: 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['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 CryptoKeys. # @param [String] parent # Required. The resource name of the KeyRing to list, in the format @@ -549,6 +549,37 @@ module Google 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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should 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 get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: 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['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 @@ -586,37 +617,6 @@ module Google 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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 get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: 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['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. @@ -690,19 +690,14 @@ module Google execute_or_queue_command(command, &block) end - # Lists CryptoKeyVersions. + # Create a new CryptoKeyVersion in a CryptoKey. + # The server will assign the next sequential id. If unset, + # state will be set to + # ENABLED. # @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. + # 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 @@ -712,21 +707,21 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse] parsed result object + # @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse] + # @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 list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: 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 + 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) + 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['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) @@ -774,43 +769,6 @@ module Google execute_or_queue_command(command, &block) end - # Create a new CryptoKeyVersion in a CryptoKey. - # The server will assign the next sequential id. If unset, - # state will be set to - # ENABLED. - # @param [String] parent - # 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 [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 create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: 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? - execute_or_queue_command(command, &block) - end - # Restore a CryptoKeyVersion in the # DESTROY_SCHEDULED, # state. @@ -920,6 +878,48 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Lists CryptoKeyVersions. + # @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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should 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::ListCryptoKeyVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_token: nil, page_size: nil, fields: nil, quota_user: 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['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/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index 8abfb896b..ea237f33b 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 = '20170327' + REVISION = '20170329' # 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 23138c9b7..26405177d 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -69,103 +69,6 @@ module Google 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` which can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting purpose. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - # Corresponds to the JSON property `error` - # @return [Google::Apis::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 - # Specifies the audit configuration for a service. # The configuration determines which permission types are logged, and what # identities, if any, are exempted from logging. @@ -240,6 +143,204 @@ module Google end end + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # The 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` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::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 + + # 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) + @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 + + # 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 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 + # 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: @@ -312,107 +413,6 @@ module Google 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 - - # 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 - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @constraint_default = args[:constraint_default] if args.key?(:constraint_default) - @name = args[:name] if args.key?(:name) - @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) - end - end - # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable @@ -453,25 +453,6 @@ module Google 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. @@ -495,6 +476,25 @@ module Google 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 UndeleteProject # method. class UndeleteProjectRequest @@ -516,6 +516,7 @@ module Google # 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 @@ -687,26 +688,6 @@ module Google class Project include Google::Apis::Core::Hashable - # 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, @@ -748,19 +729,39 @@ module Google # @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) - @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) @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 @@ -799,26 +800,26 @@ module Google 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 + # 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 + 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) + @policies = args[:policies] if args.key?(:policies) end end @@ -841,97 +842,6 @@ module Google 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` - # @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 @@ -990,31 +900,103 @@ module Google 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 + + # 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 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 + + 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) + @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy) + @constraint = args[:constraint] if args.key?(:constraint) + 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` @@ -1028,6 +1010,14 @@ module Google # @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. @@ -1037,18 +1027,30 @@ module Google # @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) - @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) + @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 @@ -1543,6 +1545,108 @@ module Google end end + # The request sent to the [ListAvailableOrgPolicyConstraints] + # google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method. + class ListAvailableOrgPolicyConstraintsRequest + 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 + + # 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`. + # 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 + + 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 + # Metadata describing a long running folder operation class FolderOperation include Google::Apis::Core::Hashable @@ -1582,107 +1686,6 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **Example** - # ` - # "bindings": [ - # ` - # "role": "roles/owner", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com", - # ] - # `, - # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] - # ` - # ] - # ` - # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). - class Policy - include Google::Apis::Core::Hashable - - # Version of the `Policy`. The default version is 0. - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - # 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`. - # 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` - # @return [String] - attr_accessor :etag - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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 - 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 - # 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, @@ -1690,26 +1693,26 @@ module Google class ResourceId include Google::Apis::Core::Hashable - # Required field representing the resource type this id is for. - # At present, the valid types are: "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 + # Required field representing the resource type this id is for. + # At present, the valid types are: "organization" + # 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 end diff --git a/generated/google/apis/cloudresourcemanager_v1/representations.rb b/generated/google/apis/cloudresourcemanager_v1/representations.rb index c29c5a2e4..a80e55d47 100644 --- a/generated/google/apis/cloudresourcemanager_v1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1/representations.rb @@ -34,25 +34,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Operation - 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 Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListLiensResponse + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -64,19 +52,31 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListLiensResponse + 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 RestoreDefault class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RestoreDefault + class GetOrgPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -154,13 +154,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class OrgPolicy + class BooleanPolicy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class BooleanPolicy + class OrgPolicy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -250,7 +250,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 +262,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 @@ -289,18 +289,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::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation - - hash :metadata, as: 'metadata' - end - end - class AuditConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -310,6 +298,42 @@ 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::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation + + hash :metadata, as: 'metadata' + property :done, as: 'done' + end + 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 + + 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 + property :next_page_token, as: 'nextPageToken' + collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation + + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -319,30 +343,6 @@ module Google 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 Constraint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :constraint_default, as: 'constraintDefault' - property :name, as: 'name' - 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 - - end - end - class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -351,6 +351,12 @@ module Google end end + class RestoreDefault + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GetOrgPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -358,12 +364,6 @@ module Google end end - class RestoreDefault - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class UndeleteProjectRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -425,14 +425,14 @@ module Google class Project # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :create_time, as: 'createTime' property :name, as: 'name' property :project_id, as: 'projectId' property :lifecycle_state, as: 'lifecycleState' property :project_number, 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 @@ -448,9 +448,9 @@ module Google class ListOrgPoliciesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation - property :next_page_token, as: 'nextPageToken' end end @@ -461,22 +461,6 @@ module Google end 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 - - 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 - end - class BooleanPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -484,15 +468,31 @@ module Google 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 :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation + + property :constraint, as: 'constraint' + end + 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' + property :origin, as: 'origin' collection :restrictions, as: 'restrictions' + property :parent, as: 'parent' + property :create_time, as: 'createTime' end end @@ -604,6 +604,26 @@ module Google end end + class ListAvailableOrgPolicyConstraintsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + end + end + class FolderOperation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -614,31 +634,11 @@ module Google end end - class Policy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :page_token, as: 'pageToken' - property :page_size, as: 'pageSize' - end - end - class ResourceId # @private class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' property :id, as: 'id' + property :type, as: 'type' end end end diff --git a/generated/google/apis/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb index 765aafdd5..0182a4d84 100644 --- a/generated/google/apis/cloudresourcemanager_v1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1/service.rb @@ -33,20 +33,398 @@ module Google # # @see https://cloud.google.com/resource-manager class CloudResourceManagerService < 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://cloudresourcemanager.googleapis.com/', '') 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_organization_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 + + # Updates the specified `Policy` on the resource. Creates a new `Policy` for + # that `Constraint` on the resource if one does not exist. + # Not supplying an `etag` on the request `Policy` results in an unconditional + # write of the `Policy`. + # @param [String] resource + # Resource name of the resource to attach the `Policy`. + # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_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 set_organization_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation + command.request_object = set_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 + + # 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::CloudresourcemanagerV1::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::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 set_organization_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::CloudresourcemanagerV1::SetIamPolicyRequest::Representation + command.request_object = set_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) + 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_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? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + 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 + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::SearchOrganizationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @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 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) + 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 + # `etag` value can be used with `SetOrgPolicy()` to create or update a + # `Policy` during read-modify-write. + # @param [String] resource + # Name of the resource the `Policy` is set on. + # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_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_organization_org_policy(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation + command.request_object = get_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 + + # 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_organization_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 + + # 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". + # @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::CloudresourcemanagerV1::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::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::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, 'v1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::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 + # Delete a Lien by `name`. # Callers of this method will require permission on the `parent` resource. # For example, a Lien with a `parent` of `projects/1234` requires permission @@ -186,77 +564,6 @@ module Google 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_v1(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicyV1', 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 - - # Updates the specified `Policy` on the resource. Creates a new `Policy` for - # that `Constraint` on the resource if one does not exist. - # Not supplying an `etag` on the request `Policy` results in an unconditional - # write of the `Policy`. - # @param [String] resource - # Resource name of the resource to attach the `Policy`. - # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_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 set_folder_org_policy_v1(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation - command.request_object = set_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. @@ -326,39 +633,6 @@ module Google 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_folder_org_policy_v1(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicyV1', 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 - # Lists `Constraints` that could be applied on the specified resource. # @param [String] resource # Name of the resource to list `Constraints` for. @@ -462,43 +736,6 @@ module Google 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 - # `etag` value can be used with `SetOrgPolicy()` to create or update a - # `Policy` during read-modify-write. - # @param [String] resource - # Name of the resource the `Policy` is set on. - # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_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_org_policy_v1(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation - command.request_object = get_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 - # 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. @@ -534,236 +771,6 @@ module Google 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] 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] 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:*|The project has a name.| - # |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] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not 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::ListProjectsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1::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(page_token: nil, page_size: nil, filter: 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['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 - - # Updates the specified `Policy` on the resource. Creates a new `Policy` for - # that `Constraint` on the resource if one does not exist. - # Not supplying an `etag` on the request `Policy` results in an unconditional - # write of the `Policy`. - # @param [String] resource - # Resource name of the resource to attach the `Policy`. - # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_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 set_project_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation - command.request_object = set_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. - # @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_v1(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicyV1', 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 - - # Request that a new Project be created. The result is an Operation which - # can be used to track the creation process. It is automatically deleted - # after a few hours, so there is no need to call DeleteOperation. - # Our SLO permits Project creation to take up to 30 seconds at the 90th - # 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. - # @param [Google::Apis::CloudresourcemanagerV1::Project] project_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::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 create_project(project_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation - command.request_object = project_object - command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::Operation - 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 `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_project_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 - - # Retrieves the Project identified by the specified - # `project_id` (for example, `my-project-123`). - # The caller must have read permissions for this Project. - # @param [String] project_id - # The Project ID (for example, `my-project-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::Project] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1::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 get_project(project_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}', options) - command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::Project - 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 - # Gets a list of ancestors in the resource hierarchy for the Project # identified by the specified `project_id` (for example, `my-project-123`). # The caller must have read permissions for this Project. @@ -800,41 +807,6 @@ module Google 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_project_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicyV1', 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 - # Returns permissions that a caller has on the specified Project. # @param [String] resource # REQUIRED: The resource for which the policy detail is being requested. @@ -1117,14 +1089,12 @@ module Google 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 - # `etag` value can be used with `SetOrgPolicy()` to create or update a - # `Policy` during read-modify-write. + # 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 the `Policy` is set on. - # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_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. @@ -1142,10 +1112,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 get_project_org_policy_v1(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation - command.request_object = get_org_policy_request_object + def get_project_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? @@ -1193,41 +1163,6 @@ module Google 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_project_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 - # Updates the attributes of the Project identified by the specified # `project_id` (for example, `my-project-123`). # The caller must have modify permissions for this Project. @@ -1264,13 +1199,36 @@ module Google execute_or_queue_command(command, &block) end - # Updates the specified `Policy` on the resource. Creates a new `Policy` for - # that `Constraint` on the resource if one does not exist. - # Not supplying an `etag` on the request `Policy` results in an unconditional - # write of the `Policy`. - # @param [String] resource - # Resource name of the resource to attach the `Policy`. - # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object + # 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:*|The project has a name.| + # |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] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -1280,21 +1238,21 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy] + # @return [Google::Apis::CloudresourcemanagerV1::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 set_project_org_policy_v1(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation - command.request_object = set_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? + def list_projects(filter: nil, page_token: nil, page_size: 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['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) @@ -1324,7 +1282,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_organization_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def set_project_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options) command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation command.request_object = set_org_policy_request_object @@ -1336,10 +1294,14 @@ module Google 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 + # Request that a new Project be created. The result is an Operation which + # can be used to track the creation process. It is automatically deleted + # after a few hours, so there is no need to call DeleteOperation. + # Our SLO permits Project creation to take up to 30 seconds at the 90th + # 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. + # @param [Google::Apis::CloudresourcemanagerV1::Project] project_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. @@ -1349,21 +1311,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::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudresourcemanagerV1::Empty] + # @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 clear_organization_org_policy_v1(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicyV1', 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? + def create_project(project_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation + command.request_object = project_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Operation command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -1390,7 +1351,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_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_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 @@ -1402,11 +1363,12 @@ module Google execute_or_queue_command(command, &block) 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 + # Retrieves the Project identified by the specified + # `project_id` (for example, `my-project-123`). + # The caller must have read permissions for this Project. + # @param [String] project_id + # The Project ID (for example, `my-project-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. @@ -1416,404 +1378,19 @@ 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::Project] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] + # @return [Google::Apis::CloudresourcemanagerV1::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 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) - 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". - # @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::CloudresourcemanagerV1::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::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1::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, 'v1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation - command.request_object = test_iam_permissions_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::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 - - # 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_organization_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicyV1', 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. - # @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_organization_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 - - # 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::CloudresourcemanagerV1::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::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 set_organization_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::CloudresourcemanagerV1::SetIamPolicyRequest::Representation - command.request_object = set_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) - 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? - 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 - # `etag` value can be used with `SetOrgPolicy()` to create or update a - # `Policy` during read-modify-write. - # @param [String] resource - # Name of the resource the `Policy` is set on. - # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_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_organization_org_policy(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation - command.request_object = get_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 - - # 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 - # `etag` value can be used with `SetOrgPolicy()` to create or update a - # `Policy` during read-modify-write. - # @param [String] resource - # Name of the resource the `Policy` is set on. - # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_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_organization_org_policy_v1(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation - command.request_object = get_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 - - # 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_organization_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 - - # Updates the specified `Policy` on the resource. Creates a new `Policy` for - # that `Constraint` on the resource if one does not exist. - # Not supplying an `etag` on the request `Policy` results in an unconditional - # write of the `Policy`. - # @param [String] resource - # Resource name of the resource to attach the `Policy`. - # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_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 set_organization_org_policy_v1(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation - command.request_object = set_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? + def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Project + 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) @@ -1822,8 +1399,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/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index 8cdd234f4..30f873307 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 = '20170327' - - # View your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + REVISION = '20170329' # 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 35daa9389..43de5137d 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -22,120 +22,34 @@ module Google module Apis module CloudresourcemanagerV1beta1 - # 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. - class ListPolicy + # Associates `members` with a `role`. + class Binding 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. an 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` + # 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 :allowed_values + attr_accessor :members - # 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` + # 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 :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 - # set to `true`, then the values from the effective `Policy` of the parent - # resource are inherited, meaning the values set in this `Policy` are - # added to the values inherited up the hierarchy. - # Setting `Policy` hierarchies that inherit both allowed values and denied - # values isn't recommended in most circumstances to keep the configuration - # simple and understandable. However, it is possible to set a `Policy` with - # `allowed_values` set that inherits a `Policy` with `denied_values` set. - # In this case, the values that are allowed must be in `allowed_values` and - # not present in `denied_values`. - # For example, suppose you have a `Constraint` - # `constraints/serviceuser.services`, which has a `constraint_type` of - # `list_constraint`, and with `constraint_default` set to `ALLOW`. - # Suppose that at the Organization level, a `Policy` is applied that - # restricts the allowed API activations to ``E1`, `E2``. Then, if a - # `Policy` is applied to a project below the Organization that has - # `inherit_from_parent` set to `false` and field all_values set to DENY, - # then an attempt to activate any API will be denied. - # The following examples demonstrate different possible layerings: - # Example 1 (no inherited values): - # `organizations/foo` has a `Policy` with values: - # `allowed_values: “E1” allowed_values:”E2”` - # ``projects/bar`` has `inherit_from_parent` `false` and values: - # `allowed_values: "E3" allowed_values: "E4"` - # The accepted values at `organizations/foo` are `E1`, `E2`. - # The accepted values at `projects/bar` are `E3`, and `E4`. - # Example 2 (inherited values): - # `organizations/foo` has a `Policy` with values: - # `allowed_values: “E1” allowed_values:”E2”` - # `projects/bar` has a `Policy` with values: - # `value: “E3” value: ”E4” inherit_from_parent: true` - # The accepted values at `organizations/foo` are `E1`, `E2`. - # The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`. - # Example 3 (inheriting both allowed and denied values): - # `organizations/foo` has a `Policy` with values: - # `allowed_values: "E1" allowed_values: "E2"` - # `projects/bar` has a `Policy` with: - # `denied_values: "E1"` - # The accepted values at `organizations/foo` are `E1`, `E2`. - # The value accepted at `projects/bar` is `E2`. - # Example 4 (RestoreDefault): - # `organizations/foo` has a `Policy` with values: - # `allowed_values: “E1” allowed_values:”E2”` - # `projects/bar` has a `Policy` with values: - # `RestoreDefault: ``` - # The accepted values at `organizations/foo` are `E1`, `E2`. - # The accepted values at `projects/bar` are either all or none depending on - # the value of `constraint_default` (if `ALLOW`, all; if - # `DENY`, none). - # Example 5 (no policy inherits parent policy): - # `organizations/foo` has no `Policy` set. - # `projects/bar` has no `Policy` set. - # The accepted values at both levels are either all or none depending on - # the value of `constraint_default` (if `ALLOW`, all; if - # `DENY`, none). - # Example 6 (ListConstraint allowing all): - # `organizations/foo` has a `Policy` with values: - # `allowed_values: “E1” allowed_values: ”E2”` - # `projects/bar` has a `Policy` with: - # `all: ALLOW` - # The accepted values at `organizations/foo` are `E1`, E2`. - # Any value is accepted at `projects/bar`. - # Example 7 (ListConstraint allowing none): - # `organizations/foo` has a `Policy` with values: - # `allowed_values: “E1” allowed_values: ”E2”` - # `projects/bar` has a `Policy` with: - # `all: DENY` - # The accepted values at `organizations/foo` are `E1`, E2`. - # No value is accepted at `projects/bar`. - # Corresponds to the JSON property `inheritFromParent` - # @return [Boolean] - attr_accessor :inherit_from_parent - alias_method :inherit_from_parent?, :inherit_from_parent - - # 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`. - # Corresponds to the JSON property `deniedValues` - # @return [Array] - attr_accessor :denied_values + attr_accessor :role def initialize(**args) update!(**args) @@ -143,11 +57,196 @@ module Google # Update properties of this object def update!(**args) - @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) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + 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 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 + + # The root node in the resource hierarchy to which a particular entity's + # (e.g., company) resources belong. + class Organization + include Google::Apis::Core::Hashable + + # 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 + # be deleted. + # Corresponds to the JSON property `owner` + # @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner] + attr_accessor :owner + + # 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". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # An immutable id for the Organization that is assigned on creation. This + # should be omitted when creating a new Organization. + # This field is read-only. + # This field is deprecated and will be removed in v1. Use name instead. + # Corresponds to the JSON property `organizationId` + # @return [String] + attr_accessor :organization_id + + # The organization's current lifecycle state. Assigned by the server. + # @OutputOnly + # Corresponds to the JSON property `lifecycleState` + # @return [String] + attr_accessor :lifecycle_state + + # A friendly string to be used to refer to the Organization in the UI. + # Assigned by the server, set to the primary domain of the G Suite + # customer that owns the organization. + # @OutputOnly + # 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) + @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) + 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 + + # 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 + + # 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 @@ -215,6 +314,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 + + # 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 + # The request sent to the # GetAncestry # method. @@ -230,6 +367,89 @@ module Google 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 [String] + 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 @@ -252,45 +472,6 @@ module Google end end - # Metadata describing a long running folder operation - class FolderOperation - include Google::Apis::Core::Hashable - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @destination_parent = args[:destination_parent] if args.key?(:destination_parent) - @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) - 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 @@ -330,6 +511,7 @@ module Google # 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 @@ -363,23 +545,31 @@ module Google 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 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) @@ -387,8 +577,29 @@ 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) + @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 + + # 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 @@ -422,53 +633,6 @@ module Google 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. @@ -543,657 +707,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 - - # 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 - - # Immutable value, required to globally be unique. For example, - # `constraints/serviceuser.services` - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # 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::CloudresourcemanagerV1beta1::ListConstraint] - attr_accessor :list_constraint - - # Version of the `Constraint`. Default version is 0; - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - # 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 - - # The human readable name. - # Mutable. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # 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::CloudresourcemanagerV1beta1::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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @list_constraint = args[:list_constraint] if args.key?(:list_constraint) - @version = args[:version] if args.key?(:version) - @description = args[:description] if args.key?(:description) - @display_name = args[:display_name] if args.key?(:display_name) - @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint) - @constraint_default = args[:constraint_default] if args.key?(:constraint_default) - 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` - # @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 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 [String] - 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 - - 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) - @create_time = args[:create_time] if args.key?(:create_time) - @labels = args[:labels] if args.key?(:labels) - 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 - - # 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 - - # 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::CloudresourcemanagerV1beta1::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::CloudresourcemanagerV1beta1::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` - # @return [String] - attr_accessor :etag - - # Used in `policy_type` to specify how `boolean_policy` will behave at this - # resource. - # Corresponds to the JSON property `booleanPolicy` - # @return [Google::Apis::CloudresourcemanagerV1beta1::BooleanPolicy] - attr_accessor :boolean_policy - - # 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 - - # 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) - @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy) - @constraint = args[:constraint] if args.key?(:constraint) - @update_time = args[:update_time] if args.key?(:update_time) - end - end - # Identifying information for a single ancestor of a project. class Ancestor include Google::Apis::Core::Hashable @@ -1216,47 +729,6 @@ module Google end end - # A `Constraint` that allows or disallows a list of string values, which are - # configured by an Organization's policy administrator with a `Policy`. - class ListConstraint - include Google::Apis::Core::Hashable - - # Optional. The Google Cloud Console will try to default to a configuration - # that matches the value specified in this `Constraint`. - # Corresponds to the JSON property `suggestedValue` - # @return [String] - attr_accessor :suggested_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @suggested_value = args[:suggested_value] if args.key?(:suggested_value) - end - end - - # The request sent to the SetOrgPolicyRequest method. - class SetOrgPolicyRequest - include Google::Apis::Core::Hashable - - # Defines a Cloud Organization `Policy` which is used to specify `Constraints` - # for configurations of Cloud Platform resources. - # Corresponds to the JSON property `policy` - # @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy] - 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 - # Request message for `SetIamPolicy` method. class SetIamPolicyRequest include Google::Apis::Core::Hashable @@ -1311,104 +783,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 + # The response returned from the `ListOrganizations` method. + class ListOrganizationsResponse include Google::Apis::Core::Hashable - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # The root node in the resource hierarchy to which a particular entity's - # (e.g., company) resources belong. - class Organization - include Google::Apis::Core::Hashable - - # The entity that owns an Organization. The lifetime of the Organization and - # all of its descendants are bound to the `OrganizationOwner`. If the - # `OrganizationOwner` is deleted, the Organization and all its descendants will - # be deleted. - # Corresponds to the JSON property `owner` - # @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner] - attr_accessor :owner - - # 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". - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # An immutable id for the Organization that is assigned on creation. This - # should be omitted when creating a new Organization. - # This field is read-only. - # This field is deprecated and will be removed in v1. Use name instead. - # Corresponds to the JSON property `organizationId` - # @return [String] - attr_accessor :organization_id - - # The organization's current lifecycle state. Assigned by the server. - # @OutputOnly - # Corresponds to the JSON property `lifecycleState` - # @return [String] - attr_accessor :lifecycle_state - - # A friendly string to be used to refer to the Organization in the UI. - # Assigned by the server, set to the primary domain of the G Suite - # customer that owns the organization. - # @OutputOnly - # Corresponds to the JSON property `displayName` - # @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) - @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 - - # The response returned from the ListAvailableOrgPolicyConstraints method. - # Returns all `Constraints` that could be set at this level of the hierarchy - # (contrast with the response from `ListPolicies`, which returns all policies - # which are set). - class ListAvailableOrgPolicyConstraintsResponse - include Google::Apis::Core::Hashable - - # Page token used to retrieve the next page. This is currently not used. + # 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 collection of constraints that are settable on the request resource. - # Corresponds to the JSON property `constraints` - # @return [Array] - attr_accessor :constraints + # 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) @@ -1417,7 +808,7 @@ module Google # Update properties of this object def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @constraints = args[:constraints] if args.key?(:constraints) + @organizations = args[:organizations] if args.key?(:organizations) end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb index 673c7c0a9..6e6c0c998 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb @@ -22,7 +22,49 @@ module Google module Apis module CloudresourcemanagerV1beta1 - class ListPolicy + 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 UndeleteProjectRequest + 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 ProjectCreationStatus + 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 OrganizationOwner class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -40,145 +82,37 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GetAncestryRequest - 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 ListAvailableOrgPolicyConstraintsRequest - 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 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 ListOrganizationsResponse - 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 Binding - 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 GetOrgPolicyRequest - 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 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 ListOrgPoliciesResponse + 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 FolderOperation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -190,13 +124,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BooleanPolicy + class ResourceId class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class OrgPolicy + class AuditConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -208,50 +142,77 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListConstraint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SetOrgPolicyRequest - 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 Empty + class ListOrganizationsResponse 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 Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class UndeleteProjectRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Organization - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListAvailableOrgPolicyConstraintsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation - 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' + 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' + end + end + + class ProjectCreationStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ready, as: 'ready' + property :create_time, as: 'createTime' + property :gettable, as: 'gettable' + end + end + + class GetIamPolicyRequest + # @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 OrganizationOwner + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :directory_customer_id, as: 'directoryCustomerId' end end @@ -271,12 +232,35 @@ module Google end end + class ListProjectsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation + + 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, 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 @@ -284,16 +268,6 @@ module Google end end - class FolderOperation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :destination_parent, as: 'destinationParent' - property :operation_type, as: 'operationType' - property :display_name, as: 'displayName' - property :source_parent, as: 'sourceParent' - end - end - class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -306,11 +280,20 @@ module Google 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 :display_name, as: 'displayName' + property :source_parent, as: 'sourceParent' + property :destination_parent, as: 'destinationParent' + end + end + + class FolderOperationError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_message_id, as: 'errorMessageId' end end @@ -322,21 +305,6 @@ module Google 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 @@ -346,162 +314,6 @@ module Google end end - class ListOrganizationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation - - end - end - - class Constraint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1beta1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::ListConstraint::Representation - - property :version, as: 'version' - property :description, as: 'description' - property :display_name, as: 'displayName' - property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint::Representation - - property :constraint_default, as: 'constraintDefault' - 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 :create_time, as: 'createTime' - property :gettable, as: 'gettable' - 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 - collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation - - property :next_page_token, as: 'nextPageToken' - 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, as: 'projectNumber' - property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation - - property :create_time, as: 'createTime' - hash :labels, as: 'labels' - end - end - - class ListOrgPoliciesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class FolderOperationError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error_message_id, as: 'errorMessageId' - end - end - - class BooleanPolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :enforced, as: 'enforced' - end - end - - class OrgPolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version' - property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1beta1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1beta1::RestoreDefault::Representation - - property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1beta1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::ListPolicy::Representation - - property :etag, :base64 => true, as: 'etag' - property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1beta1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::BooleanPolicy::Representation - - property :constraint, as: 'constraint' - property :update_time, as: 'updateTime' - end - end - class Ancestor # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -510,21 +322,6 @@ module Google end end - class ListConstraint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :suggested_value, as: 'suggestedValue' - end - end - - class SetOrgPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation - - end - end - class SetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -534,30 +331,11 @@ module Google end end - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class Organization - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 ListAvailableOrgPolicyConstraintsResponse + class ListOrganizationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :next_page_token, as: 'nextPageToken' - collection :constraints, as: 'constraints', class: Google::Apis::CloudresourcemanagerV1beta1::Constraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::Constraint::Representation + collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb index ecf4e8e0a..2b20cc4d1 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb @@ -47,10 +47,28 @@ module Google super('https://cloudresourcemanager.googleapis.com/', '') end - # Clears a `Policy` from a resource. - # @param [String] resource - # Name of the resource for the `Policy` to clear. - # @param [Google::Apis::CloudresourcemanagerV1beta1::ClearOrgPolicyRequest] clear_org_policy_request_object + # 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 @@ -68,555 +86,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 clear_organization_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:clearOrgPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::ClearOrgPolicyRequest::Representation - command.request_object = clear_org_policy_request_object + 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['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 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 - - # Lists `Constraints` that could be applied on the specified resource. - # @param [String] resource - # Name of the resource to list `Constraints` for. - # @param [Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_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::ListAvailableOrgPolicyConstraintsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::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, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:listAvailableOrgPolicyConstraints', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsRequest::Representation - command.request_object = list_available_org_policy_constraints_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsResponse - 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 - - # 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 - # `etag` value can be used with `SetOrgPolicy()` to create or update a - # `Policy` during read-modify-write. - # @param [String] resource - # Name of the resource the `Policy` is set on. - # @param [Google::Apis::CloudresourcemanagerV1beta1::GetOrgPolicyRequest] get_org_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::OrgPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::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_organization_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getOrgPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetOrgPolicyRequest::Representation - command.request_object = get_org_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy - 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 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::CloudresourcemanagerV1beta1::GetEffectiveOrgPolicyRequest] get_effective_org_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::OrgPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::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_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getEffectiveOrgPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetEffectiveOrgPolicyRequest::Representation - command.request_object = get_effective_org_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy - 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 `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 - # `etag` value can be used with `SetOrgPolicy()` to create or update a - # `Policy` during read-modify-write. - # @param [String] resource - # Name of the resource the `Policy` is set on. - # @param [Google::Apis::CloudresourcemanagerV1beta1::GetOrgPolicyRequest] get_org_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::OrgPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::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_organization_org_policy_v1(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetOrgPolicyRequest::Representation - command.request_object = get_org_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy - 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 - - # 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 - - # Updates the specified `Policy` on the resource. Creates a new `Policy` for - # that `Constraint` on the resource if one does not exist. - # Not supplying an `etag` on the request `Policy` results in an unconditional - # write of the `Policy`. - # @param [String] resource - # Resource name of the resource to attach the `Policy`. - # @param [Google::Apis::CloudresourcemanagerV1beta1::SetOrgPolicyRequest] set_org_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::OrgPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::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 set_organization_org_policy_v1(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetOrgPolicyRequest::Representation - command.request_object = set_org_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy - 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 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 - - # Updates the specified `Policy` on the resource. Creates a new `Policy` for - # that `Constraint` on the resource if one does not exist. - # Not supplying an `etag` on the request `Policy` results in an unconditional - # write of the `Policy`. - # @param [String] resource - # Resource name of the resource to attach the `Policy`. - # @param [Google::Apis::CloudresourcemanagerV1beta1::SetOrgPolicyRequest] set_org_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::OrgPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::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 set_organization_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setOrgPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetOrgPolicyRequest::Representation - command.request_object = set_org_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy - 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 - - # Clears a `Policy` from a resource. - # @param [String] resource - # Name of the resource for the `Policy` to clear. - # @param [Google::Apis::CloudresourcemanagerV1beta1::ClearOrgPolicyRequest] clear_org_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::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 clear_organization_org_policy_v1(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:clearOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::ClearOrgPolicyRequest::Representation - command.request_object = clear_org_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty - 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 all the `Policies` set for a particular resource. - # @param [String] resource - # Name of the resource to list Policies for. - # @param [Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesRequest] list_org_policies_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::ListOrgPoliciesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::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_organization_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:listOrgPolicies', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesRequest::Representation - command.request_object = list_org_policies_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesResponse - 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 - - # 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::CloudresourcemanagerV1beta1::GetEffectiveOrgPolicyRequest] get_effective_org_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::OrgPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::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_organization_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getEffectiveOrgPolicyV1', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetEffectiveOrgPolicyRequest::Representation - command.request_object = get_effective_org_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified Organization. - # 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+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.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) @@ -625,6 +99,15 @@ 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 [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] filter # An expression for filtering the results of the request. Filter rules are # case insensitive. The fields eligible for filtering are: @@ -643,15 +126,6 @@ module Google # |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 @@ -669,51 +143,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, fields: nil, quota_user: nil, options: nil, &block) + def list_projects(page_token: nil, page_size: nil, filter: 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['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) @@ -779,6 +215,44 @@ module Google 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 + # Returns the IAM access control policy for the specified Project. # Permission is denied if the policy or the resource does not exist. # @param [String] resource @@ -814,39 +288,6 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the Project identified by the specified - # `project_id` (for example, `my-project-123`). - # The caller must have read permissions for this Project. - # @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 [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 get_project(project_id, fields: nil, quota_user: 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? - execute_or_queue_command(command, &block) - end - # Restores the Project identified by the specified # `project_id` (for example, `my-project-123`). # You can only use this method for a Project that has a lifecycle state of @@ -886,13 +327,12 @@ module Google execute_or_queue_command(command, &block) end - # Gets a list of ancestors in the resource hierarchy for the Project - # identified by the specified `project_id` (for example, `my-project-123`). + # Retrieves the Project identified by the specified + # `project_id` (for example, `my-project-123`). # The caller must have read permissions for this Project. # @param [String] project_id # 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 @@ -902,20 +342,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object + # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] + # @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 get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: 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 + def get_project(project_id, fields: nil, quota_user: 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? @@ -958,6 +396,42 @@ module Google execute_or_queue_command(command, &block) end + # Gets a list of ancestors in the resource hierarchy for the Project + # identified by the specified `project_id` (for example, `my-project-123`). + # The caller must have read permissions for this Project. + # @param [String] project_id + # 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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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) + 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? + execute_or_queue_command(command, &block) + 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. @@ -992,28 +466,13 @@ 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. + # 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 @@ -1023,19 +482,212 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object + # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty] + # @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 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? + 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". + # @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_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: 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? + 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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should 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(filter: nil, page_token: nil, page_size: 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['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) diff --git a/generated/google/apis/cloudtrace_v1.rb b/generated/google/apis/cloudtrace_v1.rb index 8f2faef59..0974eed65 100644 --- a/generated/google/apis/cloudtrace_v1.rb +++ b/generated/google/apis/cloudtrace_v1.rb @@ -30,14 +30,14 @@ module Google VERSION = 'V1' REVISION = '20170320' + # 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 24d0c8dd4..7f5446e02 100644 --- a/generated/google/apis/cloudtrace_v1/classes.rb +++ b/generated/google/apis/cloudtrace_v1/classes.rb @@ -22,6 +22,25 @@ module Google module Apis module CloudtraceV1 + # 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 +49,18 @@ module Google class TraceSpan include Google::Apis::Core::Hashable + # Start time of the span in nanoseconds from the UNIX epoch. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Distinguishes between spans generated in a particular context. For example, + # two spans with the same name may be distinguished using `RPC_CLIENT` + # and `RPC_SERVER` to identify queueing latency associated with the span. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + # Collection of labels associated with the span. Label keys must be less than # 128 bytes. Label values must be less than 16 kilobytes. # Corresponds to the JSON property `labels` @@ -63,31 +94,19 @@ module Google # @return [String] attr_accessor :end_time - # Start time of the span in nanoseconds from the UNIX epoch. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Distinguishes between spans generated in a particular context. For example, - # two spans with the same name may be distinguished using `RPC_CLIENT` - # and `RPC_SERVER` to identify queueing latency associated with the span. - # 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) + @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_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) end end @@ -170,25 +189,6 @@ module Google @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 end end end diff --git a/generated/google/apis/cloudtrace_v1/representations.rb b/generated/google/apis/cloudtrace_v1/representations.rb index a181326b2..05f3d4617 100644 --- a/generated/google/apis/cloudtrace_v1/representations.rb +++ b/generated/google/apis/cloudtrace_v1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module CloudtraceV1 + class Traces + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TraceSpan class Representation < Google::Apis::Core::JsonRepresentation; end @@ -47,21 +53,23 @@ module Google end class Traces - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation - include Google::Apis::Core::JsonObjectSupport + end end class TraceSpan # @private class Representation < Google::Apis::Core::JsonRepresentation + property :start_time, as: 'startTime' + property :kind, as: 'kind' hash :labels, as: 'labels' property :name, as: 'name' property :span_id, as: 'spanId' property :parent_span_id, as: 'parentSpanId' property :end_time, as: 'endTime' - property :start_time, as: 'startTime' - property :kind, as: 'kind' end end @@ -89,14 +97,6 @@ module Google property :trace_id, as: 'traceId' end end - - class Traces - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation - - end - end end end end diff --git a/generated/google/apis/cloudtrace_v1/service.rb b/generated/google/apis/cloudtrace_v1/service.rb index 29c73ab7d..110605bce 100644 --- a/generated/google/apis/cloudtrace_v1/service.rb +++ b/generated/google/apis/cloudtrace_v1/service.rb @@ -57,11 +57,11 @@ module Google # @param [String] project_id # ID of the Cloud project where the trace data is stored. # @param [Google::Apis::CloudtraceV1::Traces] traces_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -74,34 +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 patch_project_traces(project_id, traces_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_traces(project_id, traces_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/projects/{projectId}/traces', options) command.request_representation = Google::Apis::CloudtraceV1::Traces::Representation command.request_object = traces_object command.response_representation = Google::Apis::CloudtraceV1::Empty::Representation command.response_class = Google::Apis::CloudtraceV1::Empty command.params['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + 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] 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 - # End of the time interval (inclusive) during which the trace data was - # collected from the application. - # @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] order_by # Field used to sort the returned traces. Optional. # Can be one of the following: @@ -118,11 +105,24 @@ module Google # @param [String] end_time # Start of the time interval (inclusive) during which the trace data was # collected from the application. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # @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 + # End of the time interval (inclusive) during which the trace data was + # collected from the application. + # @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. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -135,20 +135,20 @@ 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, page_token: nil, start_time: nil, page_size: nil, view: nil, order_by: nil, filter: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, page_token: nil, start_time: 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['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['pageSize'] = page_size unless page_size.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['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 @@ -157,11 +157,11 @@ module Google # ID of the Cloud project where the trace data is stored. # @param [String] trace_id # ID of the trace to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -174,14 +174,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_project_trace(project_id, trace_id, fields: nil, quota_user: nil, options: nil, &block) + 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['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/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 9f000044a..002de114b 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -1649,6 +1649,7 @@ module Google # inserting a BackendService. An up-to-date fingerprint must be provided in # order to update the BackendService. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -2684,6 +2685,7 @@ module Google # hash in order to update or change labels. # To see the latest fingerprint, make a get() request to retrieve a disk. # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :label_fingerprint @@ -3970,6 +3972,7 @@ module Google # 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` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :label_fingerprint @@ -4762,6 +4765,7 @@ module Google # to update or change labels. # To see the latest fingerprint, make a get() request to retrieve an image. # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :label_fingerprint @@ -5003,6 +5007,7 @@ module Google # order to update or change metadata. # To see the latest fingerprint, make get() request to the instance. # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :label_fingerprint @@ -5191,6 +5196,7 @@ module Google # fingerprint to detect conflicts when multiple users change the named ports # concurrently. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -5418,6 +5424,7 @@ module Google # [Output Only] The fingerprint of the resource data. You can use this optional # field for optimistic locking when you update the resource. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -5995,6 +6002,7 @@ module Google # Then, include the fingerprint in your request to ensure that you do not # overwrite changes that were applied from another concurrent request. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -6230,6 +6238,7 @@ module Google # ensure that you do not overwrite changes that were applied from another # concurrent request. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -6678,6 +6687,7 @@ module Google # conflicts. Provide the latest fingerprint value when making a request to add # or change labels. # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :label_fingerprint @@ -7334,6 +7344,7 @@ module Google # modify or update metadata. You must always provide an up-to-date fingerprint # hash in order to update or change metadata. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -8346,6 +8357,7 @@ module Google # 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 @@ -8919,6 +8931,7 @@ module Google # This field is used for optimistic locking when you update the target pool # entries. This field is optional. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -9046,6 +9059,7 @@ module Google # ensure that you do not overwrite changes that were applied from another # concurrent request. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -10220,6 +10234,7 @@ module Google # fingerprint hash in order to update or change labels. # To see the latest fingerprint, make a get() request to retrieve a snapshot. # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :label_fingerprint @@ -10914,6 +10929,7 @@ module Google # hash in order to update or change metadata. # To see the latest fingerprint, make get() request to the instance. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -12668,6 +12684,7 @@ module Google # inserting a UrlMap. An up-to-date fingerprint must be provided in order to # update the UrlMap. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -13467,6 +13484,7 @@ module Google # provide an up-to-date fingerprint hash in order to update or change labels. # Make a get() request to the resource to get the latest fingerprint. # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :label_fingerprint diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 27af614f3..998c38227 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -1215,6 +1215,7 @@ module Google # inserting a BackendService. An up-to-date fingerprint must be provided in # order to update the BackendService. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -4145,6 +4146,7 @@ module Google # fingerprint to detect conflicts when multiple users change the named ports # concurrently. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -4360,6 +4362,7 @@ module Google # [Output Only] The fingerprint of the resource data. You can use this optional # field for optimistic locking when you update the resource. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -4834,6 +4837,7 @@ module Google # Then, include the fingerprint in your request to ensure that you do not # overwrite changes that were applied from another concurrent request. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -5069,6 +5073,7 @@ module Google # ensure that you do not overwrite changes that were applied from another # concurrent request. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -6077,6 +6082,7 @@ module Google # modify or update metadata. You must always provide an up-to-date fingerprint # hash in order to update or change metadata. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -7339,6 +7345,7 @@ module Google # This field is used for optimistic locking when you update the target pool # entries. This field is optional. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -7466,6 +7473,7 @@ module Google # ensure that you do not overwrite changes that were applied from another # concurrent request. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -9150,6 +9158,7 @@ module Google # hash in order to update or change metadata. # To see the latest fingerprint, make get() request to the instance. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -10667,6 +10676,7 @@ module Google # inserting a UrlMap. An up-to-date fingerprint must be provided in order to # update the UrlMap. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint diff --git a/generated/google/apis/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index e71019967..afb5d3907 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -22,1050 +22,6 @@ module Google module Apis module DataflowV1b3 - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` which can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting purpose. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - class Status - include Google::Apis::Core::Hashable - - # 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 - - # Describes a stream of data, either as input to be processed or as - # output of a streaming Dataflow job. - class StreamLocation - include Google::Apis::Core::Hashable - - # 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 a pubsub location to use for transferring data into or - # out of a streaming Dataflow job. - # Corresponds to the JSON property `pubsubLocation` - # @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 custom souce. - # Corresponds to the JSON property `customSourceLocation` - # @return [Google::Apis::DataflowV1b3::CustomSourceLocation] - attr_accessor :custom_source_location - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @custom_source_location = args[:custom_source_location] if args.key?(:custom_source_location) - end - end - - # The response to the worker messages. - class SendWorkerMessagesResponse - include Google::Apis::Core::Hashable - - # The servers response to the worker messages. - # Corresponds to the JSON property `workerMessageResponses` - # @return [Array] - attr_accessor :worker_message_responses - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @worker_message_responses = args[:worker_message_responses] if args.key?(:worker_message_responses) - end - end - - # Configuration information for a single streaming computation. - class StreamingComputationConfig - include Google::Apis::Core::Hashable - - # Unique identifier for this computation. - # Corresponds to the JSON property `computationId` - # @return [String] - attr_accessor :computation_id - - # System defined name for this computation. - # Corresponds to the JSON property `systemName` - # @return [String] - attr_accessor :system_name - - # Stage name of this computation. - # Corresponds to the JSON property `stageName` - # @return [String] - attr_accessor :stage_name - - # Instructions that comprise the computation. - # Corresponds to the JSON property `instructions` - # @return [Array] - attr_accessor :instructions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @computation_id = args[:computation_id] if args.key?(:computation_id) - @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) - end - end - - # Description of the type, names/ids, and input/outputs for a transform. - class TransformSummary - include Google::Apis::Core::Hashable - - # Transform-specific display data. - # Corresponds to the JSON property `displayData` - # @return [Array] - attr_accessor :display_data - - # User names for all collection outputs to this transform. - # Corresponds to the JSON property `outputCollectionName` - # @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 - - # SDK generated id of this transform instance. - # 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) - @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) - @id = args[:id] if args.key?(:id) - end - end - - # Response to a request to lease WorkItems. - class LeaseWorkItemResponse - include Google::Apis::Core::Hashable - - # A list of the leased WorkItems. - # Corresponds to the JSON property `workItems` - # @return [Array] - attr_accessor :work_items - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @work_items = args[:work_items] if args.key?(:work_items) - 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 - - # The codec to use to encode data written to the sink. - # Corresponds to the JSON property `codec` - # @return [Hash] - attr_accessor :codec - - # The sink to write to, 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) - @codec = args[:codec] if args.key?(:codec) - @spec = args[:spec] if args.key?(:spec) - end - end - - # An instruction that copies its inputs (zero or more) to its (single) output. - class FlattenInstruction - include Google::Apis::Core::Hashable - - # Describes the inputs to the flatten instruction. - # Corresponds to the JSON property `inputs` - # @return [Array] - attr_accessor :inputs - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @inputs = args[:inputs] if args.key?(:inputs) - end - end - - # An instruction that does a partial group-by-key. - # One input and one output. - class PartialGroupByKeyInstruction - include Google::Apis::Core::Hashable - - # 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` - # @return [String] - attr_accessor :original_combine_values_input_store_name - - # Zero or more side inputs. - # Corresponds to the JSON property `sideInputs` - # @return [Array] - attr_accessor :side_inputs - - # If this instruction includes a combining function, this is the name of the - # CombineValues instruction lifted into this instruction. - # Corresponds to the JSON property `originalCombineValuesStepName` - # @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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - 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 [String] - 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 - - # An input of an instruction, as a reference to an output of a - # producer instruction. - class InstructionInput - include Google::Apis::Core::Hashable - - # The index (origin zero) of the parallel instruction that produces - # the output to be consumed by this input. This index is relative - # to the list of instructions in this input's instruction's - # containing MapTask. - # Corresponds to the JSON property `producerInstructionIndex` - # @return [Fixnum] - attr_accessor :producer_instruction_index - - # The output index (origin zero) within the producer. - # Corresponds to the JSON property `outputNum` - # @return [Fixnum] - attr_accessor :output_num - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @producer_instruction_index = args[:producer_instruction_index] if args.key?(:producer_instruction_index) - @output_num = args[:output_num] if args.key?(:output_num) - end - end - - # A metric value representing a list of strings. - class StringList - include Google::Apis::Core::Hashable - - # Elements of the list. - # Corresponds to the JSON property `elements` - # @return [Array] - attr_accessor :elements - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @elements = args[:elements] if args.key?(:elements) - end - end - - # Data provided with a pipeline or transform to provide descriptive info. - class DisplayData - include Google::Apis::Core::Hashable - - # Contains value if the data is of duration type. - # Corresponds to the JSON property `durationValue` - # @return [String] - attr_accessor :duration_value - - # Contains value if the data is of int64 type. - # Corresponds to the JSON property `int64Value` - # @return [String] - attr_accessor :int64_value - - # The namespace for the key. This is usually a class name or programming - # language namespace (i.e. python module) which defines the display data. - # This allows a dax monitoring system to specially handle the data - # and perform custom rendering. - # Corresponds to the JSON property `namespace` - # @return [String] - attr_accessor :namespace - - # Contains value if the data is of float type. - # Corresponds to the JSON property `floatValue` - # @return [Float] - attr_accessor :float_value - - # The key identifying the display data. - # This is intended to be used as a label for the display data - # when viewed in a dax monitoring system. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # A possible additional shorter value to display. - # For example a java_class_name_value of com.mypackage.MyDoFn - # will be stored with MyDoFn as the short_str_value and - # com.mypackage.MyDoFn as the java_class_name value. - # short_str_value can be displayed and java_class_name_value - # will be displayed as a tooltip. - # Corresponds to the JSON property `shortStrValue` - # @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 - - # 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 - - # Contains value if the data is of string type. - # Corresponds to the JSON property `strValue` - # @return [String] - attr_accessor :str_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @duration_value = args[:duration_value] if args.key?(:duration_value) - @int64_value = args[:int64_value] if args.key?(:int64_value) - @namespace = args[:namespace] if args.key?(:namespace) - @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) - @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value) - @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) - end - end - - # Request to get updated debug configuration for component. - class GetDebugConfigRequest - include Google::Apis::Core::Hashable - - # The internal component id for which debug configuration is - # requested. - # 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) - @component_id = args[:component_id] if args.key?(:component_id) - @worker_id = args[:worker_id] if args.key?(:worker_id) - 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 - - # Metadata describing a template. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::DataflowV1b3::TemplateMetadata] - attr_accessor :metadata - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` which can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting purpose. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - # Corresponds to the JSON property `status` - # @return [Google::Apis::DataflowV1b3::Status] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metadata = args[:metadata] if args.key?(:metadata) - @status = args[:status] if args.key?(:status) - end - end - - # Request to report the status of WorkItems. - class ReportWorkItemStatusRequest - include Google::Apis::Core::Hashable - - # 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 - # will be dropped (with an error response). - # Corresponds to the JSON property `workerId` - # @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) - end - end - - # A task that carries configuration information for streaming computations. - 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 - - # Map from user step names to state families. - # Corresponds to the JSON property `userStepToStateFamilyNameMap` - # @return [Hash] - attr_accessor :user_step_to_state_family_name_map - - 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) - @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) - end - end - - # 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. - class PipelineDescription - include Google::Apis::Core::Hashable - - # Pipeline level display data. - # Corresponds to the JSON property `displayData` - # @return [Array] - attr_accessor :display_data - - # Description of each stage of execution of the pipeline. - # Corresponds to the JSON property `executionPipelineStage` - # @return [Array] - attr_accessor :execution_pipeline_stage - - # Description of each transform in the pipeline and collections between them. - # Corresponds to the JSON property `originalPipelineTransform` - # @return [Array] - attr_accessor :original_pipeline_transform - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @display_data = args[:display_data] if args.key?(:display_data) - @execution_pipeline_stage = args[:execution_pipeline_stage] if args.key?(:execution_pipeline_stage) - @original_pipeline_transform = args[:original_pipeline_transform] if args.key?(:original_pipeline_transform) - end - end - - # Defines a particular step within a Cloud Dataflow job. - # A job consists of multiple steps, each of which performs some - # specific operation as part of the overall job. Data is typically - # passed from one step to another as part of the job. - # Here's an example of a sequence of steps which together implement a - # Map-Reduce job: - # * Read a collection of data from some source, parsing the - # collection's elements. - # * Validate the elements. - # * Apply a user-defined function to map each element to some value - # and extract an element-specific key value. - # * Group elements with the same key into a single element with - # that key, transforming a multiply-keyed collection into a - # uniquely-keyed collection. - # * Write the elements out to some data sink. - # Note that the Cloud Dataflow service may be used to run many different - # types of jobs, not just Map-Reduce. - class Step - include Google::Apis::Core::Hashable - - # Named properties associated with the step. Each kind of - # predefined step has its own required set of properties. - # Must be provided on Create. Only retrieved with JOB_VIEW_ALL. - # Corresponds to the JSON property `properties` - # @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 - - # The kind of step in the Cloud Dataflow job. - # 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) - @properties = args[:properties] if args.key?(:properties) - @name = args[:name] if args.key?(:name) - @kind = args[:kind] if args.key?(:kind) - 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 - - # Indicates which location failed to respond to a request for data. - class FailedLocation - include Google::Apis::Core::Hashable - - # The name of the failed location. - # 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 - - # Describes the data disk used by a workflow job. - 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 - - # Disk storage type, as defined by Google Compute Engine. This - # must be a disk type appropriate to the project and zone in which - # the workers will run. If unknown or unspecified, the service - # will attempt to choose a reasonable default. - # For example, the standard persistent disk type is a resource name - # typically ending in "pd-standard". If SSD persistent disks are - # available, the resource name typically ends with "pd-ssd". The - # actual valid values are defined the Google Compute Engine API, - # not by the Cloud Dataflow API; consult the Google Compute Engine - # documentation for more information about determining the set of - # available disk types for a particular project and zone. - # Google Compute Engine Disk types are local to a particular - # project in a particular zone, and so the resource name will - # typically look something like this: - # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard - # Corresponds to the JSON property `diskType` - # @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 - - def initialize(**args) - update!(**args) - end - - # 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) - end - end - - # Response to a request to list job messages. - class ListJobMessagesResponse - include Google::Apis::Core::Hashable - - # Messages in ascending timestamp order. - # Corresponds to the JSON property `jobMessages` - # @return [Array] - attr_accessor :job_messages - - # The token to obtain the next page of results if there are more. - # 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) - @job_messages = args[:job_messages] if args.key?(:job_messages) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # CounterMetadata includes all static non-name non-value counter attributes. - class CounterMetadata - include Google::Apis::Core::Hashable - - # A string referring to the unit type. - # Corresponds to the JSON property `otherUnits` - # @return [String] - attr_accessor :other_units - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @other_units = args[:other_units] if args.key?(:other_units) - @kind = args[:kind] if args.key?(:kind) - @description = args[:description] if args.key?(:description) - @standard_units = args[:standard_units] if args.key?(:standard_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 `consumedParallelism` - # @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 - - # 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 - - # Completion as fraction of the input consumed, from 0.0 (beginning, nothing - # consumed), to 1.0 (end of the input, entire input consumed). - # Corresponds to the JSON property `fractionConsumed` - # @return [Float] - attr_accessor :fraction_consumed - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @consumed_parallelism = args[:consumed_parallelism] if args.key?(:consumed_parallelism) - @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) - end - end - - # A metric value representing a list of integers. - class IntegerList - include Google::Apis::Core::Hashable - - # Elements of the list. - # Corresponds to the JSON property `elements` - # @return [Array] - attr_accessor :elements - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @elements = args[:elements] if args.key?(:elements) - end - end - # State family configuration. class StateFamilyConfig include Google::Apis::Core::Hashable @@ -1092,6 +48,25 @@ module Google end end + # A metric value representing a list of integers. + class IntegerList + include Google::Apis::Core::Hashable + + # Elements of the list. + # Corresponds to the JSON property `elements` + # @return [Array] + attr_accessor :elements + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @elements = args[:elements] if args.key?(:elements) + end + end + # Service-side response to WorkerMessage reporting resource utilization. class ResourceUtilizationReportResponse include Google::Apis::Core::Hashable @@ -1109,11 +84,6 @@ module Google class SourceSplitResponse include Google::Apis::Core::Hashable - # DEPRECATED in favor of bundles. - # Corresponds to the JSON property `shards` - # @return [Array] - attr_accessor :shards - # Indicates whether splitting happened and produced a list of bundles. # If this is USE_CURRENT_SOURCE_AS_IS, the current source should # be processed "as is" without splitting. "bundles" is ignored in this case. @@ -1130,15 +100,20 @@ module Google # @return [Array] attr_accessor :bundles + # DEPRECATED in favor of bundles. + # Corresponds to the JSON property `shards` + # @return [Array] + attr_accessor :shards + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @shards = args[:shards] if args.key?(:shards) @outcome = args[:outcome] if args.key?(:outcome) @bundles = args[:bundles] if args.key?(:bundles) + @shards = args[:shards] if args.key?(:shards) end end @@ -1156,6 +131,12 @@ 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. @@ -1164,21 +145,21 @@ module Google # @return [Google::Apis::DataflowV1b3::ParDoInstruction] attr_accessor :par_do - # 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 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 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 of this operation. + # Unique across the workflow. + # Corresponds to the JSON property `systemName` + # @return [String] + attr_accessor :system_name # An instruction that writes records. # Takes one input, produces no outputs. @@ -1186,12 +167,6 @@ module Google # @return [Google::Apis::DataflowV1b3::WriteInstruction] attr_accessor :write - # System-defined name of this operation. - # Unique across the workflow. - # Corresponds to the JSON property `systemName` - # @return [String] - attr_accessor :system_name - # An instruction that does a partial group-by-key. # One input and one output. # Corresponds to the JSON property `partialGroupByKey` @@ -1206,51 +181,16 @@ module Google def update!(**args) @outputs = args[:outputs] if args.key?(:outputs) @name = args[:name] if args.key?(:name) - @par_do = args[:par_do] if args.key?(:par_do) @read = args[:read] if args.key?(:read) - @original_name = args[:original_name] if args.key?(:original_name) + @par_do = args[:par_do] if args.key?(:par_do) @flatten = args[:flatten] if args.key?(:flatten) - @write = args[:write] if args.key?(:write) + @original_name = args[:original_name] if args.key?(:original_name) @system_name = args[:system_name] if args.key?(:system_name) + @write = args[:write] if args.key?(:write) @partial_group_by_key = args[:partial_group_by_key] if args.key?(:partial_group_by_key) end end - # The packages that must be installed in order for a worker to run the - # steps of the Cloud Dataflow job that will be assigned to its worker - # pool. - # This is the mechanism by which the Cloud Dataflow SDK causes code to - # be loaded onto the workers. For example, the Cloud Dataflow Java SDK - # might use this to install jars containing the user's code and all of the - # various dependencies (libraries, data files, etc.) required in order - # for that code to run. - class Package - include Google::Apis::Core::Hashable - - # The resource to read the package from. The supported resource type is: - # Google Cloud Storage: - # storage.googleapis.com/`bucket` - # bucket.storage.googleapis.com/ - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The name of the package. - # 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 = args[:location] if args.key?(:location) - @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 @@ -1258,11 +198,6 @@ module Google class KeyRangeDataDiskAssignment include Google::Apis::Core::Hashable - # The end (exclusive) of the key range. - # Corresponds to the JSON property `end` - # @return [String] - attr_accessor :end - # The start (inclusive) of the key range. # Corresponds to the JSON property `start` # @return [String] @@ -1276,15 +211,55 @@ module Google # @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) - @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) @data_disk = args[:data_disk] if args.key?(:data_disk) + @end = args[:end] if args.key?(:end) + end + end + + # The packages that must be installed in order for a worker to run the + # steps of the Cloud Dataflow job that will be assigned to its worker + # pool. + # This is the mechanism by which the Cloud Dataflow SDK causes code to + # be loaded onto the workers. For example, the Cloud Dataflow Java SDK + # might use this to install jars containing the user's code and all of the + # various dependencies (libraries, data files, etc.) required in order + # for that code to run. + class Package + include Google::Apis::Core::Hashable + + # The name of the package. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The resource to read the package from. The supported resource type is: + # Google Cloud Storage: + # storage.googleapis.com/`bucket` + # bucket.storage.googleapis.com/ + # 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) + @name = args[:name] if args.key?(:name) + @location = args[:location] if args.key?(:location) end end @@ -1295,16 +270,6 @@ module Google class ParDoInstruction include Google::Apis::Core::Hashable - # Information about each of the outputs, if user_fn is a MultiDoFn. - # Corresponds to the JSON property `multiOutputInfos` - # @return [Array] - attr_accessor :multi_output_infos - - # The user function to invoke. - # Corresponds to the JSON property `userFn` - # @return [Hash] - attr_accessor :user_fn - # An input of an instruction, as a reference to an output of a # producer instruction. # Corresponds to the JSON property `input` @@ -1321,17 +286,92 @@ module Google # @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] + attr_accessor :multi_output_infos + + # The user function to invoke. + # Corresponds to the JSON property `userFn` + # @return [Hash] + attr_accessor :user_fn + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) + @multi_output_infos = args[:multi_output_infos] if args.key?(:multi_output_infos) + @user_fn = args[:user_fn] if args.key?(:user_fn) + end + end + + # Identifies a counter within a per-job namespace. Counters whose structured + # names are the same get merged into a single value for the job. + class CounterStructuredName + include Google::Apis::Core::Hashable + + # 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] + attr_accessor :component_step_name + + # Portion of this counter, either key or value. + # Corresponds to the JSON property `portion` + # @return [String] + attr_accessor :portion + + # System generated name of the original step in the user's graph, before + # optimization. + # Corresponds to the JSON property `originalStepName` + # @return [String] + attr_accessor :original_step_name + + # ID of a particular worker. + # Corresponds to the JSON property `workerId` + # @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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) end end @@ -1339,6 +379,19 @@ 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 + # 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 @@ -1347,6 +400,12 @@ module Google # @return [Object] attr_accessor :set + # Worker-computed aggregate value for internal use by the Dataflow + # service. + # Corresponds to the JSON property `internal` + # @return [Object] + attr_accessor :internal + # True if this metric 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 metric is reported @@ -1356,12 +415,6 @@ module Google attr_accessor :cumulative alias_method :cumulative?, :cumulative - # Worker-computed aggregate value for internal use by the Dataflow - # service. - # Corresponds to the JSON property `internal` - # @return [Object] - attr_accessor :internal - # Metric aggregation kind. The possible metric aggregation kinds are # "Sum", "Max", "Min", "Mean", "Set", "And", and "Or". # The specified aggregation kind is case-insensitive. @@ -1393,99 +446,21 @@ 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 - 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) @set = args[:set] if args.key?(:set) - @cumulative = args[:cumulative] if args.key?(:cumulative) @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) - end - end - - # Identifies a counter within a per-job namespace. Counters whose structured - # names are the same get merged into a single value for the job. - class CounterStructuredName - include Google::Apis::Core::Hashable - - # Name of the optimized step being executed by the workers. - # Corresponds to the JSON property `componentStepName` - # @return [String] - attr_accessor :component_step_name - - # Portion of this counter, either key or value. - # Corresponds to the JSON property `portion` - # @return [String] - attr_accessor :portion - - # System generated name of the original step in the user's graph, before - # optimization. - # Corresponds to the JSON property `originalStepName` - # @return [String] - attr_accessor :original_step_name - - # ID of a particular worker. - # Corresponds to the JSON property `workerId` - # @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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @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) end end @@ -1527,25 +502,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_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) + @worker_metrics_response = args[:worker_metrics_response] if args.key?(:worker_metrics_response) end end @@ -1553,15 +528,6 @@ module Google class TemplateMetadata include Google::Apis::Core::Hashable - # If true, will bypass the validation that the temp directory is - # writable. This should only be used with templates for pipelines - # that are guaranteed not to need to write to the temp directory, - # which is subject to change based on the optimizer. - # Corresponds to the JSON property `bypassTempDirValidation` - # @return [Boolean] - attr_accessor :bypass_temp_dir_validation - alias_method :bypass_temp_dir_validation?, :bypass_temp_dir_validation - # Required. The name of the template. # Corresponds to the JSON property `name` # @return [String] @@ -1577,16 +543,25 @@ module Google # @return [String] attr_accessor :description + # If true, will bypass the validation that the temp directory is + # writable. This should only be used with templates for pipelines + # that are guaranteed not to need to write to the temp directory, + # which is subject to change based on the optimizer. + # 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) - @bypass_temp_dir_validation = args[:bypass_temp_dir_validation] if args.key?(:bypass_temp_dir_validation) @name = args[:name] if args.key?(:name) @parameters = args[:parameters] if args.key?(:parameters) @description = args[:description] if args.key?(:description) + @bypass_temp_dir_validation = args[:bypass_temp_dir_validation] if args.key?(:bypass_temp_dir_validation) end end @@ -1706,39 +681,6 @@ module Google class CounterUpdate include Google::Apis::Core::Hashable - # Basic metadata about a counter. - # Corresponds to the JSON property `nameAndKind` - # @return [Google::Apis::DataflowV1b3::NameAndKind] - attr_accessor :name_and_kind - - # A metric value representing a list of strings. - # Corresponds to the JSON property `stringList` - # @return [Google::Apis::DataflowV1b3::StringList] - attr_accessor :string_list - - # A metric value representing a distribution. - # Corresponds to the JSON property `distribution` - # @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 [String] - 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] - attr_accessor :floating_point_list - - # A representation of an int64, n, that is immune to precision loss when - # encoded in JSON. - # Corresponds to the JSON property `integer` - # @return [Google::Apis::DataflowV1b3::SplitInt64] - attr_accessor :integer - # A single message which encapsulates structured name and metadata for a given # counter. # Corresponds to the JSON property `structuredNameAndMetadata` @@ -1785,18 +727,45 @@ module Google attr_accessor :boolean alias_method :boolean?, :boolean + # Basic metadata about a counter. + # Corresponds to the JSON property `nameAndKind` + # @return [Google::Apis::DataflowV1b3::NameAndKind] + attr_accessor :name_and_kind + + # A metric value representing a list of strings. + # Corresponds to the JSON property `stringList` + # @return [Google::Apis::DataflowV1b3::StringList] + attr_accessor :string_list + + # A metric value representing a distribution. + # Corresponds to the JSON property `distribution` + # @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 [String] + 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] + attr_accessor :floating_point_list + + # A representation of an int64, n, that is immune to precision loss when + # encoded in JSON. + # Corresponds to the JSON property `integer` + # @return [Google::Apis::DataflowV1b3::SplitInt64] + attr_accessor :integer + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) - @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) @floating_point = args[:floating_point] if args.key?(:floating_point) @@ -1805,6 +774,12 @@ module Google @internal = args[:internal] if args.key?(:internal) @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) + @floating_point_list = args[:floating_point_list] if args.key?(:floating_point_list) + @integer = args[:integer] if args.key?(:integer) end end @@ -1850,6 +825,18 @@ 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 `max` + # @return [Google::Apis::DataflowV1b3::SplitInt64] + attr_accessor :max + + # 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 `count` @@ -1867,29 +854,17 @@ 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 `max` - # @return [Google::Apis::DataflowV1b3::SplitInt64] - attr_accessor :max - - # 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) + @max = args[:max] if args.key?(:max) + @sum = args[:sum] if args.key?(:sum) @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) - @max = args[:max] if args.key?(:max) - @sum = args[:sum] if args.key?(:sum) end end @@ -1963,6 +938,47 @@ module Google 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 + + # 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 + # Amount of time the worker requests for its lease. # Corresponds to the JSON property `requestedLeaseDuration` # @return [String] @@ -2006,66 +1022,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 - - # 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 - 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) + @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) @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) - @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) end end @@ -2107,6 +1082,29 @@ module Google class WorkItemServiceState include Google::Apis::Core::Hashable + # A suggestion by the service to the worker to dynamically split the WorkItem. + # Corresponds to the JSON property `splitRequest` + # @return [Google::Apis::DataflowV1b3::ApproximateSplitRequest] + attr_accessor :split_request + + # New recommended reporting interval. + # Corresponds to the JSON property `reportStatusInterval` + # @return [String] + attr_accessor :report_status_interval + + # 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 `suggestedStopPosition` + # @return [Google::Apis::DataflowV1b3::Position] + attr_accessor :suggested_stop_position + + # Other data returned by the service, specific to the particular + # worker harness. + # Corresponds to the JSON property `harnessData` + # @return [Hash] + attr_accessor :harness_data + # Time at which the current lease will expire. # Corresponds to the JSON property `leaseExpireTime` # @return [String] @@ -2134,43 +1132,20 @@ module Google # @return [Google::Apis::DataflowV1b3::ApproximateProgress] attr_accessor :suggested_stop_point - # A suggestion by the service to the worker to dynamically split the WorkItem. - # Corresponds to the JSON property `splitRequest` - # @return [Google::Apis::DataflowV1b3::ApproximateSplitRequest] - attr_accessor :split_request - - # New recommended reporting interval. - # Corresponds to the JSON property `reportStatusInterval` - # @return [String] - attr_accessor :report_status_interval - - # 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 `suggestedStopPosition` - # @return [Google::Apis::DataflowV1b3::Position] - attr_accessor :suggested_stop_position - - # Other data returned by the service, specific to the particular - # worker harness. - # Corresponds to the JSON property `harnessData` - # @return [Hash] - attr_accessor :harness_data - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @lease_expire_time = args[:lease_expire_time] if args.key?(:lease_expire_time) - @metric_short_id = args[:metric_short_id] if args.key?(:metric_short_id) - @next_report_index = args[:next_report_index] if args.key?(:next_report_index) - @suggested_stop_point = args[:suggested_stop_point] if args.key?(:suggested_stop_point) @split_request = args[:split_request] if args.key?(:split_request) @report_status_interval = args[:report_status_interval] if args.key?(:report_status_interval) @suggested_stop_position = args[:suggested_stop_position] if args.key?(:suggested_stop_position) @harness_data = args[:harness_data] if args.key?(:harness_data) + @lease_expire_time = args[:lease_expire_time] if args.key?(:lease_expire_time) + @metric_short_id = args[:metric_short_id] if args.key?(:metric_short_id) + @next_report_index = args[:next_report_index] if args.key?(:next_report_index) + @suggested_stop_point = args[:suggested_stop_point] if args.key?(:suggested_stop_point) end end @@ -2179,6 +1154,15 @@ module Google class MetricStructuredName include Google::Apis::Core::Hashable + # Zero or more labeled fields which identify the part of the job this + # metric is associated with, such as the name of a step or collection. + # For example, built-in counters associated with steps will have + # context['step'] = . Counters associated with PCollections + # in the SDK will have context['pcollection'] = . + # Corresponds to the JSON property `context` + # @return [Hash] + attr_accessor :context + # 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` @@ -2190,24 +1174,15 @@ module Google # @return [String] attr_accessor :name - # Zero or more labeled fields which identify the part of the job this - # metric is associated with, such as the name of a step or collection. - # For example, built-in counters associated with steps will have - # context['step'] = . Counters associated with PCollections - # in the SDK will have context['pcollection'] = . - # Corresponds to the JSON property `context` - # @return [Hash] - attr_accessor :context - def initialize(**args) update!(**args) end # 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) - @context = args[:context] if args.key?(:context) end end @@ -2264,18 +1239,6 @@ module Google class KeyRangeLocation include Google::Apis::Core::Hashable - # DEPRECATED. The location of the persistent state for this range, as a - # persistent directory in the worker local filesystem. - # Corresponds to the JSON property `deprecatedPersistentDirectory` - # @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] @@ -2294,17 +1257,29 @@ module Google # @return [String] attr_accessor :end + # DEPRECATED. The location of the persistent state for this range, as a + # persistent directory in the worker local filesystem. + # Corresponds to the JSON property `deprecatedPersistentDirectory` + # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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 = 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) end end @@ -2327,6 +1302,57 @@ module Google end end + # Describes a particular function to invoke. + class SeqMapTask + include Google::Apis::Core::Hashable + + # The user-provided name of the SeqDo operation. + # 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 + + # Information about each of the inputs. + # Corresponds to the JSON property `inputs` + # @return [Array] + attr_accessor :inputs + + # System-defined name of the SeqDo operation. + # Unique across the workflow. + # Corresponds to the JSON property `systemName` + # @return [String] + attr_accessor :system_name + + # System-defined name of the stage containing the SeqDo operation. + # Unique across the workflow. + # Corresponds to the JSON property `stageName` + # @return [String] + attr_accessor :stage_name + + # The user function to invoke. + # Corresponds to the JSON property `userFn` + # @return [Hash] + attr_accessor :user_fn + + 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) + @system_name = args[:system_name] if args.key?(:system_name) + @stage_name = args[:stage_name] if args.key?(:stage_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 @@ -2352,57 +1378,6 @@ module Google end end - # Describes a particular function to invoke. - class SeqMapTask - include Google::Apis::Core::Hashable - - # The user-provided name of the SeqDo operation. - # 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 - - # Information about each of the inputs. - # Corresponds to the JSON property `inputs` - # @return [Array] - attr_accessor :inputs - - # System-defined name of the stage containing the SeqDo operation. - # Unique across the workflow. - # Corresponds to the JSON property `stageName` - # @return [String] - attr_accessor :stage_name - - # System-defined name of the SeqDo operation. - # Unique across the workflow. - # Corresponds to the JSON property `systemName` - # @return [String] - attr_accessor :system_name - - # The user function to invoke. - # Corresponds to the JSON property `userFn` - # @return [Hash] - attr_accessor :user_fn - - 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 - # 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 @@ -2414,19 +1389,6 @@ module Google class WorkerMessageCode include Google::Apis::Core::Hashable - # The code is a string intended for consumption by a machine that identifies - # the type of message being sent. - # Examples: - # 1. "HARNESS_STARTED" might be used to indicate the worker harness has - # started. - # 2. "GCS_DOWNLOAD_ERROR" might be used to indicate an error downloading - # a GCS file as part of the boot process of one of the worker containers. - # This is a string and not an enum to make it easy to add new codes without - # waiting for an API change. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - # Parameters contains specific information about the code. # This is a struct to allow parameters of different types. # Examples: @@ -2447,14 +1409,27 @@ module Google # @return [Hash] attr_accessor :parameters + # The code is a string intended for consumption by a machine that identifies + # the type of message being sent. + # Examples: + # 1. "HARNESS_STARTED" might be used to indicate the worker harness has + # started. + # 2. "GCS_DOWNLOAD_ERROR" might be used to indicate an error downloading + # a GCS file as part of the boot process of one of the worker containers. + # This is a string and not an enum to make it easy to add new codes without + # waiting for an API change. + # 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) - @code = args[:code] if args.key?(:code) @parameters = args[:parameters] if args.key?(:parameters) + @code = args[:code] if args.key?(:code) end end @@ -2567,11 +1542,6 @@ module Google class InstructionOutput include Google::Apis::Core::Hashable - # The codec to use to encode data being written via this output. - # Corresponds to the JSON property `codec` - # @return [Hash] - attr_accessor :codec - # The user-provided name of this output. # Corresponds to the JSON property `name` # @return [String] @@ -2603,18 +1573,23 @@ module Google attr_accessor :only_count_value_bytes alias_method :only_count_value_bytes?, :only_count_value_bytes + # The codec to use to encode data being written via this output. + # 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) - @codec = args[:codec] if args.key?(:codec) @name = args[:name] if args.key?(:name) @original_name = args[:original_name] if args.key?(:original_name) @system_name = args[:system_name] if args.key?(:system_name) @only_count_key_bytes = args[:only_count_key_bytes] if args.key?(:only_count_key_bytes) @only_count_value_bytes = args[:only_count_value_bytes] if args.key?(:only_count_value_bytes) + @codec = args[:codec] if args.key?(:codec) end end @@ -2622,16 +1597,6 @@ module Google class CreateJobFromTemplateRequest 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 - # Required. A Cloud Storage path to the template from which to # create the job. # Must be a valid Cloud Storage URL, beginning with `gs://`. @@ -2644,16 +1609,26 @@ module Google # @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) - @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) @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 @@ -2720,16 +1695,6 @@ module Google class ComputationTopology include Google::Apis::Core::Hashable - # 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 - # The system stage name. # Corresponds to the JSON property `systemStageName` # @return [String] @@ -2755,19 +1720,29 @@ module Google # @return [String] attr_accessor :user_stage_name + # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @state_families = args[:state_families] if args.key?(:state_families) - @outputs = args[:outputs] if args.key?(:outputs) @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) @key_ranges = args[:key_ranges] if args.key?(:key_ranges) @user_stage_name = args[:user_stage_name] if args.key?(:user_stage_name) + @outputs = args[:outputs] if args.key?(:outputs) + @state_families = args[:state_families] if args.key?(:state_families) end end @@ -2824,24 +1799,24 @@ module Google 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 + # 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) - @tag = args[:tag] if args.key?(:tag) @state_family = args[:state_family] if args.key?(:state_family) + @tag = args[:tag] if args.key?(:tag) end end @@ -2886,133 +1861,20 @@ module Google 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 - # Defines a job to be run by the Cloud Dataflow service. class Job include Google::Apis::Core::Hashable - # 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 - - # 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 - - # 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 + # The ID of the Cloud Platform project that the job belongs to. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + # 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. @@ -3063,31 +1925,144 @@ module Google # @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) - @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) - @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) - @project_id = args[:project_id] if args.key?(:project_id) @type = args[:type] if args.key?(:type) + @project_id = args[:project_id] if args.key?(:project_id) @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 + + # 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 @@ -3151,6 +2126,20 @@ module Google 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 @@ -3186,17 +2175,59 @@ module Google end end - # Response to a send capture request. - # nothing - class SendDebugCaptureResponse + # 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 @@ -3227,87 +2258,6 @@ module Google 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 - - # Index of the inner source. - # Corresponds to the JSON property `index` - # @return [Fixnum] - attr_accessor :index - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @index = args[:index] if args.key?(:index) - @position = args[:position] if args.key?(:position) - 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 - - # 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 - # Describes full or partial data disk assignment information of the computation # ranges. class StreamingComputationRanges @@ -3334,6 +2284,31 @@ module Google 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 + # 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. @@ -3414,24 +2389,24 @@ module Google class SourceSplitShard 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 - # 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) - @source = args[:source] if args.key?(:source) @derivation_mode = args[:derivation_mode] if args.key?(:derivation_mode) + @source = args[:source] if args.key?(:source) end end @@ -3472,6 +2447,22 @@ module Google class Environment include Google::Apis::Core::Hashable + # The list of experiments to enable. + # Corresponds to the JSON property `experiments` + # @return [Array] + attr_accessor :experiments + + # Experimental settings. + # Corresponds to the JSON property `internalExperiments` + # @return [Hash] + attr_accessor :internal_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 + # Identity to run virtual machines as. Defaults to the default account. # Corresponds to the JSON property `serviceAccountEmail` # @return [String] @@ -3528,28 +2519,15 @@ module Google # @return [String] attr_accessor :dataset - # The list of experiments to enable. - # Corresponds to the JSON property `experiments` - # @return [Array] - attr_accessor :experiments - - # Experimental settings. - # Corresponds to the JSON property `internalExperiments` - # @return [Hash] - attr_accessor :internal_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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @experiments = args[:experiments] if args.key?(:experiments) + @internal_experiments = args[:internal_experiments] if args.key?(:internal_experiments) + @version = args[:version] if args.key?(:version) @service_account_email = args[:service_account_email] if args.key?(:service_account_email) @sdk_pipeline_options = args[:sdk_pipeline_options] if args.key?(:sdk_pipeline_options) @user_agent = args[:user_agent] if args.key?(:user_agent) @@ -3557,9 +2535,6 @@ module Google @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) - @internal_experiments = args[:internal_experiments] if args.key?(:internal_experiments) - @version = args[:version] if args.key?(:version) end end @@ -3568,11 +2543,6 @@ module Google class StreamingComputationTask include Google::Apis::Core::Hashable - # 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] @@ -3583,15 +2553,20 @@ module Google # @return [Array] attr_accessor :data_disks + # A type of streaming computation task. + # Corresponds to the JSON property `taskType` + # @return [String] + attr_accessor :task_type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @task_type = args[:task_type] if args.key?(:task_type) @computation_ranges = args[:computation_ranges] if args.key?(:computation_ranges) @data_disks = args[:data_disks] if args.key?(:data_disks) + @task_type = args[:task_type] if args.key?(:task_type) end end @@ -3723,6 +2698,12 @@ module Google class PubsubLocation include Google::Apis::Core::Hashable + # 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] @@ -3759,25 +2740,19 @@ module Google 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) @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) end end @@ -3787,14 +2762,6 @@ module Google 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] @@ -3813,16 +2780,24 @@ module Google # @return [String] attr_accessor :report_interval + # 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 + 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) + @pods = args[:pods] if args.key?(:pods) end end @@ -3830,6 +2805,16 @@ module Google class JobMessage include Google::Apis::Core::Hashable + # 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] @@ -3841,26 +2826,16 @@ module Google # @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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @time = args[:time] if args.key?(:time) - @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) + @id = args[:id] if args.key?(:id) end end @@ -3868,6 +2843,17 @@ module Google class ParameterMetadata include Google::Apis::Core::Hashable + # 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] @@ -3883,28 +2869,17 @@ module Google # @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) + @is_optional = args[:is_optional] if args.key?(:is_optional) + @name = args[:name] if args.key?(:name) @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 @@ -3985,6 +2960,31 @@ module Google end end + # A task which consists of a shell command for the worker to execute. + class ShellTask + include Google::Apis::Core::Hashable + + # 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) + @command = args[:command] if args.key?(:command) + @exit_code = args[:exit_code] if args.key?(:exit_code) + end + end + # The metric short id is returned to the user alongside an offset into # ReportWorkItemStatusRequest class MetricShortId @@ -4012,39 +3012,30 @@ module Google end end - # A task which consists of a shell command for the worker to execute. - 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 - - 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) - end - end - # Taskrunner configuration settings. class TaskRunnerSettings include Google::Apis::Core::Hashable - # The streaming worker main class name. - # Corresponds to the JSON property `streamingWorkerMainClass` + # The command to launch the worker harness. + # Corresponds to the JSON property `harnessCommand` # @return [String] - attr_accessor :streaming_worker_main_class + attr_accessor :harness_command + + # The directory on the VM to store logs. + # Corresponds to the JSON property `logDir` + # @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. @@ -4056,6 +3047,11 @@ module Google # @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] @@ -4115,17 +3111,17 @@ module Google # @return [Google::Apis::DataflowV1b3::WorkerSettings] attr_accessor :parallel_worker_settings + # The ID string of the VM. + # Corresponds to the JSON property `vmId` + # @return [String] + attr_accessor :vm_id + # The UNIX user ID on the worker VM to use for tasks launched by # taskrunner; e.g. "root". # Corresponds to the JSON property `taskUser` # @return [String] attr_accessor :task_user - # The ID string of the VM. - # Corresponds to the JSON property `vmId` - # @return [String] - attr_accessor :vm_id - # Whether to also send taskrunner log info to stderr. # Corresponds to the JSON property `alsologtostderr` # @return [Boolean] @@ -4138,35 +3134,18 @@ module Google # @return [String] attr_accessor :task_group - # The command to launch the worker harness. - # Corresponds to the JSON property `harnessCommand` - # @return [String] - attr_accessor :harness_command - - # The directory on the VM to store logs. - # Corresponds to the JSON property `logDir` - # @return [String] - attr_accessor :log_dir - - # 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @streaming_worker_main_class = args[:streaming_worker_main_class] if args.key?(:streaming_worker_main_class) + @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) @@ -4176,14 +3155,10 @@ module Google @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) - @task_user = args[:task_user] if args.key?(:task_user) @vm_id = args[:vm_id] if args.key?(:vm_id) + @task_user = args[:task_user] if args.key?(:task_user) @alsologtostderr = args[:alsologtostderr] if args.key?(:alsologtostderr) @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) - @dataflow_api_version = args[:dataflow_api_version] if args.key?(:dataflow_api_version) - @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) end end @@ -4243,36 +3218,15 @@ module Google end end - # A representation of an int64, n, that is immune to precision loss when - # encoded in JSON. - class SplitInt64 - include Google::Apis::Core::Hashable - - # The low order bits: n & 0xffffffff. - # Corresponds to the JSON property `lowBits` - # @return [Fixnum] - attr_accessor :low_bits - - # The high order bits, including the sign: n >> 32. - # Corresponds to the JSON property `highBits` - # @return [Fixnum] - attr_accessor :high_bits - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @low_bits = args[:low_bits] if args.key?(:low_bits) - @high_bits = args[:high_bits] if args.key?(:high_bits) - 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` @@ -4314,10 +3268,34 @@ module Google 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) + @spec = args[:spec] if args.key?(:spec) + @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) + end + end + + # A representation of an int64, n, that is immune to precision loss when + # encoded in JSON. + class SplitInt64 + include Google::Apis::Core::Hashable + + # The low order bits: n & 0xffffffff. + # Corresponds to the JSON property `lowBits` + # @return [Fixnum] + attr_accessor :low_bits + + # The high order bits, including the sign: n >> 32. + # Corresponds to the JSON property `highBits` + # @return [Fixnum] + attr_accessor :high_bits def initialize(**args) update!(**args) @@ -4325,11 +3303,8 @@ module Google # 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) + @low_bits = args[:low_bits] if args.key?(:low_bits) + @high_bits = args[:high_bits] if args.key?(:high_bits) end end @@ -4341,43 +3316,6 @@ module Google class WorkerPool include Google::Apis::Core::Hashable - # Data disks that are used by a VM in this workflow. - # Corresponds to the JSON property `dataDisks` - # @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 - - # Network to which VMs will be assigned. If empty or unspecified, - # the service will use the network "default". - # Corresponds to the JSON property `network` - # @return [String] - attr_accessor :network - # 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. @@ -4385,19 +3323,18 @@ module Google # @return [String] attr_accessor :default_package_set + # Network to which VMs will be assigned. If empty or unspecified, + # the service will use the network "default". + # Corresponds to the JSON property `network` + # @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` # @return [String] attr_accessor :zone - # 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 # attempt to choose a reasonable default. @@ -4405,6 +3342,13 @@ 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 + # Fully qualified source image for disks. # Corresponds to the JSON property `diskSourceImage` # @return [String] @@ -4474,23 +3418,48 @@ module Google # @return [String] attr_accessor :kind + # Data disks that are used by a VM in this workflow. + # Corresponds to the JSON property `dataDisks` + # @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 + + # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) - @network = args[:network] if args.key?(:network) @default_package_set = args[:default_package_set] if args.key?(:default_package_set) + @network = args[:network] if args.key?(:network) @zone = args[:zone] if args.key?(:zone) - @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) + @num_threads_per_worker = args[:num_threads_per_worker] if args.key?(:num_threads_per_worker) @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) @@ -4501,6 +3470,12 @@ module Google @disk_type = args[:disk_type] if args.key?(:disk_type) @machine_type = args[:machine_type] if args.key?(:machine_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) + @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) end end @@ -4546,27 +3521,6 @@ module Google class WorkItem include Google::Apis::Core::Hashable - # 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 [String] - attr_accessor :id - # Work item-specific configuration as an opaque blob. # Corresponds to the JSON property `configuration` # @return [String] @@ -4602,53 +3556,106 @@ module Google # @return [String] attr_accessor :report_status_interval + # 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 + # 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 + # 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 - # 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 [String] 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 [String] + attr_accessor :id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @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) @streaming_setup_task = args[:streaming_setup_task] if args.key?(:streaming_setup_task) - @streaming_config_task = args[:streaming_config_task] if args.key?(:streaming_config_task) + @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) + end + end + + # Represents the level of parallelism in a WorkItem's input, + # reported by the worker. + class ReportedParallelism + include Google::Apis::Core::Hashable + + # Specifies whether the parallelism is infinite. If true, "value" is + # ignored. + # Infinite parallelism means the service will assume that the work item + # can always be split into more non-empty work items by dynamic splitting. + # This is a work-around for lack of support for infinity by the current + # JSON-based Java RPC stack. + # Corresponds to the JSON property `isInfinite` + # @return [Boolean] + attr_accessor :is_infinite + alias_method :is_infinite?, :is_infinite + + # Specifies the level of parallelism in case it is finite. + # 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) + @is_infinite = args[:is_infinite] if args.key?(:is_infinite) + @value = args[:value] if args.key?(:value) end end @@ -4673,48 +3680,11 @@ module Google end end - # Represents the level of parallelism in a WorkItem's input, - # reported by the worker. - class ReportedParallelism - include Google::Apis::Core::Hashable - - # Specifies the level of parallelism in case it is finite. - # Corresponds to the JSON property `value` - # @return [Float] - attr_accessor :value - - # Specifies whether the parallelism is infinite. If true, "value" is - # ignored. - # Infinite parallelism means the service will assume that the work item - # can always be split into more non-empty work items by dynamic splitting. - # This is a work-around for lack of support for infinity by the current - # JSON-based Java RPC stack. - # Corresponds to the JSON property `isInfinite` - # @return [Boolean] - attr_accessor :is_infinite - alias_method :is_infinite?, :is_infinite - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @value = args[:value] if args.key?(:value) - @is_infinite = args[:is_infinite] if args.key?(:is_infinite) - end - end - # Global topology of the streaming Dataflow job, including all # computations and their sharded locations. class TopologyConfig include Google::Apis::Core::Hashable - # 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] @@ -4735,17 +3705,22 @@ module Google # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @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) + @forwarding_key_bits = args[:forwarding_key_bits] if args.key?(:forwarding_key_bits) end end @@ -4800,23 +3775,6 @@ module Google class WorkerSettings include Google::Apis::Core::Hashable - # The base URL for 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 work progress updates to the service. - # Corresponds to the JSON property `reportingEnabled` - # @return [Boolean] - attr_accessor :reporting_enabled - alias_method :reporting_enabled?, :reporting_enabled - # The Cloud Dataflow service path relative to the root URL, for example, # "dataflow/v1b3/projects". # Corresponds to the JSON property `servicePath` @@ -4844,18 +3802,35 @@ module Google # @return [String] attr_accessor :temp_storage_prefix + # The base URL for 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 work progress updates to the service. + # Corresponds to the JSON property `reportingEnabled` + # @return [Boolean] + attr_accessor :reporting_enabled + alias_method :reporting_enabled?, :reporting_enabled + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @base_url = args[:base_url] if args.key?(:base_url) - @reporting_enabled = args[:reporting_enabled] if args.key?(:reporting_enabled) @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) + @base_url = args[:base_url] if args.key?(:base_url) + @reporting_enabled = args[:reporting_enabled] if args.key?(:reporting_enabled) end end @@ -4936,6 +3911,1031 @@ module Google @fraction_consumed = args[:fraction_consumed] if args.key?(:fraction_consumed) end end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # 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 + + # Describes a stream of data, either as input to be processed or as + # output of a streaming Dataflow job. + class StreamLocation + include Google::Apis::Core::Hashable + + # Identifies the location of a custom souce. + # Corresponds to the JSON property `customSourceLocation` + # @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 a pubsub location to use for transferring data into or + # out of a streaming Dataflow job. + # Corresponds to the JSON property `pubsubLocation` + # @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 + + def initialize(**args) + update!(**args) + end + + # 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) + end + end + + # The response to the worker messages. + class SendWorkerMessagesResponse + include Google::Apis::Core::Hashable + + # The servers response to the worker messages. + # Corresponds to the JSON property `workerMessageResponses` + # @return [Array] + attr_accessor :worker_message_responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @worker_message_responses = args[:worker_message_responses] if args.key?(:worker_message_responses) + end + end + + # Response to a request to lease WorkItems. + class LeaseWorkItemResponse + include Google::Apis::Core::Hashable + + # A list of the leased WorkItems. + # Corresponds to the JSON property `workItems` + # @return [Array] + attr_accessor :work_items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @work_items = args[:work_items] if args.key?(:work_items) + end + end + + # Description of the type, names/ids, and input/outputs for a transform. + class TransformSummary + include Google::Apis::Core::Hashable + + # 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] + attr_accessor :id + + # User names for all collection outputs to this transform. + # Corresponds to the JSON property `outputCollectionName` + # @return [Array] + attr_accessor :output_collection_name + + # Transform-specific display data. + # Corresponds to the JSON property `displayData` + # @return [Array] + attr_accessor :display_data + + # 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 + + 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) + @output_collection_name = args[:output_collection_name] if args.key?(:output_collection_name) + @display_data = args[:display_data] if args.key?(:display_data) + @kind = args[:kind] if args.key?(:kind) + @input_collection_name = args[:input_collection_name] if args.key?(:input_collection_name) + end + end + + # Configuration information for a single streaming computation. + class StreamingComputationConfig + include Google::Apis::Core::Hashable + + # System defined name for this computation. + # Corresponds to the JSON property `systemName` + # @return [String] + attr_accessor :system_name + + # Stage name of this computation. + # Corresponds to the JSON property `stageName` + # @return [String] + attr_accessor :stage_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) + 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 + + # The sink to write to, plus its parameters. + # Corresponds to the JSON property `spec` + # @return [Hash] + attr_accessor :spec + + # The codec to use to encode data written to the sink. + # 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) + @codec = args[:codec] if args.key?(:codec) + end + end + + # An instruction that copies its inputs (zero or more) to its (single) output. + class FlattenInstruction + include Google::Apis::Core::Hashable + + # Describes the inputs to the flatten instruction. + # Corresponds to the JSON property `inputs` + # @return [Array] + attr_accessor :inputs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inputs = args[:inputs] if args.key?(:inputs) + end + end + + # An instruction that does a partial group-by-key. + # One input and one output. + class PartialGroupByKeyInstruction + include Google::Apis::Core::Hashable + + # If this instruction includes a combining function, this is the name of the + # CombineValues instruction lifted into this instruction. + # Corresponds to the JSON property `originalCombineValuesStepName` + # @return [String] + attr_accessor :original_combine_values_step_name + + # Zero or more side inputs. + # Corresponds to the JSON property `sideInputs` + # @return [Array] + attr_accessor :side_inputs + + # 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` + # @return [String] + attr_accessor :original_combine_values_input_store_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @original_combine_values_step_name = args[:original_combine_values_step_name] if args.key?(:original_combine_values_step_name) + @side_inputs = args[:side_inputs] if args.key?(:side_inputs) + @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) + end + end + + # Description of an input or output of an execution stage. + class StageSource + 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] + attr_accessor :name + + # Size of the source, if measurable. + # Corresponds to the JSON property `sizeBytes` + # @return [String] + 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 + + 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) + @size_bytes = args[:size_bytes] if args.key?(:size_bytes) + @user_name = args[:user_name] if args.key?(:user_name) + end + end + + # An input of an instruction, as a reference to an output of a + # producer instruction. + class InstructionInput + include Google::Apis::Core::Hashable + + # The index (origin zero) of the parallel instruction that produces + # the output to be consumed by this input. This index is relative + # to the list of instructions in this input's instruction's + # containing MapTask. + # Corresponds to the JSON property `producerInstructionIndex` + # @return [Fixnum] + attr_accessor :producer_instruction_index + + # The output index (origin zero) within the producer. + # Corresponds to the JSON property `outputNum` + # @return [Fixnum] + attr_accessor :output_num + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @producer_instruction_index = args[:producer_instruction_index] if args.key?(:producer_instruction_index) + @output_num = args[:output_num] if args.key?(:output_num) + end + end + + # A metric value representing a list of strings. + class StringList + include Google::Apis::Core::Hashable + + # Elements of the list. + # Corresponds to the JSON property `elements` + # @return [Array] + attr_accessor :elements + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @elements = args[:elements] if args.key?(:elements) + end + end + + # Data provided with a pipeline or transform to provide descriptive info. + class DisplayData + include Google::Apis::Core::Hashable + + # Contains value if the data is of duration type. + # Corresponds to the JSON property `durationValue` + # @return [String] + attr_accessor :duration_value + + # Contains value if the data is of int64 type. + # Corresponds to the JSON property `int64Value` + # @return [String] + attr_accessor :int64_value + + # The namespace for the key. This is usually a class name or programming + # language namespace (i.e. python module) which defines the display data. + # This allows a dax monitoring system to specially handle the data + # and perform custom rendering. + # Corresponds to the JSON property `namespace` + # @return [String] + attr_accessor :namespace + + # Contains value if the data is of float type. + # Corresponds to the JSON property `floatValue` + # @return [Float] + attr_accessor :float_value + + # The key identifying the display data. + # This is intended to be used as a label for the display data + # when viewed in a dax monitoring system. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # A possible additional shorter value to display. + # For example a java_class_name_value of com.mypackage.MyDoFn + # will be stored with MyDoFn as the short_str_value and + # com.mypackage.MyDoFn as the java_class_name value. + # short_str_value can be displayed and java_class_name_value + # will be displayed as a tooltip. + # Corresponds to the JSON property `shortStrValue` + # @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 + + # 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 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 java class type. + # Corresponds to the JSON property `javaClassValue` + # @return [String] + attr_accessor :java_class_value + + # Contains value if the data is of string type. + # Corresponds to the JSON property `strValue` + # @return [String] + attr_accessor :str_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration_value = args[:duration_value] if args.key?(:duration_value) + @int64_value = args[:int64_value] if args.key?(:int64_value) + @namespace = args[:namespace] if args.key?(:namespace) + @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) + @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value) + @bool_value = args[:bool_value] if args.key?(:bool_value) + @java_class_value = args[:java_class_value] if args.key?(:java_class_value) + @str_value = args[:str_value] if args.key?(:str_value) + 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 + + # Filter for WorkItem type. + # Corresponds to the JSON property `workItemTypes` + # @return [Array] + attr_accessor :work_item_types + + # The location which contains the WorkItem's 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_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) + @work_item_types = args[:work_item_types] if args.key?(:work_item_types) + @location = args[:location] if args.key?(:location) + end + end + + # Request to get updated debug configuration for component. + class GetDebugConfigRequest + include Google::Apis::Core::Hashable + + # The internal component id for which debug configuration is + # requested. + # 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) + @component_id = args[:component_id] if args.key?(:component_id) + @worker_id = args[:worker_id] if args.key?(:worker_id) + end + end + + # The response to a GetTemplate request. + class GetTemplateResponse + include Google::Apis::Core::Hashable + + # Metadata describing a template. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::DataflowV1b3::TemplateMetadata] + attr_accessor :metadata + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `status` + # @return [Google::Apis::DataflowV1b3::Status] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + @status = args[:status] if args.key?(:status) + end + end + + # Request to report the status of WorkItems. + 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 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 + # will be dropped (with an error response). + # Corresponds to the JSON property `workerId` + # @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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @work_item_statuses = args[:work_item_statuses] if args.key?(:work_item_statuses) + @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) + end + end + + # A task that carries configuration information for streaming computations. + 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 + + # Map from user step names to state families. + # Corresponds to the JSON property `userStepToStateFamilyNameMap` + # @return [Hash] + attr_accessor :user_step_to_state_family_name_map + + 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) + @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) + end + end + + # 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. + class PipelineDescription + include Google::Apis::Core::Hashable + + # Description of each transform in the pipeline and collections between them. + # Corresponds to the JSON property `originalPipelineTransform` + # @return [Array] + attr_accessor :original_pipeline_transform + + # Pipeline level display data. + # Corresponds to the JSON property `displayData` + # @return [Array] + attr_accessor :display_data + + # Description of each stage of execution of the pipeline. + # Corresponds to the JSON property `executionPipelineStage` + # @return [Array] + attr_accessor :execution_pipeline_stage + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @original_pipeline_transform = args[:original_pipeline_transform] if args.key?(:original_pipeline_transform) + @display_data = args[:display_data] if args.key?(:display_data) + @execution_pipeline_stage = args[:execution_pipeline_stage] if args.key?(:execution_pipeline_stage) + end + end + + # Defines a particular step within a Cloud Dataflow job. + # A job consists of multiple steps, each of which performs some + # specific operation as part of the overall job. Data is typically + # passed from one step to another as part of the job. + # Here's an example of a sequence of steps which together implement a + # Map-Reduce job: + # * Read a collection of data from some source, parsing the + # collection's elements. + # * Validate the elements. + # * Apply a user-defined function to map each element to some value + # and extract an element-specific key value. + # * Group elements with the same key into a single element with + # that key, transforming a multiply-keyed collection into a + # uniquely-keyed collection. + # * Write the elements out to some data sink. + # Note that the Cloud Dataflow service may be used to run many different + # types of jobs, not just Map-Reduce. + 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] + attr_accessor :kind + + # Named properties associated with the step. Each kind of + # predefined step has its own required set of properties. + # Must be provided on Create. Only retrieved with JOB_VIEW_ALL. + # Corresponds to the JSON property `properties` + # @return [Hash] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @kind = args[:kind] if args.key?(:kind) + @properties = args[:properties] if args.key?(:properties) + 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 + + # Indicates which location failed to respond to a request for data. + class FailedLocation + include Google::Apis::Core::Hashable + + # The name of the failed location. + # 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 + + # Describes the data disk used by a workflow job. + 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 + + # Disk storage type, as defined by Google Compute Engine. This + # must be a disk type appropriate to the project and zone in which + # the workers will run. If unknown or unspecified, the service + # will attempt to choose a reasonable default. + # For example, the standard persistent disk type is a resource name + # typically ending in "pd-standard". If SSD persistent disks are + # available, the resource name typically ends with "pd-ssd". The + # actual valid values are defined the Google Compute Engine API, + # not by the Cloud Dataflow API; consult the Google Compute Engine + # documentation for more information about determining the set of + # available disk types for a particular project and zone. + # Google Compute Engine Disk types are local to a particular + # project in a particular zone, and so the resource name will + # typically look something like this: + # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard + # Corresponds to the JSON property `diskType` + # @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 + + def initialize(**args) + update!(**args) + end + + # 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) + end + end + + # Response to a request to list job messages. + class ListJobMessagesResponse + include Google::Apis::Core::Hashable + + # The token to obtain the next page of results if there are more. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Messages in ascending timestamp order. + # Corresponds to the JSON property `jobMessages` + # @return [Array] + attr_accessor :job_messages + + 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) + @job_messages = args[:job_messages] if args.key?(:job_messages) + end + end + + # CounterMetadata includes all static non-name non-value counter attributes. + class CounterMetadata + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @standard_units = args[:standard_units] if args.key?(:standard_units) + @other_units = args[:other_units] if args.key?(:other_units) + @kind = args[:kind] if args.key?(:kind) + @description = args[:description] if args.key?(:description) + end + end + + # A progress measurement of a WorkItem by a worker. + class ApproximateReportedProgress + include Google::Apis::Core::Hashable + + # Completion as fraction of the input consumed, from 0.0 (beginning, nothing + # consumed), to 1.0 (end of the input, entire input consumed). + # Corresponds to the JSON property `fractionConsumed` + # @return [Float] + attr_accessor :fraction_consumed + + # Represents the level of parallelism in a WorkItem's input, + # reported by the worker. + # Corresponds to the JSON property `consumedParallelism` + # @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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @position = args[:position] if args.key?(:position) + end + end end end end diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index b6725d9e5..bd2bca852 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -22,163 +22,7 @@ module Google module Apis module DataflowV1b3 - class Status - 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 ReportWorkItemStatusRequest - 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 PipelineDescription - 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 JobExecutionInfo - 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 ListJobMessagesResponse - 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 ApproximateReportedProgress + class StateFamilyConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -190,12 +34,6 @@ module Google 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 @@ -214,13 +52,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Package + class KeyRangeDataDiskAssignment class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class KeyRangeDataDiskAssignment + class Package class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -232,13 +70,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class MetricUpdate + class CounterStructuredName class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CounterStructuredName + class MetricUpdate class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -358,13 +196,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class NameAndKind + class SeqMapTask class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SeqMapTask + class NameAndKind class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -454,13 +292,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DerivedSource + class Job class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Job + class DerivedSource class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -478,25 +316,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SideInputInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SendDebugCaptureResponse 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 ConcatPosition + class SideInputInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -508,7 +334,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AutoscalingSettings + class ConcatPosition + 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 @@ -520,6 +352,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AutoscalingSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ExecutionStageSummary class Representation < Google::Apis::Core::JsonRepresentation; end @@ -622,13 +460,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class MetricShortId + class ShellTask class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ShellTask + class MetricShortId class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -646,13 +484,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SplitInt64 + class Source class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Source + class SplitInt64 class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -676,13 +514,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ResourceUtilizationReport + class ReportedParallelism class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ReportedParallelism + class ResourceUtilizationReport class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -731,275 +569,172 @@ module Google 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 StreamLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :streaming_stage_location, as: 'streamingStageLocation', class: Google::Apis::DataflowV1b3::StreamingStageLocation, decorator: Google::Apis::DataflowV1b3::StreamingStageLocation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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 - - property :custom_source_location, as: 'customSourceLocation', class: Google::Apis::DataflowV1b3::CustomSourceLocation, decorator: Google::Apis::DataflowV1b3::CustomSourceLocation::Representation - - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end - end - - class StreamingComputationConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :computation_id, as: 'computationId' - 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 TransformSummary - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :display_data, as: 'displayData', class: Google::Apis::DataflowV1b3::DisplayData, decorator: Google::Apis::DataflowV1b3::DisplayData::Representation - - collection :output_collection_name, as: 'outputCollectionName' - property :kind, as: 'kind' - collection :input_collection_name, as: 'inputCollectionName' - property :name, as: 'name' - property :id, as: 'id' - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport + end + + class TransformSummary + 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 LaunchTemplateParameters - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::RuntimeEnvironment, decorator: Google::Apis::DataflowV1b3::RuntimeEnvironment::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - hash :parameters, as: 'parameters' - property :job_name, as: 'jobName' - end + include Google::Apis::Core::JsonObjectSupport end class Sink - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :codec, as: 'codec' - hash :spec, as: 'spec' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class PartialGroupByKeyInstruction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :original_combine_values_step_name, as: 'originalCombineValuesStepName' - property :input, as: 'input', class: Google::Apis::DataflowV1b3::InstructionInput, decorator: Google::Apis::DataflowV1b3::InstructionInput::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class StageSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :size_bytes, as: 'sizeBytes' - property :user_name, as: 'userName' - property :original_transform_or_collection, as: 'originalTransformOrCollection' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class InstructionInput - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :producer_instruction_index, as: 'producerInstructionIndex' - property :output_num, as: 'outputNum' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class StringList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :elements, as: 'elements' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class DisplayData - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :duration_value, as: 'durationValue' - property :int64_value, 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' - property :java_class_value, as: 'javaClassValue' - property :bool_value, as: 'boolValue' - property :str_value, as: 'strValue' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class GetDebugConfigRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :component_id, as: 'componentId' - property :worker_id, as: 'workerId' - end + include Google::Apis::Core::JsonObjectSupport end 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 + 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 GetTemplateResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::DataflowV1b3::TemplateMetadata, decorator: Google::Apis::DataflowV1b3::TemplateMetadata::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :status, as: 'status', class: Google::Apis::DataflowV1b3::Status, decorator: Google::Apis::DataflowV1b3::Status::Representation - - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - hash :user_step_to_state_family_name_map, as: 'userStepToStateFamilyNameMap' - end + include Google::Apis::Core::JsonObjectSupport end class PipelineDescription - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :display_data, as: 'displayData', class: Google::Apis::DataflowV1b3::DisplayData, decorator: Google::Apis::DataflowV1b3::DisplayData::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :execution_pipeline_stage, as: 'executionPipelineStage', class: Google::Apis::DataflowV1b3::ExecutionStageSummary, decorator: Google::Apis::DataflowV1b3::ExecutionStageSummary::Representation - - collection :original_pipeline_transform, as: 'originalPipelineTransform', class: Google::Apis::DataflowV1b3::TransformSummary, decorator: Google::Apis::DataflowV1b3::TransformSummary::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class Step - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :properties, as: 'properties' - property :name, as: 'name' - property :kind, as: 'kind' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class FailedLocation - # @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 Disk - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :size_gb, as: 'sizeGb' - property :disk_type, as: 'diskType' - property :mount_point, as: 'mountPoint' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListJobMessagesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :job_messages, as: 'jobMessages', class: Google::Apis::DataflowV1b3::JobMessage, decorator: Google::Apis::DataflowV1b3::JobMessage::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class CounterMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :other_units, as: 'otherUnits' - property :kind, as: 'kind' - property :description, as: 'description' - property :standard_units, as: 'standardUnits' - end + 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 StateFamilyConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 - - property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - - property :fraction_consumed, as: 'fractionConsumed' + property :state_family, as: 'stateFamily' + property :is_read, as: 'isRead' end end @@ -1011,14 +746,6 @@ module Google 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 # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1028,11 +755,11 @@ module Google 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 + collection :shards, as: 'shards', class: Google::Apis::DataflowV1b3::SourceSplitShard, decorator: Google::Apis::DataflowV1b3::SourceSplitShard::Representation + end end @@ -1042,79 +769,79 @@ module Google collection :outputs, as: 'outputs', class: Google::Apis::DataflowV1b3::InstructionOutput, decorator: Google::Apis::DataflowV1b3::InstructionOutput::Representation property :name, as: 'name' - property :par_do, as: 'parDo', class: Google::Apis::DataflowV1b3::ParDoInstruction, decorator: Google::Apis::DataflowV1b3::ParDoInstruction::Representation - property :read, as: 'read', class: Google::Apis::DataflowV1b3::ReadInstruction, decorator: Google::Apis::DataflowV1b3::ReadInstruction::Representation - property :original_name, as: 'originalName' + 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 :system_name, as: 'systemName' property :partial_group_by_key, as: 'partialGroupByKey', class: Google::Apis::DataflowV1b3::PartialGroupByKeyInstruction, decorator: Google::Apis::DataflowV1b3::PartialGroupByKeyInstruction::Representation end end - class Package - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :location, as: 'location' - property :name, as: 'name' - end - end - class KeyRangeDataDiskAssignment # @private class Representation < Google::Apis::Core::JsonRepresentation - property :end, as: 'end' 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 :name, as: 'name' + property :location, as: 'location' 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 :set, as: 'set' - property :cumulative, as: 'cumulative' - property :internal, as: 'internal' - 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 + collection :multi_output_infos, as: 'multiOutputInfos', class: Google::Apis::DataflowV1b3::MultiOutputInfo, decorator: Google::Apis::DataflowV1b3::MultiOutputInfo::Representation + hash :user_fn, as: 'userFn' end end class CounterStructuredName # @private class Representation < Google::Apis::Core::JsonRepresentation + 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' property :origin_namespace, as: 'originNamespace' - property :origin, as: 'origin' - property :name, as: 'name' - property :execution_step_name, as: 'executionStepName' + 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 :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 @@ -1131,21 +858,21 @@ module Google class WorkerMessageResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :worker_metrics_response, as: 'workerMetricsResponse', class: Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse, decorator: Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse::Representation - 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 :bypass_temp_dir_validation, as: 'bypassTempDirValidation' property :name, as: 'name' collection :parameters, as: 'parameters', class: Google::Apis::DataflowV1b3::ParameterMetadata, decorator: Google::Apis::DataflowV1b3::ParameterMetadata::Representation property :description, as: 'description' + property :bypass_temp_dir_validation, as: 'bypassTempDirValidation' end end @@ -1182,17 +909,6 @@ module Google class CounterUpdate # @private class Representation < Google::Apis::Core::JsonRepresentation - 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, 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 @@ -1205,6 +921,17 @@ module Google 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, 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 + end end @@ -1220,15 +947,15 @@ module Google class DistributionUpdate # @private class Representation < Google::Apis::Core::JsonRepresentation + property :max, as: 'max', 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 + 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' - property :max, as: 'max', 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 @@ -1256,6 +983,19 @@ module Google class WorkItemStatus # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 + property :requested_lease_duration, as: 'requestedLeaseDuration' property :report_index, as: 'reportIndex' property :stop_position, as: 'stopPosition', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation @@ -1265,19 +1005,6 @@ module Google 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 :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 - end end @@ -1293,27 +1020,27 @@ module Google class WorkItemServiceState # @private class Representation < Google::Apis::Core::JsonRepresentation - 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, as: 'nextReportIndex' - 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 :report_status_interval, as: 'reportStatusInterval' property :suggested_stop_position, as: 'suggestedStopPosition', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation 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, as: 'nextReportIndex' + property :suggested_stop_point, as: 'suggestedStopPoint', class: Google::Apis::DataflowV1b3::ApproximateProgress, decorator: Google::Apis::DataflowV1b3::ApproximateProgress::Representation + end end class MetricStructuredName # @private class Representation < Google::Apis::Core::JsonRepresentation + hash :context, as: 'context' property :origin, as: 'origin' property :name, as: 'name' - hash :context, as: 'context' end end @@ -1336,11 +1063,11 @@ module Google class KeyRangeLocation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :deprecated_persistent_directory, as: 'deprecatedPersistentDirectory' - property :delivery_endpoint, as: 'deliveryEndpoint' property :start, as: 'start' property :data_disk, as: 'dataDisk' property :end, as: 'end' + property :deprecated_persistent_directory, as: 'deprecatedPersistentDirectory' + property :delivery_endpoint, as: 'deliveryEndpoint' end end @@ -1352,14 +1079,6 @@ module Google end end - class NameAndKind - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :kind, as: 'kind' - end - end - class SeqMapTask # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1368,17 +1087,25 @@ module Google 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' + property :stage_name, as: 'stageName' 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 # @private class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' hash :parameters, as: 'parameters' + property :code, as: 'code' end end @@ -1419,23 +1146,23 @@ module Google 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' + hash :codec, as: 'codec' end end class CreateJobFromTemplateRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :parameters, as: 'parameters' - 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 + hash :parameters, as: 'parameters' + property :job_name, as: 'jobName' end end @@ -1463,10 +1190,6 @@ module Google class ComputationTopology # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 - property :system_stage_name, as: 'systemStageName' collection :inputs, as: 'inputs', class: Google::Apis::DataflowV1b3::StreamLocation, decorator: Google::Apis::DataflowV1b3::StreamLocation::Representation @@ -1474,6 +1197,10 @@ module Google collection :key_ranges, as: 'keyRanges', class: Google::Apis::DataflowV1b3::KeyRangeLocation, decorator: Google::Apis::DataflowV1b3::KeyRangeLocation::Representation property :user_stage_name, as: 'userStageName' + 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 + end end @@ -1491,8 +1218,8 @@ module Google class StreamingSideInputLocation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :tag, as: 'tag' property :state_family, as: 'stateFamily' + property :tag, as: 'tag' end end @@ -1511,41 +1238,41 @@ module Google end end - 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 - - end - end - class Job # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 :execution_info, as: 'executionInfo', class: Google::Apis::DataflowV1b3::JobExecutionInfo, decorator: Google::Apis::DataflowV1b3::JobExecutionInfo::Representation - - property :current_state, as: 'currentState' - 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' - property :project_id, as: 'projectId' property :type, as: 'type' + property :project_id, as: 'projectId' property :pipeline_description, as: 'pipelineDescription', class: Google::Apis::DataflowV1b3::PipelineDescription, decorator: Google::Apis::DataflowV1b3::PipelineDescription::Representation property :replace_job_id, as: 'replaceJobId' property :requested_state, as: 'requestedState' collection :temp_files, as: 'tempFiles' property :client_request_id, as: 'clientRequestId' + property :name, as: 'name' + collection :steps, as: 'steps', class: Google::Apis::DataflowV1b3::Step, decorator: Google::Apis::DataflowV1b3::Step::Representation + + 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 + + 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 + end end @@ -1569,6 +1296,12 @@ module Google end end + class SendDebugCaptureResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class SideInputInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1579,31 +1312,6 @@ module Google end end - class SendDebugCaptureResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - class ConcatPosition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :index, as: 'index' - property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - - end - end - class CounterStructuredNameAndMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1614,11 +1322,22 @@ module Google end end - class AutoscalingSettings + class ConcatPosition # @private class Representation < Google::Apis::Core::JsonRepresentation - property :algorithm, as: 'algorithm' - property :max_num_workers, as: 'maxNumWorkers' + 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 @@ -1631,6 +1350,14 @@ module Google end end + class AutoscalingSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_num_workers, as: 'maxNumWorkers' + property :algorithm, as: 'algorithm' + end + end + class ExecutionStageSummary # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1659,9 +1386,9 @@ module Google class SourceSplitShard # @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 @@ -1677,6 +1404,9 @@ module Google class Environment # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :experiments, as: 'experiments' + hash :internal_experiments, as: 'internalExperiments' + hash :version, as: 'version' property :service_account_email, as: 'serviceAccountEmail' hash :sdk_pipeline_options, as: 'sdkPipelineOptions' hash :user_agent, as: 'userAgent' @@ -1685,20 +1415,17 @@ module Google collection :worker_pools, as: 'workerPools', class: Google::Apis::DataflowV1b3::WorkerPool, decorator: Google::Apis::DataflowV1b3::WorkerPool::Representation property :dataset, as: 'dataset' - collection :experiments, as: 'experiments' - hash :internal_experiments, as: 'internalExperiments' - hash :version, as: 'version' end end class StreamingComputationTask # @private class Representation < Google::Apis::Core::JsonRepresentation - property :task_type, as: 'taskType' collection :computation_ranges, as: 'computationRanges', class: Google::Apis::DataflowV1b3::StreamingComputationRanges, decorator: Google::Apis::DataflowV1b3::StreamingComputationRanges::Representation collection :data_disks, as: 'dataDisks', class: Google::Apis::DataflowV1b3::MountedDataDisk, decorator: Google::Apis::DataflowV1b3::MountedDataDisk::Representation + property :task_type, as: 'taskType' end end @@ -1741,44 +1468,44 @@ module Google class PubsubLocation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :tracking_subscription, as: 'trackingSubscription' property :with_attributes, as: 'withAttributes' property :id_label, as: 'idLabel' property :topic, as: 'topic' property :timestamp_label, as: 'timestampLabel' property :subscription, as: 'subscription' property :drop_late_data, as: 'dropLateData' - property :tracking_subscription, as: 'trackingSubscription' end end class WorkerHealthReport # @private 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' + collection :pods, as: 'pods' end end class JobMessage # @private class Representation < Google::Apis::Core::JsonRepresentation - property :time, as: 'time' - property :id, as: 'id' property :message_text, as: 'messageText' property :message_importance, as: 'messageImportance' + property :time, as: 'time' + property :id, as: 'id' end end class ParameterMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation + property :is_optional, as: 'isOptional' + property :name, as: 'name' collection :regexes, as: 'regexes' property :label, as: 'label' property :help_text, as: 'helpText' - property :is_optional, as: 'isOptional' - property :name, as: 'name' end end @@ -1807,6 +1534,14 @@ module Google end end + class ShellTask + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :command, as: 'command' + property :exit_code, as: 'exitCode' + end + end + class MetricShortId # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1815,19 +1550,15 @@ module Google end end - class ShellTask - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :exit_code, as: 'exitCode' - property :command, as: 'command' - end - end - class TaskRunnerSettings # @private class Representation < Google::Apis::Core::JsonRepresentation - property :streaming_worker_main_class, as: 'streamingWorkerMainClass' + 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' @@ -1838,14 +1569,10 @@ module Google property :continue_on_exception, as: 'continueOnException' property :parallel_worker_settings, as: 'parallelWorkerSettings', class: Google::Apis::DataflowV1b3::WorkerSettings, decorator: Google::Apis::DataflowV1b3::WorkerSettings::Representation - property :task_user, as: 'taskUser' 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' - property :dataflow_api_version, as: 'dataflowApiVersion' - collection :oauth_scopes, as: 'oauthScopes' end end @@ -1862,6 +1589,18 @@ module Google end end + class Source + # @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 + + collection :base_specs, as: 'baseSpecs' + hash :codec, as: 'codec' + property :does_not_need_splitting, as: 'doesNotNeedSplitting' + end + end + class SplitInt64 # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1870,35 +1609,14 @@ module Google 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 - 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' - property :network, as: 'network' property :default_package_set, as: 'defaultPackageSet' + property :network, as: 'network' property :zone, as: 'zone' - property :num_threads_per_worker, as: 'numThreadsPerWorker' 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 @@ -1910,6 +1628,15 @@ module Google property :disk_type, as: 'diskType' property :machine_type, as: 'machineType' 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 :taskrunner_settings, as: 'taskrunnerSettings', class: Google::Apis::DataflowV1b3::TaskRunnerSettings, decorator: Google::Apis::DataflowV1b3::TaskRunnerSettings::Representation + + property :autoscaling_settings, as: 'autoscalingSettings', class: Google::Apis::DataflowV1b3::AutoscalingSettings, decorator: Google::Apis::DataflowV1b3::AutoscalingSettings::Representation + + hash :metadata, as: 'metadata' end end @@ -1926,12 +1653,6 @@ module Google class WorkItem # @private class Representation < Google::Apis::Core::JsonRepresentation - 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, as: 'id' property :configuration, as: 'configuration' property :map_task, as: 'mapTask', class: Google::Apis::DataflowV1b3::MapTask, decorator: Google::Apis::DataflowV1b3::MapTask::Representation @@ -1941,14 +1662,28 @@ module Google property :project_id, as: 'projectId' property :report_status_interval, as: 'reportStatusInterval' - 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 :streaming_config_task, as: 'streamingConfigTask', class: Google::Apis::DataflowV1b3::StreamingConfigTask, decorator: Google::Apis::DataflowV1b3::StreamingConfigTask::Representation + 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, 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, as: 'id' + end + end + + class ReportedParallelism + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_infinite, as: 'isInfinite' + property :value, as: 'value' end end @@ -1960,24 +1695,16 @@ module Google 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 - property :forwarding_key_bits, as: 'forwardingKeyBits' 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 @@ -2000,12 +1727,12 @@ module Google class WorkerSettings # @private class Representation < Google::Apis::Core::JsonRepresentation - property :base_url, as: 'baseUrl' - property :reporting_enabled, as: 'reportingEnabled' property :service_path, as: 'servicePath' property :shuffle_service_path, as: 'shuffleServicePath' property :worker_id, as: 'workerId' property :temp_storage_prefix, as: 'tempStoragePrefix' + property :base_url, as: 'baseUrl' + property :reporting_enabled, as: 'reportingEnabled' end end @@ -2032,6 +1759,279 @@ module Google 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 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 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 TransformSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :id, as: 'id' + collection :output_collection_name, as: 'outputCollectionName' + collection :display_data, as: 'displayData', class: Google::Apis::DataflowV1b3::DisplayData, decorator: Google::Apis::DataflowV1b3::DisplayData::Representation + + property :kind, as: 'kind' + collection :input_collection_name, as: 'inputCollectionName' + 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 LaunchTemplateParameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::RuntimeEnvironment, decorator: Google::Apis::DataflowV1b3::RuntimeEnvironment::Representation + + hash :parameters, as: 'parameters' + property :job_name, as: 'jobName' + end + end + + class Sink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :spec, as: 'spec' + hash :codec, as: 'codec' + 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 :original_combine_values_step_name, as: 'originalCombineValuesStepName' + collection :side_inputs, as: 'sideInputs', class: Google::Apis::DataflowV1b3::SideInputInfo, decorator: Google::Apis::DataflowV1b3::SideInputInfo::Representation + + 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' + end + end + + class StageSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :original_transform_or_collection, as: 'originalTransformOrCollection' + property :name, as: 'name' + property :size_bytes, as: 'sizeBytes' + property :user_name, as: 'userName' + 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 StringList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :elements, as: 'elements' + end + end + + class DisplayData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration_value, as: 'durationValue' + property :int64_value, 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' + property :bool_value, as: 'boolValue' + property :java_class_value, as: 'javaClassValue' + property :str_value, as: 'strValue' + end + end + + 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' + collection :work_item_types, as: 'workItemTypes' + property :location, as: 'location' + end + end + + class GetDebugConfigRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :component_id, as: 'componentId' + property :worker_id, as: 'workerId' + 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 ReportWorkItemStatusRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :work_item_statuses, as: 'workItemStatuses', class: Google::Apis::DataflowV1b3::WorkItemStatus, decorator: Google::Apis::DataflowV1b3::WorkItemStatus::Representation + + property :worker_id, as: 'workerId' + property :current_worker_time, as: 'currentWorkerTime' + property :location, as: 'location' + 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 + + hash :user_step_to_state_family_name_map, as: 'userStepToStateFamilyNameMap' + 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 Step + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :kind, as: 'kind' + hash :properties, as: 'properties' + 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 :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 :standard_units, as: 'standardUnits' + property :other_units, as: 'otherUnits' + property :kind, as: 'kind' + property :description, as: 'description' + end + end + + class ApproximateReportedProgress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation + + end + end end end end diff --git a/generated/google/apis/dataflow_v1b3/service.rb b/generated/google/apis/dataflow_v1b3/service.rb index 8abf04a95..77269db59 100644 --- a/generated/google/apis/dataflow_v1b3/service.rb +++ b/generated/google/apis/dataflow_v1b3/service.rb @@ -79,6 +79,46 @@ module Google execute_or_queue_command(command, &block) end + # Request the job status. + # @param [String] project_id + # A project id. + # @param [String] location + # The location which contains the job specified by job_id. + # @param [String] job_id + # The job to get messages for. + # @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 [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 err [StandardError] error object if request failed + # + # @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_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 + 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['startTime'] = start_time unless start_time.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. # @param [String] project_id # The ID of the Cloud Platform project that the job belongs to. @@ -211,10 +251,10 @@ module Google # @param [String] location # The location that contains this job. # @param [Google::Apis::DataflowV1b3::Job] job_object - # @param [String] view - # The level of information requested in response. # @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 @@ -232,7 +272,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_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -240,23 +280,21 @@ 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['view'] = view unless view.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 - # Request the job status. + # Reports the status of dataflow WorkItems leased by a worker. # @param [String] project_id - # A project id. + # The project which owns the WorkItem's job. # @param [String] location - # The location which contains the job specified by job_id. + # The location which contains the WorkItem's job. # @param [String] job_id - # The job to get messages for. - # @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 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 @@ -266,22 +304,62 @@ module Google # 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::ReportWorkItemStatusResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::DataflowV1b3::JobMetrics] + # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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 + 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 + command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation + command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse + 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 + + # Leases a dataflow WorkItem to run. + # @param [String] project_id + # Identifies the project this worker belongs to. + # @param [String] location + # The location which contains the WorkItem's job. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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 + command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation + command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse 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['startTime'] = start_time unless start_time.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -344,84 +422,6 @@ module Google execute_or_queue_command(command, &block) end - # Leases a dataflow WorkItem to run. - # @param [String] project_id - # Identifies the project this worker belongs to. - # @param [String] location - # The location which contains the WorkItem's job. - # @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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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 - command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse - 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 - - # Reports the status of dataflow WorkItems leased by a worker. - # @param [String] project_id - # The project which owns the WorkItem's job. - # @param [String] location - # The location which contains the WorkItem's job. - # @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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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 - command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse - 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 - # Launch a template. # @param [String] project_id # Required. The ID of the Cloud Platform project that the job belongs to. @@ -579,12 +579,12 @@ module Google # @param [String] project_id # The ID of the Cloud Platform project that the job belongs to. # @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] location # 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 @@ -602,16 +602,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 create_project_job(project_id, job_object = nil, view: nil, location: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_job(project_id, job_object = nil, replace_job_id: nil, view: nil, location: 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 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['replaceJobId'] = replace_job_id unless replace_job_id.nil? 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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -662,10 +662,10 @@ module Google # The ID of the Cloud Platform project that the job belongs to. # @param [String] job_id # The job ID. - # @param [String] view - # The level of information requested in response. # @param [String] location # The location that contains this job. + # @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 @@ -683,14 +683,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_project_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_project_job(project_id, job_id, location: nil, view: 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['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) @@ -893,11 +893,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] location + # The location which contains the job specified by job_id. # @param [String] start_time # If specified, return only messages with timestamps >= start_time. # The default is the job creation time (i.e. beginning of messages). @@ -928,14 +928,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_project_job_messages(project_id, job_id, location: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_job_messages(project_id, job_id, end_time: nil, location: 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}/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['location'] = location unless location.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? diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index a80e0e077..dc66f03db 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 = '20170321' + REVISION = '20170328' # 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 972e06cdd..96637bc3a 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -22,6 +22,639 @@ module Google module Apis module DataprocV1 + # 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 which 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 purpose. + # Batch operations. If a client uses batch request and batch response, the + # Status message should be used directly inside batch response, one for each + # error sub-response. + # Asynchronous operations. If an API call embeds asynchronous operation results + # in its response, the status of those operations should be represented directly + # using the Status message. + # Logging. If some API errors are stored in logs, the message Status could be + # used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # 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 + + # Optional The config settings for Google Compute Engine resources in an + # instance group, such as a master or worker group. + class InstanceGroupConfig + include Google::Apis::Core::Hashable + + # Optional The Google Compute Engine accelerator configuration for these + # instances.Beta Feature: This feature is still under development. It may be + # changed before final release. + # Corresponds to the JSON property `accelerators` + # @return [Array] + attr_accessor :accelerators + + # Required 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] + attr_accessor :num_instances + + # Specifies the config of disk options for a group of VM instances. + # Corresponds to the JSON property `diskConfig` + # @return [Google::Apis::DataprocV1::DiskConfig] + attr_accessor :disk_config + + # Optional Specifies that this instance group contains preemptible instances. + # Corresponds to the JSON property `isPreemptible` + # @return [Boolean] + attr_accessor :is_preemptible + alias_method :is_preemptible?, :is_preemptible + + # Specifies the resources used to actively manage an instance group. + # Corresponds to the JSON property `managedGroupConfig` + # @return [Google::Apis::DataprocV1::ManagedGroupConfig] + attr_accessor :managed_group_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. + # Corresponds to the JSON property `machineTypeUri` + # @return [String] + attr_accessor :machine_type_uri + + # Output-only The Google Compute Engine image resource used for cluster + # instances. Inferred from SoftwareConfig.image_version. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + # Optional The list of instance names. Cloud Dataproc derives the names from + # cluster_name, num_instances, and the instance group if not set by user ( + # recommended practice is to let Cloud Dataproc derive the name). + # Corresponds to the JSON property `instanceNames` + # @return [Array] + attr_accessor :instance_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @accelerators = args[:accelerators] if args.key?(:accelerators) + @num_instances = args[:num_instances] if args.key?(:num_instances) + @disk_config = args[:disk_config] if args.key?(:disk_config) + @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible) + @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config) + @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri) + @image_uri = args[:image_uri] if args.key?(:image_uri) + @instance_names = args[:instance_names] if args.key?(:instance_names) + end + end + + # 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 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) + end + + # Update properties of this object + def update!(**args) + @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour) + 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 + + # Specifies an executable to run on a fully configured node and a timeout period + # for executable completion. + class NodeInitializationAction + include Google::Apis::Core::Hashable + + # Optional Amount of time executable has to complete. Default is 10 minutes. + # Cluster creation fails with an explanatory error message (the name of the + # executable that caused the error and the exceeded timeout period) if the + # executable is not completed at end of the timeout period. + # Corresponds to the JSON property `executionTimeout` + # @return [String] + attr_accessor :execution_timeout + + # Required Google Cloud Storage URI of executable file. + # Corresponds to the JSON property `executableFile` + # @return [String] + attr_accessor :executable_file + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout) + @executable_file = args[:executable_file] if args.key?(:executable_file) + end + end + + # A request to cancel a job. + class CancelJobRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/ + # ) queries. + class SparkSqlJob + include Google::Apis::Core::Hashable + + # 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` + # @return [Hash] + attr_accessor :script_variables + + # Optional HCFS URIs of jar files to be added to the Spark CLASSPATH. + # Corresponds to the JSON property `jarFileUris` + # @return [Array] + attr_accessor :jar_file_uris + + # The runtime logging config of the job. + # Corresponds to the JSON property `loggingConfig` + # @return [Google::Apis::DataprocV1::LoggingConfig] + attr_accessor :logging_config + + # Optional A mapping of property names to values, used to configure Spark SQL's + # SparkConf. Properties that conflict with values set by the Cloud Dataproc API + # may be overwritten. + # Corresponds to the JSON property `properties` + # @return [Hash] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @properties = args[:properties] if args.key?(:properties) + end + end + + # Describes the identifying information, config, and status of a cluster of + # Google Compute Engine instances. + class Cluster + include Google::Apis::Core::Hashable + + # Optional The labels to associate with this cluster. 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 cluster. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # 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. + # Corresponds to the JSON property `metrics` + # @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] + attr_accessor :status_history + + # The cluster config. + # Corresponds to the JSON property `config` + # @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 Google Cloud Platform project ID that the cluster 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) + @labels = args[:labels] if args.key?(:labels) + @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) + @project_id = args[:project_id] if args.key?(:project_id) + 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 + + # Metadata describing the operation. + class OperationMetadata + include Google::Apis::Core::Hashable + + # The time that the operation completed. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The time that the operation was started by the server. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Output-only Errors encountered during operation execution. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + # The time that the operation was requested. + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # Output-only Previous operation status. + # Corresponds to the JSON property `statusHistory` + # @return [Array] + attr_accessor :status_history + + # Output-only The operation type. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # Output-only Short description of operation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The status of the operation. + # Corresponds to the JSON property `status` + # @return [Google::Apis::DataprocV1::OperationStatus] + attr_accessor :status + + # A message containing any operation metadata details. + # Corresponds to the JSON property `details` + # @return [String] + attr_accessor :details + + # A message containing the operation state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Cluster UUId for the operation. + # Corresponds to the JSON property `clusterUuid` + # @return [String] + attr_accessor :cluster_uuid + + # Name of the cluster for the operation. + # Corresponds to the JSON property `clusterName` + # @return [String] + attr_accessor :cluster_name + + # A message containing the detailed operation state. + # Corresponds to the JSON property `innerState` + # @return [String] + attr_accessor :inner_state + + 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) + @warnings = args[:warnings] if args.key?(:warnings) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @status_history = args[:status_history] if args.key?(:status_history) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @description = args[:description] if args.key?(:description) + @status = args[:status] if args.key?(:status) + @details = args[:details] if args.key?(:details) + @state = args[:state] if args.key?(:state) + @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) + @cluster_name = args[:cluster_name] if args.key?(:cluster_name) + @inner_state = args[:inner_state] if args.key?(:inner_state) + end + end + + # Specifies the selection and config of software inside the cluster. + class SoftwareConfig + include Google::Apis::Core::Hashable + + # Optional The version of software inside the cluster. It must match the regular + # expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest version ( + # see Cloud Dataproc Versioning). + # Corresponds to the JSON property `imageVersion` + # @return [String] + attr_accessor :image_version + + # Optional The properties to set on daemon config files.Property keys are + # specified in prefix:property format, such as core:fs.defaultFS. The following + # are supported prefixes and their mappings: + # core: core-site.xml + # hdfs: hdfs-site.xml + # mapred: mapred-site.xml + # yarn: yarn-site.xml + # hive: hive-site.xml + # pig: pig.properties + # spark: spark-defaults.conf + # Corresponds to the JSON property `properties` + # @return [Hash] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_version = args[:image_version] if args.key?(:image_version) + @properties = args[:properties] if args.key?(:properties) + end + end + + # Cloud Dataproc job config. + class JobPlacement + include Google::Apis::Core::Hashable + + # Required The name of the cluster where the job will be submitted. + # Corresponds to the JSON property `clusterName` + # @return [String] + attr_accessor :cluster_name + + # Output-only A cluster UUID generated by the Cloud Dataproc service when the + # job is submitted. + # Corresponds to the JSON property `clusterUuid` + # @return [String] + attr_accessor :cluster_uuid + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster_name = args[:cluster_name] if args.key?(:cluster_name) + @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) + end + end + + # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries + # on YARN. + 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` + # @return [Array] + attr_accessor :jar_file_uris + + # Optional Mapping of query variable names to values (equivalent to the Pig + # command: name=[value]). + # Corresponds to the JSON property `scriptVariables` + # @return [Hash] + attr_accessor :script_variables + + # The runtime logging config of the job. + # Corresponds to the JSON property `loggingConfig` + # @return [Google::Apis::DataprocV1::LoggingConfig] + attr_accessor :logging_config + + # Optional A mapping of property names to values, used to configure Pig. + # 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/ + # pig/conf/pig.properties, and classes in user code. + # Corresponds to the JSON property `properties` + # @return [Hash] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + end + end + + # The status of a cluster and its instances. + class ClusterStatus + include Google::Apis::Core::Hashable + + # Output-only Time when this state was entered. + # Corresponds to the JSON property `stateStartTime` + # @return [String] + attr_accessor :state_start_time + + # Output-only Additional state information that includes status reported by the + # agent. + # Corresponds to the JSON property `substate` + # @return [String] + attr_accessor :substate + + # Output-only Optional details of cluster's state. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # Output-only The cluster's state. + # 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) + @state_start_time = args[:state_start_time] if args.key?(:state_start_time) + @substate = args[:substate] if args.key?(:substate) + @detail = args[:detail] if args.key?(:detail) + @state = args[:state] if args.key?(:state) + end + end + # The list of all clusters in a project. class ListClustersResponse include Google::Apis::Core::Hashable @@ -49,42 +682,82 @@ module Google end end + # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) + # applications on YARN. + class SparkJob + include Google::Apis::Core::Hashable + + # 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` + # @return [String] + attr_accessor :main_class + + # Optional HCFS URIs of archives to be extracted in the working directory of + # Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and . + # zip. + # Corresponds to the JSON property `archiveUris` + # @return [Array] + attr_accessor :archive_uris + + # The HCFS URI of the jar file that contains the main class. + # Corresponds to the JSON property `mainJarFileUri` + # @return [String] + attr_accessor :main_jar_file_uri + + # Optional HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver + # and tasks. + # Corresponds to the JSON property `jarFileUris` + # @return [Array] + attr_accessor :jar_file_uris + + # The runtime logging config of the job. + # Corresponds to the JSON property `loggingConfig` + # @return [Google::Apis::DataprocV1::LoggingConfig] + attr_accessor :logging_config + + # Optional A mapping of property names to values, used to configure Spark. + # Properties that conflict with values set by the Cloud Dataproc API may be + # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf + # and classes in user code. + # Corresponds to the JSON property `properties` + # @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) + @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 + # A Cloud Dataproc job resource. class Job include Google::Apis::Core::Hashable - # 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 (http://spark.apache.org/) - # applications on YARN. - # Corresponds to the JSON property `sparkJob` - # @return [Google::Apis::DataprocV1::SparkJob] - attr_accessor :spark_job - - # 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 - # 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. @@ -146,17 +819,44 @@ module Google # @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 + + # 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 + + # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @labels = args[:labels] if args.key?(:labels) - @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri) - @spark_job = args[:spark_job] if args.key?(:spark_job) - @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job) - @status_history = args[:status_history] if args.key?(:status_history) @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) @@ -167,78 +867,11 @@ module Google @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) - end - end - - # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) - # applications on YARN. - class SparkJob - include Google::Apis::Core::Hashable - - # Optional HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver - # and tasks. - # Corresponds to the JSON property `jarFileUris` - # @return [Array] - attr_accessor :jar_file_uris - - # The runtime logging config of the job. - # Corresponds to the JSON property `loggingConfig` - # @return [Google::Apis::DataprocV1::LoggingConfig] - attr_accessor :logging_config - - # Optional A mapping of property names to values, used to configure Spark. - # Properties that conflict with values set by the Cloud Dataproc API may be - # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf - # and classes in user code. - # Corresponds to the JSON property `properties` - # @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 - - # 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` - # @return [String] - attr_accessor :main_class - - # Optional HCFS URIs of archives to be extracted in the working directory of - # Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and . - # zip. - # Corresponds to the JSON property `archiveUris` - # @return [Array] - attr_accessor :archive_uris - - # The HCFS URI of the jar file that contains the main class. - # 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) - @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) - @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) + @labels = args[:labels] if args.key?(:labels) + @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri) + @status_history = args[:status_history] if args.key?(:status_history) + @spark_job = args[:spark_job] if args.key?(:spark_job) + @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job) end end @@ -246,17 +879,6 @@ module Google class JobStatus include Google::Apis::Core::Hashable - # Output-only The time when this state was entered. - # Corresponds to the JSON property `stateStartTime` - # @return [String] - attr_accessor :state_start_time - - # 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 A state message specifying the overall job state. # Corresponds to the JSON property `state` # @return [String] @@ -268,16 +890,27 @@ module Google # @return [String] attr_accessor :details + # Output-only The time when this state was entered. + # Corresponds to the JSON property `stateStartTime` + # @return [String] + attr_accessor :state_start_time + + # Output-only Additional state information, which includes status reported by + # the agent. + # Corresponds to the JSON property `substate` + # @return [String] + attr_accessor :substate + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @state_start_time = args[:state_start_time] if args.key?(:state_start_time) - @substate = args[:substate] if args.key?(:substate) @state = args[:state] if args.key?(:state) @details = args[:details] if args.key?(:details) + @state_start_time = args[:state_start_time] if args.key?(:state_start_time) + @substate = args[:substate] if args.key?(:substate) end end @@ -344,6 +977,37 @@ module Google end end + # A list of queries to run on a cluster. + class QueryList + include Google::Apis::Core::Hashable + + # Required The queries to execute. You do not need to terminate a query with a + # semicolon. Multiple queries can be specified in one string by separating each + # with a semicolon. Here is an example of an Cloud Dataproc API snippet that + # uses a QueryList to specify a HiveJob: + # "hiveJob": ` + # "queryList": ` + # "queries": [ + # "query1", + # "query2", + # "query3;query4", + # ] + # ` + # ` + # Corresponds to the JSON property `queries` + # @return [Array] + attr_accessor :queries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @queries = args[:queries] if args.key?(:queries) + end + end + # A YARN application created by a job. Application information is a subset of < # code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. # Beta Feature: This report is available for testing purposes only. It may be @@ -387,37 +1051,6 @@ module Google end end - # A list of queries to run on a cluster. - class QueryList - include Google::Apis::Core::Hashable - - # Required The queries to execute. You do not need to terminate a query with a - # semicolon. Multiple queries can be specified in one string by separating each - # with a semicolon. Here is an example of an Cloud Dataproc API snippet that - # uses a QueryList to specify a HiveJob: - # "hiveJob": ` - # "queryList": ` - # "queries": [ - # "query1", - # "query2", - # "query3;query4", - # ] - # ` - # ` - # Corresponds to the JSON property `queries` - # @return [Array] - attr_accessor :queries - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @queries = args[:queries] if args.key?(:queries) - end - end - # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop. # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/ # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/ @@ -425,27 +1058,6 @@ module Google class HadoopJob include Google::Apis::Core::Hashable - # The name of the driver's main class. The jar file containing the class must be - # in the default CLASSPATH or specified in jar_file_uris. - # Corresponds to the JSON property `mainClass` - # @return [String] - attr_accessor :main_class - - # Optional HCFS URIs of archives to be extracted in the working directory of - # Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or . - # zip. - # Corresponds to the JSON property `archiveUris` - # @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 - # Optional Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. # Corresponds to the JSON property `jarFileUris` # @return [Array] @@ -478,20 +1090,41 @@ module Google # @return [Array] attr_accessor :file_uris + # The name of the driver's main class. The jar file containing the class must be + # in the default CLASSPATH or specified in jar_file_uris. + # Corresponds to the JSON property `mainClass` + # @return [String] + attr_accessor :main_class + + # Optional HCFS URIs of archives to be extracted in the working directory of + # Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or . + # zip. + # Corresponds to the JSON property `archiveUris` + # @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_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) + @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 @@ -541,21 +1174,6 @@ module Google class ClusterOperationMetadata include Google::Apis::Core::Hashable - # Output-only The operation type. - # Corresponds to the JSON property `operationType` - # @return [String] - attr_accessor :operation_type - - # Output-only Short description of operation. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Output-only Errors encountered during operation execution. - # Corresponds to the JSON property `warnings` - # @return [Array] - attr_accessor :warnings - # Output-only Labels associated with the operation # Corresponds to the JSON property `labels` # @return [Hash] @@ -571,15 +1189,30 @@ module Google # @return [Array] attr_accessor :status_history + # Output-only Name of the cluster for the operation. + # Corresponds to the JSON property `clusterName` + # @return [String] + attr_accessor :cluster_name + # Output-only Cluster UUID for the operation. # Corresponds to the JSON property `clusterUuid` # @return [String] attr_accessor :cluster_uuid - # Output-only Name of the cluster for the operation. - # Corresponds to the JSON property `clusterName` + # Output-only The operation type. + # Corresponds to the JSON property `operationType` # @return [String] - attr_accessor :cluster_name + attr_accessor :operation_type + + # Output-only Short description of operation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output-only Errors encountered during operation execution. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings def initialize(**args) update!(**args) @@ -587,14 +1220,14 @@ module Google # Update properties of this object def update!(**args) - @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) @status = args[:status] if args.key?(:status) @status_history = args[:status_history] if args.key?(:status_history) - @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) + @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @description = args[:description] if args.key?(:description) + @warnings = args[:warnings] if args.key?(:warnings) end end @@ -774,12 +1407,6 @@ module Google class PySparkJob include Google::Apis::Core::Hashable - # Optional HCFS URIs of archives to be extracted in the working directory of . - # jar, .tar, .tar.gz, .tgz, and .zip. - # Corresponds to the JSON property `archiveUris` - # @return [Array] - attr_accessor :archive_uris - # Optional HCFS URIs of jar files to add to the CLASSPATHs of the Python driver # and tasks. # Corresponds to the JSON property `jarFileUris` @@ -824,13 +1451,18 @@ module Google # @return [String] attr_accessor :main_python_file_uri + # Optional HCFS URIs of archives to be extracted in the working directory of . + # jar, .tar, .tar.gz, .tgz, and .zip. + # Corresponds to the JSON property `archiveUris` + # @return [Array] + attr_accessor :archive_uris + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @archive_uris = args[:archive_uris] if args.key?(:archive_uris) @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) @@ -838,6 +1470,7 @@ module Google @file_uris = args[:file_uris] if args.key?(:file_uris) @python_file_uris = args[:python_file_uris] if args.key?(:python_file_uris) @main_python_file_uri = args[:main_python_file_uri] if args.key?(:main_python_file_uri) + @archive_uris = args[:archive_uris] if args.key?(:archive_uris) end end @@ -846,6 +1479,13 @@ module Google class GceClusterConfig include Google::Apis::Core::Hashable + # The Google Compute Engine metadata entries to add to all instances (see + # Project and instance metadata (https://cloud.google.com/compute/docs/storing- + # retrieving-metadata#project_and_instance_metadata)). + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + # Optional If true, all instances in the cluster will only have internal IP # addresses. By default, clusters are not restricted to internal IP addresses, # and will have ephemeral external IP addresses assigned to each instance. This @@ -857,13 +1497,6 @@ module Google attr_accessor :internal_ip_only alias_method :internal_ip_only?, :internal_ip_only - # The Google Compute Engine metadata entries to add to all instances (see - # Project and instance metadata (https://cloud.google.com/compute/docs/storing- - # retrieving-metadata#project_and_instance_metadata)). - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - # Optional The URIs of service account scopes to be included in Google Compute # Engine instances. The following base set of scopes is always included: # https://www.googleapis.com/auth/cloud.useraccounts.readonly @@ -924,8 +1557,8 @@ module Google # Update properties of this object def update!(**args) - @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only) @metadata = args[:metadata] if args.key?(:metadata) + @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only) @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes) @tags = args[:tags] if args.key?(:tags) @service_account = args[:service_account] if args.key?(:service_account) @@ -935,6 +1568,33 @@ module Google end end + # 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. + class ClusterMetrics + include Google::Apis::Core::Hashable + + # 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) + @hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics) + @yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics) + end + end + # Specifies the type and number of accelerator cards attached to the instances # of an instance group (see GPUs on Compute Engine). class AcceleratorConfig @@ -963,33 +1623,6 @@ module Google end end - # 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. - class ClusterMetrics - include Google::Apis::Core::Hashable - - # 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) - @hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics) - @yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics) - end - end - # The runtime logging config of the job. class LoggingConfig include Google::Apis::Core::Hashable @@ -1205,639 +1838,6 @@ module Google @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 which 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 purpose. - # Batch operations. If a client uses batch request and batch response, the - # Status message should be used directly inside batch response, one for each - # error sub-response. - # Asynchronous operations. If an API call embeds asynchronous operation results - # in its response, the status of those operations should be represented directly - # using the Status message. - # Logging. If some API errors are stored in logs, the message Status could be - # used directly after any stripping needed for security/privacy reasons. - class Status - include Google::Apis::Core::Hashable - - # 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 - - # Optional The config settings for Google Compute Engine resources in an - # instance group, such as a master or worker group. - class InstanceGroupConfig - include Google::Apis::Core::Hashable - - # Optional The Google Compute Engine accelerator configuration for these - # instances.Beta Feature: This feature is still under development. It may be - # changed before final release. - # Corresponds to the JSON property `accelerators` - # @return [Array] - attr_accessor :accelerators - - # Required 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] - attr_accessor :num_instances - - # Specifies the config of disk options for a group of VM instances. - # Corresponds to the JSON property `diskConfig` - # @return [Google::Apis::DataprocV1::DiskConfig] - attr_accessor :disk_config - - # Specifies the resources used to actively manage an instance group. - # Corresponds to the JSON property `managedGroupConfig` - # @return [Google::Apis::DataprocV1::ManagedGroupConfig] - attr_accessor :managed_group_config - - # Optional Specifies that this instance group contains preemptible instances. - # Corresponds to the JSON property `isPreemptible` - # @return [Boolean] - attr_accessor :is_preemptible - alias_method :is_preemptible?, :is_preemptible - - # Output-only The Google Compute Engine image resource used for cluster - # instances. Inferred from SoftwareConfig.image_version. - # Corresponds to the JSON property `imageUri` - # @return [String] - attr_accessor :image_uri - - # 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. - # Corresponds to the JSON property `machineTypeUri` - # @return [String] - attr_accessor :machine_type_uri - - # Optional The list of instance names. Cloud Dataproc derives the names from - # cluster_name, num_instances, and the instance group if not set by user ( - # recommended practice is to let Cloud Dataproc derive the name). - # Corresponds to the JSON property `instanceNames` - # @return [Array] - attr_accessor :instance_names - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @accelerators = args[:accelerators] if args.key?(:accelerators) - @num_instances = args[:num_instances] if args.key?(:num_instances) - @disk_config = args[:disk_config] if args.key?(:disk_config) - @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config) - @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible) - @image_uri = args[:image_uri] if args.key?(:image_uri) - @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri) - @instance_names = args[:instance_names] if args.key?(:instance_names) - end - end - - # 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 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) - end - - # Update properties of this object - def update!(**args) - @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour) - end - end - - # Specifies an executable to run on a fully configured node and a timeout period - # for executable completion. - class NodeInitializationAction - include Google::Apis::Core::Hashable - - # Required Google Cloud Storage URI of executable file. - # Corresponds to the JSON property `executableFile` - # @return [String] - attr_accessor :executable_file - - # Optional Amount of time executable has to complete. Default is 10 minutes. - # Cluster creation fails with an explanatory error message (the name of the - # executable that caused the error and the exceeded timeout period) if the - # executable is not completed at end of the timeout period. - # Corresponds to the JSON property `executionTimeout` - # @return [String] - attr_accessor :execution_timeout - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @executable_file = args[:executable_file] if args.key?(:executable_file) - @execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout) - 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/ - # ) queries. - 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 - - # Optional Mapping of query variable names to values (equivalent to the Spark - # SQL command: SET name="value";). - # Corresponds to the JSON property `scriptVariables` - # @return [Hash] - attr_accessor :script_variables - - # Optional HCFS URIs of jar files to be added to the Spark CLASSPATH. - # Corresponds to the JSON property `jarFileUris` - # @return [Array] - attr_accessor :jar_file_uris - - # The runtime logging config of the job. - # Corresponds to the JSON property `loggingConfig` - # @return [Google::Apis::DataprocV1::LoggingConfig] - attr_accessor :logging_config - - # Optional A mapping of property names to values, used to configure Spark SQL's - # SparkConf. Properties that conflict with values set by the Cloud Dataproc API - # may be overwritten. - # Corresponds to the JSON property `properties` - # @return [Hash] - attr_accessor :properties - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @query_list = args[:query_list] if args.key?(:query_list) - @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri) - @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) - @properties = args[:properties] if args.key?(:properties) - end - end - - # Describes the identifying information, config, and status of a cluster of - # Google Compute Engine instances. - class Cluster - include Google::Apis::Core::Hashable - - # Required The Google Cloud Platform project ID that the cluster belongs to. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - # Optional The labels to associate with this cluster. 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 cluster. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # 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. - # Corresponds to the JSON property `metrics` - # @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] - attr_accessor :status_history - - # The cluster config. - # Corresponds to the JSON property `config` - # @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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @project_id = args[:project_id] if args.key?(:project_id) - @labels = args[:labels] if args.key?(:labels) - @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) - 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 - - # Metadata describing the operation. - class OperationMetadata - include Google::Apis::Core::Hashable - - # The time that the operation completed. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # The time that the operation was started by the server. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Output-only Errors encountered during operation execution. - # Corresponds to the JSON property `warnings` - # @return [Array] - attr_accessor :warnings - - # The time that the operation was requested. - # Corresponds to the JSON property `insertTime` - # @return [String] - attr_accessor :insert_time - - # Output-only Previous operation status. - # Corresponds to the JSON property `statusHistory` - # @return [Array] - attr_accessor :status_history - - # Output-only The operation type. - # Corresponds to the JSON property `operationType` - # @return [String] - attr_accessor :operation_type - - # Output-only Short description of operation. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The status of the operation. - # Corresponds to the JSON property `status` - # @return [Google::Apis::DataprocV1::OperationStatus] - attr_accessor :status - - # A message containing any operation metadata details. - # Corresponds to the JSON property `details` - # @return [String] - attr_accessor :details - - # A message containing the operation state. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Name of the cluster for the operation. - # Corresponds to the JSON property `clusterName` - # @return [String] - attr_accessor :cluster_name - - # Cluster UUId for the operation. - # Corresponds to the JSON property `clusterUuid` - # @return [String] - attr_accessor :cluster_uuid - - # A message containing the detailed operation state. - # Corresponds to the JSON property `innerState` - # @return [String] - attr_accessor :inner_state - - 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) - @warnings = args[:warnings] if args.key?(:warnings) - @insert_time = args[:insert_time] if args.key?(:insert_time) - @status_history = args[:status_history] if args.key?(:status_history) - @operation_type = args[:operation_type] if args.key?(:operation_type) - @description = args[:description] if args.key?(:description) - @status = args[:status] if args.key?(:status) - @details = args[:details] if args.key?(:details) - @state = args[:state] if args.key?(:state) - @cluster_name = args[:cluster_name] if args.key?(:cluster_name) - @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) - @inner_state = args[:inner_state] if args.key?(:inner_state) - end - end - - # Cloud Dataproc job config. - class JobPlacement - include Google::Apis::Core::Hashable - - # Required The name of the cluster where the job will be submitted. - # Corresponds to the JSON property `clusterName` - # @return [String] - attr_accessor :cluster_name - - # Output-only A cluster UUID generated by the Cloud Dataproc service when the - # job is submitted. - # Corresponds to the JSON property `clusterUuid` - # @return [String] - attr_accessor :cluster_uuid - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cluster_name = args[:cluster_name] if args.key?(:cluster_name) - @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) - end - end - - # Specifies the selection and config of software inside the cluster. - class SoftwareConfig - include Google::Apis::Core::Hashable - - # Optional The version of software inside the cluster. It must match the regular - # expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest version ( - # see Cloud Dataproc Versioning). - # Corresponds to the JSON property `imageVersion` - # @return [String] - attr_accessor :image_version - - # Optional The properties to set on daemon config files.Property keys are - # specified in prefix:property format, such as core:fs.defaultFS. The following - # are supported prefixes and their mappings: - # core: core-site.xml - # hdfs: hdfs-site.xml - # mapred: mapred-site.xml - # yarn: yarn-site.xml - # hive: hive-site.xml - # pig: pig.properties - # spark: spark-defaults.conf - # Corresponds to the JSON property `properties` - # @return [Hash] - attr_accessor :properties - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @image_version = args[:image_version] if args.key?(:image_version) - @properties = args[:properties] if args.key?(:properties) - end - end - - # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries - # on YARN. - class PigJob - include Google::Apis::Core::Hashable - - # 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` - # @return [Array] - attr_accessor :jar_file_uris - - # Optional Mapping of query variable names to values (equivalent to the Pig - # command: name=[value]). - # Corresponds to the JSON property `scriptVariables` - # @return [Hash] - attr_accessor :script_variables - - # The runtime logging config of the job. - # Corresponds to the JSON property `loggingConfig` - # @return [Google::Apis::DataprocV1::LoggingConfig] - attr_accessor :logging_config - - # Optional A mapping of property names to values, used to configure Pig. - # 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/ - # pig/conf/pig.properties, and classes in user code. - # Corresponds to the JSON property `properties` - # @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) - @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 - - # The status of a cluster and its instances. - class ClusterStatus - include Google::Apis::Core::Hashable - - # Output-only Optional details of cluster's state. - # Corresponds to the JSON property `detail` - # @return [String] - attr_accessor :detail - - # Output-only The cluster's state. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Output-only Time when this state was entered. - # Corresponds to the JSON property `stateStartTime` - # @return [String] - attr_accessor :state_start_time - - # Output-only Additional state information that includes status reported by the - # agent. - # Corresponds to the JSON property `substate` - # @return [String] - attr_accessor :substate - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @detail = args[:detail] if args.key?(:detail) - @state = args[:state] if args.key?(:state) - @state_start_time = args[:state_start_time] if args.key?(:state_start_time) - @substate = args[:substate] if args.key?(:substate) - end - end end end end diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index 5d9a7d969..a9d9e6ad4 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -22,19 +22,103 @@ module Google module Apis module DataprocV1 + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstanceGroupConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class JobScheduling + 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 NodeInitializationAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CancelJobRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SparkSqlJob + 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 ListOperationsResponse + 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 SoftwareConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class JobPlacement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PigJob + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClusterStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListClustersResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Job + class SparkJob class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SparkJob + class Job class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -58,13 +142,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class YarnApplication + class QueryList class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class QueryList + class YarnApplication class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -130,13 +214,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AcceleratorConfig + class ClusterMetrics class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ClusterMetrics + class AcceleratorConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -179,87 +263,162 @@ module Google 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 InstanceGroupConfig - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :accelerators, as: 'accelerators', class: Google::Apis::DataprocV1::AcceleratorConfig, decorator: Google::Apis::DataprocV1::AcceleratorConfig::Representation - include Google::Apis::Core::JsonObjectSupport + property :num_instances, as: 'numInstances' + property :disk_config, as: 'diskConfig', class: Google::Apis::DataprocV1::DiskConfig, decorator: Google::Apis::DataprocV1::DiskConfig::Representation + + property :is_preemptible, as: 'isPreemptible' + property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation + + property :machine_type_uri, as: 'machineTypeUri' + property :image_uri, as: 'imageUri' + collection :instance_names, as: 'instanceNames' + end end class JobScheduling - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class NodeInitializationAction - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_failures_per_hour, as: 'maxFailuresPerHour' + end end class ListJobsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation - include Google::Apis::Core::JsonObjectSupport + property :next_page_token, as: 'nextPageToken' + end + end + + class NodeInitializationAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_timeout, as: 'executionTimeout' + property :executable_file, as: 'executableFile' + end end class CancelJobRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class SparkSqlJob - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + 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 + + hash :properties, as: 'properties' + end end class Cluster - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' + property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation - include Google::Apis::Core::JsonObjectSupport + 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 :project_id, as: 'projectId' + 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::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation - include Google::Apis::Core::JsonObjectSupport + property :next_page_token, as: 'nextPageToken' + end end class OperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + collection :warnings, as: 'warnings' + property :insert_time, as: 'insertTime' + collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation - include Google::Apis::Core::JsonObjectSupport - end + property :operation_type, as: 'operationType' + property :description, as: 'description' + property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation - class JobPlacement - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + property :details, as: 'details' + property :state, as: 'state' + property :cluster_uuid, as: 'clusterUuid' + property :cluster_name, as: 'clusterName' + property :inner_state, as: 'innerState' + end end class SoftwareConfig - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_version, as: 'imageVersion' + hash :properties, as: 'properties' + end + end - include Google::Apis::Core::JsonObjectSupport + class JobPlacement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_name, as: 'clusterName' + property :cluster_uuid, as: 'clusterUuid' + end end class PigJob - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + 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' + end end class ClusterStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state_start_time, as: 'stateStartTime' + property :substate, as: 'substate' + property :detail, as: 'detail' + property :state, as: 'state' + end end class ListClustersResponse @@ -271,17 +430,24 @@ module Google end end + class SparkJob + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :main_class, as: 'mainClass' + collection :archive_uris, as: 'archiveUris' + 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 + + hash :properties, as: 'properties' + collection :args, as: 'args' + collection :file_uris, as: 'fileUris' + end + end + class Job # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :driver_output_resource_uri, as: 'driverOutputResourceUri' - property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation - - 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 - 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 @@ -301,31 +467,24 @@ module Google property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation - end - end + hash :labels, as: 'labels' + property :driver_output_resource_uri, as: 'driverOutputResourceUri' + collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation - class SparkJob - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :jar_file_uris, as: 'jarFileUris' - property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation + property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation + + property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation - hash :properties, as: 'properties' - 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' end end class JobStatus # @private class Representation < Google::Apis::Core::JsonRepresentation - property :state_start_time, as: 'stateStartTime' - property :substate, as: 'substate' property :state, as: 'state' property :details, as: 'details' + property :state_start_time, as: 'stateStartTime' + property :substate, as: 'substate' end end @@ -347,6 +506,13 @@ module Google end end + class QueryList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :queries, as: 'queries' + end + end + class YarnApplication # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -357,25 +523,18 @@ module Google end end - class QueryList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :queries, as: 'queries' - end - end - class HadoopJob # @private class Representation < Google::Apis::Core::JsonRepresentation - property :main_class, as: 'mainClass' - collection :archive_uris, as: 'archiveUris' - 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 hash :properties, as: 'properties' 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' end end @@ -396,16 +555,16 @@ module Google class ClusterOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - property :operation_type, as: 'operationType' - property :description, as: 'description' - collection :warnings, as: 'warnings' 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 - property :cluster_uuid, as: 'clusterUuid' property :cluster_name, as: 'clusterName' + property :cluster_uuid, as: 'clusterUuid' + property :operation_type, as: 'operationType' + property :description, as: 'description' + collection :warnings, as: 'warnings' end end @@ -457,7 +616,6 @@ module Google class PySparkJob # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :archive_uris, as: 'archiveUris' collection :jar_file_uris, as: 'jarFileUris' property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation @@ -466,14 +624,15 @@ module Google collection :file_uris, as: 'fileUris' collection :python_file_uris, as: 'pythonFileUris' property :main_python_file_uri, as: 'mainPythonFileUri' + collection :archive_uris, as: 'archiveUris' end end class GceClusterConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :internal_ip_only, as: 'internalIpOnly' hash :metadata, as: 'metadata' + property :internal_ip_only, as: 'internalIpOnly' collection :service_account_scopes, as: 'serviceAccountScopes' collection :tags, as: 'tags' property :service_account, as: 'serviceAccount' @@ -483,14 +642,6 @@ module Google end end - class AcceleratorConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :accelerator_count, as: 'acceleratorCount' - property :accelerator_type_uri, as: 'acceleratorTypeUri' - end - end - class ClusterMetrics # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -499,6 +650,14 @@ module Google end end + class AcceleratorConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :accelerator_count, as: 'acceleratorCount' + property :accelerator_type_uri, as: 'acceleratorTypeUri' + end + end + class LoggingConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -550,165 +709,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 InstanceGroupConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :accelerators, as: 'accelerators', class: Google::Apis::DataprocV1::AcceleratorConfig, decorator: Google::Apis::DataprocV1::AcceleratorConfig::Representation - - property :num_instances, as: 'numInstances' - property :disk_config, as: 'diskConfig', class: Google::Apis::DataprocV1::DiskConfig, decorator: Google::Apis::DataprocV1::DiskConfig::Representation - - property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation - - property :is_preemptible, as: 'isPreemptible' - property :image_uri, as: 'imageUri' - property :machine_type_uri, as: 'machineTypeUri' - collection :instance_names, as: 'instanceNames' - end - end - - class JobScheduling - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :max_failures_per_hour, as: 'maxFailuresPerHour' - end - end - - class NodeInitializationAction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :executable_file, as: 'executableFile' - property :execution_timeout, as: 'executionTimeout' - 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 - end - end - - class SparkSqlJob - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - hash :properties, as: 'properties' - end - end - - class Cluster - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :project_id, as: 'projectId' - hash :labels, as: 'labels' - 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' - end - end - - class ListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :operations, as: 'operations', class: Google::Apis::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class OperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time, as: 'endTime' - property :start_time, as: 'startTime' - collection :warnings, as: 'warnings' - property :insert_time, as: 'insertTime' - collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation - - property :operation_type, as: 'operationType' - property :description, as: 'description' - property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation - - property :details, as: 'details' - property :state, as: 'state' - property :cluster_name, as: 'clusterName' - property :cluster_uuid, as: 'clusterUuid' - property :inner_state, as: 'innerState' - end - end - - class JobPlacement - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cluster_name, as: 'clusterName' - property :cluster_uuid, as: 'clusterUuid' - end - end - - class SoftwareConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :image_version, as: 'imageVersion' - hash :properties, as: 'properties' - end - end - - class PigJob - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - class ClusterStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :detail, as: 'detail' - property :state, as: 'state' - property :state_start_time, as: 'stateStartTime' - property :substate, as: 'substate' - end - end end end end diff --git a/generated/google/apis/dataproc_v1/service.rb b/generated/google/apis/dataproc_v1/service.rb index e4101ffbc..013e6b472 100644 --- a/generated/google/apis/dataproc_v1/service.rb +++ b/generated/google/apis/dataproc_v1/service.rb @@ -32,28 +32,421 @@ module Google # # @see https://cloud.google.com/dataproc/ class DataprocService < Google::Apis::Core::BaseService - # @return [String] - # API key. Your API key identifies your project and provides you with API access, - # quota, and reports. Required unless you provide an OAuth 2.0 token. - attr_accessor :key - # @return [String] # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. attr_accessor :quota_user + # @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://dataproc.googleapis.com/', '') 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 + + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding + # below allows API services to override the binding to use different resource + # name schemes, such as users/*/operations. + # @param [String] name + # The name of the operation collection. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] filter + # The standard list filter. + # @param [String] page_token + # The standard list page token. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_operations(name, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::DataprocV1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # 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::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 get_operation(name, quota_user: nil, fields: 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? + execute_or_queue_command(command, &block) + end + + # Starts a job cancellation request. To access the job resource after + # cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get. + # @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::CancelJobRequest] cancel_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 cancel_job(project_id, region, job_id, cancel_job_request_object = nil, quota_user: nil, fields: 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 + 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 + + # 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 + + # 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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 + + # 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 + # + # @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, quota_user: nil, fields: 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? + execute_or_queue_command(command, &block) + end + + # Lists regions/`region`/jobs 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] filter + # Optional A filter constraining the jobs to list. Filters are case-sensitive + # and have the following syntax:field = value AND field = value ...where field + # is status.state or labels.[KEY], and [KEY] is a label key. value can be * to + # match all values. status.state can be either ACTIVE or INACTIVE. Only the + # logical AND operator is supported; space-separated items are treated as having + # an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = + # staging AND labels.starred = * + # @param [String] job_state_matcher + # Optional Specifies enumerated categories of jobs to list (default = match ALL + # jobs). + # @param [String] page_token + # Optional The page token, returned by a previous call, to request the next page + # of results. + # @param [Fixnum] page_size + # Optional The number of results to return in each response. + # @param [String] cluster_name + # Optional If set, the returned jobs list includes only jobs that were submitted + # to the named cluster. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::ListJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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(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) + 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 + command.params['projectId'] = project_id unless project_id.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil? + 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? + execute_or_queue_command(command, &block) + end + # Lists all regions/`region`/clusters 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 [Fixnum] page_size - # Optional The standard List page size. # @param [String] filter # Optional A filter constraining the clusters to list. Filters are case- # sensitive and have the following syntax:field = value AND field = value ... @@ -68,11 +461,13 @@ module Google # 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 [Fixnum] page_size + # Optional 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 # @@ -85,17 +480,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, fields: nil, quota_user: nil, options: nil, &block) + def list_clusters(project_id, region, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: 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['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['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 @@ -106,11 +501,11 @@ module Google # @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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -123,7 +518,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_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -131,8 +526,45 @@ module Google 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? + command.query['fields'] = fields unless fields.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 + # to. + # @param [String] region + # Required The Cloud Dataproc region in which to handle the request. + # @param [String] cluster_name + # Required The cluster name. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::Cluster] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::Cluster] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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) + 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? execute_or_queue_command(command, &block) end @@ -171,11 +603,11 @@ module Google # Note: Currently, config.worker_config.num_instances and config.secondary_worker_config.num_instances are the # only fields 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -188,7 +620,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, fields: nil, quota_user: nil, options: nil, &block) + def patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, quota_user: nil, fields: 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 @@ -198,45 +630,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['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 - # to. - # @param [String] region - # 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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataprocV1::Cluster] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::Cluster] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -248,11 +643,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 # @@ -265,15 +660,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, fields: nil, quota_user: nil, options: nil, &block) + def delete_cluster(project_id, region, cluster_name, quota_user: nil, fields: 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['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 @@ -287,11 +682,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 # @@ -304,7 +699,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, fields: nil, quota_user: nil, options: nil, &block) + def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, quota_user: nil, fields: 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 @@ -313,411 +708,16 @@ 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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists operations that match the specified filter in the request. If the server - # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding - # below allows API services to override the binding to use different resource - # name schemes, such as users/*/operations. - # @param [String] name - # The 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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::ListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::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, 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 - 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::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 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['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::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, 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 - - # 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 - - # 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists regions/`region`/jobs 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] filter - # Optional A filter constraining the jobs to list. Filters are case-sensitive - # and have the following syntax:field = value AND field = value ...where field - # is status.state or labels.[KEY], and [KEY] is a label key. value can be * to - # match all values. status.state can be either ACTIVE or INACTIVE. Only the - # logical AND operator is supported; space-separated items are treated as having - # an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = - # staging AND labels.starred = * - # @param [String] job_state_matcher - # Optional Specifies enumerated categories of jobs to list (default = match ALL - # jobs). - # @param [String] page_token - # Optional The page token, returned by a previous call, to request the next page - # of results. - # @param [Fixnum] page_size - # Optional The number of results to return in each response. - # @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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::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(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 - command.params['projectId'] = project_id unless project_id.nil? - command.params['region'] = region unless region.nil? - command.query['filter'] = filter unless filter.nil? - command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil? - 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Starts a job cancellation request. To access the job resource after - # cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get. - # @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::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 [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 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 - 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 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/datastore_v1.rb b/generated/google/apis/datastore_v1.rb index e8a6f7fb2..0aca7cee7 100644 --- a/generated/google/apis/datastore_v1.rb +++ b/generated/google/apis/datastore_v1.rb @@ -28,11 +28,11 @@ module Google VERSION = 'V1' REVISION = '20170314' - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' - # 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 b3d60f082..e4096b7f3 100644 --- a/generated/google/apis/datastore_v1/classes.rb +++ b/generated/google/apis/datastore_v1/classes.rb @@ -22,16 +22,243 @@ module Google module Apis module DatastoreV1 + # The request for Datastore.RunQuery. + class RunQueryRequest + 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 + + # A query for entities. + # Corresponds to the JSON property `query` + # @return [Google::Apis::DatastoreV1::Query] + attr_accessor :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: + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @read_options = args[:read_options] if args.key?(:read_options) + @query = args[:query] if args.key?(:query) + @partition_id = args[:partition_id] if args.key?(:partition_id) + @gql_query = args[:gql_query] if args.key?(:gql_query) + end + end + + # The request for Datastore.Rollback. + class RollbackRequest + include Google::Apis::Core::Hashable + + # The transaction identifier, 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) + end + end + + # A filter that merges multiple other filters using the given operator. + class CompositeFilter + include Google::Apis::Core::Hashable + + # The list of filters to combine. + # Must contain at least one filter. + # Corresponds to the JSON property `filters` + # @return [Array] + attr_accessor :filters + + # The operator for combining multiple filters. + # 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) + @filters = args[:filters] if args.key?(:filters) + @op = args[:op] if args.key?(:op) + end + end + + # The response for Datastore.AllocateIds. + class AllocateIdsResponse + include Google::Apis::Core::Hashable + + # The keys specified in the request (in the same order), each with + # its key path completed with a newly allocated ID. + # 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 + + # A query for entities. + class Query + include Google::Apis::Core::Hashable + + # The maximum number of results to return. Applies after all other + # constraints. Optional. + # Unspecified is interpreted as no limit. + # Must be >= 0 if specified. + # Corresponds to the JSON property `limit` + # @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/ + # datastore/docs/concepts/queries#cursors_limits_and_offsets). + # Corresponds to the JSON property `startCursor` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :start_cursor + + # The number of results to skip. Applies before limit, but after all other + # constraints. Optional. Must be >= 0 if specified. + # Corresponds to the JSON property `offset` + # @return [Fixnum] + attr_accessor :offset + + # The kinds to query (if empty, returns entities of all kinds). + # Currently at most 1 kind may be specified. + # Corresponds to the JSON property `kind` + # @return [Array] + attr_accessor :kind + + # The properties to make distinct. The query results will contain the first + # result for each distinct combination of values for the given properties + # (if empty, all results are returned). + # Corresponds to the JSON property `distinctOn` + # @return [Array] + attr_accessor :distinct_on + + # The order to apply to the query results (if empty, order is unspecified). + # Corresponds to the JSON property `order` + # @return [Array] + attr_accessor :order + + # The projection to return. Defaults to returning all properties. + # Corresponds to the JSON property `projection` + # @return [Array] + attr_accessor :projection + + # An ending point for the query results. Query cursors are + # returned in query result batches and + # [can only be used to limit the same query](https://cloud.google.com/datastore/ + # docs/concepts/queries#cursors_limits_and_offsets). + # Corresponds to the JSON property `endCursor` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :end_cursor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @limit = args[:limit] if args.key?(:limit) + @filter = args[:filter] if args.key?(:filter) + @start_cursor = args[:start_cursor] if args.key?(:start_cursor) + @offset = args[:offset] if args.key?(:offset) + @kind = args[:kind] if args.key?(:kind) + @distinct_on = args[:distinct_on] if args.key?(:distinct_on) + @order = args[:order] if args.key?(:order) + @projection = args[:projection] if args.key?(:projection) + @end_cursor = args[:end_cursor] if args.key?(:end_cursor) + end + end + + # A filter on a specific property. + class PropertyFilter + 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 reference to a property relative to the kind expressions. + # Corresponds to the JSON property `property` + # @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) + @value = args[:value] if args.key?(:value) + @property = args[:property] if args.key?(:property) + @op = args[:op] if args.key?(:op) + end + end + # The result of fetching an entity from Datastore. class EntityResult include Google::Apis::Core::Hashable - # 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` - # @return [String] - attr_accessor :cursor - # The version of the entity, a strictly positive number that monotonically # increases with changes to the entity. # This field is set for `FULL` entity @@ -51,42 +278,22 @@ module Google # @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` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :cursor + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) + @cursor = args[:cursor] if args.key?(:cursor) end end @@ -200,6 +407,7 @@ module Google # When `exclude_from_indexes` is false, may have at most 1500 bytes. # In JSON requests, must be base64-encoded. # Corresponds to the JSON property `blobValue` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :blob_value @@ -235,6 +443,33 @@ module Google 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 + # 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: @@ -282,6 +517,14 @@ module Google class Entity 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 entity's properties. # The map's keys are property names. # A property name matching regex `__.*__` is reserved. @@ -292,13 +535,30 @@ module Google # @return [Hash] attr_accessor :properties - # 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) + @key = args[:key] if args.key?(:key) + @properties = args[:properties] if args.key?(:properties) + 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) @@ -306,8 +566,8 @@ module Google # Update properties of this object def update!(**args) - @properties = args[:properties] if args.key?(:properties) - @key = args[:key] if args.key?(:key) + @keys = args[:keys] if args.key?(:keys) + @read_options = args[:read_options] if args.key?(:read_options) end end @@ -315,13 +575,9 @@ module Google 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 @@ -345,6 +601,7 @@ module Google # 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` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :skipped_cursor @@ -358,44 +615,24 @@ 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 + 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 - - # 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) + @entity_results = args[:entity_results] if args.key?(:entity_results) end end @@ -444,26 +681,27 @@ module Google class GqlQueryParameter include Google::Apis::Core::Hashable - # A query cursor. Query cursors are returned in query - # result batches. - # Corresponds to the JSON property `cursor` - # @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 + # A query cursor. Query cursors are returned in query + # result batches. + # Corresponds to the JSON property `cursor` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :cursor + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @cursor = args[:cursor] if args.key?(:cursor) @value = args[:value] if args.key?(:value) + @cursor = args[:cursor] if args.key?(:cursor) end end @@ -473,6 +711,7 @@ module Google # The transaction identifier (always present). # Corresponds to the JSON property `transaction` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :transaction @@ -547,24 +786,24 @@ module Google class RunQueryResponse include Google::Apis::Core::Hashable - # A query for entities. - # Corresponds to the JSON property `query` - # @return [Google::Apis::DatastoreV1::Query] - attr_accessor :query - # A batch of results produced by a query. # Corresponds to the JSON property `batch` # @return [Google::Apis::DatastoreV1::QueryResultBatch] attr_accessor :batch + # A query for entities. + # Corresponds to the JSON property `query` + # @return [Google::Apis::DatastoreV1::Query] + attr_accessor :query + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @query = args[:query] if args.key?(:query) @batch = args[:batch] if args.key?(:batch) + @query = args[:query] if args.key?(:query) end end @@ -572,6 +811,11 @@ module Google class CommitRequest include Google::Apis::Core::Hashable + # The type of commit to perform. Defaults to `TRANSACTIONAL`. + # Corresponds to the JSON property `mode` + # @return [String] + attr_accessor :mode + # The mutations to perform. # When mode is `TRANSACTIONAL`, mutations affecting a single entity are # applied in order. The following sequences of mutations affecting a single @@ -590,36 +834,19 @@ module Google # 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] - attr_accessor :mode - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @mode = args[:mode] if args.key?(:mode) @mutations = args[:mutations] if args.key?(:mutations) @transaction = args[:transaction] if args.key?(:transaction) - @mode = args[:mode] if args.key?(:mode) - end - end - - # The request for Datastore.BeginTransaction. - class BeginTransactionRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) end end @@ -648,6 +875,19 @@ module Google end end + # The request for Datastore.BeginTransaction. + class BeginTransactionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # A representation of a kind. class KindExpression include Google::Apis::Core::Hashable @@ -707,24 +947,24 @@ module Google 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 + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @longitude = args[:longitude] if args.key?(:longitude) @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end @@ -804,6 +1044,25 @@ module Google end end + # A representation of a property in a projection. + class Projection + 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @property = args[:property] if args.key?(:property) + end + end + # An array value. class ArrayValue include Google::Apis::Core::Hashable @@ -825,29 +1084,18 @@ module Google end end - # A representation of a property in a projection. - class Projection - 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @property = args[:property] if args.key?(:property) - end - end - # A mutation to apply to an entity. class Mutation 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 `upsert` + # @return [Google::Apis::DatastoreV1::Entity] + attr_accessor :upsert + # 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. @@ -878,25 +1126,17 @@ module Google # @return [Google::Apis::DatastoreV1::Entity] attr_accessor :update - # 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 `upsert` - # @return [Google::Apis::DatastoreV1::Entity] - attr_accessor :upsert - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) @update = args[:update] if args.key?(:update) - @upsert = args[:upsert] if args.key?(:upsert) end end @@ -914,6 +1154,7 @@ module Google # 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 @@ -1034,254 +1275,24 @@ module Google 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 + # 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) - @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.Rollback. - class RollbackRequest - include Google::Apis::Core::Hashable - - # The transaction identifier, returned by a call to - # Datastore.BeginTransaction. - # Corresponds to the JSON property `transaction` - # @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) - end - end - - # The request for Datastore.RunQuery. - class RunQueryRequest - 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 - - # A query for entities. - # Corresponds to the JSON property `query` - # @return [Google::Apis::DatastoreV1::Query] - attr_accessor :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: - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @read_options = args[:read_options] if args.key?(:read_options) - @query = args[:query] if args.key?(:query) - @partition_id = args[:partition_id] if args.key?(:partition_id) - @gql_query = args[:gql_query] if args.key?(:gql_query) - end - end - - # A filter that merges multiple other filters using the given operator. - class CompositeFilter - include Google::Apis::Core::Hashable - - # The list of filters to combine. - # Must contain at least one filter. - # Corresponds to the JSON property `filters` - # @return [Array] - attr_accessor :filters - - # The operator for combining multiple filters. - # 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) - @filters = args[:filters] if args.key?(:filters) - @op = args[:op] if args.key?(:op) - end - end - - # The response for Datastore.AllocateIds. - class AllocateIdsResponse - include Google::Apis::Core::Hashable - - # The keys specified in the request (in the same order), each with - # its key path completed with a newly allocated ID. - # 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 - - # A query for entities. - class Query - include Google::Apis::Core::Hashable - - # The kinds to query (if empty, returns entities of all kinds). - # Currently at most 1 kind may be specified. - # Corresponds to the JSON property `kind` - # @return [Array] - attr_accessor :kind - - # The properties to make distinct. The query results will contain the first - # result for each distinct combination of values for the given properties - # (if empty, all results are returned). - # Corresponds to the JSON property `distinctOn` - # @return [Array] - attr_accessor :distinct_on - - # The order to apply to the query results (if empty, order is unspecified). - # Corresponds to the JSON property `order` - # @return [Array] - attr_accessor :order - - # The projection to return. Defaults to returning all properties. - # Corresponds to the JSON property `projection` - # @return [Array] - attr_accessor :projection - - # An ending point for the query results. Query cursors are - # returned in query result batches and - # [can only be used to limit the same query](https://cloud.google.com/datastore/ - # docs/concepts/queries#cursors_limits_and_offsets). - # Corresponds to the JSON property `endCursor` - # @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. - # Must be >= 0 if specified. - # Corresponds to the JSON property `limit` - # @return [Fixnum] - attr_accessor :limit - - # 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/ - # datastore/docs/concepts/queries#cursors_limits_and_offsets). - # Corresponds to the JSON property `startCursor` - # @return [String] - attr_accessor :start_cursor - - # The number of results to skip. Applies before limit, but after all other - # constraints. Optional. Must be >= 0 if specified. - # Corresponds to the JSON property `offset` - # @return [Fixnum] - attr_accessor :offset - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @distinct_on = args[:distinct_on] if args.key?(:distinct_on) - @order = args[:order] if args.key?(:order) - @projection = args[:projection] if args.key?(:projection) - @end_cursor = args[:end_cursor] if args.key?(:end_cursor) - @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) - end - end - - # A filter on a specific property. - class PropertyFilter - 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 reference to a property relative to the kind expressions. - # Corresponds to the JSON property `property` - # @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) - @value = args[:value] if args.key?(:value) - @property = args[:property] if args.key?(:property) - @op = args[:op] if args.key?(:op) + @property_filter = args[:property_filter] if args.key?(:property_filter) end end end diff --git a/generated/google/apis/datastore_v1/representations.rb b/generated/google/apis/datastore_v1/representations.rb index 87b6ae439..384b2d9b4 100644 --- a/generated/google/apis/datastore_v1/representations.rb +++ b/generated/google/apis/datastore_v1/representations.rb @@ -22,19 +22,55 @@ module Google module Apis module DatastoreV1 + class RunQueryRequest + 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 CompositeFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocateIdsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Query + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PropertyFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class EntityResult class Representation < Google::Apis::Core::JsonRepresentation; end 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 @@ -52,13 +88,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 @@ -106,13 +142,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BeginTransactionRequest + class PropertyOrder class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class PropertyOrder + class BeginTransactionRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -142,13 +178,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ArrayValue + class Projection class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Projection + class ArrayValue class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -190,58 +226,82 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RollbackRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + class RunQueryRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation - include Google::Apis::Core::JsonObjectSupport + property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation + + 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 + + end end - class RunQueryRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + class RollbackRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :transaction, :base64 => true, as: 'transaction' + end end class CompositeFilter - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :filters, as: 'filters', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation - include Google::Apis::Core::JsonObjectSupport + property :op, as: 'op' + end end class AllocateIdsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Query - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :limit, as: 'limit' + property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation - include Google::Apis::Core::JsonObjectSupport + 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 + + collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation + + collection :order, as: 'order', class: Google::Apis::DatastoreV1::PropertyOrder, decorator: Google::Apis::DatastoreV1::PropertyOrder::Representation + + collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation + + property :end_cursor, :base64 => true, as: 'endCursor' + end end class PropertyFilter - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation - include Google::Apis::Core::JsonObjectSupport + 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, 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' end end @@ -268,6 +328,15 @@ module Google 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' + end + end + class PartitionId # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -279,9 +348,19 @@ module Google class Entity # @private class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation + hash :properties, as: 'properties', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation - property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation + 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 end end @@ -289,23 +368,13 @@ module Google 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, 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 - 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 + collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation end end @@ -322,9 +391,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 @@ -358,26 +427,20 @@ module Google class RunQueryResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation - property :batch, as: 'batch', class: Google::Apis::DatastoreV1::QueryResultBatch, decorator: Google::Apis::DatastoreV1::QueryResultBatch::Representation + property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation + end end class CommitRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + 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' - property :mode, as: 'mode' - end - end - - class BeginTransactionRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation end end @@ -390,6 +453,12 @@ module Google end end + class BeginTransactionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class KindExpression # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -400,8 +469,8 @@ module Google class LatLng # @private class Representation < Google::Apis::Core::JsonRepresentation - property :longitude, as: 'longitude' property :latitude, as: 'latitude' + property :longitude, as: 'longitude' end end @@ -422,14 +491,6 @@ module Google end end - class ArrayValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation - - end - end - class Projection # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -438,9 +499,19 @@ module Google end end + class ArrayValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation + + end + end + class Mutation # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 @@ -448,8 +519,6 @@ module Google property :base_version, as: 'baseVersion' 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 - end end @@ -492,79 +561,10 @@ module Google class Filter # @private class Representation < Google::Apis::Core::JsonRepresentation - property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation - property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation - end - end + property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation - class RollbackRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :transaction, :base64 => true, as: 'transaction' - end - end - - class RunQueryRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - 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 - - end - end - - class CompositeFilter - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :filters, as: 'filters', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation - - property :op, as: 'op' - end - end - - class AllocateIdsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation - - end - end - - class Query - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation - - collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation - - collection :order, as: 'order', class: Google::Apis::DatastoreV1::PropertyOrder, decorator: Google::Apis::DatastoreV1::PropertyOrder::Representation - - collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation - - property :end_cursor, :base64 => true, as: 'endCursor' - 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' - end - end - - class PropertyFilter - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 end diff --git a/generated/google/apis/datastore_v1/service.rb b/generated/google/apis/datastore_v1/service.rb index 541ac1053..438b77dba 100644 --- a/generated/google/apis/datastore_v1/service.rb +++ b/generated/google/apis/datastore_v1/service.rb @@ -52,11 +52,11 @@ module Google # @param [String] project_id # The ID of the project against which to make the request. # @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_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 # @@ -69,49 +69,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_project_ids(project_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def allocate_project_ids(project_id, allocate_ids_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options) command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation command.request_object = allocate_ids_request_object command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse 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 - - # Commits a transaction, optionally creating, deleting or modifying some - # entities. - # @param [String] project_id - # The ID of the project against which to make the request. - # @param [Google::Apis::DatastoreV1::CommitRequest] commit_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::CommitResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DatastoreV1::CommitResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def commit_project(project_id, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options) - command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation - command.request_object = commit_request_object - command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation - command.response_class = Google::Apis::DatastoreV1::CommitResponse - 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 @@ -119,11 +85,11 @@ module Google # @param [String] project_id # The ID of the project against which to make the request. # @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_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 # @@ -136,15 +102,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 begin_project_transaction(project_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def begin_project_transaction(project_id, begin_transaction_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options) command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation command.request_object = begin_transaction_request_object command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse 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 + + # Commits a transaction, optionally creating, deleting or modifying some + # entities. + # @param [String] project_id + # The ID of the project against which to make the request. + # @param [Google::Apis::DatastoreV1::CommitRequest] commit_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::DatastoreV1::CommitResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1::CommitResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def commit_project(project_id, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options) + command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation + command.request_object = commit_request_object + command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation + command.response_class = Google::Apis::DatastoreV1::CommitResponse + 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 @@ -152,11 +152,11 @@ module Google # @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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -169,15 +169,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 run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def run_project_query(project_id, run_query_request_object = nil, quota_user: nil, fields: 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -185,11 +185,11 @@ module Google # @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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -202,15 +202,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 rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def rollback_project(project_id, rollback_request_object = nil, quota_user: nil, fields: 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -218,11 +218,11 @@ module Google # @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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -235,15 +235,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 lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def lookup_project(project_id, lookup_request_object = nil, quota_user: nil, fields: 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/deploymentmanager_v2/classes.rb b/generated/google/apis/deploymentmanager_v2/classes.rb index 901161bfc..37c73d80c 100644 --- a/generated/google/apis/deploymentmanager_v2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2/classes.rb @@ -225,6 +225,7 @@ module Google # every request to modify data. To get the latest fingerprint value, perform a # get() request to a deployment. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -405,6 +406,7 @@ module Google # every request to modify a deployment. To get the latest fingerprint value, # perform a get() request on the deployment. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -458,6 +460,7 @@ module Google # every request to modify a deployment. To get the latest fingerprint value, # perform a get() request on the deployment. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -981,6 +984,7 @@ module Google # 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 diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 6369ef4ae..0002a5276 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 = '20170320' + REVISION = '20170323' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index 507706a68..81acef269 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -152,6 +152,11 @@ module Google # @return [String] attr_accessor :self_link + # A list of themes that are supported for Team Drives. + # Corresponds to the JSON property `teamDriveThemes` + # @return [Array] + attr_accessor :team_drive_themes + # Information about a Drive user. # Corresponds to the JSON property `user` # @return [Google::Apis::DriveV2::User] @@ -186,6 +191,7 @@ module Google @remaining_change_ids = args[:remaining_change_ids] if args.key?(:remaining_change_ids) @root_folder_id = args[:root_folder_id] if args.key?(:root_folder_id) @self_link = args[:self_link] if args.key?(:self_link) + @team_drive_themes = args[:team_drive_themes] if args.key?(:team_drive_themes) @user = args[:user] if args.key?(:user) end @@ -363,6 +369,37 @@ module Google @service_name = args[:service_name] if args.key?(:service_name) end end + + # + class TeamDriveTheme + include Google::Apis::Core::Hashable + + # A link to this Team Drive theme's background image. + # Corresponds to the JSON property `backgroundImageLink` + # @return [String] + attr_accessor :background_image_link + + # The color of this Team Drive theme as an RGB hex string. + # Corresponds to the JSON property `colorRgb` + # @return [String] + attr_accessor :color_rgb + + # The ID of the theme. + # 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) + @background_image_link = args[:background_image_link] if args.key?(:background_image_link) + @color_rgb = args[:color_rgb] if args.key?(:color_rgb) + @id = args[:id] if args.key?(:id) + end + end end # The apps resource provides a list of the apps that a user has installed, with @@ -1248,28 +1285,25 @@ module Google attr_accessor :app_data_contents alias_method :app_data_contents?, :app_data_contents - # Whether the current user can comment on the file. Deprecated: use capabilities/ - # canComment. + # Deprecated: use capabilities/canComment. # Corresponds to the JSON property `canComment` # @return [Boolean] attr_accessor :can_comment alias_method :can_comment?, :can_comment - # Whether the current user has read access to the Revisions resource of the file. # Deprecated: use capabilities/canReadRevisions. # Corresponds to the JSON property `canReadRevisions` # @return [Boolean] attr_accessor :can_read_revisions alias_method :can_read_revisions?, :can_read_revisions - # Capabilities the current user has on the file. Each capability corresponds to + # Capabilities the current user has on this file. Each capability corresponds to # a fine-grained action that a user may take. # Corresponds to the JSON property `capabilities` # @return [Google::Apis::DriveV2::File::Capabilities] attr_accessor :capabilities - # Whether the file can be copied by the current user. Deprecated: use - # capabilities/canCopy. + # Deprecated: use capabilities/canCopy. # Corresponds to the JSON property `copyable` # @return [Boolean] attr_accessor :copyable @@ -1296,8 +1330,7 @@ module Google # @return [String] attr_accessor :download_url - # Whether the file can be edited by the current user. Deprecated: use - # capabilities/canEdit. + # Deprecated: use capabilities/canEdit. # Corresponds to the JSON property `editable` # @return [Boolean] attr_accessor :editable @@ -1519,7 +1552,6 @@ module Google # @return [String] attr_accessor :self_link - # Whether the file's sharing settings can be modified by the current user. # Deprecated: use capabilities/canShare. # Corresponds to the JSON property `shareable` # @return [Boolean] @@ -1699,7 +1731,7 @@ module Google @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share) end - # Capabilities the current user has on the file. Each capability corresponds to + # Capabilities the current user has on this file. Each capability corresponds to # a fine-grained action that a user may take. class Capabilities include Google::Apis::Core::Hashable @@ -1711,33 +1743,33 @@ module Google attr_accessor :can_add_children alias_method :can_add_children?, :can_add_children - # Whether the current user can comment on the file. + # Whether the current user can comment on this file. # Corresponds to the JSON property `canComment` # @return [Boolean] attr_accessor :can_comment alias_method :can_comment?, :can_comment - # Whether the file can be copied by the current user. For a Team Drive item, - # whether non-folder descendants of this item, or this item itself if it is not - # a folder, can be copied. + # Whether the current user can copy this file. For a Team Drive item, whether + # the current user can copy non-folder descendants of this item, or this item + # itself if it is not a folder. # Corresponds to the JSON property `canCopy` # @return [Boolean] attr_accessor :can_copy alias_method :can_copy?, :can_copy - # Whether the file can be deleted by the current user. + # Whether the current user can delete this file. # Corresponds to the JSON property `canDelete` # @return [Boolean] attr_accessor :can_delete alias_method :can_delete?, :can_delete - # Whether the file can be downloaded by the current user. + # Whether the current user can download this file. # Corresponds to the JSON property `canDownload` # @return [Boolean] attr_accessor :can_download alias_method :can_download?, :can_download - # Whether the file can be edited by the current user. + # Whether the current user can edit this file. # Corresponds to the JSON property `canEdit` # @return [Boolean] attr_accessor :can_edit @@ -1766,16 +1798,16 @@ module Google attr_accessor :can_move_team_drive_item alias_method :can_move_team_drive_item?, :can_move_team_drive_item - # Whether the current user has read access to the Revisions resource of the file. - # For a Team Drive item, whether revisions of non-folder descendants of this - # item, or this item itself if it is not a folder, can be read. + # Whether the current user can read the revisions resource of this file. For a + # Team Drive item, whether revisions of non-folder descendants of this item, or + # this item itself if it is not a folder, can be read. # Corresponds to the JSON property `canReadRevisions` # @return [Boolean] attr_accessor :can_read_revisions alias_method :can_read_revisions?, :can_read_revisions - # Whether the current user has read access to the Team Drive to which this file - # belongs. Only populated for Team Drive files. + # Whether the current user can read the Team Drive to which this file belongs. + # Only populated for Team Drive files. # Corresponds to the JSON property `canReadTeamDrive` # @return [Boolean] attr_accessor :can_read_team_drive @@ -1788,25 +1820,25 @@ module Google attr_accessor :can_remove_children alias_method :can_remove_children?, :can_remove_children - # Whether the file can be renamed by the current user. + # Whether the current user can rename this file. # Corresponds to the JSON property `canRename` # @return [Boolean] attr_accessor :can_rename alias_method :can_rename?, :can_rename - # Whether the file's sharing settings can be modified by the current user. + # Whether the current user can modify the sharing settings for this file. # Corresponds to the JSON property `canShare` # @return [Boolean] attr_accessor :can_share alias_method :can_share?, :can_share - # Whether the file can be trashed by the current user. + # Whether the current user can move this file to trash. # Corresponds to the JSON property `canTrash` # @return [Boolean] attr_accessor :can_trash alias_method :can_trash?, :can_trash - # Whether the file can be restored from the trash by the current user. + # Whether the current user can restore this file from trash. # Corresponds to the JSON property `canUntrash` # @return [Boolean] attr_accessor :can_untrash @@ -2094,6 +2126,7 @@ module Google # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to # RFC 4648 section 5. # Corresponds to the JSON property `image` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :image @@ -2402,7 +2435,7 @@ module Google # @return [String] attr_accessor :self_link - # Details of whether the Permissions on this Team Drive item are inherited or + # Details of whether the permissions on this Team Drive item are inherited or # directly on this item. This is an output-only field which is present only for # Team Drive items. # Corresponds to the JSON property `teamDrivePermissionDetails` @@ -2888,11 +2921,30 @@ module Google class TeamDrive include Google::Apis::Core::Hashable + # An image file and cropping parameters from which a background image for this + # Team Drive is set. This is a write only field that can only be set on a drive. + # teamdrives.update request that does not set themeId. When specified, all + # fields of the backgroundImageFile must be set. + # Corresponds to the JSON property `backgroundImageFile` + # @return [Google::Apis::DriveV2::TeamDrive::BackgroundImageFile] + attr_accessor :background_image_file + + # A short-lived link to this Team Drive's background image. + # Corresponds to the JSON property `backgroundImageLink` + # @return [String] + attr_accessor :background_image_link + # Capabilities the current user has on this Team Drive. # Corresponds to the JSON property `capabilities` # @return [Google::Apis::DriveV2::TeamDrive::Capabilities] attr_accessor :capabilities + # The color of this Team Drive as an RGB hex string. It can only be set on a + # drive.teamdrives.update request that does not set themeId. + # Corresponds to the JSON property `colorRgb` + # @return [String] + attr_accessor :color_rgb + # The ID of this Team Drive which is also the ID of the top level folder for # this Team Drive. # Corresponds to the JSON property `id` @@ -2909,16 +2961,79 @@ module Google # @return [String] attr_accessor :name + # The ID of the theme from which the background image and color will be set. The + # set of possible teamDriveThemes can be retrieved from a drive.about.get + # response. When not specified on a drive.teamdrives.insert request, a random + # theme is chosen from which the background image and color are set. This is a + # write only field that can only be set on a request that does not set colorRgb + # or backgroundImageFile. + # Corresponds to the JSON property `themeId` + # @return [String] + attr_accessor :theme_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @background_image_file = args[:background_image_file] if args.key?(:background_image_file) + @background_image_link = args[:background_image_link] if args.key?(:background_image_link) @capabilities = args[:capabilities] if args.key?(:capabilities) + @color_rgb = args[:color_rgb] if args.key?(:color_rgb) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @theme_id = args[:theme_id] if args.key?(:theme_id) + end + + # An image file and cropping parameters from which a background image for this + # Team Drive is set. This is a write only field that can only be set on a drive. + # teamdrives.update request that does not set themeId. When specified, all + # fields of the backgroundImageFile must be set. + class BackgroundImageFile + include Google::Apis::Core::Hashable + + # The ID of an image file in Drive to use for the background image. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The width of the cropped image in the closed range of 0 to 1, which is the + # width of the cropped image divided by the width of the entire image. The + # height is computed by applying a width to height aspect ratio of 80 to 9. The + # resulting image must be at least 1280 pixels wide and 144 pixels high. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + # The X coordinate of the upper left corner of the cropping area in the + # background image. This is a value in the closed range of 0 to 1 which is the + # horizontal distance from the left side of the entire image to the left side of + # the cropping area divided by the width of the entire image. + # Corresponds to the JSON property `xCoordinate` + # @return [Float] + attr_accessor :x_coordinate + + # The Y coordinate of the upper left corner of the cropping area in the + # background image. This is a value in the closed range of 0 to 1 which is the + # vertical distance from the top side of the entire image to the top side of the + # cropping area divided by the height of the entire image. + # Corresponds to the JSON property `yCoordinate` + # @return [Float] + attr_accessor :y_coordinate + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @width = args[:width] if args.key?(:width) + @x_coordinate = args[:x_coordinate] if args.key?(:x_coordinate) + @y_coordinate = args[:y_coordinate] if args.key?(:y_coordinate) + end end # Capabilities the current user has on this Team Drive. @@ -2931,31 +3046,38 @@ module Google attr_accessor :can_add_children alias_method :can_add_children?, :can_add_children + # Whether the current user can change the background of this Team Drive. + # Corresponds to the JSON property `canChangeTeamDriveBackground` + # @return [Boolean] + attr_accessor :can_change_team_drive_background + alias_method :can_change_team_drive_background?, :can_change_team_drive_background + # Whether the current user can comment on files in this Team Drive. # Corresponds to the JSON property `canComment` # @return [Boolean] attr_accessor :can_comment alias_method :can_comment?, :can_comment - # Whether files in this Team Drive can be copied by the current user. + # Whether the current user can copy files in this Team Drive. # Corresponds to the JSON property `canCopy` # @return [Boolean] attr_accessor :can_copy alias_method :can_copy?, :can_copy - # Whether this Team Drive can be deleted by the current user. + # Whether the current user can delete this Team Drive. Attempting to delete the + # Team Drive may still fail if there are untrashed items inside the Team Drive. # Corresponds to the JSON property `canDeleteTeamDrive` # @return [Boolean] attr_accessor :can_delete_team_drive alias_method :can_delete_team_drive?, :can_delete_team_drive - # Whether files in this Team Drive can be downloaded by the current user. + # Whether the current user can download files in this Team Drive. # Corresponds to the JSON property `canDownload` # @return [Boolean] attr_accessor :can_download alias_method :can_download?, :can_download - # Whether files in this Team Drive can be edited by the current user. + # Whether the current user can edit files in this Team Drive # Corresponds to the JSON property `canEdit` # @return [Boolean] attr_accessor :can_edit @@ -2974,8 +3096,8 @@ module Google attr_accessor :can_manage_members alias_method :can_manage_members?, :can_manage_members - # Whether the current user has read access to the Revisions resource of files in - # this Team Drive. + # Whether the current user can read the revisions resource of files in this Team + # Drive. # Corresponds to the JSON property `canReadRevisions` # @return [Boolean] attr_accessor :can_read_revisions @@ -2987,13 +3109,13 @@ module Google attr_accessor :can_remove_children alias_method :can_remove_children?, :can_remove_children - # Whether files or folders in this Team Drive can be renamed by the current user. + # Whether the current user can rename files or folders in this Team Drive. # Corresponds to the JSON property `canRename` # @return [Boolean] attr_accessor :can_rename alias_method :can_rename?, :can_rename - # Whether this Team Drive can be renamed by the current user. + # Whether the current user can rename this Team Drive. # Corresponds to the JSON property `canRenameTeamDrive` # @return [Boolean] attr_accessor :can_rename_team_drive @@ -3012,6 +3134,7 @@ module Google # Update properties of this object def update!(**args) @can_add_children = args[:can_add_children] if args.key?(:can_add_children) + @can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background) @can_comment = args[:can_comment] if args.key?(:can_comment) @can_copy = args[:can_copy] if args.key?(:can_copy) @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive) diff --git a/generated/google/apis/drive_v2/representations.rb b/generated/google/apis/drive_v2/representations.rb index dd2211283..01ca7bad6 100644 --- a/generated/google/apis/drive_v2/representations.rb +++ b/generated/google/apis/drive_v2/representations.rb @@ -66,6 +66,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + + class TeamDriveTheme + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end include Google::Apis::Core::JsonObjectSupport end @@ -277,6 +283,12 @@ module Google class TeamDrive class Representation < Google::Apis::Core::JsonRepresentation; end + class BackgroundImageFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Capabilities class Representation < Google::Apis::Core::JsonRepresentation; end @@ -336,6 +348,8 @@ module Google property :remaining_change_ids, as: 'remainingChangeIds' property :root_folder_id, as: 'rootFolderId' property :self_link, as: 'selfLink' + collection :team_drive_themes, as: 'teamDriveThemes', class: Google::Apis::DriveV2::About::TeamDriveTheme, decorator: Google::Apis::DriveV2::About::TeamDriveTheme::Representation + property :user, as: 'user', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation end @@ -396,6 +410,15 @@ module Google property :service_name, as: 'serviceName' end end + + class TeamDriveTheme + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :background_image_link, as: 'backgroundImageLink' + property :color_rgb, as: 'colorRgb' + property :id, as: 'id' + end + end end class App @@ -958,17 +981,33 @@ module Google class TeamDrive # @private class Representation < Google::Apis::Core::JsonRepresentation + property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV2::TeamDrive::BackgroundImageFile, decorator: Google::Apis::DriveV2::TeamDrive::BackgroundImageFile::Representation + + property :background_image_link, as: 'backgroundImageLink' property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::TeamDrive::Capabilities, decorator: Google::Apis::DriveV2::TeamDrive::Capabilities::Representation + property :color_rgb, as: 'colorRgb' property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :theme_id, as: 'themeId' + end + + class BackgroundImageFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :width, as: 'width' + property :x_coordinate, as: 'xCoordinate' + property :y_coordinate, as: 'yCoordinate' + end end class Capabilities # @private class Representation < Google::Apis::Core::JsonRepresentation property :can_add_children, as: 'canAddChildren' + property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground' property :can_comment, as: 'canComment' property :can_copy, as: 'canCopy' property :can_delete_team_drive, as: 'canDeleteTeamDrive' diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index 1a49b9ff3..9191fd884 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -2932,7 +2932,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_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options) command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil? command.query['fields'] = fields unless fields.nil? @@ -2965,7 +2965,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_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options) command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation command.response_class = Google::Apis::DriveV2::TeamDrive @@ -3005,7 +3005,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 insert_teamdrife(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_teamdrive(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'teamdrives', options) command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation command.request_object = team_drive_object @@ -3081,7 +3081,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_teamdrife(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_teamdrive(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options) command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation command.request_object = team_drive_object diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index 1ebf9b964..8afcee1b6 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 = '20170320' + REVISION = '20170323' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v3/classes.rb b/generated/google/apis/drive_v3/classes.rb index 342016b06..7d11b3eae 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -68,6 +68,11 @@ module Google # @return [Google::Apis::DriveV3::About::StorageQuota] attr_accessor :storage_quota + # A list of themes that are supported for Team Drives. + # Corresponds to the JSON property `teamDriveThemes` + # @return [Array] + attr_accessor :team_drive_themes + # Information about a Drive user. # Corresponds to the JSON property `user` # @return [Google::Apis::DriveV3::User] @@ -87,6 +92,7 @@ module Google @max_import_sizes = args[:max_import_sizes] if args.key?(:max_import_sizes) @max_upload_size = args[:max_upload_size] if args.key?(:max_upload_size) @storage_quota = args[:storage_quota] if args.key?(:storage_quota) + @team_drive_themes = args[:team_drive_themes] if args.key?(:team_drive_themes) @user = args[:user] if args.key?(:user) end @@ -127,6 +133,37 @@ module Google @usage_in_drive_trash = args[:usage_in_drive_trash] if args.key?(:usage_in_drive_trash) end end + + # + class TeamDriveTheme + include Google::Apis::Core::Hashable + + # A link to this Team Drive theme's background image. + # Corresponds to the JSON property `backgroundImageLink` + # @return [String] + attr_accessor :background_image_link + + # The color of this Team Drive theme as an RGB hex string. + # Corresponds to the JSON property `colorRgb` + # @return [String] + attr_accessor :color_rgb + + # The ID of the theme. + # 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) + @background_image_link = args[:background_image_link] if args.key?(:background_image_link) + @color_rgb = args[:color_rgb] if args.key?(:color_rgb) + @id = args[:id] if args.key?(:id) + end + end end # A change to a file or Team Drive. @@ -482,7 +519,7 @@ module Google # @return [Hash] attr_accessor :app_properties - # Capabilities the current user has on the file. Each capability corresponds to + # Capabilities the current user has on this file. Each capability corresponds to # a fine-grained action that a user may take. # Corresponds to the JSON property `capabilities` # @return [Google::Apis::DriveV3::File::Capabilities] @@ -848,52 +885,52 @@ module Google @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share) end - # Capabilities the current user has on the file. Each capability corresponds to + # Capabilities the current user has on this file. Each capability corresponds to # a fine-grained action that a user may take. class Capabilities include Google::Apis::Core::Hashable - # Whether the user can add children to this folder. This is always false when - # the item is not a folder. + # Whether the current user can add children to this folder. This is always false + # when the item is not a folder. # Corresponds to the JSON property `canAddChildren` # @return [Boolean] attr_accessor :can_add_children alias_method :can_add_children?, :can_add_children - # Whether the user can comment on the file. + # Whether the current user can comment on this file. # Corresponds to the JSON property `canComment` # @return [Boolean] attr_accessor :can_comment alias_method :can_comment?, :can_comment - # Whether the user can copy the file. For a Team Drive item, whether non-folder - # descendants of this item, or this item itself if it is not a folder, can be - # copied. + # Whether the current user can copy this file. For a Team Drive item, whether + # the current user can copy non-folder descendants of this item, or this item + # itself if it is not a folder. # Corresponds to the JSON property `canCopy` # @return [Boolean] attr_accessor :can_copy alias_method :can_copy?, :can_copy - # Whether the file can be deleted by the user. + # Whether the current user can delete this file. # Corresponds to the JSON property `canDelete` # @return [Boolean] attr_accessor :can_delete alias_method :can_delete?, :can_delete - # Whether the file can be downloaded by the user. + # Whether the current user can download this file. # Corresponds to the JSON property `canDownload` # @return [Boolean] attr_accessor :can_download alias_method :can_download?, :can_download - # Whether the user can edit the file's content. + # Whether the current user can edit this file. # Corresponds to the JSON property `canEdit` # @return [Boolean] attr_accessor :can_edit alias_method :can_edit?, :can_edit - # Whether the user can list the children of this folder. This is always false - # when the item is not a folder. + # Whether the current user can list the children of this folder. This is always + # false when the item is not a folder. # Corresponds to the JSON property `canListChildren` # @return [Boolean] attr_accessor :can_list_children @@ -906,15 +943,16 @@ module Google attr_accessor :can_move_item_into_team_drive alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive - # Whether the user can move this Team Drive item by changing its parent. Note - # that a request to change the parent for this item may still fail depending on - # the new parent that is being added. Only populated for Team Drive files. + # Whether the current user can move this Team Drive item by changing its parent. + # Note that a request to change the parent for this item may still fail + # depending on the new parent that is being added. Only populated for Team Drive + # files. # Corresponds to the JSON property `canMoveTeamDriveItem` # @return [Boolean] attr_accessor :can_move_team_drive_item alias_method :can_move_team_drive_item?, :can_move_team_drive_item - # Whether the user has read access to the Revisions resource of the file. For a + # Whether the current user can read the revisions resource of this file. For a # Team Drive item, whether revisions of non-folder descendants of this item, or # this item itself if it is not a folder, can be read. # Corresponds to the JSON property `canReadRevisions` @@ -922,39 +960,39 @@ module Google attr_accessor :can_read_revisions alias_method :can_read_revisions?, :can_read_revisions - # Whether the user has read access to the Team Drive to which this file belongs. + # Whether the current user can read the Team Drive to which this file belongs. # Only populated for Team Drive files. # Corresponds to the JSON property `canReadTeamDrive` # @return [Boolean] attr_accessor :can_read_team_drive alias_method :can_read_team_drive?, :can_read_team_drive - # Whether the user can remove children from this folder. This is always false - # when the item is not a folder. + # Whether the current user can remove children from this folder. This is always + # false when the item is not a folder. # Corresponds to the JSON property `canRemoveChildren` # @return [Boolean] attr_accessor :can_remove_children alias_method :can_remove_children?, :can_remove_children - # Whether the file can be renamed by the user. + # Whether the current user can rename this file. # Corresponds to the JSON property `canRename` # @return [Boolean] attr_accessor :can_rename alias_method :can_rename?, :can_rename - # Whether the user can modify the file's permissions and sharing settings. + # Whether the current user can modify the sharing settings for this file. # Corresponds to the JSON property `canShare` # @return [Boolean] attr_accessor :can_share alias_method :can_share?, :can_share - # Whether the file can be trashed by the user. + # Whether the current user can move this file to trash. # Corresponds to the JSON property `canTrash` # @return [Boolean] attr_accessor :can_trash alias_method :can_trash?, :can_trash - # Whether the file can be restored from the trash by the current user. + # Whether the current user can restore this file from trash. # Corresponds to the JSON property `canUntrash` # @return [Boolean] attr_accessor :can_untrash @@ -1019,6 +1057,7 @@ module Google # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5). # Corresponds to the JSON property `image` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :image @@ -1388,7 +1427,7 @@ module Google # @return [String] attr_accessor :role - # Details of whether the Permissions on this Team Drive item are inherited or + # Details of whether the permissions on this Team Drive item are inherited or # directly on this item. This is an output-only field which is present only for # Team Drive items. # Corresponds to the JSON property `teamDrivePermissionDetails` @@ -1783,11 +1822,30 @@ module Google class TeamDrive include Google::Apis::Core::Hashable + # An image file and cropping parameters from which a background image for this + # Team Drive is set. This is a write only field that can only be set on a drive. + # teamdrives.update request that does not set themeId. When specified, all + # fields of the backgroundImageFile must be set. + # Corresponds to the JSON property `backgroundImageFile` + # @return [Google::Apis::DriveV3::TeamDrive::BackgroundImageFile] + attr_accessor :background_image_file + + # A short-lived link to this Team Drive's background image. + # Corresponds to the JSON property `backgroundImageLink` + # @return [String] + attr_accessor :background_image_link + # Capabilities the current user has on this Team Drive. # Corresponds to the JSON property `capabilities` # @return [Google::Apis::DriveV3::TeamDrive::Capabilities] attr_accessor :capabilities + # The color of this Team Drive as an RGB hex string. It can only be set on a + # drive.teamdrives.update request that does not set themeId. + # Corresponds to the JSON property `colorRgb` + # @return [String] + attr_accessor :color_rgb + # The ID of this Team Drive which is also the ID of the top level folder for # this Team Drive. # Corresponds to the JSON property `id` @@ -1805,16 +1863,79 @@ module Google # @return [String] attr_accessor :name + # The ID of the theme from which the background image and color will be set. The + # set of possible teamDriveThemes can be retrieved from a drive.about.get + # response. When not specified on a drive.teamdrives.create request, a random + # theme is chosen from which the background image and color are set. This is a + # write only field that can only be set on a request that does not set colorRgb + # or backgroundImageFile. + # Corresponds to the JSON property `themeId` + # @return [String] + attr_accessor :theme_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @background_image_file = args[:background_image_file] if args.key?(:background_image_file) + @background_image_link = args[:background_image_link] if args.key?(:background_image_link) @capabilities = args[:capabilities] if args.key?(:capabilities) + @color_rgb = args[:color_rgb] if args.key?(:color_rgb) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @theme_id = args[:theme_id] if args.key?(:theme_id) + end + + # An image file and cropping parameters from which a background image for this + # Team Drive is set. This is a write only field that can only be set on a drive. + # teamdrives.update request that does not set themeId. When specified, all + # fields of the backgroundImageFile must be set. + class BackgroundImageFile + include Google::Apis::Core::Hashable + + # The ID of an image file in Drive to use for the background image. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The width of the cropped image in the closed range of 0 to 1, which is the + # width of the cropped image divided by the width of the entire image. The + # height is computed by applying a width to height aspect ratio of 80 to 9. The + # resulting image must be at least 1280 pixels wide and 144 pixels high. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + # The X coordinate of the upper left corner of the cropping area in the + # background image. This is a value in the closed range of 0 to 1 which is the + # horizontal distance from the left side of the entire image to the left side of + # the cropping area divided by the width of the entire image. + # Corresponds to the JSON property `xCoordinate` + # @return [Float] + attr_accessor :x_coordinate + + # The Y coordinate of the upper left corner of the cropping area in the + # background image. This is a value in the closed range of 0 to 1 which is the + # vertical distance from the top side of the entire image to the top side of the + # cropping area divided by the height of the entire image. + # Corresponds to the JSON property `yCoordinate` + # @return [Float] + attr_accessor :y_coordinate + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @width = args[:width] if args.key?(:width) + @x_coordinate = args[:x_coordinate] if args.key?(:x_coordinate) + @y_coordinate = args[:y_coordinate] if args.key?(:y_coordinate) + end end # Capabilities the current user has on this Team Drive. @@ -1827,31 +1948,38 @@ module Google attr_accessor :can_add_children alias_method :can_add_children?, :can_add_children + # Whether the current user can change the background of this Team Drive. + # Corresponds to the JSON property `canChangeTeamDriveBackground` + # @return [Boolean] + attr_accessor :can_change_team_drive_background + alias_method :can_change_team_drive_background?, :can_change_team_drive_background + # Whether the current user can comment on files in this Team Drive. # Corresponds to the JSON property `canComment` # @return [Boolean] attr_accessor :can_comment alias_method :can_comment?, :can_comment - # Whether files in this Team Drive can be copied by the current user. + # Whether the current user can copy files in this Team Drive. # Corresponds to the JSON property `canCopy` # @return [Boolean] attr_accessor :can_copy alias_method :can_copy?, :can_copy - # Whether this Team Drive can be deleted by the current user. + # Whether the current user can delete this Team Drive. Attempting to delete the + # Team Drive may still fail if there are untrashed items inside the Team Drive. # Corresponds to the JSON property `canDeleteTeamDrive` # @return [Boolean] attr_accessor :can_delete_team_drive alias_method :can_delete_team_drive?, :can_delete_team_drive - # Whether files in this Team Drive can be downloaded by the current user. + # Whether the current user can download files in this Team Drive. # Corresponds to the JSON property `canDownload` # @return [Boolean] attr_accessor :can_download alias_method :can_download?, :can_download - # Whether files in this Team Drive can be edited by the current user. + # Whether the current user can edit files in this Team Drive # Corresponds to the JSON property `canEdit` # @return [Boolean] attr_accessor :can_edit @@ -1870,8 +1998,8 @@ module Google attr_accessor :can_manage_members alias_method :can_manage_members?, :can_manage_members - # Whether the current user has read access to the Revisions resource of files in - # this Team Drive. + # Whether the current user can read the revisions resource of files in this Team + # Drive. # Corresponds to the JSON property `canReadRevisions` # @return [Boolean] attr_accessor :can_read_revisions @@ -1883,13 +2011,13 @@ module Google attr_accessor :can_remove_children alias_method :can_remove_children?, :can_remove_children - # Whether files or folders in this Team Drive can be renamed by the current user. + # Whether the current user can rename files or folders in this Team Drive. # Corresponds to the JSON property `canRename` # @return [Boolean] attr_accessor :can_rename alias_method :can_rename?, :can_rename - # Whether this Team Drive can be renamed by the current user. + # Whether the current user can rename this Team Drive. # Corresponds to the JSON property `canRenameTeamDrive` # @return [Boolean] attr_accessor :can_rename_team_drive @@ -1908,6 +2036,7 @@ module Google # Update properties of this object def update!(**args) @can_add_children = args[:can_add_children] if args.key?(:can_add_children) + @can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background) @can_comment = args[:can_comment] if args.key?(:can_comment) @can_copy = args[:can_copy] if args.key?(:can_copy) @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive) diff --git a/generated/google/apis/drive_v3/representations.rb b/generated/google/apis/drive_v3/representations.rb index e0d0f54c5..0700c3c16 100644 --- a/generated/google/apis/drive_v3/representations.rb +++ b/generated/google/apis/drive_v3/representations.rb @@ -30,6 +30,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + + class TeamDriveTheme + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end include Google::Apis::Core::JsonObjectSupport end @@ -175,6 +181,12 @@ module Google class TeamDrive class Representation < Google::Apis::Core::JsonRepresentation; end + class BackgroundImageFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Capabilities class Representation < Google::Apis::Core::JsonRepresentation; end @@ -216,6 +228,8 @@ module Google property :max_upload_size, as: 'maxUploadSize' property :storage_quota, as: 'storageQuota', class: Google::Apis::DriveV3::About::StorageQuota, decorator: Google::Apis::DriveV3::About::StorageQuota::Representation + collection :team_drive_themes, as: 'teamDriveThemes', class: Google::Apis::DriveV3::About::TeamDriveTheme, decorator: Google::Apis::DriveV3::About::TeamDriveTheme::Representation + property :user, as: 'user', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation end @@ -229,6 +243,15 @@ module Google property :usage_in_drive_trash, as: 'usageInDriveTrash' end end + + class TeamDriveTheme + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :background_image_link, as: 'backgroundImageLink' + property :color_rgb, as: 'colorRgb' + property :id, as: 'id' + end + end end class Change @@ -601,17 +624,33 @@ module Google class TeamDrive # @private class Representation < Google::Apis::Core::JsonRepresentation + property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV3::TeamDrive::BackgroundImageFile, decorator: Google::Apis::DriveV3::TeamDrive::BackgroundImageFile::Representation + + property :background_image_link, as: 'backgroundImageLink' property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::TeamDrive::Capabilities, decorator: Google::Apis::DriveV3::TeamDrive::Capabilities::Representation + property :color_rgb, as: 'colorRgb' property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :theme_id, as: 'themeId' + end + + class BackgroundImageFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :width, as: 'width' + property :x_coordinate, as: 'xCoordinate' + property :y_coordinate, as: 'yCoordinate' + end end class Capabilities # @private class Representation < Google::Apis::Core::JsonRepresentation property :can_add_children, as: 'canAddChildren' + property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground' property :can_comment, as: 'canComment' property :can_copy, as: 'canCopy' property :can_delete_team_drive, as: 'canDeleteTeamDrive' diff --git a/generated/google/apis/drive_v3/service.rb b/generated/google/apis/drive_v3/service.rb index 63e883655..afce2aeb3 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -1669,7 +1669,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_teamdrife(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def create_teamdrive(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'teamdrives', options) command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation command.request_object = team_drive_object @@ -1707,7 +1707,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_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options) command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1740,7 +1740,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_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options) command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation command.response_class = Google::Apis::DriveV3::TeamDrive @@ -1814,7 +1814,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_teamdrife(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_teamdrive(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'teamdrives/{teamDriveId}', options) command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation command.request_object = team_drive_object diff --git a/generated/google/apis/firebasedynamiclinks_v1.rb b/generated/google/apis/firebasedynamiclinks_v1.rb index 9f4a1d17f..354f4d039 100644 --- a/generated/google/apis/firebasedynamiclinks_v1.rb +++ b/generated/google/apis/firebasedynamiclinks_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://firebase.google.com/docs/dynamic-links/ module FirebasedynamiclinksV1 VERSION = 'V1' - REVISION = '20170323' + REVISION = '20170330' # 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 dc45b802e..5cac00302 100644 --- a/generated/google/apis/firebasedynamiclinks_v1/classes.rb +++ b/generated/google/apis/firebasedynamiclinks_v1/classes.rb @@ -22,50 +22,16 @@ module Google module Apis module FirebasedynamiclinksV1 - # Parameters for iTunes Connect App Analytics. - class ITunesConnectAnalytics - include Google::Apis::Core::Hashable - - # Affiliate token used to create affiliate-coded links. - # Corresponds to the JSON property `at` - # @return [String] - attr_accessor :at - - # Campaign text that developers can optionally add to any link in order to - # track sales from a specific marketing campaign. - # Corresponds to the JSON property `ct` - # @return [String] - attr_accessor :ct - - # iTune media types, including music, podcasts, audiobooks and so on. - # Corresponds to the JSON property `mt` - # @return [String] - attr_accessor :mt - - # Provider token that enables analytics for Dynamic Links from within iTunes - # Connect. - # Corresponds to the JSON property `pt` - # @return [String] - attr_accessor :pt - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @at = args[:at] if args.key?(:at) - @ct = args[:ct] if args.key?(:ct) - @mt = args[:mt] if args.key?(:mt) - @pt = args[:pt] if args.key?(:pt) - end - end - # Parameters for social meta tag params. # Used to set meta tag data for link previews on social sites. class SocialMetaTagInfo include Google::Apis::Core::Hashable + # A short description of the link. Optional. + # Corresponds to the JSON property `socialDescription` + # @return [String] + attr_accessor :social_description + # Title to be displayed. Optional. # Corresponds to the JSON property `socialTitle` # @return [String] @@ -76,10 +42,31 @@ module Google # @return [String] attr_accessor :social_image_link - # A short description of the link. Optional. - # Corresponds to the JSON property `socialDescription` + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @social_description = args[:social_description] if args.key?(:social_description) + @social_title = args[:social_title] if args.key?(:social_title) + @social_image_link = args[:social_image_link] if args.key?(:social_image_link) + 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 :social_description + 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) @@ -87,9 +74,8 @@ module Google # Update properties of this object def update!(**args) - @social_title = args[:social_title] if args.key?(:social_title) - @social_image_link = args[:social_image_link] if args.key?(:social_image_link) - @social_description = args[:social_description] if args.key?(:social_description) + @warning_code = args[:warning_code] if args.key?(:warning_code) + @warning_message = args[:warning_message] if args.key?(:warning_message) end end @@ -97,16 +83,6 @@ module Google class AndroidInfo include Google::Apis::Core::Hashable - # If specified, this overrides the ‘link’ parameter on Android. - # Corresponds to the JSON property `androidLink` - # @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 - # Android package name of the app. # Corresponds to the JSON property `androidPackageName` # @return [String] @@ -118,41 +94,26 @@ module Google # @return [String] attr_accessor :android_min_package_version_code + # If specified, this overrides the ‘link’ parameter on Android. + # Corresponds to the JSON property `androidLink` + # @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_link = args[:android_link] if args.key?(:android_link) - @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) - 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) + @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 @@ -181,16 +142,6 @@ module Google class IosInfo include Google::Apis::Core::Hashable - # Link to open on iOS if the app is not installed. - # Corresponds to the JSON property `iosFallbackLink` - # @return [String] - attr_accessor :ios_fallback_link - - # iOS App Store ID. - # Corresponds to the JSON property `iosAppStoreId` - # @return [String] - attr_accessor :ios_app_store_id - # If specified, this overrides the ios_fallback_link value on iPads. # Corresponds to the JSON property `iosIpadFallbackLink` # @return [String] @@ -213,18 +164,28 @@ module Google # @return [String] attr_accessor :ios_bundle_id + # Link to open on iOS if the app is not installed. + # Corresponds to the JSON property `iosFallbackLink` + # @return [String] + attr_accessor :ios_fallback_link + + # iOS App Store ID. + # Corresponds to the JSON property `iosAppStoreId` + # @return [String] + attr_accessor :ios_app_store_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @ios_fallback_link = args[:ios_fallback_link] if args.key?(:ios_fallback_link) - @ios_app_store_id = args[:ios_app_store_id] if args.key?(:ios_app_store_id) @ios_ipad_fallback_link = args[:ios_ipad_fallback_link] if args.key?(:ios_ipad_fallback_link) @ios_ipad_bundle_id = args[:ios_ipad_bundle_id] if args.key?(:ios_ipad_bundle_id) @ios_custom_scheme = args[:ios_custom_scheme] if args.key?(:ios_custom_scheme) @ios_bundle_id = args[:ios_bundle_id] if args.key?(:ios_bundle_id) + @ios_fallback_link = args[:ios_fallback_link] if args.key?(:ios_fallback_link) + @ios_app_store_id = args[:ios_app_store_id] if args.key?(:ios_app_store_id) end end @@ -232,11 +193,6 @@ module Google class AnalyticsInfo include Google::Apis::Core::Hashable - # Parameters for iTunes Connect App Analytics. - # Corresponds to the JSON property `itunesConnectAnalytics` - # @return [Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics] - attr_accessor :itunes_connect_analytics - # Parameters for Google Play Campaign Measurements. # [Learn more](https://developers.google.com/analytics/devguides/collection/ # android/v4/campaigns#campaign-params) @@ -244,14 +200,19 @@ module Google # @return [Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics] attr_accessor :google_play_analytics + # Parameters for iTunes Connect App Analytics. + # Corresponds to the JSON property `itunesConnectAnalytics` + # @return [Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics] + attr_accessor :itunes_connect_analytics + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @itunes_connect_analytics = args[:itunes_connect_analytics] if args.key?(:itunes_connect_analytics) @google_play_analytics = args[:google_play_analytics] if args.key?(:google_play_analytics) + @itunes_connect_analytics = args[:itunes_connect_analytics] if args.key?(:itunes_connect_analytics) end end @@ -346,6 +307,12 @@ module Google class GooglePlayAnalytics include Google::Apis::Core::Hashable + # Campaign content; used for A/B testing and content-targeted ads to + # differentiate ads or links that point to the same URL. + # Corresponds to the JSON property `utmContent` + # @return [String] + attr_accessor :utm_content + # Campaign medium; used to identify a medium such as email or cost-per-click. # Corresponds to the JSON property `utmMedium` # @return [String] @@ -376,24 +343,18 @@ module Google # @return [String] attr_accessor :gclid - # Campaign content; used for A/B testing and content-targeted ads to - # differentiate ads or links that point to the same URL. - # Corresponds to the JSON property `utmContent` - # @return [String] - attr_accessor :utm_content - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @utm_content = args[:utm_content] if args.key?(:utm_content) @utm_medium = args[:utm_medium] if args.key?(:utm_medium) @utm_term = args[:utm_term] if args.key?(:utm_term) @utm_source = args[:utm_source] if args.key?(:utm_source) @utm_campaign = args[:utm_campaign] if args.key?(:utm_campaign) @gclid = args[:gclid] if args.key?(:gclid) - @utm_content = args[:utm_content] if args.key?(:utm_content) end end @@ -401,6 +362,21 @@ module Google class DynamicLinkInfo include Google::Apis::Core::Hashable + # Android related attributes to the Dynamic Link. + # Corresponds to the JSON property `androidInfo` + # @return [Google::Apis::FirebasedynamiclinksV1::AndroidInfo] + attr_accessor :android_info + + # Information of navigation behavior. + # Corresponds to the JSON property `navigationInfo` + # @return [Google::Apis::FirebasedynamiclinksV1::NavigationInfo] + attr_accessor :navigation_info + + # Tracking parameters supported by Dynamic Link. + # Corresponds to the JSON property `analyticsInfo` + # @return [Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo] + attr_accessor :analytics_info + # Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl # [Learn more](https://firebase.google.com/docs/dynamic-links/android#set-up- # firebase-and-the-dynamic-links-sdk) @@ -431,20 +407,47 @@ module Google # @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] - attr_accessor :android_info + def initialize(**args) + update!(**args) + end - # Information of navigation behavior. - # Corresponds to the JSON property `navigationInfo` - # @return [Google::Apis::FirebasedynamiclinksV1::NavigationInfo] - attr_accessor :navigation_info + # Update properties of this object + def update!(**args) + @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 - # Tracking parameters supported by Dynamic Link. - # Corresponds to the JSON property `analyticsInfo` - # @return [Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo] - attr_accessor :analytics_info + # Parameters for iTunes Connect App Analytics. + class ITunesConnectAnalytics + include Google::Apis::Core::Hashable + + # Affiliate token used to create affiliate-coded links. + # Corresponds to the JSON property `at` + # @return [String] + attr_accessor :at + + # Campaign text that developers can optionally add to any link in order to + # track sales from a specific marketing campaign. + # Corresponds to the JSON property `ct` + # @return [String] + attr_accessor :ct + + # iTune media types, including music, podcasts, audiobooks and so on. + # Corresponds to the JSON property `mt` + # @return [String] + attr_accessor :mt + + # Provider token that enables analytics for Dynamic Links from within iTunes + # Connect. + # Corresponds to the JSON property `pt` + # @return [String] + attr_accessor :pt def initialize(**args) update!(**args) @@ -452,13 +455,10 @@ module Google # Update properties of this object def update!(**args) - @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) - @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) + @at = args[:at] if args.key?(:at) + @ct = args[:ct] if args.key?(:ct) + @mt = args[:mt] if args.key?(:mt) + @pt = args[:pt] if args.key?(:pt) end end end diff --git a/generated/google/apis/firebasedynamiclinks_v1/representations.rb b/generated/google/apis/firebasedynamiclinks_v1/representations.rb index 5ad546ebd..44a182614 100644 --- a/generated/google/apis/firebasedynamiclinks_v1/representations.rb +++ b/generated/google/apis/firebasedynamiclinks_v1/representations.rb @@ -22,25 +22,19 @@ module Google module Apis module FirebasedynamiclinksV1 - class ITunesConnectAnalytics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SocialMetaTagInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AndroidInfo + class DynamicLinkWarning class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class DynamicLinkWarning + class AndroidInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -95,39 +89,35 @@ module Google end class ITunesConnectAnalytics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :at, as: 'at' - property :ct, as: 'ct' - property :mt, as: 'mt' - property :pt, as: 'pt' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class SocialMetaTagInfo # @private class Representation < Google::Apis::Core::JsonRepresentation + property :social_description, as: 'socialDescription' property :social_title, as: 'socialTitle' property :social_image_link, as: 'socialImageLink' - property :social_description, as: 'socialDescription' - end - end - - class AndroidInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :android_link, as: 'androidLink' - property :android_fallback_link, as: 'androidFallbackLink' - property :android_package_name, as: 'androidPackageName' - property :android_min_package_version_code, as: 'androidMinPackageVersionCode' end end class DynamicLinkWarning # @private class Representation < Google::Apis::Core::JsonRepresentation - property :warning_message, as: 'warningMessage' property :warning_code, as: 'warningCode' + property :warning_message, as: 'warningMessage' + end + end + + class AndroidInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 @@ -141,22 +131,22 @@ module Google class IosInfo # @private class Representation < Google::Apis::Core::JsonRepresentation - property :ios_fallback_link, as: 'iosFallbackLink' - property :ios_app_store_id, as: 'iosAppStoreId' property :ios_ipad_fallback_link, as: 'iosIpadFallbackLink' property :ios_ipad_bundle_id, as: 'iosIpadBundleId' property :ios_custom_scheme, as: 'iosCustomScheme' property :ios_bundle_id, as: 'iosBundleId' + property :ios_fallback_link, as: 'iosFallbackLink' + property :ios_app_store_id, as: 'iosAppStoreId' end end class AnalyticsInfo # @private class Representation < Google::Apis::Core::JsonRepresentation - property :itunes_connect_analytics, as: 'itunesConnectAnalytics', class: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics, decorator: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics::Representation - property :google_play_analytics, as: 'googlePlayAnalytics', class: Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics, decorator: Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics::Representation + property :itunes_connect_analytics, as: 'itunesConnectAnalytics', class: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics, decorator: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics::Representation + end end @@ -191,30 +181,40 @@ module Google class GooglePlayAnalytics # @private class Representation < Google::Apis::Core::JsonRepresentation + property :utm_content, as: 'utmContent' property :utm_medium, as: 'utmMedium' property :utm_term, as: 'utmTerm' property :utm_source, as: 'utmSource' property :utm_campaign, as: 'utmCampaign' property :gclid, as: 'gclid' - property :utm_content, as: 'utmContent' end end class DynamicLinkInfo # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 - 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 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 + + class ITunesConnectAnalytics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :at, as: 'at' + property :ct, as: 'ct' + property :mt, as: 'mt' + property :pt, as: 'pt' end end end diff --git a/generated/google/apis/firebaserules_v1/classes.rb b/generated/google/apis/firebaserules_v1/classes.rb index 1756bb869..cec322408 100644 --- a/generated/google/apis/firebaserules_v1/classes.rb +++ b/generated/google/apis/firebaserules_v1/classes.rb @@ -22,14 +22,20 @@ module Google module Apis module FirebaserulesV1 - # `Source` is one or more `File` messages comprising a logical set of rules. - class Source + # Represents a service-defined function call that was invoked during test + # execution. + class FunctionCall include Google::Apis::Core::Hashable - # `File` set constituting the `Source` bundle. - # Corresponds to the JSON property `files` - # @return [Array] - attr_accessor :files + # Name of the function invoked. + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + + # The arguments that were provided to the function. + # Corresponds to the JSON property `args` + # @return [Array] + attr_accessor :args def initialize(**args) update!(**args) @@ -37,125 +43,40 @@ module Google # Update properties of this object def update!(**args) - @files = args[:files] if args.key?(:files) + @function = args[:function] if args.key?(:function) + @args = args[:args] if args.key?(:args) end end - # Position in the `Source` content including its line, column number, and an - # index of the `File` in the `Source` message. Used for debug purposes. - class SourcePosition + # `File` containing source content. + class File include Google::Apis::Core::Hashable - # Line number of the source fragment. 1-based. - # Corresponds to the JSON property `line` - # @return [Fixnum] - attr_accessor :line - - # First column on the source line associated with the source fragment. - # Corresponds to the JSON property `column` - # @return [Fixnum] - attr_accessor :column - - # Name of the `File`. - # Corresponds to the JSON property `fileName` + # 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 :file_name + attr_accessor :fingerprint - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @line = args[:line] if args.key?(:line) - @column = args[:column] if args.key?(:column) - @file_name = args[:file_name] if args.key?(:file_name) - end - end - - # Issues include warnings, errors, and deprecation notices. - class Issue - include Google::Apis::Core::Hashable - - # The severity of the issue. - # Corresponds to the JSON property `severity` - # @return [String] - attr_accessor :severity - - # Short error description. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # 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 `sourcePosition` - # @return [Google::Apis::FirebaserulesV1::SourcePosition] - attr_accessor :source_position - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @severity = args[:severity] if args.key?(:severity) - @description = args[:description] if args.key?(:description) - @source_position = args[:source_position] if args.key?(:source_position) - end - end - - # The request for FirebaseRulesService.TestRuleset. - class TestRulesetRequest - 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @source = args[:source] if args.key?(:source) - 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. + # 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 + 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) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @name = args[:name] if args.key?(:name) + @content = args[:content] if args.key?(:content) end end @@ -185,74 +106,11 @@ module Google 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 - - # `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` - # @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 - # `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` @@ -288,16 +146,22 @@ module Google # @return [String] attr_accessor :ruleset_name + # Time the release 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) - @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) + @create_time = args[:create_time] if args.key?(:create_time) end end @@ -419,6 +283,143 @@ module Google def update!(**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 + + # Position in the `Source` content including its line, column number, and an + # index of the `File` in the `Source` message. Used for debug purposes. + class SourcePosition + include Google::Apis::Core::Hashable + + # First column on the source line associated with the source fragment. + # Corresponds to the JSON property `column` + # @return [Fixnum] + attr_accessor :column + + # Name of the `File`. + # Corresponds to the JSON property `fileName` + # @return [String] + attr_accessor :file_name + + # Line number of the source fragment. 1-based. + # 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) + @column = args[:column] if args.key?(:column) + @file_name = args[:file_name] if args.key?(:file_name) + @line = args[:line] if args.key?(:line) + end + end + + # Issues include warnings, errors, and deprecation notices. + class Issue + 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 `sourcePosition` + # @return [Google::Apis::FirebaserulesV1::SourcePosition] + attr_accessor :source_position + + # The severity of the issue. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # Short error description. + # 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) + @source_position = args[:source_position] if args.key?(:source_position) + @severity = args[:severity] if args.key?(:severity) + @description = args[:description] if args.key?(:description) + end + end + + # The request for FirebaseRulesService.TestRuleset. + class TestRulesetRequest + 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source = args[:source] if args.key?(:source) + 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 end end end diff --git a/generated/google/apis/firebaserules_v1/representations.rb b/generated/google/apis/firebaserules_v1/representations.rb index 3eceb682b..e0acf7853 100644 --- a/generated/google/apis/firebaserules_v1/representations.rb +++ b/generated/google/apis/firebaserules_v1/representations.rb @@ -22,42 +22,6 @@ module Google module Apis module FirebaserulesV1 - class Source - 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 Issue - 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 ListReleasesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class FunctionCall class Representation < Google::Apis::Core::JsonRepresentation; end @@ -70,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 @@ -101,47 +71,49 @@ module Google 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class SourcePosition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :line, as: 'line' - property :column, as: 'column' - property :file_name, as: 'fileName' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Issue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :severity, as: 'severity' - property :description, as: 'description' - property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class TestRulesetRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class Ruleset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FunctionCall # @private class Representation < Google::Apis::Core::JsonRepresentation - property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation + property :function, as: 'function' + collection :args, as: 'args' + end + end - property :create_time, as: 'createTime' + class File + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fingerprint, :base64 => true, as: 'fingerprint' property :name, as: 'name' + property :content, as: 'content' end end @@ -154,30 +126,13 @@ module Google end end - class FunctionCall - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :args, as: 'args' - property :function, as: 'function' - 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 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' + property :create_time, as: 'createTime' end end @@ -217,6 +172,51 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation 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 SourcePosition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :column, as: 'column' + property :file_name, as: 'fileName' + property :line, as: 'line' + end + end + + class Issue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation + + property :severity, as: 'severity' + property :description, as: 'description' + end + end + + class TestRulesetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation + + 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 end end end diff --git a/generated/google/apis/firebaserules_v1/service.rb b/generated/google/apis/firebaserules_v1/service.rb index 1e2560967..ba1eae426 100644 --- a/generated/google/apis/firebaserules_v1/service.rb +++ b/generated/google/apis/firebaserules_v1/service.rb @@ -101,10 +101,11 @@ module Google execute_or_queue_command(command, &block) end - # Delete a `Release` by resource name. + # 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 `Release` to delete. - # Format: `projects/`project_id`/releases/`release_id`` + # 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 @@ -122,7 +123,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_release(name, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -132,10 +133,10 @@ module Google execute_or_queue_command(command, &block) end - # Get a `Release` by name. + # Get a `Ruleset` by name including the full `Source` contents. # @param [String] name - # Resource name of the `Release`. - # Format: `projects/`project_id`/releases/`release_id`` + # 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 @@ -145,58 +146,44 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::FirebaserulesV1::Release] parsed result object + # @yieldparam result [Google::Apis::FirebaserulesV1::Ruleset] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::FirebaserulesV1::Release] + # @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_release(name, fields: nil, quota_user: nil, options: nil, &block) + 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::Release::Representation - command.response_class = Google::Apis::FirebaserulesV1::Release + 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 the `Release` values for a project. This list may optionally be - # filtered by `Release` name, `Ruleset` name, `TestSuite` name, or any - # combination thereof. + # 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 - # `Release` filter. The list method supports filters with restrictions on the - # `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. - # Example 1: A filter of 'name=prod*' might return `Release`s with names - # within 'projects/foo' prefixed with 'prod': - # Name | Ruleset Name - # ------------------------------|------------- - # projects/foo/releases/prod | projects/foo/rulesets/uuid1234 - # projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 - # projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 - # Example 2: A filter of `name=prod* ruleset_name=uuid1234` would return only - # `Release` instances for 'projects/foo' with names prefixed with 'prod' - # referring to the same `Ruleset` name of 'uuid1234': - # Name | Ruleset Name - # ------------------------------|------------- - # projects/foo/releases/prod | projects/foo/rulesets/1234 - # projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 - # In the examples, the filter parameters refer to the search filters are - # relative to the project. Fully qualified prefixed may also be used. e.g. - # `test_suite_name=projects/foo/testsuites/uuid1` # @param [String] page_token - # Next page token for the next batch of `Release` instances. + # 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 fewer - # than `page_size` results due to the size of the output. To traverse all of - # the releases, the caller should iterate until the `page_token` on the - # response is empty. + # 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 @@ -206,22 +193,60 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::FirebaserulesV1::ListReleasesResponse] parsed result object + # @yieldparam result [Google::Apis::FirebaserulesV1::ListRulesetsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::FirebaserulesV1::ListReleasesResponse] + # @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_releases(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}/releases', options) - command.response_representation = Google::Apis::FirebaserulesV1::ListReleasesResponse::Representation - command.response_class = Google::Apis::FirebaserulesV1::ListReleasesResponse + 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['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['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) @@ -332,130 +357,10 @@ module Google execute_or_queue_command(command, &block) end - # Get a `Ruleset` by name including the full `Source` contents. + # Delete a `Release` by resource name. # @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`` + # Resource name for the `Release` to delete. + # Format: `projects/`project_id`/releases/`release_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -473,7 +378,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_ruleset(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_release(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 @@ -482,6 +387,101 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Get a `Release` by name. + # @param [String] name + # Resource name of the `Release`. + # Format: `projects/`project_id`/releases/`release_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::Release] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebaserulesV1::Release] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_release(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::FirebaserulesV1::Release::Representation + command.response_class = Google::Apis::FirebaserulesV1::Release + 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 the `Release` values for a project. This list may optionally be + # filtered by `Release` name, `Ruleset` name, `TestSuite` name, or any + # combination thereof. + # @param [String] name + # Resource name for the project. + # Format: `projects/`project_id`` + # @param [String] page_token + # Next page token for the next batch of `Release` 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 fewer + # than `page_size` results due to the size of the output. To traverse all of + # the releases, the caller should iterate until the `page_token` on the + # response is empty. + # @param [String] filter + # `Release` filter. The list method supports filters with restrictions on the + # `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. + # Example 1: A filter of 'name=prod*' might return `Release`s with names + # within 'projects/foo' prefixed with 'prod': + # Name | Ruleset Name + # ------------------------------|------------- + # projects/foo/releases/prod | projects/foo/rulesets/uuid1234 + # projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 + # projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 + # Example 2: A filter of `name=prod* ruleset_name=uuid1234` would return only + # `Release` instances for 'projects/foo' with names prefixed with 'prod' + # referring to the same `Ruleset` name of 'uuid1234': + # Name | Ruleset Name + # ------------------------------|------------- + # projects/foo/releases/prod | projects/foo/rulesets/1234 + # projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 + # In the examples, the filter parameters refer to the search filters are + # relative to the project. Fully qualified prefixed may also be used. e.g. + # `test_suite_name=projects/foo/testsuites/uuid1` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should 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::ListReleasesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebaserulesV1::ListReleasesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_releases(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/releases', options) + command.response_representation = Google::Apis::FirebaserulesV1::ListReleasesResponse::Representation + command.response_class = Google::Apis::FirebaserulesV1::ListReleasesResponse + 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 protected diff --git a/generated/google/apis/games_v1/classes.rb b/generated/google/apis/games_v1/classes.rb index b752eaf7b..97ccc262f 100644 --- a/generated/google/apis/games_v1/classes.rb +++ b/generated/google/apis/games_v1/classes.rb @@ -2754,6 +2754,7 @@ module Google # Device token supplied by an iOS system call to register for remote # notifications. Encode this field as web-safe base64. # Corresponds to the JSON property `apns_device_token` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :apns_device_token @@ -3022,6 +3023,7 @@ module Google # string. This is a developer-specified binary blob with size between 0 and 2 KB # before encoding. # Corresponds to the JSON property `completionRewardData` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :completion_reward_data @@ -4318,6 +4320,7 @@ module Google # The byte representation of the data (limited to 128 kB), as a Base64-encoded # string with the URL_SAFE encoding option. # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :data @@ -4353,6 +4356,7 @@ module Google # The byte representation of the data (limited to 128 kB), as a Base64-encoded # string with the URL_SAFE encoding option. # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :data diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index fbfb9cc50..7923f8a7c 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -27,6 +27,12 @@ module Google VERSION = 'V1' REVISION = '20170330' + # 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' @@ -35,12 +41,6 @@ module Google # View and manage Genomics data AUTH_GENOMICS = 'https://www.googleapis.com/auth/genomics' - - # 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' end end end diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index aebe9b7d5..937783c9f 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -22,357 +22,6 @@ module Google module Apis module GenomicsV1 - # An annotation set is a logical grouping of annotations that share consistent - # type information and provenance. Examples of annotation sets include 'all - # genes from refseq', and 'all variant annotations from ClinVar'. - class AnnotationSet - include Google::Apis::Core::Hashable - - # The ID of the reference set that defines the coordinate space for this - # set's annotations. - # Corresponds to the JSON property `referenceSetId` - # @return [String] - attr_accessor :reference_set_id - - # The type of annotations contained within this set. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # 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` - # @return [Hash>] - attr_accessor :info - - # The server-generated annotation set ID, unique across all annotation sets. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # 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 display name for this annotation set. - # 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) - @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) - @type = args[:type] if args.key?(:type) - @info = args[:info] if args.key?(:info) - @id = args[:id] if args.key?(:id) - @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) - 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. - # Corresponds to the JSON property `platformUnit` - # @return [String] - attr_accessor :platform_unit - - # 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 - # during sample preparation. - # Corresponds to the JSON property `libraryId` - # @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` - # @return [String] - attr_accessor :instrument_model - - def initialize(**args) - update!(**args) - end - - # 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) - end - end - - # 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. 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 - - # 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) - @export_uri = args[:export_uri] if args.key?(:export_uri) - @reference_names = args[:reference_names] if args.key?(:reference_names) - @project_id = args[:project_id] if args.key?(:project_id) - 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 [String] - 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 [String] - 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 [String] - 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 @@ -461,25 +110,6 @@ module Google class VariantAnnotation include Google::Apis::Core::Hashable - # 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` @@ -504,19 +134,38 @@ module Google # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @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) end end @@ -612,26 +261,6 @@ module Google class SearchAnnotationsRequest include Google::Apis::Core::Hashable - # 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 [String] - 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` @@ -660,19 +289,39 @@ module Google # @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 [String] + 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @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) end end @@ -680,11 +329,6 @@ module Google 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] @@ -696,15 +340,20 @@ module Google # @return [String] attr_accessor :end_time + # Optional time of when event started. + # 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) @description = args[:description] if args.key?(:description) @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) end end @@ -737,46 +386,6 @@ module Google end end - # - class SearchReferencesResponse - include Google::Apis::Core::Hashable - - # The matching references. - # Corresponds to the JSON property `references` - # @return [Array] - attr_accessor :references - - # 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) - @references = args[:references] if args.key?(:references) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - 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 @@ -797,6 +406,46 @@ 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 + + # + class SearchReferencesResponse + 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 references. + # Corresponds to the JSON property `references` + # @return [Array] + attr_accessor :references + + 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) + @references = args[:references] if args.key?(:references) + end + end + # class SearchAnnotationSetsRequest include Google::Apis::Core::Hashable @@ -857,6 +506,11 @@ module Google class SearchReadGroupSetsResponse include Google::Apis::Core::Hashable + # The list of matching read group sets. + # Corresponds to the JSON property `readGroupSets` + # @return [Array] + attr_accessor :read_group_sets + # 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. @@ -864,10 +518,43 @@ module Google # @return [String] attr_accessor :next_page_token - # The list of matching read group sets. - # Corresponds to the JSON property `readGroupSets` - # @return [Array] - attr_accessor :read_group_sets + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @read_group_sets = args[:read_group_sets] if args.key?(:read_group_sets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # 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) @@ -875,8 +562,9 @@ module Google # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @read_group_sets = args[:read_group_sets] if args.key?(:read_group_sets) + @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 @@ -884,12 +572,6 @@ module Google class SearchReferencesRequest include Google::Apis::Core::Hashable - # If present, return references for which the - # md5checksum matches exactly. - # Corresponds to the JSON property `md5checksums` - # @return [Array] - attr_accessor :md5checksums - # 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 @@ -916,56 +598,23 @@ module Google # @return [Fixnum] attr_accessor :page_size + # If present, return references 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) - @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) @page_size = args[:page_size] if args.key?(:page_size) - 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @mapping_quality = args[:mapping_quality] if args.key?(:mapping_quality) - @position = args[:position] if args.key?(:position) - @cigar = args[:cigar] if args.key?(:cigar) + @md5checksums = args[:md5checksums] if args.key?(:md5checksums) end end @@ -975,16 +624,6 @@ module Google class Dataset include Google::Apis::Core::Hashable - # The server-generated dataset ID, unique across all datasets. - # Corresponds to the JSON property `id` - # @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] @@ -995,16 +634,26 @@ module Google # @return [String] attr_accessor :project_id + # The server-generated dataset ID, unique across all datasets. + # Corresponds to the JSON property `id` + # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @id = args[:id] if args.key?(:id) - @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) end end @@ -1031,6 +680,13 @@ 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 @@ -1081,19 +737,13 @@ 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) @@ -1103,7 +753,6 @@ 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 @@ -1119,32 +768,22 @@ module Google class ReadGroupSet include Google::Apis::Core::Hashable - # A map of additional read group set information. - # Corresponds to the JSON property `info` - # @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 - # The dataset to which this read group set belongs. # Corresponds to the JSON property `datasetId` # @return [String] attr_accessor :dataset_id + # The filename of the original source file for this read group set, if any. + # Corresponds to the JSON property `filename` + # @return [String] + attr_accessor :filename + # The read groups in this set. There are typically 1-10 read groups in a read # group set. # Corresponds to the JSON property `readGroups` # @return [Array] attr_accessor :read_groups - # The filename of the original source file for this read group set, if any. - # Corresponds to the JSON property `filename` - # @return [String] - attr_accessor :filename - # The read group set name. By default this will be initialized to the sample # name of the sequenced data contained in this set. # Corresponds to the JSON property `name` @@ -1156,19 +795,29 @@ module Google # @return [String] attr_accessor :reference_set_id + # A map of additional read group set information. + # Corresponds to the JSON property `info` + # @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) - @info = args[:info] if args.key?(:info) - @id = args[:id] if args.key?(:id) @dataset_id = args[:dataset_id] if args.key?(:dataset_id) - @read_groups = args[:read_groups] if args.key?(:read_groups) @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 @@ -1176,6 +825,11 @@ module Google class SearchVariantSetsResponse include Google::Apis::Core::Hashable + # The variant sets belonging to the requested dataset. + # Corresponds to the JSON property `variantSets` + # @return [Array] + attr_accessor :variant_sets + # 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. @@ -1183,19 +837,14 @@ module Google # @return [String] attr_accessor :next_page_token - # The variant sets belonging to the requested dataset. - # Corresponds to the JSON property `variantSets` - # @return [Array] - attr_accessor :variant_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) @variant_sets = args[:variant_sets] if args.key?(:variant_sets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1353,18 +1002,6 @@ module Google class SearchCallSetsRequest include Google::Apis::Core::Hashable - # The maximum number of results to return in a single page. If unspecified, - # defaults to 1024. - # Corresponds to the JSON property `pageSize` - # @return [Fixnum] - attr_accessor :page_size - - # Restrict the query to call sets within the given variant sets. At least one - # ID must be provided. - # Corresponds to the JSON property `variantSetIds` - # @return [Array] - attr_accessor :variant_set_ids - # Only return call sets for which a substring of the name matches this # string. # Corresponds to the JSON property `name` @@ -1378,16 +1015,28 @@ module Google # @return [String] attr_accessor :page_token + # The maximum number of results to return in a single page. If unspecified, + # defaults to 1024. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # Restrict the query to call sets within the given variant sets. At least one + # ID must be provided. + # Corresponds to the JSON property `variantSetIds` + # @return [Array] + attr_accessor :variant_set_ids + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @page_size = args[:page_size] if args.key?(:page_size) - @variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids) @name = args[:name] if args.key?(:name) @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) + @variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids) end end @@ -1470,6 +1119,13 @@ module Google class Policy include Google::Apis::Core::Hashable + # 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 @@ -1480,6 +1136,7 @@ module Google # 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 @@ -1488,22 +1145,15 @@ module Google # @return [Fixnum] attr_accessor :version - # Associates a list of `members` to a `role`. - # Multiple `bindings` must not be specified for the same `role`. - # `bindings` with no members will result in an error. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) @etag = args[:etag] if args.key?(:etag) @version = args[:version] if args.key?(:version) - @bindings = args[:bindings] if args.key?(:bindings) end end @@ -1511,12 +1161,6 @@ module Google class SearchReadsRequest include Google::Apis::Core::Hashable - # The start position of the range on the reference, 0-based inclusive. If - # specified, `referenceName` must also be specified. - # Corresponds to the JSON property `start` - # @return [String] - attr_accessor :start - # The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to # `*`, only unmapped reads are returned. If unspecified, all reads (mapped # and unmapped) are returned. @@ -1558,19 +1202,25 @@ module Google # @return [Fixnum] attr_accessor :page_size + # The start position of the range on the reference, 0-based inclusive. If + # specified, `referenceName` must also be specified. + # Corresponds to the JSON property `start` + # @return [String] + attr_accessor :start + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @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) end end @@ -1596,20 +1246,6 @@ module Google class Annotation include Google::Apis::Core::Hashable - # 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. - # Corresponds to the JSON property `reverseStrand` - # @return [Boolean] - attr_accessor :reverse_strand - alias_method :reverse_strand?, :reverse_strand - - # The display name corresponding to the reference specified by - # `referenceId`, for example `chr1`, `1`, or `chrX`. - # Corresponds to the JSON property `referenceName` - # @return [String] - attr_accessor :reference_name - # 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` @@ -1666,14 +1302,26 @@ module Google # @return [String] attr_accessor :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. + # Corresponds to the JSON property `reverseStrand` + # @return [Boolean] + attr_accessor :reverse_strand + alias_method :reverse_strand?, :reverse_strand + + # The display name corresponding to the reference specified by + # `referenceId`, for example `chr1`, `1`, or `chrX`. + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand) - @reference_name = args[:reference_name] if args.key?(:reference_name) @info = args[:info] if args.key?(:info) @type = args[:type] if args.key?(:type) @end = args[:end] if args.key?(:end) @@ -1684,6 +1332,30 @@ module Google @variant = args[:variant] if args.key?(:variant) @reference_id = args[:reference_id] if args.key?(:reference_id) @id = args[:id] if args.key?(:id) + @reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand) + @reference_name = args[:reference_name] if args.key?(:reference_name) + end + end + + # Runtime metadata that will be populated in the + # runtimeMetadata + # field of the Operation associated with a RunPipeline execution. + class RuntimeMetadata + include Google::Apis::Core::Hashable + + # Describes a Compute Engine resource that is being managed by a running + # pipeline. + # Corresponds to the JSON property `computeEngine` + # @return [Google::Apis::GenomicsV1::ComputeEngine] + attr_accessor :compute_engine + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compute_engine = args[:compute_engine] if args.key?(:compute_engine) end end @@ -1776,28 +1448,6 @@ module Google end end - # Runtime metadata that will be populated in the - # runtimeMetadata - # field of the Operation associated with a RunPipeline execution. - class RuntimeMetadata - include Google::Apis::Core::Hashable - - # Describes a Compute Engine resource that is being managed by a running - # pipeline. - # Corresponds to the JSON property `computeEngine` - # @return [Google::Apis::GenomicsV1::ComputeEngine] - attr_accessor :compute_engine - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @compute_engine = args[:compute_engine] if args.key?(:compute_engine) - end - end - # The read group set import response. class ImportReadGroupSetsResponse include Google::Apis::Core::Hashable @@ -1824,21 +1474,6 @@ module Google class VariantCall include Google::Apis::Core::Hashable - # If this field is present, this variant call's genotype ordering implies - # the phase of the bases and is consistent with any other variant calls in - # the same reference sequence which have the same phaseset value. - # When importing data from VCF, if the genotype data was phased but no - # phase set was specified this field will be set to `*`. - # Corresponds to the JSON property `phaseset` - # @return [String] - attr_accessor :phaseset - - # A map of additional variant call 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 name of the call set this variant call belongs to. # Corresponds to the JSON property `callSetName` # @return [String] @@ -1875,18 +1510,33 @@ module Google # @return [Array] attr_accessor :genotype + # If this field is present, this variant call's genotype ordering implies + # the phase of the bases and is consistent with any other variant calls in + # the same reference sequence which have the same phaseset value. + # When importing data from VCF, if the genotype data was phased but no + # phase set was specified this field will be set to `*`. + # Corresponds to the JSON property `phaseset` + # @return [String] + attr_accessor :phaseset + + # A map of additional variant call 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @phaseset = args[:phaseset] if args.key?(:phaseset) - @info = args[:info] if args.key?(:info) @call_set_name = args[:call_set_name] if args.key?(:call_set_name) @genotype_likelihood = args[:genotype_likelihood] if args.key?(:genotype_likelihood) @call_set_id = args[:call_set_id] if args.key?(:call_set_id) @genotype = args[:genotype] if args.key?(:genotype) + @phaseset = args[:phaseset] if args.key?(:phaseset) + @info = args[:info] if args.key?(:info) end end @@ -1894,6 +1544,11 @@ module Google class SearchVariantsResponse include Google::Apis::Core::Hashable + # The list of matching Variants. + # Corresponds to the JSON property `variants` + # @return [Array] + attr_accessor :variants + # 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. @@ -1901,19 +1556,14 @@ module Google # @return [String] attr_accessor :next_page_token - # The list of matching 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) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @variants = args[:variants] if args.key?(:variants) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1921,6 +1571,11 @@ module Google class ListBasesResponse include Google::Apis::Core::Hashable + # A substring of the bases that make up this reference. + # Corresponds to the JSON property `sequence` + # @return [String] + attr_accessor :sequence + # The offset position (0-based) of the given `sequence` from the # start of this `Reference`. This value will differ for each page # in a paginated request. @@ -1935,20 +1590,15 @@ module Google # @return [String] attr_accessor :next_page_token - # A substring of the bases that make up this reference. - # Corresponds to the JSON property `sequence` - # @return [String] - attr_accessor :sequence - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @sequence = args[:sequence] if args.key?(:sequence) @offset = args[:offset] if args.key?(:offset) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @sequence = args[:sequence] if args.key?(:sequence) end end @@ -1994,12 +1644,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] @@ -2012,28 +1656,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) - end - end - - # - class UndeleteDatasetRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) + @details = args[:details] if args.key?(:details) end end @@ -2041,13 +1678,6 @@ 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 @@ -2066,14 +1696,34 @@ 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) - @role = args[:role] if args.key?(:role) @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # + class UndeleteDatasetRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) end end @@ -2081,11 +1731,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 [String] - attr_accessor :end - # The reference sequence name, for example `chr1`, # `1`, or `chrX`. # Corresponds to the JSON property `referenceName` @@ -2097,15 +1742,20 @@ module Google # @return [String] attr_accessor :start + # The end position of the range on the reference, 0-based exclusive. + # 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) - @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 @@ -2116,21 +1766,6 @@ module Google class VariantSet include Google::Apis::Core::Hashable - # 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] - attr_accessor :description - - # The dataset to which this variant set belongs. - # Corresponds to the JSON property `datasetId` - # @return [String] - attr_accessor :dataset_id - # User-specified, mutable name. # Corresponds to the JSON property `name` # @return [String] @@ -2160,19 +1795,34 @@ module Google # @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] + attr_accessor :description + + # The dataset to which this variant set belongs. + # Corresponds to the JSON property `datasetId` + # @return [String] + attr_accessor :dataset_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @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) end end @@ -2201,25 +1851,25 @@ module Google class ReferenceBound 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 + # An upper bound (inclusive) on the starting coordinate of any # variant in the reference sequence. # Corresponds to the JSON property `upperBound` # @return [String] attr_accessor :upper_bound - # The name of the reference associated with this reference bound. - # Corresponds to the JSON property `referenceName` - # @return [String] - attr_accessor :reference_name - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @upper_bound = args[:upper_bound] if args.key?(:upper_bound) @reference_name = args[:reference_name] if args.key?(:reference_name) + @upper_bound = args[:upper_bound] if args.key?(:upper_bound) end end @@ -2227,24 +1877,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 @@ -2261,6 +1911,17 @@ module Google class Variant include Google::Apis::Core::Hashable + # The ID of the variant set this variant belongs to. + # Corresponds to the JSON property `variantSetId` + # @return [String] + attr_accessor :variant_set_id + + # The reference on which this variant occurs. + # (such as `chr20` or `X`) + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + # A map of additional variant information. This must be of the form # map (string key mapping to a list of string values). # Corresponds to the JSON property `info` @@ -2273,15 +1934,21 @@ 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` + # A list of filters (normally quality filters) this variant has failed. + # `PASS` indicates this variant has passed all filters. + # Corresponds to the JSON property `filter` # @return [Array] - attr_accessor :alternate_bases + attr_accessor :filter # 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 @@ -2291,12 +1958,6 @@ module Google # @return [String] attr_accessor :end - # A list of filters (normally quality filters) this variant has failed. - # `PASS` indicates this variant has passed all filters. - # Corresponds to the JSON property `filter` - # @return [Array] - attr_accessor :filter - # The variant calls for this particular variant. Each one represents the # determination of genotype with respect to this variant. # Corresponds to the JSON property `calls` @@ -2325,36 +1986,25 @@ module Google # @return [String] attr_accessor :id - # The ID of the variant set this variant belongs to. - # Corresponds to the JSON property `variantSetId` - # @return [String] - attr_accessor :variant_set_id - - # The reference on which this variant occurs. - # (such as `chr20` or `X`) - # Corresponds to the JSON property `referenceName` - # @return [String] - attr_accessor :reference_name - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) + @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) - @names = args[:names] if args.key?(:names) @alternate_bases = args[:alternate_bases] if args.key?(:alternate_bases) - @end = args[:end] if args.key?(:end) + @names = args[:names] if args.key?(:names) @filter = args[:filter] if args.key?(:filter) + @end = args[:end] if args.key?(:end) @calls = args[:calls] if args.key?(:calls) @created = args[:created] if args.key?(:created) @start = args[:start] if args.key?(:start) @quality = args[:quality] if args.key?(:quality) @id = args[:id] if args.key?(:id) - @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) - @reference_name = args[:reference_name] if args.key?(:reference_name) end end @@ -2389,22 +2039,6 @@ module Google class SearchVariantsRequest include Google::Apis::Core::Hashable - # 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 [String] - attr_accessor :start - - # Only return variants which have exactly this name. - # Corresponds to the JSON property `variantName` - # @return [String] - attr_accessor :variant_name - - # Required. Only return variants in this reference sequence. - # Corresponds to the JSON property `referenceName` - # @return [String] - attr_accessor :reference_name - # At most one variant set ID must be provided. Only variants from this # variant set will be returned. If omitted, a call set id must be included in # the request. @@ -2446,21 +2080,37 @@ module Google # @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 [String] + attr_accessor :start + + # Only return variants which have exactly this name. + # Corresponds to the JSON property `variantName` + # @return [String] + attr_accessor :variant_name + + # Required. Only return variants in this reference sequence. + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @start = args[:start] if args.key?(:start) - @variant_name = args[:variant_name] if args.key?(:variant_name) - @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) + @reference_name = args[:reference_name] if args.key?(:reference_name) end end @@ -2541,6 +2191,12 @@ 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` @@ -2560,11 +2216,34 @@ module Google # @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) + @page_size = args[:page_size] if args.key?(:page_size) + end + end + + # + class SearchAnnotationsResponse + include Google::Apis::Core::Hashable + + # The matching annotations. + # Corresponds to the JSON property `annotations` + # @return [Array] + attr_accessor :annotations + + # 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) @@ -2572,15 +2251,13 @@ 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) - @page_size = args[:page_size] if args.key?(:page_size) - @dataset_ids = args[:dataset_ids] if args.key?(:dataset_ids) + @annotations = args[:annotations] if args.key?(:annotations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end - # - class SearchAnnotationsResponse + # The read search response. + class SearchReadsResponse include Google::Apis::Core::Hashable # The continuation token, which is used to page through large result sets. @@ -2590,10 +2267,13 @@ module Google # @return [String] attr_accessor :next_page_token - # The matching annotations. - # Corresponds to the JSON property `annotations` - # @return [Array] - attr_accessor :annotations + # 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) @@ -2602,7 +2282,7 @@ module Google # Update properties of this object def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @annotations = args[:annotations] if args.key?(:annotations) + @alignments = args[:alignments] if args.key?(:alignments) end end @@ -2610,6 +2290,12 @@ module Google 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] @@ -2626,52 +2312,16 @@ 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` - # @return [String] - attr_accessor :omim_id - 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) - @omim_id = args[:omim_id] if args.key?(:omim_id) - 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 :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @alignments = args[:alignments] if args.key?(:alignments) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2679,6 +2329,12 @@ module Google class Program include Google::Apis::Core::Hashable + # The display name of the program. This is typically the colloquial name of + # the tool used, for example 'bwa' or 'picard'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # The command line used to run this program. # Corresponds to the JSON property `commandLine` # @return [String] @@ -2700,11 +2356,35 @@ module Google # @return [String] attr_accessor :version - # The display name of the program. This is typically the colloquial name of - # the tool used, for example 'bwa' or 'picard'. - # 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) + @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) + @version = args[:version] if args.key?(:version) + end + end + + # A bucket over which read coverage has been precomputed. A bucket corresponds + # to a specific range of the reference sequence. + 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 def initialize(**args) update!(**args) @@ -2712,11 +2392,8 @@ module Google # Update properties of this object def update!(**args) - @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) - @version = args[:version] if args.key?(:version) - @name = args[:name] if args.key?(:name) + @range = args[:range] if args.key?(:range) + @mean_coverage = args[:mean_coverage] if args.key?(:mean_coverage) end end @@ -2758,33 +2435,6 @@ module Google end end - # A bucket over which read coverage has been precomputed. A bucket corresponds - # to a specific range of the reference sequence. - class CoverageBucket - include Google::Apis::Core::Hashable - - # 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) - end - end - # class ExternalId include Google::Apis::Core::Hashable @@ -2819,6 +2469,29 @@ module Google class Reference include Google::Apis::Core::Hashable + # 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] @@ -2835,42 +2508,19 @@ module Google # @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) + @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) @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 @@ -2881,6 +2531,12 @@ module Google class VariantSetMetadata include Google::Apis::Core::Hashable + # The number of values that can be included in a field described by this + # metadata. + # Corresponds to the JSON property `number` + # @return [String] + attr_accessor :number + # The value field for simple metadata # Corresponds to the JSON property `value` # @return [String] @@ -2893,12 +2549,6 @@ module Google # @return [String] attr_accessor :id - # The number of values that can be included in a field described by this - # metadata. - # Corresponds to the JSON property `number` - # @return [String] - attr_accessor :number - # The top-level key. # Corresponds to the JSON property `key` # @return [String] @@ -2909,31 +2559,31 @@ module Google # @return [String] attr_accessor :description - # 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 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) + @number = args[:number] if args.key?(:number) @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) - @type = args[:type] if args.key?(:type) @info = args[:info] if args.key?(:info) + @type = args[:type] if args.key?(:type) end end @@ -3174,6 +2824,57 @@ module Google class Read include Google::Apis::Core::Hashable + # 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] + attr_accessor :duplicate_fragment + alias_method :duplicate_fragment?, :duplicate_fragment + + # The read number in sequencing. 0-based and less than numberReads. This + # field replaces SAM flag 0x40 and 0x80. + # Corresponds to the JSON property `readNumber` + # @return [Fixnum] + attr_accessor :read_number + + # 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 + # shorter than the full read sequence and quality. This will occur if the + # alignment is part of a chimeric alignment, or if the read was trimmed. When + # this occurs, the CIGAR for this read will begin/end with a hard clip + # operator that will indicate the length of the excised sequence. + # Corresponds to the JSON property `alignedSequence` + # @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 + + # 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 `nextMatePosition` + # @return [Google::Apis::GenomicsV1::Position] + attr_accessor :next_mate_position + + # 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` + # @return [Hash>] + attr_accessor :info + # The orientation and the distance between reads from the fragment are # consistent with the sequencing protocol (SAM flag 0x2). # Corresponds to the JSON property `properPlacement` @@ -3226,17 +2927,17 @@ module Google # @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 - # 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 @@ -3253,80 +2954,29 @@ module Google # @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] - attr_accessor :duplicate_fragment - alias_method :duplicate_fragment?, :duplicate_fragment - - # The read number in sequencing. 0-based and less than numberReads. This - # field replaces SAM flag 0x40 and 0x80. - # Corresponds to the JSON property `readNumber` - # @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 - # shorter than the full read sequence and quality. This will occur if the - # alignment is part of a chimeric alignment, or if the read was trimmed. When - # this occurs, the CIGAR for this read will begin/end with a hard clip - # operator that will indicate the length of the excised sequence. - # Corresponds to the JSON property `alignedSequence` - # @return [String] - attr_accessor :aligned_sequence - - # 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` - # @return [Hash>] - attr_accessor :info - - # 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 `nextMatePosition` - # @return [Google::Apis::GenomicsV1::Position] - attr_accessor :next_mate_position - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) + @aligned_sequence = args[:aligned_sequence] if args.key?(:aligned_sequence) + @read_group_id = args[:read_group_id] if args.key?(:read_group_id) + @next_mate_position = args[:next_mate_position] if args.key?(:next_mate_position) + @info = args[:info] if args.key?(:info) @proper_placement = args[:proper_placement] if args.key?(:proper_placement) @supplementary_alignment = args[:supplementary_alignment] if args.key?(:supplementary_alignment) @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) @alignment = args[:alignment] if args.key?(:alignment) - @id = args[:id] if args.key?(:id) @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) - @info = args[:info] if args.key?(:info) - @next_mate_position = args[:next_mate_position] if args.key?(:next_mate_position) end end @@ -3362,40 +3012,6 @@ module Google end end - # A single CIGAR operation. - class CigarUnit - include Google::Apis::Core::Hashable - - # The number of genomic bases that the operation runs for. Required. - # Corresponds to the JSON property `operationLength` - # @return [String] - attr_accessor :operation_length - - # - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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 - # A reference set is a set of references which typically comprise a reference # assembly for a species, such as `GRCh38` which is representative # of the human genome. A reference set defines a common coordinate space for @@ -3472,6 +3088,391 @@ module Google @source_accessions = args[:source_accessions] if args.key?(:source_accessions) end end + + # A single CIGAR operation. + class CigarUnit + include Google::Apis::Core::Hashable + + # `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 [String] + attr_accessor :operation_length + + # + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reference_sequence = args[:reference_sequence] if args.key?(:reference_sequence) + @operation_length = args[:operation_length] if args.key?(:operation_length) + @operation = args[:operation] if args.key?(:operation) + 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 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 + + # The annotation ID of the gene from which this transcript is transcribed. + # Corresponds to the JSON property `geneId` + # @return [String] + attr_accessor :gene_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exons = args[:exons] if args.key?(:exons) + @coding_sequence = args[:coding_sequence] if args.key?(:coding_sequence) + @gene_id = args[:gene_id] if args.key?(:gene_id) + end + end + + # An annotation set is a logical grouping of annotations that share consistent + # type information and provenance. Examples of annotation sets include 'all + # genes from refseq', and 'all variant annotations from ClinVar'. + class AnnotationSet + include Google::Apis::Core::Hashable + + # The display name for this annotation set. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The ID of the reference set that defines the coordinate space for this + # set's annotations. + # Corresponds to the JSON property `referenceSetId` + # @return [String] + attr_accessor :reference_set_id + + # The type of annotations contained within this set. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # 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` + # @return [Hash>] + attr_accessor :info + + # The server-generated annotation set ID, unique across all annotation sets. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) + @type = args[:type] if args.key?(:type) + @info = args[:info] if args.key?(:info) + @id = args[:id] if args.key?(:id) + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @source_uri = args[:source_uri] if args.key?(:source_uri) + 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. + # Corresponds to the JSON property `platformUnit` + # @return [String] + attr_accessor :platform_unit + + # 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 + # during sample preparation. + # Corresponds to the JSON property `libraryId` + # @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` + # @return [String] + attr_accessor :instrument_model + + def initialize(**args) + update!(**args) + end + + # 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) + end + end + + # 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. 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 + + # 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) + @export_uri = args[:export_uri] if args.key?(:export_uri) + @reference_names = args[:reference_names] if args.key?(:reference_names) + @project_id = args[:project_id] if args.key?(:project_id) + 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 [String] + attr_accessor :start + + # 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 [String] + 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 + + 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) + @frame = args[:frame] if args.key?(:frame) + 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 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 [String] + attr_accessor :created + + # The sample ID this call set corresponds to. + # Corresponds to the JSON property `sampleId` + # @return [String] + attr_accessor :sample_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @sample_id = args[:sample_id] if args.key?(:sample_id) + end + end end end end diff --git a/generated/google/apis/genomics_v1/representations.rb b/generated/google/apis/genomics_v1/representations.rb index cb2490911..9f8c2be90 100644 --- a/generated/google/apis/genomics_v1/representations.rb +++ b/generated/google/apis/genomics_v1/representations.rb @@ -22,54 +22,6 @@ module Google module Apis module GenomicsV1 - class AnnotationSet - class Representation < Google::Apis::Core::JsonRepresentation; end - - 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 - - include Google::Apis::Core::JsonObjectSupport - end - - 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 @@ -118,7 +70,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SearchReferencesResponse + class TestIamPermissionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -130,7 +82,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsResponse + class SearchReferencesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -148,13 +100,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SearchReferencesRequest + class LinearAlignment class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class LinearAlignment + class SearchReferencesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -250,13 +202,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Operation + class RuntimeMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RuntimeMetadata + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -292,13 +244,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class UndeleteDatasetRequest + class Binding class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Binding + class UndeleteDatasetRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -370,13 +322,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ClinicalCondition + class SearchReadsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SearchReadsResponse + class ClinicalCondition class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -388,13 +340,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ComputeEngine + class CoverageBucket class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CoverageBucket + class ComputeEngine class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -454,104 +406,64 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CigarUnit - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ReferenceSet class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AnnotationSet - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :reference_set_id, as: 'referenceSetId' - property :type, as: 'type' - hash :info, as: 'info', :class => Array do - include Representable::JSON::Collection - items - end + class CigarUnit + class Representation < Google::Apis::Core::JsonRepresentation; end - property :id, as: 'id' - property :dataset_id, as: 'datasetId' - property :source_uri, as: 'sourceUri' - property :name, as: 'name' - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :coding_sequence, as: 'codingSequence', class: Google::Apis::GenomicsV1::CodingSequence, decorator: Google::Apis::GenomicsV1::CodingSequence::Representation + include Google::Apis::Core::JsonObjectSupport + end - end + class AnnotationSet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ExportReadGroupSetRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :export_uri, as: 'exportUri' - collection :reference_names, as: 'referenceNames' - property :project_id, as: 'projectId' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Exon - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end, as: 'end' - property :frame, as: 'frame' - property :start, as: 'start' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class CallSet - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :created, 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 @@ -577,14 +489,14 @@ module Google class VariantAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :clinical_significance, as: 'clinicalSignificance' - 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' + collection :conditions, as: 'conditions', class: Google::Apis::GenomicsV1::ClinicalCondition, decorator: Google::Apis::GenomicsV1::ClinicalCondition::Representation + + property :effect, as: 'effect' end end @@ -612,22 +524,22 @@ module Google class SearchAnnotationsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :reference_id, as: 'referenceId' - property :end, as: 'end' - property :page_token, as: 'pageToken' property :page_size, as: 'pageSize' property :start, as: 'start' collection :annotation_set_ids, as: 'annotationSetIds' property :reference_name, as: 'referenceName' + property :reference_id, as: 'referenceId' + property :end, as: 'end' + property :page_token, as: 'pageToken' end end class OperationEvent # @private class Representation < Google::Apis::Core::JsonRepresentation - property :start_time, as: 'startTime' property :description, as: 'description' property :end_time, as: 'endTime' + property :start_time, as: 'startTime' end end @@ -639,12 +551,10 @@ module Google end end - class SearchReferencesResponse + class TestIamPermissionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :references, as: 'references', class: Google::Apis::GenomicsV1::Reference, decorator: Google::Apis::GenomicsV1::Reference::Representation - - property :next_page_token, as: 'nextPageToken' + collection :permissions, as: 'permissions' end end @@ -654,10 +564,12 @@ module Google end end - class TestIamPermissionsResponse + class SearchReferencesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' + property :next_page_token, as: 'nextPageToken' + collection :references, as: 'references', class: Google::Apis::GenomicsV1::Reference, decorator: Google::Apis::GenomicsV1::Reference::Representation + end end @@ -676,41 +588,41 @@ module Google class SearchReadGroupSetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :read_group_sets, as: 'readGroupSets', class: Google::Apis::GenomicsV1::ReadGroupSet, decorator: Google::Apis::GenomicsV1::ReadGroupSet::Representation - 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' - property :page_size, as: 'pageSize' + property :next_page_token, as: 'nextPageToken' end end class LinearAlignment # @private class Representation < Google::Apis::Core::JsonRepresentation - property :mapping_quality, as: 'mappingQuality' 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 :accessions, as: 'accessions' + property :page_token, as: 'pageToken' + property :reference_set_id, as: 'referenceSetId' + property :page_size, as: 'pageSize' + collection :md5checksums, as: 'md5checksums' end end class Dataset # @private class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :create_time, as: 'createTime' property :name, as: 'name' property :project_id, as: 'projectId' + property :id, as: 'id' + property :create_time, as: 'createTime' end end @@ -724,6 +636,7 @@ 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' @@ -739,34 +652,33 @@ module Google items end - property :id, as: 'id' end end class ReadGroupSet # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 + + property :name, as: 'name' + property :reference_set_id, as: 'referenceSetId' hash :info, as: 'info', :class => Array do include Representable::JSON::Collection items end property :id, as: 'id' - property :dataset_id, as: 'datasetId' - collection :read_groups, as: 'readGroups', class: Google::Apis::GenomicsV1::ReadGroup, decorator: Google::Apis::GenomicsV1::ReadGroup::Representation - - property :filename, as: 'filename' - property :name, as: 'name' - property :reference_set_id, as: 'referenceSetId' end end class SearchVariantSetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :variant_sets, as: 'variantSets', class: Google::Apis::GenomicsV1::VariantSet, decorator: Google::Apis::GenomicsV1::VariantSet::Representation + property :next_page_token, as: 'nextPageToken' end end @@ -807,10 +719,10 @@ module Google class SearchCallSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :page_size, as: 'pageSize' - collection :variant_set_ids, as: 'variantSetIds' property :name, as: 'name' property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + collection :variant_set_ids, as: 'variantSetIds' end end @@ -827,23 +739,23 @@ module Google 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::GenomicsV1::Binding, decorator: Google::Apis::GenomicsV1::Binding::Representation + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' end end class SearchReadsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :start, as: 'start' property :reference_name, as: 'referenceName' collection :read_group_set_ids, as: 'readGroupSetIds' collection :read_group_ids, as: 'readGroupIds' property :end, as: 'end' property :page_token, as: 'pageToken' property :page_size, as: 'pageSize' + property :start, as: 'start' end end @@ -856,8 +768,6 @@ module Google class Annotation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :reverse_strand, as: 'reverseStrand' - property :reference_name, as: 'referenceName' hash :info, as: 'info', :class => Array do include Representable::JSON::Collection items @@ -874,6 +784,16 @@ module Google property :reference_id, as: 'referenceId' property :id, as: 'id' + property :reverse_strand, as: 'reverseStrand' + property :reference_name, as: 'referenceName' + end + end + + class RuntimeMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compute_engine, as: 'computeEngine', class: Google::Apis::GenomicsV1::ComputeEngine, decorator: Google::Apis::GenomicsV1::ComputeEngine::Representation + end end @@ -889,14 +809,6 @@ module Google end end - class RuntimeMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :compute_engine, as: 'computeEngine', class: Google::Apis::GenomicsV1::ComputeEngine, decorator: Google::Apis::GenomicsV1::ComputeEngine::Representation - - end - end - class ImportReadGroupSetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -907,43 +819,51 @@ module Google class VariantCall # @private class Representation < Google::Apis::Core::JsonRepresentation + property :call_set_name, as: 'callSetName' + collection :genotype_likelihood, as: 'genotypeLikelihood' + property :call_set_id, as: 'callSetId' + collection :genotype, as: 'genotype' property :phaseset, as: 'phaseset' hash :info, as: 'info', :class => Array do include Representable::JSON::Collection items end - property :call_set_name, as: 'callSetName' - collection :genotype_likelihood, as: 'genotypeLikelihood' - property :call_set_id, as: 'callSetId' - collection :genotype, as: 'genotype' end end class SearchVariantsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation + property :next_page_token, as: 'nextPageToken' end end class ListBasesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :sequence, as: 'sequence' property :offset, as: 'offset' property :next_page_token, as: 'nextPageToken' - property :sequence, as: 'sequence' 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 Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :members, as: 'members' + property :role, as: 'role' end end @@ -953,35 +873,27 @@ module Google end end - class Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :role, as: 'role' - collection :members, as: 'members' - end - end - class Range # @private class Representation < Google::Apis::Core::JsonRepresentation - property :end, as: 'end' property :reference_name, as: 'referenceName' property :start, as: 'start' + property :end, as: 'end' end end class VariantSet # @private class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - 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' end end @@ -996,41 +908,41 @@ module Google class ReferenceBound # @private class Representation < Google::Apis::Core::JsonRepresentation - property :upper_bound, as: 'upperBound' property :reference_name, as: 'referenceName' + property :upper_bound, as: 'upperBound' end end class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation - property :next_page_token, as: 'nextPageToken' end end class Variant # @private class Representation < Google::Apis::Core::JsonRepresentation + property :variant_set_id, as: 'variantSetId' + property :reference_name, as: 'referenceName' hash :info, as: 'info', :class => Array do include Representable::JSON::Collection items end property :reference_bases, as: 'referenceBases' - collection :names, as: 'names' collection :alternate_bases, as: 'alternateBases' - property :end, as: 'end' + collection :names, as: 'names' collection :filter, as: 'filter' + property :end, as: 'end' collection :calls, as: 'calls', class: Google::Apis::GenomicsV1::VariantCall, decorator: Google::Apis::GenomicsV1::VariantCall::Representation property :created, as: 'created' property :start, as: 'start' property :quality, as: 'quality' property :id, as: 'id' - property :variant_set_id, as: 'variantSetId' - property :reference_name, as: 'referenceName' end end @@ -1046,15 +958,15 @@ module Google class SearchVariantsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :start, as: 'start' - property :variant_name, as: 'variantName' - property :reference_name, as: 'referenceName' collection :variant_set_ids, as: 'variantSetIds' property :end, 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, as: 'start' + property :variant_name, as: 'variantName' + property :reference_name, as: 'referenceName' end end @@ -1077,50 +989,59 @@ module Google class SearchReadGroupSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :dataset_ids, as: 'datasetIds' property :name, as: 'name' property :page_token, as: 'pageToken' property :page_size, as: 'pageSize' - collection :dataset_ids, as: 'datasetIds' end end class SearchAnnotationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :annotations, as: 'annotations', class: Google::Apis::GenomicsV1::Annotation, decorator: Google::Apis::GenomicsV1::Annotation::Representation + property :next_page_token, as: 'nextPageToken' + 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 class Program # @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 :version, as: 'version' - property :name, as: 'name' + end + end + + class CoverageBucket + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :range, as: 'range', class: Google::Apis::GenomicsV1::Range, decorator: Google::Apis::GenomicsV1::Range::Representation + + property :mean_coverage, as: 'meanCoverage' end end @@ -1134,15 +1055,6 @@ module Google end end - 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 - - end - end - class ExternalId # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1154,30 +1066,30 @@ module Google class Reference # @private class Representation < Google::Apis::Core::JsonRepresentation + 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, 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 VariantSetMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation + property :number, as: 'number' property :value, as: 'value' property :id, as: 'id' - property :number, as: 'number' property :key, as: 'key' property :description, as: 'description' - property :type, as: 'type' hash :info, as: 'info', :class => Array do include Representable::JSON::Collection items end + property :type, as: 'type' end end @@ -1222,6 +1134,18 @@ module Google class Read # @private class Representation < Google::Apis::Core::JsonRepresentation + property :read_group_set_id, as: 'readGroupSetId' + property :duplicate_fragment, as: 'duplicateFragment' + property :read_number, as: 'readNumber' + property :aligned_sequence, as: 'alignedSequence' + property :read_group_id, as: 'readGroupId' + property :next_mate_position, as: 'nextMatePosition', class: Google::Apis::GenomicsV1::Position, decorator: Google::Apis::GenomicsV1::Position::Representation + + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + property :proper_placement, as: 'properPlacement' property :supplementary_alignment, as: 'supplementaryAlignment' property :fragment_length, as: 'fragmentLength' @@ -1229,22 +1153,10 @@ module Google collection :aligned_quality, as: 'alignedQuality' property :alignment, as: 'alignment', class: Google::Apis::GenomicsV1::LinearAlignment, decorator: Google::Apis::GenomicsV1::LinearAlignment::Representation - property :id, as: 'id' 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' - hash :info, as: 'info', :class => Array do - include Representable::JSON::Collection - items - end - - property :next_mate_position, as: 'nextMatePosition', class: Google::Apis::GenomicsV1::Position, decorator: Google::Apis::GenomicsV1::Position::Representation - end end @@ -1257,15 +1169,6 @@ module Google end end - class CigarUnit - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :operation_length, as: 'operationLength' - property :operation, as: 'operation' - property :reference_sequence, as: 'referenceSequence' - end - end - class ReferenceSet # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1279,6 +1182,103 @@ module Google collection :source_accessions, as: 'sourceAccessions' end end + + class CigarUnit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reference_sequence, as: 'referenceSequence' + property :operation_length, as: 'operationLength' + property :operation, as: 'operation' + end + end + + class Transcript + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + property :gene_id, as: 'geneId' + end + end + + class AnnotationSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :reference_set_id, as: 'referenceSetId' + property :type, as: 'type' + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + property :id, as: 'id' + property :dataset_id, as: 'datasetId' + property :source_uri, as: 'sourceUri' + 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' + end + 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 + + property :next_page_token, as: 'nextPageToken' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class ExportReadGroupSetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :export_uri, as: 'exportUri' + collection :reference_names, as: 'referenceNames' + property :project_id, as: 'projectId' + end + end + + class Exon + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :start, as: 'start' + property :end, as: 'end' + property :frame, as: 'frame' + end + end + + class CallSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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, as: 'created' + property :sample_id, as: 'sampleId' + end + end end end end diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index 3c9ae4ed6..e6f39e20a 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -46,6 +46,83 @@ module Google super('https://genomics.googleapis.com/', '') 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 + + # 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 + # 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 @@ -123,39 +200,6 @@ module Google 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 @@ -201,13 +245,12 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a read group set. + # 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 to be deleted. The caller must have WRITE - # permissions to the dataset associated with this read group set. + # 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. @@ -217,67 +260,24 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::GenomicsV1::Empty] + # @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 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 + 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 - # 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 - # 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. @@ -398,6 +398,75 @@ module Google 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 + # Updates a call set. # For the definitions of call sets and other genomics resources, see # [Fundamentals of Google @@ -507,12 +576,14 @@ module Google 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. + # Creates a new annotation set. Caller must have WRITE permission for the + # associated dataset. + # The following fields are required: + # * datasetId + # * referenceSetId + # 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] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -522,55 +593,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::GenomicsV1::Empty] + # @return [Google::Apis::GenomicsV1::AnnotationSet] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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 + def create_annotation_set(annotation_set_object = nil, quota_user: nil, fields: 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? execute_or_queue_command(command, &block) @@ -714,14 +750,12 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new annotation set. Caller must have WRITE permission for the - # associated dataset. - # The following fields are required: - # * datasetId - # * referenceSetId - # 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 + # Deletes a variant. + # For the definitions of variants and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] variant_id + # The ID of the variant to be deleted. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -731,20 +765,63 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::GenomicsV1::AnnotationSet] + # @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 create_annotation_set(annotation_set_object = nil, quota_user: nil, fields: 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 + def delete_variant(variant_id, quota_user: nil, fields: 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? + execute_or_queue_command(command, &block) + end + + # Creates variant data by asynchronously importing the provided information. + # For the definitions of variant sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # The variants for import will be merged with any existing variant that + # matches its reference sequence, start, end, reference bases, and + # alternative bases. If no such variant exists, a new one will be created. + # When variants are merged, the call information from the new variant + # is added to the existing variant, and Variant info fields are merged + # as specified in + # infoMergeConfig. + # As a special case, for single-sample VCF files, QUAL and FILTER fields will + # be moved to the call level; these are sometimes interpreted in a + # call-specific context. + # Imported VCF headers are appended to the metadata already in a variant set. + # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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_variants(import_variants_request_object = nil, quota_user: nil, fields: 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? execute_or_queue_command(command, &block) @@ -861,83 +938,6 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a variant. - # For the definitions of variants and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] variant_id - # The ID of the variant to be deleted. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not 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_variant(variant_id, quota_user: nil, fields: 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? - execute_or_queue_command(command, &block) - end - - # Creates variant data by asynchronously importing the provided information. - # For the definitions of variant sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # The variants for import will be merged with any existing variant that - # matches its reference sequence, start, end, reference bases, and - # alternative bases. If no such variant exists, a new one will be created. - # When variants are merged, the call information from the new variant - # is added to the existing variant, and Variant info fields are merged - # as specified in - # infoMergeConfig. - # As a special case, for single-sample VCF files, QUAL and FILTER fields will - # be moved to the call level; these are sometimes interpreted in a - # call-specific context. - # Imported VCF headers are appended to the metadata already in a variant set. - # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not 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_variants(import_variants_request_object = nil, quota_user: nil, fields: 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? - execute_or_queue_command(command, &block) - end - # Creates a new variant. # For the definitions of variants and other genomics resources, see # [Fundamentals of Google @@ -1165,8 +1165,6 @@ module Google # 5.1/src/main/resources/avro/referencemethods.avdl#L221). # @param [String] reference_id # The ID of the reference. - # @param [String] start_position - # The start position (0-based) of this query. Defaults to 0. # @param [String] end_position # The end position (0-based, exclusive) of this query. Defaults to the length # of this reference. @@ -1178,6 +1176,8 @@ module Google # The maximum number of bases to return in a single page. If unspecified, # defaults to 200Kbp (kilo base pairs). The maximum value is 10Mbp (mega base # pairs). + # @param [String] start_position + # The start position (0-based) of this query. Defaults to 0. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -1195,15 +1195,55 @@ 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, start_position: nil, end_position: nil, page_token: nil, page_size: 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, quota_user: nil, fields: 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 command.params['referenceId'] = reference_id unless reference_id.nil? - command.query['start'] = start_position unless start_position.nil? command.query['end'] = end_position unless end_position.nil? 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 + + # Gets the access control policy for the dataset. This is empty if the + # policy or resource does not exist. + # See Getting a + # Policy for more information. + # For the definitions of datasets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] resource + # REQUIRED: The resource for which policy is being specified. Format is + # `datasets/`. + # @param [Google::Apis::GenomicsV1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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 get_dataset_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::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? execute_or_queue_command(command, &block) @@ -1403,15 +1443,15 @@ module Google # 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] 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 50. The maximum value is 1024. # @param [String] project_id # Required. The Google Cloud project ID to list datasets for. + # @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 [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -1429,13 +1469,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_datasets(page_token: nil, page_size: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_datasets(page_size: nil, project_id: nil, page_token: nil, quota_user: nil, fields: 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['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) @@ -1514,17 +1554,13 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for the dataset. This is empty if the - # policy or resource does not exist. - # See Getting a - # Policy for more information. - # For the definitions of datasets and other genomics resources, see + # 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] resource - # REQUIRED: The resource for which policy is being specified. Format is - # `datasets/`. - # @param [Google::Apis::GenomicsV1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] 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. @@ -1534,21 +1570,19 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::GenomicsV1::Policy] + # @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 get_dataset_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::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? + 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) @@ -1740,13 +1774,23 @@ module Google 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. + # 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. @@ -1756,19 +1800,61 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::GenomicsV1::Empty] + # @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 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? + 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 + + # 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) @@ -1914,23 +2000,13 @@ module Google 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 + # 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. @@ -1940,61 +2016,21 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::GenomicsV1::Annotation] + # @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 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 - - # 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 + 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) @@ -2003,6 +2039,9 @@ module Google # Lists operations that match the specified filter in the request. # @param [String] name # The name of the operation collection. + # @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: @@ -2022,9 +2061,6 @@ module Google # * `projectId = my-project AND labels.color = red` # @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] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -2042,14 +2078,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_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: 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::GenomicsV1::ListOperationsResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? command.query['filter'] = filter unless filter.nil? command.query['pageToken'] = page_token unless page_token.nil? - command.query['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) @@ -2087,42 +2123,6 @@ module Google 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 diff --git a/generated/google/apis/gmail_v1/classes.rb b/generated/google/apis/gmail_v1/classes.rb index 4e927c992..b7d194837 100644 --- a/generated/google/apis/gmail_v1/classes.rb +++ b/generated/google/apis/gmail_v1/classes.rb @@ -812,6 +812,7 @@ module Google # Returned in messages.get and drafts.get responses when the format=RAW # parameter is supplied. # Corresponds to the JSON property `raw` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :raw @@ -925,6 +926,7 @@ module Google # is sent as a separate attachment. An attachment ID is present if the body data # is contained in a separate attachment. # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :data @@ -1215,6 +1217,7 @@ module Google # PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set # appropriately. # Corresponds to the JSON property `pkcs12` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :pkcs12 diff --git a/generated/google/apis/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index 755bb14df..f16ed13d5 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -22,6 +22,125 @@ module Google module Apis module IamV1 + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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 @@ -62,66 +181,17 @@ module Google end end - # 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. - class ServiceAccount + # The grantable role query request. + class QueryGrantableRolesRequest include Google::Apis::Core::Hashable - # 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 - # from the `account` and the `account` value can be the `email` address or - # the `unique_id` of the service account. - # In responses the resource name will always be in the format - # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. - # Corresponds to the JSON property `name` + # Required. The full resource name to query from the list of grantable roles. + # The name follows the Google Cloud Platform resource format. + # For example, a Cloud Platform project with id `my-project` will be named + # `//cloudresourcemanager.googleapis.com/projects/my-project`. + # Corresponds to the JSON property `fullResourceName` # @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] - attr_accessor :project_id - - # @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. - # Corresponds to the JSON property `oauth2ClientId` - # @return [String] - attr_accessor :oauth2_client_id - - # Optional. A user-specified description of the service account. Must be - # fewer than 100 UTF-8 bytes. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Used to perform a consistent read-modify-write. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag + attr_accessor :full_resource_name def initialize(**args) update!(**args) @@ -129,13 +199,7 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] if args.key?(:name) - @email = args[:email] if args.key?(:email) - @project_id = args[:project_id] if args.key?(:project_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) + @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) end end @@ -158,17 +222,67 @@ module Google end end - # The grantable role query request. - class QueryGrantableRolesRequest + # 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. + class ServiceAccount include Google::Apis::Core::Hashable - # Required. The full resource name to query from the list of grantable roles. - # The name follows the Google Cloud Platform resource format. - # For example, a Cloud Platform project with id `my-project` will be named - # `//cloudresourcemanager.googleapis.com/projects/my-project`. - # Corresponds to the JSON property `fullResourceName` + # @OutputOnly The id of the project that owns the service account. + # Corresponds to the JSON property `projectId` # @return [String] - attr_accessor :full_resource_name + attr_accessor :project_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. + # Corresponds to the JSON property `oauth2ClientId` + # @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` + # @return [String] + attr_accessor :display_name + + # Used to perform a consistent read-modify-write. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @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 + # from the `account` and the `account` value can be the `email` address or + # the `unique_id` of the service account. + # In responses the resource name will always be in the format + # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name def initialize(**args) update!(**args) @@ -176,7 +290,13 @@ module Google # Update properties of this object def update!(**args) - @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) + @project_id = args[:project_id] if args.key?(:project_id) + @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) + @unique_id = args[:unique_id] if args.key?(:unique_id) + @display_name = args[:display_name] if args.key?(:display_name) + @etag = args[:etag] if args.key?(:etag) + @email = args[:email] if args.key?(:email) + @name = args[:name] if args.key?(:name) end end @@ -237,11 +357,13 @@ module Google # The private key data. Only provided in `CreateServiceAccountKey` # responses. # Corresponds to the JSON property `privateKeyData` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :private_key_data # The public key data. Only provided in `GetServiceAccountKey` responses. # Corresponds to the JSON property `publicKeyData` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :public_key_data @@ -261,6 +383,11 @@ module Google # @return [String] attr_accessor :key_algorithm + # The key can be used after this timestamp. + # Corresponds to the JSON property `validAfterTime` + # @return [String] + attr_accessor :valid_after_time + # The output format for the private key. # Only provided in `CreateServiceAccountKey` responses, not # in `GetServiceAccountKey` or `ListServiceAccountKey` responses. @@ -270,11 +397,6 @@ module Google # @return [String] attr_accessor :private_key_type - # The key can be used after this timestamp. - # Corresponds to the JSON property `validAfterTime` - # @return [String] - attr_accessor :valid_after_time - def initialize(**args) update!(**args) end @@ -286,8 +408,8 @@ module Google @name = args[:name] if args.key?(:name) @valid_before_time = args[:valid_before_time] if args.key?(:valid_before_time) @key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm) - @private_key_type = args[:private_key_type] if args.key?(:private_key_type) @valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time) + @private_key_type = args[:private_key_type] if args.key?(:private_key_type) end end @@ -319,6 +441,54 @@ module Google 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 + + # The service account sign blob response. + class SignBlobResponse + include Google::Apis::Core::Hashable + + # The signed blob. + # Corresponds to the JSON property `signature` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :signature + + # The id of the key used to sign the blob. + # 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) + @signature = args[:signature] if args.key?(:signature) + @key_id = args[:key_id] if args.key?(:key_id) + end + end + # The service account sign JWT response. class SignJwtResponse include Google::Apis::Core::Hashable @@ -344,53 +514,6 @@ module Google end end - # The service account sign blob response. - class SignBlobResponse - include Google::Apis::Core::Hashable - - # The signed blob. - # Corresponds to the JSON property `signature` - # @return [String] - attr_accessor :signature - - # The id of the key used to sign the blob. - # 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) - @signature = args[:signature] if args.key?(:signature) - @key_id = args[:key_id] if args.key?(:key_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 - # 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 @@ -420,11 +543,6 @@ 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 - # 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. @@ -442,18 +560,24 @@ module Google # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @version = args[:version] if args.key?(:version) @bindings = args[:bindings] if args.key?(:bindings) @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) end end @@ -502,13 +626,6 @@ module Google class BindingDelta include Google::Apis::Core::Hashable - # A single identity requesting access for a Cloud Platform resource. - # Follows the same format of Binding.members. - # Required - # Corresponds to the JSON property `member` - # @return [String] - attr_accessor :member - # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. # Required @@ -522,15 +639,22 @@ module Google # @return [String] attr_accessor :action + # A single identity requesting access for a Cloud Platform resource. + # Follows the same format of Binding.members. + # Required + # Corresponds to the JSON property `member` + # @return [String] + attr_accessor :member + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @member = args[:member] if args.key?(:member) @role = args[:role] if args.key?(:role) @action = args[:action] if args.key?(:action) + @member = args[:member] if args.key?(:member) end end @@ -553,6 +677,47 @@ module Google 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 service account list response. class ListServiceAccountsResponse include Google::Apis::Core::Hashable @@ -579,165 +744,6 @@ module Google @accounts = args[:accounts] if args.key?(:accounts) end end - - # 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 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @roles = args[:roles] if args.key?(:roles) - 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 - - # The service account sign blob request. - class SignBlobRequest - include Google::Apis::Core::Hashable - - # The bytes to sign. - # Corresponds to the JSON property `bytesToSign` - # @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 - - # 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 3d5cada61..76c70a4b0 100644 --- a/generated/google/apis/iam_v1/representations.rb +++ b/generated/google/apis/iam_v1/representations.rb @@ -22,13 +22,37 @@ module Google module Apis module IamV1 + 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 include Google::Apis::Core::JsonObjectSupport end - class ServiceAccount + class QueryGrantableRolesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -40,7 +64,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class QueryGrantableRolesRequest + class ServiceAccount class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -70,7 +94,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SignJwtResponse + class TestIamPermissionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -82,7 +106,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsRequest + class SignJwtResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -118,40 +142,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListServiceAccountsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CreateServiceAccountRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class QueryGrantableRolesResponse + class ListServiceAccountsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Role - class Representation < Google::Apis::Core::JsonRepresentation; 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 - include Google::Apis::Core::JsonObjectSupport + end end class SignBlobRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bytes_to_sign, :base64 => true, as: 'bytesToSign' + end + end - include Google::Apis::Core::JsonObjectSupport + class Role + # @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 @@ -162,16 +194,10 @@ module Google end end - class ServiceAccount + class QueryGrantableRolesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :email, as: 'email' - property :project_id, as: 'projectId' - property :unique_id, as: 'uniqueId' - property :oauth2_client_id, as: 'oauth2ClientId' - property :display_name, as: 'displayName' - property :etag, :base64 => true, as: 'etag' + property :full_resource_name, as: 'fullResourceName' end end @@ -181,10 +207,16 @@ module Google end end - class QueryGrantableRolesRequest + class ServiceAccount # @private class Representation < Google::Apis::Core::JsonRepresentation - property :full_resource_name, as: 'fullResourceName' + property :project_id, as: 'projectId' + property :oauth2_client_id, as: 'oauth2ClientId' + property :unique_id, as: 'uniqueId' + property :display_name, as: 'displayName' + property :etag, :base64 => true, as: 'etag' + property :email, as: 'email' + property :name, as: 'name' end end @@ -211,8 +243,8 @@ module Google property :name, as: 'name' property :valid_before_time, as: 'validBeforeTime' property :key_algorithm, as: 'keyAlgorithm' - property :private_key_type, as: 'privateKeyType' property :valid_after_time, as: 'validAfterTime' + property :private_key_type, as: 'privateKeyType' end end @@ -224,11 +256,10 @@ module Google end end - class SignJwtResponse + class TestIamPermissionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :key_id, as: 'keyId' - property :signed_jwt, as: 'signedJwt' + collection :permissions, as: 'permissions' end end @@ -240,20 +271,21 @@ module Google end end - class TestIamPermissionsRequest + class SignJwtResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' + property :key_id, as: 'keyId' + property :signed_jwt, as: 'signedJwt' end end class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version' collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' end end @@ -275,9 +307,9 @@ module Google class BindingDelta # @private class Representation < Google::Apis::Core::JsonRepresentation - property :member, as: 'member' property :role, as: 'role' property :action, as: 'action' + property :member, as: 'member' end end @@ -289,6 +321,15 @@ module Google 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 ListServiceAccountsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -297,47 +338,6 @@ module Google end 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 - - 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 - - end - end - - class Role - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :title, as: 'title' - property :name, as: 'name' - property :description, as: 'description' - end - end - - class SignBlobRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bytes_to_sign, :base64 => true, as: 'bytesToSign' - 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 52415dd34..c76179453 100644 --- a/generated/google/apis/iam_v1/service.rb +++ b/generated/google/apis/iam_v1/service.rb @@ -48,82 +48,6 @@ module Google super('https://iam.googleapis.com/', '') 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` . - # The `etag` is mandatory. - # @param [String] name - # 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 - # from the `account` and the `account` value can be the `email` address or - # the `unique_id` of the service account. - # In responses the resource name will always be in the format - # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. - # @param [Google::Apis::IamV1::ServiceAccount] service_account_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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 update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1/{+name}', options) - command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation - command.request_object = service_account_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 - # Tests the specified permissions against the IAM access control policy # for a ServiceAccount. # @param [String] resource @@ -193,47 +117,6 @@ module Google 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 - # accounts, such as `projects/my-project-123`. - # @param [String] page_token - # Optional pagination token returned in an earlier - # ListServiceAccountsResponse.next_page_token. - # @param [Fixnum] page_size - # Optional limit on the number of service accounts to include in the - # response. Further accounts can subsequently be obtained by including the - # ListServiceAccountsResponse.next_page_token - # in a subsequent 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::IamV1::ListServiceAccountsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::IamV1::ListServiceAccountsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @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_accounts(name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options) - command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation - command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse - 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - 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: @@ -271,12 +154,18 @@ module Google execute_or_queue_command(command, &block) end - # Creates a ServiceAccount - # and returns it. + # Lists ServiceAccounts for a project. # @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 [Fixnum] page_size + # Optional limit on the number of service accounts to include in the + # response. Further accounts can subsequently be obtained by including the + # ListServiceAccountsResponse.next_page_token + # in a subsequent request. + # @param [String] page_token + # Optional pagination token returned in an earlier + # ListServiceAccountsResponse.next_page_token. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -286,21 +175,21 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object + # @yieldparam result [Google::Apis::IamV1::ListServiceAccountsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::IamV1::ServiceAccount] + # @return [Google::Apis::IamV1::ListServiceAccountsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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 + def list_project_service_accounts(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options) + command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation + command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -381,6 +270,41 @@ 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 + # Returns the IAM access control policy for a # ServiceAccount. # @param [String] resource @@ -413,6 +337,82 @@ module Google 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` . + # The `etag` is mandatory. + # @param [String] name + # 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 + # from the `account` and the `account` value can be the `email` address or + # the `unique_id` of the service account. + # In responses the resource name will always be in the format + # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. + # @param [Google::Apis::IamV1::ServiceAccount] service_account_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @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 update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation + command.request_object = service_account_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 + # Deletes a ServiceAccountKey. # @param [String] name # The resource name of the service account key in the following format: diff --git a/generated/google/apis/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index ffdae51f5..b609e3318 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -1018,6 +1018,7 @@ module Google # The salt separator. # Corresponds to the JSON property `saltSeparator` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :salt_separator @@ -1030,6 +1031,7 @@ module Google # The key for to hash the password. # Corresponds to the JSON property `signerKey` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :signer_key @@ -1503,6 +1505,7 @@ module Google # The user's hashed password. # Corresponds to the JSON property `passwordHash` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :password_hash @@ -1736,6 +1739,7 @@ module Google # The user's hashed password. # Corresponds to the JSON property `passwordHash` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :password_hash @@ -1761,6 +1765,7 @@ module Google # The user's password salt. # Corresponds to the JSON property `salt` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :salt diff --git a/generated/google/apis/kgsearch_v1/classes.rb b/generated/google/apis/kgsearch_v1/classes.rb index 9ca15782c..469cb978a 100644 --- a/generated/google/apis/kgsearch_v1/classes.rb +++ b/generated/google/apis/kgsearch_v1/classes.rb @@ -27,6 +27,11 @@ module Google class SearchResponse include Google::Apis::Core::Hashable + # The schema type of top-level JSON-LD object, e.g. ItemList. + # Corresponds to the JSON property `@type` + # @return [Object] + attr_accessor :_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` @@ -38,20 +43,15 @@ module Google # @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` - # @return [Object] - attr_accessor :_type - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @_type = args[:_type] if args.key?(:_type) @_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) end end end diff --git a/generated/google/apis/kgsearch_v1/representations.rb b/generated/google/apis/kgsearch_v1/representations.rb index d433bdbf6..a84ac0bb8 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 :_type, as: '@type' property :_context, as: '@context' collection :item_list_element, as: 'itemListElement' - property :_type, as: '@type' end end end diff --git a/generated/google/apis/kgsearch_v1/service.rb b/generated/google/apis/kgsearch_v1/service.rb index 6de1022f4..602444aea 100644 --- a/generated/google/apis/kgsearch_v1/service.rb +++ b/generated/google/apis/kgsearch_v1/service.rb @@ -32,16 +32,16 @@ module Google # # @see https://developers.google.com/knowledge-graph/ class KgsearchService < 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://kgsearch.googleapis.com/', '') end @@ -49,14 +49,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] prefix - # Enables prefix match against names and aliases of entities - # @param [String] query - # The literal query string for search. - # @param [Array, String] types - # 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 [Array, String] languages @@ -68,6 +60,14 @@ module Google # URL as in ...?ids=A&ids=B # @param [Fixnum] limit # Limits the number of entities to be returned. + # @param [Boolean] prefix + # Enables prefix match against names and aliases of entities + # @param [String] query + # The literal query string for search. + # @param [Array, String] types + # 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 [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -85,17 +85,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(prefix: nil, query: nil, types: nil, indent: nil, languages: nil, ids: nil, limit: nil, quota_user: nil, fields: nil, options: nil, &block) + def search_entities(indent: nil, languages: nil, ids: nil, limit: nil, prefix: nil, query: nil, types: nil, quota_user: nil, fields: 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['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['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['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -104,8 +104,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/language_v1/classes.rb b/generated/google/apis/language_v1/classes.rb index 2cf4609be..1e95d5381 100644 --- a/generated/google/apis/language_v1/classes.rb +++ b/generated/google/apis/language_v1/classes.rb @@ -22,23 +22,99 @@ module Google module Apis module LanguageV1 + # The syntax analysis request message. + class AnalyzeSyntaxRequest + 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 + + # The sentiment analysis response message. + class AnalyzeSentimentResponse + include Google::Apis::Core::Hashable + + # 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 + + # The sentiment for all the sentences in the document. + # Corresponds to the JSON property `sentences` + # @return [Array] + attr_accessor :sentences + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) + @language = args[:language] if args.key?(:language) + @sentences = args[:sentences] if args.key?(:sentences) + end + end + + # The entity analysis response message. + class AnalyzeEntitiesResponse + include Google::Apis::Core::Hashable + + # The recognized entities in the input document. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # 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) + @entities = args[:entities] if args.key?(:entities) + @language = args[:language] if args.key?(:language) + end + end + # Represents a phrase in the text that is a known entity, such as # a person, an organization, or location. The API associates information, such # as salience and mentions, with entities. class Entity include Google::Apis::Core::Hashable - # 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 - # The entity type. # Corresponds to the JSON property `type` # @return [String] @@ -60,17 +136,28 @@ module Google # @return [Float] attr_accessor :salience + # 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) - @mentions = args[:mentions] if args.key?(:mentions) - @name = args[:name] if args.key?(:name) @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) end end @@ -141,6 +228,57 @@ module Google end end + # The text annotations response message. + class AnnotateTextResponse + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + end + end + # The sentiment analysis request message. class AnalyzeSentimentRequest include Google::Apis::Core::Hashable @@ -167,68 +305,12 @@ module Google 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 - # 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 @@ -238,14 +320,60 @@ module Google # @return [Fixnum] attr_accessor :head_token_index + # The parse label for the token. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @label = args[:label] if args.key?(:label) @head_token_index = args[:head_token_index] if args.key?(:head_token_index) + @label = args[:label] if args.key?(:label) + 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 @@ -275,47 +403,6 @@ module Google 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 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 - - 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) - @text = args[:text] if args.key?(:text) - @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge) - @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: @@ -358,12 +445,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] @@ -376,50 +457,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) - 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) + @details = args[:details] if args.key?(:details) end end @@ -449,6 +501,90 @@ module Google 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 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 + + # Extract entities. + # Corresponds to the JSON property `extractEntities` + # @return [Boolean] + attr_accessor :extract_entities + alias_method :extract_entities?, :extract_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax) + @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) + @extract_entities = args[:extract_entities] if args.key?(:extract_entities) + end + end + + # ################################################################ # + # Represents the input to API methods. + class Document + include Google::Apis::Core::Hashable + + # 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 + + # The language of the document (if not specified, the language is + # automatically detected). Both ISO and BCP-47 language codes are + # accepted.
+ # **Current Language Restrictions:** + # * Only English, Spanish, and Japanese textual content are supported. + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @language = args[:language] if args.key?(:language) + end + end + # Represents a sentence in the input document. class Sentence include Google::Apis::Core::Hashable @@ -475,41 +611,20 @@ module Google end end - # ################################################################ # - # Represents the input to API methods. - class Document + # The entity analysis request message. + class AnalyzeEntitiesRequest 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.
- # **Current Language Restrictions:** - # * Only English, Spanish, and Japanese textual content are supported. - # 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 + # ################################################################ # + # Represents the input to API methods. + # Corresponds to the JSON property `document` + # @return [Google::Apis::LanguageV1::Document] + attr_accessor :document - # Required. If the type is not set or is `TYPE_UNSPECIFIED`, - # returns an `INVALID_ARGUMENT` error. - # Corresponds to the JSON property `type` + # The encoding type used by the API to calculate offsets. + # Corresponds to the JSON property `encodingType` # @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 + attr_accessor :encoding_type def initialize(**args) update!(**args) @@ -517,10 +632,8 @@ module Google # 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) + @document = args[:document] if args.key?(:document) + @encoding_type = args[:encoding_type] if args.key?(:encoding_type) end end @@ -553,53 +666,12 @@ module Google 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 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 case. - # Corresponds to the JSON property `case` - # @return [String] - attr_accessor :case - - # The grammatical tense. - # Corresponds to the JSON property `tense` - # @return [String] - attr_accessor :tense - - # The grammatical reciprocity. - # Corresponds to the JSON property `reciprocity` - # @return [String] - attr_accessor :reciprocity - # The grammatical form. # Corresponds to the JSON property `form` # @return [String] @@ -645,15 +717,27 @@ module Google # @return [String] attr_accessor :proper + # The grammatical case. + # Corresponds to the JSON property `case` + # @return [String] + attr_accessor :case + + # The grammatical tense. + # Corresponds to the JSON property `tense` + # @return [String] + attr_accessor :tense + + # The grammatical reciprocity. + # Corresponds to the JSON property `reciprocity` + # @return [String] + attr_accessor :reciprocity + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @@ -663,93 +747,9 @@ module Google @gender = args[:gender] if args.key?(:gender) @person = args[:person] if args.key?(:person) @proper = args[:proper] if args.key?(:proper) - end - end - - # The syntax analysis request message. - class AnalyzeSyntaxRequest - 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 - - # The sentiment analysis response message. - class AnalyzeSentimentResponse - include Google::Apis::Core::Hashable - - # 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 - - # The sentiment for all the sentences in the document. - # Corresponds to the JSON property `sentences` - # @return [Array] - attr_accessor :sentences - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) - @language = args[:language] if args.key?(:language) - @sentences = args[:sentences] if args.key?(:sentences) - end - end - - # The entity analysis response message. - class AnalyzeEntitiesResponse - 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 - - # The recognized entities in the input document. - # Corresponds to the JSON property `entities` - # @return [Array] - attr_accessor :entities - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @language = args[:language] if args.key?(:language) - @entities = args[:entities] if args.key?(:entities) + @case = args[:case] if args.key?(:case) + @tense = args[:tense] if args.key?(:tense) + @reciprocity = args[:reciprocity] if args.key?(:reciprocity) end end end diff --git a/generated/google/apis/language_v1/representations.rb b/generated/google/apis/language_v1/representations.rb index 28f0ce3a7..38f4759ac 100644 --- a/generated/google/apis/language_v1/representations.rb +++ b/generated/google/apis/language_v1/representations.rb @@ -22,102 +22,6 @@ module Google module Apis module LanguageV1 - class Entity - 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 AnnotateTextRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AnalyzeSentimentRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AnnotateTextResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DependencyEdge - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - 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 Features - 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 Sentence - 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 Sentiment - 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 PartOfSpeech - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class AnalyzeSyntaxRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -137,14 +41,139 @@ module Google end class Entity + 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 AnnotateTextRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnnotateTextResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeSentimentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DependencyEdge + 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 TextSpan + 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 + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeSyntaxRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1::EntityMention, decorator: Google::Apis::LanguageV1::EntityMention::Representation + property :encoding_type, as: 'encodingType' + property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation - property :name, as: 'name' + 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 + collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation + + property :language, as: 'language' + 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 @@ -170,6 +199,21 @@ module Google end end + class AnnotateTextResponse + # @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 + + collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation + + collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation + + end + end + class AnalyzeSentimentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -179,26 +223,24 @@ module Google end end - class AnnotateTextResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation - - property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation - - property :language, as: 'language' - end - end - class DependencyEdge # @private class Representation < Google::Apis::Core::JsonRepresentation - property :label, as: 'label' property :head_token_index, as: 'headTokenIndex' + property :label, as: 'label' + end + end + + 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 :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 + end end @@ -210,34 +252,12 @@ module Google end end - class Token - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1::DependencyEdge, decorator: Google::Apis::LanguageV1::DependencyEdge::Representation - - property :lemma, as: 'lemma' - 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 Features - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :extract_entities, as: 'extractEntities' - property :extract_syntax, as: 'extractSyntax' - property :extract_document_sentiment, as: 'extractDocumentSentiment' + collection :details, as: 'details' end end @@ -250,6 +270,25 @@ module Google end end + class Features + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :extract_syntax, as: 'extractSyntax' + property :extract_document_sentiment, as: 'extractDocumentSentiment' + property :extract_entities, as: 'extractEntities' + end + end + + class Document + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :content, as: 'content' + property :gcs_content_uri, as: 'gcsContentUri' + property :language, as: 'language' + end + end + class Sentence # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -260,13 +299,12 @@ module Google end end - class Document + class AnalyzeEntitiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :language, as: 'language' - property :type, as: 'type' - property :content, as: 'content' - property :gcs_content_uri, as: 'gcsContentUri' + property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation + + property :encoding_type, as: 'encodingType' end end @@ -278,21 +316,9 @@ module Google end end - class AnalyzeEntitiesRequest - # @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 PartOfSpeech # @private class Representation < Google::Apis::Core::JsonRepresentation - property :case, as: 'case' - property :tense, as: 'tense' - property :reciprocity, as: 'reciprocity' property :form, as: 'form' property :number, as: 'number' property :voice, as: 'voice' @@ -302,35 +328,9 @@ module Google property :gender, as: 'gender' property :person, as: 'person' property :proper, as: 'proper' - 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 - + property :case, as: 'case' + property :tense, as: 'tense' + property :reciprocity, as: 'reciprocity' end end end diff --git a/generated/google/apis/language_v1beta1/classes.rb b/generated/google/apis/language_v1beta1/classes.rb index 38ad0026e..1dfeea712 100644 --- a/generated/google/apis/language_v1beta1/classes.rb +++ b/generated/google/apis/language_v1beta1/classes.rb @@ -22,6 +22,325 @@ module Google module Apis module LanguageV1beta1 + # 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 + + # Represents part of speech information for a token. + 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] + attr_accessor :aspect + + # The grammatical mood. + # Corresponds to the JSON property `mood` + # @return [String] + attr_accessor :mood + + # The part of speech tag. + # Corresponds to the JSON property `tag` + # @return [String] + attr_accessor :tag + + # The grammatical gender. + # Corresponds to the JSON property `gender` + # @return [String] + attr_accessor :gender + + # The grammatical person. + # Corresponds to the JSON property `person` + # @return [String] + attr_accessor :person + + # The grammatical properness. + # Corresponds to the JSON property `proper` + # @return [String] + attr_accessor :proper + + # The grammatical case. + # Corresponds to the JSON property `case` + # @return [String] + attr_accessor :case + + # The grammatical tense. + # Corresponds to the JSON property `tense` + # @return [String] + attr_accessor :tense + + # The grammatical reciprocity. + # Corresponds to the JSON property `reciprocity` + # @return [String] + attr_accessor :reciprocity + + 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) + @gender = args[:gender] if args.key?(:gender) + @person = args[:person] if args.key?(:person) + @proper = args[:proper] if args.key?(:proper) + @case = args[:case] if args.key?(:case) + @tense = args[:tense] if args.key?(:tense) + @reciprocity = args[:reciprocity] if args.key?(:reciprocity) + end + end + + # The syntax analysis request message. + class AnalyzeSyntaxRequest + 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 + + # The sentiment analysis response message. + class AnalyzeSentimentResponse + include Google::Apis::Core::Hashable + + # The sentiment for all the sentences in the document. + # Corresponds to the JSON property `sentences` + # @return [Array] + attr_accessor :sentences + + # 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. + # 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) + @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) + @language = args[:language] if args.key?(:language) + end + end + + # The entity analysis response message. + class AnalyzeEntitiesResponse + include Google::Apis::Core::Hashable + + # The recognized entities in the input document. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # 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) + @entities = args[:entities] if args.key?(:entities) + @language = args[:language] if args.key?(:language) + end + end + + # Represents a phrase in the text that is a known entity, such as + # a person, an organization, or location. The API associates information, such + # as salience and mentions, with entities. + class Entity + include Google::Apis::Core::Hashable + + # 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 + + # 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. + # Scores closer to 0 are less salient, while scores closer to 1.0 are highly + # salient. + # Corresponds to the JSON property `salience` + # @return [Float] + attr_accessor :salience + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @mentions = args[:mentions] if args.key?(:mentions) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @metadata = args[:metadata] if args.key?(:metadata) + @salience = args[:salience] if args.key?(:salience) + end + end + + # The syntax analysis response message. + class AnalyzeSyntaxResponse + 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. + # Corresponds to the JSON property `sentences` + # @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) + @language = args[:language] if args.key?(:language) + @sentences = args[:sentences] if args.key?(:sentences) + @tokens = args[:tokens] if args.key?(:tokens) + end + end + # The request message for the text annotation API, which can perform multiple # analysis types (sentiment, entities, and syntax) in one call. class AnnotateTextRequest @@ -60,13 +379,6 @@ module Google 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` @@ -93,17 +405,24 @@ module Google # @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. + # 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) - @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) + @language = args[:language] if args.key?(:language) end end @@ -111,26 +430,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 @@ -167,11 +486,6 @@ module Google class Token include Google::Apis::Core::Hashable - # Represents part of speech information for a token. - # Corresponds to the JSON property `partOfSpeech` - # @return [Google::Apis::LanguageV1beta1::PartOfSpeech] - attr_accessor :part_of_speech - # Represents an output piece of text. # Corresponds to the JSON property `text` # @return [Google::Apis::LanguageV1beta1::TextSpan] @@ -187,16 +501,21 @@ module Google # @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) - @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech) @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 @@ -298,6 +617,32 @@ module Google 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 @@ -333,9 +678,8 @@ module Google end end - # Represents a mention for an entity in the text. Currently, proper noun - # mentions are supported. - class EntityMention + # Represents a sentence in the input document. + class Sentence include Google::Apis::Core::Hashable # Represents an output piece of text. @@ -343,10 +687,11 @@ module Google # @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 + # 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) @@ -355,7 +700,7 @@ module Google # Update properties of this object def update!(**args) @text = args[:text] if args.key?(:text) - @type = args[:type] if args.key?(:type) + @sentiment = args[:sentiment] if args.key?(:sentiment) end end @@ -407,351 +752,6 @@ module Google @language = args[:language] if args.key?(:language) 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 - - # 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 - - # 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 part of speech information for a token. - 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] - attr_accessor :aspect - - # The grammatical mood. - # Corresponds to the JSON property `mood` - # @return [String] - attr_accessor :mood - - # The part of speech tag. - # Corresponds to the JSON property `tag` - # @return [String] - attr_accessor :tag - - # The grammatical gender. - # Corresponds to the JSON property `gender` - # @return [String] - attr_accessor :gender - - # The grammatical person. - # Corresponds to the JSON property `person` - # @return [String] - attr_accessor :person - - # The grammatical properness. - # Corresponds to the JSON property `proper` - # @return [String] - attr_accessor :proper - - # The grammatical case. - # Corresponds to the JSON property `case` - # @return [String] - attr_accessor :case - - # The grammatical tense. - # Corresponds to the JSON property `tense` - # @return [String] - attr_accessor :tense - - # The grammatical reciprocity. - # Corresponds to the JSON property `reciprocity` - # @return [String] - attr_accessor :reciprocity - - 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) - @gender = args[:gender] if args.key?(:gender) - @person = args[:person] if args.key?(:person) - @proper = args[:proper] if args.key?(:proper) - @case = args[:case] if args.key?(:case) - @tense = args[:tense] if args.key?(:tense) - @reciprocity = args[:reciprocity] if args.key?(:reciprocity) - end - end - - # The syntax analysis request message. - class AnalyzeSyntaxRequest - 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 - - # The sentiment analysis response message. - class AnalyzeSentimentResponse - include Google::Apis::Core::Hashable - - # 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. - # Corresponds to the JSON property `language` - # @return [String] - attr_accessor :language - - # The sentiment for all the sentences in the document. - # Corresponds to the JSON property `sentences` - # @return [Array] - attr_accessor :sentences - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) - @language = args[:language] if args.key?(:language) - @sentences = args[:sentences] if args.key?(:sentences) - end - end - - # The entity analysis response message. - class AnalyzeEntitiesResponse - 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 - - # The recognized entities in the input document. - # Corresponds to the JSON property `entities` - # @return [Array] - attr_accessor :entities - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @language = args[:language] if args.key?(:language) - @entities = args[:entities] if args.key?(:entities) - end - end - - # The syntax analysis response message. - class AnalyzeSyntaxResponse - 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. - # Corresponds to the JSON property `sentences` - # @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) - @language = args[:language] if args.key?(:language) - @sentences = args[:sentences] if args.key?(:sentences) - @tokens = args[:tokens] if args.key?(:tokens) - end - end - - # Represents a phrase in the text that is a known entity, such as - # a person, an organization, or location. The API associates information, such - # as salience and mentions, with entities. - 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. - # Scores closer to 0 are less salient, while scores closer to 1.0 are highly - # salient. - # Corresponds to the JSON property `salience` - # @return [Float] - attr_accessor :salience - - # 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) - end - end end end end diff --git a/generated/google/apis/language_v1beta1/representations.rb b/generated/google/apis/language_v1beta1/representations.rb index f6b1fac3b..66c6145b2 100644 --- a/generated/google/apis/language_v1beta1/representations.rb +++ b/generated/google/apis/language_v1beta1/representations.rb @@ -22,67 +22,7 @@ module Google module Apis module LanguageV1beta1 - class AnnotateTextRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AnnotateTextResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AnalyzeSentimentRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DependencyEdge - 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 TextSpan - 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 Features - 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 Document - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Sentence + class AnalyzeEntitiesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -94,12 +34,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AnalyzeEntitiesRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class PartOfSpeech class Representation < Google::Apis::Core::JsonRepresentation; end @@ -124,45 +58,85 @@ module Google 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 AnalyzeSyntaxResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AnnotateTextRequest - # @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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class AnnotateTextResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :language, as: 'language' - collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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 + include Google::Apis::Core::JsonObjectSupport end class AnalyzeSentimentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DependencyEdge + 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 TextSpan + 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 Sentence + 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 AnalyzeEntitiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :encoding_type, as: 'encodingType' @@ -171,82 +145,6 @@ module Google end end - class DependencyEdge - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :head_token_index, as: 'headTokenIndex' - property :label, as: 'label' - end - end - - class Token - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation - - 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' - end - end - - class TextSpan - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :begin_offset, as: 'beginOffset' - property :content, as: 'content' - 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 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 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 Document - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :content, as: 'content' - property :gcs_content_uri, as: 'gcsContentUri' - property :language, as: 'language' - 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 Sentiment # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -256,15 +154,6 @@ module Google 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 PartOfSpeech # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -286,29 +175,41 @@ module Google class AnalyzeSyntaxRequest # @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 class AnalyzeSentimentResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::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 - end end class AnalyzeEntitiesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :language, as: 'language' collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation + property :language, as: 'language' + end + end + + class Entity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation + + property :name, as: 'name' + property :type, as: 'type' + hash :metadata, as: 'metadata' + property :salience, as: 'salience' end end @@ -323,15 +224,114 @@ module Google end end - class Entity + class AnnotateTextRequest + # @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 :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 :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 + + property :language, as: 'language' + end + end + + class AnalyzeSentimentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation + + property :encoding_type, as: 'encodingType' + end + end + + class DependencyEdge + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :head_token_index, as: 'headTokenIndex' + property :label, as: 'label' + 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 TextSpan + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :begin_offset, as: 'beginOffset' + property :content, as: 'content' + 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 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 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 Document # @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::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation - - property :name, as: 'name' + property :content, as: 'content' + property :gcs_content_uri, as: 'gcsContentUri' + property :language, as: 'language' end end end diff --git a/generated/google/apis/language_v1beta1/service.rb b/generated/google/apis/language_v1beta1/service.rb index 07472bfa7..c8888b023 100644 --- a/generated/google/apis/language_v1beta1/service.rb +++ b/generated/google/apis/language_v1beta1/service.rb @@ -34,16 +34,16 @@ module Google # # @see https://cloud.google.com/natural-language/ class CloudNaturalLanguageService < 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://language.googleapis.com/', '') end @@ -51,11 +51,11 @@ module Google # 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 [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 annotate_document_text(annotate_text_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + 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['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 @@ -83,11 +83,11 @@ module Google # 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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -100,14 +100,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 analyze_document_entities(analyze_entities_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + 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['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 @@ -115,11 +115,11 @@ module Google # 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 # @@ -132,24 +132,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 analyze_document_syntax(analyze_syntax_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def analyze_document_syntax(analyze_syntax_request_object = nil, fields: nil, quota_user: 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['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 # 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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -162,22 +162,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 analyze_document_sentiment(analyze_sentiment_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + 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['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/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index ca66013b9..756589743 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -22,20 +22,340 @@ module Google module Apis module LoggingV2 + # Result returned from ListLogs. + 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. + # 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) + @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 + + # 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 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 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 [String] + 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 [String] + 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 [String] + 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 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @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) + 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 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 [String] + 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 - # 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 - # Severity of this log entry. # Corresponds to the JSON property `severity` # @return [String] @@ -46,16 +366,26 @@ module Google # @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 + + # 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) - @source_location = args[:source_location] if args.key?(:source_location) - @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) + @time = args[:time] if args.key?(:time) end end @@ -86,10 +416,40 @@ 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 + # 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. 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/ @@ -172,12 +532,6 @@ module Google # @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 @@ -188,16 +542,11 @@ module Google # @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 + # 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 def initialize(**args) update!(**args) @@ -205,6 +554,8 @@ module Google # 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) @trace = args[:trace] if args.key?(:trace) @labels = args[:labels] if args.key?(:labels) @severity = args[:severity] if args.key?(:severity) @@ -214,29 +565,8 @@ module Google @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) - 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) + @operation = args[:operation] if args.key?(:operation) end end @@ -353,6 +683,27 @@ module Google class RequestLog include Google::Apis::Core::Hashable + # Module of the application that handled this request. + # Corresponds to the JSON property `moduleId` + # @return [String] + attr_accessor :module_id + + # Time when the request finished. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # User agent that made the request. + # Corresponds to the JSON property `userAgent` + # @return [String] + attr_accessor :user_agent + + # Whether this was a loading request for the instance. + # Corresponds to the JSON property `wasLoadingRequest` + # @return [Boolean] + attr_accessor :was_loading_request + alias_method :was_loading_request?, :was_loading_request + # Source code for the application that handled this request. There can be more # than one source reference per deployed application if source code is # distributed among multiple repositories. @@ -509,33 +860,16 @@ module Google # @return [String] attr_accessor :version_id - # Module of the application that handled this request. - # Corresponds to the JSON property `moduleId` - # @return [String] - attr_accessor :module_id - - # Time when the request finished. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # User agent that made the request. - # Corresponds to the JSON property `userAgent` - # @return [String] - attr_accessor :user_agent - - # Whether this was a loading request for the instance. - # Corresponds to the JSON property `wasLoadingRequest` - # @return [Boolean] - attr_accessor :was_loading_request - alias_method :was_loading_request?, :was_loading_request - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) + @was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request) @source_reference = args[:source_reference] if args.key?(:source_reference) @response_size = args[:response_size] if args.key?(:response_size) @trace_id = args[:trace_id] if args.key?(:trace_id) @@ -564,10 +898,6 @@ module Google @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) - @was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request) end end @@ -626,16 +956,53 @@ module Google end end - # Result returned from WriteLogEntries. empty - class WriteLogEntriesResponse + # 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. + # 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 + # characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy + # of name pieces, and it cannot be the first character of the name.The metric + # identifier in this field must not be URL-encoded (https://en.wikipedia.org/ + # wiki/Percent-encoding). However, when the metric identifier appears as the [ + # METRIC_ID] part of a metric_name API parameter, then the metric identifier + # must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. A description of this metric, which is used in documentation. + # 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) + @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) end end @@ -644,6 +1011,12 @@ module Google 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` @@ -663,72 +1036,29 @@ module Google attr_accessor :first alias_method :first?, :first - # Optional. Set this to True if this is the last log entry in the operation. - # Corresponds to the JSON property `last` - # @return [Boolean] - attr_accessor :last - alias_method :last?, :last - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) - @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 + # Result returned from WriteLogEntries. empty + class WriteLogEntriesResponse include Google::Apis::Core::Hashable - # 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 - # characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy - # of name pieces, and it cannot be the first character of the name.The metric - # identifier in this field must not be URL-encoded (https://en.wikipedia.org/ - # wiki/Percent-encoding). However, when the metric identifier appears as the [ - # METRIC_ID] part of a metric_name API parameter, then the metric identifier - # must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests". - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Optional. A description of this metric, which is used in documentation. - # Corresponds to the JSON property `description` - # @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 - - # 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) - @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 @@ -747,13 +1077,6 @@ module Google class MonitoredResource include Google::Apis::Core::Hashable - # Required. Values for all of the labels listed in the associated monitored - # resource descriptor. For example, Cloud SQL databases use the labels " - # database_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 Cloud SQL # database is "cloudsql_database". @@ -761,14 +1084,108 @@ module Google # @return [String] attr_accessor :type + # Required. Values for all of the labels listed in the associated monitored + # resource descriptor. For example, Cloud SQL databases use the labels " + # database_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) - @labels = args[:labels] if args.key?(:labels) @type = args[:type] if args.key?(:type) + @labels = args[:labels] if args.key?(:labels) + 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 + + # 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. 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]" + # "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. 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @filter = args[:filter] if args.key?(:filter) + @destination = args[:destination] if args.key?(:destination) + @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) end end @@ -776,29 +1193,6 @@ module Google 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::LoggingV2::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]" @@ -836,434 +1230,40 @@ module Google 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::LoggingV2::MonitoredResource] + attr_accessor :resource + 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) @log_name = args[:log_name] if args.key?(:log_name) @entries = args[:entries] if args.key?(:entries) @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. 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @destination = args[:destination] if args.key?(:destination) - @filter = args[:filter] if args.key?(:filter) - @end_time = args[:end_time] if args.key?(:end_time) - 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 [String] - 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 [String] - 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 [String] - 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 - - # 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 - - # 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 [String] - 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) + @resource = args[:resource] if args.key?(:resource) end end end diff --git a/generated/google/apis/logging_v2/representations.rb b/generated/google/apis/logging_v2/representations.rb index e54caeedd..3e497fb9e 100644 --- a/generated/google/apis/logging_v2/representations.rb +++ b/generated/google/apis/logging_v2/representations.rb @@ -22,109 +22,19 @@ module Google module Apis module LoggingV2 - 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 LogEntry - 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 SourceLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - 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 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 LogMetric - 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 - - include Google::Apis::Core::JsonObjectSupport - end - - class LogSink - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListLogsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class HttpRequest + class ListSinksResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListSinksResponse + class HttpRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -155,203 +65,118 @@ module Google end class LogLine - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::SourceLocation, decorator: Google::Apis::LoggingV2::SourceLocation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :time, as: 'time' - property :severity, as: 'severity' - property :log_message, as: 'logMessage' - end + include Google::Apis::Core::JsonObjectSupport end class ListLogMetricsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2::LogMetric, decorator: Google::Apis::LoggingV2::LogMetric::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end - end - - class LogEntry - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :trace, as: 'trace' - hash :labels, as: 'labels' - property :severity, as: 'severity' - property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation - - 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 - - property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::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' - 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 LogEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class SourceLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :file, as: 'file' - property :function_name, as: 'functionName' - property :line, as: 'line' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListLogEntriesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :project_ids, as: 'projectIds' - property :filter, as: 'filter' - property :page_token, as: 'pageToken' - property :page_size, as: 'pageSize' - property :order_by, as: 'orderBy' - collection :resource_names, as: 'resourceNames' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class RequestLog - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2::SourceReference, decorator: Google::Apis::LoggingV2::SourceReference::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :response_size, as: 'responseSize' - property :trace_id, as: 'traceId' - collection :line, as: 'line', class: Google::Apis::LoggingV2::LogLine, decorator: Google::Apis::LoggingV2::LogLine::Representation - - property :task_queue_name, as: 'taskQueueName' - property :referrer, as: 'referrer' - property :request_id, as: 'requestId' - property :nickname, as: 'nickname' - 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 :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, 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' - end + include Google::Apis::Core::JsonObjectSupport end class ListMonitoredResourceDescriptorsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2::MonitoredResourceDescriptor::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class SourceReference - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :repository, as: 'repository' - property :revision_id, as: 'revisionId' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class WriteLogEntriesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class LogEntryOperation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :producer, as: 'producer' - property :first, as: 'first' - property :last, as: 'last' - end + include Google::Apis::Core::JsonObjectSupport 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 + 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 WriteLogEntriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class MonitoredResource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :type, as: 'type' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class WriteLogEntriesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation - - property :log_name, as: 'logName' - collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation - - property :partial_success, as: 'partialSuccess' - end + include Google::Apis::Core::JsonObjectSupport end class LogSink - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :start_time, as: 'startTime' - property :writer_identity, as: 'writerIdentity' - property :output_version_format, as: 'outputVersionFormat' - property :name, as: 'name' - property :destination, as: 'destination' - property :filter, as: 'filter' - property :end_time, as: 'endTime' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WriteLogEntriesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end 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 + collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation + + property :next_page_token, as: 'nextPageToken' end end class HttpRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + 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, as: 'cacheFillBytes' @@ -359,22 +184,10 @@ module Google property :response_size, as: 'responseSize' property :request_size, as: 'requestSize' property :request_url, as: 'requestUrl' - property :server_ip, as: 'serverIp' 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 - 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 @@ -411,9 +224,196 @@ module Google 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 + 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 :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::SourceLocation, decorator: Google::Apis::LoggingV2::SourceLocation::Representation + + property :time, as: 'time' + end + end + + class ListLogMetricsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2::LogMetric, decorator: Google::Apis::LoggingV2::LogMetric::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class LogEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text_payload, as: 'textPayload' + hash :proto_payload, as: 'protoPayload' + property :trace, as: 'trace' + hash :labels, as: 'labels' + property :severity, as: 'severity' + property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation + + 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 + + property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation + + hash :json_payload, as: 'jsonPayload' + property :insert_id, as: 'insertId' + property :operation, as: 'operation', class: Google::Apis::LoggingV2::LogEntryOperation, decorator: Google::Apis::LoggingV2::LogEntryOperation::Representation + + end + end + + class SourceLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file, as: 'file' + property :function_name, as: 'functionName' + property :line, as: 'line' + end + end + + class ListLogEntriesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :project_ids, as: 'projectIds' + property :filter, as: 'filter' + 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::LoggingV2::SourceReference, decorator: Google::Apis::LoggingV2::SourceReference::Representation + + property :response_size, as: 'responseSize' + property :trace_id, as: 'traceId' + collection :line, as: 'line', class: Google::Apis::LoggingV2::LogLine, decorator: Google::Apis::LoggingV2::LogLine::Representation + + property :task_queue_name, as: 'taskQueueName' + property :referrer, as: 'referrer' + property :request_id, as: 'requestId' + property :nickname, as: 'nickname' + 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 :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, as: 'megaCycles' + property :first, as: 'first' + property :version_id, as: 'versionId' + end + end + + class ListMonitoredResourceDescriptorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2::MonitoredResourceDescriptor::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' + end + end + + 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 + + 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' + end + end + + class WriteLogEntriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class MonitoredResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + hash :labels, as: 'labels' + end + end + + class LogSink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :filter, as: 'filter' + property :destination, as: 'destination' + property :end_time, as: 'endTime' + property :writer_identity, as: 'writerIdentity' + property :start_time, as: 'startTime' + property :output_version_format, as: 'outputVersionFormat' + 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 :partial_success, as: 'partialSuccess' + hash :labels, as: 'labels' + property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation + end end end diff --git a/generated/google/apis/logging_v2/service.rb b/generated/google/apis/logging_v2/service.rb index 20e339a30..d664c6e0f 100644 --- a/generated/google/apis/logging_v2/service.rb +++ b/generated/google/apis/logging_v2/service.rb @@ -46,18 +46,155 @@ module Google super('https://logging.googleapis.com/', '') 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. + # 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 + + # 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::LoggingV2::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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, 'v2/{+metricName}', options) + command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation + command.response_class = Google::Apis::LoggingV2::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: + # "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + # The updated metric must be provided in the request and it's name field must be + # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a + # new metric is created. + # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogMetric] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v2/{+metricName}', options) + command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation + command.request_object = log_metric_object + command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation + command.response_class = Google::Apis::LoggingV2::LogMetric + command.params['metricName'] = metric_name unless metric_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a logs-based metric. + # @param [String] parent + # The resource name of the project in which to create the metric: + # "projects/[PROJECT_ID]" + # The new metric must be provided in the request. + # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogMetric] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/metrics', options) + command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation + command.request_object = log_metric_object + command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation + command.response_class = Google::Apis::LoggingV2::LogMetric + 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 + + # 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 @@ -75,689 +212,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_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/{+logName}', options) + def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+metricName}', 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 - - # 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_folder_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 - - # 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: - # "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_folder_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: - # destination, filter, output_version_format, start_time, and end_time. The - # updated filter might also have a new writer_identity; see the - # unique_writer_identity field. - # @param [String] sink_name - # Required. The full resource name of the sink to update, 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 [Google::Apis::LoggingV2::LogSink] log_sink_object - # @param [Boolean] unique_writer_identity - # Optional. See sinks.create for a description of this field. When updating a - # sink, the effect of this field on the value of writer_identity in the updated - # sink depends on both the old and new values of this field: - # If the old and new values of this field are both false or both true, then - # there is no change to the sink's writer_identity. - # If the old value is false and the new value is true, then writer_identity is - # changed to a unique service account. - # It is an error if the old value is true and the new value is false. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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 update_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v2/{+sinkName}', options) - command.request_representation = Google::Apis::LoggingV2::LogSink::Representation - command.request_object = log_sink_object - 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['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a sink that exports specified log entries to a destination. The export - # of newly-ingested log entries begins immediately, unless the current time is - # outside the sink's start and end times or the sink's writer_identity is not - # permitted to write to the destination. A sink can export log entries only from - # the resource owning the sink. - # @param [String] parent - # Required. The resource in which to create the sink: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # Examples: "projects/my-logging-project", "organizations/123456789". - # @param [Google::Apis::LoggingV2::LogSink] log_sink_object - # @param [Boolean] unique_writer_identity - # Optional. Determines the kind of IAM identity returned as writer_identity in - # the new sink. If this value is omitted or set to false, and if the sink's - # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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 create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/{+parent}/sinks', options) - command.request_representation = Google::Apis::LoggingV2::LogSink::Representation - command.request_object = log_sink_object - command.response_representation = Google::Apis::LoggingV2::LogSink::Representation - command.response_class = Google::Apis::LoggingV2::LogSink - command.params['parent'] = parent unless parent.nil? - command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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 - # 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::ListMonitoredResourceDescriptorsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/monitoredResourceDescriptors', options) - command.response_representation = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse::Representation - command.response_class = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse - 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::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_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['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) - end - - # Creates a sink that exports specified log entries to a destination. The export - # of newly-ingested log entries begins immediately, unless the current time is - # outside the sink's start and end times or the sink's writer_identity is not - # permitted to write to the destination. A sink can export log entries only from - # the resource owning the sink. - # @param [String] parent - # Required. The resource in which to create the sink: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # Examples: "projects/my-logging-project", "organizations/123456789". - # @param [Google::Apis::LoggingV2::LogSink] log_sink_object - # @param [Boolean] unique_writer_identity - # Optional. Determines the kind of IAM identity returned as writer_identity in - # the new sink. If this value is omitted or set to false, and if the sink's - # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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 create_organization_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/{+parent}/sinks', options) - command.request_representation = Google::Apis::LoggingV2::LogSink::Representation - command.request_object = log_sink_object - command.response_representation = Google::Apis::LoggingV2::LogSink::Representation - command.response_class = Google::Apis::LoggingV2::LogSink - command.params['parent'] = parent unless parent.nil? - command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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 - # 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_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['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 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.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: - # "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_organization_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: - # destination, filter, output_version_format, start_time, and end_time. The - # updated filter might also have a new writer_identity; see the - # unique_writer_identity field. - # @param [String] sink_name - # Required. The full resource name of the sink to update, 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 [Google::Apis::LoggingV2::LogSink] log_sink_object - # @param [Boolean] unique_writer_identity - # Optional. See sinks.create for a description of this field. When updating a - # sink, the effect of this field on the value of writer_identity in the updated - # sink depends on both the old and new values of this field: - # If the old and new values of this field are both false or both true, then - # there is no change to the sink's writer_identity. - # If the old value is false and the new value is true, then writer_identity is - # changed to a unique service account. - # It is an error if the old value is true and the new value is false. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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 update_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v2/{+sinkName}', options) - command.request_representation = Google::Apis::LoggingV2::LogSink::Representation - command.request_object = log_sink_object - 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['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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::LoggingV2::ListLogEntriesRequest] list_log_entries_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2::ListLogEntriesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::ListLogEntriesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/entries:list', options) - command.request_representation = Google::Apis::LoggingV2::ListLogEntriesRequest::Representation - command.request_object = list_log_entries_request_object - command.response_representation = Google::Apis::LoggingV2::ListLogEntriesResponse::Representation - command.response_class = Google::Apis::LoggingV2::ListLogEntriesResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Writes log entries to Stackdriver Logging. - # @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2::WriteLogEntriesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::WriteLogEntriesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/entries:write', options) - command.request_representation = Google::Apis::LoggingV2::WriteLogEntriesRequest::Representation - command.request_object = write_log_entries_request_object - command.response_representation = Google::Apis::LoggingV2::WriteLogEntriesResponse::Representation - command.response_class = Google::Apis::LoggingV2::WriteLogEntriesResponse + 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) @@ -848,59 +307,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a sink that exports specified log entries to a destination. The export - # of newly-ingested log entries begins immediately, unless the current time is - # outside the sink's start and end times or the sink's writer_identity is not - # permitted to write to the destination. A sink can export log entries only from - # the resource owning the sink. - # @param [String] parent - # Required. The resource in which to create the sink: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # Examples: "projects/my-logging-project", "organizations/123456789". - # @param [Google::Apis::LoggingV2::LogSink] log_sink_object - # @param [Boolean] unique_writer_identity - # Optional. Determines the kind of IAM identity returned as writer_identity in - # the new sink. If this value is omitted or set to false, and if the sink's - # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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 create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/{+parent}/sinks', options) - command.request_representation = Google::Apis::LoggingV2::LogSink::Representation - command.request_object = log_sink_object - command.response_representation = Google::Apis::LoggingV2::LogSink::Representation - command.response_class = Google::Apis::LoggingV2::LogSink - command.params['parent'] = parent unless parent.nil? - command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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 @@ -1072,12 +478,29 @@ module Google execute_or_queue_command(command, &block) end - # Creates a logs-based metric. + # Creates a sink that exports specified log entries to a destination. The export + # of newly-ingested log entries begins immediately, unless the current time is + # outside the sink's start and end times or the sink's writer_identity is not + # permitted to write to the destination. A sink can export log entries only from + # the resource owning the sink. # @param [String] parent - # The resource name of the project in which to create the metric: + # Required. The resource in which to create the sink: # "projects/[PROJECT_ID]" - # The new metric must be provided in the request. - # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # Examples: "projects/my-logging-project", "organizations/123456789". + # @param [Google::Apis::LoggingV2::LogSink] log_sink_object + # @param [Boolean] unique_writer_identity + # Optional. Determines the kind of IAM identity returned as writer_identity in + # the new sink. If this value is omitted or set to false, and if the sink's + # parent is a project, then the value returned as writer_identity is the same + # group or service account used by Stackdriver Logging before the addition of + # writer identities to this API. The sink's destination must be in the same + # project as the sink itself.If this field is set to true, or if the sink is + # owned by a non-project resource such as an organization, then the value of + # writer_identity will be a unique service account used only for exports from + # the new sink. For more information, see writer_identity in LogSink. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1087,162 +510,22 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object + # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::LoggingV2::LogMetric] + # @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 create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/{+parent}/metrics', options) - command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation - command.request_object = log_metric_object - command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation - command.response_class = Google::Apis::LoggingV2::LogMetric + def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/sinks', options) + command.request_representation = Google::Apis::LoggingV2::LogSink::Representation + command.request_object = log_sink_object + command.response_representation = Google::Apis::LoggingV2::LogSink::Representation + command.response_class = Google::Apis::LoggingV2::LogSink 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 - - # 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::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_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/{+metricName}', options) - command.response_representation = Google::Apis::LoggingV2::Empty::Representation - command.response_class = Google::Apis::LoggingV2::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 - - # 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 - - # 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::LoggingV2::LogMetric] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::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, 'v2/{+metricName}', options) - command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation - command.response_class = Google::Apis::LoggingV2::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: - # "projects/[PROJECT_ID]/metrics/[METRIC_ID]" - # The updated metric must be provided in the request and it's name field must be - # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a - # new metric is created. - # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::LogMetric] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v2/{+metricName}', options) - command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation - command.request_object = log_metric_object - command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation - command.response_class = Google::Apis::LoggingV2::LogMetric - command.params['metricName'] = metric_name unless metric_name.nil? + command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -1556,6 +839,723 @@ module Google 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_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 + + # 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: + # destination, filter, output_version_format, start_time, and end_time. The + # updated filter might also have a new writer_identity; see the + # unique_writer_identity field. + # @param [String] sink_name + # Required. The full resource name of the sink to update, 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 [Google::Apis::LoggingV2::LogSink] log_sink_object + # @param [Boolean] unique_writer_identity + # Optional. See sinks.create for a description of this field. When updating a + # sink, the effect of this field on the value of writer_identity in the updated + # sink depends on both the old and new values of this field: + # If the old and new values of this field are both false or both true, then + # there is no change to the sink's writer_identity. + # If the old value is false and the new value is true, then writer_identity is + # changed to a unique service account. + # It is an error if the old value is true and the new value is false. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should 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 update_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v2/{+sinkName}', options) + command.request_representation = Google::Apis::LoggingV2::LogSink::Representation + command.request_object = log_sink_object + 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['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a sink that exports specified log entries to a destination. The export + # of newly-ingested log entries begins immediately, unless the current time is + # outside the sink's start and end times or the sink's writer_identity is not + # permitted to write to the destination. A sink can export log entries only from + # the resource owning the sink. + # @param [String] parent + # Required. The resource in which to create the sink: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # Examples: "projects/my-logging-project", "organizations/123456789". + # @param [Google::Apis::LoggingV2::LogSink] log_sink_object + # @param [Boolean] unique_writer_identity + # Optional. Determines the kind of IAM identity returned as writer_identity in + # the new sink. If this value is omitted or set to false, and if the sink's + # parent is a project, then the value returned as writer_identity is the same + # group or service account used by Stackdriver Logging before the addition of + # writer identities to this API. The sink's destination must be in the same + # project as the sink itself.If this field is set to true, or if the sink is + # owned by a non-project resource such as an organization, then the value of + # writer_identity will be a unique service account used only for exports from + # the new sink. For more information, see writer_identity in LogSink. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should 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 create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/sinks', options) + command.request_representation = Google::Apis::LoggingV2::LogSink::Representation + command.request_object = log_sink_object + command.response_representation = Google::Apis::LoggingV2::LogSink::Representation + command.response_class = Google::Apis::LoggingV2::LogSink + command.params['parent'] = parent unless parent.nil? + command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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 + # 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_folder_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 + + # 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: + # "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_folder_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 + + # 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 + # 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::ListMonitoredResourceDescriptorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/monitoredResourceDescriptors', options) + command.response_representation = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse + 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::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_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['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) + 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_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['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 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.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: + # "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_organization_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: + # destination, filter, output_version_format, start_time, and end_time. The + # updated filter might also have a new writer_identity; see the + # unique_writer_identity field. + # @param [String] sink_name + # Required. The full resource name of the sink to update, 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 [Google::Apis::LoggingV2::LogSink] log_sink_object + # @param [Boolean] unique_writer_identity + # Optional. See sinks.create for a description of this field. When updating a + # sink, the effect of this field on the value of writer_identity in the updated + # sink depends on both the old and new values of this field: + # If the old and new values of this field are both false or both true, then + # there is no change to the sink's writer_identity. + # If the old value is false and the new value is true, then writer_identity is + # changed to a unique service account. + # It is an error if the old value is true and the new value is false. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should 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 update_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v2/{+sinkName}', options) + command.request_representation = Google::Apis::LoggingV2::LogSink::Representation + command.request_object = log_sink_object + 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['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a sink that exports specified log entries to a destination. The export + # of newly-ingested log entries begins immediately, unless the current time is + # outside the sink's start and end times or the sink's writer_identity is not + # permitted to write to the destination. A sink can export log entries only from + # the resource owning the sink. + # @param [String] parent + # Required. The resource in which to create the sink: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # Examples: "projects/my-logging-project", "organizations/123456789". + # @param [Google::Apis::LoggingV2::LogSink] log_sink_object + # @param [Boolean] unique_writer_identity + # Optional. Determines the kind of IAM identity returned as writer_identity in + # the new sink. If this value is omitted or set to false, and if the sink's + # parent is a project, then the value returned as writer_identity is the same + # group or service account used by Stackdriver Logging before the addition of + # writer identities to this API. The sink's destination must be in the same + # project as the sink itself.If this field is set to true, or if the sink is + # owned by a non-project resource such as an organization, then the value of + # writer_identity will be a unique service account used only for exports from + # the new sink. For more information, see writer_identity in LogSink. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should 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 create_organization_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/sinks', options) + command.request_representation = Google::Apis::LoggingV2::LogSink::Representation + command.request_object = log_sink_object + command.response_representation = Google::Apis::LoggingV2::LogSink::Representation + command.response_class = Google::Apis::LoggingV2::LogSink + command.params['parent'] = parent unless parent.nil? + command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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::LoggingV2::ListLogEntriesRequest] list_log_entries_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::ListLogEntriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListLogEntriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/entries:list', options) + command.request_representation = Google::Apis::LoggingV2::ListLogEntriesRequest::Representation + command.request_object = list_log_entries_request_object + command.response_representation = Google::Apis::LoggingV2::ListLogEntriesResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLogEntriesResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Writes log entries to Stackdriver Logging. + # @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::WriteLogEntriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::WriteLogEntriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/entries:write', options) + command.request_representation = Google::Apis::LoggingV2::WriteLogEntriesRequest::Representation + command.request_object = write_log_entries_request_object + command.response_representation = Google::Apis::LoggingV2::WriteLogEntriesResponse::Representation + command.response_class = Google::Apis::LoggingV2::WriteLogEntriesResponse + 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/logging_v2beta1/classes.rb b/generated/google/apis/logging_v2beta1/classes.rb index c764ea76e..71d091486 100644 --- a/generated/google/apis/logging_v2beta1/classes.rb +++ b/generated/google/apis/logging_v2beta1/classes.rb @@ -22,10 +22,279 @@ module Google module Apis module LoggingV2beta1 + # 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 + + # 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log_name = args[:log_name] if args.key?(:log_name) + @resource = args[:resource] if args.key?(:resource) + @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) + @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) + 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 + + # Line within the source file. + # Corresponds to the JSON property `line` + # @return [String] + 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. 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 @@ -47,14 +316,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 @@ -64,20 +325,13 @@ module Google # @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 + # 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 def initialize(**args) update!(**args) @@ -85,12 +339,12 @@ module Google # Update properties of this object def update!(**args) - @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) + @order_by = args[:order_by] if args.key?(:order_by) + @resource_names = args[:resource_names] if args.key?(:resource_names) + @filter = args[:filter] if args.key?(:filter) + @project_ids = args[:project_ids] if args.key?(:project_ids) end end @@ -99,49 +353,6 @@ module Google class RequestLog include Google::Apis::Core::Hashable - # 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] - attr_accessor :module_id - - # Time when the request finished. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # User agent that made the request. - # Corresponds to the JSON property `userAgent` - # @return [String] - attr_accessor :user_agent - - # Whether this was a loading request for the instance. - # Corresponds to the JSON property `wasLoadingRequest` - # @return [Boolean] - attr_accessor :was_loading_request - alias_method :was_loading_request?, :was_loading_request - - # Source code for the application that handled this request. There can be more - # than one source reference per deployed application if source code is - # distributed among multiple repositories. - # Corresponds to the JSON property `sourceReference` - # @return [Array] - attr_accessor :source_reference - - # Size in bytes sent back to client by request. - # Corresponds to the JSON property `responseSize` - # @return [String] - attr_accessor :response_size - - # Stackdriver Trace identifier for this request. - # Corresponds to the JSON property `traceId` - # @return [String] - attr_accessor :trace_id - # A list of log lines emitted by the application while serving this request. # Corresponds to the JSON property `line` # @return [Array] @@ -178,6 +389,11 @@ module Google # @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? # name=val". The fragment identifier, which is identified by the # character, is @@ -186,11 +402,6 @@ 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 - # Task name of the request, in the case of an offline request. # Corresponds to the JSON property `taskName` # @return [String] @@ -207,17 +418,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] @@ -276,33 +487,68 @@ module Google 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] + attr_accessor :module_id + + # Time when the request finished. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # User agent that made the request. + # Corresponds to the JSON property `userAgent` + # @return [String] + attr_accessor :user_agent + + # Whether this was a loading request for the instance. + # Corresponds to the JSON property `wasLoadingRequest` + # @return [Boolean] + attr_accessor :was_loading_request + alias_method :was_loading_request?, :was_loading_request + + # Source code for the application that handled this request. There can be more + # than one source reference per deployed application if source code is + # distributed among multiple repositories. + # Corresponds to the JSON property `sourceReference` + # @return [Array] + attr_accessor :source_reference + + # Size in bytes sent back to client by request. + # Corresponds to the JSON property `responseSize` + # @return [String] + attr_accessor :response_size + + # Stackdriver Trace identifier for this request. + # 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) - @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) - @was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request) - @source_reference = args[:source_reference] if args.key?(:source_reference) - @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) @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) @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) - @finished = args[:finished] if args.key?(:finished) @host = args[:host] if args.key?(:host) + @finished = args[:finished] if args.key?(:finished) @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) @@ -314,6 +560,14 @@ module Google @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) + @was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request) + @source_reference = args[:source_reference] if args.key?(:source_reference) + @response_size = args[:response_size] if args.key?(:response_size) + @trace_id = args[:trace_id] if args.key?(:trace_id) end end @@ -372,36 +626,11 @@ 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. 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". @@ -415,16 +644,28 @@ module Google attr_accessor :first alias_method :first?, :first + # Optional. Set this to True if this is the last log entry in the operation. + # Corresponds to the JSON property `last` + # @return [Boolean] + attr_accessor :last + alias_method :last?, :last + + # 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 + 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) + @last = args[:last] if args.key?(:last) + @id = args[:id] if args.key?(:id) end end @@ -478,6 +719,19 @@ 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 + # 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 @@ -518,93 +772,6 @@ module Google 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. 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 - - # 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]" - # "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. 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @filter = args[:filter] if args.key?(:filter) - @destination = args[:destination] if args.key?(:destination) - @end_time = args[:end_time] if args.key?(:end_time) - end - end - # The parameters to WriteLogEntries. class WriteLogEntriesRequest include Google::Apis::Core::Hashable @@ -683,6 +850,93 @@ module Google 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 + + # 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 + + # 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]" + # "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. 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @filter = args[:filter] if args.key?(:filter) + @destination = args[:destination] if args.key?(:destination) + @end_time = args[:end_time] if args.key?(:end_time) + end + end + # Result returned from ListLogs. class ListLogsResponse include Google::Apis::Core::Hashable @@ -711,45 +965,12 @@ module Google 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 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] @@ -827,13 +1048,18 @@ module Google # @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 + 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) @@ -847,6 +1073,34 @@ module Google @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) + 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 @@ -854,11 +1108,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] @@ -869,15 +1118,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 @@ -891,16 +1145,6 @@ module Google 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". @@ -928,17 +1172,27 @@ module Google # @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) - @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) + @name = args[:name] if args.key?(:name) end end @@ -947,12 +1201,6 @@ module Google class LogEntrySourceLocation include Google::Apis::Core::Hashable - # Optional. Line within the source file. 1-based; 0 indicates no line number - # available. - # Corresponds to the JSON property `line` - # @return [String] - attr_accessor :line - # 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` @@ -968,15 +1216,21 @@ module Google # @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 [String] + attr_accessor :line + 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 = args[:function] if args.key?(:function) + @line = args[:line] if args.key?(:line) end end @@ -984,6 +1238,11 @@ module Google 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 @@ -997,275 +1256,16 @@ module Google # @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 - - # 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 - - # 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 - - # 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. 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. 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. 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) - @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) - @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 - - # 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 [String] - 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 end end diff --git a/generated/google/apis/logging_v2beta1/representations.rb b/generated/google/apis/logging_v2beta1/representations.rb index efe778f1a..bc50b789a 100644 --- a/generated/google/apis/logging_v2beta1/representations.rb +++ b/generated/google/apis/logging_v2beta1/representations.rb @@ -22,108 +22,6 @@ 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 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 LogMetric - 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 LogSink - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class WriteLogEntriesRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListLogsResponse - 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 HttpRequest - 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 @@ -155,208 +53,105 @@ module Google end class ListLogEntriesRequest - # @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 + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class RequestLog - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :response_size, 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' - 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, as: 'megaCycles' - property :first, as: 'first' - end + include Google::Apis::Core::JsonObjectSupport end class ListMonitoredResourceDescriptorsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class SourceReference - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :repository, as: 'repository' - property :revision_id, as: 'revisionId' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class WriteLogEntriesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + include Google::Apis::Core::JsonObjectSupport 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' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + 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 MonitoredResource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :type, as: 'type' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class LogSink - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :start_time, as: 'startTime' - property :writer_identity, as: 'writerIdentity' - property :output_version_format, as: 'outputVersionFormat' - property :name, as: 'name' - property :filter, as: 'filter' - property :destination, as: 'destination' - property :end_time, as: 'endTime' - end + include Google::Apis::Core::JsonObjectSupport end class WriteLogEntriesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :log_name, as: 'logName' - collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation + include Google::Apis::Core::JsonObjectSupport + end - property :partial_success, as: 'partialSuccess' - end + class LogSink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListLogsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :log_names, as: 'logNames' - property :next_page_token, as: 'nextPageToken' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class ListSinksResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation - - end + include Google::Apis::Core::JsonObjectSupport end 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 :latency, as: 'latency' - property :user_agent, as: 'userAgent' - property :cache_fill_bytes, as: 'cacheFillBytes' - property :request_method, as: 'requestMethod' - property :request_size, as: 'requestSize' - property :response_size, as: 'responseSize' - property :request_url, as: 'requestUrl' - property :remote_ip, as: 'remoteIp' - property :server_ip, as: 'serverIp' - end + 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 - # @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::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::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 :line, as: 'line' - property :file, as: 'file' - property :function, as: 'function' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class LogLine @@ -382,23 +177,23 @@ module Google class LogEntry # @private class Representation < Google::Apis::Core::JsonRepresentation - property :timestamp, as: 'timestamp' 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 + 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' - property :trace, as: 'trace' 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' end end @@ -411,11 +206,216 @@ module Google class SourceLocation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :line, as: 'line' property :file, as: 'file' property :function_name, as: 'functionName' + end + end + + class ListLogEntriesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + property :order_by, as: 'orderBy' + collection :resource_names, as: 'resourceNames' + property :filter, as: 'filter' + collection :project_ids, as: 'projectIds' + end + end + + class RequestLog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 :pending_time, as: 'pendingTime' + property :resource, as: 'resource' + 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, 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 + + property :response_size, as: 'responseSize' + property :trace_id, as: 'traceId' + end + end + + class ListMonitoredResourceDescriptorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class SourceReference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :repository, as: 'repository' + property :revision_id, as: 'revisionId' + 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 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 MonitoredResource + # @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 + 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 :partial_success, as: 'partialSuccess' + end + end + + class LogSink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :writer_identity, as: 'writerIdentity' + property :start_time, as: 'startTime' + property :output_version_format, as: 'outputVersionFormat' + property :name, as: 'name' + property :filter, as: 'filter' + property :destination, as: 'destination' + property :end_time, as: 'endTime' + end + end + + class ListLogsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :log_names, as: 'logNames' + property :next_page_token, as: 'nextPageToken' + end + end + + class HttpRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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, as: 'cacheFillBytes' + property :request_method, as: 'requestMethod' + property :request_size, as: 'requestSize' + property :response_size, as: 'responseSize' + property :request_url, as: 'requestUrl' + property :remote_ip, as: 'remoteIp' + property :server_ip, as: 'serverIp' + property :cache_lookup, as: 'cacheLookup' + end + end + + class ListSinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class LabelDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :value_type, as: 'valueType' + property :key, as: 'key' + 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::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation + + property :name, as: 'name' + end + end + + class LogEntrySourceLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file, as: 'file' + property :function, as: 'function' property :line, as: 'line' end end + + class ListLogEntriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation + + property :next_page_token, as: 'nextPageToken' + end + end end end end diff --git a/generated/google/apis/logging_v2beta1/service.rb b/generated/google/apis/logging_v2beta1/service.rb index 659359083..0f223e9c6 100644 --- a/generated/google/apis/logging_v2beta1/service.rb +++ b/generated/google/apis/logging_v2beta1/service.rb @@ -46,76 +46,7 @@ module Google super('https://logging.googleapis.com/', '') end - # Creates a logs-based metric. - # @param [String] parent - # The resource name of the project in which to create the metric: - # "projects/[PROJECT_ID]" - # The new metric must be provided in the request. - # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2beta1::LogMetric] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options) - command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation - command.request_object = log_metric_object - command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation - command.response_class = Google::Apis::LoggingV2beta1::LogMetric - command.params['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 - - # 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 - - # Lists logs-based metrics. - # @param [String] parent - # Required. The name of the project containing the metrics: - # "projects/[PROJECT_ID]" + # 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 # preceding call to this method. pageToken must be the value of nextPageToken @@ -125,139 +56,31 @@ module Google # 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 [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::LoggingV2beta1::ListLogMetricsResponse] parsed result object + # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] + # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options) - command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation - command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse - command.params['parent'] = parent unless parent.nil? + def list_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options) + command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets a logs-based metric. - # @param [String] metric_name - # The resource name of the desired metric: - # "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: - # "projects/[PROJECT_ID]/metrics/[METRIC_ID]" - # The updated metric must be provided in the request and it's name field must be - # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a - # new metric is created. - # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2beta1::LogMetric] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v2beta1/{+metricName}', options) - command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation - command.request_object = log_metric_object - command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation - command.response_class = Google::Apis::LoggingV2beta1::LogMetric - command.params['metricName'] = metric_name unless metric_name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes 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_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 @@ -278,11 +101,11 @@ module Google # 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -295,68 +118,200 @@ 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_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_organization_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end - # Creates a sink that exports specified log entries to a destination. The export - # of newly-ingested log entries begins immediately, unless the current time is - # outside the sink's start and end times or the sink's writer_identity is not - # permitted to write to the destination. A sink can export log entries only from - # the resource owning the sink. - # @param [String] parent - # Required. The resource in which to create the sink: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # Examples: "projects/my-logging-project", "organizations/123456789". - # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object - # @param [Boolean] unique_writer_identity - # Optional. Determines the kind of IAM identity returned as writer_identity in - # the new sink. If this value is omitted or set to false, and if the sink's - # parent is a project, then the value returned as writer_identity is the same - # group or service account used by Stackdriver Logging before the addition of - # writer identities to this API. The sink's destination must be in the same - # project as the sink itself.If this field is set to true, or if the sink is - # owned by a non-project resource such as an organization, then the value of - # writer_identity will be a unique service account used only for exports from - # the new sink. For more information, see writer_identity in LogSink. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # 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] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not 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::LoggingV2beta1::LogSink] parsed result object + # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::LoggingV2beta1::LogSink] + # @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 create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options) - command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation - command.request_object = log_sink_object - command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation - command.response_class = Google::Apis::LoggingV2beta1::LogSink - command.params['parent'] = parent unless parent.nil? - command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil? - command.query['fields'] = fields unless fields.nil? + def delete_organization_log(log_name, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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 + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::LoggingV2beta1::ListLogEntriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/entries:list', options) + command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation + command.request_object = list_log_entries_request_object + command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Writes log entries to Stackdriver Logging. + # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_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::LoggingV2beta1::WriteLogEntriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/entries:write', options) + command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation + command.request_object = write_log_entries_request_object + command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::LoggingV2beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_log(log_name, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -370,11 +325,11 @@ module Google # "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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -387,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 delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options) command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation command.response_class = Google::Apis::LoggingV2beta1::Empty command.params['sinkName'] = sink_name unless sink_name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -413,11 +368,11 @@ module Google # 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -430,15 +385,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_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options) command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation command.response_class = Google::Apis::LoggingV2beta1::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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -450,11 +405,11 @@ module Google # "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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -467,13 +422,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_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_sink(sink_name, quota_user: nil, fields: 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -501,11 +456,11 @@ module Google # If the old value is false and the new value is true, then writer_identity is # changed to a unique service account. # It is an error if the old value is true and the new value is false. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -518,7 +473,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_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block) + def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:put, 'v2beta1/{+sinkName}', options) command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation command.request_object = log_sink_object @@ -526,8 +481,237 @@ module Google command.response_class = Google::Apis::LoggingV2beta1::LogSink command.params['sinkName'] = sink_name unless sink_name.nil? command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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 sink that exports specified log entries to a destination. The export + # of newly-ingested log entries begins immediately, unless the current time is + # outside the sink's start and end times or the sink's writer_identity is not + # permitted to write to the destination. A sink can export log entries only from + # the resource owning the sink. + # @param [String] parent + # Required. The resource in which to create the sink: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # Examples: "projects/my-logging-project", "organizations/123456789". + # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object + # @param [Boolean] unique_writer_identity + # Optional. Determines the kind of IAM identity returned as writer_identity in + # the new sink. If this value is omitted or set to false, and if the sink's + # parent is a project, then the value returned as writer_identity is the same + # group or service account used by Stackdriver Logging before the addition of + # writer identities to this API. The sink's destination must be in the same + # project as the sink itself.If this field is set to true, or if the sink is + # owned by a non-project resource such as an organization, then the value of + # writer_identity will be a unique service account used only for exports from + # the new sink. For more information, see writer_identity in LogSink. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::LoggingV2beta1::LogSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::LogSink] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options) + command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation + command.request_object = log_sink_object + command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation + command.response_class = Google::Apis::LoggingV2beta1::LogSink + command.params['parent'] = parent unless parent.nil? + command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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 logs-based metric. + # @param [String] parent + # The resource name of the project in which to create the metric: + # "projects/[PROJECT_ID]" + # The new metric must be provided in the request. + # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_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::LoggingV2beta1::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::LogMetric] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options) + command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation + command.request_object = log_metric_object + command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation + command.response_class = Google::Apis::LoggingV2beta1::LogMetric + command.params['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 + + # 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::LoggingV2beta1::ListLogMetricsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options) + command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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: + # "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + # The updated metric must be provided in the request and it's name field must be + # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a + # new metric is created. + # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_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::LoggingV2beta1::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::LogMetric] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v2beta1/{+metricName}', options) + command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation + command.request_object = log_metric_object + command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation + command.response_class = Google::Apis::LoggingV2beta1::LogMetric + command.params['metricName'] = metric_name unless metric_name.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -543,11 +727,11 @@ module Google # [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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -560,13 +744,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_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block) + def delete_billing_account_log(log_name, quota_user: nil, fields: 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -578,20 +762,20 @@ module Google # "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 [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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -604,199 +788,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_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_billing_account_logs(parent, page_size: nil, page_token: nil, quota_user: nil, fields: 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 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 - # 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::ListMonitoredResourceDescriptorsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options) - command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation - command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse command.query['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_organization_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_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 - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/entries:list', options) - command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation - command.request_object = list_log_entries_request_object - command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation - command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Writes log entries to Stackdriver Logging. - # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/entries:write', options) - command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation - command.request_object = write_log_entries_request_object - command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation - command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/manufacturers_v1/classes.rb b/generated/google/apis/manufacturers_v1/classes.rb index ecea927ef..9171cea0c 100644 --- a/generated/google/apis/manufacturers_v1/classes.rb +++ b/generated/google/apis/manufacturers_v1/classes.rb @@ -22,6 +22,153 @@ module Google module Apis module ManufacturersV1 + # The number of products in a single package. For more information, see + # https://support.google.com/manufacturers/answer/6124116#count. + 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 [String] + attr_accessor :value + + # The unit in which these products are counted. + # 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 + + # Product data. + class Product + include Google::Apis::Core::Hashable + + # 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 + + # A server-generated list of issues associated with the product. + # @OutputOnly + # Corresponds to the JSON property `issues` + # @return [Array] + attr_accessor :issues + + # Attributes of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116. + # Corresponds to the JSON property `finalAttributes` + # @return [Google::Apis::ManufacturersV1::Attributes] + attr_accessor :final_attributes + + # The ID of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#id. + # @OutputOnly + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # Attributes of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116. + # Corresponds to the JSON property `uploadedAttributes` + # @return [Google::Apis::ManufacturersV1::Attributes] + attr_accessor :uploaded_attributes + + # Parent ID in the format `accounts/`account_id``. + # `account_id` - The ID of the Manufacturer Center account. + # @OutputOnly + # Corresponds to the JSON property `parent` + # @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 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @manually_deleted_attributes = args[:manually_deleted_attributes] if args.key?(:manually_deleted_attributes) + @issues = args[:issues] if args.key?(:issues) + @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) + @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) + 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 [String] + 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 @@ -79,42 +226,15 @@ module Google 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 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] @@ -138,10 +258,39 @@ module Google # @return [String] attr_accessor :attribute - # The timestamp when this issue appeared. - # Corresponds to the JSON property `timestamp` + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @severity = args[:severity] if args.key?(:severity) + @description = args[:description] if args.key?(:description) + @type = args[:type] if args.key?(:type) + @attribute = args[:attribute] if args.key?(:attribute) + 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 short description of the feature. + # Corresponds to the JSON property `headline` # @return [String] - attr_accessor :timestamp + attr_accessor :headline + + # 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 def initialize(**args) update!(**args) @@ -149,11 +298,9 @@ module Google # Update properties of this object def update!(**args) - @severity = args[:severity] if args.key?(:severity) - @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) + @headline = args[:headline] if args.key?(:headline) + @text = args[:text] if args.key?(:text) + @image = args[:image] if args.key?(:image) end end @@ -186,12 +333,6 @@ module Google class Image include Google::Apis::Core::Hashable - # The status of the image. - # @OutputOnly - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - # The type of the image, i.e., crawled or uploaded. # @OutputOnly # Corresponds to the JSON property `type` @@ -205,15 +346,21 @@ module Google # @return [String] attr_accessor :image_url + # The status of the image. + # @OutputOnly + # 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) - @status = args[:status] if args.key?(:status) @type = args[:type] if args.key?(:type) @image_url = args[:image_url] if args.key?(:image_url) + @status = args[:status] if args.key?(:status) end end @@ -222,70 +369,11 @@ module Google class Attributes include Google::Apis::Core::Hashable - # The canonical name of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#productname. - # Corresponds to the JSON property `productName` + # 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 :product_name - - # The size type of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#sizetype. - # Corresponds to the JSON property `sizeType` - # @return [String] - attr_accessor :size_type - - # A price. - # Corresponds to the JSON property `suggestedRetailPrice` - # @return [Google::Apis::ManufacturersV1::Price] - attr_accessor :suggested_retail_price - - # The rich format description of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#featuredesc. - # Corresponds to the JSON property `featureDescription` - # @return [Array] - attr_accessor :feature_description - - # The size of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#size. - # Corresponds to the JSON property `size` - # @return [String] - attr_accessor :size - - # The title of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#title. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # The number of products in a single package. For more information, see - # https://support.google.com/manufacturers/answer/6124116#count. - # Corresponds to the JSON property `count` - # @return [Google::Apis::ManufacturersV1::Count] - attr_accessor :count - - # The brand name of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#brand. - # Corresponds to the JSON property `brand` - # @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 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 + attr_accessor :flavor # The details of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#productdetail. @@ -293,12 +381,6 @@ 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` - # @return [String] - attr_accessor :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` @@ -413,25 +495,79 @@ module Google # @return [String] attr_accessor :color + # The canonical name of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#productname. + # Corresponds to the JSON property `productName` + # @return [String] + attr_accessor :product_name + + # The size type of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#sizetype. + # Corresponds to the JSON property `sizeType` + # @return [String] + attr_accessor :size_type + + # A price. + # Corresponds to the JSON property `suggestedRetailPrice` + # @return [Google::Apis::ManufacturersV1::Price] + attr_accessor :suggested_retail_price + + # The rich format description of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#featuredesc. + # Corresponds to the JSON property `featureDescription` + # @return [Array] + attr_accessor :feature_description + + # The size of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#size. + # Corresponds to the JSON property `size` + # @return [String] + attr_accessor :size + + # The title of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#title. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # The number of products in a single package. For more information, see + # https://support.google.com/manufacturers/answer/6124116#count. + # Corresponds to the JSON property `count` + # @return [Google::Apis::ManufacturersV1::Count] + attr_accessor :count + + # The brand name of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#brand. + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @product_name = args[:product_name] if args.key?(:product_name) - @size_type = args[:size_type] if args.key?(:size_type) - @suggested_retail_price = args[:suggested_retail_price] if args.key?(:suggested_retail_price) - @feature_description = args[:feature_description] if args.key?(:feature_description) - @size = args[:size] if args.key?(:size) - @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) - @scent = args[:scent] if args.key?(:scent) - @product_detail = args[:product_detail] if args.key?(:product_detail) @flavor = args[:flavor] if args.key?(:flavor) + @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) @@ -451,153 +587,17 @@ module Google @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) - end - end - - # The number of products in a single package. For more information, see - # https://support.google.com/manufacturers/answer/6124116#count. - 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 [String] - attr_accessor :value - - # The unit in which these products are counted. - # 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 - - # Product data. - 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 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 - - # 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 - - # A server-generated list of issues associated with the product. - # @OutputOnly - # Corresponds to the JSON property `issues` - # @return [Array] - attr_accessor :issues - - # Attributes of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116. - # Corresponds to the JSON property `finalAttributes` - # @return [Google::Apis::ManufacturersV1::Attributes] - attr_accessor :final_attributes - - # The ID of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#id. - # @OutputOnly - # Corresponds to the JSON property `productId` - # @return [String] - attr_accessor :product_id - - # Attributes of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116. - # Corresponds to the JSON property `uploadedAttributes` - # @return [Google::Apis::ManufacturersV1::Attributes] - attr_accessor :uploaded_attributes - - # Parent ID in the format `accounts/`account_id``. - # `account_id` - The ID of the Manufacturer Center account. - # @OutputOnly - # Corresponds to the JSON property `parent` - # @return [String] - attr_accessor :parent - - 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) - @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) - @manually_deleted_attributes = args[:manually_deleted_attributes] if args.key?(:manually_deleted_attributes) - @issues = args[:issues] if args.key?(:issues) - @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 [String] - 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) + @product_name = args[:product_name] if args.key?(:product_name) + @size_type = args[:size_type] if args.key?(:size_type) + @suggested_retail_price = args[:suggested_retail_price] if args.key?(:suggested_retail_price) + @feature_description = args[:feature_description] if args.key?(:feature_description) + @size = args[:size] if args.key?(:size) + @title = args[:title] if args.key?(:title) + @count = args[:count] if args.key?(:count) + @brand = args[:brand] if args.key?(:brand) + @disclosure_date = args[:disclosure_date] if args.key?(:disclosure_date) + @material = args[:material] if args.key?(:material) + @scent = args[:scent] if args.key?(:scent) end end end diff --git a/generated/google/apis/manufacturers_v1/representations.rb b/generated/google/apis/manufacturers_v1/representations.rb index 30d03a1dd..108f97dcf 100644 --- a/generated/google/apis/manufacturers_v1/representations.rb +++ b/generated/google/apis/manufacturers_v1/representations.rb @@ -22,6 +22,24 @@ module Google module Apis module ManufacturersV1 + class Count + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Product + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Capacity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListProductsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -34,13 +52,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class FeatureDescription + class Issue class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Issue + class FeatureDescription class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -65,21 +83,39 @@ module Google end class Count - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + property :unit, as: 'unit' + end end class Product - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes' + collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation - include Google::Apis::Core::JsonObjectSupport + 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' + 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' + end end class Capacity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + property :unit, as: 'unit' + end end class ListProductsResponse @@ -100,24 +136,24 @@ module Google end end - class FeatureDescription - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation - - property :headline, as: 'headline' - property :text, as: 'text' - end - end - class Issue # @private class Representation < Google::Apis::Core::JsonRepresentation + property :timestamp, as: 'timestamp' property :severity, as: 'severity' property :description, as: 'description' property :type, as: 'type' property :attribute, as: 'attribute' - property :timestamp, as: 'timestamp' + end + end + + class FeatureDescription + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :headline, as: 'headline' + property :text, as: 'text' + property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation + end end @@ -132,32 +168,18 @@ module Google class Image # @private class Representation < Google::Apis::Core::JsonRepresentation - property :status, as: 'status' property :type, as: 'type' property :image_url, as: 'imageUrl' + property :status, as: 'status' end end class Attributes # @private class Representation < Google::Apis::Core::JsonRepresentation - property :product_name, as: 'productName' - property :size_type, as: 'sizeType' - property :suggested_retail_price, as: 'suggestedRetailPrice', class: Google::Apis::ManufacturersV1::Price, decorator: Google::Apis::ManufacturersV1::Price::Representation - - collection :feature_description, as: 'featureDescription', class: Google::Apis::ManufacturersV1::FeatureDescription, decorator: Google::Apis::ManufacturersV1::FeatureDescription::Representation - - property :size, as: 'size' - property :title, as: 'title' - 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 :scent, as: 'scent' + 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 :age_group, as: 'ageGroup' property :mpn, as: 'mpn' property :product_page_url, as: 'productPageUrl' @@ -180,42 +202,20 @@ module Google collection :video_link, as: 'videoLink' property :color, as: 'color' - end - end + property :product_name, as: 'productName' + property :size_type, as: 'sizeType' + property :suggested_retail_price, as: 'suggestedRetailPrice', class: Google::Apis::ManufacturersV1::Price, decorator: Google::Apis::ManufacturersV1::Price::Representation - class Count - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :value, as: 'value' - property :unit, as: 'unit' - end - end + collection :feature_description, as: 'featureDescription', class: Google::Apis::ManufacturersV1::FeatureDescription, decorator: Google::Apis::ManufacturersV1::FeatureDescription::Representation - 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 :size, as: 'size' + property :title, as: 'title' + property :count, as: 'count', class: Google::Apis::ManufacturersV1::Count, decorator: Google::Apis::ManufacturersV1::Count::Representation - property :target_country, as: 'targetCountry' - property :content_language, as: 'contentLanguage' - property :name, as: 'name' - collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes' - collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation - - 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 - - class Capacity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :value, as: 'value' - property :unit, as: 'unit' + property :brand, as: 'brand' + property :disclosure_date, as: 'disclosureDate' + property :material, as: 'material' + property :scent, as: 'scent' end end end diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index baf4f761c..bf6c2d1f2 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 = '20170327' + REVISION = '20170320' # 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 4c6946a18..fe8150131 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -22,6 +22,269 @@ module Google module Apis module MlV1 + # Message that represents an arbitrary HTTP body. It should only be used for + # payload formats that can't be represented as JSON, such as raw binary or + # an HTML page. + # This message can be used both in streaming and non-streaming API methods in + # the request as well as the response. + # It can be used as a top-level request field, which is convenient if one + # wants to extract parameters from either the URL or HTTP template into the + # request fields and also want access to the raw HTTP body. + # Example: + # message GetResourceRequest ` + # // A unique request id. + # string request_id = 1; + # // The raw HTTP body is bound to this field. + # google.api.HttpBody http_body = 2; + # ` + # service ResourceService ` + # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); + # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); + # ` + # Example with streaming methods: + # service CaldavService ` + # rpc GetCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # rpc UpdateCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # ` + # Use of this type only changes how the request and response bodies are + # handled, all other features will continue to work unchanged. + class GoogleApiHttpBody + include Google::Apis::Core::Hashable + + # HTTP body binary data. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # The HTTP Content-Type string representing the content type of the body. + # 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) + @data = args[:data] if args.key?(:data) + @content_type = args[:content_type] if args.key?(:content_type) + end + end + + # 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/v1beta1/projects. + # models.versions/list). + class GoogleCloudMlV1beta1Version + include Google::Apis::Core::Hashable + + # 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 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 + + # Optional. The description specified for the version when it was created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The Google Cloud Storage location of the trained model used to + # create the version. See the + # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview) + # for + # more informaiton. + # When passing Version to + # [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects. + # models.versions/create) + # the model service uses the specified location as the source of the model. + # Once deployed, the model version is hosted by the prediction service, so + # this location is useful only as a historical record. + # Corresponds to the JSON property `deploymentUri` + # @return [String] + attr_accessor :deployment_uri + + # 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 + # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/ + # projects.models.versions/setDefault). + # Corresponds to the JSON property `isDefault` + # @return [Boolean] + attr_accessor :is_default + alias_method :is_default?, :is_default + + # Output only. The time the version was created. + # Corresponds to the JSON property `createTime` + # @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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_use_time = args[:last_use_time] if args.key?(:last_use_time) + @runtime_version = args[:runtime_version] if args.key?(:runtime_version) + @description = args[:description] if args.key?(:description) + @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri) + @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) + @name = args[:name] if args.key?(:name) + end + end + + # Returns service account information associated with a project. + class GoogleCloudMlV1GetConfigResponse + include Google::Apis::Core::Hashable + + # The project number for `service_account`. + # Corresponds to the JSON property `serviceAccountProject` + # @return [String] + attr_accessor :service_account_project + + # The service account Cloud ML uses to access resources in the project. + # Corresponds to the JSON property `serviceAccount` + # @return [String] + attr_accessor :service_account + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @service_account_project = args[:service_account_project] if args.key?(:service_account_project) + @service_account = args[:service_account] if args.key?(:service_account) + end + end + + # Represents the result of a single hyperparameter tuning trial from a + # training job. The TrainingOutput object that is returned on successful + # completion of a training job with hyperparameter tuning includes a list + # of HyperparameterOutput objects, one for each successful trial. + 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] + attr_accessor :hyperparameters + + # The trial id for these results. + # Corresponds to the JSON property `trialId` + # @return [String] + attr_accessor :trial_id + + # All recorded object metrics for this trial. + # Corresponds to the JSON property `allMetrics` + # @return [Array] + attr_accessor :all_metrics + + 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) + end + end + + # Represents results of a prediction job. + class GoogleCloudMlV1PredictionOutput + include Google::Apis::Core::Hashable + + # The number of generated predictions. + # Corresponds to the JSON property `predictionCount` + # @return [String] + attr_accessor :prediction_count + + # The number of data instances which resulted in errors. + # Corresponds to the JSON property `errorCount` + # @return [String] + attr_accessor :error_count + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @prediction_count = args[:prediction_count] if args.key?(:prediction_count) + @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) + end + end + + # The response message for Operations.ListOperations. + class GoogleLongrunningListOperationsResponse + 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 + # Options for manually scaling a model. class GoogleCloudMlV1ManualScaling include Google::Apis::Core::Hashable @@ -311,24 +574,24 @@ module Google class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric include Google::Apis::Core::Hashable - # 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 [String] attr_accessor :training_step + # The objective value at this training step. + # Corresponds to the JSON property `objectiveValue` + # @return [Float] + attr_accessor :objective_value + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @objective_value = args[:objective_value] if args.key?(:objective_value) @training_step = args[:training_step] if args.key?(:training_step) + @objective_value = args[:objective_value] if args.key?(:objective_value) end end @@ -341,6 +604,37 @@ module Google class GoogleCloudMlV1Version include Google::Apis::Core::Hashable + # 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] + attr_accessor :description + + # Required. The Google Cloud Storage location of the trained model used to + # create the version. See the + # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview) + # for + # more informaiton. + # When passing Version to + # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models. + # versions/create) + # the model service uses the specified location as the source of the model. + # Once deployed, the model version is hosted by the prediction service, so + # this location is useful only as a historical record. + # Corresponds to the JSON property `deploymentUri` + # @return [String] + attr_accessor :deployment_uri + # 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 @@ -367,52 +661,20 @@ module Google # @return [String] attr_accessor :name - # 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 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 - - # Optional. The description specified for the version when it was created. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Required. The Google Cloud Storage location of the trained model used to - # create the version. See the - # [overview of model - # deployment](/ml-engine/docs/concepts/deployment-overview) for more - # informaiton. - # When passing Version to - # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models. - # versions/create) - # the model service uses the specified location as the source of the model. - # Once deployed, the model version is hosted by the prediction service, so - # this location is useful only as a historical record. - # The total number of model files can't exceed 1000. - # Corresponds to the JSON property `deploymentUri` - # @return [String] - attr_accessor :deployment_uri - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) @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) @name = args[:name] if args.key?(:name) - @last_use_time = args[:last_use_time] if args.key?(:last_use_time) - @runtime_version = args[:runtime_version] if args.key?(:runtime_version) - @description = args[:description] if args.key?(:description) - @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri) end end @@ -420,6 +682,17 @@ module Google class GoogleCloudMlV1ParameterSpec include Google::Apis::Core::Hashable + # Required if type is `CATEGORICAL`. The list of possible categories. + # Corresponds to the JSON property `categoricalValues` + # @return [Array] + attr_accessor :categorical_values + + # Required. The parameter name must be unique amongst all ParameterConfigs in + # a HyperparameterSpec message. E.g., "learning_rate". + # Corresponds to the JSON property `parameterName` + # @return [String] + attr_accessor :parameter_name + # Required if type is `DOUBLE` or `INTEGER`. This field # should be unset if type is `CATEGORICAL`. This value should be integers if # type is INTEGER. @@ -456,30 +729,19 @@ module Google # @return [String] attr_accessor :type - # Required if type is `CATEGORICAL`. The list of possible categories. - # Corresponds to the JSON property `categoricalValues` - # @return [Array] - attr_accessor :categorical_values - - # Required. The parameter name must be unique amongst all ParameterConfigs in - # a HyperparameterSpec message. E.g., "learning_rate". - # Corresponds to the JSON property `parameterName` - # @return [String] - attr_accessor :parameter_name - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) @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) end end @@ -487,31 +749,6 @@ module Google class GoogleCloudMlV1PredictionInput include Google::Apis::Core::Hashable - # Required. The format of the input data files. - # Corresponds to the JSON property `dataFormat` - # @return [String] - attr_accessor :data_format - - # Optional. The Google Cloud ML runtime version to use for this batch - # prediction. If not set, Google Cloud ML will pick the runtime version used - # during the CreateVersion request for this model version, or choose the - # latest stable version when model version information is not available - # such as when the model is specified by uri. - # Corresponds to the JSON property `runtimeVersion` - # @return [String] - attr_accessor :runtime_version - - # Required. The Google Cloud Storage location of the input data files. - # May contain wildcards. - # Corresponds to the JSON property `inputPaths` - # @return [Array] - attr_accessor :input_paths - - # Required. The Google Compute Engine region to run the prediction job in. - # Corresponds to the JSON property `region` - # @return [String] - attr_accessor :region - # Use this field if you want to specify a version of the model to use. The # string is formatted the same way as `model_version`, with the addition # of the version information: @@ -545,82 +782,46 @@ module Google # @return [String] attr_accessor :max_worker_count + # Required. The format of the input data files. + # Corresponds to the JSON property `dataFormat` + # @return [String] + attr_accessor :data_format + + # Optional. The Google Cloud ML runtime version to use for this batch + # prediction. If not set, Google Cloud ML will pick the runtime version used + # during the CreateVersion request for this model version, or choose the + # latest stable version when model version information is not available + # such as when the model is specified by uri. + # Corresponds to the JSON property `runtimeVersion` + # @return [String] + attr_accessor :runtime_version + + # Required. The Google Cloud Storage location of the input data files. + # May contain wildcards. + # Corresponds to the JSON property `inputPaths` + # @return [Array] + attr_accessor :input_paths + + # Required. The Google Compute Engine region to run the prediction job in. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) - @region = args[:region] if args.key?(:region) @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) - end - end - - # Represents the metadata of the long-running operation. - class GoogleCloudMlV1beta1OperationMetadata - include Google::Apis::Core::Hashable - - # The time operation processing completed. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # The operation type. - # Corresponds to the JSON property `operationType` - # @return [String] - attr_accessor :operation_type - - # The time operation processing started. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Indicates whether a request to cancel this operation has been made. - # Corresponds to the JSON property `isCancellationRequested` - # @return [Boolean] - attr_accessor :is_cancellation_requested - alias_method :is_cancellation_requested?, :is_cancellation_requested - - # The time the operation was submitted. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Contains the name of the model associated with the operation. - # Corresponds to the JSON property `modelName` - # @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/v1beta1/projects. - # models.versions/list). - # Corresponds to the JSON property `version` - # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1Version] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) + @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) + @region = args[:region] if args.key?(:region) end end @@ -628,11 +829,6 @@ module Google class GoogleCloudMlV1OperationMetadata include Google::Apis::Core::Hashable - # The time the operation was submitted. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - # Contains the name of the model associated with the operation. # Corresponds to the JSON property `modelName` # @return [String] @@ -669,19 +865,85 @@ module Google attr_accessor :is_cancellation_requested alias_method :is_cancellation_requested?, :is_cancellation_requested + # The time the operation was submitted. + # 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) - @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_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) + end + end + + # Represents the metadata of the long-running operation. + class GoogleCloudMlV1beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The operation type. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The time operation processing started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Indicates whether a request to cancel this operation has been made. + # Corresponds to the JSON property `isCancellationRequested` + # @return [Boolean] + attr_accessor :is_cancellation_requested + alias_method :is_cancellation_requested?, :is_cancellation_requested + + # The time the operation was submitted. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Contains the name of the model associated with the operation. + # Corresponds to the JSON property `modelName` + # @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/v1beta1/projects. + # models.versions/list). + # Corresponds to the JSON property `version` + # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1Version] + attr_accessor :version + + # The time operation processing completed. + # 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) + @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_time = args[:end_time] if args.key?(:end_time) end end @@ -689,6 +951,18 @@ module Google class GoogleCloudMlV1HyperparameterSpec include Google::Apis::Core::Hashable + # 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 + # 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 @@ -717,29 +991,17 @@ 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @params = args[:params] if args.key?(:params) + @max_trials = args[:max_trials] if args.key?(:max_trials) @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) end end @@ -747,25 +1009,25 @@ module Google class GoogleCloudMlV1ListJobsResponse include Google::Apis::Core::Hashable + # The list of jobs. + # Corresponds to the JSON property `jobs` + # @return [Array] + attr_accessor :jobs + # 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 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) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -787,6 +1049,14 @@ module Google class GoogleLongrunningOperation 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 @@ -857,25 +1127,17 @@ 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) - @done = args[:done] if args.key?(:done) end end @@ -886,13 +1148,6 @@ module Google class GoogleCloudMlV1Model include Google::Apis::Core::Hashable - # 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 @@ -927,17 +1182,24 @@ module Google # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging) @default_version = args[:default_version] if args.key?(:default_version) @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) end end @@ -977,25 +1239,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 @@ -1093,66 +1355,10 @@ module Google end end - # Response message for the ListModels method. - class GoogleCloudMlV1ListModelsResponse - include Google::Apis::Core::Hashable - - # 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) - end - end - # Represents input parameters for a training job. 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` @@ -1183,7 +1389,6 @@ module Google # 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 @@ -1257,16 +1462,42 @@ 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @region = args[:region] if args.key?(:region) - @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) @@ -1276,6 +1507,36 @@ module Google @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) + @parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type) + end + end + + # Response message for the ListModels method. + class GoogleCloudMlV1ListModelsResponse + include Google::Apis::Core::Hashable + + # 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) end end @@ -1283,26 +1544,6 @@ module Google class GoogleCloudMlV1Job include Google::Apis::Core::Hashable - # 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 - # Output only. When the job processing was completed. # Corresponds to the JSON property `endTime` # @return [String] @@ -1323,295 +1564,52 @@ module Google # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput] attr_accessor :training_output - # Represents input parameters for a training job. - # Corresponds to the JSON property `trainingInput` - # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput] - attr_accessor :training_input - # Output only. When the job was created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time + # Represents input parameters for a training job. + # Corresponds to the JSON property `trainingInput` + # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput] + attr_accessor :training_input + + # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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_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) - @create_time = args[:create_time] if args.key?(:create_time) - end - end - - # Message that represents an arbitrary HTTP body. It should only be used for - # payload formats that can't be represented as JSON, such as raw binary or - # an HTML page. - # This message can be used both in streaming and non-streaming API methods in - # the request as well as the response. - # It can be used as a top-level request field, which is convenient if one - # wants to extract parameters from either the URL or HTTP template into the - # request fields and also want access to the raw HTTP body. - # Example: - # message GetResourceRequest ` - # // A unique request id. - # string request_id = 1; - # // The raw HTTP body is bound to this field. - # google.api.HttpBody http_body = 2; - # ` - # service ResourceService ` - # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); - # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); - # ` - # Example with streaming methods: - # service CaldavService ` - # rpc GetCalendar(stream google.api.HttpBody) - # returns (stream google.api.HttpBody); - # rpc UpdateCalendar(stream google.api.HttpBody) - # returns (stream google.api.HttpBody); - # ` - # Use of this type only changes how the request and response bodies are - # handled, all other features will continue to work unchanged. - class GoogleApiHttpBody - include Google::Apis::Core::Hashable - - # HTTP body binary data. - # Corresponds to the JSON property `data` - # @return [String] - attr_accessor :data - - # The HTTP Content-Type string representing the content type of the body. - # 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) - @data = args[:data] if args.key?(:data) - @content_type = args[:content_type] if args.key?(:content_type) - end - end - - # Returns service account information associated with a project. - class GoogleCloudMlV1GetConfigResponse - include Google::Apis::Core::Hashable - - # The project number for `service_account`. - # Corresponds to the JSON property `serviceAccountProject` - # @return [String] - attr_accessor :service_account_project - - # The service account Cloud ML uses to access resources in the project. - # Corresponds to the JSON property `serviceAccount` - # @return [String] - attr_accessor :service_account - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @service_account_project = args[:service_account_project] if args.key?(:service_account_project) - @service_account = args[:service_account] if args.key?(:service_account) - end - end - - # 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/v1beta1/projects. - # models.versions/list). - class GoogleCloudMlV1beta1Version - include Google::Apis::Core::Hashable - - # Output only. The time the version was created. - # Corresponds to the JSON property `createTime` - # @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 - - # 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 time the version was last used for prediction. - # Corresponds to the JSON property `lastUseTime` - # @return [String] - attr_accessor :last_use_time - - # 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 - - # Optional. The description specified for the version when it was created. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Required. The Google Cloud Storage location of the trained model used to - # create the version. See the - # [overview of model - # deployment](/ml-engine/docs/concepts/deployment-overview) for more - # informaiton. - # When passing Version to - # [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects. - # models.versions/create) - # the model service uses the specified location as the source of the model. - # Once deployed, the model version is hosted by the prediction service, so - # this location is useful only as a historical record. - # The total number of model files can't exceed 1000. - # Corresponds to the JSON property `deploymentUri` - # @return [String] - attr_accessor :deployment_uri - - # 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 - # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/ - # projects.models.versions/setDefault). - # Corresponds to the JSON property `isDefault` - # @return [Boolean] - attr_accessor :is_default - alias_method :is_default?, :is_default - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @create_time = args[:create_time] if args.key?(:create_time) - @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling) - @name = args[:name] if args.key?(:name) - @last_use_time = args[:last_use_time] if args.key?(:last_use_time) - @runtime_version = args[:runtime_version] if args.key?(:runtime_version) - @description = args[:description] if args.key?(:description) - @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri) - @is_default = args[:is_default] if args.key?(:is_default) - end - end - - # Represents the result of a single hyperparameter tuning trial from a - # training job. The TrainingOutput object that is returned on successful - # completion of a training job with hyperparameter tuning includes a list - # of HyperparameterOutput objects, one for each successful trial. - class GoogleCloudMlV1HyperparameterOutput - include Google::Apis::Core::Hashable - - # All recorded object metrics for this trial. - # Corresponds to the JSON property `allMetrics` - # @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 - - # The hyperparameters given to this trial. - # Corresponds to the JSON property `hyperparameters` - # @return [Hash] - attr_accessor :hyperparameters - - # The trial id for these results. - # Corresponds to the JSON property `trialId` - # @return [String] - attr_accessor :trial_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @all_metrics = args[:all_metrics] if args.key?(:all_metrics) - @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) - end - end - - # Represents results of a prediction job. - class GoogleCloudMlV1PredictionOutput - include Google::Apis::Core::Hashable - - # The number of data instances which resulted in errors. - # Corresponds to the JSON property `errorCount` - # @return [String] - attr_accessor :error_count - - # 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 [String] - attr_accessor :prediction_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) - @prediction_count = args[:prediction_count] if args.key?(:prediction_count) - end - end - - # The response message for Operations.ListOperations. - class GoogleLongrunningListOperationsResponse - 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) + @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 end end diff --git a/generated/google/apis/ml_v1/representations.rb b/generated/google/apis/ml_v1/representations.rb index 5e9fbe3c2..eebb5a270 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 GoogleApiHttpBody + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudMlV1beta1Version + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudMlV1GetConfigResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudMlV1HyperparameterOutput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudMlV1PredictionOutput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudMlV1ManualScaling class Representation < Google::Apis::Core::JsonRepresentation; end @@ -64,13 +100,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudMlV1beta1OperationMetadata + class GoogleCloudMlV1OperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudMlV1OperationMetadata + class GoogleCloudMlV1beta1OperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -136,13 +172,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudMlV1ListModelsResponse + class GoogleCloudMlV1TrainingInput class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudMlV1TrainingInput + class GoogleCloudMlV1ListModelsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -155,39 +191,65 @@ module Google end class GoogleApiHttpBody - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudMlV1GetConfigResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data, :base64 => true, as: 'data' + property :content_type, as: 'contentType' + end end class GoogleCloudMlV1beta1Version - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_use_time, as: 'lastUseTime' + property :runtime_version, as: 'runtimeVersion' + property :description, as: 'description' + property :deployment_uri, as: 'deploymentUri' + property :is_default, as: 'isDefault' + property :create_time, as: 'createTime' + property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling::Representation - include Google::Apis::Core::JsonObjectSupport + property :name, as: 'name' + end + end + + class GoogleCloudMlV1GetConfigResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service_account_project, as: 'serviceAccountProject' + property :service_account, as: 'serviceAccount' + end end class GoogleCloudMlV1HyperparameterOutput - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :final_metric, as: 'finalMetric', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::Representation - include Google::Apis::Core::JsonObjectSupport + 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 + + end end class GoogleCloudMlV1PredictionOutput - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :prediction_count, as: 'predictionCount' + property :error_count, as: 'errorCount' + property :output_path, as: 'outputPath' + property :node_hours, as: 'nodeHours' + end end class GoogleLongrunningListOperationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + end end class GoogleCloudMlV1ManualScaling @@ -219,72 +281,57 @@ module Google class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric # @private class Representation < Google::Apis::Core::JsonRepresentation - property :objective_value, as: 'objectiveValue' property :training_step, as: 'trainingStep' + property :objective_value, as: 'objectiveValue' end end class GoogleCloudMlV1Version # @private class Representation < Google::Apis::Core::JsonRepresentation + property :runtime_version, as: 'runtimeVersion' + property :last_use_time, as: 'lastUseTime' + property :description, as: 'description' + property :deployment_uri, as: 'deploymentUri' property :is_default, as: 'isDefault' property :create_time, as: 'createTime' property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling::Representation property :name, as: 'name' - property :last_use_time, as: 'lastUseTime' - property :runtime_version, as: 'runtimeVersion' - property :description, as: 'description' - property :deployment_uri, as: 'deploymentUri' end end class GoogleCloudMlV1ParameterSpec # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :categorical_values, as: 'categoricalValues' + property :parameter_name, as: 'parameterName' property :min_value, as: 'minValue' collection :discrete_values, as: 'discreteValues' property :scale_type, as: 'scaleType' property :max_value, as: 'maxValue' property :type, as: 'type' - collection :categorical_values, as: 'categoricalValues' - property :parameter_name, as: 'parameterName' end end class GoogleCloudMlV1PredictionInput # @private class Representation < Google::Apis::Core::JsonRepresentation - property :data_format, as: 'dataFormat' - property :runtime_version, as: 'runtimeVersion' - collection :input_paths, as: 'inputPaths' - property :region, as: 'region' property :version_name, as: 'versionName' property :model_name, as: 'modelName' property :output_path, as: 'outputPath' property :uri, as: 'uri' property :max_worker_count, as: 'maxWorkerCount' - end - end - - class GoogleCloudMlV1beta1OperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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::GoogleCloudMlV1beta1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1Version::Representation - + property :data_format, as: 'dataFormat' + property :runtime_version, as: 'runtimeVersion' + collection :input_paths, as: 'inputPaths' + property :region, as: 'region' end end class GoogleCloudMlV1OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 @@ -292,27 +339,42 @@ module Google property :operation_type, as: 'operationType' property :start_time, as: 'startTime' property :is_cancellation_requested, as: 'isCancellationRequested' + property :create_time, as: 'createTime' + end + end + + class GoogleCloudMlV1beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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::GoogleCloudMlV1beta1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1Version::Representation + + property :end_time, as: 'endTime' end end 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' 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 :goal, as: 'goal' + property :hyperparameter_metric_tag, as: 'hyperparameterMetricTag' end end class GoogleCloudMlV1ListJobsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :jobs, as: 'jobs', class: Google::Apis::MlV1::GoogleCloudMlV1Job, decorator: Google::Apis::MlV1::GoogleCloudMlV1Job::Representation + property :next_page_token, as: 'nextPageToken' end end @@ -325,24 +387,24 @@ module Google class GoogleLongrunningOperation # @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::MlV1::GoogleRpcStatus, decorator: Google::Apis::MlV1::GoogleRpcStatus::Representation hash :metadata, as: 'metadata' - property :done, as: 'done' end end class GoogleCloudMlV1Model # @private class Representation < Google::Apis::Core::JsonRepresentation - property :online_prediction_logging, as: 'onlinePredictionLogging' property :default_version, as: 'defaultVersion', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation collection :regions, as: 'regions' property :name, as: 'name' property :description, as: 'description' + property :online_prediction_logging, as: 'onlinePredictionLogging' end end @@ -361,9 +423,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 @@ -383,22 +445,9 @@ module Google end end - 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 - - end - end - class GoogleCloudMlV1TrainingInput # @private class Representation < Google::Apis::Core::JsonRepresentation - property :region, as: 'region' - 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' property :hyperparameters, as: 'hyperparameters', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec::Representation @@ -409,88 +458,39 @@ module Google 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' + property :parameter_server_type, as: 'parameterServerType' + end + end + + 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 + end end class GoogleCloudMlV1Job # @private class Representation < Google::Apis::Core::JsonRepresentation - 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' 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 property :training_output, as: 'trainingOutput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput::Representation + property :create_time, as: 'createTime' property :training_input, as: 'trainingInput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput::Representation - property :create_time, as: 'createTime' - end - end - - class GoogleApiHttpBody - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data, :base64 => true, as: 'data' - property :content_type, as: 'contentType' - end - end - - class GoogleCloudMlV1GetConfigResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service_account_project, as: 'serviceAccountProject' - property :service_account, as: 'serviceAccount' - end - end - - class GoogleCloudMlV1beta1Version - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling::Representation - - property :name, as: 'name' - property :last_use_time, as: 'lastUseTime' - property :runtime_version, as: 'runtimeVersion' - property :description, as: 'description' - property :deployment_uri, as: 'deploymentUri' - property :is_default, as: 'isDefault' - end - end - - class GoogleCloudMlV1HyperparameterOutput - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - hash :hyperparameters, as: 'hyperparameters' - property :trial_id, as: 'trialId' - end - end - - class GoogleCloudMlV1PredictionOutput - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error_count, as: 'errorCount' - property :output_path, as: 'outputPath' - property :node_hours, as: 'nodeHours' - property :prediction_count, as: 'predictionCount' - 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 :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' end end end diff --git a/generated/google/apis/ml_v1/service.rb b/generated/google/apis/ml_v1/service.rb index c4e7c5bd4..69874e6a9 100644 --- a/generated/google/apis/ml_v1/service.rb +++ b/generated/google/apis/ml_v1/service.rb @@ -115,10 +115,48 @@ module Google 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 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 [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 @@ -126,10 +164,6 @@ module Google # 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 @@ -147,14 +181,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_project_jobs(parent, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + 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['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) @@ -225,40 +259,6 @@ module Google 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 - # 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 @@ -446,15 +446,15 @@ module Google # @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 + # the previous call. # @param [Fixnum] page_size # Optional. The number of models 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 @@ -472,13 +472,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_project_models(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_models(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/models', options) command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse 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['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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index 6918401d7..dac43b89c 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -22,27 +22,483 @@ module Google module Apis module MonitoringV3 + # 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 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 ListMonitoredResourcDescriptors 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 + + # 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 + + 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) + @metric = args[:metric] if args.key?(:metric) + @points = args[:points] if args.key?(:points) + @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 + + # 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 [String] + 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts) + @bucket_options = args[:bucket_options] if args.key?(:bucket_options) + 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 Cloud SQL + # database is "cloudsql_database". + # 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, Cloud SQL databases use the labels " + # database_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 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 + + # 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 [String] + 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bool_value = args[:bool_value] if args.key?(:bool_value) + @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) + @distribution_value = args[:distribution_value] if args.key?(:distribution_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 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 - # The measurement type instance. Example: "used". # Corresponds to the JSON property `typeInstance` # @return [String] @@ -68,20 +524,36 @@ module Google # @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) - @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) @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 @@ -94,11 +566,6 @@ module Google 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] @@ -109,15 +576,39 @@ module Google # @return [Fixnum] attr_accessor :num_finite_buckets + # Must be greater than 0. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + 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) + @width = args[:width] if args.key?(:width) + 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 @@ -153,25 +644,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 - # 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 @@ -233,6 +705,11 @@ module Google class Exponential 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 1. # Corresponds to the JSON property `growthFactor` # @return [Float] @@ -243,20 +720,15 @@ module Google # @return [Float] attr_accessor :scale - # 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) + @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) @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) end end @@ -287,6 +759,82 @@ module Google end end + # A single field of a message type. + class Field + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @cardinality = args[:cardinality] if args.key?(:cardinality) + @packed = args[:packed] if args.key?(:packed) + end + end + # A specific metric, identified by specifying values for all of the labels of a # MetricDescriptor. class Metric @@ -315,62 +863,24 @@ module Google end end - # A single field of a message type. - class Field + # A description of a label. + class LabelDescriptor 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 - - # The field cardinality. - # Corresponds to the JSON property `cardinality` + # The label key. + # Corresponds to the JSON property `key` # @return [String] - attr_accessor :cardinality + attr_accessor :key - # 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` + # A human-readable description for the label. + # Corresponds to the JSON property `description` # @return [String] - attr_accessor :default_value + attr_accessor :description - # The field name. - # Corresponds to the JSON property `name` + # The type of data that can be assigned to the label. + # Corresponds to the JSON property `valueType` # @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 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 + attr_accessor :value_type def initialize(**args) update!(**args) @@ -378,16 +888,9 @@ module Google # 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) - @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) - @kind = args[:kind] if args.key?(:kind) - @json_name = args[:json_name] if args.key?(:json_name) + @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 @@ -418,37 +921,6 @@ module Google end end - # A description of a label. - class LabelDescriptor - include Google::Apis::Core::Hashable - - # 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 - - # 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) - @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 - # The description of a dynamic collection of monitored resources. Each group has # a filter that is matched against monitored resources and their associated # metadata. If a group's filter matches an available monitored resource, then @@ -522,6 +994,22 @@ module Google class Type include Google::Apis::Core::Hashable + # 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::MonitoringV3::SourceContext] + attr_accessor :source_context + # The protocol buffer options. # Corresponds to the JSON property `options` # @return [Array] @@ -537,34 +1025,18 @@ module Google # @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::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 # Update properties of this object def update!(**args) + @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) @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 @@ -658,12 +1130,65 @@ module Google 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 + # 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 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) @@ -735,73 +1260,20 @@ module Google # @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 - 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) @display_name = args[:display_name] if args.key?(:display_name) @description = args[:description] if args.key?(:description) - 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) + @unit = args[:unit] if args.key?(:unit) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) end end @@ -834,498 +1306,26 @@ module Google class ListGroupsResponse 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 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) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @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 - - # 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 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 ListMonitoredResourcDescriptors 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 - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metric_kind = args[:metric_kind] if args.key?(:metric_kind) - @metric = args[:metric] if args.key?(:metric) - @points = args[:points] if args.key?(:points) - @value_type = args[:value_type] if args.key?(:value_type) - @resource = args[:resource] if args.key?(:resource) - 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 [String] - 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, Cloud SQL databases use the labels " - # database_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 Cloud SQL - # database is "cloudsql_database". - # 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 - - # 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. 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 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 - - 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) - @display_name = args[:display_name] if args.key?(:display_name) - @description = args[:description] if args.key?(:description) - 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 [String] - 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 end diff --git a/generated/google/apis/monitoring_v3/representations.rb b/generated/google/apis/monitoring_v3/representations.rb index d349ca2e5..af96edec4 100644 --- a/generated/google/apis/monitoring_v3/representations.rb +++ b/generated/google/apis/monitoring_v3/representations.rb @@ -22,126 +22,6 @@ module Google module Apis module MonitoringV3 - class CollectdPayload - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Linear - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Option - 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 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 ListTimeSeriesResponse - 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 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 - - include Google::Apis::Core::JsonObjectSupport - end - - class ListGroupsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CreateCollectdTimeSeriesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -203,206 +83,123 @@ module Google end class CollectdPayload - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - 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' - end + include Google::Apis::Core::JsonObjectSupport 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 Representation < Google::Apis::Core::JsonRepresentation; end - class Option - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - hash :value, as: 'value' - 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 Option + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Explicit - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :bounds, as: 'bounds' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class TimeInterval - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time, as: 'endTime' - property :start_time, as: 'startTime' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Exponential - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :growth_factor, as: 'growthFactor' - property :scale, as: 'scale' - property :num_finite_buckets, as: 'numFiniteBuckets' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Point - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :interval, as: 'interval', class: Google::Apis::MonitoringV3::TimeInterval, decorator: Google::Apis::MonitoringV3::TimeInterval::Representation - - end - end - - class Metric - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - hash :labels, as: 'labels' - end + include Google::Apis::Core::JsonObjectSupport end class Field - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :oneof_index, as: 'oneofIndex' - property :cardinality, as: 'cardinality' - property :packed, as: 'packed' - property :default_value, as: 'defaultValue' - property :name, as: 'name' - property :type_url, as: 'typeUrl' - property :number, as: 'number' - property :kind, as: 'kind' - property :json_name, as: 'jsonName' - end + include Google::Apis::Core::JsonObjectSupport end - class ListTimeSeriesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :time_series, as: 'timeSeries', class: Google::Apis::MonitoringV3::TimeSeries, decorator: Google::Apis::MonitoringV3::TimeSeries::Representation + class Metric + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class LabelDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :value_type, as: 'valueType' - property :key, as: 'key' - end + 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 - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :filter, as: 'filter' - property :name, as: 'name' - property :parent_name, as: 'parentName' - property :display_name, as: 'displayName' - property :is_cluster, as: 'isCluster' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Type - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :fields, as: 'fields', class: Google::Apis::MonitoringV3::Field, decorator: Google::Apis::MonitoringV3::Field::Representation - - property :name, as: 'name' - collection :oneofs, as: 'oneofs' - property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV3::SourceContext, decorator: Google::Apis::MonitoringV3::SourceContext::Representation - - property :syntax, as: 'syntax' - end + include Google::Apis::Core::JsonObjectSupport end class BucketOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :linear_buckets, as: 'linearBuckets', class: Google::Apis::MonitoringV3::Linear, decorator: Google::Apis::MonitoringV3::Linear::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::MonitoringV3::Explicit, decorator: Google::Apis::MonitoringV3::Explicit::Representation - - property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::MonitoringV3::Exponential, decorator: Google::Apis::MonitoringV3::Exponential::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class CollectdValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :data_source_type, as: 'dataSourceType' - property :data_source_name, as: 'dataSourceName' - end - end - - class MetricDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :unit, as: 'unit' - collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::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' - end + include Google::Apis::Core::JsonObjectSupport end class SourceContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :file_name, as: 'fileName' - end + 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 + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class CreateCollectdTimeSeriesRequest @@ -429,23 +226,23 @@ module Google 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 - property :next_page_token, as: 'nextPageToken' 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' 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 - end end @@ -460,22 +257,22 @@ module Google 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, 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 + end end class MonitoredResource # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' property :type, as: 'type' + hash :labels, as: 'labels' end end @@ -491,24 +288,227 @@ module Google 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 :display_name, as: 'displayName' property :description, as: 'description' + property :type, as: 'type' end end class TypedValue # @private class Representation < Google::Apis::Core::JsonRepresentation + property :bool_value, as: 'boolValue' + property :string_value, as: 'stringValue' property :double_value, as: 'doubleValue' property :int64_value, 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' + 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 :offset, as: 'offset' + property :num_finite_buckets, as: 'numFiniteBuckets' + property :width, as: 'width' + 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' + end + end + + class Explicit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bounds, as: 'bounds' + end + end + + class TimeInterval + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + end + end + + class Exponential + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_finite_buckets, as: 'numFiniteBuckets' + property :growth_factor, as: 'growthFactor' + property :scale, as: 'scale' + end + end + + class Point + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation + + property :interval, as: 'interval', class: Google::Apis::MonitoringV3::TimeInterval, decorator: Google::Apis::MonitoringV3::TimeInterval::Representation + + end + end + + class Field + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation + + property :oneof_index, as: 'oneofIndex' + property :cardinality, as: 'cardinality' + property :packed, as: 'packed' + end + end + + class Metric + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + hash :labels, as: 'labels' + 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 ListTimeSeriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :time_series, as: 'timeSeries', class: Google::Apis::MonitoringV3::TimeSeries, decorator: Google::Apis::MonitoringV3::TimeSeries::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Group + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter' + property :name, as: 'name' + property :parent_name, as: 'parentName' + property :display_name, as: 'displayName' + property :is_cluster, as: 'isCluster' + end + end + + class Type + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :oneofs, as: 'oneofs' + property :syntax, as: 'syntax' + property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV3::SourceContext, decorator: Google::Apis::MonitoringV3::SourceContext::Representation + + collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation + + collection :fields, as: 'fields', class: Google::Apis::MonitoringV3::Field, decorator: Google::Apis::MonitoringV3::Field::Representation + + property :name, as: 'name' + end + end + + class BucketOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::MonitoringV3::Exponential, decorator: Google::Apis::MonitoringV3::Exponential::Representation + + end + end + + class CollectdValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation + + property :data_source_type, as: 'dataSourceType' + property :data_source_name, as: 'dataSourceName' + end + end + + class SourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_name, as: 'fileName' + end + end + + class MetricDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + property :name, as: 'name' + end + 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 + property :next_page_token, as: 'nextPageToken' + collection :group, as: 'group', class: Google::Apis::MonitoringV3::Group, decorator: Google::Apis::MonitoringV3::Group::Representation + end end end diff --git a/generated/google/apis/monitoring_v3/service.rb b/generated/google/apis/monitoring_v3/service.rb index 9730ba8d4..38d3183a6 100644 --- a/generated/google/apis/monitoring_v3/service.rb +++ b/generated/google/apis/monitoring_v3/service.rb @@ -34,25 +34,311 @@ module Google # # @see https://cloud.google.com/monitoring/api/ class MonitoringService < 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://monitoring.googleapis.com/', '') end + # Lists time series that match a filter. This method does not require a + # Stackdriver account. + # @param [String] name + # The project on which to execute the request. The format is "projects/` + # project_id_or_number`". + # @param [String] aggregation_alignment_period + # The alignment period for per-time series alignment. If present, + # alignmentPeriod must be at least 60 seconds. After per-time series alignment, + # each time series will contain data points only on the period boundaries. If + # perSeriesAligner is not specified or equals ALIGN_NONE, then this field is + # ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then + # this field must be defined; otherwise an error is returned. + # @param [Fixnum] page_size + # A positive number that is the maximum number of results to return. When view + # field sets to FULL, it limits the number of Points server will return; if view + # field is HEADERS, it limits the number of TimeSeries server will return. + # @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 [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 + # to applying the aggregation function. Each subset contains time series that + # have the same value for each of the grouping fields. Each individual time + # series is a member of exactly one subset. The crossSeriesReducer is applied to + # each subset of time series. It is not possible to reduce across different + # resource types, so this field implicitly contains resource.type. Fields not + # specified in groupByFields are aggregated away. If groupByFields is not + # specified and all the time series have the same resource type, then the time + # series are aggregated into a single output time series. If crossSeriesReducer + # is not defined, this field is ignored. + # @param [String] interval_end_time + # Required. The end of the time interval. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::ListTimeSeriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::ListTimeSeriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_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, aggregation_group_by_fields: nil, interval_end_time: 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.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['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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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 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 + + # Lists metric descriptors that match a filter. This method does not require a + # Stackdriver account. + # @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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::ListMetricDescriptorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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, 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['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 + + # 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + # Lists monitored resource descriptors that match a filter. This method does not # require a Stackdriver account. # @param [String] name # The project on which to execute the request. The format is "projects/` # project_id_or_number`". + # @param [Fixnum] page_size + # A positive number that is the maximum number of results to return. # @param [String] filter # An optional filter describing the descriptors to be returned. The filter can # reference the descriptor's type and labels. For example, the following filter @@ -62,8 +348,6 @@ module Google # 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] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -81,14 +365,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_project_monitored_resource_descriptors(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_monitored_resource_descriptors(name, page_size: nil, filter: nil, page_token: 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 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['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) @@ -162,14 +446,6 @@ module Google # @param [String] name # The project whose groups are to be listed. The format is "projects/` # project_id_or_number`". - # @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 @@ -182,6 +458,14 @@ module Google # 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 [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -199,16 +483,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_project_groups(name, descendants_of_group: nil, page_token: nil, page_size: nil, ancestors_of_group: nil, children_of_group: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_groups(name, page_size: nil, ancestors_of_group: nil, children_of_group: nil, descendants_of_group: nil, page_token: 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['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['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['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -325,6 +609,11 @@ module Google # @param [String] name # The group whose members are listed. The format is "projects/` # project_id_or_number`/groups/`group_id`". + # @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] interval_end_time # Required. The end of the time interval. # @param [String] filter @@ -337,11 +626,6 @@ module Google # 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. @@ -359,16 +643,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_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) + def list_project_group_members(name, page_size: nil, interval_start_time: nil, interval_end_time: nil, filter: nil, page_token: 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['pageSize'] = page_size unless page_size.nil? + command.query['interval.startTime'] = interval_start_time unless interval_start_time.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) @@ -409,296 +693,12 @@ module Google command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end - - # Lists time series that match a filter. This method does not require a - # Stackdriver account. - # @param [String] name - # The project on which to execute the request. The format is "projects/` - # project_id_or_number`". - # @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 [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 - # to applying the aggregation function. Each subset contains time series that - # have the same value for each of the grouping fields. Each individual time - # series is a member of exactly one subset. The crossSeriesReducer is applied to - # each subset of time series. It is not possible to reduce across different - # resource types, so this field implicitly contains resource.type. Fields not - # specified in groupByFields are aggregated away. If groupByFields is not - # specified and all the time series have the same resource type, then the time - # series are aggregated into a single output time series. If crossSeriesReducer - # is not defined, this field is ignored. - # @param [String] interval_end_time - # Required. The end of the time interval. - # @param [String] aggregation_alignment_period - # The alignment period for per-time series alignment. If present, - # alignmentPeriod must be at least 60 seconds. After per-time series alignment, - # each time series will contain data points only on the period boundaries. If - # perSeriesAligner is not specified or equals ALIGN_NONE, then this field is - # ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then - # this field must be defined; otherwise an error is returned. - # @param [Fixnum] page_size - # A positive number that is the maximum number of results to return. When view - # field sets to FULL, it limits the number of Points server will return; if view - # field is HEADERS, it limits the number of TimeSeries server will 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::MonitoringV3::ListTimeSeriesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::ListTimeSeriesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @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, order_by: nil, aggregation_cross_series_reducer: nil, filter: nil, page_token: nil, aggregation_per_series_aligner: nil, interval_start_time: nil, view: nil, aggregation_group_by_fields: nil, interval_end_time: nil, aggregation_alignment_period: nil, page_size: 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['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['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['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.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] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not 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 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 - - # Lists metric descriptors that match a filter. This method does not require a - # Stackdriver account. - # @param [String] name - # The project on which to execute the request. 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] 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 - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @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, 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['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 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 - - # 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['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/pagespeedonline_v2/classes.rb b/generated/google/apis/pagespeedonline_v2/classes.rb index b9d52a7ca..bf6f024f9 100644 --- a/generated/google/apis/pagespeedonline_v2/classes.rb +++ b/generated/google/apis/pagespeedonline_v2/classes.rb @@ -178,6 +178,7 @@ module Google # Image data base64 encoded. # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :data diff --git a/generated/google/apis/partners_v2/classes.rb b/generated/google/apis/partners_v2/classes.rb index bd4ce6810..4b9318340 100644 --- a/generated/google/apis/partners_v2/classes.rb +++ b/generated/google/apis/partners_v2/classes.rb @@ -22,15 +22,374 @@ module Google module Apis module PartnersV2 - # Response message for CreateLead. - class CreateLeadResponse + # 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 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 + + # 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) + @achieved = args[:achieved] if args.key?(:achieved) + @expiration = args[:expiration] if args.key?(:expiration) + @warning = args[:warning] if args.key?(:warning) + @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 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 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 email address used by the user used for company verification. + # @OutputOnly + # Corresponds to the JSON property `companyVerificationEmail` + # @return [String] + attr_accessor :company_verification_email + + # 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 profile information of a Partners user. + # Corresponds to the JSON property `profile` + # @return [Google::Apis::PartnersV2::UserProfile] + attr_accessor :profile + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @certification_status = args[:certification_status] if args.key?(:certification_status) + @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email) + @company = args[:company] if args.key?(:company) + @profile = args[:profile] if args.key?(:profile) + @last_access_time = args[:last_access_time] if args.key?(:last_access_time) + @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) + 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 + + # 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 + + # A company resource in the Google Partners API. Once certified, it qualifies + # for being searched by advertisers. + class Company + include Google::Apis::Core::Hashable + + # 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 [String] + 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 + + # 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 + + # Services the company can help with. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + # 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 + + # Company type labels listed on the company's profile. + # Corresponds to the JSON property `companyTypes` + # @return [Array] + attr_accessor :company_types + + # 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 + + # 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 public viewability status of the company's profile. + # Corresponds to the JSON property `profileStatus` + # @return [String] + attr_accessor :profile_status + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @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) + @primary_location = args[:primary_location] if args.key?(:primary_location) + @services = args[:services] if args.key?(:services) + @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) + @company_types = args[:company_types] if args.key?(:company_types) + @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains) + @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) + @profile_status = args[:profile_status] if args.key?(:profile_status) + @locations = args[:locations] if args.key?(:locations) + 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` @@ -43,15 +402,20 @@ module Google # @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) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) @lead = args[:lead] if args.key?(:lead) @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) end end @@ -86,6 +450,23 @@ module Google class Location include Google::Apis::Core::Hashable + # 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 + # Top-level administrative subdivision of this country. # Corresponds to the JSON property `administrativeArea` # @return [String] @@ -143,79 +524,37 @@ module Google # @return [String] attr_accessor :dependent_locality - # 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 + # The single string version of the address. + # Corresponds to the JSON property `address` + # @return [String] + attr_accessor :address + # Values are frequently alphanumeric. # Corresponds to the JSON property `postalCode` # @return [String] attr_accessor :postal_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 - - # Language code of the address. Should be in BCP 47 format. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_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) + @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) @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) @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality) - @address = args[:address] if args.key?(:address) @region_code = args[:region_code] if args.key?(:region_code) + @address = args[:address] if args.key?(:address) @postal_code = args[:postal_code] if args.key?(:postal_code) - @sorting_code = args[:sorting_code] if args.key?(:sorting_code) - @language_code = args[:language_code] if args.key?(:language_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 type of certification exam. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The number of people who have passed the certification exam. - # Corresponds to the JSON property `numberUsersPass` - # @return [Fixnum] - attr_accessor :number_users_pass - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass) end end @@ -223,11 +562,6 @@ module Google class ExamToken include Google::Apis::Core::Hashable - # The id of the exam the token is for. - # Corresponds to the JSON property `examId` - # @return [String] - attr_accessor :exam_id - # The token, only present if the user has access to the exam. # Corresponds to the JSON property `token` # @return [String] @@ -238,15 +572,45 @@ module Google # @return [String] attr_accessor :exam_type + # The id of the exam the token is for. + # Corresponds to the JSON property `examId` + # @return [String] + attr_accessor :exam_id + 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) + @exam_id = args[:exam_id] if args.key?(:exam_id) + 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 @@ -254,6 +618,13 @@ module Google 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] @@ -279,24 +650,17 @@ module Google 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) + @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) @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 @@ -325,30 +689,52 @@ module Google 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 + + # 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 [String] + attr_accessor :adwords_manager_account + + # The user's phone number. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # 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] @@ -381,47 +767,38 @@ module Google # @return [Array] attr_accessor :industries - # A set of opt-ins for a user. - # Corresponds to the JSON property `emailOptIns` - # @return [Google::Apis::PartnersV2::OptIns] - attr_accessor :email_opt_ins + def initialize(**args) + update!(**args) + end - # The list of languages this user understands. - # Corresponds to the JSON property `languages` - # @return [Array] - attr_accessor :languages + # 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) + @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @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 - # The user's family name. - # Corresponds to the JSON property `familyName` - # @return [String] - attr_accessor :family_name + # Response message for + # GetPartnersStatus. + class GetPartnersStatusResponse + include Google::Apis::Core::Hashable - # A list of ids representing which markets the user was interested in. - # Corresponds to the JSON property `markets` - # @return [Array] - attr_accessor :markets - - # 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 [String] - attr_accessor :adwords_manager_account - - # The user's phone number. - # Corresponds to the JSON property `phoneNumber` - # @return [String] - attr_accessor :phone_number - - # 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 + # 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) @@ -429,20 +806,7 @@ module Google # Update properties of this object def update!(**args) - @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) - @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins) - @languages = args[:languages] if args.key?(:languages) - @family_name = args[:family_name] if args.key?(:family_name) - @markets = args[:markets] if args.key?(:markets) - @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account) - @phone_number = args[:phone_number] if args.key?(:phone_number) - @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) - @email_address = args[:email_address] if args.key?(:email_address) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) end end @@ -450,26 +814,6 @@ module Google class HistoricalOffer include Google::Apis::Core::Hashable - # 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 [String] - attr_accessor :client_id - # Name of the client. # Corresponds to the JSON property `clientName` # @return [String] @@ -510,16 +854,32 @@ module Google # @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 [String] + attr_accessor :client_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @@ -528,6 +888,10 @@ module Google @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) + @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) end end @@ -536,24 +900,24 @@ module Google class UserOverrides include Google::Apis::Core::Hashable - # 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 + # Logged-in user ID to impersonate instead of the user's ID. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @user_id = args[:user_id] if args.key?(:user_id) @ip_address = args[:ip_address] if args.key?(:ip_address) + @user_id = args[:user_id] if args.key?(:user_id) end end @@ -562,6 +926,26 @@ module Google class LogUserEventRequest include Google::Apis::Core::Hashable + # The URL where the event occurred. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # Common data that is in each API request. + # Corresponds to the JSON property `requestMetadata` + # @return [Google::Apis::PartnersV2::RequestMetadata] + attr_accessor :request_metadata + + # The scope of the event. + # Corresponds to the JSON property `eventScope` + # @return [String] + attr_accessor :event_scope + + # List of event data for the event. + # Corresponds to the JSON property `eventDatas` + # @return [Array] + attr_accessor :event_datas + # The category the action belongs to. # Corresponds to the JSON property `eventCategory` # @return [String] @@ -578,39 +962,19 @@ module Google # @return [String] attr_accessor :event_action - # The URL where the event occurred. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # Common data that is in each API request. - # Corresponds to the JSON property `requestMetadata` - # @return [Google::Apis::PartnersV2::RequestMetadata] - attr_accessor :request_metadata - - # 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @url = args[:url] if args.key?(:url) + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) + @event_scope = args[:event_scope] if args.key?(:event_scope) + @event_datas = args[:event_datas] if args.key?(:event_datas) @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) - @url = args[:url] if args.key?(:url) - @request_metadata = args[:request_metadata] if args.key?(:request_metadata) - @event_datas = args[:event_datas] if args.key?(:event_datas) - @event_scope = args[:event_scope] if args.key?(:event_scope) end end @@ -618,25 +982,25 @@ module Google class AnalyticsDataPoint include Google::Apis::Core::Hashable - # Location information of where these events occurred. - # Corresponds to the JSON property `eventLocations` - # @return [Array] - attr_accessor :event_locations - # Number of times the type of event occurred. # Meaning depends on context (e.g. profile views, contacts, etc.). # Corresponds to the JSON property `eventCount` # @return [Fixnum] attr_accessor :event_count + # Location information of where these events occurred. + # Corresponds to the JSON property `eventLocations` + # @return [Array] + attr_accessor :event_locations + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @event_locations = args[:event_locations] if args.key?(:event_locations) @event_count = args[:event_count] if args.key?(:event_count) + @event_locations = args[:event_locations] if args.key?(:event_locations) end end @@ -687,11 +1051,6 @@ module Google class PublicProfile include Google::Apis::Core::Hashable - # The URL to the main profile image of the public profile. - # Corresponds to the JSON property `profileImage` - # @return [String] - attr_accessor :profile_image - # The display name of the public profile. # Corresponds to the JSON property `displayName` # @return [String] @@ -712,17 +1071,22 @@ module Google # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @profile_image = args[:profile_image] if args.key?(:profile_image) @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) + @profile_image = args[:profile_image] if args.key?(:profile_image) end end @@ -731,24 +1095,24 @@ module Google class AdWordsManagerAccountInfo include Google::Apis::Core::Hashable - # Name of the customer this account represents. - # Corresponds to the JSON property `customerName` - # @return [String] - attr_accessor :customer_name - # The AdWords Manager Account id. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id + # Name of the customer this account represents. + # Corresponds to the JSON property `customerName` + # @return [String] + attr_accessor :customer_name + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @customer_name = args[:customer_name] if args.key?(:customer_name) @id = args[:id] if args.key?(:id) + @customer_name = args[:customer_name] if args.key?(:customer_name) end end @@ -800,42 +1164,6 @@ module Google class AvailableOffer include Google::Apis::Core::Hashable - # 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] - attr_accessor :offer_level - - # Name of the offer. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # ID of this offer. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Whether or not the list of qualified customers is definitely complete. - # Corresponds to the JSON property `qualifiedCustomersComplete` - # @return [Boolean] - attr_accessor :qualified_customers_complete - alias_method :qualified_customers_complete?, :qualified_customers_complete - - # Offer info by country. - # Corresponds to the JSON property `countryOfferInfos` - # @return [Array] - attr_accessor :country_offer_infos - # Type of offer. # Corresponds to the JSON property `offerType` # @return [String] @@ -862,24 +1190,60 @@ module Google 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] + attr_accessor :offer_level + + # Name of the offer. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Whether or not the list of qualified customers is definitely complete. + # Corresponds to the JSON property `qualifiedCustomersComplete` + # @return [Boolean] + attr_accessor :qualified_customers_complete + alias_method :qualified_customers_complete?, :qualified_customers_complete + + # ID of this offer. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Offer info by country. + # Corresponds to the JSON property `countryOfferInfos` + # @return [Array] + attr_accessor :country_offer_infos + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) - @id = args[:id] if args.key?(:id) - @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete) - @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos) @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) + @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) + @id = args[:id] if args.key?(:id) + @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos) end end @@ -923,24 +1287,24 @@ module Google 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 + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @longitude = args[:longitude] if args.key?(:longitude) @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end @@ -985,6 +1349,12 @@ module Google 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] @@ -996,21 +1366,15 @@ module Google # @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) + @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) - @contacts_count = args[:contacts_count] if args.key?(:contacts_count) end end @@ -1052,52 +1416,11 @@ module Google end end - # Debug information about this request. - class DebugInfo - include Google::Apis::Core::Hashable - - # URL of the service that handled this request. - # Corresponds to the JSON property `serviceUrl` - # @return [String] - attr_accessor :service_url - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @service_url = args[:service_url] if args.key?(:service_url) - @server_info = args[:server_info] if args.key?(:server_info) - @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info) - 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 - # 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 [String] - attr_accessor :adwords_customer_id - # Timestamp of when this lead was created. # Corresponds to the JSON property `createTime` # @return [String] @@ -1166,14 +1489,22 @@ module Google # @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 [String] + attr_accessor :adwords_customer_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in) @type = args[:type] if args.key?(:type) @@ -1187,6 +1518,39 @@ module Google @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) + 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 @@ -1221,26 +1585,46 @@ module Google class CompanyRelation include Google::Apis::Core::Hashable - # Whether the company is a Partner. - # Corresponds to the JSON property `badgeTier` + # The state of relationship, in terms of approvals. + # Corresponds to the JSON property `state` # @return [String] - attr_accessor :badge_tier + 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 [String] + attr_accessor :manager_account + + # The segment the company is classified as. + # Corresponds to the JSON property `segment` + # @return [Array] + attr_accessor :segment # 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` + # Whether the company is a Partner. + # Corresponds to the JSON property `badgeTier` # @return [String] - attr_accessor :phone_number + 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 ID of the company. There may be no id if this is a # pending company.5 # Corresponds to the JSON property `companyId` @@ -1264,64 +1648,44 @@ module Google 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 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 - # The state of relationship, in terms of approvals. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # The AdWords manager account # associated this company. - # Corresponds to the JSON property `managerAccount` - # @return [String] - 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @badge_tier = args[:badge_tier] if args.key?(:badge_tier) + @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) @specialization_status = args[:specialization_status] if args.key?(:specialization_status) - @phone_number = args[:phone_number] if args.key?(:phone_number) + @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) @company_id = args[:company_id] if args.key?(:company_id) @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) + @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) - @manager_account = args[:manager_account] if args.key?(:manager_account) - @name = args[:name] if args.key?(:name) - @segment = args[:segment] if args.key?(:segment) end end @@ -1460,11 +1824,6 @@ module Google 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` @@ -1476,15 +1835,20 @@ module Google # @return [Google::Apis::PartnersV2::RecaptchaChallenge] attr_accessor :recaptcha_challenge + # 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) 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) + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) end end @@ -1492,24 +1856,24 @@ module Google 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 + # 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) - @key = args[:key] if args.key?(:key) @values = args[:values] if args.key?(:values) + @key = args[:key] if args.key?(:key) end end @@ -1568,6 +1932,11 @@ module Google 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] @@ -1578,20 +1947,15 @@ module Google # @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 - 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) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) end end @@ -1672,11 +2036,6 @@ module Google class OfferCustomer include Google::Apis::Core::Hashable - # 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] @@ -1697,11 +2056,6 @@ module Google # @return [String] attr_accessor :external_cid - # Type of the offer - # Corresponds to the JSON property `offerType` - # @return [String] - attr_accessor :offer_type - # Time the customer was created. # Corresponds to the JSON property `creationTime` # @return [String] @@ -1712,26 +2066,36 @@ module Google # @return [Fixnum] attr_accessor :eligibility_days_left + # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) - @offer_type = args[:offer_type] if args.key?(:offer_type) @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) @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) + @name = args[:name] if args.key?(:name) end end @@ -1739,11 +2103,6 @@ module Google 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] @@ -1760,16 +2119,21 @@ module Google 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) - @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) + @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses) end end @@ -1927,370 +2291,6 @@ module Google @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 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 - - # 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 profile information of a Partners user. - # Corresponds to the JSON property `profile` - # @return [Google::Apis::PartnersV2::UserProfile] - attr_accessor :profile - - # 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) - @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) - @company = args[:company] if args.key?(:company) - @profile = args[:profile] if args.key?(:profile) - @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 - - # 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 [String] - 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 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 - - # 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 - - # Company type labels listed on the company's profile. - # Corresponds to the JSON property `companyTypes` - # @return [Array] - attr_accessor :company_types - - # 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 - - # 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 public viewability status of the company's profile. - # Corresponds to the JSON property `profileStatus` - # @return [String] - attr_accessor :profile_status - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @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) - @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) - @company_types = args[:company_types] if args.key?(:company_types) - @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains) - @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) - @profile_status = args[:profile_status] if args.key?(:profile_status) - @locations = args[:locations] if args.key?(:locations) - 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 end end end diff --git a/generated/google/apis/partners_v2/representations.rb b/generated/google/apis/partners_v2/representations.rb index 654140047..e91e0cea6 100644 --- a/generated/google/apis/partners_v2/representations.rb +++ b/generated/google/apis/partners_v2/representations.rb @@ -22,6 +22,36 @@ module Google module Apis module PartnersV2 + class Certification + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class User + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListAnalyticsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListLeadsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Company + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CreateLeadResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -40,13 +70,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CertificationExamStatus + class ExamToken class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ExamToken + class CertificationExamStatus class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -64,13 +94,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 @@ -160,13 +190,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DebugInfo + class Lead class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Lead + class DebugInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -287,43 +317,107 @@ module Google end class Certification - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_achieved, as: 'lastAchieved' + property :achieved, as: 'achieved' + property :expiration, as: 'expiration' + property :warning, as: 'warning' + property :certification_type, as: 'certificationType' + end end class User - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exam_status, as: 'examStatus', class: Google::Apis::PartnersV2::ExamStatus, decorator: Google::Apis::PartnersV2::ExamStatus::Representation - include Google::Apis::Core::JsonObjectSupport + property :id, as: 'id' + property :public_profile, as: 'publicProfile', class: Google::Apis::PartnersV2::PublicProfile, decorator: Google::Apis::PartnersV2::PublicProfile::Representation + + collection :certification_status, as: 'certificationStatus', class: Google::Apis::PartnersV2::Certification, decorator: Google::Apis::PartnersV2::Certification::Representation + + property :company_verification_email, as: 'companyVerificationEmail' + property :company, as: 'company', class: Google::Apis::PartnersV2::CompanyRelation, decorator: Google::Apis::PartnersV2::CompanyRelation::Representation + + property :profile, as: 'profile', class: Google::Apis::PartnersV2::UserProfile, decorator: Google::Apis::PartnersV2::UserProfile::Representation + + property :last_access_time, as: 'lastAccessTime' + collection :primary_emails, as: 'primaryEmails' + collection :available_adwords_manager_accounts, as: 'availableAdwordsManagerAccounts', class: Google::Apis::PartnersV2::AdWordsManagerAccountInfo, decorator: Google::Apis::PartnersV2::AdWordsManagerAccountInfo::Representation + + end end class ListAnalyticsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport - end + property :analytics_summary, as: 'analyticsSummary', class: Google::Apis::PartnersV2::AnalyticsSummary, decorator: Google::Apis::PartnersV2::AnalyticsSummary::Representation - class Company - class Representation < Google::Apis::Core::JsonRepresentation; end + collection :analytics, as: 'analytics', class: Google::Apis::PartnersV2::Analytics, decorator: Google::Apis::PartnersV2::Analytics::Representation - include Google::Apis::Core::JsonObjectSupport + end end class ListLeadsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + 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 + 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, 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 + + property :primary_location, as: 'primaryLocation', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation + + collection :services, as: 'services' + 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 :company_types, as: 'companyTypes' + collection :auto_approval_email_domains, as: 'autoApprovalEmailDomains' + property :primary_language_code, as: 'primaryLanguageCode' + property :profile_status, as: 'profileStatus' + collection :locations, as: 'locations', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation + + end end class CreateLeadResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation property :recaptcha_status, as: 'recaptchaStatus' + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + end end @@ -340,45 +434,45 @@ module Google class Location # @private class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :sorting_code, as: 'sortingCode' + 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 :dependent_locality, as: 'dependentLocality' - property :address, as: 'address' property :region_code, as: 'regionCode' + property :address, as: 'address' property :postal_code, as: 'postalCode' - property :sorting_code, as: 'sortingCode' - property :language_code, as: 'languageCode' - collection :address_line, as: 'addressLine' - end - end - - class CertificationExamStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :number_users_pass, as: 'numberUsersPass' end end class ExamToken # @private class Representation < Google::Apis::Core::JsonRepresentation - property :exam_id, as: 'examId' property :token, as: 'token' property :exam_type, as: 'examType' + property :exam_id, as: 'examId' + end + end + + class CertificationExamStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :number_users_pass, as: 'numberUsersPass' + property :type, as: 'type' 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' end end @@ -390,6 +484,28 @@ 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 :adwords_manager_account, as: 'adwordsManagerAccount' + property :phone_number, as: 'phoneNumber' + 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 GetPartnersStatusResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -398,35 +514,9 @@ module Google end end - class UserProfile - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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' - property :email_opt_ins, as: 'emailOptIns', class: Google::Apis::PartnersV2::OptIns, decorator: Google::Apis::PartnersV2::OptIns::Representation - - collection :languages, as: 'languages' - property :family_name, as: 'familyName' - collection :markets, as: 'markets' - property :adwords_manager_account, as: 'adwordsManagerAccount' - property :phone_number, as: 'phoneNumber' - property :primary_country_code, as: 'primaryCountryCode' - property :email_address, as: 'emailAddress' - end - end - class HistoricalOffer # @private class Representation < Google::Apis::Core::JsonRepresentation - property :creation_time, as: 'creationTime' - property :status, as: 'status' - property :client_email, as: 'clientEmail' - property :client_id, as: 'clientId' property :client_name, as: 'clientName' property :last_modified_time, as: 'lastModifiedTime' property :adwords_url, as: 'adwordsUrl' @@ -435,39 +525,43 @@ module Google property :offer_country_code, as: 'offerCountryCode' property :expiration_time, as: 'expirationTime' property :offer_code, as: 'offerCode' + property :creation_time, as: 'creationTime' + property :status, as: 'status' + property :client_email, as: 'clientEmail' + property :client_id, as: 'clientId' end end class UserOverrides # @private class Representation < Google::Apis::Core::JsonRepresentation - property :user_id, as: 'userId' property :ip_address, as: 'ipAddress' + property :user_id, as: 'userId' end end class LogUserEventRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation + + property :event_scope, as: 'eventScope' + collection :event_datas, as: 'eventDatas', class: Google::Apis::PartnersV2::EventData, decorator: Google::Apis::PartnersV2::EventData::Representation + 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 - - collection :event_datas, as: 'eventDatas', class: Google::Apis::PartnersV2::EventData, decorator: Google::Apis::PartnersV2::EventData::Representation - - property :event_scope, as: 'eventScope' 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 - property :event_count, as: 'eventCount' end end @@ -488,19 +582,19 @@ module Google class PublicProfile # @private class Representation < Google::Apis::Core::JsonRepresentation - property :profile_image, as: 'profileImage' 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 AdWordsManagerAccountInfo # @private class Representation < Google::Apis::Core::JsonRepresentation - property :customer_name, as: 'customerName' property :id, as: 'id' + property :customer_name, as: 'customerName' end end @@ -523,28 +617,28 @@ module Google class AvailableOffer # @private class Representation < Google::Apis::Core::JsonRepresentation - property :available, as: 'available' - property :description, as: 'description' - property :offer_level, as: 'offerLevel' - property :name, as: 'name' - property :id, as: 'id' - property :qualified_customers_complete, as: 'qualifiedCustomersComplete' - 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' + property :offer_level, as: 'offerLevel' + property :name, as: 'name' + property :qualified_customers_complete, as: 'qualifiedCustomersComplete' + property :id, as: 'id' + collection :country_offer_infos, as: 'countryOfferInfos', class: Google::Apis::PartnersV2::CountryOfferInfo, decorator: Google::Apis::PartnersV2::CountryOfferInfo::Representation + end end class LatLng # @private class Representation < Google::Apis::Core::JsonRepresentation - property :longitude, as: 'longitude' property :latitude, as: 'latitude' + property :longitude, as: 'longitude' end end @@ -560,9 +654,9 @@ module Google 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 @@ -577,20 +671,9 @@ module Google end end - class DebugInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service_url, as: 'serviceUrl' - property :server_info, as: 'serverInfo' - property :server_trace_info, as: 'serverTraceInfo' - end - end - class Lead # @private class Representation < Google::Apis::Core::JsonRepresentation - property :phone_number, as: 'phoneNumber' - property :adwords_customer_id, as: 'adwordsCustomerId' property :create_time, as: 'createTime' property :marketing_opt_in, as: 'marketingOptIn' property :type, as: 'type' @@ -605,6 +688,17 @@ module Google property :family_name, as: 'familyName' property :id, as: 'id' property :comments, as: 'comments' + property :phone_number, as: 'phoneNumber' + property :adwords_customer_id, as: 'adwordsCustomerId' + end + end + + class DebugInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :server_info, as: 'serverInfo' + property :server_trace_info, as: 'serverTraceInfo' + property :service_url, as: 'serviceUrl' end end @@ -620,22 +714,22 @@ module Google class CompanyRelation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :badge_tier, as: 'badgeTier' + property :state, as: 'state' + property :name, as: 'name' + property :manager_account, as: 'managerAccount' + collection :segment, as: 'segment' 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 :company_id, as: 'companyId' property :logo_url, as: 'logoUrl' property :resolved_timestamp, as: 'resolvedTimestamp' property :company_admin, as: 'companyAdmin' - property :is_pending, as: 'isPending' property :address, as: 'address' + property :is_pending, as: 'isPending' property :creation_time, as: 'creationTime' - property :state, as: 'state' - property :manager_account, as: 'managerAccount' - property :name, as: 'name' - collection :segment, as: 'segment' end end @@ -678,20 +772,20 @@ module Google 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 + property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation + 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 @@ -710,11 +804,11 @@ module Google class ListOffersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - end end @@ -742,26 +836,26 @@ module Google class OfferCustomer # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' property :spend_x_amount, as: 'spendXAmount' property :adwords_url, as: 'adwordsUrl' property :country_code, as: 'countryCode' property :external_cid, as: 'externalCid' - property :offer_type, as: 'offerType' property :creation_time, as: 'creationTime' property :eligibility_days_left, as: 'eligibilityDaysLeft' + property :offer_type, as: 'offerType' property :get_y_amount, as: 'getYAmount' + property :name, as: 'name' 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 @@ -812,100 +906,6 @@ module Google property :badge_specialization_state, as: 'badgeSpecializationState' end end - - 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' - end - end - - class User - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :exam_status, as: 'examStatus', class: Google::Apis::PartnersV2::ExamStatus, decorator: Google::Apis::PartnersV2::ExamStatus::Representation - - property :id, as: 'id' - property :public_profile, as: 'publicProfile', class: Google::Apis::PartnersV2::PublicProfile, decorator: Google::Apis::PartnersV2::PublicProfile::Representation - - property :company_verification_email, as: 'companyVerificationEmail' - collection :certification_status, as: 'certificationStatus', class: Google::Apis::PartnersV2::Certification, decorator: Google::Apis::PartnersV2::Certification::Representation - - property :company, as: 'company', class: Google::Apis::PartnersV2::CompanyRelation, decorator: Google::Apis::PartnersV2::CompanyRelation::Representation - - property :profile, as: 'profile', class: Google::Apis::PartnersV2::UserProfile, decorator: Google::Apis::PartnersV2::UserProfile::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 - - class ListAnalyticsResponse - # @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 - - 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 - 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, as: 'primaryAdwordsManagerAccountId' - property :name, as: 'name' - 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 - - 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 :company_types, as: 'companyTypes' - collection :auto_approval_email_domains, as: 'autoApprovalEmailDomains' - property :primary_language_code, as: 'primaryLanguageCode' - property :profile_status, as: 'profileStatus' - collection :locations, as: 'locations', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation - - end - end - - class ListLeadsResponse - # @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 :total_size, as: 'totalSize' - collection :leads, as: 'leads', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation - - end - end end end end diff --git a/generated/google/apis/partners_v2/service.rb b/generated/google/apis/partners_v2/service.rb index 86027f9a3..6240d2648 100644 --- a/generated/google/apis/partners_v2/service.rb +++ b/generated/google/apis/partners_v2/service.rb @@ -47,6 +47,544 @@ module Google super('https://partners.googleapis.com/', '') 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_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_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::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_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_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/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.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.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 + + # Lists advertiser leads 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 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] 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 [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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(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, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: 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['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['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['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 [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 [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_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 [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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(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, entire_company: 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, page_token: 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['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['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.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['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 [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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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(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, 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['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['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 [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] 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::GetPartnersStatusResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::GetPartnersStatusResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_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(: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.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['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_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 [String] update_mask + # Standard field mask for the set of fields to be updated. + # Required with at least 1 value in FieldMask's paths. + # Only `state` and `adwords_customer_id` are currently supported. + # @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::Lead] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::Lead] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_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, 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.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['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_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] 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] 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::Company] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::Company] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_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/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.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['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 + # Gets a company. # @param [String] company_id # The ID of the company to retrieve. @@ -61,15 +599,15 @@ module Google # @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_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 @@ -83,11 +621,11 @@ module Google # Used when order_by is set. # @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] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -100,7 +638,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_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, request_metadata_traffic_source_traffic_sub_id: nil, order_by: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, view: nil, address: nil, request_metadata_locale: nil, fields: nil, quota_user: nil, options: nil, &block) + 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, address: nil, request_metadata_locale: 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 @@ -109,19 +647,33 @@ 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['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.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['address'] = address unless address.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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end # Lists companies. + # @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] view + # The view of the `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 when searching for companies. + # If not given, the geo-located address of the request is used. # @param [String] min_monthly_budget_units # The whole units of the amount. # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. @@ -136,13 +688,13 @@ module Google # List of services that the returned agencies should provide. If this is # not empty, any returned agency must have at least one of these services, # or one of the specializations in the "specializations" field. + # @param [String] max_monthly_budget_units + # The whole units of the amount. + # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. # @param [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] max_monthly_budget_units - # The whole units of the amount. - # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. # @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 @@ -191,25 +743,11 @@ module Google # 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] 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`. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] address - # The address to use when searching for companies. - # If not given, the geo-located address of the request is used. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not 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,15 +760,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_companies(min_monthly_budget_units: nil, max_monthly_budget_nanos: nil, services: nil, request_metadata_traffic_source_traffic_source_id: nil, max_monthly_budget_units: 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, 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, fields: nil, quota_user: nil, options: nil, &block) + def list_companies(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, 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['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['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.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? @@ -245,14 +789,8 @@ 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['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['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 @@ -260,11 +798,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 # @@ -277,15 +815,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_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 @@ -294,6 +832,12 @@ module Google # 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 [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 @@ -306,17 +850,11 @@ 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 [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 # @@ -329,22 +867,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 create_user_company_relation(user_id, company_relation_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, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def create_user_company_relation(user_id, company_relation_object = 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, request_metadata_user_overrides_ip_address: 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.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['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 @@ -352,12 +890,6 @@ module Google # @param [String] user_id # The ID of the user. Can be set to me to mean # the currently authenticated 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] 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 @@ -370,11 +902,17 @@ 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 [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 # @@ -387,20 +925,20 @@ 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_user_company_relation(user_id, 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, fields: nil, quota_user: nil, options: nil, &block) + def delete_user_company_relation(user_id, 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(: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.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['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 @@ -408,6 +946,12 @@ module Google # @param [String] user_id # Identifier 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] user_view + # Specifies what parts of the user information to return. # @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 @@ -422,17 +966,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] 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] user_view - # Specifies what parts of the user information 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -445,21 +983,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 get_user(user_id, 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, user_view: 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 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['userView'] = user_view unless user_view.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['userView'] = user_view unless user_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 @@ -484,11 +1022,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 # @@ -501,7 +1039,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_user_profile(user_profile_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, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def update_user_profile(user_profile_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, 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(:patch, 'v2/users/profile', options) command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation command.request_object = user_profile_object @@ -514,18 +1052,18 @@ 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 # 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 # @@ -538,14 +1076,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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -553,11 +1091,11 @@ module Google # `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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -570,552 +1108,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_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + 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['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 [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] order_by - # How to order Leads. Currently, only `create_time` - # and `create_time desc` are supported - # @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 - # 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 [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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(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, 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, 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['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['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['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 [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_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::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_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) - 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.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['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 [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 [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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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_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, request_metadata_experiment_ids: nil, entire_company: 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/offers/history', options) - command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse - 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['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['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 [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] 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::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_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, request_metadata_user_overrides_ip_address: 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['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['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 [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] 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::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_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, 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.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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.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_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] 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] 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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::Company] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::Company] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_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, fields: nil, quota_user: 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.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['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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.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_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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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::GetPartnersStatusResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::GetPartnersStatusResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_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, fields: nil, quota_user: 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.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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Updates the specified lead. - # @param [Google::Apis::PartnersV2::Lead] lead_object - # @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] update_mask - # Standard field mask for the set of fields to be updated. - # Required with at least 1 value in FieldMask's paths. - # Only `state` and `adwords_customer_id` are currently supported. - # @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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should 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::Lead] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::Lead] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_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_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, fields: nil, quota_user: 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.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['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['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 abd7e3dff..69834c823 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,16 +25,19 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20170329' + REVISION = '20170330' - # View your street addresses - AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read' + # View your basic profile info + AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile' + + # View your email addresses + AUTH_USER_EMAILS_READ = 'https://www.googleapis.com/auth/user.emails.read' # Manage your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' - # View your email addresses - AUTH_USER_EMAILS_READ = 'https://www.googleapis.com/auth/user.emails.read' + # 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' @@ -42,17 +45,14 @@ module Google # View your phone numbers AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read' - # 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' + # View your contacts + AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly' + # Know the list of people in your circles, your age range, and language AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' - - # View your basic profile info - AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile' end end end diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index 2a7b8d50f..191db8007 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -22,192 +22,10 @@ module Google module Apis module PeopleV1 - # A person's past or current organization. Overlapping date ranges are - # permitted. - class Organization - include Google::Apis::Core::Hashable - - # 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 - - # The phonetic name of the organization. - # Corresponds to the JSON property `phoneticName` - # @return [String] - attr_accessor :phonetic_name - - # 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 person's job description at the organization. - # Corresponds to the JSON property `jobDescription` - # @return [String] - attr_accessor :job_description - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name) - @type = args[:type] if args.key?(:type) - @job_description = args[:job_description] if args.key?(:job_description) - 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 - - # 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 - # 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 - # The source of a field. # Corresponds to the JSON property `source` # @return [Google::Apis::PeopleV1::Source] @@ -221,15 +39,61 @@ module Google 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) - @primary = args[:primary] if args.key?(:primary) @source = args[:source] if args.key?(:source) @verified = args[:verified] if args.key?(:verified) + @primary = args[:primary] if args.key?(:primary) + end + end + + # The source of a field. + class Source + include Google::Apis::Core::Hashable + + # The read-only metadata about a profile. + # Corresponds to the JSON property `profileMetadata` + # @return [Google::Apis::PeopleV1::ProfileMetadata] + attr_accessor :profile_metadata + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata) + @type = args[:type] if args.key?(:type) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) end end @@ -278,6 +142,11 @@ module Google 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: @@ -296,59 +165,15 @@ module Google # @return [String] attr_accessor :formatted_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) + @metadata = args[:metadata] if args.key?(:metadata) @value = args[:value] if args.key?(:value) @formatted_value = args[:formatted_value] if args.key?(:formatted_value) - @metadata = args[:metadata] if args.key?(:metadata) - 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 @@ -356,17 +181,6 @@ module Google class Relation include Google::Apis::Core::Hashable - # The name of the other person this relation refers to. - # Corresponds to the JSON property `person` - # @return [String] - attr_accessor :person - - # 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 - # Metadata about a field. # Corresponds to the JSON property `metadata` # @return [Google::Apis::PeopleV1::FieldMetadata] @@ -393,16 +207,27 @@ module Google # @return [String] attr_accessor :type + # The name of the other person this relation refers to. + # Corresponds to the JSON property `person` + # @return [String] + attr_accessor :person + + # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @person = args[:person] if args.key?(:person) - @formatted_type = args[:formatted_type] if args.key?(:formatted_type) @metadata = args[:metadata] if args.key?(:metadata) @type = args[:type] if args.key?(:type) + @person = args[:person] if args.key?(:person) + @formatted_type = args[:formatted_type] if args.key?(:formatted_type) end end @@ -441,82 +266,6 @@ module Google class Person include Google::Apis::Core::Hashable - # The person's residences. - # Corresponds to the JSON property `residences` - # @return [Array] - attr_accessor :residences - - # The person's genders. - # Corresponds to the JSON property `genders` - # @return [Array] - attr_accessor :genders - - # The resource name for the person, assigned by the server. An ASCII string - # with a max length of 27 characters. Always starts with `people/`. - # Corresponds to the JSON property `resourceName` - # @return [String] - attr_accessor :resource_name - - # The person's interests. - # Corresponds to the JSON property `interests` - # @return [Array] - attr_accessor :interests - - # The person's biographies. - # Corresponds to the JSON property `biographies` - # @return [Array] - attr_accessor :biographies - - # The person's skills. - # Corresponds to the JSON property `skills` - # @return [Array] - attr_accessor :skills - - # The person's relationship statuses. - # Corresponds to the JSON property `relationshipStatuses` - # @return [Array] - attr_accessor :relationship_statuses - - # The person's photos. - # Corresponds to the JSON property `photos` - # @return [Array] - attr_accessor :photos - - # DEPRECATED(Please read person.age_ranges instead). The person's age range. - # Corresponds to the JSON property `ageRange` - # @return [String] - attr_accessor :age_range - - # The person's taglines. - # Corresponds to the JSON property `taglines` - # @return [Array] - attr_accessor :taglines - - # The person's age ranges. - # Corresponds to the JSON property `ageRanges` - # @return [Array] - attr_accessor :age_ranges - - # The person's street addresses. - # Corresponds to the JSON property `addresses` - # @return [Array] - attr_accessor :addresses - - # The person's events. - # Corresponds to the JSON property `events` - # @return [Array] - attr_accessor :events - - # The person's group memberships. - # Corresponds to the JSON property `memberships` - # @return [Array] - attr_accessor :memberships - - # The person's phone numbers. - # Corresponds to the JSON property `phoneNumbers` - # @return [Array] - attr_accessor :phone_numbers - # The person's cover photos. # Corresponds to the JSON property `coverPhotos` # @return [Array] @@ -593,27 +342,88 @@ module Google # @return [Google::Apis::PeopleV1::PersonMetadata] attr_accessor :metadata + # The person's residences. + # Corresponds to the JSON property `residences` + # @return [Array] + attr_accessor :residences + + # The person's genders. + # Corresponds to the JSON property `genders` + # @return [Array] + attr_accessor :genders + + # The resource name for the person, assigned by the server. An ASCII string + # with a max length of 27 characters. Always starts with `people/`. + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + # The person's interests. + # Corresponds to the JSON property `interests` + # @return [Array] + attr_accessor :interests + + # The person's biographies. + # Corresponds to the JSON property `biographies` + # @return [Array] + attr_accessor :biographies + + # The person's skills. + # Corresponds to the JSON property `skills` + # @return [Array] + attr_accessor :skills + + # The person's relationship statuses. + # Corresponds to the JSON property `relationshipStatuses` + # @return [Array] + attr_accessor :relationship_statuses + + # The person's photos. + # Corresponds to the JSON property `photos` + # @return [Array] + attr_accessor :photos + + # DEPRECATED(Please read person.age_ranges instead). The person's age range. + # Corresponds to the JSON property `ageRange` + # @return [String] + attr_accessor :age_range + + # The person's taglines. + # Corresponds to the JSON property `taglines` + # @return [Array] + attr_accessor :taglines + + # The person's age ranges. + # Corresponds to the JSON property `ageRanges` + # @return [Array] + attr_accessor :age_ranges + + # The person's street addresses. + # Corresponds to the JSON property `addresses` + # @return [Array] + attr_accessor :addresses + + # The person's events. + # Corresponds to the JSON property `events` + # @return [Array] + attr_accessor :events + + # The person's group memberships. + # Corresponds to the JSON property `memberships` + # @return [Array] + attr_accessor :memberships + + # The person's phone numbers. + # Corresponds to the JSON property `phoneNumbers` + # @return [Array] + attr_accessor :phone_numbers + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @residences = args[:residences] if args.key?(:residences) - @genders = args[:genders] if args.key?(:genders) - @resource_name = args[:resource_name] if args.key?(:resource_name) - @interests = args[:interests] if args.key?(:interests) - @biographies = args[:biographies] if args.key?(:biographies) - @skills = args[:skills] if args.key?(:skills) - @relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses) - @photos = args[:photos] if args.key?(:photos) - @age_range = args[:age_range] if args.key?(:age_range) - @taglines = args[:taglines] if args.key?(:taglines) - @age_ranges = args[:age_ranges] if args.key?(:age_ranges) - @addresses = args[:addresses] if args.key?(:addresses) - @events = args[:events] if args.key?(:events) - @memberships = args[:memberships] if args.key?(:memberships) - @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers) @cover_photos = args[:cover_photos] if args.key?(:cover_photos) @im_clients = args[:im_clients] if args.key?(:im_clients) @birthdays = args[:birthdays] if args.key?(:birthdays) @@ -629,6 +439,21 @@ module Google @etag = args[:etag] if args.key?(:etag) @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights) @metadata = args[:metadata] if args.key?(:metadata) + @residences = args[:residences] if args.key?(:residences) + @genders = args[:genders] if args.key?(:genders) + @resource_name = args[:resource_name] if args.key?(:resource_name) + @interests = args[:interests] if args.key?(:interests) + @biographies = args[:biographies] if args.key?(:biographies) + @skills = args[:skills] if args.key?(:skills) + @relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses) + @photos = args[:photos] if args.key?(:photos) + @age_range = args[:age_range] if args.key?(:age_range) + @taglines = args[:taglines] if args.key?(:taglines) + @age_ranges = args[:age_ranges] if args.key?(:age_ranges) + @addresses = args[:addresses] if args.key?(:addresses) + @events = args[:events] if args.key?(:events) + @memberships = args[:memberships] if args.key?(:memberships) + @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers) end end @@ -651,6 +476,32 @@ module Google 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 + + # The URL of the photo. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # 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) + @url = args[:url] if args.key?(:url) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + # A person's phone number. class PhoneNumber include Google::Apis::Core::Hashable @@ -710,32 +561,6 @@ module Google 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 - - # The URL of the photo. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # 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) - @url = args[:url] if args.key?(:url) - @metadata = args[:metadata] if args.key?(:metadata) - end - end - # class ListConnectionsResponse include Google::Apis::Core::Hashable @@ -779,6 +604,16 @@ module Google class Birthday include Google::Apis::Core::Hashable + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # A free-form string representing the user's birthday. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + # 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 @@ -791,25 +626,15 @@ module Google # @return [Google::Apis::PeopleV1::Date] attr_accessor :date - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # A free-form string representing the user's birthday. - # 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) - @date = args[:date] if args.key?(:date) @metadata = args[:metadata] if args.key?(:metadata) @text = args[:text] if args.key?(:text) + @date = args[:date] if args.key?(:date) end end @@ -818,6 +643,26 @@ module Google class Address include Google::Apis::Core::Hashable + # 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] @@ -865,32 +710,15 @@ module Google # @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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) @postal_code = args[:postal_code] if args.key?(:postal_code) @@ -900,9 +728,6 @@ module Google @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) end end @@ -910,6 +735,11 @@ module Google class Residence include Google::Apis::Core::Hashable + # The address of the residence. + # 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] @@ -922,20 +752,15 @@ module Google attr_accessor :current alias_method :current?, :current - # The address of the residence. - # 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) + @value = args[:value] if args.key?(:value) @metadata = args[:metadata] if args.key?(:metadata) @current = args[:current] if args.key?(:current) - @value = args[:value] if args.key?(:value) end end @@ -963,54 +788,6 @@ module Google end end - # An event related to the person. - class Event - include Google::Apis::Core::Hashable - - # 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 - - # The read-only type of the event 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 - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @date = args[:date] if args.key?(:date) - @formatted_type = args[:formatted_type] if args.key?(:formatted_type) - @metadata = args[:metadata] if args.key?(:metadata) - @type = args[:type] if args.key?(:type) - end - end - # The read-only metadata about a person. class PersonMetadata include Google::Apis::Core::Hashable @@ -1063,6 +840,54 @@ module Google end end + # An event related to the person. + class Event + include Google::Apis::Core::Hashable + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # 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 + + # 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 + + # The read-only type of the event 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) + @metadata = args[:metadata] if args.key?(:metadata) + @type = args[:type] if args.key?(:type) + @date = args[:date] if args.key?(:date) + @formatted_type = args[:formatted_type] if args.key?(:formatted_type) + end + end + # The read-only metadata about a profile. class ProfileMetadata include Google::Apis::Core::Hashable @@ -1082,44 +907,6 @@ module Google end end - # A person's gender. - class Gender - include Google::Apis::Core::Hashable - - # The read-only value of the gender 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 gender for the person. The gender can be custom or predefined. - # Possible values include, but are not limited to, the - # following: - # * `male` - # * `female` - # * `other` - # * `unknown` - # 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 - # A person's associated URLs. class Url include Google::Apis::Core::Hashable @@ -1168,11 +955,54 @@ module Google end end + # A person's gender. + class Gender + include Google::Apis::Core::Hashable + + # The read-only value of the gender 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 gender for the person. The gender can be custom or predefined. + # Possible values include, but are not limited to, the + # following: + # * `male` + # * `female` + # * `other` + # * `unknown` + # 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 + # A person's read-only cover photo. A large image shown on the person's # profile page that represents who they are or what they care about. class CoverPhoto include Google::Apis::Core::Hashable + # The URL of the cover photo. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + # Metadata about a field. # Corresponds to the JSON property `metadata` # @return [Google::Apis::PeopleV1::FieldMetadata] @@ -1185,20 +1015,15 @@ module Google attr_accessor :default alias_method :default?, :default - # The URL of the cover photo. - # 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) @metadata = args[:metadata] if args.key?(:metadata) @default = args[:default] if args.key?(:default) - @url = args[:url] if args.key?(:url) end end @@ -1243,6 +1068,20 @@ module Google # @return [String] attr_accessor :formatted_type + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The type of the IM client. 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 protocol of the IM client. The protocol can be custom or predefined. # Possible values include, but are not limited to, the following: # * `aim` @@ -1258,20 +1097,6 @@ module Google # @return [String] attr_accessor :protocol - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The type of the IM client. 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 user name used in the IM client. # Corresponds to the JSON property `username` # @return [String] @@ -1285,9 +1110,9 @@ module Google def update!(**args) @formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) - @protocol = args[:protocol] if args.key?(:protocol) @metadata = args[:metadata] if args.key?(:metadata) @type = args[:type] if args.key?(:type) + @protocol = args[:protocol] if args.key?(:protocol) @username = args[:username] if args.key?(:username) end end @@ -1344,11 +1169,6 @@ module Google class Nickname include Google::Apis::Core::Hashable - # The nickname. - # 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] @@ -1359,15 +1179,20 @@ module Google # @return [String] attr_accessor :type + # 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) - @value = args[:value] if args.key?(:value) @metadata = args[:metadata] if args.key?(:metadata) @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -1489,6 +1314,31 @@ module Google 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 + # 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 @@ -1529,35 +1379,30 @@ module Google end end - # A read-only brief one-line description of the person. - class Tagline + # A person's name. If the name is a mononym, the family name is empty. + class Name include Google::Apis::Core::Hashable + # 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 - # 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] @@ -1591,16 +1436,16 @@ module Google # @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 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] @@ -1611,46 +1456,26 @@ module Google # @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_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) @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) + @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 @@ -1704,6 +1529,181 @@ module Google @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 + + # 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 + + # 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 + + # 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 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 phonetic name of the organization. + # Corresponds to the JSON property `phoneticName` + # @return [String] + attr_accessor :phonetic_name + + # 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 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current = args[:current] if args.key?(:current) + @formatted_type = args[:formatted_type] if args.key?(:formatted_type) + @start_date = args[:start_date] if args.key?(:start_date) + @domain = args[:domain] if args.key?(:domain) + @department = args[:department] if args.key?(:department) + @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name) + @type = args[:type] if args.key?(:type) + @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) + end + end + + # A person's short biography. + class Biography + include Google::Apis::Core::Hashable + + # 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 + + # The short biography. + # 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) + @content_type = args[:content_type] if args.key?(:content_type) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + 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 end end end diff --git a/generated/google/apis/people_v1/representations.rb b/generated/google/apis/people_v1/representations.rb index cfd0bc545..84ea0d76e 100644 --- a/generated/google/apis/people_v1/representations.rb +++ b/generated/google/apis/people_v1/representations.rb @@ -22,30 +22,18 @@ module Google module Apis module PeopleV1 - class Organization - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Biography - 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 FieldMetadata 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 PersonResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,12 +46,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Source - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Relation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,13 +70,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class PhoneNumber + class Photo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Photo + class PhoneNumber class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -130,13 +112,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Event + class PersonMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class PersonMetadata + class Event class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -148,13 +130,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Gender + class Url class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Url + class Gender class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -214,13 +196,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Date + class Tagline class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Tagline + class Date class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -245,54 +227,41 @@ module Google end class Organization - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_date, as: 'endDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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' - property :phonetic_name, as: 'phoneticName' - property :type, as: 'type' - property :job_description, as: 'jobDescription' - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class FieldMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - property :primary, as: 'primary' 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 Source + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :profile_metadata, as: 'profileMetadata', class: Google::Apis::PeopleV1::ProfileMetadata, decorator: Google::Apis::PeopleV1::ProfileMetadata::Representation + + property :type, as: 'type' + property :etag, as: 'etag' + property :id, as: 'id' end end @@ -309,32 +278,21 @@ module Google class RelationshipInterest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :value, as: 'value' - property :formatted_value, as: 'formattedValue' property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - 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 :value, as: 'value' + property :formatted_value, as: 'formattedValue' end end class Relation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :person, as: 'person' - property :formatted_type, as: 'formattedType' property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation property :type, as: 'type' + property :person, as: 'person' + property :formatted_type, as: 'formattedType' end end @@ -350,34 +308,6 @@ module Google class Person # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :residences, as: 'residences', class: Google::Apis::PeopleV1::Residence, decorator: Google::Apis::PeopleV1::Residence::Representation - - collection :genders, as: 'genders', class: Google::Apis::PeopleV1::Gender, decorator: Google::Apis::PeopleV1::Gender::Representation - - property :resource_name, as: 'resourceName' - collection :interests, as: 'interests', class: Google::Apis::PeopleV1::Interest, decorator: Google::Apis::PeopleV1::Interest::Representation - - collection :biographies, as: 'biographies', class: Google::Apis::PeopleV1::Biography, decorator: Google::Apis::PeopleV1::Biography::Representation - - collection :skills, as: 'skills', class: Google::Apis::PeopleV1::Skill, decorator: Google::Apis::PeopleV1::Skill::Representation - - collection :relationship_statuses, as: 'relationshipStatuses', class: Google::Apis::PeopleV1::RelationshipStatus, decorator: Google::Apis::PeopleV1::RelationshipStatus::Representation - - collection :photos, as: 'photos', class: Google::Apis::PeopleV1::Photo, decorator: Google::Apis::PeopleV1::Photo::Representation - - property :age_range, as: 'ageRange' - collection :taglines, as: 'taglines', class: Google::Apis::PeopleV1::Tagline, decorator: Google::Apis::PeopleV1::Tagline::Representation - - collection :age_ranges, as: 'ageRanges', class: Google::Apis::PeopleV1::AgeRangeType, decorator: Google::Apis::PeopleV1::AgeRangeType::Representation - - collection :addresses, as: 'addresses', class: Google::Apis::PeopleV1::Address, decorator: Google::Apis::PeopleV1::Address::Representation - - collection :events, as: 'events', class: Google::Apis::PeopleV1::Event, decorator: Google::Apis::PeopleV1::Event::Representation - - collection :memberships, as: 'memberships', class: Google::Apis::PeopleV1::Membership, decorator: Google::Apis::PeopleV1::Membership::Representation - - collection :phone_numbers, as: 'phoneNumbers', class: Google::Apis::PeopleV1::PhoneNumber, decorator: Google::Apis::PeopleV1::PhoneNumber::Representation - collection :cover_photos, as: 'coverPhotos', class: Google::Apis::PeopleV1::CoverPhoto, decorator: Google::Apis::PeopleV1::CoverPhoto::Representation collection :im_clients, as: 'imClients', class: Google::Apis::PeopleV1::ImClient, decorator: Google::Apis::PeopleV1::ImClient::Representation @@ -407,6 +337,34 @@ module Google property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::PersonMetadata, decorator: Google::Apis::PeopleV1::PersonMetadata::Representation + collection :residences, as: 'residences', class: Google::Apis::PeopleV1::Residence, decorator: Google::Apis::PeopleV1::Residence::Representation + + collection :genders, as: 'genders', class: Google::Apis::PeopleV1::Gender, decorator: Google::Apis::PeopleV1::Gender::Representation + + property :resource_name, as: 'resourceName' + collection :interests, as: 'interests', class: Google::Apis::PeopleV1::Interest, decorator: Google::Apis::PeopleV1::Interest::Representation + + collection :biographies, as: 'biographies', class: Google::Apis::PeopleV1::Biography, decorator: Google::Apis::PeopleV1::Biography::Representation + + collection :skills, as: 'skills', class: Google::Apis::PeopleV1::Skill, decorator: Google::Apis::PeopleV1::Skill::Representation + + collection :relationship_statuses, as: 'relationshipStatuses', class: Google::Apis::PeopleV1::RelationshipStatus, decorator: Google::Apis::PeopleV1::RelationshipStatus::Representation + + collection :photos, as: 'photos', class: Google::Apis::PeopleV1::Photo, decorator: Google::Apis::PeopleV1::Photo::Representation + + property :age_range, as: 'ageRange' + collection :taglines, as: 'taglines', class: Google::Apis::PeopleV1::Tagline, decorator: Google::Apis::PeopleV1::Tagline::Representation + + collection :age_ranges, as: 'ageRanges', class: Google::Apis::PeopleV1::AgeRangeType, decorator: Google::Apis::PeopleV1::AgeRangeType::Representation + + collection :addresses, as: 'addresses', class: Google::Apis::PeopleV1::Address, decorator: Google::Apis::PeopleV1::Address::Representation + + collection :events, as: 'events', class: Google::Apis::PeopleV1::Event, decorator: Google::Apis::PeopleV1::Event::Representation + + collection :memberships, as: 'memberships', class: Google::Apis::PeopleV1::Membership, decorator: Google::Apis::PeopleV1::Membership::Representation + + collection :phone_numbers, as: 'phoneNumbers', class: Google::Apis::PeopleV1::PhoneNumber, decorator: Google::Apis::PeopleV1::PhoneNumber::Representation + end end @@ -418,6 +376,15 @@ module Google end end + class Photo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + end + end + class PhoneNumber # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -430,15 +397,6 @@ module Google end end - class Photo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :url, as: 'url' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - end - end - class ListConnectionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -453,17 +411,20 @@ module Google class Birthday # @private class Representation < Google::Apis::Core::JsonRepresentation - property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation property :text, as: 'text' + property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation + end end class Address # @private class Representation < Google::Apis::Core::JsonRepresentation + property :formatted_value, as: 'formattedValue' + property :country, as: 'country' + property :type, as: 'type' property :extended_address, as: 'extendedAddress' property :po_box, as: 'poBox' property :postal_code, as: 'postalCode' @@ -474,19 +435,16 @@ module Google property :country_code, as: 'countryCode' property :formatted_type, as: 'formattedType' property :city, as: 'city' - property :formatted_value, as: 'formattedValue' - property :country, as: 'country' - property :type, as: 'type' end end class Residence # @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 property :current, as: 'current' - property :value, as: 'value' end end @@ -497,18 +455,6 @@ module Google 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 :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :type, as: 'type' - end - end - class PersonMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -521,6 +467,18 @@ module Google end end + class Event + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :type, as: 'type' + property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation + + property :formatted_type, as: 'formattedType' + end + end + class ProfileMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -528,16 +486,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 Url # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -549,13 +497,23 @@ 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 :url, as: 'url' property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation property :default, as: 'default' - property :url, as: 'url' end end @@ -573,10 +531,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :formatted_protocol, as: 'formattedProtocol' property :formatted_type, as: 'formattedType' - property :protocol, as: 'protocol' property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation property :type, as: 'type' + property :protocol, as: 'protocol' property :username, as: 'username' end end @@ -596,10 +554,10 @@ module Google class Nickname # @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 property :type, as: 'type' + property :value, as: 'value' end end @@ -641,15 +599,6 @@ module Google end 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 Tagline # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -659,24 +608,33 @@ module Google end 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 Name # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 + 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 :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 @@ -697,6 +655,48 @@ module Google property :value, as: 'value' end end + + class Organization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current, as: 'current' + property :formatted_type, as: 'formattedType' + property :start_date, as: 'startDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation + + property :domain, as: 'domain' + property :department, as: 'department' + property :phonetic_name, as: 'phoneticName' + property :type, as: 'type' + 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' + end + end + + class Biography + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_type, as: 'contentType' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + 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 end end end diff --git a/generated/google/apis/people_v1/service.rb b/generated/google/apis/people_v1/service.rb index befdea92e..69e65ea6c 100644 --- a/generated/google/apis/people_v1/service.rb +++ b/generated/google/apis/people_v1/service.rb @@ -49,6 +49,11 @@ module Google # Provides information about a list of specific people by specifying a list # of requested resource names. Use `people/me` to indicate the authenticated # user. + # @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] request_mask_include_field # Comma-separated list of fields to be included in the response. Omitting # this field will include all fields except for connections.list requests, @@ -56,16 +61,11 @@ module Google # photo, and profile url. # 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] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -78,14 +78,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_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil, &block) + def get_people(resource_names: nil, request_mask_include_field: nil, fields: nil, quota_user: 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -104,11 +104,11 @@ module Google # photo, and profile url. # Each path should start with `person.`: for example, `person.names` or # `person.photos`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not 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,14 +121,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_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block) + def get_person(resource_name, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resourceName}', options) 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['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? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -136,17 +136,11 @@ module Google # linked profiles. # @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 500, inclusive. Defaults to 100. # @param [String] request_mask_include_field # Comma-separated list of fields to be included in the response. Omitting # this field will include all fields except for connections.list requests, @@ -154,14 +148,20 @@ module Google # photo, and profile url. # Each path should start with `person.`: for example, `person.names` or # `person.photos`. + # @param [Fixnum] page_size + # The number of connections to include in the response. Valid values are + # between 1 and 500, inclusive. Defaults to 100. # @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] sort_order + # The order in which the connections should be sorted. Defaults to + # `LAST_MODIFIED_ASCENDING`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -174,19 +174,19 @@ 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, quota_user: nil, fields: nil, options: nil, &block) + def list_person_connections(resource_name, request_sync_token: nil, page_token: nil, request_mask_include_field: nil, page_size: nil, sync_token: nil, sort_order: nil, fields: nil, quota_user: 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['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['pageSize'] = page_size unless page_size.nil? command.query['syncToken'] = sync_token unless sync_token.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['sortOrder'] = sort_order unless sort_order.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/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index 746c58094..2e0de3e55 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 = '20170328' + REVISION = '20170329' # 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 d8558d7b4..3a6f43148 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 = '20170328' + REVISION = '20170329' # 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/classes.rb b/generated/google/apis/proximitybeacon_v1beta1/classes.rb index ac48b09fd..6ef160948 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/classes.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/classes.rb @@ -22,6 +22,465 @@ module Google module Apis module ProximitybeaconV1beta1 + # Information about the requested beacons, optionally including attachment + # data. + class GetInfoForObservedBeaconsResponse + include Google::Apis::Core::Hashable + + # Public information about beacons. + # May be empty if the request matched no beacons. + # Corresponds to the JSON property `beacons` + # @return [Array] + attr_accessor :beacons + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @beacons = args[:beacons] if args.key?(:beacons) + end + end + + # Details of a beacon device. + class Beacon + include Google::Apis::Core::Hashable + + # Defines a unique identifier of a beacon as broadcast by the device. + # Corresponds to the JSON property `advertisedId` + # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId] + attr_accessor :advertised_id + + # 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. + # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId` + # from users with write access to the given beacon. That is to say: If the + # user is authorized to write the beacon's confidential data in the service, + # the service considers them authorized to configure the beacon. Note + # that this key grants nothing on the service, only on the beacon itself. + # Corresponds to the JSON property `provisioningKey` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :provisioning_key + + # 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. + # Corresponds to the JSON property `ephemeralIdRegistration` + # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration] + attr_accessor :ephemeral_id_registration + + # 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) + # The code in logs/storage/validator/logs_validator_traits.cc treats this type + # as if it were annotated as ST_LOCATION. + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::ProximitybeaconV1beta1::LatLng] + attr_accessor :lat_lng + + # Free text used to identify and describe the beacon. Maximum length 140 + # characters. + # Optional. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The [Google Places API](/places/place-id) Place ID of the place where + # the beacon is deployed. This is given when the beacon is registered or + # updated, not automatically detected in any way. + # Optional. + # Corresponds to the JSON property `placeId` + # @return [String] + attr_accessor :place_id + + # Properties of the beacon device, for example battery type or firmware + # version. + # Optional. + # Corresponds to the JSON property `properties` + # @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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @description = args[:description] if args.key?(:description) + @place_id = args[:place_id] if args.key?(:place_id) + @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) + end + end + + # Defines a unique identifier of a beacon as broadcast by the device. + class AdvertisedId + include Google::Apis::Core::Hashable + + # Specifies the identifier type. + # Required. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The actual beacon identifier, as broadcast by the beacon hardware. Must be + # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP + # requests, and will be so encoded (with padding) in responses. The base64 + # encoding should be of the binary byte-stream and not any textual (such as + # hex) representation thereof. + # Required. + # Corresponds to the JSON property `id` + # 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) + @type = args[:type] if args.key?(:type) + @id = args[:id] if args.key?(:id) + end + end + + # Indoor level, a human-readable string as returned by Google Maps APIs, + # useful to indicate which floor of a building a beacon is located on. + class IndoorLevel + include Google::Apis::Core::Hashable + + # The name of this level. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + 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 + + # 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 + + # 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 [String] + 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 + + # Diagnostics for a single beacon. + class Diagnostics + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alerts = args[:alerts] if args.key?(:alerts) + @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) + 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms) + 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: @@ -45,6 +504,40 @@ module Google class EphemeralIdRegistration include Google::Apis::Core::Hashable + # 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 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 + # 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 @@ -54,13 +547,6 @@ module Google # @return [String] 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` - # @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/ @@ -72,41 +558,18 @@ module Google # @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` - # @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` - # @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` - # @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) + @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key) + @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value) + @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent) end end @@ -234,6 +697,7 @@ module Google # 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 @@ -253,11 +717,6 @@ module Google 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] @@ -269,34 +728,20 @@ module Google # @return [Array] attr_accessor :attachments + # The name under which the beacon is registered. + # Corresponds to the JSON property `beaconName` + # @return [String] + attr_accessor :beacon_name + 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) + @beacon_name = args[:beacon_name] if args.key?(:beacon_name) end end @@ -311,6 +756,7 @@ module Google # 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 @@ -338,6 +784,25 @@ module Google 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 @@ -351,6 +816,7 @@ module Google # responsible for parsing it. This field may frequently be empty, as # with a beacon that transmits telemetry only occasionally. # Corresponds to the JSON property `telemetry` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :telemetry @@ -396,462 +862,6 @@ module Google @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end - - # Information about the requested beacons, optionally including attachment - # data. - class GetInfoForObservedBeaconsResponse - include Google::Apis::Core::Hashable - - # Public information about beacons. - # May be empty if the request matched no beacons. - # Corresponds to the JSON property `beacons` - # @return [Array] - attr_accessor :beacons - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @beacons = args[:beacons] if args.key?(:beacons) - end - end - - # Details of a beacon device. - class Beacon - include Google::Apis::Core::Hashable - - # Free text used to identify and describe the beacon. Maximum length 140 - # characters. - # Optional. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The [Google Places API](/places/place-id) Place ID of the place where - # the beacon is deployed. This is given when the beacon is registered or - # updated, not automatically detected in any way. - # Optional. - # Corresponds to the JSON property `placeId` - # @return [String] - attr_accessor :place_id - - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless - # specified otherwise, this must conform to the - # WGS84 - # standard. Values must be within normalized ranges. - # Example of normalization code in Python: - # def NormalizeLongitude(longitude): - # """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) - # The code in logs/storage/validator/logs_validator_traits.cc treats this type - # as if it were annotated as ST_LOCATION. - # Corresponds to the JSON property `latLng` - # @return [Google::Apis::ProximitybeaconV1beta1::LatLng] - attr_accessor :lat_lng - - # Properties of the beacon device, for example battery type or firmware - # version. - # Optional. - # Corresponds to the JSON property `properties` - # @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 - - # 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. - # Corresponds to the JSON property `ephemeralIdRegistration` - # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration] - attr_accessor :ephemeral_id_registration - - # 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. - # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId` - # from users with write access to the given beacon. That is to say: If the - # user is authorized to write the beacon's confidential data in the service, - # the service considers them authorized to configure the beacon. Note - # that this key grants nothing on the service, only on the beacon itself. - # Corresponds to the JSON property `provisioningKey` - # @return [String] - attr_accessor :provisioning_key - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @place_id = args[:place_id] if args.key?(:place_id) - @lat_lng = args[:lat_lng] if args.key?(:lat_lng) - @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) - @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration) - @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key) - end - end - - # Defines a unique identifier of a beacon as broadcast by the device. - class AdvertisedId - include Google::Apis::Core::Hashable - - # Specifies the identifier type. - # Required. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The actual beacon identifier, as broadcast by the beacon hardware. Must be - # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP - # requests, and will be so encoded (with padding) in responses. The base64 - # encoding should be of the binary byte-stream and not any textual (such as - # hex) representation thereof. - # Required. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @id = args[:id] if args.key?(:id) - 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 - - # Indoor level, a human-readable string as returned by Google Maps APIs, - # useful to indicate which floor of a building a beacon is located on. - class IndoorLevel - include Google::Apis::Core::Hashable - - # The name of this level. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] 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 - - # 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 [String] - 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 - - # 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 - - # 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 - - # Resource name of this attachment. Attachment names have the format: - # beacons/beacon_id/attachments/attachment_id. - # Leave this empty on creation. - # Corresponds to the JSON property `attachmentName` - # @return [String] - attr_accessor :attachment_name - - # Specifies what kind of attachment this is. Tells a client how to - # interpret the `data` field. Format is namespace/type. Namespace - # provides type separation between clients. Type describes the type of - # `data`, for use by the client when parsing the `data` field. - # Required. - # Corresponds to the JSON property `namespacedType` - # @return [String] - attr_accessor :namespaced_type - - # An opaque data container for client-provided data. Must be - # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP - # requests, and will be so encoded (with padding) in responses. - # Required. - # Corresponds to the JSON property `data` - # @return [String] - attr_accessor :data - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms) - end - end end end end diff --git a/generated/google/apis/proximitybeacon_v1beta1/representations.rb b/generated/google/apis/proximitybeacon_v1beta1/representations.rb index 405cddfd3..4a8616bd8 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/representations.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/representations.rb @@ -22,6 +22,72 @@ module Google module Apis module ProximitybeaconV1beta1 + 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 IndoorLevel + 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 ListNamespacesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListBeaconsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Diagnostics + 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 GetInfoForObservedBeaconsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BeaconAttachment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class EphemeralIdRegistration class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,13 +124,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DeleteAttachmentsResponse + class EphemeralIdRegistrationParams class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class EphemeralIdRegistrationParams + class DeleteAttachmentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -83,80 +149,120 @@ module Google end class GetInfoForObservedBeaconsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Beacon - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation - include Google::Apis::Core::JsonObjectSupport + property :provisioning_key, :base64 => true, as: 'provisioningKey' + property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation + + property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation + + property :description, as: 'description' + property :place_id, as: 'placeId' + 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' + end 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 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :id, :base64 => true, as: 'id' + end end class IndoorLevel - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end - include Google::Apis::Core::JsonObjectSupport + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :year, as: 'year' + property :day, as: 'day' + property :month, as: 'month' + end end class ListNamespacesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation - include Google::Apis::Core::JsonObjectSupport + end end class ListBeaconsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + property :total_count, as: 'totalCount' + end end class Diagnostics - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :alerts, as: 'alerts' + property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation - include Google::Apis::Core::JsonObjectSupport - end - - class GetInfoForObservedBeaconsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + property :beacon_name, as: 'beaconName' + end end class Empty - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end - include Google::Apis::Core::JsonObjectSupport + 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 - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attachment_name, as: 'attachmentName' + property :namespaced_type, as: 'namespacedType' + property :data, :base64 => true, as: 'data' + property :creation_time_ms, as: 'creationTimeMs' + end end class EphemeralIdRegistration # @private class Representation < Google::Apis::Core::JsonRepresentation - property :initial_clock_value, 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' + property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey' + property :initial_clock_value, as: 'initialClockValue' + property :rotation_period_exponent, as: 'rotationPeriodExponent' end end @@ -195,18 +301,11 @@ module Google 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' + property :beacon_name, as: 'beaconName' end end @@ -219,6 +318,13 @@ module Google 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 @@ -237,112 +343,6 @@ module Google property :next_page_token, as: 'nextPageToken' end end - - class GetInfoForObservedBeaconsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation - - end - end - - class Beacon - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :place_id, as: 'placeId' - property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation - - 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 - - property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation - - property :provisioning_key, :base64 => true, as: 'provisioningKey' - end - end - - class AdvertisedId - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :id, :base64 => true, as: 'id' - end - 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 IndoorLevel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 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, as: 'totalCount' - 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 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 :attachment_name, as: 'attachmentName' - property :namespaced_type, as: 'namespacedType' - property :data, :base64 => true, as: 'data' - property :creation_time_ms, as: 'creationTimeMs' - end - end end end end diff --git a/generated/google/apis/proximitybeacon_v1beta1/service.rb b/generated/google/apis/proximitybeacon_v1beta1/service.rb index dc8e03db5..e3d5b0df0 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/service.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/service.rb @@ -52,11 +52,11 @@ module Google # APIKey) # 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -69,14 +69,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 getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, quota_user: nil, fields: 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -90,11 +90,11 @@ module Google # @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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -107,13 +107,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_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_namespaces(project_id: nil, quota_user: nil, fields: 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -128,11 +128,11 @@ module Google # 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -145,7 +145,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_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def update_namespace(namespace_name, namespace_object = nil, project_id: nil, quota_user: nil, fields: 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 @@ -153,8 +153,8 @@ module Google 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -165,11 +165,11 @@ module Google # to provision and register multiple beacons. However, clients should be # prepared to refresh this key when they encounter an error registering an # Eddystone-EID beacon. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -182,352 +182,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_eidparams(fields: nil, quota_user: nil, options: nil, &block) + def get_eidparams(quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/eidparams', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams - 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['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) - # from a signed-in user with **viewer**, **Is owner** or **Can edit** - # permissions in the Google Developers Console project. - # Requests may supply an Eddystone-EID beacon name in the form: - # `beacons/4!beaconId` where the `beaconId` is the base16 ephemeral ID - # broadcast by the beacon. The returned `Beacon` object will contain the - # beacon's stable Eddystone-UID. Clients not authorized to resolve the - # beacon's ephemeral Eddystone-EID broadcast will receive an error. - # @param [String] beacon_name - # Resource name of this beacon. A beacon name has the format - # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by - # the beacon and N is a code for the beacon's type. Possible values are - # `3` for Eddystone-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 request. 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::Beacon] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProximitybeaconV1beta1::Beacon] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+beaconName}', options) - command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon - command.params['beaconName'] = beacon_name unless beacon_name.nil? - command.query['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 beacon. **Any field that you do - # not populate in the submitted beacon will be permanently erased**, so you - # should follow the "read, modify, write" pattern to avoid inadvertently - # destroying data. - # Changes to the beacon status via this method will be silently ignored. - # To update beacon status, use the separate methods on this API for - # activation, deactivation, and decommissioning. - # 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 - # Resource name of this beacon. A beacon name has the format - # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by - # the beacon and N is a code for the beacon's type. Possible values are - # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon. - # This field must be left empty when registering. After reading a beacon, - # clients can use the name for future operations. - # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object - # @param [String] project_id - # The project id of the beacon 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::Beacon] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProximitybeaconV1beta1::Beacon] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_beacon(beacon_name, beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1beta1/{+beaconName}', options) - command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation - command.request_object = beacon_object - command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon - command.params['beaconName'] = beacon_name unless beacon_name.nil? - command.query['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 - - # Decommissions the specified beacon in the service. This beacon will no - # longer be returned from `beaconinfo.getforobserved`. This operation is - # permanent -- you will not be able to re-register a beacon with this ID - # again. - # 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 decommissioned. 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 of the beacon's "stable" UID. - # Required. - # @param [String] project_id - # The project id of the beacon to decommission. 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 decommission_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+beaconName}:decommission', options) - command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty - command.params['beaconName'] = beacon_name unless beacon_name.nil? - command.query['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 - # 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 deactivated. 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 deactivate. 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 deactivate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options) - command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty - command.params['beaconName'] = beacon_name unless beacon_name.nil? - command.query['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 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/ - # identity/protocols/OAuth2) - # from a signed-in user with **Is owner** or **Can edit** permissions in the - # Google Developers Console project. - # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object - # @param [String] project_id - # The project id of the project the beacon will be registered to. If - # the project id is not specified 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::Beacon] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProximitybeaconV1beta1::Beacon] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def register_beacon(beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/beacons:register', options) - command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation - command.request_object = beacon_object - command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon - command.query['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 @@ -611,11 +271,11 @@ module Google # Optional. # @param [String] page_token # A pagination token obtained from a previous request to list beacons. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -628,7 +288,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_beacons(q: nil, page_size: nil, project_id: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_beacons(q: nil, page_size: nil, project_id: nil, page_token: nil, quota_user: nil, fields: 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 @@ -636,8 +296,348 @@ module Google command.query['pageSize'] = page_size unless page_size.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? + command.query['fields'] = fields unless fields.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/ + # identity/protocols/OAuth2) + # from a signed-in user with **Is owner** or **Can edit** permissions in the + # Google Developers Console project. + # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object + # @param [String] project_id + # The project id of the project the beacon will be registered to. If + # the project id is not specified then the project making the request + # is used. + # 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::ProximitybeaconV1beta1::Beacon] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Beacon] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def register_beacon(beacon_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/beacons:register', options) + command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.request_object = beacon_object + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon + command.query['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 + + # 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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) + # from a signed-in user with **viewer**, **Is owner** or **Can edit** + # permissions in the Google Developers Console project. + # Requests may supply an Eddystone-EID beacon name in the form: + # `beacons/4!beaconId` where the `beaconId` is the base16 ephemeral ID + # broadcast by the beacon. The returned `Beacon` object will contain the + # beacon's stable Eddystone-UID. Clients not authorized to resolve the + # beacon's ephemeral Eddystone-EID broadcast will receive an error. + # @param [String] beacon_name + # Resource name of this beacon. A beacon name has the format + # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by + # the beacon and N is a code for the beacon's type. Possible values are + # `3` for Eddystone-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 request. 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::ProximitybeaconV1beta1::Beacon] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Beacon] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+beaconName}', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['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 the information about the specified beacon. **Any field that you do + # not populate in the submitted beacon will be permanently erased**, so you + # should follow the "read, modify, write" pattern to avoid inadvertently + # destroying data. + # Changes to the beacon status via this method will be silently ignored. + # To update beacon status, use the separate methods on this API for + # activation, deactivation, and decommissioning. + # 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 + # Resource name of this beacon. A beacon name has the format + # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by + # the beacon and N is a code for the beacon's type. Possible values are + # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon. + # This field must be left empty when registering. After reading a beacon, + # clients can use the name for future operations. + # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object + # @param [String] project_id + # The project id of the beacon 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::ProximitybeaconV1beta1::Beacon] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Beacon] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_beacon(beacon_name, beacon_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta1/{+beaconName}', options) + command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.request_object = beacon_object + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['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 + + # Decommissions the specified beacon in the service. This beacon will no + # longer be returned from `beaconinfo.getforobserved`. This operation is + # permanent -- you will not be able to re-register a beacon with this ID + # again. + # 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 decommissioned. 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 of the beacon's "stable" UID. + # Required. + # @param [String] project_id + # The project id of the beacon to decommission. 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::ProximitybeaconV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def decommission_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+beaconName}:decommission', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['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 + + # Deactivates a beacon. Once deactivated, the API will not return + # information nor attachment data for the beacon when queried via + # `beaconinfo.getforobserved`. Calling this method on an already inactive + # beacon will do nothing (but will return a successful response code). + # 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 deactivated. 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 deactivate. 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::ProximitybeaconV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def deactivate_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['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 + + # 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -663,11 +663,11 @@ module Google # @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 # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not 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,7 +680,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_beacon_diagnostics(beacon_name, page_size: nil, alert_filter: nil, project_id: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_beacon_diagnostics(beacon_name, page_size: nil, alert_filter: nil, project_id: nil, page_token: nil, quota_user: nil, fields: 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 @@ -689,8 +689,56 @@ module Google command.query['alertFilter'] = alert_filter unless alert_filter.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? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified attachment for the given beacon. Each attachment has + # a unique attachment name (`attachmentName`) which is returned when you + # fetch the attachment data via this API. You specify this with the delete + # request to control which attachment is removed. This operation cannot be + # undone. + # 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] attachment_name + # The attachment name (`attachmentName`) of + # the attachment to remove. For example: + # `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For + # Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the + # beacon's current EID, or its "stable" Eddystone-UID. + # Required. + # @param [String] project_id + # The project id of the attachment to delete. If not provided, the project + # that is making the request is used. + # 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::ProximitybeaconV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_beacon_attachment(attachment_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+attachmentName}', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty + command.params['attachmentName'] = attachment_name unless attachment_name.nil? + command.query['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 @@ -712,6 +760,10 @@ module Google # 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 attachment to include in response in + # namespace/type format. Accepts `*/*` to specify + # "all types in all namespaces". # @param [String] project_id # The project id to list beacon attachments under. This field can be # used when "*" is specified to mean all attachment namespaces. Projects @@ -719,15 +771,11 @@ module Google # 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 attachment to include in response in - # namespace/type format. Accepts `*/*` to specify - # "all types in all namespaces". - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -740,15 +788,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_attachments(beacon_name, project_id: nil, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_beacon_attachments(beacon_name, namespaced_type: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+beaconName}/attachments', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse command.params['beaconName'] = beacon_name unless beacon_name.nil? - command.query['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['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 @@ -781,11 +829,11 @@ module Google # the project id is not specified 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -798,7 +846,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_beacon_attachment(beacon_name, beacon_attachment_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments', options) command.request_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation command.request_object = beacon_attachment_object @@ -806,8 +854,8 @@ module Google command.response_class = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -829,6 +877,11 @@ module Google # 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 @@ -836,16 +889,11 @@ module Google # 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -858,63 +906,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_beacon_attachment_delete(beacon_name, project_id: nil, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block) + def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, quota_user: nil, fields: 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 - - # Deletes the specified attachment for the given beacon. Each attachment has - # a unique attachment name (`attachmentName`) which is returned when you - # fetch the attachment data via this API. You specify this with the delete - # request to control which attachment is removed. This operation cannot be - # undone. - # 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] attachment_name - # The attachment name (`attachmentName`) of - # the attachment to remove. For example: - # `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For - # Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the - # beacon's current EID, or its "stable" Eddystone-UID. - # Required. - # @param [String] project_id - # The project id of the attachment 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_attachment(attachment_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+attachmentName}', options) - command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty - command.params['attachmentName'] = attachment_name unless attachment_name.nil? command.query['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 diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index a76f3c677..5476a6109 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -27,11 +27,11 @@ module Google VERSION = 'V1' REVISION = '20170308' - # 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' + + # View and manage Pub/Sub topics and subscriptions + AUTH_PUBSUB = 'https://www.googleapis.com/auth/pubsub' end end end diff --git a/generated/google/apis/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index 8a7e8b6da..494e46eaf 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -97,6 +97,25 @@ module Google end end + # Request for the ModifyPushConfig method. + class ModifyPushConfigRequest + include Google::Apis::Core::Hashable + + # Configuration for a push delivery endpoint. + # Corresponds to the JSON property `pushConfig` + # @return [Google::Apis::PubsubV1::PushConfig] + attr_accessor :push_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @push_config = args[:push_config] if args.key?(:push_config) + end + end + # A message data and its attributes. The message payload must not be empty; # it must contain either a non-empty data field, or at least one attribute. class Message @@ -104,6 +123,7 @@ module Google # 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 @@ -140,25 +160,6 @@ module Google end end - # Request for the ModifyPushConfig method. - class ModifyPushConfigRequest - include Google::Apis::Core::Hashable - - # Configuration for a push delivery endpoint. - # Corresponds to the JSON property `pushConfig` - # @return [Google::Apis::PubsubV1::PushConfig] - attr_accessor :push_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @push_config = args[:push_config] if args.key?(:push_config) - end - end - # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable @@ -199,15 +200,20 @@ module Google end end - # Request for the Acknowledge method. - class AcknowledgeRequest + # Response for the `ListTopics` method. + class ListTopicsResponse include Google::Apis::Core::Hashable - # The acknowledgment ID for the messages being acknowledged that was returned - # by the Pub/Sub system in the `Pull` response. Must not be empty. - # Corresponds to the JSON property `ackIds` - # @return [Array] - attr_accessor :ack_ids + # 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) @@ -215,7 +221,8 @@ module Google # Update properties of this object def update!(**args) - @ack_ids = args[:ack_ids] if args.key?(:ack_ids) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @topics = args[:topics] if args.key?(:topics) end end @@ -238,20 +245,15 @@ module Google end end - # Response for the `ListTopics` method. - class ListTopicsResponse + # Request for the Acknowledge method. + class AcknowledgeRequest 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 + # The acknowledgment ID for the messages being acknowledged that was returned + # by the Pub/Sub system in the `Pull` response. Must not be empty. + # Corresponds to the JSON property `ackIds` + # @return [Array] + attr_accessor :ack_ids def initialize(**args) update!(**args) @@ -259,8 +261,7 @@ module Google # 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) + @ack_ids = args[:ack_ids] if args.key?(:ack_ids) end end @@ -268,11 +269,6 @@ module Google class ListTopicSubscriptionsResponse include Google::Apis::Core::Hashable - # The names of the subscriptions that match the request. - # Corresponds to the JSON property `subscriptions` - # @return [Array] - attr_accessor :subscriptions - # If not empty, indicates that there may be more subscriptions that match # the request; this value should be passed in a new # `ListTopicSubscriptionsRequest` to get more subscriptions. @@ -280,14 +276,19 @@ module Google # @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) - @subscriptions = args[:subscriptions] if args.key?(:subscriptions) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @subscriptions = args[:subscriptions] if args.key?(:subscriptions) end end @@ -317,25 +318,25 @@ module Google 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 + # 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) - @ack_id = args[:ack_id] if args.key?(:ack_id) @message = args[:message] if args.key?(:message) + @ack_id = args[:ack_id] if args.key?(:ack_id) end end @@ -404,12 +405,6 @@ module Google class PullRequest include Google::Apis::Core::Hashable - # 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 - # 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 @@ -421,14 +416,20 @@ module Google 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) - @max_messages = args[:max_messages] if args.key?(:max_messages) @return_immediately = args[:return_immediately] if args.key?(:return_immediately) + @max_messages = args[:max_messages] if args.key?(:max_messages) end end @@ -503,24 +504,6 @@ module Google class Subscription include Google::Apis::Core::Hashable - # The name of the subscription. It must have the format - # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must - # start with a letter, and contain only letters (`[A-Za-z]`), numbers - # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), - # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters - # in length, and it must not start with `"goog"`. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The name of the topic from which this subscription is receiving messages. - # 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] @@ -546,16 +529,34 @@ module Google # @return [Fixnum] attr_accessor :ack_deadline_seconds + # The name of the subscription. It must have the format + # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must + # start with a letter, and contain only letters (`[A-Za-z]`), numbers + # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), + # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters + # in length, and it must not start with `"goog"`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The name of the topic from which this subscription is receiving messages. + # 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) - @name = args[:name] if args.key?(:name) - @topic = args[:topic] if args.key?(:topic) @push_config = args[:push_config] if args.key?(:push_config) @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds) + @name = args[:name] if args.key?(:name) + @topic = args[:topic] if args.key?(:topic) end end @@ -581,30 +582,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 @@ -644,6 +621,7 @@ module Google # 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 @@ -670,6 +648,30 @@ module Google @bindings = args[:bindings] if args.key?(:bindings) 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 end end end diff --git a/generated/google/apis/pubsub_v1/representations.rb b/generated/google/apis/pubsub_v1/representations.rb index 82aa09bb9..7ff2a60fe 100644 --- a/generated/google/apis/pubsub_v1/representations.rb +++ b/generated/google/apis/pubsub_v1/representations.rb @@ -34,13 +34,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Message + class ModifyPushConfigRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ModifyPushConfigRequest + class Message class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -52,7 +52,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AcknowledgeRequest + class ListTopicsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -64,7 +64,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListTopicsResponse + class AcknowledgeRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -136,13 +136,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Topic + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Policy + class Topic class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -164,6 +164,14 @@ module Google 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 @@ -174,14 +182,6 @@ module Google 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 Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -190,10 +190,12 @@ module Google end end - class AcknowledgeRequest + class ListTopicsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :ack_ids, as: 'ackIds' + property :next_page_token, as: 'nextPageToken' + collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation + end end @@ -203,20 +205,18 @@ module Google end end - class ListTopicsResponse + class AcknowledgeRequest # @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' + collection :ack_ids, as: 'ackIds' end end class ListTopicSubscriptionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :subscriptions, as: 'subscriptions' property :next_page_token, as: 'nextPageToken' + collection :subscriptions, as: 'subscriptions' end end @@ -231,9 +231,9 @@ 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 @@ -255,8 +255,8 @@ module Google class PullRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :max_messages, as: 'maxMessages' property :return_immediately, as: 'returnImmediately' + property :max_messages, as: 'maxMessages' end end @@ -287,11 +287,11 @@ module Google class Subscription # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :topic, as: 'topic' property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation property :ack_deadline_seconds, as: 'ackDeadlineSeconds' + property :name, as: 'name' + property :topic, as: 'topic' end end @@ -302,13 +302,6 @@ module Google 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 @@ -318,6 +311,13 @@ module Google end end + + class Topic + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end end end end diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index 04659fd0d..c96062b5e 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -56,11 +56,11 @@ module Google # The subscription whose message is being acknowledged. # Format is `projects/`project`/subscriptions/`sub``. # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -73,15 +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 acknowledge_subscription(subscription, acknowledge_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options) command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation command.request_object = acknowledge_request_object command.response_representation = Google::Apis::PubsubV1::Empty::Representation command.response_class = Google::Apis::PubsubV1::Empty command.params['subscription'] = subscription unless subscription.nil? - command.query['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 @@ -94,11 +94,11 @@ module Google # The name of the subscription. # Format is `projects/`project`/subscriptions/`sub``. # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -111,15 +111,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 modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options) command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation command.request_object = modify_ack_deadline_request_object command.response_representation = Google::Apis::PubsubV1::Empty::Representation command.response_class = Google::Apis::PubsubV1::Empty command.params['subscription'] = subscription unless subscription.nil? - command.query['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 @@ -129,11 +129,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 # @@ -146,13 +146,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_subscription_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block) + def get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::PubsubV1::Policy::Representation command.response_class = Google::Apis::PubsubV1::Policy command.params['resource'] = resource unless resource.nil? - command.query['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 @@ -160,11 +160,11 @@ module Google # @param [String] subscription # The name of the subscription to get. # Format is `projects/`project`/subscriptions/`sub``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -177,13 +177,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_subscription(subscription, quota_user: nil, fields: nil, options: nil, &block) + def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+subscription}', options) command.response_representation = Google::Apis::PubsubV1::Subscription::Representation command.response_class = Google::Apis::PubsubV1::Subscription command.params['subscription'] = subscription unless subscription.nil? - command.query['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,11 +197,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::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -214,15 +214,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_subscription_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, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? - command.query['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 @@ -235,11 +235,11 @@ module Google # The name of the subscription. # Format is `projects/`project`/subscriptions/`sub``. # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -252,15 +252,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 modify_subscription_push_config(subscription, modify_push_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options) command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation command.request_object = modify_push_config_request_object command.response_representation = Google::Apis::PubsubV1::Empty::Representation command.response_class = Google::Apis::PubsubV1::Empty command.params['subscription'] = subscription unless subscription.nil? - command.query['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,11 +272,11 @@ module Google # @param [String] subscription # The subscription to delete. # Format is `projects/`project`/subscriptions/`sub``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -289,13 +289,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_subscription(subscription, quota_user: nil, fields: nil, options: nil, &block) + def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+subscription}', options) command.response_representation = Google::Apis::PubsubV1::Empty::Representation command.response_class = Google::Apis::PubsubV1::Empty command.params['subscription'] = subscription unless subscription.nil? - command.query['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 @@ -307,11 +307,11 @@ module Google # The subscription from which messages should be pulled. # Format is `projects/`project`/subscriptions/`sub``. # @param [Google::Apis::PubsubV1::PullRequest] pull_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -324,15 +324,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 pull_subscription(subscription, pull_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+subscription}:pull', options) command.request_representation = Google::Apis::PubsubV1::PullRequest::Representation command.request_object = pull_request_object command.response_representation = Google::Apis::PubsubV1::PullResponse::Representation command.response_class = Google::Apis::PubsubV1::PullResponse command.params['subscription'] = subscription unless subscription.nil? - command.query['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 @@ -346,11 +346,11 @@ module Google # system should return the next page of data. # @param [Fixnum] page_size # Maximum number of subscriptions 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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -363,50 +363,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_subscriptions(project, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_subscriptions(project, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+project}/subscriptions', options) command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse command.params['project'] = project unless project.nil? command.query['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 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_subscription_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 @@ -427,11 +392,11 @@ module Google # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters # in length, and it must not start with `"goog"`. # @param [Google::Apis::PubsubV1::Subscription] subscription_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -444,87 +409,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_subscription(name, subscription_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/{+name}', options) command.request_representation = Google::Apis::PubsubV1::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::PubsubV1::Subscription::Representation command.response_class = Google::Apis::PubsubV1::Subscription command.params['name'] = name unless name.nil? - command.query['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::PubsubV1::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::PubsubV1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_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 - command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::PubsubV1::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 - - # 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::PubsubV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PubsubV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_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) end @@ -534,11 +427,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::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -551,15 +444,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 set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::PubsubV1::Policy::Representation command.response_class = Google::Apis::PubsubV1::Policy command.params['resource'] = resource unless resource.nil? - command.query['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 + + # 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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::PubsubV1::Policy::Representation + command.response_class = Google::Apis::PubsubV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -573,11 +501,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::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -590,15 +518,123 @@ 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_topic_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, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? - command.query['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 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::PubsubV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::PubsubV1::Policy::Representation + command.response_class = Google::Apis::PubsubV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic + # does not exist. The message payload must not be empty; it must contain + # either a non-empty data field, or at least one attribute. + # @param [String] topic + # The messages in the request will be published on this topic. + # Format is `projects/`project`/topics/`topic``. + # @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::PublishResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::PublishResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def publish_topic(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+topic}:publish', options) + command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation + command.request_object = publish_request_object + command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation + command.response_class = Google::Apis::PubsubV1::PublishResponse + command.params['topic'] = topic unless topic.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # 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::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -610,11 +646,11 @@ module Google # @param [String] topic # Name of the topic to delete. # Format is `projects/`project`/topics/`topic``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -627,13 +663,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_topic(topic, quota_user: nil, fields: nil, options: nil, &block) + def delete_topic(topic, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+topic}', options) command.response_representation = Google::Apis::PubsubV1::Empty::Representation command.response_class = Google::Apis::PubsubV1::Empty command.params['topic'] = topic unless topic.nil? - command.query['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 +683,11 @@ module Google # return the next page of data. # @param [Fixnum] page_size # Maximum number of topics 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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -664,15 +700,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_topics(project, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_topics(project, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+project}/topics', options) command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation command.response_class = Google::Apis::PubsubV1::ListTopicsResponse command.params['project'] = project unless project.nil? command.query['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 @@ -685,11 +721,11 @@ module Google # signs (`%`). It must be between 3 and 255 characters in length, and it # must not start with `"goog"`. # @param [Google::Apis::PubsubV1::Topic] topic_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -702,15 +738,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_topic(name, topic_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/{+name}', options) command.request_representation = Google::Apis::PubsubV1::Topic::Representation command.request_object = topic_object command.response_representation = Google::Apis::PubsubV1::Topic::Representation command.response_class = Google::Apis::PubsubV1::Topic command.params['name'] = name unless name.nil? - command.query['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 @@ -720,11 +756,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::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -737,15 +773,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_topic_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, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::PubsubV1::Policy::Representation command.response_class = Google::Apis::PubsubV1::Policy command.params['resource'] = resource unless resource.nil? - command.query['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 @@ -755,11 +791,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 # @@ -772,13 +808,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_topic_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block) + def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::PubsubV1::Policy::Representation command.response_class = Google::Apis::PubsubV1::Policy command.params['resource'] = resource unless resource.nil? - command.query['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 @@ -786,11 +822,11 @@ module Google # @param [String] topic # The name of the topic to get. # Format is `projects/`project`/topics/`topic``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not 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,49 +839,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_topic(topic, quota_user: nil, fields: nil, options: nil, &block) + def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+topic}', options) command.response_representation = Google::Apis::PubsubV1::Topic::Representation command.response_class = Google::Apis::PubsubV1::Topic command.params['topic'] = topic unless topic.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic - # does not exist. The message payload must not be empty; it must contain - # either a non-empty data field, or at least one attribute. - # @param [String] topic - # The messages in the request will be published on this topic. - # Format is `projects/`project`/topics/`topic``. - # @param [Google::Apis::PubsubV1::PublishRequest] publish_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::PublishResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PubsubV1::PublishResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def publish_topic(topic, publish_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+topic}:publish', options) - command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation - command.request_object = publish_request_object - command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation - command.response_class = Google::Apis::PubsubV1::PublishResponse - command.params['topic'] = topic unless topic.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -859,11 +859,11 @@ module Google # that the system should return the next page of data. # @param [Fixnum] page_size # Maximum number of subscription names 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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -876,15 +876,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_topic_subscriptions(topic, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_topic_subscriptions(topic, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+topic}/subscriptions', options) command.response_representation = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse::Representation command.response_class = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse command.params['topic'] = topic unless topic.nil? command.query['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 diff --git a/generated/google/apis/replicapool_v1beta2/classes.rb b/generated/google/apis/replicapool_v1beta2/classes.rb index 677c5938b..be0cefe69 100644 --- a/generated/google/apis/replicapool_v1beta2/classes.rb +++ b/generated/google/apis/replicapool_v1beta2/classes.rb @@ -62,6 +62,7 @@ module Google # for optimistic locking. An up-to-date fingerprint must be provided in order to # modify the Instance Group Manager resource. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint @@ -267,6 +268,7 @@ module Google # not match the server-side fingerprint of the resource, then the request will # be rejected. # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :fingerprint diff --git a/generated/google/apis/runtimeconfig_v1.rb b/generated/google/apis/runtimeconfig_v1.rb index 4becd8df7..a8e1c9d85 100644 --- a/generated/google/apis/runtimeconfig_v1.rb +++ b/generated/google/apis/runtimeconfig_v1.rb @@ -28,11 +28,11 @@ module Google VERSION = 'V1' REVISION = '20170327' - # Manage your Google Cloud Platform services' runtime configuration - AUTH_CLOUDRUNTIMECONFIG = 'https://www.googleapis.com/auth/cloudruntimeconfig' - # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # Manage your Google Cloud Platform services' runtime configuration + AUTH_CLOUDRUNTIMECONFIG = 'https://www.googleapis.com/auth/cloudruntimeconfig' end end end diff --git a/generated/google/apis/runtimeconfig_v1/classes.rb b/generated/google/apis/runtimeconfig_v1/classes.rb index f36c6f86e..bf47e0b2a 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,22 +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 @@ -124,6 +137,33 @@ 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`. + # 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: @@ -175,44 +215,17 @@ 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 - - # 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 - 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) + @metadata = args[:metadata] if args.key?(:metadata) 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 57309b6b3..601a686f4 100644 --- a/generated/google/apis/runtimeconfig_v1/representations.rb +++ b/generated/google/apis/runtimeconfig_v1/representations.rb @@ -22,6 +22,12 @@ 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 @@ -47,17 +53,17 @@ 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 @@ -73,12 +79,12 @@ module Google class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::RuntimeconfigV1::Status, decorator: Google::Apis::RuntimeconfigV1::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::RuntimeconfigV1::Status, decorator: Google::Apis::RuntimeconfigV1::Status::Representation + + hash :metadata, as: 'metadata' end end @@ -87,12 +93,6 @@ module Google 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/script_v1.rb b/generated/google/apis/script_v1.rb index 6ea7ab9af..8cf659335 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -27,6 +27,12 @@ module Google VERSION = 'V1' REVISION = '20170328' + # View your email address + AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' + + # Manage your calendars + CALENDAR_FEEDS = 'https://www.google.com/calendar/feeds' + # View and manage your Google Groups AUTH_GROUPS = 'https://www.googleapis.com/auth/groups' @@ -36,29 +42,23 @@ module Google # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' + # Read, send, delete, and manage your email + AUTH_SCOPE = 'https://mail.google.com/' + # 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 the provisioning of groups on your domain AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group' - # Read, send, delete, and manage your email - AUTH_SCOPE = 'https://mail.google.com/' + # 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' # Manage your contacts M8_FEEDS = 'https://www.google.com/m8/feeds' - - # View your email address - AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' - - # Manage your calendars - CALENDAR_FEEDS = 'https://www.google.com/calendar/feeds' end end end diff --git a/generated/google/apis/script_v1/classes.rb b/generated/google/apis/script_v1/classes.rb index bd3444b34..6328e1712 100644 --- a/generated/google/apis/script_v1/classes.rb +++ b/generated/google/apis/script_v1/classes.rb @@ -22,6 +22,31 @@ 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 @@ -68,6 +93,12 @@ module Google 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` @@ -81,21 +112,15 @@ module Google # @return [String] attr_accessor :message - # An array that contains a single `ExecutionError` object that provides - # information about the nature of the error. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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 @@ -105,20 +130,6 @@ module Google class ExecutionRequest include Google::Apis::Core::Hashable - # 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 - # 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` @@ -142,16 +153,30 @@ module Google # @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) - @session_state = args[:session_state] if args.key?(:session_state) @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 @@ -243,31 +268,6 @@ module Google @metadata = args[:metadata] if args.key?(:metadata) end end - - # 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 end end end diff --git a/generated/google/apis/script_v1/representations.rb b/generated/google/apis/script_v1/representations.rb index 701300e02..72cae21a5 100644 --- a/generated/google/apis/script_v1/representations.rb +++ b/generated/google/apis/script_v1/representations.rb @@ -22,6 +22,12 @@ 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 @@ -53,9 +59,11 @@ module Google end class ScriptStackTraceElement - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_number, as: 'lineNumber' + property :function, as: 'function' + end end class ExecutionError @@ -71,19 +79,19 @@ module Google 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 ExecutionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :session_state, as: 'sessionState' property :function, as: 'function' property :dev_mode, as: 'devMode' collection :parameters, as: 'parameters' + property :session_state, as: 'sessionState' end end @@ -105,14 +113,6 @@ module Google hash :metadata, as: 'metadata' end end - - class ScriptStackTraceElement - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :line_number, as: 'lineNumber' - property :function, as: 'function' - end - end end end end diff --git a/generated/google/apis/searchconsole_v1/classes.rb b/generated/google/apis/searchconsole_v1/classes.rb index 07a724a0a..d064b4065 100644 --- a/generated/google/apis/searchconsole_v1/classes.rb +++ b/generated/google/apis/searchconsole_v1/classes.rb @@ -148,6 +148,33 @@ module Google end end + # Describe image data. + class Image + include Google::Apis::Core::Hashable + + # The mime-type of the image data. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # Image data in format determined by the mime type. Currently, the format + # will always be "image/png", but this might change in the future. + # 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) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @data = args[:data] if args.key?(:data) + end + end + # Mobile-friendly test request. class RunMobileFriendlyTestRequest include Google::Apis::Core::Hashable @@ -173,32 +200,6 @@ module Google @request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot) end end - - # Describe image data. - class Image - include Google::Apis::Core::Hashable - - # The mime-type of the image data. - # Corresponds to the JSON property `mimeType` - # @return [String] - attr_accessor :mime_type - - # Image data in format determined by the mime type. Currently, the format - # will always be "image/png", but this might change in the future. - # Corresponds to the JSON property `data` - # @return [String] - attr_accessor :data - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @mime_type = args[:mime_type] if args.key?(:mime_type) - @data = args[:data] if args.key?(:data) - end - end end end end diff --git a/generated/google/apis/searchconsole_v1/representations.rb b/generated/google/apis/searchconsole_v1/representations.rb index 4e652c2d0..5e1e4f68b 100644 --- a/generated/google/apis/searchconsole_v1/representations.rb +++ b/generated/google/apis/searchconsole_v1/representations.rb @@ -52,13 +52,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RunMobileFriendlyTestRequest + class Image class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Image + class RunMobileFriendlyTestRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -109,14 +109,6 @@ module Google end end - class RunMobileFriendlyTestRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :url, as: 'url' - property :request_screenshot, as: 'requestScreenshot' - end - end - class Image # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -124,6 +116,14 @@ module Google property :data, :base64 => true, as: 'data' end end + + class RunMobileFriendlyTestRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :request_screenshot, as: 'requestScreenshot' + end + end end end end diff --git a/generated/google/apis/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index 25e274cf6..957c0ac56 100644 --- a/generated/google/apis/servicecontrol_v1.rb +++ b/generated/google/apis/servicecontrol_v1.rb @@ -26,13 +26,13 @@ module Google # @see https://cloud.google.com/service-control/ module ServicecontrolV1 VERSION = 'V1' - REVISION = '20170319' - - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + REVISION = '20170326' # Manage your Google Service Control data AUTH_SERVICECONTROL = 'https://www.googleapis.com/auth/servicecontrol' + + # 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/servicecontrol_v1/classes.rb b/generated/google/apis/servicecontrol_v1/classes.rb index b75eea486..d8789848d 100644 --- a/generated/google/apis/servicecontrol_v1/classes.rb +++ b/generated/google/apis/servicecontrol_v1/classes.rb @@ -22,669 +22,6 @@ module Google module Apis module ServicecontrolV1 - # 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 - - # 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 - - # 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) - @quota_mode = args[:quota_mode] if args.key?(:quota_mode) - @method_name = args[:method_name] if args.key?(:method_name) - @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 - - # Contains the quota information for a quota check response. - # Corresponds to the JSON property `quotaInfo` - # @return [Google::Apis::ServicecontrolV1::QuotaInfo] - attr_accessor :quota_info - - # 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) - @quota_info = args[:quota_info] if args.key?(:quota_info) - @operation_id = args[:operation_id] if args.key?(:operation_id) - end - end - - # Represents information regarding an operation. - class Operation - include Google::Apis::Core::Hashable - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets) - 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 - - # 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 - - # 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 - - # 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 - - # Contains the quota information for a quota check response. - # Corresponds to the JSON property `quotaInfo` - # @return [Google::Apis::ServicecontrolV1::QuotaInfo] - attr_accessor :quota_info - - # 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) - @operation_id = args[:operation_id] if args.key?(:operation_id) - @check_errors = args[:check_errors] if args.key?(:check_errors) - @check_info = args[:check_info] if args.key?(:check_info) - @quota_info = args[:quota_info] if args.key?(:quota_info) - @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - end - end - - # Request message for the Report method. - class ReportRequest - include Google::Apis::Core::Hashable - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operations = args[:operations] if args.key?(:operations) - @service_config_id = args[:service_config_id] if args.key?(:service_config_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` which can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting purpose. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - class Status - include Google::Apis::Core::Hashable - - # 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 - - # Common audit log format for Google Cloud Platform API operations. - class AuditLog - include Google::Apis::Core::Hashable - - # 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 - - # 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 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 [String] - 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` which can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting purpose. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - # Corresponds to the JSON property `status` - # @return [Google::Apis::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) - @resource_name = args[:resource_name] if args.key?(:resource_name) - @authorization_info = args[:authorization_info] if args.key?(:authorization_info) - @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) - @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 - - # 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 @@ -769,12 +106,6 @@ module Google class Money include Google::Apis::Core::Hashable - # The whole units of the amount. - # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - # Corresponds to the JSON property `units` - # @return [String] - attr_accessor :units - # The 3-letter currency code defined in ISO 4217. # Corresponds to the JSON property `currencyCode` # @return [String] @@ -790,15 +121,21 @@ module Google # @return [Fixnum] attr_accessor :nanos + # The whole units of the amount. + # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + # Corresponds to the JSON property `units` + # @return [String] + attr_accessor :units + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @units = args[:units] if args.key?(:units) @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 @@ -856,6 +193,37 @@ module Google end end + # Describing buckets with arbitrary user-provided width. + class ExplicitBuckets + include Google::Apis::Core::Hashable + + # 'bound' is a list of strictly increasing boundaries between + # buckets. Note that a list of length N-1 defines N buckets because + # of fenceposting. See comments on `bucket_options` for details. + # The i'th finite bucket covers the interval + # [bound[i-1], bound[i]) + # where i ranges from 1 to bound_size() - 1. Note that there are no + # finite buckets at all if 'bound' only contains a single element; in + # that special case the single bound defines the boundary between the + # underflow and overflow buckets. + # bucket number lower bound upper bound + # i == 0 (underflow) -inf bound[i] + # 0 < i < bound_size() bound[i-1] bound[i] + # i == bound_size() (overflow) bound[i-1] +inf + # Corresponds to the JSON property `bounds` + # @return [Array] + attr_accessor :bounds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounds = args[:bounds] if args.key?(:bounds) + 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: @@ -866,6 +234,32 @@ module Google class Distribution include Google::Apis::Core::Hashable + # 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 + + # The total number of samples in the distribution. Must be >= 0. + # Corresponds to the JSON property `count` + # @return [String] + 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. @@ -897,78 +291,21 @@ module Google # @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 - - # The total number of samples in the distribution. Must be >= 0. - # Corresponds to the JSON property `count` - # @return [String] - 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @count = args[:count] if args.key?(:count) @mean = args[:mean] if args.key?(:mean) - end - end - - # Describing buckets with arbitrary user-provided width. - class ExplicitBuckets - include Google::Apis::Core::Hashable - - # 'bound' is a list of strictly increasing boundaries between - # buckets. Note that a list of length N-1 defines N buckets because - # of fenceposting. See comments on `bucket_options` for details. - # The i'th finite bucket covers the interval - # [bound[i-1], bound[i]) - # where i ranges from 1 to bound_size() - 1. Note that there are no - # finite buckets at all if 'bound' only contains a single element; in - # that special case the single bound defines the boundary between the - # underflow and overflow buckets. - # bucket number lower bound upper bound - # i == 0 (underflow) -inf bound[i] - # 0 < i < bound_size() bound[i-1] bound[i] - # i == bound_size() (overflow) bound[i-1] +inf - # Corresponds to the JSON property `bounds` - # @return [Array] - attr_accessor :bounds - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounds = args[:bounds] if args.key?(:bounds) + @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) end end @@ -1167,25 +504,25 @@ module Google class AuthenticationInfo include Google::Apis::Core::Hashable + # The email address of the authenticated user making the request. + # Corresponds to the JSON property `principalEmail` + # @return [String] + attr_accessor :principal_email + # The authority selector specified by the requestor, if any. # It is not guaranteed that the principal was allowed to use this authority. # Corresponds to the JSON property `authoritySelector` # @return [String] attr_accessor :authority_selector - # The email address of the authenticated user making the request. - # Corresponds to the JSON property `principalEmail` - # @return [String] - attr_accessor :principal_email - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @authority_selector = args[:authority_selector] if args.key?(:authority_selector) @principal_email = args[:principal_email] if args.key?(:principal_email) + @authority_selector = args[:authority_selector] if args.key?(:authority_selector) end end @@ -1193,6 +530,16 @@ module Google class AllocateQuotaResponse include Google::Apis::Core::Hashable + # 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 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 @@ -1217,26 +564,16 @@ module Google # @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 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) - @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) + @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) + @operation_id = args[:operation_id] if args.key?(:operation_id) end end @@ -1267,39 +604,6 @@ module Google end end - # - class QuotaError - include Google::Apis::Core::Hashable - - # 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 - - # Free-form text that provides details on the cause of the error. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # 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) - @subject = args[:subject] if args.key?(:subject) - @description = args[:description] if args.key?(:description) - @code = args[:code] if args.key?(:code) - end - end - # Metadata about the request. class RequestMetadata include Google::Apis::Core::Hashable @@ -1334,6 +638,39 @@ module Google end end + # + class QuotaError + include Google::Apis::Core::Hashable + + # 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 + + # Free-form text that provides details on the cause of the error. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # 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) + @subject = args[:subject] if args.key?(:subject) + @description = args[:description] if args.key?(:description) + @code = args[:code] if args.key?(:code) + end + end + # class CheckInfo include Google::Apis::Core::Hashable @@ -1443,24 +780,24 @@ module Google 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 + # 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_values = args[:metric_values] if args.key?(:metric_values) @metric_name = args[:metric_name] if args.key?(:metric_name) + @metric_values = args[:metric_values] if args.key?(:metric_values) end end @@ -1468,6 +805,11 @@ module Google 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: @@ -1511,45 +853,14 @@ module Google # @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 - - # 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) + @status = args[:status] if args.key?(:status) end end @@ -1557,11 +868,6 @@ module Google 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. @@ -1569,14 +875,45 @@ module Google # @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) - @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation) @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 + + # 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 @@ -1632,14 +969,6 @@ module Google class CheckRequest 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 - # 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` @@ -1658,16 +987,687 @@ module Google attr_accessor :request_project_settings alias_method :request_project_settings?, :request_project_settings + # 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) - @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) @operation = args[:operation] if args.key?(:operation) @request_project_settings = args[:request_project_settings] if args.key?(:request_project_settings) + @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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) + @labels = args[:labels] if args.key?(:labels) + 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @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 + end + + # Response message for the Report method. + class ReportResponse + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @report_infos = args[:report_infos] if args.key?(:report_infos) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + @report_errors = args[:report_errors] if args.key?(:report_errors) + end + end + + # Response message for the Check method. + class CheckResponse + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + # 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 + + # Contains the quota information for a quota check response. + # Corresponds to the JSON property `quotaInfo` + # @return [Google::Apis::ServicecontrolV1::QuotaInfo] + attr_accessor :quota_info + + # 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) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @check_errors = args[:check_errors] if args.key?(:check_errors) + @check_info = args[:check_info] if args.key?(:check_info) + @quota_info = args[:quota_info] if args.key?(:quota_info) + @service_config_id = args[:service_config_id] if args.key?(:service_config_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` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # A list of messages that carry the error details. There will be a + # common set of message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @message = args[:message] if args.key?(:message) + @details = args[:details] if args.key?(:details) + end + end + + # Request message for the Report method. + class ReportRequest + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operations = args[:operations] if args.key?(:operations) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + end + end + + # Common audit log format for Google Cloud Platform API operations. + class AuditLog + include Google::Apis::Core::Hashable + + # 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 [String] + attr_accessor :num_response_items + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ServicecontrolV1::Status] + attr_accessor :status + + # Authentication information for the operation. + # Corresponds to the JSON property `authenticationInfo` + # @return [Google::Apis::ServicecontrolV1::AuthenticationInfo] + attr_accessor :authentication_info + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @status = args[:status] if args.key?(:status) + @authentication_info = args[:authentication_info] if args.key?(:authentication_info) + @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) + @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) + 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 + + # 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 + + # 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) + @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) + @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 end diff --git a/generated/google/apis/servicecontrol_v1/representations.rb b/generated/google/apis/servicecontrol_v1/representations.rb index d515f02b8..a2d02bf04 100644 --- a/generated/google/apis/servicecontrol_v1/representations.rb +++ b/generated/google/apis/servicecontrol_v1/representations.rb @@ -22,66 +22,6 @@ module Google module Apis module ServicecontrolV1 - 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 Operation - 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 CheckResponse - 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 Status - 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 @@ -100,13 +40,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Distribution + class ExplicitBuckets class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ExplicitBuckets + class Distribution class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -160,13 +100,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class QuotaError + class RequestMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RequestMetadata + class QuotaError class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -202,13 +142,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CheckError + class StartReconciliationRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class StartReconciliationRequest + class CheckError class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -227,133 +167,63 @@ module Google 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 :quota_mode, as: 'quotaMode' - property :method_name, as: 'methodName' - 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 :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :operation_id, as: 'operationId' - end + include Google::Apis::Core::JsonObjectSupport end class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :quota_properties, as: 'quotaProperties', class: Google::Apis::ServicecontrolV1::QuotaProperties, decorator: Google::Apis::ServicecontrolV1::QuotaProperties::Representation + class Representation < Google::Apis::Core::JsonRepresentation; 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 - - hash :user_labels, as: 'userLabels' - collection :metric_value_sets, as: 'metricValueSets', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation - - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :report_infos, as: 'reportInfos', class: Google::Apis::ServicecontrolV1::ReportInfo, decorator: Google::Apis::ServicecontrolV1::ReportInfo::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class CheckResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :operation_id, as: 'operationId' - collection :check_errors, as: 'checkErrors', class: Google::Apis::ServicecontrolV1::CheckError, decorator: Google::Apis::ServicecontrolV1::CheckError::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :check_info, as: 'checkInfo', class: Google::Apis::ServicecontrolV1::CheckInfo, decorator: Google::Apis::ServicecontrolV1::CheckInfo::Representation - - property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation - - property :service_config_id, as: 'serviceConfigId' - end - end - - class ReportRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :operations, as: 'operations', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation - - property :service_config_id, as: 'serviceConfigId' - 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 ReportRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class AuditLog - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :resource_name, as: 'resourceName' - collection :authorization_info, as: 'authorizationInfo', class: Google::Apis::ServicecontrolV1::AuthorizationInfo, decorator: Google::Apis::ServicecontrolV1::AuthorizationInfo::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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, 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 + 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 MetricValue @@ -376,9 +246,9 @@ module Google class Money # @private class Representation < Google::Apis::Core::JsonRepresentation - property :units, as: 'units' property :currency_code, as: 'currencyCode' property :nanos, as: 'nanos' + property :units, as: 'units' end end @@ -394,14 +264,16 @@ module Google end end + class ExplicitBuckets + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bounds, as: 'bounds' + end + end + class Distribution # @private class Representation < Google::Apis::Core::JsonRepresentation - 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' @@ -409,13 +281,11 @@ module Google property :count, as: 'count' property :mean, as: 'mean' - end - end + collection :bucket_counts, as: 'bucketCounts' + property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::ServicecontrolV1::ExplicitBuckets, decorator: Google::Apis::ServicecontrolV1::ExplicitBuckets::Representation - class ExplicitBuckets - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :bounds, as: 'bounds' + property :maximum, as: 'maximum' + property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation' end end @@ -469,20 +339,20 @@ module Google class AuthenticationInfo # @private class Representation < Google::Apis::Core::JsonRepresentation - property :authority_selector, as: 'authoritySelector' property :principal_email, as: 'principalEmail' + property :authority_selector, as: 'authoritySelector' end end class AllocateQuotaResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 + collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + + property :operation_id, as: 'operationId' end end @@ -495,6 +365,14 @@ module Google 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 QuotaError # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -504,14 +382,6 @@ module Google 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 @@ -544,35 +414,35 @@ module Google 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 - property :metric_name, as: 'metricName' end 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 - property :operation_id, as: 'operationId' - end - end - - class CheckError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :detail, as: 'detail' end 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 - 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 @@ -589,11 +459,141 @@ module Google class CheckRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :service_config_id, as: 'serviceConfigId' property :skip_activation_check, as: 'skipActivationCheck' property :operation, as: 'operation', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation property :request_project_settings, as: 'requestProjectSettings' + property :service_config_id, as: 'serviceConfigId' + end + end + + class QuotaOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consumer_id, as: 'consumerId' + property :operation_id, as: 'operationId' + property :quota_mode, as: 'quotaMode' + property :method_name, as: 'methodName' + collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + + hash :labels, as: 'labels' + 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 :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 + + 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' + end + end + + class ReportResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :report_infos, as: 'reportInfos', class: Google::Apis::ServicecontrolV1::ReportInfo, decorator: Google::Apis::ServicecontrolV1::ReportInfo::Representation + + property :service_config_id, as: 'serviceConfigId' + collection :report_errors, as: 'reportErrors', class: Google::Apis::ServicecontrolV1::ReportError, decorator: Google::Apis::ServicecontrolV1::ReportError::Representation + + end + end + + class CheckResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation_id, as: 'operationId' + collection :check_errors, as: 'checkErrors', class: Google::Apis::ServicecontrolV1::CheckError, decorator: Google::Apis::ServicecontrolV1::CheckError::Representation + + property :check_info, as: 'checkInfo', class: Google::Apis::ServicecontrolV1::CheckInfo, decorator: Google::Apis::ServicecontrolV1::CheckInfo::Representation + + property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation + + property :service_config_id, as: 'serviceConfigId' + 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 ReportRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :operations, as: 'operations', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation + + property :service_config_id, as: 'serviceConfigId' + end + end + + class AuditLog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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, as: 'numResponseItems' + property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation + + property :authentication_info, as: 'authenticationInfo', class: Google::Apis::ServicecontrolV1::AuthenticationInfo, decorator: Google::Apis::ServicecontrolV1::AuthenticationInfo::Representation + + property :service_name, as: 'serviceName' + hash :response, as: 'response' + property :method_name, as: 'methodName' + 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' + end + end + + class LogEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' + property :severity, as: 'severity' + property :insert_id, as: 'insertId' + property :name, as: 'name' + hash :struct_payload, as: 'structPayload' + property :text_payload, as: 'textPayload' + hash :proto_payload, as: 'protoPayload' + property :timestamp, as: 'timestamp' end end end diff --git a/generated/google/apis/servicecontrol_v1/service.rb b/generated/google/apis/servicecontrol_v1/service.rb index d49e9f27a..87675b9ee 100644 --- a/generated/google/apis/servicecontrol_v1/service.rb +++ b/generated/google/apis/servicecontrol_v1/service.rb @@ -33,20 +33,67 @@ module Google # # @see https://cloud.google.com/service-control/ class ServiceControlService < 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://servicecontrol.googleapis.com/', '') end + # Attempts to allocate quota for the specified consumer. It should be called + # before the operation is executed. + # 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::AllocateQuotaRequest] allocate_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::AllocateQuotaResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicecontrolV1::AllocateQuotaResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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) + 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? + execute_or_queue_command(command, &block) + end + # Unlike rate quota, allocation quota does not get refilled periodically. # So, it is possible that the quota usage as seen by the service differs from # what the One Platform considers the usage is. This is expected to happen @@ -75,11 +122,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 # @@ -92,15 +139,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, fields: nil, quota_user: nil, options: nil, &block) + def start_service_reconciliation(service_name, start_reconciliation_request_object = nil, quota_user: nil, fields: 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['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 @@ -119,11 +166,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 # @@ -136,15 +183,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 check_service(service_name, check_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def check_service(service_name, check_request_object = nil, quota_user: nil, fields: 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['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 @@ -165,11 +212,11 @@ module Google # `"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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -182,15 +229,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 release_service_quota(service_name, release_quota_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + 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['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 @@ -204,11 +251,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 # @@ -221,15 +268,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, fields: nil, quota_user: nil, options: nil, &block) + def end_service_reconciliation(service_name, end_reconciliation_request_object = nil, quota_user: nil, fields: 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['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 @@ -249,11 +296,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 # @@ -266,70 +313,23 @@ 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, fields: nil, quota_user: nil, options: nil, &block) + def report_service(service_name, report_request_object = nil, quota_user: nil, fields: 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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Attempts to allocate quota for the specified consumer. It should be called - # before the operation is executed. - # 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::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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicecontrolV1::AllocateQuotaResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicecontrolV1::AllocateQuotaResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end protected def apply_command_defaults(command) - command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['key'] = key unless key.nil? end end end diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index fa51949a5..dfd62cc1a 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,10 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20170317' - - # Manage your Google API service configuration - AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management' + REVISION = '20170327' # View your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' @@ -40,6 +37,9 @@ module Google # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # Manage your Google API service configuration + AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management' end end end diff --git a/generated/google/apis/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index b39c6fd01..148897903 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -22,2682 +22,6 @@ module Google module Apis module ServicemanagementV1 - # 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 APIs. The mapping determines what portions of the request - # message are populated from the path, query parameters, or body of - # the HTTP request. The mapping is typically specified as an - # `google.api.http` annotation, see "google/api/annotations.proto" - # for details. - # The mapping consists of a field specifying the path template and - # method kind. The path template can refer to fields in the request - # message, as in the example below which describes a REST GET - # operation on a resource collection of messages: - # service Messaging ` - # rpc GetMessage(GetMessageRequest) returns (Message) ` - # option (google.api.http).get = "/v1/messages/`message_id`/`sub. - # subfield`"; - # ` - # ` - # message GetMessageRequest ` - # message SubMessage ` - # string subfield = 1; - # ` - # string message_id = 1; // mapped to the URL - # SubMessage sub = 2; // `sub.subfield` is url-mapped - # ` - # message Message ` - # string text = 1; // content of the resource - # ` - # The same http annotation can alternatively be expressed inside the - # `GRPC API Configuration` YAML file. - # http: - # rules: - # - selector: .Messaging.GetMessage - # get: /v1/messages/`message_id`/`sub.subfield` - # This definition enables an automatic, bidrectional mapping of HTTP - # JSON to RPC. Example: - # HTTP | RPC - # -----|----- - # `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: - # SubMessage(subfield: "foo"))` - # In general, not only fields but also field paths can be referenced - # from a path pattern. Fields mapped to the path pattern cannot be - # repeated and must have a primitive (non-message) type. - # Any fields in the request message which are not bound by the path - # pattern automatically become (optional) HTTP query - # parameters. Assume the following definition of the request message: - # message GetMessageRequest ` - # message SubMessage ` - # string subfield = 1; - # ` - # string message_id = 1; // mapped to the URL - # int64 revision = 2; // becomes a parameter - # SubMessage sub = 3; // `sub.subfield` becomes a parameter - # ` - # This enables a HTTP JSON to RPC mapping as below: - # HTTP | RPC - # -----|----- - # `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: - # "123456" revision: 2 sub: SubMessage(subfield: "foo"))` - # Note that fields which are mapped to HTTP parameters must have a - # primitive type or a repeated primitive type. Message types are not - # allowed. In the case of a repeated type, the parameter can be - # repeated in the URL, as in `...?param=A¶m=B`. - # For HTTP method kinds which allow a request body, the `body` field - # specifies the mapping. Consider a REST update method on the - # message resource collection: - # service Messaging ` - # rpc UpdateMessage(UpdateMessageRequest) returns (Message) ` - # option (google.api.http) = ` - # put: "/v1/messages/`message_id`" - # body: "message" - # `; - # ` - # ` - # message UpdateMessageRequest ` - # string message_id = 1; // mapped to the URL - # Message message = 2; // mapped to the body - # ` - # The following HTTP JSON to RPC mapping is enabled, where the - # representation of the JSON in the request body is determined by - # protos JSON encoding: - # HTTP | RPC - # -----|----- - # `PUT /v1/messages/123456 ` "text": "Hi!" `` | `UpdateMessage(message_id: " - # 123456" message ` text: "Hi!" `)` - # The special name `*` can be used in the body mapping to define that - # every field not bound by the path template should be mapped to the - # request body. This enables the following alternative definition of - # the update method: - # service Messaging ` - # rpc UpdateMessage(Message) returns (Message) ` - # option (google.api.http) = ` - # put: "/v1/messages/`message_id`" - # body: "*" - # `; - # ` - # ` - # message Message ` - # string message_id = 1; - # string text = 2; - # ` - # The following HTTP JSON to RPC mapping is enabled: - # HTTP | RPC - # -----|----- - # `PUT /v1/messages/123456 ` "text": "Hi!" `` | `UpdateMessage(message_id: " - # 123456" text: "Hi!")` - # Note that when using `*` in the body mapping, it is not possible to - # have HTTP parameters, as all fields not bound by the path end in - # the body. This makes this option more rarely used in practice of - # defining REST APIs. The common usage of `*` is in custom methods - # which don't use the URL at all for transferring data. - # It is possible to define multiple HTTP methods for one RPC by using - # the `additional_bindings` option. Example: - # service Messaging ` - # rpc GetMessage(GetMessageRequest) returns (Message) ` - # option (google.api.http) = ` - # get: "/v1/messages/`message_id`" - # additional_bindings ` - # get: "/v1/users/`user_id`/messages/`message_id`" - # ` - # `; - # ` - # ` - # message GetMessageRequest ` - # string message_id = 1; - # string user_id = 2; - # ` - # This enables the following two alternative HTTP JSON to RPC - # mappings: - # HTTP | RPC - # -----|----- - # `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - # `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: " - # 123456")` - # # Rules for HTTP mapping - # The rules for mapping HTTP path, query parameters, and body fields - # to the request message are as follows: - # 1. The `body` field specifies either `*` or a field path, or is - # omitted. If omitted, it assumes there is no HTTP body. - # 2. Leaf fields (recursive expansion of nested messages in the - # request) can be classified into three types: - # (a) Matched in the URL template. - # (b) Covered by body (if body is `*`, everything except (a) fields; - # else everything under the body field) - # (c) All other fields. - # 3. URL query parameters found in the HTTP request are mapped to (c) fields. - # 4. Any body sent with an HTTP request can contain only (b) fields. - # The syntax of the path template is as follows: - # Template = "/" Segments [ Verb ] ; - # Segments = Segment ` "/" Segment ` ; - # Segment = "*" | "**" | LITERAL | Variable ; - # Variable = "`" FieldPath [ "=" Segments ] "`" ; - # FieldPath = IDENT ` "." IDENT ` ; - # Verb = ":" LITERAL ; - # The syntax `*` matches a single path segment. It follows the semantics of - # [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - # Expansion. - # The syntax `**` matches zero or more path segments. It follows the semantics - # of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved - # Expansion. NOTE: it must be the last segment in the path except the Verb. - # The syntax `LITERAL` matches literal text in the URL path. - # The syntax `Variable` matches the entire path as specified by its template; - # this nested template must not contain further variables. If a variable - # matches a single path segment, its template may be omitted, e.g. ``var`` - # is equivalent to ``var=*``. - # NOTE: the field paths in variables and in the `body` must not refer to - # repeated fields or map fields. - # Use CustomHttpPattern to specify any HTTP method that is not included in the - # `pattern` field, such as HEAD, or "*" to leave the HTTP method unspecified for - # a given URL path rule. The wild-card rule is useful for services that provide - # content to Web (HTML) clients. - class HttpRule - include Google::Apis::Core::Hashable - - # Used for updating a resource. - # Corresponds to the JSON property `put` - # @return [String] - attr_accessor :put - - # Used for deleting a resource. - # Corresponds to the JSON property `delete` - # @return [String] - attr_accessor :delete - - # The name of the request field whose value is mapped to the HTTP body, or - # `*` for mapping all fields not captured by the path pattern to the HTTP - # body. NOTE: the referred field must not be a repeated field and must be - # present at the top-level of request message type. - # Corresponds to the JSON property `body` - # @return [String] - attr_accessor :body - - # Used for creating a resource. - # Corresponds to the JSON property `post` - # @return [String] - attr_accessor :post - - # 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 - - # 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 - - # 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 `mediaUpload` - # @return [Google::Apis::ServicemanagementV1::MediaUpload] - attr_accessor :media_upload - - # 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::ServicemanagementV1::CustomHttpPattern] - attr_accessor :custom - - # Used for updating a resource. - # Corresponds to the JSON property `patch` - # @return [String] - attr_accessor :patch - - # Used for listing and getting information about resources. - # Corresponds to the JSON property `get` - # @return [String] - attr_accessor :get - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings) - @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) - @patch = args[:patch] if args.key?(:patch) - @get = args[:get] if args.key?(:get) - end - end - - # Configuration of a specific monitoring destination (the producer project - # or the consumer project). - class MonitoringDestination - include Google::Apis::Core::Hashable - - # The monitored resource type. The type must be defined in - # Service.monitored_resources section. - # Corresponds to the JSON property `monitoredResource` - # @return [String] - attr_accessor :monitored_resource - - # Names of the metrics to report to this monitoring destination. - # Each name must be defined in Service.metrics section. - # 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) - @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource) - @metrics = args[:metrics] if args.key?(:metrics) - end - end - - # `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. - class Visibility - include Google::Apis::Core::Hashable - - # A list of visibility 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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 - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @element = args[:element] if args.key?(:element) - @old_value = args[:old_value] if args.key?(:old_value) - @advices = args[:advices] if args.key?(:advices) - @new_value = args[:new_value] if args.key?(:new_value) - @change_type = args[:change_type] if args.key?(:change_type) - 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 Google Service Control should select - # different - # versions of service configurations based on traffic percentage. - # 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 - - # 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 - - # 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) - 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 - - # The start time of the operation. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Is the update for the operation persisted? - # Corresponds to the JSON property `isPersisted` - # @return [Boolean] - attr_accessor :is_persisted - alias_method :is_persisted?, :is_persisted - - # 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 - - # 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) - @is_persisted = args[:is_persisted] if args.key?(:is_persisted) - @resource_names = args[:resource_names] if args.key?(:resource_names) - @flow_name = args[:flow_name] if args.key?(:flow_name) - @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 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 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 a 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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 - - # A single field of a message type. - class Field - include Google::Apis::Core::Hashable - - # 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 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @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) - 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 - - # 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 - - # `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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @source_context = args[:source_context] if args.key?(:source_context) - @syntax = args[:syntax] if args.key?(:syntax) - @name = args[:name] if args.key?(:name) - @enumvalue = args[:enumvalue] if args.key?(:enumvalue) - @options = args[:options] if args.key?(:options) - 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 - - # 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 - - # 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 - - # `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 - - # 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) - @source_context = args[:source_context] if args.key?(:source_context) - @syntax = args[:syntax] if args.key?(:syntax) - @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 AuditConifg 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 - - # 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 - - # 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 documentation rule provides information about individual API elements. - class DocumentationRule - include Google::Apis::Core::Hashable - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @selector = args[:selector] if args.key?(:selector) - @description = args[:description] if args.key?(:description) - @deprecation_description = args[:deprecation_description] if args.key?(:deprecation_description) - 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 - - # 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 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 - - # A list of full type names of provided contexts. - # Corresponds to the JSON property `provided` - # @return [Array] - attr_accessor :provided - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @requested = args[:requested] if args.key?(:requested) - @selector = args[:selector] if args.key?(:selector) - @provided = args[:provided] if args.key?(:provided) - 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 - - # 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 - - # 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 list of features enabled on this endpoint. - # Corresponds to the JSON property `features` - # @return [Array] - attr_accessor :features - - # 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 list of APIs served by this endpoint. - # 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) - @aliases = args[:aliases] if args.key?(:aliases) - @features = args[:features] if args.key?(:features) - @allow_cors = args[:allow_cors] if args.key?(:allow_cors) - @name = args[:name] if args.key?(:name) - @apis = args[:apis] if args.key?(:apis) - 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 - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @rules = args[:rules] if args.key?(:rules) - @requirements = args[:requirements] if args.key?(:requirements) - @producer_notification_channel = args[:producer_notification_channel] if args.key?(:producer_notification_channel) - 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 - - # 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 - - # 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::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 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 - - # 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 - - 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) - @labels = args[:labels] if args.key?(:labels) - end - end - - # Generic specification of a source configuration file - class ConfigFile - include Google::Apis::Core::Hashable - - # The bytes that constitute the file. - # Corresponds to the JSON property `fileContents` - # @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 - - # The type of configuration file this represents. - # Corresponds to the JSON property `fileType` - # @return [String] - attr_accessor :file_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @file_contents = args[:file_contents] if args.key?(:file_contents) - @file_path = args[:file_path] if args.key?(:file_path) - @file_type = args[:file_type] if args.key?(:file_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 - - # 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 - - # 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 THIS FIELD 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 - - 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) - 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 - - # 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 THIS FIELD 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 - - # Whether upload is enabled. - # 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) - @upload_service = args[:upload_service] if args.key?(:upload_service) - @enabled = args[:enabled] if args.key?(:enabled) - end - end - # Generated advice about this change, used for providing more # information about how a change will affect the existing service. class Advice @@ -2992,6 +316,27 @@ module Google class Condition include Google::Apis::Core::Hashable + # 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 + + # 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] @@ -3002,39 +347,18 @@ 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 - - # 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) + @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) @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) - @values = args[:values] if args.key?(:values) - @iam = args[:iam] if args.key?(:iam) end end @@ -3086,6 +410,12 @@ 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. @@ -3093,11 +423,37 @@ 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) + end + end + + # A backend rule provides configuration for an individual API element. + class BackendRule + include Google::Apis::Core::Hashable + + # 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) @@ -3105,8 +461,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] if args.key?(:id) - @files = args[:files] if args.key?(:files) + @address = args[:address] if args.key?(:address) + @selector = args[:selector] if args.key?(:selector) + @deadline = args[:deadline] if args.key?(:deadline) end end @@ -3173,26 +530,15 @@ module Google 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 - # 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 - - # 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 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) @@ -3200,9 +546,7 @@ module Google # Update properties of this object def update!(**args) - @deadline = args[:deadline] if args.key?(:deadline) - @address = args[:address] if args.key?(:address) - @selector = args[:selector] if args.key?(:selector) + @service = args[:service] if args.key?(:service) end end @@ -3235,23 +579,6 @@ 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`. - # 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 @@ -3262,6 +589,7 @@ module Google # 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 @@ -3284,38 +612,35 @@ 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`. + # 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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @rules = args[:rules] if args.key?(:rules) - 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) + @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 @@ -3339,17 +664,17 @@ module Google # @return [String] attr_accessor :name + # The source syntax of the service. + # 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 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 @@ -3386,8 +711,8 @@ module Google @options = args[:options] if args.key?(:options) @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) end @@ -3406,6 +731,39 @@ module Google end end + # Bind API methods to metrics. Binding a method to a metric causes that + # metric's configured quota, billing, and monitoring behaviors to apply to the + # method call. + # Used by metric-based quotas only. + 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) + end + end + # `Authentication` defines the authentication configuration for an API. # Example for an API targeted for external use: # name: calendar.googleapis.com @@ -3545,12 +903,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 @@ -3576,15 +928,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 @@ -3630,6 +988,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] @@ -3642,21 +1006,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 @@ -3664,13 +1022,6 @@ 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 @@ -3689,14 +1040,21 @@ 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) - @role = args[:role] if args.key?(:role) @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) end end @@ -3706,23 +1064,6 @@ module Google class AuthProvider include Google::Apis::Core::Hashable - # 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 - # The unique identifier of the auth provider. It will be referred to by # `AuthRequirement.provider_id`. # Example: "bookstore_auth". @@ -3754,47 +1095,33 @@ module Google # @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). + # 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) - @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) - end - end - - # Enum value definition. - class EnumValue - include Google::Apis::Core::Hashable - - # Enum value name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Protocol buffer options. - # Corresponds to the JSON property `options` - # @return [Array] - attr_accessor :options - - # Enum value number. - # Corresponds to the JSON property `number` - # @return [Fixnum] - attr_accessor :number - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @options = args[:options] if args.key?(:options) - @number = args[:number] if args.key?(:number) + @audiences = args[:audiences] if args.key?(:audiences) end end @@ -3822,6 +1149,417 @@ module Google class Service include Google::Apis::Core::Hashable + # `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::ServicemanagementV1::Visibility] + attr_accessor :visibility + + # Quota configuration helps to achieve fairness and budgeting in service + # usage. + # - Fairness is achieved through the use of short-term quota limits + # that are usually defined over a time window of several seconds or + # minutes. When such a limit is applied, for example at the user + # level, it ensures that no single user will monopolize the service + # or a given customer's allocated portion of it. + # - Budgeting is achieved through the use of long-term quota limits + # that are usually defined over a time window of one or more + # days. These limits help client application developers predict the + # usage and help budgeting. + # Quota enforcement uses a simple token-based algorithm for resource sharing. + # The quota configuration structure is as follows: + # - `QuotaLimit` defines a single enforceable limit with a specified + # token amount that can be consumed over a specific duration and + # applies to a particular entity, like a project or an end user. If + # the limit applies to a user, each user making the request will + # get the specified number of tokens to consume. When the tokens + # run out, the requests from that user will be blocked until the + # duration elapses and the next duration window starts. + # - `QuotaGroup` groups a set of quota limits. + # - `QuotaRule` maps a method to a set of quota groups. This allows + # sharing of quota groups across methods as well as one method + # consuming tokens from more than one quota group. When a group + # contains multiple limits, requests to a method consuming tokens + # from that group must satisfy all the limits in that group. + # Example: + # quota: + # groups: + # - name: ReadGroup + # description: Read requests + # limits: + # - name: ProjectQps + # default_limit: 10000 + # duration: 100s + # limit_by: CLIENT_PROJECT + # - name: UserQps + # default_limit: 200 + # duration: 100s + # limit_by: USER + # - name: WriteGroup + # description: Write requests + # limits: + # - name: ProjectQps + # default_limit: 1000 + # max_limit: 2000 + # duration: 100s + # limit_by: CLIENT_PROJECT + # - name: UserQps + # default_limit: 200 + # max_limit: 400 + # duration: 100s + # limit_by: USER + # rules: + # - selector: "*" + # groups: + # - group: ReadGroup + # - selector: google.calendar.Calendar.Update + # groups: + # - group: WriteGroup + # cost: 2 + # - selector: google.calendar.Calendar.Delete + # groups: + # - group: WriteGroup + # Here, the configuration defines two quota groups: ReadGroup and WriteGroup, + # each defining its own per-second and per-second-per-user limits. Note that + # One Platform enforces per-second limits averaged over 100 second window. The + # rules map ReadGroup for all methods, except for Update and Delete. + # These two methods consume from WriteGroup, with Update method consuming at + # twice the rate as Delete method. + # Multiple quota groups can be specified for a method. The quota limits in all + # of those groups will be enforced. Example: + # quota: + # groups: + # - name: WriteGroup + # description: Write requests + # limits: + # - name: ProjectQps + # default_limit: 1000 + # max_limit: 1000 + # duration: 100s + # limit_by: CLIENT_PROJECT + # - name: UserQps + # default_limit: 200 + # max_limit: 400 + # duration: 100s + # limit_by: USER + # - name: StorageGroup + # description: Storage requests + # limits: + # - name: StorageQuota + # default_limit: 1000 + # duration: 0 + # limit_by: USER + # rules: + # - selector: google.calendar.Calendar.Create + # groups: + # - group: StorageGroup + # - group: WriteGroup + # - selector: google.calendar.Calendar.Delete + # groups: + # - group: StorageGroup + # In the above example, the Create and Delete methods manage the user's + # storage space. In addition, Create method uses WriteGroup to manage the + # requests. In this case, requests to Create method need to satisfy all quota + # limits defined in both quota groups. + # One can disable quota for selected method(s) identified by the selector by + # setting disable_quota to true. For example, + # rules: + # - selector: "*" + # group: + # - group ReadGroup + # - selector: google.calendar.Calendar.Select + # disable_quota: true + # We are deprecating the group based quota configuration described above, and + # moving to use metric based quota configuration described below. + # 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: + # limits: + # - name: apiReadQpsPerProjectPerUser + # metric: library.googleapis.com/read_calls + # unit: "1/min/`project`/`user`" # per-user limit for consumer projects + # values: + # STANDARD: 1000 + # - name: apiWriteQpsPerProject + # metric: library.googleapis.com/write_calls + # unit: "1/min/`project`" # rate limit for consumer projects + # values: + # STANDARD: 10000 + # - name: borrowedCountPerOrganization + # metric: library.googleapis.com/borrowed_count + # is_precise: true + # unit: "1/`organization`" # allocation limit for organizations + # values: + # LOW: 200 + # STANDARD: 1000 + # HIGH: 10000 + # - name: borrowedCountPerOrganizationPerRegion + # metric: library.googleapis.com/borrowed_count + # unit: "1/`organization`/`region`" + # is_precise: true + # values: + # LOW: 20 + # STANDARD: 200 + # HIGH: 2000 + # VERY_HIGH: 5000 + # LOW/us-central1: 50 + # STANDARD/us-central1: 500 + # HIGH/us-central1: 4000 + # VERY_HIGH/us-central1: 5000 + # # 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 + # - name: library.googleapis.com/borrowed_count + # display_name: Borrowed books + # metric_kind: DELTA + # value_type: INT64 + # Corresponds to the JSON property `quota` + # @return [Google::Apis::ServicemanagementV1::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::ServicemanagementV1::CustomError] + attr_accessor :custom_error + + # The product title associated with 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 + + # 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 + # normalization process. It is an error to specify an API interface here + # which cannot be resolved against the associated IDL files. + # Corresponds to the JSON property `apis` + # @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 a 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 + + # 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 + + # 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 + + # 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::ServicemanagementV1::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. @@ -3931,235 +1669,30 @@ module Google # @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::ServicemanagementV1::Visibility] - attr_accessor :visibility - - # 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::ServicemanagementV1::CustomError] - attr_accessor :custom_error - - # The product title associated with 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 - - # 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 - # normalization process. It is an error to specify an API interface here - # which cannot be resolved against the associated IDL files. - # Corresponds to the JSON property `apis` - # @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 a 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 - - # ### 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 - - # `Backend` defines the backend configuration for a service. - # Corresponds to the JSON property `backend` - # @return [Google::Apis::ServicemanagementV1::Backend] - attr_accessor :backend - - # `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 - - # 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 - - # 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 - - # `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::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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) + @enums = args[:enums] if args.key?(:enums) + @context = args[:context] if args.key?(:context) @id = args[:id] if args.key?(:id) @usage = args[:usage] if args.key?(:usage) @metrics = args[:metrics] if args.key?(:metrics) @@ -4170,23 +1703,37 @@ module Google @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) - @visibility = args[:visibility] if args.key?(:visibility) + end + end + + # Enum value definition. + class EnumValue + include Google::Apis::Core::Hashable + + # Enum value name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Protocol buffer options. + # Corresponds to the JSON property `options` + # @return [Array] + attr_accessor :options + + # Enum value number. + # Corresponds to the JSON property `number` + # @return [Fixnum] + attr_accessor :number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) @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) - @system_parameters = args[:system_parameters] if args.key?(:system_parameters) - @backend = args[:backend] if args.key?(:backend) - @documentation = args[:documentation] if args.key?(:documentation) - @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources) - @logging = args[:logging] if args.key?(:logging) - @context = args[:context] if args.key?(:context) - @enums = args[:enums] if args.key?(:enums) + @options = args[:options] if args.key?(:options) + @number = args[:number] if args.key?(:number) end end @@ -4215,31 +1762,6 @@ module Google 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) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @path = args[:path] if args.key?(:path) - end - end - # The metadata associated with a long running operation resource. class OperationMetadata include Google::Apis::Core::Hashable @@ -4278,6 +1800,31 @@ module Google 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) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @path = args[:path] if args.key?(:path) + end + end + # Define a system parameter rule mapping system parameter definitions to # methods. class SystemParameterRule @@ -4309,6 +1856,3079 @@ module Google @parameters = args[:parameters] if args.key?(:parameters) end end + + # `HttpRule` defines the mapping of an RPC method to one or more HTTP + # REST APIs. The mapping determines what portions of the request + # message are populated from the path, query parameters, or body of + # the HTTP request. The mapping is typically specified as an + # `google.api.http` annotation, see "google/api/annotations.proto" + # for details. + # The mapping consists of a field specifying the path template and + # method kind. The path template can refer to fields in the request + # message, as in the example below which describes a REST GET + # operation on a resource collection of messages: + # service Messaging ` + # rpc GetMessage(GetMessageRequest) returns (Message) ` + # option (google.api.http).get = "/v1/messages/`message_id`/`sub. + # subfield`"; + # ` + # ` + # message GetMessageRequest ` + # message SubMessage ` + # string subfield = 1; + # ` + # string message_id = 1; // mapped to the URL + # SubMessage sub = 2; // `sub.subfield` is url-mapped + # ` + # message Message ` + # string text = 1; // content of the resource + # ` + # The same http annotation can alternatively be expressed inside the + # `GRPC API Configuration` YAML file. + # http: + # rules: + # - selector: .Messaging.GetMessage + # get: /v1/messages/`message_id`/`sub.subfield` + # This definition enables an automatic, bidrectional mapping of HTTP + # JSON to RPC. Example: + # HTTP | RPC + # -----|----- + # `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: + # SubMessage(subfield: "foo"))` + # In general, not only fields but also field paths can be referenced + # from a path pattern. Fields mapped to the path pattern cannot be + # repeated and must have a primitive (non-message) type. + # Any fields in the request message which are not bound by the path + # pattern automatically become (optional) HTTP query + # parameters. Assume the following definition of the request message: + # message GetMessageRequest ` + # message SubMessage ` + # string subfield = 1; + # ` + # string message_id = 1; // mapped to the URL + # int64 revision = 2; // becomes a parameter + # SubMessage sub = 3; // `sub.subfield` becomes a parameter + # ` + # This enables a HTTP JSON to RPC mapping as below: + # HTTP | RPC + # -----|----- + # `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: + # "123456" revision: 2 sub: SubMessage(subfield: "foo"))` + # Note that fields which are mapped to HTTP parameters must have a + # primitive type or a repeated primitive type. Message types are not + # allowed. In the case of a repeated type, the parameter can be + # repeated in the URL, as in `...?param=A¶m=B`. + # For HTTP method kinds which allow a request body, the `body` field + # specifies the mapping. Consider a REST update method on the + # message resource collection: + # service Messaging ` + # rpc UpdateMessage(UpdateMessageRequest) returns (Message) ` + # option (google.api.http) = ` + # put: "/v1/messages/`message_id`" + # body: "message" + # `; + # ` + # ` + # message UpdateMessageRequest ` + # string message_id = 1; // mapped to the URL + # Message message = 2; // mapped to the body + # ` + # The following HTTP JSON to RPC mapping is enabled, where the + # representation of the JSON in the request body is determined by + # protos JSON encoding: + # HTTP | RPC + # -----|----- + # `PUT /v1/messages/123456 ` "text": "Hi!" `` | `UpdateMessage(message_id: " + # 123456" message ` text: "Hi!" `)` + # The special name `*` can be used in the body mapping to define that + # every field not bound by the path template should be mapped to the + # request body. This enables the following alternative definition of + # the update method: + # service Messaging ` + # rpc UpdateMessage(Message) returns (Message) ` + # option (google.api.http) = ` + # put: "/v1/messages/`message_id`" + # body: "*" + # `; + # ` + # ` + # message Message ` + # string message_id = 1; + # string text = 2; + # ` + # The following HTTP JSON to RPC mapping is enabled: + # HTTP | RPC + # -----|----- + # `PUT /v1/messages/123456 ` "text": "Hi!" `` | `UpdateMessage(message_id: " + # 123456" text: "Hi!")` + # Note that when using `*` in the body mapping, it is not possible to + # have HTTP parameters, as all fields not bound by the path end in + # the body. This makes this option more rarely used in practice of + # defining REST APIs. The common usage of `*` is in custom methods + # which don't use the URL at all for transferring data. + # It is possible to define multiple HTTP methods for one RPC by using + # the `additional_bindings` option. Example: + # service Messaging ` + # rpc GetMessage(GetMessageRequest) returns (Message) ` + # option (google.api.http) = ` + # get: "/v1/messages/`message_id`" + # additional_bindings ` + # get: "/v1/users/`user_id`/messages/`message_id`" + # ` + # `; + # ` + # ` + # message GetMessageRequest ` + # string message_id = 1; + # string user_id = 2; + # ` + # This enables the following two alternative HTTP JSON to RPC + # mappings: + # HTTP | RPC + # -----|----- + # `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + # `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: " + # 123456")` + # # Rules for HTTP mapping + # The rules for mapping HTTP path, query parameters, and body fields + # to the request message are as follows: + # 1. The `body` field specifies either `*` or a field path, or is + # omitted. If omitted, it assumes there is no HTTP body. + # 2. Leaf fields (recursive expansion of nested messages in the + # request) can be classified into three types: + # (a) Matched in the URL template. + # (b) Covered by body (if body is `*`, everything except (a) fields; + # else everything under the body field) + # (c) All other fields. + # 3. URL query parameters found in the HTTP request are mapped to (c) fields. + # 4. Any body sent with an HTTP request can contain only (b) fields. + # The syntax of the path template is as follows: + # Template = "/" Segments [ Verb ] ; + # Segments = Segment ` "/" Segment ` ; + # Segment = "*" | "**" | LITERAL | Variable ; + # Variable = "`" FieldPath [ "=" Segments ] "`" ; + # FieldPath = IDENT ` "." IDENT ` ; + # Verb = ":" LITERAL ; + # The syntax `*` matches a single path segment. It follows the semantics of + # [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + # Expansion. + # The syntax `**` matches zero or more path segments. It follows the semantics + # of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved + # Expansion. NOTE: it must be the last segment in the path except the Verb. + # The syntax `LITERAL` matches literal text in the URL path. + # The syntax `Variable` matches the entire path as specified by its template; + # this nested template must not contain further variables. If a variable + # matches a single path segment, its template may be omitted, e.g. ``var`` + # is equivalent to ``var=*``. + # NOTE: the field paths in variables and in the `body` must not refer to + # repeated fields or map fields. + # Use CustomHttpPattern to specify any HTTP method that is not included in the + # `pattern` field, such as HEAD, or "*" to leave the HTTP method unspecified for + # a given URL path rule. The wild-card rule is useful for services that provide + # content to Web (HTML) clients. + 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::ServicemanagementV1::CustomHttpPattern] + attr_accessor :custom + + # Used for listing and getting information about resources. + # Corresponds to the JSON property `get` + # @return [String] + attr_accessor :get + + # Used for updating a resource. + # Corresponds to the JSON property `patch` + # @return [String] + attr_accessor :patch + + # Used for updating a resource. + # Corresponds to the JSON property `put` + # @return [String] + attr_accessor :put + + # Used for deleting a resource. + # Corresponds to the JSON property `delete` + # @return [String] + attr_accessor :delete + + # The name of the request field whose value is mapped to the HTTP body, or + # `*` for mapping all fields not captured by the path pattern to the HTTP + # body. NOTE: the referred field must not be a repeated field and must be + # present at the top-level of request message type. + # Corresponds to the JSON property `body` + # @return [String] + attr_accessor :body + + # 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 + + # 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 + + # 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 `mediaUpload` + # @return [Google::Apis::ServicemanagementV1::MediaUpload] + attr_accessor :media_upload + + 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) + @additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings) + @response_body = args[:response_body] if args.key?(:response_body) + @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] + 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 + + # Configuration of a specific monitoring destination (the producer project + # or the consumer project). + class MonitoringDestination + include Google::Apis::Core::Hashable + + # The monitored resource type. The type must be defined in + # Service.monitored_resources section. + # Corresponds to the JSON property `monitoredResource` + # @return [String] + attr_accessor :monitored_resource + + # Names of the metrics to report to this monitoring destination. + # Each name must be defined in Service.metrics section. + # 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) + @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource) + @metrics = args[:metrics] if args.key?(:metrics) + end + end + + # `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. + class Visibility + include Google::Apis::Core::Hashable + + # A list of visibility 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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. + # - Fairness is achieved through the use of short-term quota limits + # that are usually defined over a time window of several seconds or + # minutes. When such a limit is applied, for example at the user + # level, it ensures that no single user will monopolize the service + # or a given customer's allocated portion of it. + # - Budgeting is achieved through the use of long-term quota limits + # that are usually defined over a time window of one or more + # days. These limits help client application developers predict the + # usage and help budgeting. + # Quota enforcement uses a simple token-based algorithm for resource sharing. + # The quota configuration structure is as follows: + # - `QuotaLimit` defines a single enforceable limit with a specified + # token amount that can be consumed over a specific duration and + # applies to a particular entity, like a project or an end user. If + # the limit applies to a user, each user making the request will + # get the specified number of tokens to consume. When the tokens + # run out, the requests from that user will be blocked until the + # duration elapses and the next duration window starts. + # - `QuotaGroup` groups a set of quota limits. + # - `QuotaRule` maps a method to a set of quota groups. This allows + # sharing of quota groups across methods as well as one method + # consuming tokens from more than one quota group. When a group + # contains multiple limits, requests to a method consuming tokens + # from that group must satisfy all the limits in that group. + # Example: + # quota: + # groups: + # - name: ReadGroup + # description: Read requests + # limits: + # - name: ProjectQps + # default_limit: 10000 + # duration: 100s + # limit_by: CLIENT_PROJECT + # - name: UserQps + # default_limit: 200 + # duration: 100s + # limit_by: USER + # - name: WriteGroup + # description: Write requests + # limits: + # - name: ProjectQps + # default_limit: 1000 + # max_limit: 2000 + # duration: 100s + # limit_by: CLIENT_PROJECT + # - name: UserQps + # default_limit: 200 + # max_limit: 400 + # duration: 100s + # limit_by: USER + # rules: + # - selector: "*" + # groups: + # - group: ReadGroup + # - selector: google.calendar.Calendar.Update + # groups: + # - group: WriteGroup + # cost: 2 + # - selector: google.calendar.Calendar.Delete + # groups: + # - group: WriteGroup + # Here, the configuration defines two quota groups: ReadGroup and WriteGroup, + # each defining its own per-second and per-second-per-user limits. Note that + # One Platform enforces per-second limits averaged over 100 second window. The + # rules map ReadGroup for all methods, except for Update and Delete. + # These two methods consume from WriteGroup, with Update method consuming at + # twice the rate as Delete method. + # Multiple quota groups can be specified for a method. The quota limits in all + # of those groups will be enforced. Example: + # quota: + # groups: + # - name: WriteGroup + # description: Write requests + # limits: + # - name: ProjectQps + # default_limit: 1000 + # max_limit: 1000 + # duration: 100s + # limit_by: CLIENT_PROJECT + # - name: UserQps + # default_limit: 200 + # max_limit: 400 + # duration: 100s + # limit_by: USER + # - name: StorageGroup + # description: Storage requests + # limits: + # - name: StorageQuota + # default_limit: 1000 + # duration: 0 + # limit_by: USER + # rules: + # - selector: google.calendar.Calendar.Create + # groups: + # - group: StorageGroup + # - group: WriteGroup + # - selector: google.calendar.Calendar.Delete + # groups: + # - group: StorageGroup + # In the above example, the Create and Delete methods manage the user's + # storage space. In addition, Create method uses WriteGroup to manage the + # requests. In this case, requests to Create method need to satisfy all quota + # limits defined in both quota groups. + # One can disable quota for selected method(s) identified by the selector by + # setting disable_quota to true. For example, + # rules: + # - selector: "*" + # group: + # - group ReadGroup + # - selector: google.calendar.Calendar.Select + # disable_quota: true + # We are deprecating the group based quota configuration described above, and + # moving to use metric based quota configuration described below. + # 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: + # limits: + # - name: apiReadQpsPerProjectPerUser + # metric: library.googleapis.com/read_calls + # unit: "1/min/`project`/`user`" # per-user limit for consumer projects + # values: + # STANDARD: 1000 + # - name: apiWriteQpsPerProject + # metric: library.googleapis.com/write_calls + # unit: "1/min/`project`" # rate limit for consumer projects + # values: + # STANDARD: 10000 + # - name: borrowedCountPerOrganization + # metric: library.googleapis.com/borrowed_count + # is_precise: true + # unit: "1/`organization`" # allocation limit for organizations + # values: + # LOW: 200 + # STANDARD: 1000 + # HIGH: 10000 + # - name: borrowedCountPerOrganizationPerRegion + # metric: library.googleapis.com/borrowed_count + # unit: "1/`organization`/`region`" + # is_precise: true + # values: + # LOW: 20 + # STANDARD: 200 + # HIGH: 2000 + # VERY_HIGH: 5000 + # LOW/us-central1: 50 + # STANDARD/us-central1: 500 + # HIGH/us-central1: 4000 + # VERY_HIGH/us-central1: 5000 + # # 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 + # - name: library.googleapis.com/borrowed_count + # display_name: Borrowed books + # metric_kind: DELTA + # value_type: INT64 + class Quota + include Google::Apis::Core::Hashable + + # List of `QuotaLimit` definitions for the service. + # Used by metric-based quotas only. + # 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. + # Used by metric-based quotas only. + # 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 + + # The user who created the Rollout. Readonly. + # Corresponds to the JSON property `createdBy` + # @return [String] + attr_accessor :created_by + + # Strategy that specifies how Google Service Control should select + # different + # versions of service configurations based on traffic percentage. + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @status = args[:status] if args.key?(:status) + @service_name = args[:service_name] if args.key?(:service_name) + 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 + + # 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @name = args[:name] if args.key?(:name) + @request_type_url = args[:request_type_url] if args.key?(:request_type_url) + 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: + # * "/`organization`" quota for an organization. + # * "/`project`" quota for a project. + # * "/`folder`" quota for a folder. + # * "/`resource`" quota for a universal resource. + # * Zero or more quota segmentation dimension. Not all combos are valid. + # * "/`user`" quota for every user GAIA ID or client ip address. + # User GAIA ID has precedence over client ip address. + # * "/`region`" quota for every region. Not to be used with time intervals. + # * Otherwise the resources granted on the target is not segmented. + # * "/`zone`" quota for every zone. Not to be used with time intervals. + # * Otherwise the resources granted on the target is not segmented. + # * "/`resource`" quota for a resource associated with a project or org. + # Here are some examples: + # * "1/min/`project`" for quota per minute per project. + # * "1/min/`user`" for quota per minute per user. + # * "1/min/`organization`" for quota per minute per organization. + # 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 [String] + 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 group-based quota limits, the name must be unique within the quota + # group. If a name is not provided, it will be generated from the limit_by + # and duration fields. + # 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 + + # 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 [String] + 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 [String] + 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. Also allows for regional or zone overrides for these + # values if "/`region`" or "/`zone`" is specified in the unit field. + # Currently supported tiers from low to high: + # VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH + # To apply different limit values for users according to their tiers, specify + # the values for the tiers you want to differentiate. For example: + # `LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000` + # The limit value for each tier is optional except for the tier STANDARD. + # The limit value for an unspecified tier falls to the value of its next + # tier towards tier STANDARD. For the above example, the limit value for tier + # STANDARD is 500. + # To apply the same limit value for all users, just specify limit value for + # tier STANDARD. For example: `STANDARD:500`. + # To apply a regional overide for a tier, add a map entry with key + # "/", where is a region name. Similarly, for a zone + # override, add a map entry with key "/`zone`". + # Further, a wildcard can be used at the end of a zone name in order to + # specify zone level overrides. For example: + # LOW: 10, STANDARD: 50, HIGH: 100, + # LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, + # LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 + # The regional overrides tier set for each region must be the same as + # the tier set for default limit values. Same rule applies for zone overrides + # tier as well. + # Used by metric-based quotas only. + # 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) + @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) + 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 + + # 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 + + # 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) + @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) + @start_time = args[:start_time] if args.key?(:start_time) + 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 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 a 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 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 + + # The field number. + # Corresponds to the JSON property `number` + # @return [Fixnum] + attr_accessor :number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @number = args[:number] if args.key?(:number) + 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 + + # `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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @options = args[:options] if args.key?(:options) + @source_context = args[:source_context] if args.key?(:source_context) + @syntax = args[:syntax] if args.key?(:syntax) + @name = args[:name] if args.key?(:name) + @enumvalue = args[:enumvalue] if args.key?(:enumvalue) + end + end + + # Represents a diagnostic message (error or warning) + class Diagnostic + include Google::Apis::Core::Hashable + + # 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 + + # Message describing the error or warning. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location = args[:location] if args.key?(:location) + @kind = args[:kind] if args.key?(:kind) + @message = args[:message] if args.key?(:message) + 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 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 + + # Response message for GenerateConfigReport method. + class GenerateConfigReportResponse + include Google::Apis::Core::Hashable + + # 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 + + # Errors / Linter warnings associated with the service definition this + # report + # belongs to. + # Corresponds to the JSON property `diagnostics` + # @return [Array] + attr_accessor :diagnostics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @diagnostics = args[:diagnostics] if args.key?(:diagnostics) + end + end + + # A protocol buffer message type. + class Type + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @oneofs = args[:oneofs] if args.key?(:oneofs) + @source_context = args[:source_context] if args.key?(:source_context) + @syntax = args[:syntax] if args.key?(:syntax) + @options = args[:options] if args.key?(:options) + @fields = args[:fields] if args.key?(:fields) + @name = args[:name] if args.key?(:name) + 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 token of the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of service configuration resources. + # Corresponds to the JSON property `serviceConfigs` + # @return [Array] + attr_accessor :service_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) + @service_configs = args[:service_configs] if args.key?(:service_configs) + 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 AuditConifg 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 + + # 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 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 + + # A list of full type names of provided contexts. + # Corresponds to the JSON property `provided` + # @return [Array] + attr_accessor :provided + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested = args[:requested] if args.key?(:requested) + @selector = args[:selector] if args.key?(:selector) + @provided = args[:provided] if args.key?(:provided) + 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 + + # 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @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 + + # `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 + + # 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 APIs served by this endpoint. + # 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 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 + + # The list of features enabled on this endpoint. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @apis = args[:apis] if args.key?(:apis) + @aliases = args[:aliases] if args.key?(:aliases) + @allow_cors = args[:allow_cors] if args.key?(:allow_cors) + @target = args[:target] if args.key?(:target) + @name = args[:name] if args.key?(:name) + @features = args[:features] if args.key?(:features) + 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 + + # 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @log_config = args[:log_config] if args.key?(:log_config) + @in = args[:in] if args.key?(:in) + 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::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 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 + + # 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 + + 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) + @labels = args[:labels] if args.key?(:labels) + 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 + + # 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 + + # 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 THIS FIELD 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 + + 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) + 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 + + # 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 THIS FIELD 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 + + # Whether upload is enabled. + # 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) + @upload_service = args[:upload_service] if args.key?(:upload_service) + @enabled = args[:enabled] if args.key?(:enabled) + end + end end end end diff --git a/generated/google/apis/servicemanagement_v1/representations.rb b/generated/google/apis/servicemanagement_v1/representations.rb index 6b6d80f05..9ca4ea34e 100644 --- a/generated/google/apis/servicemanagement_v1/representations.rb +++ b/generated/google/apis/servicemanagement_v1/representations.rb @@ -22,384 +22,6 @@ module Google module Apis module ServicemanagementV1 - 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 Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SystemParameters - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ConfigChange - class Representation < Google::Apis::Core::JsonRepresentation; end - - 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 - - include Google::Apis::Core::JsonObjectSupport - end - - class SetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DeleteServiceStrategy - 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 LoggingDestination - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Option - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Logging - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MethodProp - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ConfigRef - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListServiceRolloutsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Mixin - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class FlowOperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CustomError - 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 Http - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SourceInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Control - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SystemParameter - 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 Monitoring - 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 Enum - 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 Diagnostic - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class EnableServiceRequest - 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 GenerateConfigReportResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListServiceConfigsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Experimental - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Backend - 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 SubmitConfigSourceRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AuthorizationConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DocumentationRule - 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 ContextRule - 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 ListServicesResponse - 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 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 Context - 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 LogDescriptor - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ConfigFile - 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 MediaDownload - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ChangeReport - 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 SubmitConfigSourceResponse - 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 Advice class Representation < Google::Apis::Core::JsonRepresentation; end @@ -454,19 +76,13 @@ module Google 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 AuthenticationRule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -478,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Api class Representation < Google::Apis::Core::JsonRepresentation; end @@ -490,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MetricRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Authentication class Representation < Google::Apis::Core::JsonRepresentation; end @@ -526,13 +154,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class EnumValue + class Service class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Service + class EnumValue class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -544,13 +172,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CustomHttpPattern + class OperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class OperationMetadata + class CustomHttpPattern class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -562,601 +190,394 @@ module Google 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 HttpRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end - class HttpRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :put, as: 'put' - property :delete, as: 'delete' - property :body, as: 'body' - property :post, as: 'post' - property :media_download, as: 'mediaDownload', class: Google::Apis::ServicemanagementV1::MediaDownload, decorator: Google::Apis::ServicemanagementV1::MediaDownload::Representation + class VisibilityRule + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServicemanagementV1::HttpRule, decorator: Google::Apis::ServicemanagementV1::HttpRule::Representation - - 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 :patch, as: 'patch' - property :get, as: 'get' - end + include Google::Apis::Core::JsonObjectSupport end class MonitoringDestination - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :monitored_resource, as: 'monitoredResource' - collection :metrics, as: 'metrics' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class SystemParameters - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::SystemParameterRule, decorator: Google::Apis::ServicemanagementV1::SystemParameterRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class ConfigChange - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :element, as: 'element' - property :old_value, as: 'oldValue' - collection :advices, as: 'advices', class: Google::Apis::ServicemanagementV1::Advice, decorator: Google::Apis::ServicemanagementV1::Advice::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :new_value, as: 'newValue' - property :change_type, as: 'changeType' - end + include Google::Apis::Core::JsonObjectSupport + end + + class Quota + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - 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 + include Google::Apis::Core::JsonObjectSupport end class GenerateConfigReportRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :old_config, as: 'oldConfig' - hash :new_config, as: 'newConfig' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end - end - - class DeleteServiceStrategy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + include Google::Apis::Core::JsonObjectSupport end class Step - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :status, as: 'status' - property :description, as: 'description' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteServiceStrategy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class LoggingDestination - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :logs, as: 'logs' - property :monitored_resource, as: 'monitoredResource' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Option - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :value, as: 'value' - property :name, as: 'name' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Logging - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServicemanagementV1::LoggingDestination, decorator: Google::Apis::ServicemanagementV1::LoggingDestination::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServicemanagementV1::LoggingDestination, decorator: Google::Apis::ServicemanagementV1::LoggingDestination::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class MethodProp - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :response_type_url, as: 'responseTypeUrl' - collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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 + include Google::Apis::Core::JsonObjectSupport + end + + class QuotaLimit + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ConfigRef - # @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 ListServiceRolloutsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :rollouts, as: 'rollouts', class: Google::Apis::ServicemanagementV1::Rollout, decorator: Google::Apis::ServicemanagementV1::Rollout::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class Mixin - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :root, as: 'root' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class FlowOperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :start_time, as: 'startTime' - property :is_persisted, as: 'isPersisted' - collection :resource_names, as: 'resourceNames' - property :flow_name, as: 'flowName' - property :cancel_state, as: 'cancelState' - property :deadline, as: 'deadline' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class CustomError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::CustomErrorRule, decorator: Google::Apis::ServicemanagementV1::CustomErrorRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :types, as: 'types' - 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 + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Http - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::HttpRule, decorator: Google::Apis::ServicemanagementV1::HttpRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class SourceInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :source_files, as: 'sourceFiles' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Control - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :environment, as: 'environment' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class SystemParameter - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :url_query_parameter, as: 'urlQueryParameter' - property :http_header, as: 'httpHeader' - property :name, as: 'name' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class Field - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :default_value, as: 'defaultValue' - property :name, as: 'name' - property :type_url, as: 'typeUrl' - property :number, as: 'number' - 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 :packed, as: 'packed' - property :cardinality, as: 'cardinality' - end + include Google::Apis::Core::JsonObjectSupport end class Monitoring - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServicemanagementV1::MonitoringDestination, decorator: Google::Apis::ServicemanagementV1::MonitoringDestination::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServicemanagementV1::MonitoringDestination, decorator: Google::Apis::ServicemanagementV1::MonitoringDestination::Representation + include Google::Apis::Core::JsonObjectSupport + end - end + class Field + class Representation < Google::Apis::Core::JsonRepresentation; 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 Enum - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :source_context, as: 'sourceContext', class: Google::Apis::ServicemanagementV1::SourceContext, decorator: Google::Apis::ServicemanagementV1::SourceContext::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :syntax, as: 'syntax' - 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 - - 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 + include Google::Apis::Core::JsonObjectSupport end class Diagnostic - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :message, as: 'message' - property :location, as: 'location' - property :kind, as: 'kind' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class EnableServiceRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :consumer_id, as: 'consumerId' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end - class Type - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :fields, as: 'fields', class: Google::Apis::ServicemanagementV1::Field, decorator: Google::Apis::ServicemanagementV1::Field::Representation + class LabelDescriptor + class Representation < Google::Apis::Core::JsonRepresentation; end - 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' - collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class GenerateConfigReportResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :diagnostics, as: 'diagnostics', class: Google::Apis::ServicemanagementV1::Diagnostic, decorator: Google::Apis::ServicemanagementV1::Diagnostic::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :service_name, as: 'serviceName' - collection :change_reports, as: 'changeReports', class: Google::Apis::ServicemanagementV1::ChangeReport, decorator: Google::Apis::ServicemanagementV1::ChangeReport::Representation - - property :id, as: 'id' - end + include Google::Apis::Core::JsonObjectSupport end - class ListServiceConfigsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :service_configs, as: 'serviceConfigs', class: Google::Apis::ServicemanagementV1::Service, decorator: Google::Apis::ServicemanagementV1::Service::Representation + class Type + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport + end + + class ListServiceConfigsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Backend - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::BackendRule, decorator: Google::Apis::ServicemanagementV1::BackendRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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::ServicemanagementV1::AuditLogConfig, decorator: Google::Apis::ServicemanagementV1::AuditLogConfig::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :exempted_members, as: 'exemptedMembers' - property :service, as: 'service' - end + include Google::Apis::Core::JsonObjectSupport end class SubmitConfigSourceRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :config_source, as: 'configSource', class: Google::Apis::ServicemanagementV1::ConfigSource, decorator: Google::Apis::ServicemanagementV1::ConfigSource::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :validate_only, as: 'validateOnly' - end - end - - class AuthorizationConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :provider, as: 'provider' - end + include Google::Apis::Core::JsonObjectSupport end class DocumentationRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :selector, as: 'selector' - property :description, as: 'description' - property :deprecation_description, as: 'deprecationDescription' - 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 AuthorizationConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ContextRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :requested, as: 'requested' - property :selector, as: 'selector' - collection :provided, as: 'provided' - end + 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 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :name, as: 'name' - property :type, as: 'type' - property :value_type, as: 'valueType' - property :metric_kind, as: 'metricKind' - property :description, as: 'description' - property :display_name, as: 'displayName' - end + include Google::Apis::Core::JsonObjectSupport end class SourceContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :file_name, as: 'fileName' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListServicesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :services, as: 'services', class: Google::Apis::ServicemanagementV1::ManagedService, decorator: Google::Apis::ServicemanagementV1::ManagedService::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class Endpoint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :aliases, as: 'aliases' - collection :features, as: 'features' - property :allow_cors, as: 'allowCors' - property :name, as: 'name' - collection :apis, as: 'apis' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class OAuthRequirements - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :canonical_scopes, as: 'canonicalScopes' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Usage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::UsageRule, decorator: Google::Apis::ServicemanagementV1::UsageRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :requirements, as: 'requirements' - property :producer_notification_channel, as: 'producerNotificationChannel' - 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 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 Context - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::ContextRule, decorator: Google::Apis::ServicemanagementV1::ContextRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class Rule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :log_config, as: 'logConfig', class: Google::Apis::ServicemanagementV1::LogConfig, decorator: Google::Apis::ServicemanagementV1::LogConfig::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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::ServicemanagementV1::Condition, decorator: Google::Apis::ServicemanagementV1::Condition::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class LogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :counter, as: 'counter', class: Google::Apis::ServicemanagementV1::CounterOptions, decorator: Google::Apis::ServicemanagementV1::CounterOptions::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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 - - end + include Google::Apis::Core::JsonObjectSupport end class LogDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :description, as: 'description' - property :display_name, as: 'displayName' - collection :labels, as: 'labels', class: Google::Apis::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class ConfigFile - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :file_contents, :base64 => true, as: 'fileContents' - property :file_path, as: 'filePath' - property :file_type, as: 'fileType' - 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::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class CustomErrorRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :selector, as: 'selector' - property :is_error_type, as: 'isErrorType' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class MediaDownload - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :enabled, as: 'enabled' - property :download_service, as: 'downloadService' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ChangeReport - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :config_changes, as: 'configChanges', class: Google::Apis::ServicemanagementV1::ConfigChange, decorator: Google::Apis::ServicemanagementV1::ConfigChange::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class DisableServiceRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :consumer_id, as: 'consumerId' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class SubmitConfigSourceResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service_config, as: 'serviceConfig', class: Google::Apis::ServicemanagementV1::Service, decorator: Google::Apis::ServicemanagementV1::Service::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class MediaUpload - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :upload_service, as: 'uploadService' - property :enabled, as: 'enabled' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Advice @@ -1213,12 +634,12 @@ module Google class Condition # @private class Representation < Google::Apis::Core::JsonRepresentation + property :sys, as: 'sys' + property :value, as: 'value' + property :iam, as: 'iam' + collection :values, as: 'values' property :op, as: 'op' property :svc, as: 'svc' - property :value, as: 'value' - property :sys, as: 'sys' - collection :values, as: 'values' - property :iam, as: 'iam' end end @@ -1233,9 +654,18 @@ module Google 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 + property :id, as: 'id' + end + end + + class BackendRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address' + property :selector, as: 'selector' + property :deadline, as: 'deadline' end end @@ -1251,34 +681,25 @@ module Google end end - class BackendRule + class UndeleteServiceResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :deadline, as: 'deadline' - property :address, as: 'address' - property :selector, as: 'selector' + 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 :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' property :iam_owned, as: 'iamOwned' collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::Rule, decorator: Google::Apis::ServicemanagementV1::Rule::Representation - end - end + property :version, as: 'version' + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ServicemanagementV1::AuditConfig, decorator: Google::Apis::ServicemanagementV1::AuditConfig::Representation - class UndeleteServiceResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service, as: 'service', class: Google::Apis::ServicemanagementV1::ManagedService, decorator: Google::Apis::ServicemanagementV1::ManagedService::Representation + collection :bindings, as: 'bindings', class: Google::Apis::ServicemanagementV1::Binding, decorator: Google::Apis::ServicemanagementV1::Binding::Representation end end @@ -1291,9 +712,9 @@ module Google collection :methods_prop, as: 'methods', class: Google::Apis::ServicemanagementV1::MethodProp, decorator: Google::Apis::ServicemanagementV1::MethodProp::Representation property :name, as: 'name' + property :syntax, as: 'syntax' 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 @@ -1306,6 +727,14 @@ module Google end end + class MetricRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :selector, as: 'selector' + hash :metric_costs, as: 'metricCosts' + end + end + class Authentication # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1331,72 +760,47 @@ module Google class Page # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :subpages, as: 'subpages', class: Google::Apis::ServicemanagementV1::Page, decorator: Google::Apis::ServicemanagementV1::Page::Representation - 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' - collection :details, as: 'details' end end class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation - property :role, as: 'role' collection :members, as: 'members' + property :role, as: 'role' 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' - 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' + property :audiences, as: 'audiences' end end class Service # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 - - property :producer_project_id, as: 'producerProjectId' - collection :system_types, as: 'systemTypes', class: Google::Apis::ServicemanagementV1::Type, decorator: Google::Apis::ServicemanagementV1::Type::Representation - 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 @@ -1413,20 +817,47 @@ module Google property :http, as: 'http', class: Google::Apis::ServicemanagementV1::Http, decorator: Google::Apis::ServicemanagementV1::Http::Representation - property :system_parameters, as: 'systemParameters', class: Google::Apis::ServicemanagementV1::SystemParameters, decorator: Google::Apis::ServicemanagementV1::SystemParameters::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 collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServicemanagementV1::MonitoredResourceDescriptor, decorator: Google::Apis::ServicemanagementV1::MonitoredResourceDescriptor::Representation property :logging, as: 'logging', class: Google::Apis::ServicemanagementV1::Logging, decorator: Google::Apis::ServicemanagementV1::Logging::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 :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 + + property :producer_project_id, as: 'producerProjectId' + collection :system_types, as: 'systemTypes', class: Google::Apis::ServicemanagementV1::Type, decorator: Google::Apis::ServicemanagementV1::Type::Representation + + 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 @@ -1439,14 +870,6 @@ module Google end end - class CustomHttpPattern - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :path, as: 'path' - end - end - class OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1458,6 +881,14 @@ module Google 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 @@ -1466,6 +897,630 @@ module Google end end + + class HttpRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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' + collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServicemanagementV1::HttpRule, decorator: Google::Apis::ServicemanagementV1::HttpRule::Representation + + property :response_body, as: 'responseBody' + property :media_upload, as: 'mediaUpload', class: Google::Apis::ServicemanagementV1::MediaUpload, decorator: Google::Apis::ServicemanagementV1::MediaUpload::Representation + + end + end + + class VisibilityRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :restriction, as: 'restriction' + property :selector, as: 'selector' + end + end + + class MonitoringDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :monitored_resource, as: 'monitoredResource' + collection :metrics, as: 'metrics' + 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 + + class SystemParameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::SystemParameterRule, decorator: Google::Apis::ServicemanagementV1::SystemParameterRule::Representation + + end + end + + class ConfigChange + # @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 + + end + end + + class Quota + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :limits, as: 'limits', class: Google::Apis::ServicemanagementV1::QuotaLimit, decorator: Google::Apis::ServicemanagementV1::QuotaLimit::Representation + + collection :metric_rules, as: 'metricRules', class: Google::Apis::ServicemanagementV1::MetricRule, decorator: Google::Apis::ServicemanagementV1::MetricRule::Representation + + end + end + + class Rollout + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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' + property :status, as: 'status' + property :service_name, as: 'serviceName' + end + end + + class GenerateConfigReportRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :old_config, as: 'oldConfig' + hash :new_config, as: 'newConfig' + end + end + + 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 + + end + end + + class Step + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :status, as: 'status' + end + end + + class DeleteServiceStrategy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class LoggingDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :logs, as: 'logs' + property :monitored_resource, as: 'monitoredResource' + end + end + + class Option + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + hash :value, as: 'value' + end + end + + class Logging + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServicemanagementV1::LoggingDestination, decorator: Google::Apis::ServicemanagementV1::LoggingDestination::Representation + + collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServicemanagementV1::LoggingDestination, decorator: Google::Apis::ServicemanagementV1::LoggingDestination::Representation + + end + end + + class MethodProp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :request_streaming, as: 'requestStreaming' + property :syntax, as: 'syntax' + 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' + property :name, as: 'name' + property :request_type_url, as: 'requestTypeUrl' + end + end + + class QuotaLimit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :unit, as: 'unit' + property :max_limit, as: 'maxLimit' + property :name, as: 'name' + property :free_tier, as: 'freeTier' + property :duration, as: 'duration' + property :default_limit, as: 'defaultLimit' + property :display_name, as: 'displayName' + property :description, as: 'description' + property :metric, as: 'metric' + hash :values, as: 'values' + end + end + + class ConfigRef + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + + class ListServiceRolloutsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :rollouts, as: 'rollouts', class: Google::Apis::ServicemanagementV1::Rollout, decorator: Google::Apis::ServicemanagementV1::Rollout::Representation + + end + end + + class Mixin + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :root, as: 'root' + end + end + + class FlowOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :flow_name, as: 'flowName' + collection :resource_names, as: 'resourceNames' + property :cancel_state, as: 'cancelState' + property :deadline, as: 'deadline' + property :start_time, as: 'startTime' + end + end + + class CustomError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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' + 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 + + end + end + + class SourceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :source_files, as: 'sourceFiles' + end + end + + class Control + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :environment, as: 'environment' + end + end + + class SystemParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url_query_parameter, as: 'urlQueryParameter' + property :http_header, as: 'httpHeader' + property :name, as: 'name' + end + end + + class Monitoring + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServicemanagementV1::MonitoringDestination, decorator: Google::Apis::ServicemanagementV1::MonitoringDestination::Representation + + collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServicemanagementV1::MonitoringDestination, decorator: Google::Apis::ServicemanagementV1::MonitoringDestination::Representation + + end + end + + class Field + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 :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' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class Enum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation + + property :source_context, as: 'sourceContext', class: Google::Apis::ServicemanagementV1::SourceContext, decorator: Google::Apis::ServicemanagementV1::SourceContext::Representation + + property :syntax, as: 'syntax' + property :name, as: 'name' + collection :enumvalue, as: 'enumvalue', class: Google::Apis::ServicemanagementV1::EnumValue, decorator: Google::Apis::ServicemanagementV1::EnumValue::Representation + + end + end + + class Diagnostic + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location, as: 'location' + property :kind, as: 'kind' + property :message, as: 'message' + end + end + + class EnableServiceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consumer_id, as: 'consumerId' + 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 GenerateConfigReportResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service_name, as: 'serviceName' + 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 + + end + end + + class Type + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :oneofs, as: 'oneofs' + property :source_context, as: 'sourceContext', class: Google::Apis::ServicemanagementV1::SourceContext, decorator: Google::Apis::ServicemanagementV1::SourceContext::Representation + + property :syntax, as: 'syntax' + 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' + 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 + + end + end + + class ListServiceConfigsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :service_configs, as: 'serviceConfigs', class: Google::Apis::ServicemanagementV1::Service, decorator: Google::Apis::ServicemanagementV1::Service::Representation + + end + end + + class Backend + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::BackendRule, decorator: Google::Apis::ServicemanagementV1::BackendRule::Representation + + 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 :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' + end + end + + class AuthorizationConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :provider, as: 'provider' + end + end + + class ContextRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :requested, as: 'requested' + property :selector, as: 'selector' + collection :provided, as: 'provided' + end + end + + class CloudAuditOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class MetricDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metric_kind, as: 'metricKind' + property :description, as: 'description' + property :display_name, as: 'displayName' + 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' + end + end + + class SourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_name, as: 'fileName' + end + end + + class ListServicesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :services, as: 'services', class: Google::Apis::ServicemanagementV1::ManagedService, decorator: Google::Apis::ServicemanagementV1::ManagedService::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Endpoint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :apis, as: 'apis' + collection :aliases, as: 'aliases' + property :allow_cors, as: 'allowCors' + property :target, as: 'target' + property :name, as: 'name' + collection :features, as: 'features' + 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::ServicemanagementV1::UsageRule, decorator: Google::Apis::ServicemanagementV1::UsageRule::Representation + + collection :requirements, as: 'requirements' + end + end + + class GetIamPolicyRequest + # @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 Context + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::ContextRule, decorator: Google::Apis::ServicemanagementV1::ContextRule::Representation + + end + end + + class Rule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + property :action, as: 'action' + collection :not_in, as: 'notIn' + property :description, as: 'description' + collection :conditions, as: 'conditions', class: Google::Apis::ServicemanagementV1::Condition, decorator: Google::Apis::ServicemanagementV1::Condition::Representation + + collection :log_config, as: 'logConfig', class: Google::Apis::ServicemanagementV1::LogConfig, decorator: Google::Apis::ServicemanagementV1::LogConfig::Representation + + collection :in, as: 'in' + end + end + + 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 + + end + end + + class LogDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :description, as: 'description' + property :display_name, as: 'displayName' + collection :labels, as: 'labels', class: Google::Apis::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation + + end + end + + class ConfigFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_type, as: 'fileType' + property :file_contents, :base64 => true, as: 'fileContents' + property :file_path, as: 'filePath' + 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 :is_error_type, as: 'isErrorType' + property :selector, as: 'selector' + end + end + + class MediaDownload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enabled, as: 'enabled' + property :download_service, as: 'downloadService' + end + end + + class ChangeReport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :config_changes, as: 'configChanges', class: Google::Apis::ServicemanagementV1::ConfigChange, decorator: Google::Apis::ServicemanagementV1::ConfigChange::Representation + + end + end + + class DisableServiceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consumer_id, as: 'consumerId' + end + end + + class SubmitConfigSourceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service_config, as: 'serviceConfig', class: Google::Apis::ServicemanagementV1::Service, decorator: Google::Apis::ServicemanagementV1::Service::Representation + + end + end + + class MediaUpload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :upload_service, as: 'uploadService' + property :enabled, as: 'enabled' + end + end end end end diff --git a/generated/google/apis/servicemanagement_v1/service.rb b/generated/google/apis/servicemanagement_v1/service.rb index a51b61592..10be73be3 100644 --- a/generated/google/apis/servicemanagement_v1/service.rb +++ b/generated/google/apis/servicemanagement_v1/service.rb @@ -48,20 +48,15 @@ module Google super('https://servicemanagement.googleapis.com/', '') end - # Enables a service for a project, so it can be used - # for the project. See - # [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for - # more information. - # Operation - # @param [String] service_name - # 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. + # Creates a new managed service. + # Please note one producer project can own no more than 20 services. + # Operation + # @param [Google::Apis::ServicemanagementV1::ManagedService] managed_service_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 # @@ -74,15 +69,162 @@ 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) - 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 + 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.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 + + # Generates and returns a report (errors, warnings and changes from + # existing configurations) associated with + # GenerateConfigReportRequest.new_value + # If GenerateConfigReportRequest.old_value is specified, + # GenerateConfigReportRequest will contain a single ChangeReport based on the + # comparison between GenerateConfigReportRequest.new_value and + # GenerateConfigReportRequest.old_value. + # If GenerateConfigReportRequest.old_value is not specified, this method + # will compare GenerateConfigReportRequest.new_value with the last pushed + # service configuration. + # @param [Google::Apis::ServicemanagementV1::GenerateConfigReportRequest] generate_config_report_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::GenerateConfigReportResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::GenerateConfigReportResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Gets a managed service. Authentication is required unless the service is + # public. + # @param [String] service_name + # The name of the service. See the `ServiceManager` 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::ManagedService] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::ManagedService] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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['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::ServicemanagementV1::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::ServicemanagementV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::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_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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Gets a service configuration (version) for a managed service. + # @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] config_id + # The id of the service configuration resource. + # @param [String] view + # Specifies which parts of the Service Config should be returned in the + # response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::Service] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::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_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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -94,11 +236,11 @@ module Google # @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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -111,13 +253,51 @@ 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_service(service_name, fields: nil, quota_user: nil, options: nil, &block) + 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['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 + + # Enables a service for a project, so it can be used + # for the project. See + # [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for + # more information. + # Operation + # @param [String] service_name + # 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -127,11 +307,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 # @@ -144,15 +324,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 @@ -164,11 +344,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 # @@ -181,15 +361,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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -200,11 +380,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::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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -217,15 +397,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_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + 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['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 @@ -237,11 +417,11 @@ module Google # @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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -254,13 +434,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 undelete_service(service_name, fields: nil, quota_user: nil, options: nil, &block) + 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['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 @@ -283,11 +463,11 @@ module Google # 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 # @@ -300,7 +480,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_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(consumer_id: nil, page_token: nil, page_size: nil, producer_project_id: 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 @@ -308,260 +488,8 @@ module Google 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['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new managed service. - # 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 [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 create_service(managed_service_object = nil, fields: nil, quota_user: 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? - execute_or_queue_command(command, &block) - end - - # Generates and returns a report (errors, warnings and changes from - # existing configurations) associated with - # GenerateConfigReportRequest.new_value - # If GenerateConfigReportRequest.old_value is specified, - # GenerateConfigReportRequest will contain a single ChangeReport based on the - # comparison between GenerateConfigReportRequest.new_value and - # GenerateConfigReportRequest.old_value. - # If GenerateConfigReportRequest.old_value is not specified, this method - # 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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicemanagementV1::GenerateConfigReportResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::GenerateConfigReportResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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) - 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? - execute_or_queue_command(command, &block) - end - - # Gets a managed service. Authentication is required unless the service is - # public. - # @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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicemanagementV1::ManagedService] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::ManagedService] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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) - 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? - 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::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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::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_service_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::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? - execute_or_queue_command(command, &block) - end - - # Gets a service configuration (version) for a managed service. - # @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] view - # Specifies which parts of the Service Config should be returned in the - # response. - # @param [String] config_id - # The id of the service configuration 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::ServicemanagementV1::Service] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::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_service_configuration"(service_name, view: nil, config_id: nil, fields: nil, quota_user: 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['view'] = view unless view.nil? - command.query['configId'] = config_id unless config_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 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] page_token - # The token 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 [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, page_size: 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['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 service configuration rollout. - # @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] 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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::Rollout] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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) - 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? execute_or_queue_command(command, &block) end @@ -577,11 +505,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 # @@ -594,20 +522,20 @@ 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? + 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. + # 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`. @@ -615,107 +543,66 @@ module Google # 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 [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 result [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] + # @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_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 + def list_service_rollouts(service_name, 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['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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end - # Gets a service configuration (version) for a managed service. + # Gets a service configuration rollout. # @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] config_id - # The id of the service configuration resource. - # @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] rollout_id + # The id of the rollout 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::Service] parsed result object + # @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ServicemanagementV1::Service] + # @return [Google::Apis::ServicemanagementV1::Rollout] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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) - 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 + 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['configId'] = config_id unless config_id.nil? - command.query['view'] = view unless view.nil? - command.query['fields'] = fields unless fields.nil? + command.params['rolloutId'] = rollout_id unless rollout_id.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new service configuration (version) for a managed service. - # This method only stores the service configuration. To roll out the service - # configuration to backend systems please call - # CreateServiceRollout. - # @param [String] service_name - # 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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::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 create_service_config(service_name, service_object = nil, fields: nil, quota_user: 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? execute_or_queue_command(command, &block) end @@ -731,11 +618,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 # @@ -748,15 +635,128 @@ 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 + + # 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 + + # Gets a service configuration (version) for a managed service. + # @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] config_id + # The id of the service configuration resource. + # @param [String] view + # Specifies which parts of the Service Config should be returned in the + # response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::Service] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::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_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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new service configuration (version) for a managed service. + # This method only stores the service configuration. To roll out the service + # configuration to backend systems please call + # CreateServiceRollout. + # @param [String] service_name + # 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::Service] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::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 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['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 # * `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] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not 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,7 +803,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: nil, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_operations(name: nil, page_token: nil, page_size: nil, filter: 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 @@ -811,8 +811,8 @@ 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 @@ -821,11 +821,11 @@ module Google # 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 # @@ -838,13 +838,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) + 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['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/classes.rb b/generated/google/apis/serviceuser_v1/classes.rb index b25590294..71bb657fb 100644 --- a/generated/google/apis/serviceuser_v1/classes.rb +++ b/generated/google/apis/serviceuser_v1/classes.rb @@ -22,6 +22,244 @@ module Google module Apis module ServiceuserV1 + # 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 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 + + # 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 + + 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) + @labels = args[:labels] if args.key?(:labels) + 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 + + # 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 + + # 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 THIS FIELD 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 + + 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) + 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 + + # 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 THIS FIELD 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 + + # Whether upload is enabled. + # 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) + @upload_service = args[:upload_service] if args.key?(:upload_service) + @enabled = args[:enabled] if args.key?(:enabled) + end + end + # Usage configuration rules for the service. # NOTE: Under development. # Use this rule to configure unregistered calls for the service. Unregistered @@ -73,13 +311,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 +330,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,12 +404,6 @@ 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] @@ -205,17 +437,56 @@ module Google # @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) - @summary = args[:summary] if args.key?(:summary) @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) + end + end + + # A backend rule provides configuration for an individual API element. + class BackendRule + include Google::Apis::Core::Hashable + + # 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) + @address = args[:address] if args.key?(:address) + @selector = args[:selector] if args.key?(:selector) + @deadline = args[:deadline] if args.key?(:deadline) end end @@ -229,11 +500,6 @@ module Google class AuthenticationRule include Google::Apis::Core::Hashable - # 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` @@ -269,49 +535,21 @@ module Google # @return [Google::Apis::ServiceuserV1::OAuthRequirements] attr_accessor :oauth + # Requirements for additional authentication providers. + # 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) - @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) - end - end - - # A backend rule provides configuration for an individual API element. - class BackendRule - include Google::Apis::Core::Hashable - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @deadline = args[:deadline] if args.key?(:deadline) - @address = args[:address] if args.key?(:address) - @selector = args[:selector] if args.key?(:selector) + @requirements = args[:requirements] if args.key?(:requirements) end end @@ -437,25 +675,25 @@ module Google class Authentication include Google::Apis::Core::Hashable - # Defines a set of authentication providers that a service supports. - # Corresponds to the JSON property `providers` - # @return [Array] - attr_accessor :providers - # A list of authentication 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 + # Defines a set of authentication providers that a service supports. + # Corresponds to the JSON property `providers` + # @return [Array] + attr_accessor :providers + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @providers = args[:providers] if args.key?(:providers) @rules = args[:rules] if args.key?(:rules) + @providers = args[:providers] if args.key?(:providers) end end @@ -464,6 +702,14 @@ 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 @@ -534,25 +780,17 @@ 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) - @done = args[:done] if args.key?(:done) end end @@ -561,19 +799,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 @@ -592,15 +817,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 @@ -646,6 +884,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` @@ -657,22 +902,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 @@ -767,6 +1005,50 @@ 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 @@ -843,13 +1125,6 @@ module Google # @return [Google::Apis::ServiceuserV1::Monitoring] attr_accessor :monitoring - # The id of the Google developer project that owns the service. - # Members of this project can manage the service configuration, - # manage consumption of the service, etc. - # 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 @@ -859,6 +1134,13 @@ module Google # @return [Array] attr_accessor :system_types + # The id of the Google developer project that owns the service. + # Members of this project can manage the service configuration, + # manage consumption of the service, etc. + # 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. @@ -1243,63 +1525,24 @@ 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @enums = args[:enums] if args.key?(:enums) + @context = args[:context] if args.key?(:context) + @id = args[:id] if args.key?(:id) + @usage = args[:usage] if args.key?(:usage) + @metrics = args[:metrics] if args.key?(:metrics) @authentication = args[:authentication] if args.key?(:authentication) @experimental = args[:experimental] if args.key?(:experimental) @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) @@ -1316,11 +1559,6 @@ module Google @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) - @usage = args[:usage] if args.key?(:usage) - @metrics = args[:metrics] if args.key?(:metrics) end end @@ -1328,6 +1566,11 @@ module Google class EnumValue include Google::Apis::Core::Hashable + # Enum value name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # Protocol buffer options. # Corresponds to the JSON property `options` # @return [Array] @@ -1338,20 +1581,15 @@ module Google # @return [Fixnum] attr_accessor :number - # Enum value 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) + @name = args[:name] if args.key?(:name) @options = args[:options] if args.key?(:options) @number = args[:number] if args.key?(:number) - @name = args[:name] if args.key?(:name) end end @@ -1384,6 +1622,11 @@ 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] @@ -1400,53 +1643,16 @@ module Google # @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 - def initialize(**args) update!(**args) end # 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) @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) - end - end - - # Define a system parameter rule mapping system parameter definitions to - # methods. - class SystemParameterRule - include Google::Apis::Core::Hashable - - # 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. - # If none of the specified names are present the behavior is - # parameter-dependent. - # Corresponds to the JSON property `parameters` - # @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) end end @@ -1455,13 +1661,6 @@ module Google class PublishedService include Google::Apis::Core::Hashable - # The resource name of the service. - # A valid name would be: - # - services/serviceuser.googleapis.com - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # `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 @@ -1487,14 +1686,53 @@ module Google # @return [Google::Apis::ServiceuserV1::Service] attr_accessor :service + # The resource name of the service. + # A valid name would be: + # - services/serviceuser.googleapis.com + # 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) @service = args[:service] if args.key?(:service) + @name = args[:name] if args.key?(:name) + end + end + + # Define a system parameter rule mapping system parameter definitions to + # methods. + 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. + # If none of the specified names are present the behavior is + # parameter-dependent. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @selector = args[:selector] if args.key?(:selector) + @parameters = args[:parameters] if args.key?(:parameters) end end @@ -1707,26 +1945,6 @@ module Google class HttpRule include Google::Apis::Core::Hashable - # The name of the request field whose value is mapped to the HTTP body, or - # `*` for mapping all fields not captured by the path pattern to the HTTP - # body. NOTE: the referred field must not be a repeated field and must be - # present at the top-level of request message type. - # Corresponds to the JSON property `body` - # @return [String] - attr_accessor :body - - # 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::ServiceuserV1::MediaDownload] - attr_accessor :media_download - - # Used for creating a resource. - # Corresponds to the JSON property `post` - # @return [String] - attr_accessor :post - # 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). @@ -1781,15 +1999,32 @@ module Google # @return [String] attr_accessor :delete + # The name of the request field whose value is mapped to the HTTP body, or + # `*` for mapping all fields not captured by the path pattern to the HTTP + # body. NOTE: the referred field must not be a repeated field and must be + # present at the top-level of request message type. + # Corresponds to the JSON property `body` + # @return [String] + attr_accessor :body + + # 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::ServiceuserV1::MediaDownload] + attr_accessor :media_download + + # Used for creating a resource. + # Corresponds to the JSON property `post` + # @return [String] + attr_accessor :post + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @body = args[:body] if args.key?(:body) - @media_download = args[:media_download] if args.key?(:media_download) - @post = args[:post] if args.key?(:post) @additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings) @response_body = args[:response_body] if args.key?(:response_body) @media_upload = args[:media_upload] if args.key?(:media_upload) @@ -1799,6 +2034,9 @@ module Google @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) end end @@ -2125,24 +2363,24 @@ module Google 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 + # 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) - @status = args[:status] if args.key?(:status) @description = args[:description] if args.key?(:description) + @status = args[:status] if args.key?(:status) end end @@ -2151,12 +2389,6 @@ module Google class LoggingDestination include Google::Apis::Core::Hashable - # 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 - # 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 @@ -2165,14 +2397,20 @@ module Google # @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) - @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource) @logs = args[:logs] if args.key?(:logs) + @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource) end end @@ -2265,121 +2503,12 @@ module Google 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 - # 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 - - # 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 - - # Tiered limit values. Also allows for regional or zone overrides for these - # values if "/`region`" or "/`zone`" is specified in the unit field. - # Currently supported tiers from low to high: - # VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH - # To apply different limit values for users according to their tiers, specify - # the values for the tiers you want to differentiate. For example: - # `LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000` - # The limit value for each tier is optional except for the tier STANDARD. - # The limit value for an unspecified tier falls to the value of its next - # tier towards tier STANDARD. For the above example, the limit value for tier - # STANDARD is 500. - # To apply the same limit value for all users, just specify limit value for - # tier STANDARD. For example: `STANDARD:500`. - # To apply a regional overide for a tier, add a map entry with key - # "/", where is a region name. Similarly, for a zone - # override, add a map entry with key "/`zone`". - # Further, a wildcard can be used at the end of a zone name in order to - # specify zone level overrides. For example: - # LOW: 10, STANDARD: 50, HIGH: 100, - # LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, - # LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 - # The regional overrides tier set for each region must be the same as - # the tier set for default limit values. Same rule applies for zone overrides - # tier as well. - # Used by metric-based quotas only. - # 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. @@ -2474,22 +2603,131 @@ module Google # @return [String] attr_accessor :default_limit + # 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 + + # 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 + + # Tiered limit values. Also allows for regional or zone overrides for these + # values if "/`region`" or "/`zone`" is specified in the unit field. + # Currently supported tiers from low to high: + # VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH + # To apply different limit values for users according to their tiers, specify + # the values for the tiers you want to differentiate. For example: + # `LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000` + # The limit value for each tier is optional except for the tier STANDARD. + # The limit value for an unspecified tier falls to the value of its next + # tier towards tier STANDARD. For the above example, the limit value for tier + # STANDARD is 500. + # To apply the same limit value for all users, just specify limit value for + # tier STANDARD. For example: `STANDARD:500`. + # To apply a regional overide for a tier, add a map entry with key + # "/", where is a region name. Similarly, for a zone + # override, add a map entry with key "/`zone`". + # Further, a wildcard can be used at the end of a zone name in order to + # specify zone level overrides. For example: + # LOW: 10, STANDARD: 50, HIGH: 100, + # LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, + # LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 + # The regional overrides tier set for each region must be the same as + # the tier set for default limit values. Same rule applies for zone overrides + # tier as well. + # Used by metric-based quotas only. + # 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) - @description = args[:description] if args.key?(:description) - @metric = args[:metric] if args.key?(:metric) - @display_name = args[:display_name] if args.key?(:display_name) - @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) + @description = args[:description] if args.key?(:description) + @metric = args[:metric] if args.key?(:metric) + @display_name = args[:display_name] if args.key?(:display_name) + @values = args[:values] if args.key?(:values) + end + end + + # Method represents a method of an api. + class MethodProp + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @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) end end @@ -2590,25 +2828,25 @@ module Google 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 + # 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) - @types = args[:types] if args.key?(:types) @rules = args[:rules] if args.key?(:rules) + @types = args[:types] if args.key?(:types) end end @@ -2618,12 +2856,6 @@ 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. @@ -2634,14 +2866,20 @@ 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) - @rules = args[:rules] if args.key?(:rules) @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 @@ -2692,12 +2930,6 @@ module Google class SystemParameter include Google::Apis::Core::Hashable - # 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] @@ -2709,15 +2941,21 @@ module Google # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @http_header = args[:http_header] if args.key?(:http_header) @name = args[:name] if args.key?(:name) @url_query_parameter = args[:url_query_parameter] if args.key?(:url_query_parameter) + @http_header = args[:http_header] if args.key?(:http_header) end end @@ -2790,43 +3028,6 @@ module Google class Field include Google::Apis::Core::Hashable - # 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] @@ -2843,22 +3044,59 @@ module Google # @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) - @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) @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 @@ -2866,6 +3104,17 @@ module Google class Enum include Google::Apis::Core::Hashable + # `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` + # @return [String] + attr_accessor :syntax + # Enum type name. # Corresponds to the JSON property `name` # @return [String] @@ -2881,16 +3130,23 @@ module Google # @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::ServiceuserV1::SourceContext] - attr_accessor :source_context + def initialize(**args) + update!(**args) + end - # The source syntax. - # Corresponds to the JSON property `syntax` - # @return [String] - attr_accessor :syntax + # Update properties of this object + def update!(**args) + @source_context = args[:source_context] if args.key?(:source_context) + @syntax = args[:syntax] if args.key?(:syntax) + @name = args[:name] if args.key?(:name) + @enumvalue = args[:enumvalue] if args.key?(:enumvalue) + @options = args[:options] if args.key?(:options) + end + end + + # Request message for EnableService method. + class EnableServiceRequest + include Google::Apis::Core::Hashable def initialize(**args) update!(**args) @@ -2898,11 +3154,6 @@ 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) end end @@ -2937,28 +3188,10 @@ module Google end end - # Request message for EnableService method. - class EnableServiceRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - 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] @@ -2974,16 +3207,21 @@ 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::ServiceuserV1::SourceContext] attr_accessor :source_context - # The source syntax. - # Corresponds to the JSON property `syntax` - # @return [String] - attr_accessor :syntax + # The protocol buffer options. + # Corresponds to the JSON property `options` + # @return [Array] + attr_accessor :options def initialize(**args) update!(**args) @@ -2991,12 +3229,12 @@ module Google # 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) + @source_context = args[:source_context] if args.key?(:source_context) + @options = args[:options] if args.key?(:options) end end @@ -3114,6 +3352,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] @@ -3124,21 +3368,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 @@ -3148,51 +3386,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` - # @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 @@ -3257,20 +3450,65 @@ 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 + + # 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 + 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) @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 @@ -3312,13 +3550,15 @@ module Google class Endpoint include Google::Apis::Core::Hashable - # 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` + # The list of features enabled on this endpoint. + # Corresponds to the JSON property `features` # @return [Array] - attr_accessor :aliases + attr_accessor :features + + # The list of APIs served by this endpoint. + # Corresponds to the JSON property `apis` + # @return [Array] + attr_accessor :apis # Allowing # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka @@ -3331,6 +3571,14 @@ module Google 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). @@ -3345,28 +3593,18 @@ module Google # @return [String] attr_accessor :name - # 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. - # 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) - @aliases = args[:aliases] if args.key?(:aliases) - @allow_cors = args[:allow_cors] if args.key?(:allow_cors) - @target = args[:target] if args.key?(:target) - @name = args[:name] if args.key?(:name) @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 @@ -3503,244 +3741,6 @@ module Google @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 - - # 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 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 - - # 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 THIS FIELD 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 - - 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) - 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 - - # 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 THIS FIELD 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 - - # Whether upload is enabled. - # 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) - @upload_service = args[:upload_service] if args.key?(:upload_service) - @enabled = args[:enabled] if args.key?(:enabled) - end - end end end end diff --git a/generated/google/apis/serviceuser_v1/representations.rb b/generated/google/apis/serviceuser_v1/representations.rb index 07f449411..46c1a18fa 100644 --- a/generated/google/apis/serviceuser_v1/representations.rb +++ b/generated/google/apis/serviceuser_v1/representations.rb @@ -22,330 +22,6 @@ module Google module Apis module ServiceuserV1 - 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 Documentation - 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 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 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 AuthProvider - 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 EnumValue - 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 PublishedService - 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 Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SystemParameters - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Quota - 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 LoggingDestination - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Option - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Logging - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MethodProp - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class QuotaLimit - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Mixin - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CustomError - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Http - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SourceInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Control - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SystemParameter - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Monitoring - 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 Enum - 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 EnableServiceRequest - 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 Experimental - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Backend - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DocumentationRule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AuthorizationConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ContextRule - 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 Endpoint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListEnabledServicesResponse - 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 @@ -389,612 +65,349 @@ module Google end class UsageRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :selector, as: 'selector' - property :allow_unregistered_calls, as: 'allowUnregisteredCalls' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class AuthRequirement - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :provider_id, as: 'providerId' - property :audiences, as: 'audiences' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Documentation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :summary, as: 'summary' - property :documentation_root_url, as: 'documentationRootUrl' - collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::DocumentationRule, decorator: Google::Apis::ServiceuserV1::DocumentationRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :overview, as: 'overview' - collection :pages, as: 'pages', class: Google::Apis::ServiceuserV1::Page, decorator: Google::Apis::ServiceuserV1::Page::Representation - - end - end - - class AuthenticationRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 :oauth, as: 'oauth', class: Google::Apis::ServiceuserV1::OAuthRequirements, decorator: Google::Apis::ServiceuserV1::OAuthRequirements::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class BackendRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :deadline, as: 'deadline' - property :address, as: 'address' - property :selector, as: 'selector' - end + 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 Api - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :source_context, as: 'sourceContext', class: Google::Apis::ServiceuserV1::SourceContext, decorator: Google::Apis::ServiceuserV1::SourceContext::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :syntax, as: 'syntax' - property :version, as: 'version' - collection :mixins, as: 'mixins', class: Google::Apis::ServiceuserV1::Mixin, decorator: Google::Apis::ServiceuserV1::Mixin::Representation - - collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation - - collection :methods_prop, as: 'methods', class: Google::Apis::ServiceuserV1::MethodProp, decorator: Google::Apis::ServiceuserV1::MethodProp::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class MetricRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :selector, as: 'selector' - hash :metric_costs, as: 'metricCosts' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Authentication - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :providers, as: 'providers', class: Google::Apis::ServiceuserV1::AuthProvider, decorator: Google::Apis::ServiceuserV1::AuthProvider::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::AuthenticationRule, decorator: Google::Apis::ServiceuserV1::AuthenticationRule::Representation - - end + include Google::Apis::Core::JsonObjectSupport 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::ServiceuserV1::Status, decorator: Google::Apis::ServiceuserV1::Status::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - hash :metadata, as: 'metadata' - property :done, as: 'done' - end + include Google::Apis::Core::JsonObjectSupport end class Page - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :content, as: 'content' - collection :subpages, as: 'subpages', class: Google::Apis::ServiceuserV1::Page, decorator: Google::Apis::ServiceuserV1::Page::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :name, as: 'name' - 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 AuthProvider - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :issuer, as: 'issuer' - property :jwks_uri, as: 'jwksUri' - property :audiences, as: 'audiences' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Service - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :authentication, as: 'authentication', class: Google::Apis::ServiceuserV1::Authentication, decorator: Google::Apis::ServiceuserV1::Authentication::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :experimental, as: 'experimental', class: Google::Apis::ServiceuserV1::Experimental, decorator: Google::Apis::ServiceuserV1::Experimental::Representation - - property :control, as: 'control', class: Google::Apis::ServiceuserV1::Control, decorator: Google::Apis::ServiceuserV1::Control::Representation - - 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 :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 - - property :name, as: 'name' - property :custom_error, as: 'customError', class: Google::Apis::ServiceuserV1::CustomError, decorator: Google::Apis::ServiceuserV1::CustomError::Representation - - 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 - - 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 - - property :id, as: 'id' - property :usage, as: 'usage', class: Google::Apis::ServiceuserV1::Usage, decorator: Google::Apis::ServiceuserV1::Usage::Representation - - collection :metrics, as: 'metrics', class: Google::Apis::ServiceuserV1::MetricDescriptor, decorator: Google::Apis::ServiceuserV1::MetricDescriptor::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class EnumValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :number, as: 'number' - property :name, as: 'name' - end + include Google::Apis::Core::JsonObjectSupport end class CustomHttpPattern - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :path, as: 'path' - property :kind, as: 'kind' - end + class Representation < Google::Apis::Core::JsonRepresentation; 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::ServiceuserV1::Step, decorator: Google::Apis::ServiceuserV1::Step::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :progress_percentage, as: 'progressPercentage' - end - end - - class SystemParameterRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :parameters, as: 'parameters', class: Google::Apis::ServiceuserV1::SystemParameter, decorator: Google::Apis::ServiceuserV1::SystemParameter::Representation - - property :selector, as: 'selector' - end + include Google::Apis::Core::JsonObjectSupport end class PublishedService - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :service, as: 'service', class: Google::Apis::ServiceuserV1::Service, decorator: Google::Apis::ServiceuserV1::Service::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport + end + + class SystemParameterRule + class Representation < Google::Apis::Core::JsonRepresentation; 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 :body, as: 'body' - property :media_download, as: 'mediaDownload', class: Google::Apis::ServiceuserV1::MediaDownload, decorator: Google::Apis::ServiceuserV1::MediaDownload::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :post, as: 'post' - collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServiceuserV1::HttpRule, decorator: Google::Apis::ServiceuserV1::HttpRule::Representation - - property :response_body, as: 'responseBody' - property :media_upload, as: 'mediaUpload', class: Google::Apis::ServiceuserV1::MediaUpload, decorator: Google::Apis::ServiceuserV1::MediaUpload::Representation - - property :selector, as: 'selector' - property :custom, as: 'custom', class: Google::Apis::ServiceuserV1::CustomHttpPattern, decorator: Google::Apis::ServiceuserV1::CustomHttpPattern::Representation - - property :get, as: 'get' - property :patch, as: 'patch' - property :put, as: 'put' - property :delete, as: 'delete' - end + include Google::Apis::Core::JsonObjectSupport end class MonitoringDestination - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :monitored_resource, as: 'monitoredResource' - collection :metrics, as: 'metrics' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Visibility - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::VisibilityRule, decorator: Google::Apis::ServiceuserV1::VisibilityRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class SystemParameters - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::SystemParameterRule, decorator: Google::Apis::ServiceuserV1::SystemParameterRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class Quota - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :limits, as: 'limits', class: Google::Apis::ServiceuserV1::QuotaLimit, decorator: Google::Apis::ServiceuserV1::QuotaLimit::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :metric_rules, as: 'metricRules', class: Google::Apis::ServiceuserV1::MetricRule, decorator: Google::Apis::ServiceuserV1::MetricRule::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class Step - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :status, as: 'status' - property :description, as: 'description' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class LoggingDestination - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :monitored_resource, as: 'monitoredResource' - collection :logs, as: 'logs' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Option - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - hash :value, as: 'value' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Logging - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServiceuserV1::LoggingDestination, decorator: Google::Apis::ServiceuserV1::LoggingDestination::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServiceuserV1::LoggingDestination, decorator: Google::Apis::ServiceuserV1::LoggingDestination::Representation - - 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 + include Google::Apis::Core::JsonObjectSupport end class QuotaLimit - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :metric, as: 'metric' - property :display_name, as: 'displayName' - hash :values, as: 'values' - property :unit, as: 'unit' - property :max_limit, as: 'maxLimit' - property :name, as: 'name' - property :duration, as: 'duration' - property :free_tier, as: 'freeTier' - property :default_limit, as: 'defaultLimit' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MethodProp + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Mixin - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :root, as: 'root' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class CustomError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :types, as: 'types' - collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::CustomErrorRule, decorator: Google::Apis::ServiceuserV1::CustomErrorRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class Http - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::HttpRule, decorator: Google::Apis::ServiceuserV1::HttpRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :fully_decode_reserved_expansion, as: 'fullyDecodeReservedExpansion' - end + include Google::Apis::Core::JsonObjectSupport end class SourceInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :source_files, as: 'sourceFiles' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Control - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :environment, as: 'environment' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class SystemParameter - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :http_header, as: 'httpHeader' - property :name, as: 'name' - property :url_query_parameter, as: 'urlQueryParameter' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServiceuserV1::MonitoringDestination, decorator: Google::Apis::ServiceuserV1::MonitoringDestination::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class Field - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :json_name, as: 'jsonName' - collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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' - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation - - property :source_context, as: 'sourceContext', class: Google::Apis::ServiceuserV1::SourceContext, decorator: Google::Apis::ServiceuserV1::SourceContext::Representation - - property :syntax, as: 'syntax' - end - end - - class LabelDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :value_type, as: 'valueType' - property :key, as: 'key' - property :description, as: 'description' - end + include Google::Apis::Core::JsonObjectSupport end class EnableServiceRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + 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 Type - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :fields, as: 'fields', class: Google::Apis::ServiceuserV1::Field, decorator: Google::Apis::ServiceuserV1::Field::Representation - - property :name, as: 'name' - collection :oneofs, as: 'oneofs' - property :source_context, as: 'sourceContext', class: Google::Apis::ServiceuserV1::SourceContext, decorator: Google::Apis::ServiceuserV1::SourceContext::Representation - - property :syntax, as: 'syntax' - end + include Google::Apis::Core::JsonObjectSupport end class Experimental - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :authorization, as: 'authorization', class: Google::Apis::ServiceuserV1::AuthorizationConfig, decorator: Google::Apis::ServiceuserV1::AuthorizationConfig::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class Backend - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::BackendRule, decorator: Google::Apis::ServiceuserV1::BackendRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class DocumentationRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :deprecation_description, as: 'deprecationDescription' - property :selector, as: 'selector' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class AuthorizationConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :provider, as: 'provider' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ContextRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :provided, as: 'provided' - collection :requested, as: 'requested' - property :selector, as: 'selector' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class SourceContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :file_name, as: 'fileName' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Endpoint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :aliases, as: 'aliases' - property :allow_cors, as: 'allowCors' - property :target, as: 'target' - property :name, as: 'name' - collection :features, as: 'features' - collection :apis, as: 'apis' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class OAuthRequirements - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :canonical_scopes, as: 'canonicalScopes' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :requirements, as: 'requirements' - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport 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' + collection :labels, as: 'labels', class: Google::Apis::ServiceuserV1::LabelDescriptor, decorator: Google::Apis::ServiceuserV1::LabelDescriptor::Representation + end end class MonitoredResourceDescriptor # @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 :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 @@ -1036,6 +449,593 @@ module Google property :enabled, as: 'enabled' end end + + class UsageRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :selector, as: 'selector' + property :allow_unregistered_calls, as: 'allowUnregisteredCalls' + end + end + + class AuthRequirement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audiences, as: 'audiences' + property :provider_id, as: 'providerId' + end + end + + class Documentation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :documentation_root_url, as: 'documentationRootUrl' + 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 BackendRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address' + property :selector, as: 'selector' + property :deadline, as: 'deadline' + end + end + + class AuthenticationRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :selector, as: 'selector' + property :allow_without_credential, as: 'allowWithoutCredential' + 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 + + end + end + + class Api + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :source_context, as: 'sourceContext', class: Google::Apis::ServiceuserV1::SourceContext, decorator: Google::Apis::ServiceuserV1::SourceContext::Representation + + property :syntax, as: 'syntax' + property :version, as: 'version' + collection :mixins, as: 'mixins', class: Google::Apis::ServiceuserV1::Mixin, decorator: Google::Apis::ServiceuserV1::Mixin::Representation + + collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation + + collection :methods_prop, as: 'methods', class: Google::Apis::ServiceuserV1::MethodProp, decorator: Google::Apis::ServiceuserV1::MethodProp::Representation + + end + end + + class MetricRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :selector, as: 'selector' + hash :metric_costs, as: 'metricCosts' + end + end + + class Authentication + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::AuthenticationRule, decorator: Google::Apis::ServiceuserV1::AuthenticationRule::Representation + + collection :providers, as: 'providers', class: Google::Apis::ServiceuserV1::AuthProvider, decorator: Google::Apis::ServiceuserV1::AuthProvider::Representation + + 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::ServiceuserV1::Status, decorator: Google::Apis::ServiceuserV1::Status::Representation + + hash :metadata, as: 'metadata' + 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 + + 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 AuthProvider + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :issuer, as: 'issuer' + property :jwks_uri, as: 'jwksUri' + property :audiences, as: 'audiences' + end + end + + class Service + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + property :id, as: 'id' + property :usage, as: 'usage', class: Google::Apis::ServiceuserV1::Usage, decorator: Google::Apis::ServiceuserV1::Usage::Representation + + collection :metrics, as: 'metrics', class: Google::Apis::ServiceuserV1::MetricDescriptor, decorator: Google::Apis::ServiceuserV1::MetricDescriptor::Representation + + property :authentication, as: 'authentication', class: Google::Apis::ServiceuserV1::Authentication, decorator: Google::Apis::ServiceuserV1::Authentication::Representation + + property :experimental, as: 'experimental', class: Google::Apis::ServiceuserV1::Experimental, decorator: Google::Apis::ServiceuserV1::Experimental::Representation + + property :control, as: 'control', class: Google::Apis::ServiceuserV1::Control, decorator: Google::Apis::ServiceuserV1::Control::Representation + + property :config_version, as: 'configVersion' + property :monitoring, as: 'monitoring', class: Google::Apis::ServiceuserV1::Monitoring, decorator: Google::Apis::ServiceuserV1::Monitoring::Representation + + 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 + + property :name, as: 'name' + property :custom_error, as: 'customError', class: Google::Apis::ServiceuserV1::CustomError, decorator: Google::Apis::ServiceuserV1::CustomError::Representation + + 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 EnumValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation + + property :number, as: 'number' + end + end + + class CustomHttpPattern + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :path, as: 'path' + property :kind, as: 'kind' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :progress_percentage, as: 'progressPercentage' + 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 + + end + end + + class PublishedService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service, as: 'service', class: Google::Apis::ServiceuserV1::Service, decorator: Google::Apis::ServiceuserV1::Service::Representation + + property :name, as: 'name' + end + end + + class SystemParameterRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :selector, as: 'selector' + collection :parameters, as: 'parameters', class: Google::Apis::ServiceuserV1::SystemParameter, decorator: Google::Apis::ServiceuserV1::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 + collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServiceuserV1::HttpRule, decorator: Google::Apis::ServiceuserV1::HttpRule::Representation + + property :response_body, as: 'responseBody' + property :media_upload, as: 'mediaUpload', class: Google::Apis::ServiceuserV1::MediaUpload, decorator: Google::Apis::ServiceuserV1::MediaUpload::Representation + + property :selector, as: 'selector' + property :custom, as: 'custom', class: Google::Apis::ServiceuserV1::CustomHttpPattern, decorator: Google::Apis::ServiceuserV1::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::ServiceuserV1::MediaDownload, decorator: Google::Apis::ServiceuserV1::MediaDownload::Representation + + property :post, as: 'post' + end + end + + class MonitoringDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :monitored_resource, as: 'monitoredResource' + collection :metrics, as: 'metrics' + end + end + + class Visibility + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::VisibilityRule, decorator: Google::Apis::ServiceuserV1::VisibilityRule::Representation + + end + end + + class SystemParameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::SystemParameterRule, decorator: Google::Apis::ServiceuserV1::SystemParameterRule::Representation + + end + end + + class Quota + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + class Step + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :status, as: 'status' + end + end + + class LoggingDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :logs, as: 'logs' + property :monitored_resource, as: 'monitoredResource' + end + end + + class Option + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + hash :value, as: 'value' + end + end + + class Logging + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServiceuserV1::LoggingDestination, decorator: Google::Apis::ServiceuserV1::LoggingDestination::Representation + + collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServiceuserV1::LoggingDestination, decorator: Google::Apis::ServiceuserV1::LoggingDestination::Representation + + end + end + + class QuotaLimit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :unit, as: 'unit' + property :max_limit, as: 'maxLimit' + property :name, as: 'name' + property :duration, as: 'duration' + property :free_tier, as: 'freeTier' + property :default_limit, as: 'defaultLimit' + property :description, as: 'description' + property :metric, as: 'metric' + property :display_name, as: 'displayName' + hash :values, as: 'values' + end + end + + class MethodProp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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' + property :name, as: 'name' + property :request_type_url, as: 'requestTypeUrl' + property :request_streaming, as: 'requestStreaming' + end + end + + class Mixin + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :root, as: 'root' + end + end + + class CustomError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::CustomErrorRule, decorator: Google::Apis::ServiceuserV1::CustomErrorRule::Representation + + collection :types, as: 'types' + 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::ServiceuserV1::HttpRule, decorator: Google::Apis::ServiceuserV1::HttpRule::Representation + + end + end + + class SourceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :source_files, as: 'sourceFiles' + end + end + + class Control + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :environment, as: 'environment' + end + end + + class SystemParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :url_query_parameter, as: 'urlQueryParameter' + property :http_header, as: 'httpHeader' + 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 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' + collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation + + property :oneof_index, as: 'oneofIndex' + property :cardinality, as: 'cardinality' + property :packed, as: 'packed' + property :default_value, as: 'defaultValue' + end + end + + class Enum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source_context, as: 'sourceContext', class: Google::Apis::ServiceuserV1::SourceContext, decorator: Google::Apis::ServiceuserV1::SourceContext::Representation + + property :syntax, as: 'syntax' + 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 + + end + end + + class EnableServiceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class LabelDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value_type, as: 'valueType' + property :key, as: 'key' + property :description, as: 'description' + end + end + + class Type + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :fields, as: 'fields', class: Google::Apis::ServiceuserV1::Field, decorator: Google::Apis::ServiceuserV1::Field::Representation + + property :name, as: 'name' + collection :oneofs, as: 'oneofs' + property :syntax, as: 'syntax' + property :source_context, as: 'sourceContext', class: Google::Apis::ServiceuserV1::SourceContext, decorator: Google::Apis::ServiceuserV1::SourceContext::Representation + + collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation + + end + end + + class Experimental + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :authorization, as: 'authorization', class: Google::Apis::ServiceuserV1::AuthorizationConfig, decorator: Google::Apis::ServiceuserV1::AuthorizationConfig::Representation + + end + end + + class Backend + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::BackendRule, decorator: Google::Apis::ServiceuserV1::BackendRule::Representation + + end + end + + class DocumentationRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :deprecation_description, as: 'deprecationDescription' + property :selector, as: 'selector' + end + end + + class AuthorizationConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :provider, as: 'provider' + 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::ServiceuserV1::LabelDescriptor, decorator: Google::Apis::ServiceuserV1::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' + end + end + + class SourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_name, as: 'fileName' + end + end + + 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 :target, as: 'target' + property :name, as: 'name' + 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 end end end diff --git a/generated/google/apis/serviceuser_v1/service.rb b/generated/google/apis/serviceuser_v1/service.rb index bc85510e3..e5f813ef5 100644 --- a/generated/google/apis/serviceuser_v1/service.rb +++ b/generated/google/apis/serviceuser_v1/service.rb @@ -34,94 +34,54 @@ module Google # # @see https://cloud.google.com/service-management/ class ServiceUserService < 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://serviceuser.googleapis.com/', '') 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. - # An example valid parent would be: - # - projects/my-project + # 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 [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::ServiceuserV1::ListEnabledServicesResponse] parsed result object + # @yieldparam result [Google::Apis::ServiceuserV1::SearchServicesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ServiceuserV1::ListEnabledServicesResponse] + # @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 list_project_services(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+parent}/services', options) - command.response_representation = Google::Apis::ServiceuserV1::ListEnabledServicesResponse::Representation - command.response_class = Google::Apis::ServiceuserV1::ListEnabledServicesResponse - command.params['parent'] = parent unless parent.nil? + def search_services(page_token: nil, page_size: nil, quota_user: nil, fields: 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? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -136,11 +96,11 @@ module Google # A valid path would be: # - /v1/projects/my-project/services/servicemanagement.googleapis.com:disable # @param [Google::Apis::ServiceuserV1::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 # @@ -153,60 +113,100 @@ 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(name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def disable_service(name, disable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:disable', options) command.request_representation = Google::Apis::ServiceuserV1::DisableServiceRequest::Representation command.request_object = disable_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? + command.query['fields'] = fields unless fields.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. + # 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] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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. + # An example valid parent would be: + # - projects/my-project # @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 [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::ServiceuserV1::SearchServicesResponse] parsed result object + # @yieldparam result [Google::Apis::ServiceuserV1::ListEnabledServicesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ServiceuserV1::SearchServicesResponse] + # @return [Google::Apis::ServiceuserV1::ListEnabledServicesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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 + def list_project_services(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/services', options) + command.response_representation = Google::Apis::ServiceuserV1::ListEnabledServicesResponse::Representation + command.response_class = Google::Apis::ServiceuserV1::ListEnabledServicesResponse + 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? + 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/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb index 7b4f364ec..731a3eb47 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -22,14 +22,69 @@ module Google module Apis module SheetsV4 - # The result of deleting a conditional format rule. - class DeleteConditionalFormatRuleResponse + # A single response from an update. + class Response 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 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 + + # 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 def initialize(**args) update!(**args) @@ -37,12 +92,374 @@ module Google # Update properties of this object def update!(**args) - @rule = args[:rule] if args.key?(:rule) + @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) + @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) end end - # Deletes a range of cells, shifting other cells into the deleted area. - class DeleteRangeRequest + # 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 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 + + # 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 + + # Data in the grid, as well as metadata about the dimensions. + class GridData + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @start_row = args[:start_row] if args.key?(:start_row) + @column_metadata = args[:column_metadata] if args.key?(:column_metadata) + 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 + + # 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 # A range on a sheet. @@ -71,13 +488,58 @@ module Google # @return [Google::Apis::SheetsV4::GridRange] attr_accessor :range - # 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` + # 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 + + # The value to search. + # Corresponds to the JSON property `find` # @return [String] - attr_accessor :shift_dimension + 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 def initialize(**args) update!(**args) @@ -86,7 +548,168 @@ module Google # Update properties of this object def update!(**args) @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) + @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) + 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 @@ -154,6 +777,17 @@ module Google 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] @@ -169,28 +803,17 @@ module Google # @return [Fixnum] attr_accessor :row_count - # 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 - 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) - @frozen_row_count = args[:frozen_row_count] if args.key?(:frozen_row_count) - @hide_gridlines = args[:hide_gridlines] if args.key?(:hide_gridlines) end end @@ -234,14 +857,61 @@ module Google end end - # The result of updating an embedded object's position. - class UpdateEmbeddedObjectPositionResponse + # A sheet in a spreadsheet. + class Sheet 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 + # 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 + + # The filter views in this sheet. + # Corresponds to the JSON property `filterViews` + # @return [Array] + attr_accessor :filter_views + + # The conditional format rules in this sheet. + # Corresponds to the JSON property `conditionalFormats` + # @return [Array] + attr_accessor :conditional_formats + + # The protected ranges in this sheet. + # Corresponds to the JSON property `protectedRanges` + # @return [Array] + attr_accessor :protected_ranges + + # The default filter associated with a sheet. + # Corresponds to the JSON property `basicFilter` + # @return [Google::Apis::SheetsV4::BasicFilter] + attr_accessor :basic_filter def initialize(**args) update!(**args) @@ -249,7 +919,15 @@ module Google # Update properties of this object def update!(**args) - @position = args[:position] if args.key?(:position) + @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) + @filter_views = args[:filter_views] if args.key?(:filter_views) + @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats) + @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges) + @basic_filter = args[:basic_filter] if args.key?(:basic_filter) end end @@ -278,61 +956,14 @@ module Google end end - # A sheet in a spreadsheet. - class Sheet + # The result of updating an embedded object's position. + class UpdateEmbeddedObjectPositionResponse 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 conditional format rules in this sheet. - # Corresponds to the JSON property `conditionalFormats` - # @return [Array] - attr_accessor :conditional_formats - - # The protected ranges in this sheet. - # Corresponds to the JSON property `protectedRanges` - # @return [Array] - attr_accessor :protected_ranges + # 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) @@ -340,15 +971,7 @@ module Google # 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) - @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats) - @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges) + @position = args[:position] if args.key?(:position) end end @@ -379,32 +1002,6 @@ module Google 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 - # Criteria for showing/hiding rows in a filter or filter view. class FilterCriteria include Google::Apis::Core::Hashable @@ -432,6 +1029,32 @@ module Google 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 + # The editors of a protected range. class Editors include Google::Apis::Core::Hashable @@ -470,6 +1093,16 @@ module Google 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] @@ -481,26 +1114,16 @@ module Google # @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 - - # 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) - @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) @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 @@ -570,17 +1193,6 @@ module Google class PasteDataRequest include Google::Apis::Core::Hashable - # How the data should be pasted. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # True if the data is HTML. - # Corresponds to the JSON property `html` - # @return [Boolean] - attr_accessor :html - alias_method :html?, :html - # A coordinate in a sheet. # All indexes are zero-based. # Corresponds to the JSON property `coordinate` @@ -597,17 +1209,28 @@ module Google # @return [String] attr_accessor :delimiter + # How the data should be pasted. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # True if the data is HTML. + # Corresponds to the JSON property `html` + # @return [Boolean] + attr_accessor :html + alias_method :html?, :html + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) + @type = args[:type] if args.key?(:type) + @html = args[:html] if args.key?(:html) end end @@ -615,11 +1238,6 @@ module Google class AppendDimensionRequest include Google::Apis::Core::Hashable - # The sheet to append rows or columns to. - # Corresponds to the JSON property `sheetId` - # @return [Fixnum] - attr_accessor :sheet_id - # Whether rows or columns should be appended. # Corresponds to the JSON property `dimension` # @return [String] @@ -630,15 +1248,20 @@ module Google # @return [Fixnum] attr_accessor :length + # The sheet to append rows or columns 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) - @sheet_id = args[:sheet_id] if args.key?(:sheet_id) @dimension = args[:dimension] if args.key?(:dimension) @length = args[:length] if args.key?(:length) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) end end @@ -666,6 +1289,11 @@ module Google class UpdateEmbeddedObjectPositionRequest include Google::Apis::Core::Hashable + # The position of an embedded object such as a chart. + # Corresponds to the JSON property `newPosition` + # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition] + attr_accessor :new_position + # The fields of OverlayPosition # that should be updated when setting a new position. Used only if # newPosition.overlayPosition @@ -682,20 +1310,15 @@ module Google # @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] - attr_accessor :new_position - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) - @new_position = args[:new_position] if args.key?(:new_position) end end @@ -743,6 +1366,17 @@ module Google class PieChartSpec 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 if the pie is three dimensional. + # Corresponds to the JSON property `threeDimensional` + # @return [Boolean] + attr_accessor :three_dimensional + alias_method :three_dimensional?, :three_dimensional + # The data included in a domain or series. # Corresponds to the JSON property `series` # @return [Google::Apis::SheetsV4::ChartData] @@ -758,28 +1392,17 @@ module Google # @return [Float] attr_accessor :pie_hole - # The data included in a domain or series. - # Corresponds to the JSON property `domain` - # @return [Google::Apis::SheetsV4::ChartData] - attr_accessor :domain - - # True if the pie is three dimensional. - # Corresponds to the JSON property `threeDimensional` - # @return [Boolean] - attr_accessor :three_dimensional - alias_method :three_dimensional?, :three_dimensional - def initialize(**args) update!(**args) end # 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) - @domain = args[:domain] if args.key?(:domain) - @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional) end end @@ -787,6 +1410,11 @@ module Google class UpdateFilterViewRequest include Google::Apis::Core::Hashable + # A filter view. + # Corresponds to the JSON property `filter` + # @return [Google::Apis::SheetsV4::FilterView] + attr_accessor :filter + # The fields that should be updated. At least one field must be specified. # The root `filter` is implied and should not be specified. # A single `"*"` can be used as short-hand for listing every field. @@ -794,19 +1422,14 @@ module Google # @return [String] attr_accessor :fields - # 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) - @fields = args[:fields] if args.key?(:fields) @filter = args[:filter] if args.key?(:filter) + @fields = args[:fields] if args.key?(:fields) end end @@ -814,6 +1437,11 @@ module Google class ConditionalFormatRule include Google::Apis::Core::Hashable + # A rule that may or may not match, depending on the condition. + # Corresponds to the JSON property `booleanRule` + # @return [Google::Apis::SheetsV4::BooleanRule] + attr_accessor :boolean_rule + # The ranges that will be formatted if the condition is true. # All the ranges must be on the same grid. # Corresponds to the JSON property `ranges` @@ -828,20 +1456,15 @@ module Google # @return [Google::Apis::SheetsV4::GradientRule] attr_accessor :gradient_rule - # A rule that may or may not match, depending on the condition. - # Corresponds to the JSON property `booleanRule` - # @return [Google::Apis::SheetsV4::BooleanRule] - attr_accessor :boolean_rule - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @boolean_rule = args[:boolean_rule] if args.key?(:boolean_rule) @ranges = args[:ranges] if args.key?(:ranges) @gradient_rule = args[:gradient_rule] if args.key?(:gradient_rule) - @boolean_rule = args[:boolean_rule] if args.key?(:boolean_rule) end end @@ -849,6 +1472,32 @@ module Google class CopyPasteRequest 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 `destination` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :destination + # How that data should be oriented when pasting. # Corresponds to the JSON property `pasteOrientation` # @return [String] @@ -885,72 +1534,16 @@ module Google # @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 `destination` - # @return [Google::Apis::SheetsV4::GridRange] - attr_accessor :destination - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @destination = args[:destination] if args.key?(:destination) @paste_orientation = args[:paste_orientation] if args.key?(:paste_orientation) @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 - - # A condition that can evaluate to true or false. - # BooleanConditions are used by conditional formatting, - # data validation, and the criteria in filters. - 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, - # and ConditionType.ONE_OF_LIST supports an arbitrary number of 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) - @type = args[:type] if args.key?(:type) - @values = args[:values] if args.key?(:values) end end @@ -958,72 +1551,6 @@ module Google class Request include Google::Apis::Core::Hashable - # Adds a filter view. - # Corresponds to the JSON property `addFilterView` - # @return [Google::Apis::SheetsV4::AddFilterViewRequest] - attr_accessor :add_filter_view - - # Sets a data validation rule to every cell in the range. - # To clear validation in a range, call this with no rule specified. - # Corresponds to the JSON property `setDataValidation` - # @return [Google::Apis::SheetsV4::SetDataValidationRequest] - attr_accessor :set_data_validation - - # 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. - # Corresponds to the JSON property `updateBorders` - # @return [Google::Apis::SheetsV4::UpdateBordersRequest] - attr_accessor :update_borders - - # Deletes a conditional format rule at the given index. - # All subsequent rules' indexes are decremented. - # Corresponds to the JSON property `deleteConditionalFormatRule` - # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest] - attr_accessor :delete_conditional_format_rule - - # 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. - # Corresponds to the JSON property `repeatCell` - # @return [Google::Apis::SheetsV4::RepeatCellRequest] - attr_accessor :repeat_cell - - # Clears the basic filter, if any exists on the sheet. - # Corresponds to the JSON property `clearBasicFilter` - # @return [Google::Apis::SheetsV4::ClearBasicFilterRequest] - attr_accessor :clear_basic_filter - - # Appends rows or columns to the end of a sheet. - # Corresponds to the JSON property `appendDimension` - # @return [Google::Apis::SheetsV4::AppendDimensionRequest] - attr_accessor :append_dimension - - # Updates a conditional format rule at the given index, - # or moves a conditional format rule to another index. - # Corresponds to the JSON property `updateConditionalFormatRule` - # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest] - attr_accessor :update_conditional_format_rule - - # Inserts cells into a range, shifting the existing cells over or down. - # Corresponds to the JSON property `insertRange` - # @return [Google::Apis::SheetsV4::InsertRangeRequest] - attr_accessor :insert_range - # Moves one or more rows or columns. # Corresponds to the JSON property `moveDimension` # @return [Google::Apis::SheetsV4::MoveDimensionRequest] @@ -1086,16 +1613,16 @@ module Google # @return [Google::Apis::SheetsV4::AddConditionalFormatRuleRequest] attr_accessor :add_conditional_format_rule - # Updates all cells in a range with new data. - # Corresponds to the JSON property `updateCells` - # @return [Google::Apis::SheetsV4::UpdateCellsRequest] - attr_accessor :update_cells - # Adds a named range to the spreadsheet. # Corresponds to the JSON property `addNamedRange` # @return [Google::Apis::SheetsV4::AddNamedRangeRequest] attr_accessor :add_named_range + # Updates all cells in a range with new data. + # Corresponds to the JSON property `updateCells` + # @return [Google::Apis::SheetsV4::UpdateCellsRequest] + attr_accessor :update_cells + # Updates properties of a spreadsheet. # Corresponds to the JSON property `updateSpreadsheetProperties` # @return [Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest] @@ -1150,16 +1677,16 @@ module Google # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest] attr_accessor :update_sheet_properties - # Fills in more data based on existing data. - # Corresponds to the JSON property `autoFill` - # @return [Google::Apis::SheetsV4::AutoFillRequest] - attr_accessor :auto_fill - # 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] @@ -1185,6 +1712,12 @@ module Google # @return [Google::Apis::SheetsV4::FindReplaceRequest] attr_accessor :find_replace + # 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 a chart's specifications. # (This does not move or resize a chart. To move or resize a chart, use # UpdateEmbeddedObjectPositionRequest.) @@ -1192,12 +1725,6 @@ module Google # @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 - # Adds a new sheet. # When a sheet is added at a given index, # all subsequent sheets' indexes are incremented. @@ -1214,16 +1741,16 @@ module Google # @return [Google::Apis::SheetsV4::UpdateProtectedRangeRequest] attr_accessor :update_protected_range - # Copies data from the source to the destination. - # Corresponds to the JSON property `copyPaste` - # @return [Google::Apis::SheetsV4::CopyPasteRequest] - attr_accessor :copy_paste - # Deletes a particular filter view. # Corresponds to the JSON property `deleteFilterView` # @return [Google::Apis::SheetsV4::DeleteFilterViewRequest] attr_accessor :delete_filter_view + # Copies data from the source to the destination. + # Corresponds to the JSON property `copyPaste` + # @return [Google::Apis::SheetsV4::CopyPasteRequest] + attr_accessor :copy_paste + # Inserts rows or columns in a sheet at a particular index. # Corresponds to the JSON property `insertDimension` # @return [Google::Apis::SheetsV4::InsertDimensionRequest] @@ -1239,21 +1766,78 @@ module Google # @return [Google::Apis::SheetsV4::DeleteBandingRequest] attr_accessor :delete_banding + # Adds a filter view. + # Corresponds to the JSON property `addFilterView` + # @return [Google::Apis::SheetsV4::AddFilterViewRequest] + attr_accessor :add_filter_view + + # Sets a data validation rule to every cell in the range. + # To clear validation in a range, call this with no rule specified. + # Corresponds to the JSON property `setDataValidation` + # @return [Google::Apis::SheetsV4::SetDataValidationRequest] + attr_accessor :set_data_validation + + # 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. + # Corresponds to the JSON property `updateBorders` + # @return [Google::Apis::SheetsV4::UpdateBordersRequest] + attr_accessor :update_borders + + # Deletes a conditional format rule at the given index. + # All subsequent rules' indexes are decremented. + # Corresponds to the JSON property `deleteConditionalFormatRule` + # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest] + attr_accessor :delete_conditional_format_rule + + # Clears the basic filter, if any exists on the sheet. + # Corresponds to the JSON property `clearBasicFilter` + # @return [Google::Apis::SheetsV4::ClearBasicFilterRequest] + attr_accessor :clear_basic_filter + + # 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. + # Corresponds to the JSON property `repeatCell` + # @return [Google::Apis::SheetsV4::RepeatCellRequest] + attr_accessor :repeat_cell + + # Appends rows or columns to the end of a sheet. + # Corresponds to the JSON property `appendDimension` + # @return [Google::Apis::SheetsV4::AppendDimensionRequest] + attr_accessor :append_dimension + + # Updates a conditional format rule at the given index, + # or moves a conditional format rule to another index. + # Corresponds to the JSON property `updateConditionalFormatRule` + # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest] + attr_accessor :update_conditional_format_rule + + # Inserts cells into a range, shifting the existing cells over or down. + # Corresponds to the JSON property `insertRange` + # @return [Google::Apis::SheetsV4::InsertRangeRequest] + attr_accessor :insert_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) - @set_data_validation = args[:set_data_validation] if args.key?(:set_data_validation) - @update_borders = args[:update_borders] if args.key?(:update_borders) - @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule) - @repeat_cell = args[:repeat_cell] if args.key?(:repeat_cell) - @clear_basic_filter = args[:clear_basic_filter] if args.key?(:clear_basic_filter) - @append_dimension = args[:append_dimension] if args.key?(:append_dimension) - @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) @update_banding = args[:update_banding] if args.key?(:update_banding) @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range) @@ -1266,8 +1850,8 @@ module Google @paste_data = args[:paste_data] if args.key?(:paste_data) @set_basic_filter = args[:set_basic_filter] if args.key?(:set_basic_filter) @add_conditional_format_rule = args[:add_conditional_format_rule] if args.key?(:add_conditional_format_rule) - @update_cells = args[:update_cells] if args.key?(:update_cells) @add_named_range = args[:add_named_range] if args.key?(:add_named_range) + @update_cells = args[:update_cells] if args.key?(:update_cells) @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) @@ -1278,22 +1862,61 @@ module Google @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) - @auto_fill = args[:auto_fill] if args.key?(:auto_fill) @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_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) - @copy_paste = args[:copy_paste] if args.key?(:copy_paste) @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) @delete_range = args[:delete_range] if args.key?(:delete_range) @delete_banding = args[:delete_banding] if args.key?(:delete_banding) + @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view) + @set_data_validation = args[:set_data_validation] if args.key?(:set_data_validation) + @update_borders = args[:update_borders] if args.key?(:update_borders) + @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule) + @clear_basic_filter = args[:clear_basic_filter] if args.key?(:clear_basic_filter) + @repeat_cell = args[:repeat_cell] if args.key?(:repeat_cell) + @append_dimension = args[:append_dimension] if args.key?(:append_dimension) + @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) + end + end + + # A condition that can evaluate to true or false. + # BooleanConditions are used by conditional formatting, + # data validation, and the criteria in filters. + 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, + # and ConditionType.ONE_OF_LIST supports an arbitrary number of 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) + @type = args[:type] if args.key?(:type) + @values = args[:values] if args.key?(:values) end end @@ -1322,16 +1945,6 @@ module Google class GridRange include Google::Apis::Core::Hashable - # The start column (inclusive) of the range, or not set if unbounded. - # Corresponds to the JSON property `startColumnIndex` - # @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 - # The end row (exclusive) of the range, or not set if unbounded. # Corresponds to the JSON property `endRowIndex` # @return [Fixnum] @@ -1347,17 +1960,27 @@ module Google # @return [Fixnum] attr_accessor :start_row_index + # The start column (inclusive) of the range, or not set if unbounded. + # Corresponds to the JSON property `startColumnIndex` + # @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) - @start_column_index = args[:start_column_index] if args.key?(:start_column_index) - @sheet_id = args[:sheet_id] if args.key?(:sheet_id) @end_row_index = args[:end_row_index] if args.key?(:end_row_index) @end_column_index = args[:end_column_index] if args.key?(:end_column_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 @@ -1366,11 +1989,6 @@ module Google class BasicChartSpec include Google::Apis::Core::Hashable - # The axis on the chart. - # Corresponds to the JSON property `axis` - # @return [Array] - attr_accessor :axis - # The type of the chart. # Corresponds to the JSON property `chartType` # @return [String] @@ -1401,18 +2019,23 @@ module Google # @return [Fixnum] attr_accessor :header_count + # The axis on the chart. + # Corresponds to the JSON property `axis` + # @return [Array] + attr_accessor :axis + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @axis = args[:axis] if args.key?(:axis) @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) @header_count = args[:header_count] if args.key?(:header_count) + @axis = args[:axis] if args.key?(:axis) end end @@ -1467,12 +2090,20 @@ module Google class CellData include Google::Apis::Core::Hashable - # The formatted value of the cell. - # This is the value as it's shown to the user. - # This field is read-only. - # Corresponds to the JSON property `formattedValue` - # @return [String] - attr_accessor :formatted_value + # 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] + attr_accessor :effective_value # Runs of rich text applied to subsections of the cell. Runs are only valid # on user entered strings, not formulas, bools, or numbers. @@ -1486,6 +2117,13 @@ module Google # @return [Array] attr_accessor :text_format_runs + # The formatted value of the cell. + # This is the value as it's shown to the user. + # This field is read-only. + # Corresponds to the JSON property `formattedValue` + # @return [String] + attr_accessor :formatted_value + # A hyperlink this cell points to, if any. # This field is read-only. (To set it, use a `=HYPERLINK` formula.) # Corresponds to the JSON property `hyperlink` @@ -1502,30 +2140,15 @@ module Google # @return [Google::Apis::SheetsV4::CellFormat] attr_accessor :user_entered_format - # Any note on the cell. - # Corresponds to the JSON property `note` - # @return [String] - attr_accessor :note - # The format of a cell. # Corresponds to the JSON property `effectiveFormat` # @return [Google::Apis::SheetsV4::CellFormat] attr_accessor :effective_format - # 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 - - # 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 `effectiveValue` - # @return [Google::Apis::SheetsV4::ExtendedValue] - attr_accessor :effective_value + # Any note on the cell. + # Corresponds to the JSON property `note` + # @return [String] + attr_accessor :note def initialize(**args) update!(**args) @@ -1533,16 +2156,16 @@ module Google # Update properties of this object def update!(**args) - @formatted_value = args[:formatted_value] if args.key?(:formatted_value) + @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) @hyperlink = args[:hyperlink] if args.key?(:hyperlink) @pivot_table = args[:pivot_table] if args.key?(:pivot_table) @user_entered_format = args[:user_entered_format] if args.key?(:user_entered_format) - @note = args[:note] if args.key?(:note) @effective_format = args[:effective_format] if args.key?(:effective_format) - @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value) - @data_validation = args[:data_validation] if args.key?(:data_validation) - @effective_value = args[:effective_value] if args.key?(:effective_value) + @note = args[:note] if args.key?(:note) end end @@ -1595,6 +2218,12 @@ module Google class BasicChartAxis 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 position of this axis. # Corresponds to the JSON property `position` # @return [String] @@ -1606,21 +2235,15 @@ 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @format = args[:format] if args.key?(:format) @position = args[:position] if args.key?(:position) @title = args[:title] if args.key?(:title) - @format = args[:format] if args.key?(:format) end end @@ -1629,6 +2252,11 @@ module Google class Padding include Google::Apis::Core::Hashable + # The right padding of the cell. + # Corresponds to the JSON property `right` + # @return [Fixnum] + attr_accessor :right + # The bottom padding of the cell. # Corresponds to the JSON property `bottom` # @return [Fixnum] @@ -1644,21 +2272,16 @@ module Google # @return [Fixnum] attr_accessor :left - # The right padding of the cell. - # Corresponds to the JSON property `right` - # @return [Fixnum] - attr_accessor :right - 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) - @right = args[:right] if args.key?(:right) end end @@ -1735,17 +2358,6 @@ module Google class BatchUpdateValuesResponse include Google::Apis::Core::Hashable - # 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` @@ -1768,18 +2380,29 @@ module Google # @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_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) @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) end end @@ -1834,6 +2457,11 @@ module Google class MergeCellsRequest include Google::Apis::Core::Hashable + # How the cells should be merged. + # Corresponds to the JSON property `mergeType` + # @return [String] + attr_accessor :merge_type + # A range on a sheet. # All indexes are zero-based. # Indexes are half open, e.g the start index is inclusive @@ -1860,19 +2488,14 @@ module Google # @return [Google::Apis::SheetsV4::GridRange] attr_accessor :range - # How the cells should be merged. - # Corresponds to the JSON property `mergeType` - # @return [String] - attr_accessor :merge_type - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @range = args[:range] if args.key?(:range) @merge_type = args[:merge_type] if args.key?(:merge_type) + @range = args[:range] if args.key?(:range) end end @@ -1957,12 +2580,6 @@ module Google class TextToColumnsRequest include Google::Apis::Core::Hashable - # The delimiter to use. Used only if delimiterType is - # CUSTOM. - # Corresponds to the JSON property `delimiter` - # @return [String] - attr_accessor :delimiter - # A range on a sheet. # All indexes are zero-based. # Indexes are half open, e.g the start index is inclusive @@ -1994,15 +2611,21 @@ module Google # @return [String] attr_accessor :delimiter_type + # The delimiter to use. Used only if delimiterType is + # CUSTOM. + # 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) - @delimiter = args[:delimiter] if args.key?(:delimiter) @source = args[:source] if args.key?(:source) @delimiter_type = args[:delimiter_type] if args.key?(:delimiter_type) + @delimiter = args[:delimiter] if args.key?(:delimiter) end end @@ -2109,44 +2732,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 @@ -2186,6 +2771,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 @@ -2283,25 +2906,34 @@ module Google class SheetProperties include Google::Apis::Core::Hashable + # True if the sheet is an RTL sheet instead of an LTR sheet. + # Corresponds to the JSON property `rightToLeft` + # @return [Boolean] + attr_accessor :right_to_left + alias_method :right_to_left?, :right_to_left + + # True if the sheet is hidden in the UI, false if it's visible. + # Corresponds to the JSON property `hidden` + # @return [Boolean] + attr_accessor :hidden + alias_method :hidden?, :hidden + + # Properties of a grid. + # Corresponds to the JSON property `gridProperties` + # @return [Google::Apis::SheetsV4::GridProperties] + attr_accessor :grid_properties + + # The type of sheet. Defaults to GRID. + # This field cannot be changed once set. + # Corresponds to the JSON property `sheetType` + # @return [String] + attr_accessor :sheet_type + # The name of the sheet. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title - # The index of the sheet within the spreadsheet. - # When adding or updating sheet properties, if this field - # is excluded then the sheet will be added or moved to the end - # of the sheet list. When updating sheet indices or inserting - # sheets, movement is considered in "before the move" indexes. - # For example, if there were 3 sheets (S1, S2, S3) in order to - # move S1 ahead of S2 the index would have to be set to 2. A sheet - # index update request will be ignored if the requested index is - # identical to the sheets current index or if the requested new - # index is equal to the current sheet index + 1. - # Corresponds to the JSON property `index` - # @return [Fixnum] - attr_accessor :index - # 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 @@ -2405,49 +3037,40 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :tab_color + # The index of the sheet within the spreadsheet. + # When adding or updating sheet properties, if this field + # is excluded then the sheet will be added or moved to the end + # of the sheet list. When updating sheet indices or inserting + # sheets, movement is considered in "before the move" indexes. + # For example, if there were 3 sheets (S1, S2, S3) in order to + # move S1 ahead of S2 the index would have to be set to 2. A sheet + # index update request will be ignored if the requested index is + # identical to the sheets current index or if the requested new + # index is equal to the current sheet index + 1. + # Corresponds to the JSON property `index` + # @return [Fixnum] + attr_accessor :index + # The ID of the sheet. Must be non-negative. # This field cannot be changed once set. # Corresponds to the JSON property `sheetId` # @return [Fixnum] attr_accessor :sheet_id - # True if the sheet is an RTL sheet instead of an LTR sheet. - # Corresponds to the JSON property `rightToLeft` - # @return [Boolean] - attr_accessor :right_to_left - alias_method :right_to_left?, :right_to_left - - # True if the sheet is hidden in the UI, false if it's visible. - # Corresponds to the JSON property `hidden` - # @return [Boolean] - attr_accessor :hidden - alias_method :hidden?, :hidden - - # The type of sheet. Defaults to GRID. - # This field cannot be changed once set. - # Corresponds to the JSON property `sheetType` - # @return [String] - attr_accessor :sheet_type - - # Properties of a grid. - # Corresponds to the JSON property `gridProperties` - # @return [Google::Apis::SheetsV4::GridProperties] - attr_accessor :grid_properties - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @title = args[:title] if args.key?(:title) - @index = args[:index] if args.key?(:index) - @tab_color = args[:tab_color] if args.key?(:tab_color) - @sheet_id = args[:sheet_id] if args.key?(:sheet_id) @right_to_left = args[:right_to_left] if args.key?(:right_to_left) @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) + @sheet_type = args[:sheet_type] if args.key?(:sheet_type) + @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) end end @@ -2492,6 +3115,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 @@ -2523,23 +3154,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 @@ -2547,18 +3170,6 @@ module Google class FilterView include Google::Apis::Core::Hashable - # 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 @@ -2585,6 +3196,18 @@ 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 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` @@ -2609,9 +3232,9 @@ module Google # Update properties of this object def update!(**args) + @range = args[:range] if args.key?(:range) @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) @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) @@ -3057,6 +3680,25 @@ module Google end end + # The result of adding a new protected range. + class AddProtectedRangeResponse + include Google::Apis::Core::Hashable + + # 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) + end + end + # The default filter associated with a sheet. class BasicFilter include Google::Apis::Core::Hashable @@ -3112,29 +3754,20 @@ module Google end end - # The result of adding a new protected range. - class AddProtectedRangeResponse - include Google::Apis::Core::Hashable - - # 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) - end - end - # The response when updating a range of values in a spreadsheet. class UpdateValuesResponse include Google::Apis::Core::Hashable + # The range (in A1 notation) that updates were applied to. + # Corresponds to the JSON property `updatedRange` + # @return [String] + attr_accessor :updated_range + + # The number of cells updated. + # Corresponds to the JSON property `updatedCells` + # @return [Fixnum] + attr_accessor :updated_cells + # Data within a range of the spreadsheet. # Corresponds to the JSON property `updatedData` # @return [Google::Apis::SheetsV4::ValueRange] @@ -3155,54 +3788,18 @@ module Google # @return [String] attr_accessor :spreadsheet_id - # The range (in A1 notation) that updates were applied to. - # Corresponds to the JSON property `updatedRange` - # @return [String] - attr_accessor :updated_range - - # The number of cells updated. - # Corresponds to the JSON property `updatedCells` - # @return [Fixnum] - attr_accessor :updated_cells - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @updated_range = args[:updated_range] if args.key?(:updated_range) + @updated_cells = args[:updated_cells] if args.key?(:updated_cells) @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) - @updated_cells = args[:updated_cells] if args.key?(:updated_cells) - end - end - - # An error in a cell. - 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 - - 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) end end @@ -3253,6 +3850,32 @@ module Google end end + # An error in a cell. + 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 + + 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) + end + end + # The request to copy a sheet across spreadsheets. class CopySheetToAnotherSpreadsheetRequest include Google::Apis::Core::Hashable @@ -3419,6 +4042,13 @@ module Google class GradientRule include Google::Apis::Core::Hashable + # 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 `midpoint` + # @return [Google::Apis::SheetsV4::InterpolationPoint] + attr_accessor :midpoint + # A single interpolation point on a gradient conditional format. # These pin the gradient color scale according to the color, # type and value chosen. @@ -3433,22 +4063,15 @@ module Google # @return [Google::Apis::SheetsV4::InterpolationPoint] 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 `midpoint` - # @return [Google::Apis::SheetsV4::InterpolationPoint] - attr_accessor :midpoint - def initialize(**args) update!(**args) end # 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) - @midpoint = args[:midpoint] if args.key?(:midpoint) end end @@ -3490,6 +4113,18 @@ module Google 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 @@ -3593,46 +4228,15 @@ 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) - end - end - - # Deletes the embedded object with the given ID. - class DeleteEmbeddedObjectRequest - include Google::Apis::Core::Hashable - - # The ID of the embedded object to delete. - # 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) + @color = args[:color] if args.key?(:color) end end @@ -3640,11 +4244,6 @@ module Google class FindReplaceResponse include Google::Apis::Core::Hashable - # The number of non-formula cells changed. - # Corresponds to the JSON property `valuesChanged` - # @return [Fixnum] - attr_accessor :values_changed - # The number of occurrences (possibly multiple within a cell) changed. # For example, if replacing `"e"` with `"o"` in `"Google Sheets"`, this would # be `"3"` because `"Google Sheets"` -> `"Googlo Shoots"`. @@ -3667,28 +4266,33 @@ module Google # @return [Fixnum] attr_accessor :formulas_changed + # The number of non-formula cells changed. + # Corresponds to the JSON property `valuesChanged` + # @return [Fixnum] + attr_accessor :values_changed + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @formulas_changed = args[:formulas_changed] if args.key?(:formulas_changed) + @values_changed = args[:values_changed] if args.key?(:values_changed) end end - # Deletes the requested sheet. - class DeleteSheetRequest + # Deletes the embedded object with the given ID. + class DeleteEmbeddedObjectRequest include Google::Apis::Core::Hashable - # The ID of the sheet to delete. - # Corresponds to the JSON property `sheetId` + # The ID of the embedded object to delete. + # Corresponds to the JSON property `objectId` # @return [Fixnum] - attr_accessor :sheet_id + attr_accessor :object_id_prop def initialize(**args) update!(**args) @@ -3696,7 +4300,7 @@ module Google # Update properties of this object def update!(**args) - @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) end end @@ -3719,10 +4323,34 @@ module Google end end + # Deletes the requested sheet. + class DeleteSheetRequest + include Google::Apis::Core::Hashable + + # The ID of the sheet to delete. + # 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) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + end + end + # The result of updating a conditional format rule. class UpdateConditionalFormatRuleResponse include Google::Apis::Core::Hashable + # A rule describing a conditional format. + # Corresponds to the JSON property `oldRule` + # @return [Google::Apis::SheetsV4::ConditionalFormatRule] + attr_accessor :old_rule + # The index of the new rule. # Corresponds to the JSON property `newIndex` # @return [Fixnum] @@ -3739,10 +4367,45 @@ module Google # @return [Google::Apis::SheetsV4::ConditionalFormatRule] attr_accessor :new_rule - # A rule describing a conditional format. - # Corresponds to the JSON property `oldRule` - # @return [Google::Apis::SheetsV4::ConditionalFormatRule] - attr_accessor :old_rule + def initialize(**args) + update!(**args) + end + + # Update properties of this object + 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) + end + end + + # Duplicates the contents of a sheet. + 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] + attr_accessor :source_sheet_id + + # If set, the ID of the new sheet. If not set, an ID is chosen. + # If set, the ID must not conflict with any existing sheet ID. + # If set, it must be non-negative. + # Corresponds to the JSON property `newSheetId` + # @return [Fixnum] + attr_accessor :new_sheet_id def initialize(**args) update!(**args) @@ -3750,10 +4413,10 @@ module Google # Update properties of this object def update!(**args) - @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_rule = args[:old_rule] if args.key?(:old_rule) + @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) end end @@ -3792,55 +4455,10 @@ module Google end end - # Duplicates the contents of a sheet. - class DuplicateSheetRequest - include Google::Apis::Core::Hashable - - # The sheet to duplicate. - # Corresponds to the JSON property `sourceSheetId` - # @return [Fixnum] - attr_accessor :source_sheet_id - - # If set, the ID of the new sheet. If not set, an ID is chosen. - # If set, the ID must not conflict with any existing sheet ID. - # If set, it must be non-negative. - # Corresponds to the JSON property `newSheetId` - # @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) - @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 - # The kinds of value that a cell in a spreadsheet can have. 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 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 @@ -3867,17 +4485,114 @@ 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) @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) + 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 + + # Resource that represents a spreadsheet. + class Spreadsheet + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @spreadsheet_url = args[:spreadsheet_url] if args.key?(:spreadsheet_url) + @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) + end + end + + # The response when updating a range of values in a spreadsheet. + class BatchClearValuesResponse + include Google::Apis::Core::Hashable + + # The ranges that were cleared, in A1 notation. + # (If the requests were for an unbounded range or a ranger larger + # than the bounds of the sheet, this will be the actual ranges + # that were cleared, bounded to the sheet's limits.) + # Corresponds to the JSON property `clearedRanges` + # @return [Array] + attr_accessor :cleared_ranges + + # 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_ranges = args[:cleared_ranges] if args.key?(:cleared_ranges) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) end end @@ -3885,6 +4600,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 `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 + # A range on a sheet. # All indexes are zero-based. # Indexes are half open, e.g the start index is inclusive @@ -3916,138 +4661,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) - @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 - - # The response when updating a range of values in a spreadsheet. - class BatchClearValuesResponse - include Google::Apis::Core::Hashable - - # The ranges that were cleared, in A1 notation. - # (If the requests were for an unbounded range or a ranger larger - # than the bounds of the sheet, this will be the actual ranges - # that were cleared, bounded to the sheet's limits.) - # Corresponds to the JSON property `clearedRanges` - # @return [Array] - attr_accessor :cleared_ranges - - # 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_ranges = args[:cleared_ranges] if args.key?(:cleared_ranges) - @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) - 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) + @range = args[:range] if args.key?(:range) + @banded_range_id = args[:banded_range_id] if args.key?(:banded_range_id) end end @@ -4090,6 +4713,12 @@ module Google attr_accessor :underline alias_method :underline?, :underline + # True if the text is bold. + # Corresponds to the JSON property `bold` + # @return [Boolean] + attr_accessor :bold + alias_method :bold?, :bold + # 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 @@ -4193,12 +4822,6 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :foreground_color - # True if the text is bold. - # Corresponds to the JSON property `bold` - # @return [Boolean] - attr_accessor :bold - alias_method :bold?, :bold - # The font family. # Corresponds to the JSON property `fontFamily` # @return [String] @@ -4228,8 +4851,8 @@ module Google # Update properties of this object def update!(**args) @underline = args[:underline] if args.key?(:underline) - @foreground_color = args[:foreground_color] if args.key?(:foreground_color) @bold = args[:bold] if args.key?(:bold) + @foreground_color = args[:foreground_color] if args.key?(:foreground_color) @font_family = args[:font_family] if args.key?(:font_family) @italic = args[:italic] if args.key?(:italic) @strikethrough = args[:strikethrough] if args.key?(:strikethrough) @@ -4303,26 +4926,56 @@ module Google 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 + # Properties of a spreadsheet. class SpreadsheetProperties include Google::Apis::Core::Hashable - # 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 - # The title of the spreadsheet. # Corresponds to the JSON property `title` # @return [String] @@ -4344,64 +4997,34 @@ module Google # @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) - @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) @title = args[:title] if args.key?(:title) @time_zone = args[:time_zone] if args.key?(:time_zone) @locale = args[:locale] if args.key?(:locale) - 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 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 - - 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) - @offset_y_pixels = args[:offset_y_pixels] if args.key?(:offset_y_pixels) - @height_pixels = args[:height_pixels] if args.key?(:height_pixels) + @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 @@ -4532,11 +5155,6 @@ module Google 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. @@ -4544,68 +5162,19 @@ module Google # @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) - @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 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @response_value_render_option = args[:response_value_render_option] if args.key?(:response_value_render_option) + @properties = args[:properties] if args.key?(:properties) end end @@ -4706,10 +5275,69 @@ module Google 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 + # 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` @@ -4723,61 +5351,15 @@ module Google attr_accessor :hidden_by_user alias_method :hidden_by_user?, :hidden_by_user - # 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 - 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) - @pixel_size = args[:pixel_size] if args.key?(:pixel_size) - 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 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 - - # The dimension of the span. - # Corresponds to the JSON property `dimension` - # @return [String] - attr_accessor :dimension - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @dimension = args[:dimension] if args.key?(:dimension) end end @@ -4833,10 +5415,57 @@ module Google 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 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 + + # The dimension of the span. + # Corresponds to the JSON property `dimension` + # @return [String] + attr_accessor :dimension + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @dimension = args[:dimension] if args.key?(:dimension) + 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 + # A range on a sheet. # All indexes are zero-based. # Indexes are half open, e.g the start index is inclusive @@ -4869,11 +5498,41 @@ module Google # @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) + @destination = args[:destination] if args.key?(:destination) + @source = args[:source] if args.key?(:source) + @paste_type = args[:paste_type] if args.key?(:paste_type) + end + end + + # The borders of the cell. + class Borders + include Google::Apis::Core::Hashable + + # 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 `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 def initialize(**args) update!(**args) @@ -4881,9 +5540,10 @@ 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) - @destination = args[:destination] if args.key?(:destination) + @top = args[:top] if args.key?(:top) + @left = args[:left] if args.key?(:left) + @right = args[:right] if args.key?(:right) + @bottom = args[:bottom] if args.key?(:bottom) end end @@ -4931,43 +5591,6 @@ module Google end end - # The borders of the cell. - class Borders - 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 `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 `right` - # @return [Google::Apis::SheetsV4::Border] - attr_accessor :right - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bottom = args[:bottom] if args.key?(:bottom) - @top = args[:top] if args.key?(:top) - @left = args[:left] if args.key?(:left) - @right = args[:right] if args.key?(:right) - end - end - # Automatically resizes one or more dimensions based on the contents # of the cells in that dimension. class AutoResizeDimensionsRequest @@ -5004,6 +5627,31 @@ module Google class UpdateBordersRequest include Google::Apis::Core::Hashable + # 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 + + # 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 @@ -5035,44 +5683,19 @@ module Google # @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 - - # 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @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) end end @@ -5080,21 +5703,31 @@ module Google class CellFormat include Google::Apis::Core::Hashable + # The wrap strategy for the value in the cell. + # Corresponds to the JSON property `wrapStrategy` + # @return [String] + attr_accessor :wrap_strategy + + # The rotation applied to text in a cell. + # Corresponds to the JSON property `textRotation` + # @return [Google::Apis::SheetsV4::TextRotation] + attr_accessor :text_rotation + # 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 + # 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 format of a run of text in a cell. # Absent values indicate that the field isn't specified. # Corresponds to the JSON property `textFormat` @@ -5204,36 +5837,26 @@ module Google # @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 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 + # The borders of the cell. + # Corresponds to the JSON property `borders` + # @return [Google::Apis::SheetsV4::Borders] + attr_accessor :borders def initialize(**args) update!(**args) @@ -5241,17 +5864,17 @@ module Google # Update properties of this object def update!(**args) + @wrap_strategy = args[:wrap_strategy] if args.key?(:wrap_strategy) + @text_rotation = args[:text_rotation] if args.key?(:text_rotation) @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) + @hyperlink_display_type = args[:hyperlink_display_type] if args.key?(:hyperlink_display_type) @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) + @padding = args[:padding] if args.key?(:padding) @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) + @borders = args[:borders] if args.key?(:borders) end end @@ -5259,11 +5882,6 @@ module Google 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 @@ -5272,14 +5890,19 @@ module Google # @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) - @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) @cleared_range = args[:cleared_range] if args.key?(:cleared_range) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) end end @@ -5566,6 +6189,16 @@ module Google 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 @@ -5585,27 +6218,17 @@ module Google # @return [Array] attr_accessor :value_metadata - # 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 - 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) - @sort_order = args[:sort_order] if args.key?(:sort_order) - @value_bucket = args[:value_bucket] if args.key?(:value_bucket) end end @@ -5613,6 +6236,37 @@ module Google 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 @@ -5639,49 +6293,18 @@ module Google # @return [Google::Apis::SheetsV4::GridRange] attr_accessor :source - # 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 - - # 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @source = args[:source] if args.key?(:source) - @columns = args[:columns] if args.key?(:columns) - @values = args[:values] if args.key?(:values) @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 @@ -5717,57 +6340,6 @@ module Google 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 new cells after the last row with data in a sheet, # inserting new rows into the sheet if necessary. class AppendCellsRequest @@ -5803,6 +6375,57 @@ module Google 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 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @range = args[:range] if args.key?(:range) + @major_dimension = args[:major_dimension] if args.key?(:major_dimension) + @values = args[:values] if args.key?(:values) + end + end + # Adds a new banded range to the spreadsheet. class AddBandingRequest include Google::Apis::Core::Hashable @@ -5821,629 +6444,6 @@ module Google @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 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 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 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) - @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule) - @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position) - @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 character index where this run starts. - # Corresponds to the JSON property `startIndex` - # @return [Fixnum] - attr_accessor :start_index - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @start_index = args[:start_index] if args.key?(:start_index) - @format = args[:format] if args.key?(:format) - end - end - - # A chart embedded in a sheet. - class EmbeddedChart - 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @position = args[:position] if args.key?(:position) - @spec = args[:spec] if args.key?(:spec) - @chart_id = args[:chart_id] if args.key?(:chart_id) - 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 - - # Data in the grid, as well as metadata about the dimensions. - class GridData - include Google::Apis::Core::Hashable - - # 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 - - # The first row this GridData refers to, zero-based. - # Corresponds to the JSON property `startRow` - # @return [Fixnum] - attr_accessor :start_row - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @start_row = args[:start_row] if args.key?(:start_row) - end - end - - # A border along a cell. - class Border - 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 `color` - # @return [Google::Apis::SheetsV4::Color] - attr_accessor :color - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @color = args[:color] if args.key?(:color) - @width = args[:width] if args.key?(:width) - @style = args[:style] if args.key?(:style) - 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 - - # 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 - - # 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 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 is case sensitive. - # 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) - @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) - @replacement = args[:replacement] if args.key?(:replacement) - @range = args[:range] if args.key?(:range) - @sheet_id = args[:sheet_id] if args.key?(:sheet_id) - @all_sheets = args[:all_sheets] if args.key?(:all_sheets) - @match_case = args[:match_case] if args.key?(:match_case) - 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 end end end diff --git a/generated/google/apis/sheets_v4/representations.rb b/generated/google/apis/sheets_v4/representations.rb index 78dc60394..3e16c1213 100644 --- a/generated/google/apis/sheets_v4/representations.rb +++ b/generated/google/apis/sheets_v4/representations.rb @@ -22,6 +22,78 @@ module Google module Apis module SheetsV4 + 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 GridData + 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 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 DeleteConditionalFormatRuleResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,7 +130,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class UpdateEmbeddedObjectPositionResponse + class Sheet class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -70,7 +142,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Sheet + class UpdateEmbeddedObjectPositionResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -82,13 +154,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class PivotGroupValueMetadata + class FilterCriteria class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class FilterCriteria + class PivotGroupValueMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -172,13 +244,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BooleanCondition + class Request class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Request + class BooleanCondition class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -316,7 +388,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 @@ -328,7 +400,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 @@ -382,13 +454,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BasicFilter + class AddProtectedRangeResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AddProtectedRangeResponse + class BasicFilter class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -400,13 +472,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ErrorValue + class PivotValue class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class PivotValue + class ErrorValue class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -466,19 +538,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DeleteEmbeddedObjectRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class FindReplaceResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class DeleteSheetRequest + class DeleteEmbeddedObjectRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -490,13 +556,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class UpdateConditionalFormatRuleResponse + class DeleteSheetRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ConditionValue + class UpdateConditionalFormatRuleResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -508,19 +574,19 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ConditionValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ExtendedValue class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class BandedRange - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BatchClearValuesResponse + class AddChartRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -532,7 +598,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AddChartRequest + class BatchClearValuesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BandedRange class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -568,13 +640,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SpreadsheetProperties + class OverlayPosition class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class OverlayPosition + class SpreadsheetProperties class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -604,13 +676,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BatchUpdateValuesRequest + class ProtectedRange class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ProtectedRange + class BatchUpdateValuesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -622,13 +694,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DimensionRange + class NamedRange class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class NamedRange + class DimensionRange class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -640,13 +712,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BasicChartSeries + class Borders class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Borders + class BasicChartSeries class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -736,13 +808,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ValueRange + class AppendCellsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AppendCellsRequest + class ValueRange class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -755,75 +827,148 @@ module Google end class Response - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetResponse, decorator: Google::Apis::SheetsV4::AddSheetResponse::Representation - include Google::Apis::Core::JsonObjectSupport + 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 + + 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 - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :format, as: 'format', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation - include Google::Apis::Core::JsonObjectSupport + property :start_index, as: 'startIndex' + end end class EmbeddedChart - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + property :spec, as: 'spec', class: Google::Apis::SheetsV4::ChartSpec, decorator: Google::Apis::SheetsV4::ChartSpec::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 GridData - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :start_column, as: 'startColumn' + collection :row_metadata, as: 'rowMetadata', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation - include Google::Apis::Core::JsonObjectSupport + collection :row_data, as: 'rowData', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation + + property :start_row, as: 'startRow' + collection :column_metadata, as: 'columnMetadata', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation + + 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 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 :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 :find, as: 'find' + property :search_by_regex, as: 'searchByRegex' + property :replacement, as: 'replacement' + 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 + + collection :rows, as: 'rows', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation + + property :fields, as: 'fields' + end end class DeleteConditionalFormatRuleResponse @@ -837,9 +982,9 @@ module Google 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 - property :shift_dimension, as: 'shiftDimension' end end @@ -864,11 +1009,11 @@ module Google 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' - property :frozen_row_count, as: 'frozenRowCount' - property :hide_gridlines, as: 'hideGridlines' end end @@ -880,10 +1025,26 @@ module Google end end - class UpdateEmbeddedObjectPositionResponse + class Sheet # @private class Representation < Google::Apis::Core::JsonRepresentation - property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::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 + + collection :filter_views, as: 'filterViews', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation + + collection :conditional_formats, as: 'conditionalFormats', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation + + collection :protected_ranges, as: 'protectedRanges', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation + + property :basic_filter, as: 'basicFilter', class: Google::Apis::SheetsV4::BasicFilter, decorator: Google::Apis::SheetsV4::BasicFilter::Representation end end @@ -896,26 +1057,10 @@ module Google end end - class Sheet + class UpdateEmbeddedObjectPositionResponse # @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 :conditional_formats, as: 'conditionalFormats', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation - - collection :protected_ranges, as: 'protectedRanges', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation + property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation end end @@ -930,15 +1075,6 @@ module Google 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 FilterCriteria # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -948,6 +1084,15 @@ module Google 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 Editors # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -960,11 +1105,11 @@ module Google class UpdateConditionalFormatRuleRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :index, as: 'index' - property :sheet_id, as: 'sheetId' property :new_index, as: 'newIndex' property :rule, as: 'rule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation + property :index, as: 'index' + property :sheet_id, as: 'sheetId' end end @@ -990,21 +1135,21 @@ module Google 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 :type, as: 'type' + property :html, as: 'html' end end class AppendDimensionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :sheet_id, as: 'sheetId' property :dimension, as: 'dimension' property :length, as: 'length' + property :sheet_id, as: 'sheetId' end end @@ -1019,10 +1164,10 @@ module Google class UpdateEmbeddedObjectPositionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :fields, as: 'fields' - 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 @@ -1037,79 +1182,52 @@ 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 :domain, as: 'domain', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation - - property :three_dimensional, as: 'threeDimensional' end end class UpdateFilterViewRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :fields, as: 'fields' property :filter, as: 'filter', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation + property :fields, as: 'fields' end end class ConditionalFormatRule # @private class Representation < Google::Apis::Core::JsonRepresentation + property :boolean_rule, as: 'booleanRule', class: Google::Apis::SheetsV4::BooleanRule, decorator: Google::Apis::SheetsV4::BooleanRule::Representation + collection :ranges, as: 'ranges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation property :gradient_rule, as: 'gradientRule', class: Google::Apis::SheetsV4::GradientRule, decorator: Google::Apis::SheetsV4::GradientRule::Representation - property :boolean_rule, as: 'booleanRule', class: Google::Apis::SheetsV4::BooleanRule, decorator: Google::Apis::SheetsV4::BooleanRule::Representation - end end class CopyPasteRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :destination, as: 'destination', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + property :paste_orientation, as: 'pasteOrientation' 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 - - 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 - end end class Request # @private class Representation < Google::Apis::Core::JsonRepresentation - property :add_filter_view, as: 'addFilterView', class: Google::Apis::SheetsV4::AddFilterViewRequest, decorator: Google::Apis::SheetsV4::AddFilterViewRequest::Representation - - property :set_data_validation, as: 'setDataValidation', class: Google::Apis::SheetsV4::SetDataValidationRequest, decorator: Google::Apis::SheetsV4::SetDataValidationRequest::Representation - - property :update_borders, as: 'updateBorders', class: Google::Apis::SheetsV4::UpdateBordersRequest, decorator: Google::Apis::SheetsV4::UpdateBordersRequest::Representation - - property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest::Representation - - property :repeat_cell, as: 'repeatCell', class: Google::Apis::SheetsV4::RepeatCellRequest, decorator: Google::Apis::SheetsV4::RepeatCellRequest::Representation - - property :clear_basic_filter, as: 'clearBasicFilter', class: Google::Apis::SheetsV4::ClearBasicFilterRequest, decorator: Google::Apis::SheetsV4::ClearBasicFilterRequest::Representation - - property :append_dimension, as: 'appendDimension', class: Google::Apis::SheetsV4::AppendDimensionRequest, decorator: Google::Apis::SheetsV4::AppendDimensionRequest::Representation - - property :update_conditional_format_rule, as: 'updateConditionalFormatRule', class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest::Representation - - property :insert_range, as: 'insertRange', class: Google::Apis::SheetsV4::InsertRangeRequest, decorator: Google::Apis::SheetsV4::InsertRangeRequest::Representation - 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 @@ -1134,10 +1252,10 @@ module Google property :add_conditional_format_rule, as: 'addConditionalFormatRule', class: Google::Apis::SheetsV4::AddConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::AddConditionalFormatRuleRequest::Representation - property :update_cells, as: 'updateCells', class: Google::Apis::SheetsV4::UpdateCellsRequest, decorator: Google::Apis::SheetsV4::UpdateCellsRequest::Representation - property :add_named_range, as: 'addNamedRange', class: Google::Apis::SheetsV4::AddNamedRangeRequest, decorator: Google::Apis::SheetsV4::AddNamedRangeRequest::Representation + property :update_cells, as: 'updateCells', class: Google::Apis::SheetsV4::UpdateCellsRequest, decorator: Google::Apis::SheetsV4::UpdateCellsRequest::Representation + property :update_spreadsheet_properties, as: 'updateSpreadsheetProperties', class: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest::Representation property :delete_embedded_object, as: 'deleteEmbeddedObject', class: Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest, decorator: Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest::Representation @@ -1158,10 +1276,10 @@ module Google property :update_sheet_properties, as: 'updateSheetProperties', class: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest::Representation - property :auto_fill, as: 'autoFill', class: Google::Apis::SheetsV4::AutoFillRequest, decorator: Google::Apis::SheetsV4::AutoFillRequest::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 @@ -1172,43 +1290,68 @@ 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_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 :copy_paste, as: 'copyPaste', class: Google::Apis::SheetsV4::CopyPasteRequest, decorator: Google::Apis::SheetsV4::CopyPasteRequest::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 + property :insert_dimension, as: 'insertDimension', class: Google::Apis::SheetsV4::InsertDimensionRequest, decorator: Google::Apis::SheetsV4::InsertDimensionRequest::Representation property :delete_range, as: 'deleteRange', class: Google::Apis::SheetsV4::DeleteRangeRequest, decorator: Google::Apis::SheetsV4::DeleteRangeRequest::Representation property :delete_banding, as: 'deleteBanding', class: Google::Apis::SheetsV4::DeleteBandingRequest, decorator: Google::Apis::SheetsV4::DeleteBandingRequest::Representation + property :add_filter_view, as: 'addFilterView', class: Google::Apis::SheetsV4::AddFilterViewRequest, decorator: Google::Apis::SheetsV4::AddFilterViewRequest::Representation + + property :set_data_validation, as: 'setDataValidation', class: Google::Apis::SheetsV4::SetDataValidationRequest, decorator: Google::Apis::SheetsV4::SetDataValidationRequest::Representation + + property :update_borders, as: 'updateBorders', class: Google::Apis::SheetsV4::UpdateBordersRequest, decorator: Google::Apis::SheetsV4::UpdateBordersRequest::Representation + + property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest::Representation + + property :clear_basic_filter, as: 'clearBasicFilter', class: Google::Apis::SheetsV4::ClearBasicFilterRequest, decorator: Google::Apis::SheetsV4::ClearBasicFilterRequest::Representation + + property :repeat_cell, as: 'repeatCell', class: Google::Apis::SheetsV4::RepeatCellRequest, decorator: Google::Apis::SheetsV4::RepeatCellRequest::Representation + + property :append_dimension, as: 'appendDimension', class: Google::Apis::SheetsV4::AppendDimensionRequest, decorator: Google::Apis::SheetsV4::AppendDimensionRequest::Representation + + property :update_conditional_format_rule, as: 'updateConditionalFormatRule', class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest::Representation + + property :insert_range, as: 'insertRange', class: Google::Apis::SheetsV4::InsertRangeRequest, decorator: Google::Apis::SheetsV4::InsertRangeRequest::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 + end end class GridRange # @private class Representation < Google::Apis::Core::JsonRepresentation - property :start_column_index, as: 'startColumnIndex' - property :sheet_id, as: 'sheetId' property :end_row_index, as: 'endRowIndex' property :end_column_index, as: 'endColumnIndex' 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 :axis, as: 'axis', class: Google::Apis::SheetsV4::BasicChartAxis, decorator: Google::Apis::SheetsV4::BasicChartAxis::Representation - property :chart_type, as: 'chartType' collection :series, as: 'series', class: Google::Apis::SheetsV4::BasicChartSeries, decorator: Google::Apis::SheetsV4::BasicChartSeries::Representation @@ -1216,6 +1359,8 @@ module Google collection :domains, as: 'domains', class: Google::Apis::SheetsV4::BasicChartDomain, decorator: Google::Apis::SheetsV4::BasicChartDomain::Representation property :header_count, as: 'headerCount' + collection :axis, as: 'axis', class: Google::Apis::SheetsV4::BasicChartAxis, decorator: Google::Apis::SheetsV4::BasicChartAxis::Representation + end end @@ -1232,23 +1377,23 @@ module Google class CellData # @private class Representation < Google::Apis::Core::JsonRepresentation - property :formatted_value, as: 'formattedValue' + 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 + property :formatted_value, as: 'formattedValue' property :hyperlink, as: 'hyperlink' property :pivot_table, as: 'pivotTable', class: Google::Apis::SheetsV4::PivotTable, decorator: Google::Apis::SheetsV4::PivotTable::Representation 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 :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 :effective_value, as: 'effectiveValue', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation - + property :note, as: 'note' end end @@ -1266,20 +1411,20 @@ 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 :position, as: 'position' + property :title, as: 'title' end end class Padding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :right, as: 'right' property :bottom, as: 'bottom' property :top, as: 'top' property :left, as: 'left' - property :right, as: 'right' end end @@ -1310,13 +1455,13 @@ module Google class BatchUpdateValuesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - 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' 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 + end end @@ -1333,9 +1478,9 @@ module Google class MergeCellsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :merge_type, as: 'mergeType' property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation - property :merge_type, as: 'mergeType' end end @@ -1373,10 +1518,10 @@ module Google class TextToColumnsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :delimiter, as: 'delimiter' property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation property :delimiter_type, as: 'delimiterType' + property :delimiter, as: 'delimiter' end end @@ -1415,10 +1560,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 @@ -1430,11 +1576,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 @@ -1471,16 +1616,16 @@ module Google class SheetProperties # @private class Representation < Google::Apis::Core::JsonRepresentation - property :title, as: 'title' - property :index, as: 'index' - property :tab_color, as: 'tabColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation - - property :sheet_id, as: 'sheetId' property :right_to_left, as: 'rightToLeft' property :hidden, as: 'hidden' - property :sheet_type, as: 'sheetType' property :grid_properties, as: 'gridProperties', class: Google::Apis::SheetsV4::GridProperties, decorator: Google::Apis::SheetsV4::GridProperties::Representation + property :sheet_type, as: 'sheetType' + property :title, as: 'title' + property :tab_color, as: 'tabColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + property :index, as: 'index' + property :sheet_id, as: 'sheetId' end end @@ -1498,21 +1643,21 @@ module Google 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 FilterView # @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 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 property :named_range_id, as: 'namedRangeId' @@ -1534,6 +1679,14 @@ module Google 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 @@ -1546,32 +1699,16 @@ module Google 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 UpdateValuesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :updated_range, as: 'updatedRange' + property :updated_cells, as: 'updatedCells' 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' - property :updated_cells, as: 'updatedCells' - end - end - - class ErrorValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :message, as: 'message' end end @@ -1585,6 +1722,14 @@ module Google end end + class ErrorValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :message, as: 'message' + end + end + class CopySheetToAnotherSpreadsheetRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1632,12 +1777,12 @@ module Google class GradientRule # @private 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 - property :midpoint, as: 'midpoint', class: Google::Apis::SheetsV4::InterpolationPoint, decorator: Google::Apis::SheetsV4::InterpolationPoint::Representation - end end @@ -1658,10 +1803,21 @@ module Google class InterpolationPoint # @private class Representation < Google::Apis::Core::JsonRepresentation - property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation - property :type, as: 'type' property :value, as: 'value' + property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + end + end + + class FindReplaceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :occurrences_changed, as: 'occurrencesChanged' + property :rows_changed, as: 'rowsChanged' + property :sheets_changed, as: 'sheetsChanged' + property :formulas_changed, as: 'formulasChanged' + property :values_changed, as: 'valuesChanged' end end @@ -1672,14 +1828,10 @@ module Google end end - class FindReplaceResponse + class DuplicateFilterViewRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :values_changed, as: 'valuesChanged' - property :occurrences_changed, as: 'occurrencesChanged' - property :rows_changed, as: 'rowsChanged' - property :sheets_changed, as: 'sheetsChanged' - property :formulas_changed, as: 'formulasChanged' + property :filter_id, as: 'filterId' end end @@ -1690,22 +1842,25 @@ module Google end end - class DuplicateFilterViewRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :filter_id, as: 'filterId' - end - end - class UpdateConditionalFormatRuleResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + 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_rule, as: 'oldRule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation + 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' end end @@ -1717,37 +1872,36 @@ module Google end end - class DuplicateSheetRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 ExtendedValue # @private class Representation < Google::Apis::Core::JsonRepresentation - property :error_value, as: 'errorValue', class: Google::Apis::SheetsV4::ErrorValue, decorator: Google::Apis::SheetsV4::ErrorValue::Representation - 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 + end end - class BandedRange + class AddChartRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + property :chart, as: 'chart', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation - property :banded_range_id, as: 'bandedRangeId' - property :row_properties, as: 'rowProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation + end + end - property :column_properties, as: 'columnProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation + class Spreadsheet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :spreadsheet_url, as: 'spreadsheetUrl' + 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 end end @@ -1760,25 +1914,16 @@ module Google end end - class Spreadsheet + class BandedRange # @private class Representation < Google::Apis::Core::JsonRepresentation - property :properties, as: 'properties', class: Google::Apis::SheetsV4::SpreadsheetProperties, decorator: Google::Apis::SheetsV4::SpreadsheetProperties::Representation + property :row_properties, as: 'rowProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation - property :spreadsheet_id, as: 'spreadsheetId' - collection :sheets, as: 'sheets', class: Google::Apis::SheetsV4::Sheet, decorator: Google::Apis::SheetsV4::Sheet::Representation + property :column_properties, as: 'columnProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::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 + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + property :banded_range_id, as: 'bandedRangeId' end end @@ -1795,9 +1940,9 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :underline, as: 'underline' + property :bold, as: 'bold' 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' @@ -1829,29 +1974,29 @@ module Google 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 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 - property :title, as: 'title' - property :time_zone, as: 'timeZone' - property :locale, as: 'locale' - end - end - - class OverlayPosition - # @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 - - property :offset_y_pixels, as: 'offsetYPixels' - property :height_pixels, as: 'heightPixels' end end @@ -1886,21 +2031,9 @@ module Google class UpdateSpreadsheetPropertiesRequest # @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 - property :fields, as: 'fields' - end - end - - class BatchUpdateValuesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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' - property :response_value_render_option, as: 'responseValueRenderOption' end end @@ -1921,22 +2054,24 @@ module Google end end - class DimensionProperties + class BatchUpdateValuesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :hidden_by_filter, as: 'hiddenByFilter' - property :hidden_by_user, as: 'hiddenByUser' - property :pixel_size, as: 'pixelSize' + 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 DimensionRange + class DimensionProperties # @private class Representation < Google::Apis::Core::JsonRepresentation - property :start_index, as: 'startIndex' - property :end_index, as: 'endIndex' - property :sheet_id, as: 'sheetId' - property :dimension, as: 'dimension' + property :pixel_size, as: 'pixelSize' + property :hidden_by_filter, as: 'hiddenByFilter' + property :hidden_by_user, as: 'hiddenByUser' end end @@ -1950,13 +2085,37 @@ module Google end end + class DimensionRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :start_index, as: 'startIndex' + property :end_index, as: 'endIndex' + property :sheet_id, as: 'sheetId' + property :dimension, as: 'dimension' + end + end + class CutPasteRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :destination, as: 'destination', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation + 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 :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 :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 end end @@ -1971,20 +2130,6 @@ module Google end end - class Borders - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - property :right, as: 'right', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation - - end - end - class AutoResizeDimensionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1996,10 +2141,6 @@ module Google class UpdateBordersRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 @@ -2010,37 +2151,41 @@ module Google 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 + end end class CellFormat # @private class Representation < Google::Apis::Core::JsonRepresentation + property :wrap_strategy, as: 'wrapStrategy' + property :text_rotation, as: 'textRotation', class: Google::Apis::SheetsV4::TextRotation, decorator: Google::Apis::SheetsV4::TextRotation::Representation + 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 :hyperlink_display_type, as: 'hyperlinkDisplayType' 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 :vertical_alignment, as: 'verticalAlignment' + property :text_direction, as: 'textDirection' 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 :spreadsheet_id, as: 'spreadsheetId' property :cleared_range, as: 'clearedRange' + property :spreadsheet_id, as: 'spreadsheetId' end end @@ -2106,30 +2251,30 @@ module Google 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 - property :sort_order, as: 'sortOrder' - property :value_bucket, as: 'valueBucket', class: Google::Apis::SheetsV4::PivotGroupSortValueBucket, decorator: Google::Apis::SheetsV4::PivotGroupSortValueBucket::Representation - end end class PivotTable # @private class Representation < Google::Apis::Core::JsonRepresentation - property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation - - 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 - 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 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 @@ -2141,19 +2286,6 @@ module Google 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 AppendCellsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2164,6 +2296,19 @@ module Google end end + class ValueRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :range, as: 'range' + property :major_dimension, as: 'majorDimension' + collection :values, as: 'values', :class => Array do + include Representable::JSON::Collection + items + end + + end + end + class AddBandingRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2171,151 +2316,6 @@ module Google end end - - class Response - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation - - property :update_embedded_object_position, as: 'updateEmbeddedObjectPosition', class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse, decorator: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse::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 - # @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 TextFormatRun - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :start_index, as: 'startIndex' - property :format, as: 'format', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation - - end - end - - class EmbeddedChart - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - property :chart_id, as: 'chartId' - 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 GridData - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - property :start_row, as: 'startRow' - end - end - - class Border - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation - - property :width, as: 'width' - property :style, as: 'style' - 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 :search_by_regex, as: 'searchByRegex' - property :find, as: 'find' - 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 :all_sheets, as: 'allSheets' - property :match_case, as: 'matchCase' - 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 end end end diff --git a/generated/google/apis/sheets_v4/service.rb b/generated/google/apis/sheets_v4/service.rb index 55f0cbaa4..422eb8f95 100644 --- a/generated/google/apis/sheets_v4/service.rb +++ b/generated/google/apis/sheets_v4/service.rb @@ -236,6 +236,9 @@ module Google # @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 @@ -250,9 +253,6 @@ module Google # 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] response_value_render_option - # Determines how values in the response should be rendered. - # The default render option is ValueRenderOption.FORMATTED_VALUE. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -270,7 +270,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_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, response_value_render_option: nil, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -278,10 +278,10 @@ module Google 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['responseValueRenderOption'] = response_value_render_option unless response_value_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) @@ -366,14 +366,6 @@ module Google # 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] 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 [Array, String] ranges # The A1 notation of the values to retrieve. # @param [String] major_dimension @@ -383,6 +375,14 @@ 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] quota_user @@ -400,15 +400,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_get_spreadsheet_values(spreadsheet_id, value_render_option: nil, date_time_render_option: nil, ranges: nil, major_dimension: nil, fields: nil, quota_user: nil, options: nil, &block) + 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) 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['valueRenderOption'] = value_render_option unless value_render_option.nil? - command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.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['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) diff --git a/generated/google/apis/slides_v1/classes.rb b/generated/google/apis/slides_v1/classes.rb index 84f4fb48c..0cb67957b 100644 --- a/generated/google/apis/slides_v1/classes.rb +++ b/generated/google/apis/slides_v1/classes.rb @@ -22,6 +22,1455 @@ module Google module Apis module SlidesV1 + # A PageElement kind representing a + # generic shape that does not have a more specific classification. + 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 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 placeholder information that uniquely identifies a placeholder shape. + # Corresponds to the JSON property `placeholder` + # @return [Google::Apis::SlidesV1::Placeholder] + attr_accessor :placeholder + + # 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. + # Corresponds to the JSON property `shapeProperties` + # @return [Google::Apis::SlidesV1::ShapeProperties] + attr_accessor :shape_properties + + def initialize(**args) + update!(**args) + end + + # 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) + @shape_properties = args[:shape_properties] if args.key?(:shape_properties) + end + end + + # A PageElement kind representing an + # image. + 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 + # image may be lost if the presentation's sharing settings change. + # Corresponds to the JSON property `contentUrl` + # @return [String] + attr_accessor :content_url + + 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) + end + end + + # Inserts text into a shape or a table cell. + 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. + # The paragraph style of the new paragraph will be copied from the paragraph + # at the current insertion index, including lists and bullets. + # Text styles for inserted text will be determined automatically, generally + # preserving the styling of neighboring text. In most cases, the text will be + # added to the TextRun that exists at the + # insertion index. + # Some control characters (U+0000-U+0008, U+000C-U+001F) and characters + # from the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF) + # will be stripped out of the inserted text. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # 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. + # The index may be adjusted to prevent insertions inside Unicode grapheme + # clusters. In these cases, the text will be inserted immediately after the + # grapheme cluster. + # Corresponds to the JSON property `insertionIndex` + # @return [Fixnum] + attr_accessor :insertion_index + + # 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 = args[:text] if args.key?(:text) + @insertion_index = args[:insertion_index] if args.key?(:insertion_index) + @cell_location = args[:cell_location] if args.key?(:cell_location) + end + end + + # 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. + 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] + attr_accessor :translate_y + + # The X coordinate translation element. + # Corresponds to the JSON property `translateX` + # @return [Float] + attr_accessor :translate_x + + # The Y coordinate shearing element. + # Corresponds to the JSON property `shearY` + # @return [Float] + attr_accessor :shear_y + + # The units for translate elements. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # The X coordinate scaling element. + # Corresponds to the JSON property `scaleX` + # @return [Float] + attr_accessor :scale_x + + 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) + end + end + + # A TextElement kind that represents auto text. + 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 + + # 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) + @type = args[:type] if args.key?(:type) + @content = args[:content] if args.key?(:content) + @style = args[:style] if args.key?(:style) + end + end + + # The result of creating a video. + class CreateVideoResponse + include Google::Apis::Core::Hashable + + # The object ID of the created video. + # 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 + + # 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 apply mode of the transform update. + # Corresponds to the JSON property `applyMode` + # @return [String] + attr_accessor :apply_mode + + # 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: + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @apply_mode = args[:apply_mode] if args.key?(:apply_mode) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) + @transform = args[:transform] if args.key?(:transform) + end + end + + # Deletes an object, either pages or + # page elements, from the + # presentation. + class DeleteObjectRequest + include Google::Apis::Core::Hashable + + # The object ID of the page or page element to delete. + # If after a delete operation a group contains + # only 1 or no page elements, the group is also deleted. + # If a placeholder is deleted on a layout, any empty inheriting shapes are + # also deleted. + # 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 + + # A magnitude in a single direction in the specified units. + class Dimension + include Google::Apis::Core::Hashable + + # The magnitude. + # Corresponds to the JSON property `magnitude` + # @return [Float] + attr_accessor :magnitude + + # The units for magnitude. + # 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) + @magnitude = args[:magnitude] if args.key?(:magnitude) + @unit = args[:unit] if args.key?(:unit) + 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 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @text_run = args[:text_run] if args.key?(:text_run) + @auto_text = args[:auto_text] if args.key?(:auto_text) + end + end + + # The fill of the line. + class LineFill + 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @solid_fill = args[:solid_fill] if args.key?(:solid_fill) + end + end + + # The properties of the Video. + class VideoProperties + 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @outline = args[:outline] if args.key?(:outline) + end + end + + # Inserts rows into a table. + class InsertTableRowsRequest + include Google::Apis::Core::Hashable + + # The table to insert rows into. + # Corresponds to the JSON property `tableObjectId` + # @return [String] + attr_accessor :table_object_id + + # Whether to insert new rows below the reference cell location. + # - `True`: insert below the cell. + # - `False`: insert above the cell. + # Corresponds to the JSON property `insertBelow` + # @return [Boolean] + attr_accessor :insert_below + alias_method :insert_below?, :insert_below + + # The number of rows 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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 + + # The properties of Page are only + # relevant for pages with page_type LAYOUT. + 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] + attr_accessor :name + + # The human readable name of the layout in the presentation's locale. + # 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) + @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) + end + end + + # The properties of the Line. + # When unset, these fields default to values that match the appearance of + # new lines created in the Slides editor. + class LineProperties + include Google::Apis::Core::Hashable + + # 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 + + # 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 fill of the line. + # Corresponds to the JSON property `lineFill` + # @return [Google::Apis::SlidesV1::LineFill] + attr_accessor :line_fill + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @weight = args[:weight] if args.key?(:weight) + @line_fill = args[:line_fill] if args.key?(:line_fill) + end + end + + # A Google Slides presentation. + 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. + # Corresponds to the JSON property `layouts` + # @return [Array] + attr_accessor :layouts + + # The title of the presentation. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # The slide masters in the presentation. A slide master contains all common + # page elements and the common properties for a set of layouts. They serve + # three purposes: + # - Placeholder shapes on a master contain the default text styles and shape + # properties of all placeholder shapes on pages that use that master. + # - The master page properties define the common page properties inherited by + # its layouts. + # - Any other shapes on the master slide will appear on all slides using that + # master, regardless of their layout. + # Corresponds to the JSON property `masters` + # @return [Array] + attr_accessor :masters + + # The locale of the presentation, as an IETF BCP 47 language tag. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # A width and height. + # Corresponds to the JSON property `pageSize` + # @return [Google::Apis::SlidesV1::Size] + attr_accessor :page_size + + # The ID of the presentation. + # Corresponds to the JSON property `presentationId` + # @return [String] + attr_accessor :presentation_id + + # The slides in the presentation. + # A slide inherits properties from a slide layout. + # Corresponds to the JSON property `slides` + # @return [Array] + attr_accessor :slides + + # The revision ID of the presentation. Can be used in update requests + # to assert that the presentation revision hasn't changed since the last + # read operation. Only populated if the user has edit access to the + # presentation. + # The format of the revision ID may change over time, so it should be treated + # opaquely. A returned revision ID is only guaranteed to be valid for 24 + # hours after it has been returned and cannot be shared across users. If the + # revision ID is unchanged between calls, then the presentation has not + # changed. Conversely, a changed ID (for the same presentation and user) + # usually means the presentation has been updated; however, a changed ID can + # also be due to internal factors such as ID format changes. + # Corresponds to the JSON property `revisionId` + # @return [String] + attr_accessor :revision_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @locale = args[:locale] if args.key?(:locale) + @page_size = args[:page_size] if args.key?(:page_size) + @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) + end + end + + # A themeable solid color value. + class OpaqueColor + include Google::Apis::Core::Hashable + + # An RGB color. + # Corresponds to the JSON property `rgbColor` + # @return [Google::Apis::SlidesV1::RgbColor] + attr_accessor :rgb_color + + # An opaque theme color. + # Corresponds to the JSON property `themeColor` + # @return [String] + attr_accessor :theme_color + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rgb_color = args[:rgb_color] if args.key?(:rgb_color) + @theme_color = args[:theme_color] if args.key?(:theme_color) + end + end + + # The properties of the Image. + class ImageProperties + include Google::Apis::Core::Hashable + + # The brightness 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 `brightness` + # @return [Float] + attr_accessor :brightness + + # The transparency effect of the image. The value should be in the interval + # [0.0, 1.0], where 0 means no effect and 1 means completely transparent. + # This property is read-only. + # Corresponds to the JSON property `transparency` + # @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 + + # A recolor effect applied on an image. + # Corresponds to the JSON property `recolor` + # @return [Google::Apis::SlidesV1::Recolor] + attr_accessor :recolor + + # 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 + # a crop rectangle. The offsets are measured in percentage from the + # corresponding edges of the object's original bounding rectangle towards + # inside, relative to the object's original dimensions. + # - If the offset is in the interval (0, 1), the corresponding edge of crop + # rectangle is positioned inside of the object's original bounding rectangle. + # - If the offset is negative or greater than 1, the corresponding edge of crop + # rectangle is positioned outside of the object's original bounding rectangle. + # - If the left edge of the crop rectangle is on the right side of its right + # edge, the object will be flipped horizontally. + # - If the top edge of the crop rectangle is below its bottom edge, the object + # will be flipped vertically. + # - If all offsets and rotation angle is 0, the object is not cropped. + # After cropping, the content in the crop rectangle will be stretched to fit + # its container. + # Corresponds to the JSON property `cropProperties` + # @return [Google::Apis::SlidesV1::CropProperties] + attr_accessor :crop_properties + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @recolor = args[:recolor] if args.key?(:recolor) + @crop_properties = args[:crop_properties] if args.key?(:crop_properties) + @outline = args[:outline] if args.key?(:outline) + end + end + + # The result of replacing shapes with an image. + class ReplaceAllShapesWithImageResponse + include Google::Apis::Core::Hashable + + # The number of shapes replaced with images. + # 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 + + # A PageElement kind representing a + # line, curved connector, or bent connector. + class Line + include Google::Apis::Core::Hashable + + # The type of the line. + # Corresponds to the JSON property `lineType` + # @return [String] + attr_accessor :line_type + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_type = args[:line_type] if args.key?(:line_type) + @line_properties = args[:line_properties] if args.key?(:line_properties) + 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 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 + + # 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) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) + @linking_mode = args[:linking_mode] if args.key?(:linking_mode) + @chart_id = args[:chart_id] if args.key?(:chart_id) + 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 + + # 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 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 + + # 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 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text) + @create_slide = args[:create_slide] if args.key?(:create_slide) + @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) + 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 + + # 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 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 + + # 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 + + # Creates a new table. + class CreateTableRequest + include Google::Apis::Core::Hashable + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @element_properties = args[:element_properties] if args.key?(:element_properties) + @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) + 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 + + # A PageElement kind representing a + # table. + class Table + include Google::Apis::Core::Hashable + + # 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 + + # 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) + @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) + @rows = args[:rows] if args.key?(:rows) + end + end + + # The page background fill. + class PageBackgroundFill + include Google::Apis::Core::Hashable + + # 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 + + # 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) + @property_state = args[:property_state] if args.key?(:property_state) + @stretched_picture_fill = args[:stretched_picture_fill] if args.key?(:stretched_picture_fill) + @solid_fill = args[:solid_fill] if args.key?(:solid_fill) + end + end + + # A PageElement kind representing + # a linked chart embedded from Google Sheets. + class SheetsChart + include Google::Apis::Core::Hashable + + # 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 + + # The properties of the SheetsChart. + # Corresponds to the JSON property `sheetsChartProperties` + # @return [Google::Apis::SlidesV1::SheetsChartProperties] + attr_accessor :sheets_chart_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @sheets_chart_properties = args[:sheets_chart_properties] if args.key?(:sheets_chart_properties) + 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 + + # 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 @@ -124,6 +1573,28 @@ module Google 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 + + # 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] @@ -148,39 +1619,17 @@ module Google # @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) + @cell_location = args[:cell_location] if args.key?(:cell_location) + @style = args[:style] if args.key?(:style) end end @@ -188,24 +1637,24 @@ module Google 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 + # 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) + @cell_location = args[:cell_location] if args.key?(:cell_location) end end @@ -215,11 +1664,6 @@ module Google class List include Google::Apis::Core::Hashable - # The ID of the list. - # Corresponds to the JSON property `listId` - # @return [String] - attr_accessor :list_id - # 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. @@ -227,14 +1671,19 @@ module Google # @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) - @list_id = args[:list_id] if args.key?(:list_id) @nesting_level = args[:nesting_level] if args.key?(:nesting_level) + @list_id = args[:list_id] if args.key?(:list_id) end end @@ -277,19 +1726,41 @@ module Google class PageElement include Google::Apis::Core::Hashable + # 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: @@ -303,6 +1774,13 @@ module Google # @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` @@ -333,54 +1811,25 @@ module Google # @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 - - # 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 - - # 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 - # 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) + @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) @element_group = args[:element_group] if args.key?(:element_group) @image = args[:image] if args.key?(:image) - @size = args[:size] if args.key?(:size) - @sheets_chart = args[:sheets_chart] if args.key?(:sheets_chart) - @title = args[:title] if args.key?(:title) - @video = args[:video] if args.key?(:video) - @word_art = args[:word_art] if args.key?(:word_art) end end @@ -388,18 +1837,6 @@ module Google 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 @@ -418,15 +1855,27 @@ module Google # @return [String] attr_accessor :url + # 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 + 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) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) end end @@ -442,6 +1891,12 @@ module Google 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] @@ -458,22 +1913,16 @@ module Google # @return [Google::Apis::SlidesV1::Range] attr_accessor :text_range - # 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 - 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) - @bullet_preset = args[:bullet_preset] if args.key?(:bullet_preset) end end @@ -495,6 +1944,34 @@ module Google class TextStyle 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`. + # 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. @@ -519,16 +1996,21 @@ module Google # @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 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` @@ -536,57 +2018,24 @@ module Google attr_accessor :bold alias_method :bold?, :bold - # 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 - - # 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) @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) - @bold = args[:bold] if args.key?(:bold) + @underline = args[:underline] if args.key?(:underline) @foreground_color = args[:foreground_color] if args.key?(:foreground_color) - @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) + @bold = args[:bold] if args.key?(:bold) end end @@ -619,6 +2068,11 @@ module Google 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 @@ -636,20 +2090,15 @@ module Google # @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 - 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) - @video_properties = args[:video_properties] if args.key?(:video_properties) end end @@ -657,6 +2106,51 @@ module Google class Request include Google::Apis::Core::Hashable + # 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 + + # 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] @@ -699,16 +2193,16 @@ module Google # @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 + # 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. @@ -735,16 +2229,16 @@ module Google # @return [Google::Apis::SlidesV1::DuplicateObjectRequest] attr_accessor :duplicate_object - # 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 + # Update the properties of a Video. + # Corresponds to the JSON property `updateVideoProperties` + # @return [Google::Apis::SlidesV1::UpdateVideoPropertiesRequest] + attr_accessor :update_video_properties + # Creates an image. # Corresponds to the JSON property `createImage` # @return [Google::Apis::SlidesV1::CreateImageRequest] @@ -795,79 +2289,12 @@ module Google # @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 - - # 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) - @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) - @delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column) - @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object) - @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) @@ -877,6 +2304,28 @@ module Google @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) + @delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column) + @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object) + @create_line = args[:create_line] if args.key?(:create_line) + @update_video_properties = args[:update_video_properties] if args.key?(:update_video_properties) + @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) end end @@ -1044,6 +2493,11 @@ module Google 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] @@ -1064,21 +2518,16 @@ module Google # @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 - 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) - @outline_fill = args[:outline_fill] if args.key?(:outline_fill) end end @@ -1104,14 +2553,20 @@ module Google end end - # Properties of each column in a table. - class TableColumnProperties + # The properties of Page that are only + # relevant for pages with page_type NOTES. + class NotesProperties 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 + # 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) @@ -1119,7 +2574,7 @@ module Google # Update properties of this object def update!(**args) - @column_width = args[:column_width] if args.key?(:column_width) + @speaker_notes_object_id = args[:speaker_notes_object_id] if args.key?(:speaker_notes_object_id) end end @@ -1173,20 +2628,14 @@ module Google end end - # The properties of Page that are only - # relevant for pages with page_type NOTES. - class NotesProperties + # Properties of each column in a table. + class TableColumnProperties 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 + # 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) @@ -1194,7 +2643,7 @@ module Google # Update properties of this object def update!(**args) - @speaker_notes_object_id = args[:speaker_notes_object_id] if args.key?(:speaker_notes_object_id) + @column_width = args[:column_width] if args.key?(:column_width) end end @@ -1285,20 +2734,6 @@ module Google class CreateSlideRequest include Google::Apis::Core::Hashable - # 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. @@ -1318,16 +2753,30 @@ module Google # @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) - @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) @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 @@ -1431,11 +2880,6 @@ module Google 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` @@ -1448,15 +2892,20 @@ module Google # @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) - @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) + @cell_location = args[:cell_location] if args.key?(:cell_location) end end @@ -1500,6 +2949,16 @@ module Google 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. @@ -1513,26 +2972,16 @@ module Google # @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 :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) - @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) + @insert_right = args[:insert_right] if args.key?(:insert_right) + @table_object_id = args[:table_object_id] if args.key?(:table_object_id) end end @@ -1578,6 +3027,17 @@ 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` + # @return [String] + attr_accessor :layout_placeholder_object_id + # A user-supplied object ID for the placeholder identified above that to be # created onto a slide. # If you specify an ID, it must be unique among all pages and page elements @@ -1591,26 +3051,15 @@ 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 - - # The object ID of the placeholder on a layout that will be applied - # to a slide. - # Corresponds to the JSON property `layoutPlaceholderObjectId` - # @return [String] - attr_accessor :layout_placeholder_object_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) @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) end end @@ -1618,6 +3067,18 @@ module Google class UpdateShapePropertiesRequest include Google::Apis::Core::Hashable + # The fields that should be updated. + # At least one field must be specified. The root `shapeProperties` is + # implied and should not be specified. A single `"*"` can be used as + # short-hand for listing every field. + # For example to update the shape background solid fill color, set `fields` + # to `"shapeBackgroundFill.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 shape the updates are applied to. # Corresponds to the JSON property `objectId` # @return [String] @@ -1633,27 +3094,15 @@ module Google # @return [Google::Apis::SlidesV1::ShapeProperties] attr_accessor :shape_properties - # The fields that should be updated. - # At least one field must be specified. The root `shapeProperties` is - # implied and should not be specified. A single `"*"` can be used as - # short-hand for listing every field. - # For example to update the shape background solid fill color, set `fields` - # to `"shapeBackgroundFill.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) + @fields = args[:fields] if args.key?(:fields) @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) @shape_properties = args[:shape_properties] if args.key?(:shape_properties) - @fields = args[:fields] if args.key?(:fields) end end @@ -1681,6 +3130,14 @@ module Google class Recolor include Google::Apis::Core::Hashable + # The name of the recolor effect. + # The name is determined from the `recolor_stops` by matching the gradient + # against the colors in the page's current color scheme. This property is + # read-only. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # The recolor effect is represented by a gradient, which is a list of color # stops. # The colors in the gradient will replace the corresponding colors at @@ -1690,22 +3147,14 @@ module Google # @return [Array] attr_accessor :recolor_stops - # The name of the recolor effect. - # The name is determined from the `recolor_stops` by matching the gradient - # against the colors in the page's current color scheme. This property is - # read-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) - @recolor_stops = args[:recolor_stops] if args.key?(:recolor_stops) @name = args[:name] if args.key?(:name) + @recolor_stops = args[:recolor_stops] if args.key?(:recolor_stops) end end @@ -1713,12 +3162,6 @@ module Google class Link include Google::Apis::Core::Hashable - # If set, indicates this is a link to the specific page in this - # presentation with this ID. A page with this ID may not exist. - # Corresponds to the JSON property `pageObjectId` - # @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] @@ -1736,47 +3179,22 @@ module Google # @return [Fixnum] attr_accessor :slide_index + # If set, indicates this is a link to the specific page in this + # presentation with this ID. A page with this ID may not exist. + # 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) - @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) - end - end - - # An RGB color. - class RgbColor - include Google::Apis::Core::Hashable - - # 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 red component of the color, from 0.0 to 1.0. - # 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) - @red = args[:red] if args.key?(:red) + @page_object_id = args[:page_object_id] if args.key?(:page_object_id) end end @@ -1799,6 +3217,37 @@ module Google end end + # An RGB color. + class RgbColor + include Google::Apis::Core::Hashable + + # The red component of the color, from 0.0 to 1.0. + # Corresponds to the JSON property `red` + # @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 + + 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) + end + end + # Creates a line. class CreateLineRequest include Google::Apis::Core::Hashable @@ -1974,11 +3423,6 @@ module Google class TableCell include Google::Apis::Core::Hashable - # Column span of the cell. - # Corresponds to the JSON property `columnSpan` - # @return [Fixnum] - attr_accessor :column_span - # 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` @@ -2000,17 +3444,22 @@ module Google # @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) - @column_span = args[:column_span] if args.key?(:column_span) @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 @@ -2088,35 +3537,6 @@ module Google end end - # Updates the position of slides in the presentation. - class UpdateSlidesPositionRequest - include Google::Apis::Core::Hashable - - # The IDs of the slides in the presentation that should be moved. - # The slides in this list must be in existing presentation order, without - # duplicates. - # Corresponds to the JSON property `slideObjectIds` - # @return [Array] - attr_accessor :slide_object_ids - - # The index where the slides should be inserted, based on the slide - # arrangement before the move takes place. Must be between zero and the - # number of slides in the presentation, inclusive. - # Corresponds to the JSON property `insertionIndex` - # @return [Fixnum] - attr_accessor :insertion_index - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @slide_object_ids = args[:slide_object_ids] if args.key?(:slide_object_ids) - @insertion_index = args[:insertion_index] if args.key?(:insertion_index) - end - end - # The table cell background fill. class TableCellBackgroundFill include Google::Apis::Core::Hashable @@ -2149,6 +3569,35 @@ module Google end end + # Updates the position of slides in the presentation. + class UpdateSlidesPositionRequest + include Google::Apis::Core::Hashable + + # The index where the slides should be inserted, based on the slide + # arrangement before the move takes place. Must be between zero and the + # number of slides in the presentation, inclusive. + # Corresponds to the JSON property `insertionIndex` + # @return [Fixnum] + attr_accessor :insertion_index + + # The IDs of the slides in the presentation that should be moved. + # The slides in this list must be in existing presentation order, without + # duplicates. + # Corresponds to the JSON property `slideObjectIds` + # @return [Array] + attr_accessor :slide_object_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @insertion_index = args[:insertion_index] if args.key?(:insertion_index) + @slide_object_ids = args[:slide_object_ids] if args.key?(:slide_object_ids) + end + end + # Updates the properties of a Page. class UpdatePagePropertiesRequest include Google::Apis::Core::Hashable @@ -2215,11 +3664,6 @@ module Google class Placeholder include Google::Apis::Core::Hashable - # The type of the placeholder. - # Corresponds to the JSON property `type` - # @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. @@ -2233,15 +3677,20 @@ module Google # @return [Fixnum] attr_accessor :index + # The type of the placeholder. + # 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) @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) end end @@ -2317,6 +3766,37 @@ module Google class Page include Google::Apis::Core::Hashable + # The type of the page. + # Corresponds to the JSON property `pageType` + # @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 NOTES. + # Corresponds to the JSON property `notesProperties` + # @return [Google::Apis::SlidesV1::NotesProperties] + attr_accessor :notes_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 + + # 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 + # SlideProperties or + # LayoutProperties. + # Corresponds to the JSON property `pageProperties` + # @return [Google::Apis::SlidesV1::PageProperties] + attr_accessor :page_properties + # The object ID for this page. Object IDs used by # Page and # PageElement share the same namespace. @@ -2345,51 +3825,20 @@ 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` - # @return [Google::Apis::SlidesV1::NotesProperties] - attr_accessor :notes_properties - - # The type of the page. - # Corresponds to the JSON property `pageType` - # @return [String] - attr_accessor :page_type - - # 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 - # SlideProperties or - # LayoutProperties. - # Corresponds to the JSON property `pageProperties` - # @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) + @page_type = args[:page_type] if args.key?(:page_type) + @page_elements = args[:page_elements] if args.key?(:page_elements) + @notes_properties = args[:notes_properties] if args.key?(:notes_properties) + @slide_properties = args[:slide_properties] if args.key?(:slide_properties) + @page_properties = args[:page_properties] if args.key?(:page_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_properties = args[:page_properties] if args.key?(:page_properties) - @slide_properties = args[:slide_properties] if args.key?(:slide_properties) end end @@ -2445,13 +3894,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. @@ -2479,17 +3921,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 @@ -2714,21 +4163,6 @@ module Google class Shadow include Google::Apis::Core::Hashable - # Whether the shadow should rotate with the shape. - # Corresponds to the JSON property `rotateWithShape` - # @return [Boolean] - attr_accessor :rotate_with_shape - alias_method :rotate_with_shape?, :rotate_with_shape - - # The shadow property state. - # Updating the the shadow on a page element will implicitly update this field - # to `RENDERED`, unless another value is specified in the same request. To - # have no shadow on a page element, set this field to `NOT_RENDERED`. In this - # case, any other shadow fields set in the same request will be ignored. - # Corresponds to the JSON property `propertyState` - # @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] @@ -2768,20 +4202,35 @@ module Google # @return [Google::Apis::SlidesV1::OpaqueColor] attr_accessor :color + # Whether the shadow should rotate with the shape. + # Corresponds to the JSON property `rotateWithShape` + # @return [Boolean] + attr_accessor :rotate_with_shape + alias_method :rotate_with_shape?, :rotate_with_shape + + # The shadow property state. + # Updating the the shadow on a page element will implicitly update this field + # to `RENDERED`, unless another value is specified in the same request. To + # have no shadow on a page element, set this field to `NOT_RENDERED`. In this + # case, any other shadow 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) - @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) @transform = args[:transform] if args.key?(:transform) @type = args[:type] if args.key?(:type) @alignment = args[:alignment] if args.key?(:alignment) @alpha = args[:alpha] if args.key?(:alpha) @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) end end @@ -2814,21 +4263,6 @@ module Google class Bullet include Google::Apis::Core::Hashable - # The ID of the list this paragraph belongs to. - # Corresponds to the JSON property `listId` - # @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 - # 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 @@ -2848,16 +4282,31 @@ module Google # @return [Google::Apis::SlidesV1::TextStyle] attr_accessor :bullet_style + # The ID of the list this paragraph belongs to. + # Corresponds to the JSON property `listId` + # @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) end end @@ -2951,17 +4400,6 @@ module Google class UpdateParagraphStyleRequest include Google::Apis::Core::Hashable - # 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] @@ -2994,17 +4432,28 @@ module Google # @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) - @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) @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 @@ -3026,1455 +4475,6 @@ module Google @colors = args[:colors] if args.key?(:colors) end end - - # A PageElement kind representing a - # generic shape that does not have a more specific classification. - 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 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 placeholder information that uniquely identifies a placeholder shape. - # Corresponds to the JSON property `placeholder` - # @return [Google::Apis::SlidesV1::Placeholder] - attr_accessor :placeholder - - # 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. - # Corresponds to the JSON property `shapeProperties` - # @return [Google::Apis::SlidesV1::ShapeProperties] - attr_accessor :shape_properties - - def initialize(**args) - update!(**args) - end - - # 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) - @shape_properties = args[:shape_properties] if args.key?(:shape_properties) - end - end - - # A PageElement kind representing an - # image. - 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 - # image may be lost if the presentation's sharing settings change. - # Corresponds to the JSON property `contentUrl` - # @return [String] - attr_accessor :content_url - - 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) - end - end - - # 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. - class AffineTransform - include Google::Apis::Core::Hashable - - # The X coordinate translation element. - # Corresponds to the JSON property `translateX` - # @return [Float] - attr_accessor :translate_x - - # The Y coordinate shearing element. - # Corresponds to the JSON property `shearY` - # @return [Float] - attr_accessor :shear_y - - # The units for translate elements. - # Corresponds to the JSON property `unit` - # @return [String] - attr_accessor :unit - - # The X coordinate scaling element. - # Corresponds to the JSON property `scaleX` - # @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 - - # The Y coordinate translation element. - # Corresponds to the JSON property `translateY` - # @return [Float] - attr_accessor :translate_y - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @translate_y = args[:translate_y] if args.key?(:translate_y) - end - end - - # Inserts text into a shape or a table cell. - 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. - # The paragraph style of the new paragraph will be copied from the paragraph - # at the current insertion index, including lists and bullets. - # Text styles for inserted text will be determined automatically, generally - # preserving the styling of neighboring text. In most cases, the text will be - # added to the TextRun that exists at the - # insertion index. - # Some control characters (U+0000-U+0008, U+000C-U+001F) and characters - # from the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF) - # will be stripped out of the inserted text. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - # 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. - # The index may be adjusted to prevent insertions inside Unicode grapheme - # clusters. In these cases, the text will be inserted immediately after the - # grapheme cluster. - # Corresponds to the JSON property `insertionIndex` - # @return [Fixnum] - attr_accessor :insertion_index - - # 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 = args[:text] if args.key?(:text) - @insertion_index = args[:insertion_index] if args.key?(:insertion_index) - @cell_location = args[:cell_location] if args.key?(:cell_location) - end - end - - # A TextElement kind that represents auto text. - 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 - - # 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) - @type = args[:type] if args.key?(:type) - @content = args[:content] if args.key?(:content) - @style = args[:style] if args.key?(:style) - end - end - - # The result of creating a video. - class CreateVideoResponse - include Google::Apis::Core::Hashable - - # The object ID of the created video. - # 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 - - # 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: - # 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 apply mode of the transform update. - # Corresponds to the JSON property `applyMode` - # @return [String] - attr_accessor :apply_mode - - 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) - @transform = args[:transform] if args.key?(:transform) - @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 - - # 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 - - # Deletes an object, either pages or - # page elements, from the - # presentation. - class DeleteObjectRequest - include Google::Apis::Core::Hashable - - # The object ID of the page or page element to delete. - # If after a delete operation a group contains - # only 1 or no page elements, the group is also deleted. - # If a placeholder is deleted on a layout, any empty inheriting shapes are - # also deleted. - # 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 - - # 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 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @text_run = args[:text_run] if args.key?(:text_run) - @auto_text = args[:auto_text] if args.key?(:auto_text) - end - end - - # A magnitude in a single direction in the specified units. - class Dimension - include Google::Apis::Core::Hashable - - # The magnitude. - # Corresponds to the JSON property `magnitude` - # @return [Float] - attr_accessor :magnitude - - # The units for magnitude. - # 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) - @magnitude = args[:magnitude] if args.key?(:magnitude) - @unit = args[:unit] if args.key?(:unit) - end - end - - # The fill of the line. - class LineFill - 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @solid_fill = args[:solid_fill] if args.key?(:solid_fill) - end - end - - # The properties of the Video. - class VideoProperties - 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @outline = args[:outline] if args.key?(:outline) - end - end - - # Inserts rows into a table. - class InsertTableRowsRequest - include Google::Apis::Core::Hashable - - # The number of rows 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 - - # The table to insert rows into. - # Corresponds to the JSON property `tableObjectId` - # @return [String] - attr_accessor :table_object_id - - # Whether to insert new rows below the reference cell location. - # - `True`: insert below the cell. - # - `False`: insert above the cell. - # Corresponds to the JSON property `insertBelow` - # @return [Boolean] - attr_accessor :insert_below - alias_method :insert_below?, :insert_below - - 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) - @table_object_id = args[:table_object_id] if args.key?(:table_object_id) - @insert_below = args[:insert_below] if args.key?(:insert_below) - end - end - - # The properties of Page are only - # relevant for pages with page_type LAYOUT. - class LayoutProperties - include Google::Apis::Core::Hashable - - # The human readable name of the layout in the presentation's locale. - # Corresponds to the JSON property `displayName` - # @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 - - # The name of the layout. - # 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) - @master_object_id = args[:master_object_id] if args.key?(:master_object_id) - @name = args[:name] if args.key?(:name) - end - end - - # The properties of the Line. - # When unset, these fields default to values that match the appearance of - # new lines created in the Slides editor. - class LineProperties - include Google::Apis::Core::Hashable - - # 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] - attr_accessor :weight - - # The fill of the line. - # Corresponds to the JSON property `lineFill` - # @return [Google::Apis::SlidesV1::LineFill] - attr_accessor :line_fill - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @dash_style = args[:dash_style] if args.key?(:dash_style) - @link = args[:link] if args.key?(:link) - end - end - - # A Google Slides presentation. - class Presentation - include Google::Apis::Core::Hashable - - # The slides in the presentation. - # A slide inherits properties from a slide layout. - # Corresponds to the JSON property `slides` - # @return [Array] - attr_accessor :slides - - # The revision ID of the presentation. Can be used in update requests - # to assert that the presentation revision hasn't changed since the last - # read operation. Only populated if the user has edit access to the - # presentation. - # The format of the revision ID may change over time, so it should be treated - # opaquely. A returned revision ID is only guaranteed to be valid for 24 - # hours after it has been returned and cannot be shared across users. If the - # revision ID is unchanged between calls, then the presentation has not - # changed. Conversely, a changed ID (for the same presentation and user) - # usually means the presentation has been updated; however, a changed ID can - # also be due to internal factors such as ID format changes. - # Corresponds to the JSON property `revisionId` - # @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 - - # The title of the presentation. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # 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. - # Corresponds to the JSON property `layouts` - # @return [Array] - attr_accessor :layouts - - # The locale of the presentation, as an IETF BCP 47 language tag. - # Corresponds to the JSON property `locale` - # @return [String] - attr_accessor :locale - - # The slide masters in the presentation. A slide master contains all common - # page elements and the common properties for a set of layouts. They serve - # three purposes: - # - Placeholder shapes on a master contain the default text styles and shape - # properties of all placeholder shapes on pages that use that master. - # - The master page properties define the common page properties inherited by - # its layouts. - # - Any other shapes on the master slide will appear on all slides using that - # master, regardless of their layout. - # Corresponds to the JSON property `masters` - # @return [Array] - attr_accessor :masters - - # A width and height. - # Corresponds to the JSON property `pageSize` - # @return [Google::Apis::SlidesV1::Size] - attr_accessor :page_size - - # The ID of the presentation. - # 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) - @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) - @title = args[:title] if args.key?(:title) - @layouts = args[:layouts] if args.key?(:layouts) - @locale = args[:locale] if args.key?(:locale) - @masters = args[:masters] if args.key?(:masters) - @page_size = args[:page_size] if args.key?(:page_size) - @presentation_id = args[:presentation_id] if args.key?(:presentation_id) - end - end - - # A themeable solid color value. - class OpaqueColor - include Google::Apis::Core::Hashable - - # An opaque theme color. - # Corresponds to the JSON property `themeColor` - # @return [String] - attr_accessor :theme_color - - # An RGB color. - # Corresponds to the JSON property `rgbColor` - # @return [Google::Apis::SlidesV1::RgbColor] - attr_accessor :rgb_color - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @theme_color = args[:theme_color] if args.key?(:theme_color) - @rgb_color = args[:rgb_color] if args.key?(:rgb_color) - end - end - - # The properties of the Image. - class ImageProperties - include Google::Apis::Core::Hashable - - # The transparency effect of the image. The value should be in the interval - # [0.0, 1.0], where 0 means no effect and 1 means completely transparent. - # This property is read-only. - # Corresponds to the JSON property `transparency` - # @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 - - # A hypertext link. - # Corresponds to the JSON property `link` - # @return [Google::Apis::SlidesV1::Link] - attr_accessor :link - - # 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 recolor effect applied on an image. - # Corresponds to the JSON property `recolor` - # @return [Google::Apis::SlidesV1::Recolor] - attr_accessor :recolor - - # 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 - # a crop rectangle. The offsets are measured in percentage from the - # corresponding edges of the object's original bounding rectangle towards - # inside, relative to the object's original dimensions. - # - If the offset is in the interval (0, 1), the corresponding edge of crop - # rectangle is positioned inside of the object's original bounding rectangle. - # - If the offset is negative or greater than 1, the corresponding edge of crop - # rectangle is positioned outside of the object's original bounding rectangle. - # - If the left edge of the crop rectangle is on the right side of its right - # edge, the object will be flipped horizontally. - # - If the top edge of the crop rectangle is below its bottom edge, the object - # will be flipped vertically. - # - If all offsets and rotation angle is 0, the object is not cropped. - # After cropping, the content in the crop rectangle will be stretched to fit - # its container. - # Corresponds to the JSON property `cropProperties` - # @return [Google::Apis::SlidesV1::CropProperties] - attr_accessor :crop_properties - - # 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 brightness 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 `brightness` - # @return [Float] - attr_accessor :brightness - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @transparency = args[:transparency] if args.key?(:transparency) - @shadow = args[:shadow] if args.key?(:shadow) - @link = args[:link] if args.key?(:link) - @contrast = args[:contrast] if args.key?(:contrast) - @recolor = args[:recolor] if args.key?(:recolor) - @crop_properties = args[:crop_properties] if args.key?(:crop_properties) - @outline = args[:outline] if args.key?(:outline) - @brightness = args[:brightness] if args.key?(:brightness) - end - end - - # The result of replacing shapes with an image. - class ReplaceAllShapesWithImageResponse - include Google::Apis::Core::Hashable - - # The number of shapes replaced with images. - # 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 - - # A PageElement kind representing a - # line, curved connector, or bent connector. - class Line - include Google::Apis::Core::Hashable - - # The type of the line. - # Corresponds to the JSON property `lineType` - # @return [String] - attr_accessor :line_type - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @line_type = args[:line_type] if args.key?(:line_type) - @line_properties = args[:line_properties] if args.key?(:line_properties) - 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 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 - - # 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) - @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) - @linking_mode = args[:linking_mode] if args.key?(:linking_mode) - @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 - - # 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 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 - - # 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 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @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) - @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) - 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 - - # 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 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 - - # 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 - - # 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 - - # 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 - - # 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 - - # 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 - - # 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 end end end diff --git a/generated/google/apis/slides_v1/representations.rb b/generated/google/apis/slides_v1/representations.rb index 1c26befe6..60bcbeb01 100644 --- a/generated/google/apis/slides_v1/representations.rb +++ b/generated/google/apis/slides_v1/representations.rb @@ -22,6 +22,234 @@ module Google module Apis module SlidesV1 + 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 InsertTextRequest + 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 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 + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateSheetsChartRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchUpdatePresentationResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateImageResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SlideProperties + 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 SubstringMatchCriteria + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LayoutReference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TextRun + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TableRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateTableRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateTableResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Table + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PageBackgroundFill + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SheetsChart + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SolidFill + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ThemeColorPair + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OptionalColor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PageElementProperties class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,7 +370,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 @@ -154,7 +382,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 @@ -256,13 +484,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RgbColor + class CreateShapeResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CreateShapeResponse + class RgbColor class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -316,13 +544,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class UpdateSlidesPositionRequest + class TableCellBackgroundFill class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TableCellBackgroundFill + class UpdateSlidesPositionRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -467,231 +695,410 @@ module Google end class Shape - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + property :placeholder, as: 'placeholder', class: Google::Apis::SlidesV1::Placeholder, decorator: Google::Apis::SlidesV1::Placeholder::Representation + + property :shape_properties, as: 'shapeProperties', class: Google::Apis::SlidesV1::ShapeProperties, decorator: Google::Apis::SlidesV1::ShapeProperties::Representation + + end end class Image - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_properties, as: 'imageProperties', class: Google::Apis::SlidesV1::ImageProperties, decorator: Google::Apis::SlidesV1::ImageProperties::Representation - include Google::Apis::Core::JsonObjectSupport - end - - class AffineTransform - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + property :content_url, as: 'contentUrl' + end end class InsertTextRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :object_id_prop, as: 'objectId' + property :text, as: 'text' + property :insertion_index, as: 'insertionIndex' + property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation - include Google::Apis::Core::JsonObjectSupport + 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' + end end class AutoText - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :content, as: 'content' + property :style, as: 'style', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation - include Google::Apis::Core::JsonObjectSupport + end 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 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :object_id_prop, as: 'objectId' + end end class DeleteTextRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + 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 :apply_mode, as: 'applyMode' + property :object_id_prop, as: 'objectId' + property :transform, as: 'transform', class: Google::Apis::SlidesV1::AffineTransform, decorator: Google::Apis::SlidesV1::AffineTransform::Representation + + end 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 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :object_id_prop, as: 'objectId' + end end class Dimension - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :magnitude, as: 'magnitude' + property :unit, as: 'unit' + end + end - include Google::Apis::Core::JsonObjectSupport + class TextElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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' + 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 + + end end class LineFill - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :solid_fill, as: 'solidFill', class: Google::Apis::SlidesV1::SolidFill, decorator: Google::Apis::SlidesV1::SolidFill::Representation - include Google::Apis::Core::JsonObjectSupport + end end class VideoProperties - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation - include Google::Apis::Core::JsonObjectSupport + end end class InsertTableRowsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 - include Google::Apis::Core::JsonObjectSupport + end end class LayoutProperties - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :master_object_id, as: 'masterObjectId' + property :name, as: 'name' + property :display_name, as: 'displayName' + end end class LineProperties - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation - include Google::Apis::Core::JsonObjectSupport + property :dash_style, as: 'dashStyle' + property :end_arrow, as: 'endArrow' + property :start_arrow, as: 'startArrow' + 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 + + end end class Presentation - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :notes_master, as: 'notesMaster', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation - include Google::Apis::Core::JsonObjectSupport + collection :layouts, as: 'layouts', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation + + property :title, as: 'title' + collection :masters, as: 'masters', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation + + property :locale, as: 'locale' + property :page_size, as: 'pageSize', class: Google::Apis::SlidesV1::Size, decorator: Google::Apis::SlidesV1::Size::Representation + + property :presentation_id, as: 'presentationId' + collection :slides, as: 'slides', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation + + property :revision_id, as: 'revisionId' + end end class OpaqueColor - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rgb_color, as: 'rgbColor', class: Google::Apis::SlidesV1::RgbColor, decorator: Google::Apis::SlidesV1::RgbColor::Representation - include Google::Apis::Core::JsonObjectSupport + property :theme_color, as: 'themeColor' + end end class ImageProperties - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brightness, as: 'brightness' + property :transparency, as: 'transparency' + property :shadow, as: 'shadow', class: Google::Apis::SlidesV1::Shadow, decorator: Google::Apis::SlidesV1::Shadow::Representation - include Google::Apis::Core::JsonObjectSupport + property :contrast, as: 'contrast' + property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation + + property :recolor, as: 'recolor', class: Google::Apis::SlidesV1::Recolor, decorator: Google::Apis::SlidesV1::Recolor::Representation + + property :crop_properties, as: 'cropProperties', class: Google::Apis::SlidesV1::CropProperties, decorator: Google::Apis::SlidesV1::CropProperties::Representation + + property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation + + end end class ReplaceAllShapesWithImageResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :occurrences_changed, as: 'occurrencesChanged' + end end class Line - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_type, as: 'lineType' + property :line_properties, as: 'lineProperties', class: Google::Apis::SlidesV1::LineProperties, decorator: Google::Apis::SlidesV1::LineProperties::Representation - include Google::Apis::Core::JsonObjectSupport - end - - class BatchUpdatePresentationResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + end end class CreateSheetsChartRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + property :spreadsheet_id, as: 'spreadsheetId' + property :linking_mode, as: 'linkingMode' + property :chart_id, as: 'chartId' + 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 CreateImageResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :object_id_prop, as: 'objectId' + end end class SlideProperties - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + end end class Response - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_sheets_chart, as: 'createSheetsChart', class: Google::Apis::SlidesV1::CreateSheetsChartResponse, decorator: Google::Apis::SlidesV1::CreateSheetsChartResponse::Representation - include Google::Apis::Core::JsonObjectSupport + 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 + + 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 :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 + + end end class SubstringMatchCriteria - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text, as: 'text' + property :match_case, as: 'matchCase' + end end class LayoutReference - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :predefined_layout, as: 'predefinedLayout' + property :layout_id, as: 'layoutId' + end end class TextRun - class Representation < Google::Apis::Core::JsonRepresentation; end + # @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 - include Google::Apis::Core::JsonObjectSupport + end end class TableRange - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location, as: 'location', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation - include Google::Apis::Core::JsonObjectSupport + property :row_span, as: 'rowSpan' + property :column_span, as: 'columnSpan' + end end class CreateTableRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation - include Google::Apis::Core::JsonObjectSupport + property :rows, as: 'rows' + property :object_id_prop, as: 'objectId' + property :columns, as: 'columns' + end end class CreateTableResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :object_id_prop, as: 'objectId' + end end class Table - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :table_columns, as: 'tableColumns', class: Google::Apis::SlidesV1::TableColumnProperties, decorator: Google::Apis::SlidesV1::TableColumnProperties::Representation - include Google::Apis::Core::JsonObjectSupport + property :columns, as: 'columns' + collection :table_rows, as: 'tableRows', class: Google::Apis::SlidesV1::TableRow, decorator: Google::Apis::SlidesV1::TableRow::Representation + + property :rows, as: 'rows' + end end class PageBackgroundFill - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :property_state, as: 'propertyState' + property :stretched_picture_fill, as: 'stretchedPictureFill', class: Google::Apis::SlidesV1::StretchedPictureFill, decorator: Google::Apis::SlidesV1::StretchedPictureFill::Representation - include Google::Apis::Core::JsonObjectSupport + property :solid_fill, as: 'solidFill', class: Google::Apis::SlidesV1::SolidFill, decorator: Google::Apis::SlidesV1::SolidFill::Representation + + end end class SheetsChart - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_url, as: 'contentUrl' + property :spreadsheet_id, as: 'spreadsheetId' + property :chart_id, as: 'chartId' + property :sheets_chart_properties, as: 'sheetsChartProperties', class: Google::Apis::SlidesV1::SheetsChartProperties, decorator: Google::Apis::SlidesV1::SheetsChartProperties::Representation - include Google::Apis::Core::JsonObjectSupport + end end class SolidFill - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::SlidesV1::OpaqueColor, decorator: Google::Apis::SlidesV1::OpaqueColor::Representation - include Google::Apis::Core::JsonObjectSupport + property :alpha, as: 'alpha' + end end class ThemeColorPair - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::SlidesV1::RgbColor, decorator: Google::Apis::SlidesV1::RgbColor::Representation - include Google::Apis::Core::JsonObjectSupport + property :type, as: 'type' + end end class OptionalColor - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :opaque_color, as: 'opaqueColor', class: Google::Apis::SlidesV1::OpaqueColor, decorator: Google::Apis::SlidesV1::OpaqueColor::Representation - include Google::Apis::Core::JsonObjectSupport + end end class PageElementProperties @@ -725,32 +1132,32 @@ module Google 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 + 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 + end end class DeleteTableColumnRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :table_object_id, as: 'tableObjectId' 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 List # @private class Representation < Google::Apis::Core::JsonRepresentation - property :list_id, as: 'listId' hash :nesting_level, as: 'nestingLevel', class: Google::Apis::SlidesV1::NestingLevel, decorator: Google::Apis::SlidesV1::NestingLevel::Representation + property :list_id, as: 'listId' end end @@ -765,11 +1172,20 @@ module Google class PageElement # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 :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 @@ -779,60 +1195,51 @@ module Google 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 :sheets_chart, as: 'sheetsChart', class: Google::Apis::SlidesV1::SheetsChart, decorator: Google::Apis::SlidesV1::SheetsChart::Representation - - property :title, as: 'title' - 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 - 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' + property :object_id_prop, as: 'objectId' 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 - property :bullet_preset, as: 'bulletPreset' end end class TextStyle # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 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 :bold, as: 'bold' + property :underline, as: 'underline' property :foreground_color, as: 'foregroundColor', class: Google::Apis::SlidesV1::OptionalColor, decorator: Google::Apis::SlidesV1::OptionalColor::Representation - 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 :bold, as: 'bold' end end @@ -849,60 +1256,16 @@ module Google class UpdateVideoPropertiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :fields, as: 'fields' - 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' + property :object_id_prop, as: 'objectId' end end class Request # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 :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 :delete_table_column, as: 'deleteTableColumn', class: Google::Apis::SlidesV1::DeleteTableColumnRequest, decorator: Google::Apis::SlidesV1::DeleteTableColumnRequest::Representation - - property :duplicate_object, as: 'duplicateObject', class: Google::Apis::SlidesV1::DuplicateObjectRequest, decorator: Google::Apis::SlidesV1::DuplicateObjectRequest::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 @@ -921,6 +1284,50 @@ module Google 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 + + property :delete_table_column, as: 'deleteTableColumn', class: Google::Apis::SlidesV1::DeleteTableColumnRequest, decorator: Google::Apis::SlidesV1::DeleteTableColumnRequest::Representation + + property :duplicate_object, as: 'duplicateObject', class: Google::Apis::SlidesV1::DuplicateObjectRequest, decorator: Google::Apis::SlidesV1::DuplicateObjectRequest::Representation + + property :create_line, as: 'createLine', class: Google::Apis::SlidesV1::CreateLineRequest, decorator: Google::Apis::SlidesV1::CreateLineRequest::Representation + + property :update_video_properties, as: 'updateVideoProperties', class: Google::Apis::SlidesV1::UpdateVideoPropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateVideoPropertiesRequest::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 + end end @@ -972,12 +1379,12 @@ module Google 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' - property :outline_fill, as: 'outlineFill', class: Google::Apis::SlidesV1::OutlineFill, decorator: Google::Apis::SlidesV1::OutlineFill::Representation - end end @@ -988,11 +1395,10 @@ module Google end end - class TableColumnProperties + class NotesProperties # @private class Representation < Google::Apis::Core::JsonRepresentation - property :column_width, as: 'columnWidth', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation - + property :speaker_notes_object_id, as: 'speakerNotesObjectId' end end @@ -1010,10 +1416,11 @@ module Google end end - class NotesProperties + class TableColumnProperties # @private class Representation < Google::Apis::Core::JsonRepresentation - property :speaker_notes_object_id, as: 'speakerNotesObjectId' + property :column_width, as: 'columnWidth', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation + end end @@ -1042,12 +1449,12 @@ module Google class CreateSlideRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 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 @@ -1088,11 +1495,11 @@ module Google 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 + property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation + end end @@ -1109,11 +1516,11 @@ module Google 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 + property :insert_right, as: 'insertRight' + property :table_object_id, as: 'tableObjectId' end end @@ -1129,20 +1536,20 @@ module Google class LayoutPlaceholderIdMapping # @private class Representation < Google::Apis::Core::JsonRepresentation - property :object_id_prop, as: 'objectId' 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' end end class UpdateShapePropertiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :fields, as: 'fields' property :object_id_prop, as: 'objectId' property :shape_properties, as: 'shapeProperties', class: Google::Apis::SlidesV1::ShapeProperties, decorator: Google::Apis::SlidesV1::ShapeProperties::Representation - property :fields, as: 'fields' end end @@ -1156,28 +1563,19 @@ module Google class Recolor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' collection :recolor_stops, as: 'recolorStops', class: Google::Apis::SlidesV1::ColorStop, decorator: Google::Apis::SlidesV1::ColorStop::Representation - property :name, as: 'name' end end class Link # @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' - end - end - - class RgbColor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :green, as: 'green' - property :blue, as: 'blue' - property :red, as: 'red' + property :page_object_id, as: 'pageObjectId' end end @@ -1188,6 +1586,15 @@ module Google end end + class RgbColor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :red, as: 'red' + property :green, as: 'green' + property :blue, as: 'blue' + end + end + class CreateLineRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1239,7 +1646,6 @@ module Google class TableCell # @private class Representation < Google::Apis::Core::JsonRepresentation - property :column_span, as: 'columnSpan' property :text, as: 'text', class: Google::Apis::SlidesV1::TextContent, decorator: Google::Apis::SlidesV1::TextContent::Representation property :table_cell_properties, as: 'tableCellProperties', class: Google::Apis::SlidesV1::TableCellProperties, decorator: Google::Apis::SlidesV1::TableCellProperties::Representation @@ -1247,6 +1653,7 @@ module Google 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 @@ -1268,14 +1675,6 @@ module Google end end - class UpdateSlidesPositionRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :slide_object_ids, as: 'slideObjectIds' - property :insertion_index, as: 'insertionIndex' - end - end - class TableCellBackgroundFill # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1285,6 +1684,14 @@ module Google end end + class UpdateSlidesPositionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :insertion_index, as: 'insertionIndex' + collection :slide_object_ids, as: 'slideObjectIds' + end + end + class UpdatePagePropertiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1306,9 +1713,9 @@ module Google class Placeholder # @private class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' property :parent_object_id, as: 'parentObjectId' property :index, as: 'index' + property :type, as: 'type' end end @@ -1332,18 +1739,18 @@ module Google class Page # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 - + property :page_type, as: 'pageType' 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' + 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 - property :slide_properties, as: 'slideProperties', class: Google::Apis::SlidesV1::SlideProperties, decorator: Google::Apis::SlidesV1::SlideProperties::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 end end @@ -1360,11 +1767,11 @@ module Google 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 @@ -1429,8 +1836,6 @@ module Google class Shadow # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 property :transform, as: 'transform', class: Google::Apis::SlidesV1::AffineTransform, decorator: Google::Apis::SlidesV1::AffineTransform::Representation @@ -1440,6 +1845,8 @@ module Google property :alpha, as: 'alpha' property :color, as: 'color', class: Google::Apis::SlidesV1::OpaqueColor, decorator: Google::Apis::SlidesV1::OpaqueColor::Representation + property :rotate_with_shape, as: 'rotateWithShape' + property :property_state, as: 'propertyState' end end @@ -1455,11 +1862,11 @@ module Google class Bullet # @private class Representation < Google::Apis::Core::JsonRepresentation + 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' - property :bullet_style, as: 'bulletStyle', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation - end end @@ -1496,14 +1903,14 @@ module Google class UpdateParagraphStyleRequest # @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 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 + end end @@ -1514,413 +1921,6 @@ module Google end end - - 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 :shape_properties, as: 'shapeProperties', class: Google::Apis::SlidesV1::ShapeProperties, decorator: Google::Apis::SlidesV1::ShapeProperties::Representation - - end - end - - class Image - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 :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' - property :translate_y, as: 'translateY' - end - end - - class InsertTextRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :object_id_prop, as: 'objectId' - property :text, as: 'text' - property :insertion_index, as: 'insertionIndex' - property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation - - end - end - - class AutoText - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :content, as: 'content' - property :style, as: 'style', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation - - end - end - - class CreateVideoResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :object_id_prop, as: 'objectId' - 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 :apply_mode, as: 'applyMode' - 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 DeleteObjectRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :object_id_prop, as: 'objectId' - end - end - - class TextElement - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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' - 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 - - end - end - - class Dimension - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :magnitude, as: 'magnitude' - property :unit, as: 'unit' - end - end - - class LineFill - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :solid_fill, as: 'solidFill', class: Google::Apis::SlidesV1::SolidFill, decorator: Google::Apis::SlidesV1::SolidFill::Representation - - end - end - - class VideoProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation - - end - end - - class InsertTableRowsRequest - # @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 :table_object_id, as: 'tableObjectId' - property :insert_below, as: 'insertBelow' - end - end - - class LayoutProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :display_name, as: 'displayName' - property :master_object_id, as: 'masterObjectId' - property :name, as: 'name' - end - end - - class LineProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 :dash_style, as: 'dashStyle' - property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation - - end - end - - class Presentation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - property :title, as: 'title' - collection :layouts, as: 'layouts', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation - - property :locale, as: 'locale' - collection :masters, as: 'masters', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation - - property :page_size, as: 'pageSize', class: Google::Apis::SlidesV1::Size, decorator: Google::Apis::SlidesV1::Size::Representation - - property :presentation_id, as: 'presentationId' - end - end - - class OpaqueColor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :theme_color, as: 'themeColor' - property :rgb_color, as: 'rgbColor', class: Google::Apis::SlidesV1::RgbColor, decorator: Google::Apis::SlidesV1::RgbColor::Representation - - end - end - - class ImageProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :transparency, as: 'transparency' - 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 - - property :contrast, as: 'contrast' - property :recolor, as: 'recolor', class: Google::Apis::SlidesV1::Recolor, decorator: Google::Apis::SlidesV1::Recolor::Representation - - property :crop_properties, as: 'cropProperties', class: Google::Apis::SlidesV1::CropProperties, decorator: Google::Apis::SlidesV1::CropProperties::Representation - - property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation - - property :brightness, as: 'brightness' - end - end - - class ReplaceAllShapesWithImageResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :occurrences_changed, as: 'occurrencesChanged' - end - end - - class Line - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :line_type, as: 'lineType' - property :line_properties, as: 'lineProperties', class: Google::Apis::SlidesV1::LineProperties, decorator: Google::Apis::SlidesV1::LineProperties::Representation - - 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 :spreadsheet_id, as: 'spreadsheetId' - property :linking_mode, as: 'linkingMode' - 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 :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 :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 - - 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 :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 - - end - end - - class SubstringMatchCriteria - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :text, as: 'text' - property :match_case, as: 'matchCase' - end - end - - class LayoutReference - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :predefined_layout, as: 'predefinedLayout' - property :layout_id, as: 'layoutId' - 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 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 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 CreateTableResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :object_id_prop, as: 'objectId' - 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 :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 :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 end end end diff --git a/generated/google/apis/slides_v1/service.rb b/generated/google/apis/slides_v1/service.rb index 422de0adb..d668b699e 100644 --- a/generated/google/apis/slides_v1/service.rb +++ b/generated/google/apis/slides_v1/service.rb @@ -46,45 +46,15 @@ module Google super('https://slides.googleapis.com/', '') end - # Gets the latest version of the specified presentation. - # @param [String] presentation_id - # The ID of the presentation to retrieve. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not 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 get_presentation(presentation_id, quota_user: nil, fields: 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] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -97,14 +67,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_presentation(presentation_object = nil, quota_user: nil, fields: nil, options: nil, &block) + 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['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 @@ -128,11 +98,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 # @@ -145,48 +115,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 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 - # Gets the latest version of the specified page in the presentation. + # Gets the latest version of the specified presentation. # @param [String] presentation_id # 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 # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SlidesV1::Page] parsed result object + # @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SlidesV1::Page] + # @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 get_presentation_page(presentation_id, page_object_id, quota_user: nil, fields: 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 + 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.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 @@ -203,11 +170,11 @@ module Google # The optional thumbnail image size. # If you don't specify the size, the server chooses a default size of the # image. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -220,7 +187,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_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_mime_type: nil, thumbnail_properties_thumbnail_size: 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 @@ -228,8 +195,41 @@ module Google 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['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest version of the specified page in the presentation. + # @param [String] presentation_id + # 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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SlidesV1::Page] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SlidesV1::Page] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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['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 8ee18da77..2687e4e42 100644 --- a/generated/google/apis/sourcerepo_v1/classes.rb +++ b/generated/google/apis/sourcerepo_v1/classes.rb @@ -22,416 +22,6 @@ module Google module Apis module SourcerepoV1 - # 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 - - # 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 - - # - # 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. - # - If any DENY/DENY_WITH_LOG rule matches, permission is denied. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - # granted. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if no rule applies, permission is denied. - # Corresponds to the JSON property `rules` - # @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`. - # 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` - # @return [String] - attr_accessor :etag - - def initialize(**args) - update!(**args) - end - - # 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 - - # 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. - # An AuditConifg 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 `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::SourcerepoV1::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 - - # 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 - - # 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 - - # 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 - include Google::Apis::Core::Hashable - - # URL of the main repository at the other hosting service. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # ID of the webhook listening to updates to trigger mirroring. - # Removing this webook from the other hosting service will stop - # Google Cloud Source Repositories from receiving notifications, - # and thereby disabling mirroring. - # Corresponds to the JSON property `webhookId` - # @return [String] - attr_accessor :webhook_id - - # ID of the SSH deploy key at the other hosting service. - # Removing this key from the other service would deauthorize - # Google Cloud Source Repositories from mirroring. - # Corresponds to the JSON property `deployKeyId` - # @return [String] - attr_accessor :deploy_key_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @url = args[:url] if args.key?(:url) - @webhook_id = args[:webhook_id] if args.key?(:webhook_id) - @deploy_key_id = args[:deploy_key_id] if args.key?(:deploy_key_id) - end - end - - # A repository (or repo) is a Git repository storing versioned source content. - class Repo - include Google::Apis::Core::Hashable - - # Configuration to automatically mirror a repository from another - # hosting service, for example GitHub or BitBucket. - # Corresponds to the JSON property `mirrorConfig` - # @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 size in bytes of the repo. - # Corresponds to the JSON property `size` - # @return [String] - attr_accessor :size - - # Resource name of the repository, of the form - # `projects//repos/`. - # 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) - @mirror_config = args[:mirror_config] if args.key?(:mirror_config) - @url = args[:url] if args.key?(:url) - @size = args[:size] if args.key?(:size) - @name = args[:name] if args.key?(:name) - end - end - # Response message for `TestIamPermissions` method. class TestIamPermissionsResponse include Google::Apis::Core::Hashable @@ -593,11 +183,6 @@ module Google 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` @@ -635,19 +220,24 @@ module Google # @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) - @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) + @conditions = args[:conditions] if args.key?(:conditions) end end @@ -681,6 +271,417 @@ module Google @counter = args[:counter] if args.key?(:counter) 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 + + # 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 + + # + # 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. + # - If any DENY/DENY_WITH_LOG rule matches, permission is denied. + # Logging will be applied if one or more matching rule requires logging. + # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is + # granted. + # Logging will be applied if one or more matching rule requires logging. + # - Otherwise, if no rule applies, permission is denied. + # Corresponds to the JSON property `rules` + # @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`. + # 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 + + 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) + 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. + # An AuditConifg 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 + + # 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::SourcerepoV1::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 + + # 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 + + # 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 + + # 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 + include Google::Apis::Core::Hashable + + # URL of the main repository at the other hosting service. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # ID of the webhook listening to updates to trigger mirroring. + # Removing this webook from the other hosting service will stop + # Google Cloud Source Repositories from receiving notifications, + # and thereby disabling mirroring. + # Corresponds to the JSON property `webhookId` + # @return [String] + attr_accessor :webhook_id + + # ID of the SSH deploy key at the other hosting service. + # Removing this key from the other service would deauthorize + # Google Cloud Source Repositories from mirroring. + # Corresponds to the JSON property `deployKeyId` + # @return [String] + attr_accessor :deploy_key_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url = args[:url] if args.key?(:url) + @webhook_id = args[:webhook_id] if args.key?(:webhook_id) + @deploy_key_id = args[:deploy_key_id] if args.key?(:deploy_key_id) + 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 size in bytes of the repo. + # Corresponds to the JSON property `size` + # @return [String] + attr_accessor :size + + # Resource name of the repository, of the form + # `projects//repos/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Configuration to automatically mirror a repository from another + # hosting service, for example GitHub or BitBucket. + # Corresponds to the JSON property `mirrorConfig` + # @return [Google::Apis::SourcerepoV1::MirrorConfig] + attr_accessor :mirror_config + + 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) + end + end end end end diff --git a/generated/google/apis/sourcerepo_v1/representations.rb b/generated/google/apis/sourcerepo_v1/representations.rb index c318ed79d..a2566da57 100644 --- a/generated/google/apis/sourcerepo_v1/representations.rb +++ b/generated/google/apis/sourcerepo_v1/representations.rb @@ -22,66 +22,6 @@ module Google module Apis module SourcerepoV1 - 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 DataAccessOptions - 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 SetIamPolicyRequest - 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 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 MirrorConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Repo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class TestIamPermissionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -125,90 +65,63 @@ module Google 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 Policy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :iam_owned, as: 'iamOwned' - collection :rules, as: 'rules', class: Google::Apis::SourcerepoV1::Rule, decorator: Google::Apis::SourcerepoV1::Rule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :version, as: 'version' - collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SourcerepoV1::AuditConfig, decorator: Google::Apis::SourcerepoV1::AuditConfig::Representation - - collection :bindings, as: 'bindings', class: Google::Apis::SourcerepoV1::Binding, decorator: Google::Apis::SourcerepoV1::Binding::Representation - - property :etag, :base64 => true, as: 'etag' - 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 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::SourcerepoV1::AuditLogConfig, decorator: Google::Apis::SourcerepoV1::AuditLogConfig::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class SetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::SourcerepoV1::Policy, decorator: Google::Apis::SourcerepoV1::Policy::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :update_mask, as: 'updateMask' - 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 Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :members, as: 'members' - property :role, as: 'role' - end + class Representation < Google::Apis::Core::JsonRepresentation; 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 MirrorConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :url, as: 'url' - property :webhook_id, as: 'webhookId' - property :deploy_key_id, as: 'deployKeyId' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Repo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :url, as: 'url' - property :size, as: 'size' - property :name, as: 'name' - end + include Google::Apis::Core::JsonObjectSupport end class TestIamPermissionsResponse @@ -257,8 +170,6 @@ module Google class Rule # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :conditions, as: 'conditions', class: Google::Apis::SourcerepoV1::Condition, decorator: Google::Apis::SourcerepoV1::Condition::Representation - collection :log_config, as: 'logConfig', class: Google::Apis::SourcerepoV1::LogConfig, decorator: Google::Apis::SourcerepoV1::LogConfig::Representation collection :in, as: 'in' @@ -266,6 +177,8 @@ module Google property :action, as: 'action' collection :not_in, as: 'notIn' property :description, as: 'description' + collection :conditions, as: 'conditions', class: Google::Apis::SourcerepoV1::Condition, decorator: Google::Apis::SourcerepoV1::Condition::Representation + end end @@ -280,6 +193,93 @@ module Google end end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + 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::SourcerepoV1::Rule, decorator: Google::Apis::SourcerepoV1::Rule::Representation + + property :version, as: 'version' + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SourcerepoV1::AuditConfig, decorator: Google::Apis::SourcerepoV1::AuditConfig::Representation + + collection :bindings, as: 'bindings', class: Google::Apis::SourcerepoV1::Binding, decorator: Google::Apis::SourcerepoV1::Binding::Representation + + end + end + + class DataAccessOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update_mask, as: 'updateMask' + property :policy, as: 'policy', class: Google::Apis::SourcerepoV1::Policy, decorator: Google::Apis::SourcerepoV1::Policy::Representation + + end + end + + class CloudAuditOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class MirrorConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :webhook_id, as: 'webhookId' + property :deploy_key_id, as: 'deployKeyId' + end + end + + class Repo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :size, as: 'size' + property :name, as: 'name' + property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation + + end + end end end end diff --git a/generated/google/apis/sourcerepo_v1/service.rb b/generated/google/apis/sourcerepo_v1/service.rb index 14d4cf7ce..7d1d7deb5 100644 --- a/generated/google/apis/sourcerepo_v1/service.rb +++ b/generated/google/apis/sourcerepo_v1/service.rb @@ -32,62 +32,32 @@ module Google # # @see https://cloud.google.com/eap/cloud-repositories/cloud-sourcerepo-api class CloudSourceRepositoriesService < 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://sourcerepo.googleapis.com/', '') 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. + # Creates a repo in the given project with the given name.. + # If the named repository already exists, `CreateRepo` returns + # `ALREADY_EXISTS`. + # @param [String] parent + # The project in which to create the repo. Values are of the form + # `projects/`. + # @param [Google::Apis::SourcerepoV1::Repo] repo_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 [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 get_project_repo_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::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 - - # Returns information about a repo. - # @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 [Google::Apis::RequestOptions] options # Request-specific options # @@ -100,13 +70,114 @@ 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 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['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 + + # 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::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 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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Returns information about a repo. + # @param [String] name + # The name of the requested repository. Values are of the form + # `projects//repos/`. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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::Repo] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SourcerepoV1::Repo] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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 @@ -117,11 +188,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 # @@ -134,15 +205,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 @@ -150,11 +221,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 # @@ -167,13 +238,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 @@ -181,11 +252,11 @@ module Google # @param [String] name # The project ID whose repos should be listed. Values are of the form # `projects/`. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -198,92 +269,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_project_repos(name, fields: nil, quota_user: nil, options: nil, &block) + def list_project_repos(name, 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['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::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 - - # Creates a repo in the given project with the given name.. - # If the named repository already exists, `CreateRepo` returns - # `ALREADY_EXISTS`. - # @param [String] parent - # 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 [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SourcerepoV1::Repo] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SourcerepoV1::Repo] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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) - 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? 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/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb index e7de88d68..aa52eb819 100644 --- a/generated/google/apis/spanner_v1/classes.rb +++ b/generated/google/apis/spanner_v1/classes.rb @@ -22,26 +22,21 @@ module Google module Apis module SpannerV1 - # `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 + # The response for ListInstanceConfigs. + class ListInstanceConfigsResponse 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` + # `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 :code + 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) @@ -49,445 +44,8 @@ module Google # 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 - - # 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 - - # The display name for the node. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # 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 - - # List of child node `index`es and their relationship to this parent. - # Corresponds to the JSON property `childLinks` - # @return [Array] - attr_accessor :child_links - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @display_name = args[:display_name] if args.key?(:display_name) - @kind = args[:kind] if args.key?(:kind) - @child_links = args[:child_links] if args.key?(:child_links) - end - end - - # Specifies the audit configuration for a service. - # It consists of which permission types are logged, and what identities, if - # any, are exempted from logging. - # An AuditConifg must have one or more AuditLogConfigs. - class AuditConfig - include Google::Apis::Core::Hashable - - # Specifies a service that will be enabled for audit logging. - # For example, `resourcemanager`, `storage`, `compute`. - # `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 - - # Specifies the identities that are exempted from "data access" audit - # logging for the `service` specified above. - # Follows the same format of Binding.members. - # This field is deprecated in favor of per-permission-type exemptions. - # 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 - - # Metadata type for the operation returned by - # CreateInstance. - class CreateInstanceMetadata - 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 - - # The time at which the - # CreateInstance request was - # received. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_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 this operation failed or was completed successfully. - # 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) - @instance = args[:instance] if args.key?(:instance) - @start_time = args[:start_time] if args.key?(:start_time) - @cancel_time = args[:cancel_time] if args.key?(:cancel_time) - @end_time = args[:end_time] if args.key?(:end_time) - end - end - - # Metadata associated with a parent-child relationship appearing in a - # PlanNode. - class ChildLink - include Google::Apis::Core::Hashable - - # 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 - - # 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) - @child_index = args[:child_index] if args.key?(:child_index) - @variable = args[:variable] if args.key?(:variable) - @type = args[:type] if args.key?(:type) - 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 - - # `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 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` - # @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) + @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 @@ -677,21 +235,210 @@ module Google end end - # The response for ListInstanceConfigs. - class ListInstanceConfigsResponse + # The request for Commit. + class CommitRequest 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 + # # 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 list of requested instance configurations. - # Corresponds to the JSON property `instanceConfigs` - # @return [Array] - attr_accessor :instance_configs + # 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) @@ -699,8 +446,6 @@ module Google # 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 @@ -724,19 +469,6 @@ 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 - # Metadata type for the operation returned by # CreateDatabase. class CreateDatabaseMetadata @@ -761,14 +493,6 @@ module Google 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] @@ -803,19 +527,27 @@ module Google # @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) - @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) + @not_in = args[:not_in] if args.key?(:not_in) end end @@ -840,11 +572,6 @@ module Google class LogConfig include Google::Apis::Core::Hashable - # Write a Cloud Audit log - # Corresponds to the JSON property `cloudAudit` - # @return [Google::Apis::SpannerV1::CloudAuditOptions] - attr_accessor :cloud_audit - # Options for counters # Corresponds to the JSON property `counter` # @return [Google::Apis::SpannerV1::CounterOptions] @@ -855,15 +582,20 @@ module Google # @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) - @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 @@ -975,6 +707,12 @@ module Google class KeyRange include Google::Apis::Core::Hashable + # 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 + # 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` @@ -993,22 +731,16 @@ module Google # @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) + @end_closed = args[:end_closed] if args.key?(:end_closed) @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 @@ -1315,13 +1047,6 @@ module Google class CreateDatabaseRequest include Google::Apis::Core::Hashable - # Required. A `CREATE DATABASE` statement, which specifies the ID of the - # new database. The database ID must conform to the regular expression - # `a-z*[a-z0-9]` and be between 2 and 30 characters in length. - # Corresponds to the JSON property `createStatement` - # @return [String] - attr_accessor :create_statement - # An optional list of DDL statements to run inside the newly created # database. Statements can create tables, indexes, etc. These # statements execute atomically with the creation of the database: @@ -1330,14 +1055,21 @@ module Google # @return [Array] attr_accessor :extra_statements + # Required. A `CREATE DATABASE` statement, which specifies the ID of the + # new database. The database ID must conform to the regular expression + # `a-z*[a-z0-9]` and be between 2 and 30 characters in length. + # Corresponds to the JSON property `createStatement` + # @return [String] + attr_accessor :create_statement + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @create_statement = args[:create_statement] if args.key?(:create_statement) @extra_statements = args[:extra_statements] if args.key?(:extra_statements) + @create_statement = args[:create_statement] if args.key?(:create_statement) end end @@ -1345,6 +1077,11 @@ module Google class CreateInstanceRequest 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. The ID of the instance to create. Valid identifiers are of the # form `a-z*[a-z0-9]` and must be between 6 and 30 characters in # length. @@ -1352,19 +1089,14 @@ module Google # @return [String] attr_accessor :instance_id - # 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_id = args[:instance_id] if args.key?(:instance_id) @instance = args[:instance] if args.key?(:instance) + @instance_id = args[:instance_id] if args.key?(:instance_id) end end @@ -1372,11 +1104,6 @@ module Google 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] @@ -1403,18 +1130,23 @@ module Google # @return [String] attr_accessor :iam + # An operator to apply the subject with. + # 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) @svc = args[:svc] if args.key?(:svc) @value = args[:value] if args.key?(:value) @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 @@ -1465,6 +1197,15 @@ module Google class ReadOnly include Google::Apis::Core::Hashable + # 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 + # previously committed transaction whose timestamp is known. + # Note that this option can only be used in single-use transactions. + # Corresponds to the JSON property `minReadTimestamp` + # @return [String] + attr_accessor :min_read_timestamp + # Read data at a timestamp >= `NOW - max_staleness` # seconds. Guarantees that all writes that have committed more # than the specified number of seconds ago are visible. Because @@ -1519,27 +1260,18 @@ module Google 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 - # previously committed transaction whose timestamp is known. - # Note that this option can only be used in single-use transactions. - # Corresponds to the JSON property `minReadTimestamp` - # @return [String] - attr_accessor :min_read_timestamp - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) - @min_read_timestamp = args[:min_read_timestamp] if args.key?(:min_read_timestamp) end end @@ -1569,6 +1301,7 @@ module Google # off. The rest of the request parameters must exactly match the # request that yielded this token. # Corresponds to the JSON property `resumeToken` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :resume_token @@ -1647,25 +1380,6 @@ module Google class Policy include Google::Apis::Core::Hashable - # - # 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. - # - If any DENY/DENY_WITH_LOG rule matches, permission is denied. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - # granted. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if no rule applies, permission is denied. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - # Version of the `Policy`. The default version is 0. # Corresponds to the JSON property `version` # @return [Fixnum] @@ -1693,21 +1407,41 @@ module Google # 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. + # - If any DENY/DENY_WITH_LOG rule matches, permission is denied. + # Logging will be applied if one or more matching rule requires logging. + # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is + # granted. + # Logging will be applied if one or more matching rule requires logging. + # - Otherwise, if no rule applies, permission is denied. + # 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) - @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) + @rules = args[:rules] if args.key?(:rules) end end @@ -1716,6 +1450,30 @@ module Google class ReadRequest include Google::Apis::Core::Hashable + # This message is used to select the transaction in which a + # Read or + # ExecuteSql call runs. + # See TransactionOptions for more information about transactions. + # Corresponds to the JSON property `transaction` + # @return [Google::Apis::SpannerV1::TransactionSelector] + attr_accessor :transaction + + # If this request is resuming a previously interrupted read, + # `resume_token` should be copied from the last + # PartialResultSet yielded before the interruption. Doing this + # enables the new read to resume where the last read left off. The + # rest of the request parameters must exactly match the request + # that yielded this token. + # Corresponds to the JSON property `resumeToken` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :resume_token + + # Required. The name of the table in the database to be read. + # Corresponds to the JSON property `table` + # @return [String] + attr_accessor :table + # If greater than zero, only the first `limit` rows are yielded. If `limit` # is zero, the default is no limit. # Corresponds to the JSON property `limit` @@ -1745,42 +1503,19 @@ module Google # @return [Array] attr_accessor :columns - # This message is used to select the transaction in which a - # Read or - # ExecuteSql call runs. - # See TransactionOptions for more information about transactions. - # Corresponds to the JSON property `transaction` - # @return [Google::Apis::SpannerV1::TransactionSelector] - attr_accessor :transaction - - # If this request is resuming a previously interrupted read, - # `resume_token` should be copied from the last - # PartialResultSet yielded before the interruption. Doing this - # enables the new read to resume where the last read left off. The - # rest of the request parameters must exactly match the request - # that yielded this token. - # Corresponds to the JSON property `resumeToken` - # @return [String] - attr_accessor :resume_token - - # Required. The name of the table in the database to be read. - # 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) + @transaction = args[:transaction] if args.key?(:transaction) + @resume_token = args[:resume_token] if args.key?(:resume_token) + @table = args[:table] if args.key?(:table) @limit = args[:limit] if args.key?(:limit) @index = args[:index] if args.key?(:index) @key_set = args[:key_set] if args.key?(:key_set) @columns = args[:columns] if args.key?(:columns) - @transaction = args[:transaction] if args.key?(:transaction) - @resume_token = args[:resume_token] if args.key?(:resume_token) - @table = args[:table] if args.key?(:table) end end @@ -1789,6 +1524,11 @@ module Google class Write include Google::Apis::Core::Hashable + # Required. The table whose rows will be written. + # Corresponds to the JSON property `table` + # @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 @@ -1809,20 +1549,15 @@ module Google # @return [Array>] attr_accessor :values - # Required. The table whose rows will be written. - # 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) + @table = args[:table] if args.key?(:table) @columns = args[:columns] if args.key?(:columns) @values = args[:values] if args.key?(:values) - @table = args[:table] if args.key?(:table) end end @@ -1857,14 +1592,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 @@ -1935,17 +1662,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) + @done = args[:done] if args.key?(:done) end end @@ -1954,11 +1689,6 @@ module Google 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 @@ -1974,15 +1704,20 @@ module Google # @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 + 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) + @stats = args[:stats] if args.key?(:stats) end end @@ -2028,13 +1763,6 @@ 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` @@ -2046,15 +1774,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 @@ -2165,6 +1900,7 @@ module Google # `resume_token`. Note that executing any other transaction in the # same session invalidates the token. # Corresponds to the JSON property `resumeToken` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :resume_token @@ -2263,31 +1999,6 @@ module Google 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 - # Metadata type for the operation returned by # UpdateInstance. class UpdateInstanceMetadata @@ -2329,6 +2040,31 @@ module Google 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 + # Metadata about a ResultSet or PartialResultSet. class ResultSetMetadata include Google::Apis::Core::Hashable @@ -2361,6 +2097,12 @@ module Google class TransactionSelector include Google::Apis::Core::Hashable + # Execute the read or SQL query in a previously-started transaction. + # Corresponds to the JSON property `id` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :id + # # Transactions # Each session can have at most one active transaction at a time. After the # active transaction is completed, the session can immediately be @@ -2705,20 +2447,15 @@ module Google # @return [Google::Apis::SpannerV1::TransactionOptions] attr_accessor :begin - # Execute the read or SQL query in a previously-started transaction. - # 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) @single_use = args[:single_use] if args.key?(:single_use) @begin = args[:begin] if args.key?(:begin) - @id = args[:id] if args.key?(:id) end end @@ -2780,6 +2517,12 @@ module Google 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 @@ -2796,21 +2539,15 @@ module Google attr_accessor :all alias_method :all?, :all - # 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 - 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) - @ranges = args[:ranges] if args.key?(:ranges) end end @@ -2863,10 +2600,118 @@ module Google 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, a 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 number of nodes allocated to this instance. + # 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 @@ -2898,126 +2743,18 @@ module Google # @return [String] attr_accessor :display_name - # Required. The number of nodes allocated to this instance. - # 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) + @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) @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 - - # 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, a 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::SpannerV1::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 - - # 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 @@ -3027,6 +2764,7 @@ module Google # 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 @@ -3059,6 +2797,7 @@ module Google # 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 @@ -3210,6 +2949,27 @@ module Google 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 @@ -3242,27 +3002,6 @@ module Google 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 @@ -3281,6 +3020,275 @@ module Google @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 + + # 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 + + # The display name for the node. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # 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 + + # List of child node `index`es and their relationship to this parent. + # Corresponds to the JSON property `childLinks` + # @return [Array] + attr_accessor :child_links + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @display_name = args[:display_name] if args.key?(:display_name) + @kind = args[:kind] if args.key?(:kind) + @child_links = args[:child_links] if args.key?(:child_links) + end + end + + # Specifies the audit configuration for a service. + # It consists of which permission types are logged, and what identities, if + # any, are exempted from logging. + # An AuditConifg must have one or more AuditLogConfigs. + class AuditConfig + include Google::Apis::Core::Hashable + + # Specifies the identities that are exempted from "data access" audit + # logging for the `service` specified above. + # Follows the same format of Binding.members. + # This field is deprecated in favor of per-permission-type exemptions. + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # Specifies a service that will be enabled for audit logging. + # For example, `resourcemanager`, `storage`, `compute`. + # `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 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 + + # Metadata associated with a parent-child relationship appearing in a + # PlanNode. + class ChildLink + include Google::Apis::Core::Hashable + + # 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 + + # 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) + @child_index = args[:child_index] if args.key?(:child_index) + @variable = args[:variable] if args.key?(:variable) + @type = args[:type] if args.key?(:type) + 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 end end end diff --git a/generated/google/apis/spanner_v1/representations.rb b/generated/google/apis/spanner_v1/representations.rb index 427440c5f..fc084623e 100644 --- a/generated/google/apis/spanner_v1/representations.rb +++ b/generated/google/apis/spanner_v1/representations.rb @@ -22,49 +22,7 @@ module Google module Apis module SpannerV1 - 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 AuditConfig - 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 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 CommitRequest + class ListInstanceConfigsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -76,13 +34,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListInstanceConfigsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TestIamPermissionsResponse + class CommitRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -94,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CreateDatabaseMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -262,13 +220,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListOperationsResponse + class UpdateInstanceMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class UpdateInstanceMetadata + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -310,7 +268,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Instance + class ListDatabasesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -322,7 +280,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListDatabasesResponse + class Instance class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -370,13 +328,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ResultSetStats + class TestIamPermissionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsRequest + class ResultSetStats class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -389,73 +347,61 @@ module Google 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 - 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :index, as: 'index' - property :display_name, as: 'displayName' - property :kind, as: 'kind' - collection :child_links, as: 'childLinks', class: Google::Apis::SpannerV1::ChildLink, decorator: Google::Apis::SpannerV1::ChildLink::Representation - - 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::SpannerV1::AuditLogConfig, decorator: Google::Apis::SpannerV1::AuditLogConfig::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :exempted_members, as: 'exemptedMembers' - end + include Google::Apis::Core::JsonObjectSupport end class CreateInstanceMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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' - property :cancel_time, as: 'cancelTime' - property :end_time, as: 'endTime' - end + include Google::Apis::Core::JsonObjectSupport end class ChildLink - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :child_index, as: 'childIndex' - property :variable, as: 'variable' - property :type, as: 'type' - 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 Delete + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListInstanceConfigsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation + 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 - property :table, as: 'table' end end @@ -470,20 +416,9 @@ module Google end end - class BeginTransactionRequest + class GetIamPolicyRequest # @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 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 @@ -494,12 +429,6 @@ module Google end end - class GetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class CreateDatabaseMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -510,7 +439,6 @@ module Google 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 @@ -519,18 +447,19 @@ module Google 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 :cloud_audit, as: 'cloudAudit', class: Google::Apis::SpannerV1::CloudAuditOptions, decorator: Google::Apis::SpannerV1::CloudAuditOptions::Representation - 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 @@ -553,10 +482,10 @@ module Google class KeyRange # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :end_closed, as: 'endClosed' collection :start_closed, as: 'startClosed' collection :start_open, as: 'startOpen' collection :end_open, as: 'endOpen' - collection :end_closed, as: 'endClosed' end end @@ -604,29 +533,29 @@ module Google class CreateDatabaseRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :create_statement, as: 'createStatement' collection :extra_statements, as: 'extraStatements' + property :create_statement, as: 'createStatement' end end class CreateInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :instance_id, as: 'instanceId' property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation + property :instance_id, as: 'instanceId' end end class Condition # @private class Representation < Google::Apis::Core::JsonRepresentation - property :op, as: 'op' property :svc, as: 'svc' property :value, as: 'value' property :sys, as: 'sys' collection :values, as: 'values' property :iam, as: 'iam' + property :op, as: 'op' end end @@ -641,12 +570,12 @@ module Google class ReadOnly # @private class Representation < Google::Apis::Core::JsonRepresentation + 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' - property :min_read_timestamp, as: 'minReadTimestamp' end end @@ -667,43 +596,43 @@ module Google class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :iam_owned, as: 'iamOwned' - collection :rules, as: 'rules', class: Google::Apis::SpannerV1::Rule, decorator: Google::Apis::SpannerV1::Rule::Representation - property :version, as: 'version' collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SpannerV1::AuditConfig, decorator: Google::Apis::SpannerV1::AuditConfig::Representation 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' + collection :rules, as: 'rules', class: Google::Apis::SpannerV1::Rule, decorator: Google::Apis::SpannerV1::Rule::Representation + end end class ReadRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation + + property :resume_token, :base64 => true, as: 'resumeToken' + property :table, as: 'table' property :limit, as: 'limit' property :index, as: 'index' property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation collection :columns, as: 'columns' - property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation - - property :resume_token, :base64 => true, as: 'resumeToken' - property :table, as: 'table' end end class Write # @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 - property :table, as: 'table' end end @@ -722,20 +651,18 @@ module Google 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::SpannerV1::Status, decorator: Google::Apis::SpannerV1::Status::Representation hash :metadata, as: 'metadata' + property :done, as: 'done' end end class ResultSet # @private class Representation < Google::Apis::Core::JsonRepresentation - property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation - collection :rows, as: 'rows', :class => Array do include Representable::JSON::Collection items @@ -743,15 +670,17 @@ module Google 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 + 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 @@ -784,15 +713,6 @@ module Google end end - class ListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :operations, as: 'operations', class: Google::Apis::SpannerV1::Operation, decorator: Google::Apis::SpannerV1::Operation::Representation - - end - end - class UpdateInstanceMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -804,6 +724,15 @@ module Google end end + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::SpannerV1::Operation, decorator: Google::Apis::SpannerV1::Operation::Representation + + end + end + class ResultSetMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -817,11 +746,11 @@ module Google class TransactionSelector # @private class Representation < Google::Apis::Core::JsonRepresentation + property :id, :base64 => true, as: 'id' property :single_use, as: 'singleUse', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation property :begin, as: 'begin', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation - property :id, :base64 => true, as: 'id' end end @@ -844,14 +773,14 @@ module Google 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' - collection :ranges, as: 'ranges', class: Google::Apis::SpannerV1::KeyRange, decorator: Google::Apis::SpannerV1::KeyRange::Representation - end end @@ -870,27 +799,6 @@ module Google end 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 - end - - class SetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :update_mask, as: 'updateMask' - property :policy, as: 'policy', class: Google::Apis::SpannerV1::Policy, decorator: Google::Apis::SpannerV1::Policy::Representation - - end - end - class ListDatabasesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -900,6 +808,27 @@ module Google 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 Instance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_count, as: 'nodeCount' + hash :labels, as: 'labels' + property :config, as: 'config' + property :state, as: 'state' + property :name, as: 'name' + property :display_name, as: 'displayName' + end + end + class RollbackRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -957,6 +886,13 @@ module Google 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 @@ -966,19 +902,83 @@ module Google end end - class TestIamPermissionsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - 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 + 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 :display_name, as: 'displayName' + property :kind, as: 'kind' + collection :child_links, as: 'childLinks', class: Google::Apis::SpannerV1::ChildLink, decorator: Google::Apis::SpannerV1::ChildLink::Representation + + 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::SpannerV1::AuditLogConfig, decorator: Google::Apis::SpannerV1::AuditLogConfig::Representation + + end + 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 + + property :start_time, as: 'startTime' + end + end + + class ChildLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :child_index, as: 'childIndex' + property :variable, as: 'variable' + property :type, as: 'type' + end + end + + class CloudAuditOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + 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 + + end + end end end end diff --git a/generated/google/apis/spanner_v1/service.rb b/generated/google/apis/spanner_v1/service.rb index 4fd465d33..6bcabccdd 100644 --- a/generated/google/apis/spanner_v1/service.rb +++ b/generated/google/apis/spanner_v1/service.rb @@ -88,13 +88,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: @@ -112,6 +105,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] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -129,53 +129,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_project_instances(parent, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_instances(parent, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: 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['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 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -241,6 +202,45 @@ module Google 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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @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, fields: nil, quota_user: 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['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 instance resource. Returns an empty # policy if an instance exists but does not have a policy set. # Authorization requires `spanner.instances.getIamPolicy` on @@ -418,6 +418,158 @@ 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. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on a 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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @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, fields: nil, quota_user: 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['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 database resource. Returns an empty # policy if a database exists but does not have a policy set. # Authorization requires `spanner.databases.getIamPolicy` permission on @@ -597,158 +749,6 @@ 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. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on a 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['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 @@ -827,12 +827,12 @@ module Google # 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] filter - # The standard list filter. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -850,14 +850,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_project_instance_database_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_instance_database_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::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['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) @@ -895,189 +895,6 @@ module Google 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 - # 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 SQL query should be performed. - # @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_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::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 execute_project_instance_database_session_streaming_sql(session, execute_sql_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+session}:executeStreamingSql', options) - command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation - command.request_object = execute_sql_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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Commits a transaction. The request includes the mutations to be - # applied to rows in the database. - # `Commit` might return an `ABORTED` error. This can occur at any time; - # commonly, the cause is conflicts with concurrent - # transactions. However, it can also happen for a variety of other - # reasons. If `Commit` returns `ABORTED`, the caller should re-attempt - # the transaction from the beginning, re-using the same session. - # @param [String] session - # Required. The session in which the transaction to be committed is running. - # @param [Google::Apis::SpannerV1::CommitRequest] commit_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::SpannerV1::CommitResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpannerV1::CommitResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def commit_session(session, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+session}:commit', options) - command.request_representation = Google::Apis::SpannerV1::CommitRequest::Representation - command.request_object = commit_request_object - command.response_representation = Google::Apis::SpannerV1::CommitResponse::Representation - command.response_class = Google::Apis::SpannerV1::CommitResponse - command.params['session'] = session unless session.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Begins a new transaction. This step can often be skipped: - # Read, ExecuteSql and - # Commit can begin a new transaction as a - # side-effect. - # @param [String] session - # Required. The session in which the transaction runs. - # @param [Google::Apis::SpannerV1::BeginTransactionRequest] begin_transaction_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::SpannerV1::Transaction] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpannerV1::Transaction] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def begin_session_transaction(session, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+session}:beginTransaction', options) - command.request_representation = Google::Apis::SpannerV1::BeginTransactionRequest::Representation - command.request_object = begin_transaction_request_object - command.response_representation = Google::Apis::SpannerV1::Transaction::Representation - command.response_class = Google::Apis::SpannerV1::Transaction - command.params['session'] = session unless session.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.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 - # a `FAILED_PRECONDITION` error. - # Queries 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 fetched in streaming fashion by calling - # ExecuteStreamingSql instead. - # @param [String] session - # Required. The session in which the SQL query should be performed. - # @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_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::SpannerV1::ResultSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @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 execute_session_sql(session, execute_sql_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+session}:executeSql', options) - command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation - command.request_object = execute_sql_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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - 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 @@ -1274,6 +1091,189 @@ 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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.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 + # 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 SQL query should be performed. + # @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_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::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 execute_project_instance_database_session_streaming_sql(session, execute_sql_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+session}:executeStreamingSql', options) + command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation + command.request_object = execute_sql_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['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Commits a transaction. The request includes the mutations to be + # applied to rows in the database. + # `Commit` might return an `ABORTED` error. This can occur at any time; + # commonly, the cause is conflicts with concurrent + # transactions. However, it can also happen for a variety of other + # reasons. If `Commit` returns `ABORTED`, the caller should re-attempt + # the transaction from the beginning, re-using the same session. + # @param [String] session + # Required. The session in which the transaction to be committed is running. + # @param [Google::Apis::SpannerV1::CommitRequest] commit_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::SpannerV1::CommitResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpannerV1::CommitResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def commit_session(session, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+session}:commit', options) + command.request_representation = Google::Apis::SpannerV1::CommitRequest::Representation + command.request_object = commit_request_object + command.response_representation = Google::Apis::SpannerV1::CommitResponse::Representation + command.response_class = Google::Apis::SpannerV1::CommitResponse + command.params['session'] = session unless session.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Begins a new transaction. This step can often be skipped: + # Read, ExecuteSql and + # Commit can begin a new transaction as a + # side-effect. + # @param [String] session + # Required. The session in which the transaction runs. + # @param [Google::Apis::SpannerV1::BeginTransactionRequest] begin_transaction_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::SpannerV1::Transaction] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpannerV1::Transaction] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def begin_session_transaction(session, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+session}:beginTransaction', options) + command.request_representation = Google::Apis::SpannerV1::BeginTransactionRequest::Representation + command.request_object = begin_transaction_request_object + command.response_representation = Google::Apis::SpannerV1::Transaction::Representation + command.response_class = Google::Apis::SpannerV1::Transaction + command.params['session'] = session unless session.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.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 + # a `FAILED_PRECONDITION` error. + # Queries 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 fetched in streaming fashion by calling + # ExecuteStreamingSql instead. + # @param [String] session + # Required. The session in which the SQL query should be performed. + # @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_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::SpannerV1::ResultSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @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 execute_session_sql(session, execute_sql_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+session}:executeSql', options) + command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation + command.request_object = execute_sql_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['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 diff --git a/generated/google/apis/speech_v1beta1/classes.rb b/generated/google/apis/speech_v1beta1/classes.rb index ca31393a4..0694cbf5b 100644 --- a/generated/google/apis/speech_v1beta1/classes.rb +++ b/generated/google/apis/speech_v1beta1/classes.rb @@ -22,171 +22,6 @@ module Google module Apis module SpeechV1beta1 - # This resource represents a long-running operation that is the result of a - # network API call. - 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` which can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting purpose. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - # Corresponds to the JSON property `error` - # @return [Google::Apis::SpeechV1beta1::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) - @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 - - # Provides information to the recognizer that specifies how to process the - # request. - class RecognitionConfig - include Google::Apis::Core::Hashable - - # *Required* Encoding of audio data sent in all `RecognitionAudio` messages. - # Corresponds to the JSON property `encoding` - # @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 - - # Provides "hints" to the speech recognizer to favor specific words and phrases - # in the results. - # Corresponds to the JSON property `speechContext` - # @return [Google::Apis::SpeechV1beta1::SpeechContext] - attr_accessor :speech_context - - # *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 - - # *Required* Sample rate in Hertz of the audio data sent in all - # `RecognitionAudio` messages. Valid values are: 8000-48000. - # 16000 is optimal. For best results, set the sampling rate of the audio - # source to 16000 Hz. If that's not possible, use the native sample rate of - # the audio source (instead of re-sampling). - # Corresponds to the JSON property `sampleRate` - # @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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @encoding = args[:encoding] if args.key?(:encoding) - @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter) - @speech_context = args[:speech_context] if args.key?(:speech_context) - @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) - end - end - # The top-level message sent by the client for the `SyncRecognize` method. class SyncRecognizeRequest include Google::Apis::Core::Hashable @@ -216,6 +51,28 @@ module Google 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: @@ -258,13 +115,6 @@ 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` @@ -276,37 +126,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) - 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) + @message = args[:message] if args.key?(:message) end end @@ -329,6 +164,56 @@ module Google 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 + + # 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 @@ -360,56 +245,6 @@ module Google 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 - - # 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 - # A speech recognition result corresponding to a portion of the audio. class SpeechRecognitionResult include Google::Apis::Core::Hashable @@ -470,6 +305,7 @@ module Google # `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 @@ -493,6 +329,171 @@ module Google @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 + 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` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::SpeechV1beta1::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 + + # Provides information to the recognizer that specifies how to process the + # request. + 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. + # 16000 is optimal. For best results, set the sampling rate of the audio + # source to 16000 Hz. If that's not possible, use the native sample rate of + # the audio source (instead of re-sampling). + # Corresponds to the JSON property `sampleRate` + # @return [Fixnum] + attr_accessor :sample_rate + + # *Required* Encoding of audio data sent in all `RecognitionAudio` messages. + # Corresponds to the JSON property `encoding` + # @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 + + # Provides "hints" to the speech recognizer to favor specific words and phrases + # in the results. + # Corresponds to the JSON property `speechContext` + # @return [Google::Apis::SpeechV1beta1::SpeechContext] + attr_accessor :speech_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives) + @language_code = args[:language_code] if args.key?(:language_code) + @sample_rate = args[:sample_rate] if args.key?(:sample_rate) + @encoding = args[:encoding] if args.key?(:encoding) + @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter) + @speech_context = args[:speech_context] if args.key?(:speech_context) + end + end end end end diff --git a/generated/google/apis/speech_v1beta1/representations.rb b/generated/google/apis/speech_v1beta1/representations.rb index 2f1def8aa..3b803dfd7 100644 --- a/generated/google/apis/speech_v1beta1/representations.rb +++ b/generated/google/apis/speech_v1beta1/representations.rb @@ -22,43 +22,31 @@ module Google module Apis module SpeechV1beta1 - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RecognitionConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - 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 Status + 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 SpeechRecognitionAlternative + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -70,7 +58,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListOperationsResponse + class SpeechRecognitionAlternative class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -95,28 +83,15 @@ module Google 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::SpeechV1beta1::Status, decorator: Google::Apis::SpeechV1beta1::Status::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - hash :metadata, as: 'metadata' - property :done, as: 'done' - end + include Google::Apis::Core::JsonObjectSupport end class RecognitionConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :encoding, as: 'encoding' - property :profanity_filter, as: 'profanityFilter' - property :speech_context, as: 'speechContext', class: Google::Apis::SpeechV1beta1::SpeechContext, decorator: Google::Apis::SpeechV1beta1::SpeechContext::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :max_alternatives, as: 'maxAlternatives' - property :sample_rate, as: 'sampleRate' - property :language_code, as: 'languageCode' - end + include Google::Apis::Core::JsonObjectSupport end class SyncRecognizeRequest @@ -129,15 +104,6 @@ module Google 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 SyncRecognizeResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -146,17 +112,27 @@ 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 Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end - class SpeechRecognitionAlternative + class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - property :transcript, as: 'transcript' + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation + end end @@ -167,12 +143,11 @@ module Google end end - class ListOperationsResponse + class SpeechRecognitionAlternative # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation - + property :confidence, as: 'confidence' + property :transcript, as: 'transcript' end end @@ -201,6 +176,31 @@ module Google property :uri, as: 'uri' 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::SpeechV1beta1::Status, decorator: Google::Apis::SpeechV1beta1::Status::Representation + + end + end + + class RecognitionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_alternatives, as: 'maxAlternatives' + property :language_code, as: 'languageCode' + property :sample_rate, as: 'sampleRate' + property :encoding, as: 'encoding' + property :profanity_filter, as: 'profanityFilter' + property :speech_context, as: 'speechContext', class: Google::Apis::SpeechV1beta1::SpeechContext, decorator: Google::Apis::SpeechV1beta1::SpeechContext::Representation + + end + end end end end diff --git a/generated/google/apis/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index 1b7f25606..2acaa2b80 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -1314,6 +1314,7 @@ module Google # HTTP 1.1 Entity tag for the policy. # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag diff --git a/generated/google/apis/storagetransfer_v1/classes.rb b/generated/google/apis/storagetransfer_v1/classes.rb index 894b613a1..63a18fb13 100644 --- a/generated/google/apis/storagetransfer_v1/classes.rb +++ b/generated/google/apis/storagetransfer_v1/classes.rb @@ -22,6 +22,156 @@ module Google module Apis module StoragetransferV1 + # 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 + + # 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @project_id = args[:project_id] if args.key?(:project_id) + @last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time) + @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) + 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 @@ -65,16 +215,6 @@ module Google 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] @@ -85,16 +225,16 @@ module Google # @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 + # A collection of counters that report the progress of a transfer operation. + # Corresponds to the JSON property `counters` + # @return [Google::Apis::StoragetransferV1::TransferCounters] + attr_accessor :counters + # Summarizes errors encountered with sample error log entries. # Corresponds to the JSON property `errorBreakdowns` # @return [Array] @@ -111,21 +251,31 @@ module Google # @return [String] attr_accessor :project_id + # 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 + 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) + @counters = args[:counters] if args.key?(:counters) @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) + @start_time = args[:start_time] if args.key?(:start_time) end end @@ -134,6 +284,13 @@ module Google 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)). @@ -142,21 +299,14 @@ module Google # @return [String] attr_accessor :bucket_name - # AWS access key (see - # [AWS Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws- - # security-credentials.html)). - # Corresponds to the JSON property `awsAccessKey` - # @return [Google::Apis::StoragetransferV1::AwsAccessKey] - attr_accessor :aws_access_key - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @bucket_name = args[:bucket_name] if args.key?(:bucket_name) @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 @@ -225,21 +375,64 @@ module Google class TransferCounters include Google::Apis::Core::Hashable + # Bytes that are deleted from the data source. + # Corresponds to the JSON property `bytesDeletedFromSource` + # @return [String] + 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 [String] + attr_accessor :objects_found_from_source + + # Objects that failed to be deleted from the data sink. + # Corresponds to the JSON property `objectsFailedToDeleteFromSink` + # @return [String] + attr_accessor :objects_failed_to_delete_from_sink + + # Objects that are deleted from the data sink. + # Corresponds to the JSON property `objectsDeletedFromSink` + # @return [String] + 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 [String] + 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 [String] + attr_accessor :bytes_from_source_skipped_by_sync + + # Bytes that are deleted from the data sink. + # Corresponds to the JSON property `bytesDeletedFromSink` + # @return [String] + attr_accessor :bytes_deleted_from_sink + + # Bytes that failed to be deleted from the data sink. + # Corresponds to the JSON property `bytesFailedToDeleteFromSink` + # @return [String] + attr_accessor :bytes_failed_to_delete_from_sink + # Bytes in the data source that failed during the transfer. # Corresponds to the JSON property `bytesFromSourceFailed` # @return [String] attr_accessor :bytes_from_source_failed - # Objects that are copied to the data sink. - # Corresponds to the JSON property `objectsCopiedToSink` - # @return [String] - attr_accessor :objects_copied_to_sink - # Objects in the data source that failed during the transfer. # Corresponds to the JSON property `objectsFromSourceFailed` # @return [String] attr_accessor :objects_from_source_failed + # Objects that are copied to the data sink. + # Corresponds to the JSON property `objectsCopiedToSink` + # @return [String] + 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 [String] @@ -268,71 +461,28 @@ module Google # @return [String] attr_accessor :objects_from_source_skipped_by_sync - # Objects found in the data source that are scheduled to be transferred, - # which will be copied, excluded based on conditions, or skipped due to - # failures. - # Corresponds to the JSON property `objectsFoundFromSource` - # @return [String] - attr_accessor :objects_found_from_source - - # Bytes that are deleted from the data source. - # Corresponds to the JSON property `bytesDeletedFromSource` - # @return [String] - attr_accessor :bytes_deleted_from_source - - # Objects that failed to be deleted from the data sink. - # Corresponds to the JSON property `objectsFailedToDeleteFromSink` - # @return [String] - attr_accessor :objects_failed_to_delete_from_sink - - # Objects found only in the data sink that are scheduled to be deleted. - # Corresponds to the JSON property `objectsFoundOnlyFromSink` - # @return [String] - attr_accessor :objects_found_only_from_sink - - # Objects that are deleted from the data sink. - # Corresponds to the JSON property `objectsDeletedFromSink` - # @return [String] - 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 [String] - attr_accessor :bytes_from_source_skipped_by_sync - - # Bytes that are deleted from the data sink. - # Corresponds to the JSON property `bytesDeletedFromSink` - # @return [String] - attr_accessor :bytes_deleted_from_sink - - # Bytes that failed to be deleted from the data sink. - # Corresponds to the JSON property `bytesFailedToDeleteFromSink` - # @return [String] - attr_accessor :bytes_failed_to_delete_from_sink - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) - @objects_found_from_source = args[:objects_found_from_source] if args.key?(:objects_found_from_source) - @bytes_deleted_from_source = args[:bytes_deleted_from_source] if args.key?(:bytes_deleted_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) - @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) end end @@ -341,6 +491,11 @@ module Google class ErrorSummary include Google::Apis::Core::Hashable + # Required. + # Corresponds to the JSON property `errorCode` + # @return [String] + attr_accessor :error_code + # Count of this type of error. # Required. # Corresponds to the JSON property `errorCount` @@ -352,20 +507,15 @@ module Google # @return [Array] attr_accessor :error_log_entries - # Required. - # Corresponds to the JSON property `errorCode` - # @return [String] - attr_accessor :error_code - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @error_code = args[:error_code] if args.key?(:error_code) @error_count = args[:error_count] if args.key?(:error_count) @error_log_entries = args[:error_log_entries] if args.key?(:error_log_entries) - @error_code = args[:error_code] if args.key?(:error_code) end end @@ -512,6 +662,12 @@ module Google class ObjectConditions include Google::Apis::Core::Hashable + # `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` @@ -559,22 +715,16 @@ module Google # @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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) @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) end end @@ -583,6 +733,14 @@ 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 @@ -650,13 +808,43 @@ 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` + 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 overwriting objects that already exist in the sink is allowed. + # Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink` # @return [Boolean] - attr_accessor :done - alias_method :done?, :done + 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 + + # 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 def initialize(**args) update!(**args) @@ -664,11 +852,9 @@ module Google # 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) + @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) + @delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] if args.key?(:delete_objects_unique_in_sink) end end @@ -676,6 +862,19 @@ module Google 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` @@ -729,67 +928,18 @@ module Google # @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 - - # TransferOptions uses three boolean parameters to define the actions - # to be performed on objects in a transfer. - # Corresponds to the JSON property `transferOptions` - # @return [Google::Apis::StoragetransferV1::TransferOptions] - attr_accessor :transfer_options - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @gcs_data_source = args[:gcs_data_source] 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) - @gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source) - @transfer_options = args[:transfer_options] if args.key?(:transfer_options) - end - end - - # TransferOptions uses three boolean parameters to define the actions - # to be performed on objects in a transfer. - class TransferOptions - include Google::Apis::Core::Hashable - - # Whether overwriting objects that already exist in the sink is allowed. - # Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink` - # @return [Boolean] - attr_accessor :overwrite_objects_already_existing_in_sink - alias_method :overwrite_objects_already_existing_in_sink?, :overwrite_objects_already_existing_in_sink - - # Whether objects 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] 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) - @delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] if args.key?(:delete_objects_unique_in_sink) end end @@ -848,12 +998,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] @@ -866,15 +1010,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 @@ -928,11 +1078,6 @@ module Google class TimeOfDay include Google::Apis::Core::Hashable - # 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` @@ -950,166 +1095,21 @@ module Google # @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) - @minutes = args[:minutes] if args.key?(:minutes) @hours = args[:hours] if args.key?(:hours) @nanos = args[:nanos] if args.key?(:nanos) @seconds = args[:seconds] if args.key?(:seconds) - 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 - - # 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 - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @schedule = args[:schedule] if args.key?(:schedule) - @name = args[:name] if args.key?(:name) - @deletion_time = args[:deletion_time] if args.key?(:deletion_time) - @project_id = args[:project_id] if args.key?(:project_id) - @last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time) - @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) - 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) + @minutes = args[:minutes] if args.key?(:minutes) end end end diff --git a/generated/google/apis/storagetransfer_v1/representations.rb b/generated/google/apis/storagetransfer_v1/representations.rb index 9d8cc40bd..9c7c901b8 100644 --- a/generated/google/apis/storagetransfer_v1/representations.rb +++ b/generated/google/apis/storagetransfer_v1/representations.rb @@ -22,6 +22,24 @@ module Google module Apis module StoragetransferV1 + 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 @@ -106,13 +124,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TransferSpec + class TransferOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TransferOptions + class TransferSpec class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -149,21 +167,40 @@ module Google end class ErrorLogEntry - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + collection :error_details, as: 'errorDetails' + end end class TransferJob - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :status, as: 'status' + property :schedule, as: 'schedule', class: Google::Apis::StoragetransferV1::Schedule, decorator: Google::Apis::StoragetransferV1::Schedule::Representation - include Google::Apis::Core::JsonObjectSupport + property :name, as: 'name' + property :deletion_time, as: 'deletionTime' + property :project_id, as: 'projectId' + property :last_modification_time, as: 'lastModificationTime' + 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 + + end end class Schedule - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :schedule_end_date, as: 'scheduleEndDate', class: Google::Apis::StoragetransferV1::Date, decorator: Google::Apis::StoragetransferV1::Date::Representation - include Google::Apis::Core::JsonObjectSupport + 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 @@ -178,27 +215,27 @@ module Google 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 :status, as: 'status' 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' + property :start_time, as: 'startTime' end end class AwsS3Data # @private class Representation < Google::Apis::Core::JsonRepresentation - property :bucket_name, as: 'bucketName' property :aws_access_key, as: 'awsAccessKey', class: Google::Apis::StoragetransferV1::AwsAccessKey, decorator: Google::Apis::StoragetransferV1::AwsAccessKey::Representation + property :bucket_name, as: 'bucketName' end end @@ -225,32 +262,32 @@ module Google class TransferCounters # @private class Representation < Google::Apis::Core::JsonRepresentation + property :bytes_deleted_from_source, as: 'bytesDeletedFromSource' + property :objects_found_from_source, as: 'objectsFoundFromSource' + property :objects_failed_to_delete_from_sink, as: 'objectsFailedToDeleteFromSink' + property :objects_deleted_from_sink, as: 'objectsDeletedFromSink' + property :objects_found_only_from_sink, as: 'objectsFoundOnlyFromSink' + property :bytes_from_source_skipped_by_sync, as: 'bytesFromSourceSkippedBySync' + property :bytes_deleted_from_sink, as: 'bytesDeletedFromSink' + property :bytes_failed_to_delete_from_sink, as: 'bytesFailedToDeleteFromSink' property :bytes_from_source_failed, as: 'bytesFromSourceFailed' - property :objects_copied_to_sink, as: 'objectsCopiedToSink' property :objects_from_source_failed, as: 'objectsFromSourceFailed' + property :objects_copied_to_sink, as: 'objectsCopiedToSink' property :bytes_found_only_from_sink, as: 'bytesFoundOnlyFromSink' property :objects_deleted_from_source, as: 'objectsDeletedFromSource' property :bytes_copied_to_sink, as: 'bytesCopiedToSink' property :bytes_found_from_source, as: 'bytesFoundFromSource' property :objects_from_source_skipped_by_sync, as: 'objectsFromSourceSkippedBySync' - property :objects_found_from_source, as: 'objectsFoundFromSource' - property :bytes_deleted_from_source, as: 'bytesDeletedFromSource' - property :objects_failed_to_delete_from_sink, as: 'objectsFailedToDeleteFromSink' - property :objects_found_only_from_sink, as: 'objectsFoundOnlyFromSink' - property :objects_deleted_from_sink, as: 'objectsDeletedFromSink' - property :bytes_from_source_skipped_by_sync, as: 'bytesFromSourceSkippedBySync' - property :bytes_deleted_from_sink, as: 'bytesDeletedFromSink' - property :bytes_failed_to_delete_from_sink, as: 'bytesFailedToDeleteFromSink' end end class ErrorSummary # @private class Representation < Google::Apis::Core::JsonRepresentation + property :error_code, as: 'errorCode' property :error_count, as: 'errorCount' collection :error_log_entries, as: 'errorLogEntries', class: Google::Apis::StoragetransferV1::ErrorLogEntry, decorator: Google::Apis::StoragetransferV1::ErrorLogEntry::Representation - property :error_code, as: 'errorCode' end end @@ -290,40 +327,22 @@ module Google class ObjectConditions # @private class Representation < Google::Apis::Core::JsonRepresentation + property :max_time_elapsed_since_last_modification, as: 'maxTimeElapsedSinceLastModification' collection :include_prefixes, as: 'includePrefixes' property :min_time_elapsed_since_last_modification, as: 'minTimeElapsedSinceLastModification' collection :exclude_prefixes, as: 'excludePrefixes' - property :max_time_elapsed_since_last_modification, as: 'maxTimeElapsedSinceLastModification' 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' - property :done, as: 'done' - end - end - - class TransferSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 - - property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation - end end @@ -336,6 +355,24 @@ module Google end end + class TransferSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_data_source, as: 'gcsDataSource', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation + + property :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 + end + class ResumeTransferOperationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -345,9 +382,9 @@ module Google 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 @@ -370,47 +407,10 @@ module Google class TimeOfDay # @private class Representation < Google::Apis::Core::JsonRepresentation - property :minutes, as: 'minutes' property :hours, as: 'hours' property :nanos, as: 'nanos' property :seconds, as: 'seconds' - end - end - - class ErrorLogEntry - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :url, as: 'url' - collection :error_details, as: 'errorDetails' - end - end - - class TransferJob - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 :project_id, as: 'projectId' - property :last_modification_time, as: 'lastModificationTime' - 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' - 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 - + property :minutes, as: 'minutes' end end end diff --git a/generated/google/apis/storagetransfer_v1/service.rb b/generated/google/apis/storagetransfer_v1/service.rb index e0c0e5bfc..a052937da 100644 --- a/generated/google/apis/storagetransfer_v1/service.rb +++ b/generated/google/apis/storagetransfer_v1/service.rb @@ -47,75 +47,6 @@ module Google super('https://storagetransfer.googleapis.com/', '') end - # Returns the Google service account that is used by Storage Transfer - # Service to access buckets in the project where transfers - # run or in other projects. Each Google service account is associated - # with one Google Cloud Platform Console project. Users - # should add this service account to the Google Cloud Storage bucket - # ACLs to grant access to Storage Transfer Service. This service - # account is created and owned by Storage Transfer Service and can - # only be used by Storage Transfer Service. - # @param [String] project_id - # The ID of the Google Cloud Platform Console project that the Google service - # account is associated with. - # 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::GoogleServiceAccount] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StoragetransferV1::GoogleServiceAccount] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_google_service_account(project_id, quota_user: nil, fields: 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? - 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. @@ -188,10 +119,6 @@ module Google end # 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", @@ -201,6 +128,10 @@ module Google # 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. @@ -218,13 +149,77 @@ 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_jobs(page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block) + 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['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 + + # 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 + + # Resumes a transfer operation that is paused. + # @param [String] name + # The name of the transfer operation. + # Required. + # @param [Google::Apis::StoragetransferV1::ResumeTransferOperationRequest] resume_transfer_operation_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not 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 err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def resume_transfer_operation(name, resume_transfer_operation_request_object = nil, quota_user: nil, fields: 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? execute_or_queue_command(command, &block) @@ -404,11 +399,18 @@ module Google execute_or_queue_command(command, &block) end - # Resumes a transfer operation that is paused. - # @param [String] name - # The name of the transfer operation. + # Returns the Google service account that is used by Storage Transfer + # Service to access buckets in the project where transfers + # run or in other projects. Each Google service account is associated + # with one Google Cloud Platform Console project. Users + # should add this service account to the Google Cloud Storage bucket + # ACLs to grant access to Storage Transfer Service. This service + # account is created and owned by Storage Transfer Service and can + # only be used by Storage Transfer Service. + # @param [String] project_id + # The ID of the Google Cloud Platform Console project that the Google service + # account is associated with. # Required. - # @param [Google::Apis::StoragetransferV1::ResumeTransferOperationRequest] resume_transfer_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. @@ -418,21 +420,19 @@ module Google # 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::GoogleServiceAccount] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::StoragetransferV1::Empty] + # @return [Google::Apis::StoragetransferV1::GoogleServiceAccount] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def resume_transfer_operation(name, resume_transfer_operation_request_object = nil, quota_user: nil, fields: 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? + def get_google_service_account(project_id, quota_user: nil, fields: 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? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/surveys_v2/classes.rb b/generated/google/apis/surveys_v2/classes.rb index 1b0265922..6ebcaa0ba 100644 --- a/generated/google/apis/surveys_v2/classes.rb +++ b/generated/google/apis/surveys_v2/classes.rb @@ -237,6 +237,7 @@ module Google # with this question. This binary blob is treated as opaque. This field is # limited to 64K bytes. # Corresponds to the JSON property `customerData` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :customer_data @@ -574,6 +575,7 @@ module Google # Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question # types. # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :data diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 43fe922bd..7f6e13773 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 = '20170329' + REVISION = '20170330' # 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 105fe5f1a..4180fa2ce 100644 --- a/generated/google/apis/toolresults_v1beta3/classes.rb +++ b/generated/google/apis/toolresults_v1beta3/classes.rb @@ -73,6 +73,7 @@ module Google # Must be a valid serialized protocol buffer of the above specified type. # Corresponds to the JSON property `value` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :value @@ -1874,6 +1875,7 @@ module Google # file; they can be served as an image as-is (with the appropriate content type.) # Always set. # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :data diff --git a/generated/google/apis/tracing_v1/classes.rb b/generated/google/apis/tracing_v1/classes.rb index 504ba2cd7..e2fe1fc6f 100644 --- a/generated/google/apis/tracing_v1/classes.rb +++ b/generated/google/apis/tracing_v1/classes.rb @@ -49,26 +49,26 @@ module Google class Module include Google::Apis::Core::Hashable - # E.g. main binary, kernel modules, and dynamic libraries - # such as libc.so, sharedlib.so - # Corresponds to the JSON property `module` - # @return [String] - attr_accessor :module - # Build_id is a unique identifier for the module, # usually a hash of its contents # Corresponds to the JSON property `buildId` # @return [String] attr_accessor :build_id + # E.g. main binary, kernel modules, and dynamic libraries + # such as libc.so, sharedlib.so + # Corresponds to the JSON property `module` + # @return [String] + attr_accessor :module + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @module = args[:module] if args.key?(:module) @build_id = args[:build_id] if args.key?(:build_id) + @module = args[:module] if args.key?(:module) end end @@ -114,6 +114,11 @@ 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. @@ -127,10 +132,27 @@ module Google # @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) + 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) @@ -138,9 +160,6 @@ module Google # 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 @@ -180,12 +199,6 @@ module Google class Span include Google::Apis::Core::Hashable - # True if this span has a remote parent (is an RPC server span). - # Corresponds to the JSON property `hasRemoteParent` - # @return [Boolean] - attr_accessor :has_remote_parent - alias_method :has_remote_parent?, :has_remote_parent - # End time of the span. # On the client side, this is the local machine clock time at which the span # execution was ended; on the server @@ -304,13 +317,18 @@ module Google # @return [String] attr_accessor :local_start_time + # True if this span has a remote parent (is an RPC server span). + # Corresponds to the JSON property `hasRemoteParent` + # @return [Boolean] + attr_accessor :has_remote_parent + alias_method :has_remote_parent?, :has_remote_parent + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @has_remote_parent = args[:has_remote_parent] if args.key?(:has_remote_parent) @local_end_time = args[:local_end_time] if args.key?(:local_end_time) @parent_id = args[:parent_id] if args.key?(:parent_id) @time_events = args[:time_events] if args.key?(:time_events) @@ -321,25 +339,7 @@ module Google @attributes = args[:attributes] if args.key?(:attributes) @id = args[:id] if args.key?(:id) @local_start_time = args[:local_start_time] if args.key?(:local_start_time) - 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) + @has_remote_parent = args[:has_remote_parent] if args.key?(:has_remote_parent) end end @@ -347,11 +347,6 @@ module Google class AttributeValue include Google::Apis::Core::Hashable - # An integer value. - # Corresponds to the JSON property `intValue` - # @return [String] - attr_accessor :int_value - # A string value. # Corresponds to the JSON property `stringValue` # @return [String] @@ -363,15 +358,20 @@ module Google attr_accessor :bool_value alias_method :bool_value?, :bool_value + # An integer value. + # Corresponds to the JSON property `intValue` + # @return [String] + attr_accessor :int_value + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @int_value = args[:int_value] if args.key?(:int_value) @string_value = args[:string_value] if args.key?(:string_value) @bool_value = args[:bool_value] if args.key?(:bool_value) + @int_value = args[:int_value] if args.key?(:int_value) end end @@ -429,11 +429,6 @@ module Google class TimeEvent include Google::Apis::Core::Hashable - # The timestamp indicating the time the event occurred. - # Corresponds to the JSON property `localTime` - # @return [String] - attr_accessor :local_time - # An event describing an RPC message sent/received on the network. # Corresponds to the JSON property `networkEvent` # @return [Google::Apis::TracingV1::NetworkEvent] @@ -444,15 +439,20 @@ module Google # @return [Google::Apis::TracingV1::Annotation] attr_accessor :annotation + # The timestamp indicating the time the event occurred. + # Corresponds to the JSON property `localTime` + # @return [String] + attr_accessor :local_time + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @local_time = args[:local_time] if args.key?(:local_time) @network_event = args[:network_event] if args.key?(:network_event) @annotation = args[:annotation] if args.key?(:annotation) + @local_time = args[:local_time] if args.key?(:local_time) end end @@ -460,6 +460,11 @@ module Google class NetworkEvent include Google::Apis::Core::Hashable + # The number of bytes sent or received. + # Corresponds to the JSON property `messageSize` + # @return [String] + attr_accessor :message_size + # If available, this is the kernel time: # * For sent messages, this is the time at which the first bit was sent. # * For received messages, this is the time at which the last bit was @@ -479,10 +484,34 @@ module Google # @return [String] attr_accessor :message_id - # The number of bytes sent or received. - # Corresponds to the JSON property `messageSize` + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @message_size = args[:message_size] if args.key?(:message_size) + @kernel_time = args[:kernel_time] if args.key?(:kernel_time) + @type = args[:type] if args.key?(:type) + @message_id = args[:message_id] if args.key?(:message_id) + end + end + + # The response message for the `ListSpans` method. + class ListSpansResponse + include Google::Apis::Core::Hashable + + # The requested spans if there are any in the specified trace. + # Corresponds to the JSON property `spans` + # @return [Array] + attr_accessor :spans + + # If defined, indicates that there are more spans that match the request. + # Pass this as the value of `pageToken` in a subsequent request to retrieve + # additional spans. + # Corresponds to the JSON property `nextPageToken` # @return [String] - attr_accessor :message_size + attr_accessor :next_page_token def initialize(**args) update!(**args) @@ -490,10 +519,8 @@ module Google # Update properties of this object def update!(**args) - @kernel_time = args[:kernel_time] if args.key?(:kernel_time) - @type = args[:type] if args.key?(:type) - @message_id = args[:message_id] if args.key?(:message_id) - @message_size = args[:message_size] if args.key?(:message_size) + @spans = args[:spans] if args.key?(:spans) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -516,37 +543,27 @@ module Google end end - # The response message for the `ListSpans` method. - class ListSpansResponse - include Google::Apis::Core::Hashable - - # If defined, indicates that there are more spans that match the request. - # Pass this as the value of `pageToken` in a subsequent request to retrieve - # additional spans. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The requested spans if there are any in the specified trace. - # Corresponds to the JSON property `spans` - # @return [Array] - attr_accessor :spans - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @spans = args[:spans] if args.key?(:spans) - end - end - # Represents a single stack frame in a stack trace. class StackFrame include Google::Apis::Core::Hashable + # The filename of the file containing this frame. + # Corresponds to the JSON property `fileName` + # @return [String] + attr_accessor :file_name + + # The version of the deployed source code. + # Corresponds to the JSON property `sourceVersion` + # @return [String] + attr_accessor :source_version + + # Used when the function name is + # [mangled](http://www.avabodh.com/cxxin/namemangling.html). May be + # fully-qualified. + # Corresponds to the JSON property `originalFunctionName` + # @return [String] + attr_accessor :original_function_name + # The fully-qualified name that uniquely identifies this function or # method. # Corresponds to the JSON property `functionName` @@ -569,36 +586,19 @@ module Google # @return [String] attr_accessor :column_number - # The filename of the file containing this frame. - # Corresponds to the JSON property `fileName` - # @return [String] - attr_accessor :file_name - - # The version of the deployed source code. - # Corresponds to the JSON property `sourceVersion` - # @return [String] - attr_accessor :source_version - - # Used when the function name is - # [mangled](http://www.avabodh.com/cxxin/namemangling.html). May be - # fully-qualified. - # Corresponds to the JSON property `originalFunctionName` - # @return [String] - attr_accessor :original_function_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) + @source_version = args[:source_version] if args.key?(:source_version) + @original_function_name = args[:original_function_name] if args.key?(:original_function_name) @function_name = args[:function_name] if args.key?(:function_name) @line_number = args[:line_number] if args.key?(:line_number) @load_module = args[:load_module] if args.key?(:load_module) @column_number = args[:column_number] if args.key?(:column_number) - @file_name = args[:file_name] if args.key?(:file_name) - @source_version = args[:source_version] if args.key?(:source_version) - @original_function_name = args[:original_function_name] if args.key?(:original_function_name) end end @@ -639,24 +639,24 @@ module Google class Annotation include Google::Apis::Core::Hashable - # A set of attributes on the annotation. - # Corresponds to the JSON property `attributes` - # @return [Hash] - attr_accessor :attributes - # A user-supplied message describing the event. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description + # A set of attributes on the annotation. + # 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) - @attributes = args[:attributes] if args.key?(:attributes) @description = args[:description] if args.key?(:description) + @attributes = args[:attributes] if args.key?(:attributes) end end end diff --git a/generated/google/apis/tracing_v1/representations.rb b/generated/google/apis/tracing_v1/representations.rb index 6f501ef0e..c72283f4c 100644 --- a/generated/google/apis/tracing_v1/representations.rb +++ b/generated/google/apis/tracing_v1/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListTracesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -52,12 +58,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Empty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class AttributeValue class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,13 +88,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SpanUpdates + class ListSpansResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListSpansResponse + class SpanUpdates class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -128,17 +128,23 @@ module Google class Module # @private class Representation < Google::Apis::Core::JsonRepresentation - property :module, as: 'module' property :build_id, as: 'buildId' + property :module, as: 'module' 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 + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation end end @@ -154,7 +160,6 @@ module Google class Span # @private class Representation < Google::Apis::Core::JsonRepresentation - property :has_remote_parent, as: 'hasRemoteParent' property :local_end_time, as: 'localEndTime' property :parent_id, as: 'parentId' collection :time_events, as: 'timeEvents', class: Google::Apis::TracingV1::TimeEvent, decorator: Google::Apis::TracingV1::TimeEvent::Representation @@ -170,21 +175,16 @@ module Google property :id, as: 'id' property :local_start_time, as: 'localStartTime' - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation + property :has_remote_parent, as: 'hasRemoteParent' end end class AttributeValue # @private class Representation < Google::Apis::Core::JsonRepresentation - property :int_value, as: 'intValue' property :string_value, as: 'stringValue' property :bool_value, as: 'boolValue' + property :int_value, as: 'intValue' end end @@ -208,21 +208,30 @@ module Google class TimeEvent # @private class Representation < Google::Apis::Core::JsonRepresentation - property :local_time, as: 'localTime' property :network_event, as: 'networkEvent', class: Google::Apis::TracingV1::NetworkEvent, decorator: Google::Apis::TracingV1::NetworkEvent::Representation property :annotation, as: 'annotation', class: Google::Apis::TracingV1::Annotation, decorator: Google::Apis::TracingV1::Annotation::Representation + property :local_time, as: 'localTime' end end class NetworkEvent # @private class Representation < Google::Apis::Core::JsonRepresentation + property :message_size, as: 'messageSize' property :kernel_time, as: 'kernelTime' property :type, as: 'type' property :message_id, as: 'messageId' - property :message_size, as: 'messageSize' + end + end + + class ListSpansResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :spans, as: 'spans', class: Google::Apis::TracingV1::Span, decorator: Google::Apis::TracingV1::Span::Representation + + property :next_page_token, as: 'nextPageToken' end end @@ -234,26 +243,17 @@ module Google end end - class ListSpansResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :spans, as: 'spans', class: Google::Apis::TracingV1::Span, decorator: Google::Apis::TracingV1::Span::Representation - - end - end - class StackFrame # @private class Representation < Google::Apis::Core::JsonRepresentation + property :file_name, as: 'fileName' + property :source_version, as: 'sourceVersion' + property :original_function_name, as: 'originalFunctionName' property :function_name, as: 'functionName' property :line_number, as: 'lineNumber' property :load_module, as: 'loadModule', class: Google::Apis::TracingV1::Module, decorator: Google::Apis::TracingV1::Module::Representation property :column_number, as: 'columnNumber' - property :file_name, as: 'fileName' - property :source_version, as: 'sourceVersion' - property :original_function_name, as: 'originalFunctionName' end end @@ -269,9 +269,9 @@ module Google class Annotation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' hash :attributes, as: 'attributes', class: Google::Apis::TracingV1::AttributeValue, decorator: Google::Apis::TracingV1::AttributeValue::Representation - property :description, as: 'description' end end end diff --git a/generated/google/apis/tracing_v1/service.rb b/generated/google/apis/tracing_v1/service.rb index 7b8f45e70..f7c387e19 100644 --- a/generated/google/apis/tracing_v1/service.rb +++ b/generated/google/apis/tracing_v1/service.rb @@ -46,6 +46,41 @@ module Google super('https://tracing.googleapis.com/', '') end + # Returns a list of spans within a trace. + # @param [String] name + # ID of the trace for which to list child spans. Format is + # `projects/PROJECT_ID/traces/TRACE_ID`. + # @param [String] page_token + # Token identifying the page of results to return. If provided, use the + # value of the `nextPageToken` field from a previous request. 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::TracingV1::ListSpansResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TracingV1::ListSpansResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_trace_spans(name, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}:listSpans', options) + command.response_representation = Google::Apis::TracingV1::ListSpansResponse::Representation + command.response_class = Google::Apis::TracingV1::ListSpansResponse + command.params['name'] = name unless name.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 of a list of traces that match the specified filter conditions. # @param [String] parent # ID of the Cloud project where the trace data is stored. @@ -78,11 +113,11 @@ module Google # Descending order can be specified by appending `desc` to the sort field # (for example, `name desc`). # Only one sort field is permitted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -95,7 +130,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_traces(parent, filter: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, order_by: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_traces(parent, filter: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/traces', options) command.response_representation = Google::Apis::TracingV1::ListTracesResponse::Representation command.response_class = Google::Apis::TracingV1::ListTracesResponse @@ -106,19 +141,19 @@ module Google command.query['startTime'] = start_time unless start_time.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['orderBy'] = order_by unless order_by.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 # Returns a specific trace. # @param [String] name # ID of the trace. Format is `projects/PROJECT_ID/traces/TRACE_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 # @@ -131,13 +166,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_trace(name, quota_user: nil, fields: nil, options: nil, &block) + def get_project_trace(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::TracingV1::Trace::Representation command.response_class = Google::Apis::TracingV1::Trace 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 @@ -149,11 +184,11 @@ module Google # @param [String] parent # ID of the Cloud project where the trace data is stored. # @param [Google::Apis::TracingV1::BatchUpdateSpansRequest] batch_update_spans_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,50 +201,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_trace_update_spans(parent, batch_update_spans_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def batch_trace_update_spans(parent, batch_update_spans_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/traces:batchUpdate', options) command.request_representation = Google::Apis::TracingV1::BatchUpdateSpansRequest::Representation command.request_object = batch_update_spans_request_object command.response_representation = Google::Apis::TracingV1::Empty::Representation command.response_class = Google::Apis::TracingV1::Empty 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 - - # Returns a list of spans within a trace. - # @param [String] name - # ID of the trace for which to list child spans. Format is - # `projects/PROJECT_ID/traces/TRACE_ID`. - # @param [String] page_token - # Token identifying the page of results to return. If provided, use the - # value of the `nextPageToken` field from a previous request. 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::TracingV1::ListSpansResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::TracingV1::ListSpansResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @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_trace_spans(name, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}:listSpans', options) - command.response_representation = Google::Apis::TracingV1::ListSpansResponse::Representation - command.response_class = Google::Apis::TracingV1::ListSpansResponse - command.params['name'] = name unless name.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 diff --git a/generated/google/apis/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index 5c3e6e34b..38f006748 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -22,1081 +22,6 @@ module Google module Apis module VisionV1 - # A face annotation object contains the results of face detection. - class FaceAnnotation - include Google::Apis::Core::Hashable - - # 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 - # [-180,180]. - # Corresponds to the JSON property `panAngle` - # @return [Float] - attr_accessor :pan_angle - - # 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` - # @return [String] - attr_accessor :blurred_likelihood - - # Headwear likelihood. - # Corresponds to the JSON property `headwearLikelihood` - # @return [String] - attr_accessor :headwear_likelihood - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1::BoundingPoly] - attr_accessor :bounding_poly - - # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation - # of the face relative to the image vertical about the axis perpendicular to - # the face. Range [-180,180]. - # Corresponds to the JSON property `rollAngle` - # @return [Float] - attr_accessor :roll_angle - - # Sorrow likelihood. - # Corresponds to the JSON property `sorrowLikelihood` - # @return [String] - attr_accessor :sorrow_likelihood - - # Pitch angle, which indicates the upwards/downwards angle that the face is - # pointing relative to the image's horizontal plane. Range [-180,180]. - # Corresponds to the JSON property `tiltAngle` - # @return [Float] - attr_accessor :tilt_angle - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `fdBoundingPoly` - # @return [Google::Apis::VisionV1::BoundingPoly] - attr_accessor :fd_bounding_poly - - # Anger likelihood. - # Corresponds to the JSON property `angerLikelihood` - # @return [String] - attr_accessor :anger_likelihood - - # Detected face landmarks. - # Corresponds to the JSON property `landmarks` - # @return [Array] - attr_accessor :landmarks - - # Surprise likelihood. - # Corresponds to the JSON property `surpriseLikelihood` - # @return [String] - attr_accessor :surprise_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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @roll_angle = args[:roll_angle] if args.key?(:roll_angle) - @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) - @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) - @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) - @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) - @landmarks = args[:landmarks] if args.key?(:landmarks) - @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) - @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) - @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) - end - end - - # Multiple image annotation requests are batched into a single service call. - class BatchAnnotateImagesRequest - include Google::Apis::Core::Hashable - - # Individual image annotation requests for this batch. - # 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) - end - end - - # Detected start or end of a structural component. - class DetectedBreak - include Google::Apis::Core::Hashable - - # Detected break type. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # True if break prepends the element. - # Corresponds to the JSON property `isPrefix` - # @return [Boolean] - attr_accessor :is_prefix - alias_method :is_prefix?, :is_prefix - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @is_prefix = args[:is_prefix] if args.key?(:is_prefix) - end - end - - # Image context and/or feature-specific parameters. - class ImageContext - include Google::Apis::Core::Hashable - - # Rectangle determined by min and max `LatLng` pairs. - # Corresponds to the JSON property `latLongRect` - # @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 - - # 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 - # needed. In rare cases, when the language of the text in the image is known, - # setting a hint will help get better results (although it will be a - # significant hindrance if the hint is wrong). Text detection returns an - # error if one or more of the specified languages is not one of the - # [supported languages](/vision/docs/languages). - # Corresponds to the JSON property `languageHints` - # @return [Array] - attr_accessor :language_hints - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @language_hints = args[:language_hints] if args.key?(:language_hints) - end - end - - # Detected page from OCR. - class Page - include Google::Apis::Core::Hashable - - # Page width in pixels. - # Corresponds to the JSON property `width` - # @return [Fixnum] - attr_accessor :width - - # List of blocks of text, images etc on this page. - # Corresponds to the JSON property `blocks` - # @return [Array] - attr_accessor :blocks - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @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) - @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 - - # Request for performing Google Cloud Vision API tasks over a user-provided - # image, with user-requested features. - 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 - - # Image context and/or feature-specific parameters. - # Corresponds to the JSON property `imageContext` - # @return [Google::Apis::VisionV1::ImageContext] - attr_accessor :image_context - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @image = args[:image] if args.key?(:image) - @features = args[:features] if args.key?(:features) - @image_context = args[:image_context] if args.key?(:image_context) - end - end - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` which can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting purpose. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - class Status - include Google::Apis::Core::Hashable - - # 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 single symbol representation. - class Symbol - 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @text = args[:text] if args.key?(:text) - @property = args[:property] if args.key?(:property) - end - end - - # Rectangle determined by min and max `LatLng` pairs. - class LatLongRect - include Google::Apis::Core::Hashable - - # 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) - # The code in logs/storage/validator/logs_validator_traits.cc treats this type - # as if it were annotated as ST_LOCATION. - # Corresponds to the JSON property `minLatLng` - # @return [Google::Apis::VisionV1::LatLng] - attr_accessor :min_lat_lng - - # 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) - # The code in logs/storage/validator/logs_validator_traits.cc treats this type - # as if it were annotated as ST_LOCATION. - # Corresponds to the JSON property `maxLatLng` - # @return [Google::Apis::VisionV1::LatLng] - attr_accessor :max_lat_lng - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @min_lat_lng = args[:min_lat_lng] if args.key?(:min_lat_lng) - @max_lat_lng = args[:max_lat_lng] if args.key?(:max_lat_lng) - end - end - - # Set of crop hints that are used to generate new crops when serving images. - class CropHintsAnnotation - include Google::Apis::Core::Hashable - - # Crop hint results. - # Corresponds to the JSON property `cropHints` - # @return [Array] - attr_accessor :crop_hints - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @crop_hints = args[:crop_hints] if args.key?(:crop_hints) - 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) - # The code in logs/storage/validator/logs_validator_traits.cc treats this type - # as if it were annotated as ST_LOCATION. - 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 - - # 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 - - # 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 - - # 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 - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @spoof = args[:spoof] if args.key?(:spoof) - @medical = args[:medical] if args.key?(:medical) - @violence = args[:violence] if args.key?(:violence) - @adult = args[:adult] if args.key?(:adult) - end - end - - # Set of dominant colors and their corresponding scores. - class DominantColorsAnnotation - include Google::Apis::Core::Hashable - - # RGB color values with their score and pixel fraction. - # Corresponds to the JSON property `colors` - # @return [Array] - attr_accessor :colors - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @colors = args[:colors] if args.key?(:colors) - end - end - - # TextAnnotation contains a structured representation of OCR extracted text. - # The hierarchy of an OCR extracted text structure is like this: - # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol - # Each structural component, starting from Page, may further have their own - # properties. Properties describe detected languages, breaks etc.. Please - # refer to the google.cloud.vision.v1.TextAnnotation.TextProperty message - # definition below for more detail. - class TextAnnotation - include Google::Apis::Core::Hashable - - # List of pages detected by OCR. - # Corresponds to the JSON property `pages` - # @return [Array] - attr_accessor :pages - - # UTF-8 text detected on the pages. - # 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) - @pages = args[:pages] if args.key?(:pages) - @text = args[:text] if args.key?(:text) - end - end - - # A vertex represents a 2D point in the image. - # NOTE: the vertex coordinates are in the same scale as the original image. - class Vertex - include Google::Apis::Core::Hashable - - # Y coordinate. - # Corresponds to the JSON property `y` - # @return [Fixnum] - attr_accessor :y - - # X coordinate. - # Corresponds to the JSON property `x` - # @return [Fixnum] - attr_accessor :x - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @y = args[:y] if args.key?(:y) - @x = args[:x] if args.key?(:x) - end - end - - # Detected language for a structural component. - class DetectedLanguage - include Google::Apis::Core::Hashable - - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Confidence of detected language. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @language_code = args[:language_code] if args.key?(:language_code) - @confidence = args[:confidence] if args.key?(:confidence) - end - end - - # Entity deduced from similar images on the Internet. - class WebEntity - include Google::Apis::Core::Hashable - - # 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 - - # 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) - end - - # Update properties of this object - def update!(**args) - @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 - - # A bounding polygon for the detected image annotation. - class BoundingPoly - include Google::Apis::Core::Hashable - - # The bounding polygon vertices. - # Corresponds to the JSON property `vertices` - # @return [Array] - attr_accessor :vertices - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @vertices = args[:vertices] if args.key?(:vertices) - end - end - - # Additional information detected on the structural component. - class TextProperty - include Google::Apis::Core::Hashable - - # A list of detected languages together with confidence. - # Corresponds to the JSON property `detectedLanguages` - # @return [Array] - attr_accessor :detected_languages - - # 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) - end - - # Update properties of this object - def update!(**args) - @detected_languages = args[:detected_languages] if args.key?(:detected_languages) - @detected_break = args[:detected_break] if args.key?(:detected_break) - end - end - - # Response to an image annotation request. - class AnnotateImageResponse - include Google::Apis::Core::Hashable - - # If present, landmark detection has completed successfully. - # Corresponds to the JSON property `landmarkAnnotations` - # @return [Array] - attr_accessor :landmark_annotations - - # If present, text (OCR) detection has completed successfully. - # Corresponds to the JSON property `textAnnotations` - # @return [Array] - attr_accessor :text_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] - attr_accessor :logo_annotations - - # Relevant information for the image from the Internet. - # Corresponds to the JSON property `webDetection` - # @return [Google::Apis::VisionV1::WebDetection] - attr_accessor :web_detection - - # Set of crop hints that are used to generate new crops when serving images. - # Corresponds to the JSON property `cropHintsAnnotation` - # @return [Google::Apis::VisionV1::CropHintsAnnotation] - attr_accessor :crop_hints_annotation - - # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` which can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting purpose. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - # Corresponds to the JSON property `error` - # @return [Google::Apis::VisionV1::Status] - attr_accessor :error - - # TextAnnotation contains a structured representation of OCR extracted text. - # The hierarchy of an OCR extracted text structure is like this: - # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol - # Each structural component, starting from Page, may further have their own - # properties. Properties describe detected languages, breaks etc.. Please - # refer to the google.cloud.vision.v1.TextAnnotation.TextProperty message - # definition below for more detail. - # Corresponds to the JSON property `fullTextAnnotation` - # @return [Google::Apis::VisionV1::TextAnnotation] - attr_accessor :full_text_annotation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) - @text_annotations = args[:text_annotations] if args.key?(:text_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) - @web_detection = args[:web_detection] if args.key?(:web_detection) - @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) - @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) - end - end - # Parameters for crop hints annotation request. class CropHintsParams include Google::Apis::Core::Hashable @@ -1244,6 +169,64 @@ 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 @@ -1291,64 +274,6 @@ module Google 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 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. @@ -1517,25 +442,25 @@ module Google class WebPage include Google::Apis::Core::Hashable + # The result web page URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + # Overall relevancy score for the web page. # Not normalized and not comparable across different image queries. # Corresponds to the JSON property `score` # @return [Float] attr_accessor :score - # The result web page URL. - # 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) - @score = args[:score] if args.key?(:score) @url = args[:url] if args.key?(:url) + @score = args[:score] if args.key?(:score) end end @@ -1543,17 +468,6 @@ module Google class EntityAnnotation include Google::Apis::Core::Hashable - # 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` - # @return [Array] - attr_accessor :properties - - # Overall score of the result. Range [0, 1]. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - # The location information for the detected entity. Multiple # `LocationInfo` elements can be present because one location may # indicate the location of the scene in the image, and another location @@ -1578,17 +492,17 @@ module Google # @return [Float] attr_accessor :confidence + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::BoundingPoly] + attr_accessor :bounding_poly + # The language code for the locale in which the entity textual # `description` is expressed. # Corresponds to the JSON property `locale` # @return [String] attr_accessor :locale - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @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] @@ -1603,21 +517,32 @@ module Google # @return [Float] attr_accessor :topicality + # 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` + # @return [Array] + attr_accessor :properties + + # Overall score of the result. 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) - @properties = args[:properties] if args.key?(:properties) - @score = args[:score] if args.key?(:score) @locations = args[:locations] if args.key?(:locations) @mid = args[:mid] if args.key?(:mid) @confidence = args[:confidence] if args.key?(:confidence) - @locale = args[:locale] if args.key?(:locale) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @locale = args[:locale] if args.key?(:locale) @description = args[:description] if args.key?(:description) @topicality = args[:topicality] if args.key?(:topicality) + @properties = args[:properties] if args.key?(:properties) + @score = args[:score] if args.key?(:score) end end @@ -1714,11 +639,6 @@ module Google class Word 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] @@ -1730,15 +650,20 @@ module Google # @return [Array] attr_accessor :symbols + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::TextProperty] + attr_accessor :property + 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) @symbols = args[:symbols] if args.key?(:symbols) + @property = args[:property] if args.key?(:property) end end @@ -1750,6 +675,7 @@ module Google # 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 @@ -1773,11 +699,6 @@ module Google class Paragraph 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] @@ -1788,6 +709,374 @@ module Google # @return [Array] attr_accessor :words + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::TextProperty] + attr_accessor :property + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @words = args[:words] if args.key?(:words) + @property = args[:property] if args.key?(:property) + end + end + + # A face annotation object contains the results of face detection. + class FaceAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `fdBoundingPoly` + # @return [Google::Apis::VisionV1::BoundingPoly] + attr_accessor :fd_bounding_poly + + # Anger likelihood. + # Corresponds to the JSON property `angerLikelihood` + # @return [String] + attr_accessor :anger_likelihood + + # Detected face landmarks. + # Corresponds to the JSON property `landmarks` + # @return [Array] + attr_accessor :landmarks + + # Surprise likelihood. + # Corresponds to the JSON property `surpriseLikelihood` + # @return [String] + attr_accessor :surprise_likelihood + + # Face landmarking confidence. Range [0, 1]. + # Corresponds to the JSON property `landmarkingConfidence` + # @return [Float] + attr_accessor :landmarking_confidence + + # Joy likelihood. + # Corresponds to the JSON property `joyLikelihood` + # @return [String] + attr_accessor :joy_likelihood + + # Detection confidence. Range [0, 1]. + # Corresponds to the JSON property `detectionConfidence` + # @return [Float] + attr_accessor :detection_confidence + + # Yaw angle, which indicates the leftward/rightward angle that the face is + # pointing relative to the vertical plane perpendicular to the image. Range + # [-180,180]. + # Corresponds to the JSON property `panAngle` + # @return [Float] + attr_accessor :pan_angle + + # Under-exposed likelihood. + # Corresponds to the JSON property `underExposedLikelihood` + # @return [String] + attr_accessor :under_exposed_likelihood + + # Blurred likelihood. + # Corresponds to the JSON property `blurredLikelihood` + # @return [String] + attr_accessor :blurred_likelihood + + # Headwear likelihood. + # Corresponds to the JSON property `headwearLikelihood` + # @return [String] + attr_accessor :headwear_likelihood + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::BoundingPoly] + attr_accessor :bounding_poly + + # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation + # of the face relative to the image vertical about the axis perpendicular to + # the face. Range [-180,180]. + # Corresponds to the JSON property `rollAngle` + # @return [Float] + attr_accessor :roll_angle + + # Sorrow likelihood. + # Corresponds to the JSON property `sorrowLikelihood` + # @return [String] + attr_accessor :sorrow_likelihood + + # Pitch angle, which indicates the upwards/downwards angle that the face is + # pointing relative to the image's horizontal plane. Range [-180,180]. + # Corresponds to the JSON property `tiltAngle` + # @return [Float] + attr_accessor :tilt_angle + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) + @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) + @landmarks = args[:landmarks] if args.key?(:landmarks) + @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) + @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) + @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) + @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) + @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) + @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) + @roll_angle = args[:roll_angle] if args.key?(:roll_angle) + @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) + @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) + end + end + + # Multiple image annotation requests are batched into a single service call. + class BatchAnnotateImagesRequest + include Google::Apis::Core::Hashable + + # Individual image annotation requests for this batch. + # 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) + end + end + + # Detected start or end of a structural component. + class DetectedBreak + include Google::Apis::Core::Hashable + + # Detected break type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # True if break prepends the element. + # Corresponds to the JSON property `isPrefix` + # @return [Boolean] + attr_accessor :is_prefix + alias_method :is_prefix?, :is_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @is_prefix = args[:is_prefix] if args.key?(:is_prefix) + end + end + + # Image context and/or feature-specific parameters. + class ImageContext + include Google::Apis::Core::Hashable + + # Rectangle determined by min and max `LatLng` pairs. + # Corresponds to the JSON property `latLongRect` + # @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 + + # 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 + # needed. In rare cases, when the language of the text in the image is known, + # setting a hint will help get better results (although it will be a + # significant hindrance if the hint is wrong). Text detection returns an + # error if one or more of the specified languages is not one of the + # [supported languages](/vision/docs/languages). + # Corresponds to the JSON property `languageHints` + # @return [Array] + attr_accessor :language_hints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @language_hints = args[:language_hints] if args.key?(:language_hints) + end + end + + # Detected page from OCR. + 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] + attr_accessor :width + + # List of blocks of text, images etc on this page. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1::TextProperty] + attr_accessor :property + + 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) + end + end + + # Request for performing Google Cloud Vision API tasks over a user-provided + # image, with user-requested features. + class AnnotateImageRequest + include Google::Apis::Core::Hashable + + # Image context and/or feature-specific parameters. + # Corresponds to the JSON property `imageContext` + # @return [Google::Apis::VisionV1::ImageContext] + attr_accessor :image_context + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_context = args[:image_context] if args.key?(:image_context) + @image = args[:image] if args.key?(:image) + @features = args[:features] if args.key?(:features) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # 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 + + # 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 @@ -1796,7 +1085,719 @@ module Google def update!(**args) @property = args[:property] if args.key?(:property) @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @words = args[:words] if args.key?(:words) + @text = args[:text] if args.key?(:text) + end + end + + # Rectangle determined by min and max `LatLng` pairs. + class LatLongRect + include Google::Apis::Core::Hashable + + # 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) + # The code in logs/storage/validator/logs_validator_traits.cc treats this type + # as if it were annotated as ST_LOCATION. + # Corresponds to the JSON property `minLatLng` + # @return [Google::Apis::VisionV1::LatLng] + attr_accessor :min_lat_lng + + # 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) + # The code in logs/storage/validator/logs_validator_traits.cc treats this type + # as if it were annotated as ST_LOCATION. + # Corresponds to the JSON property `maxLatLng` + # @return [Google::Apis::VisionV1::LatLng] + attr_accessor :max_lat_lng + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @min_lat_lng = args[:min_lat_lng] if args.key?(:min_lat_lng) + @max_lat_lng = args[:max_lat_lng] if args.key?(:max_lat_lng) + end + end + + # Set of crop hints that are used to generate new crops when serving images. + class CropHintsAnnotation + include Google::Apis::Core::Hashable + + # Crop hint results. + # Corresponds to the JSON property `cropHints` + # @return [Array] + attr_accessor :crop_hints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @crop_hints = args[:crop_hints] if args.key?(:crop_hints) + 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) + # The code in logs/storage/validator/logs_validator_traits.cc treats this type + # as if it were annotated as ST_LOCATION. + class LatLng + include Google::Apis::Core::Hashable + + # The latitude in degrees. It must be in the range [-90.0, +90.0]. + # Corresponds to the JSON property `latitude` + # @return [Float] + attr_accessor :latitude + + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @latitude = args[:latitude] if args.key?(:latitude) + @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 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 + + # 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 + + # 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 + + # Likelihood that this is a medical image. + # Corresponds to the JSON property `medical` + # @return [String] + attr_accessor :medical + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @violence = args[:violence] if args.key?(:violence) + @adult = args[:adult] if args.key?(:adult) + @spoof = args[:spoof] if args.key?(:spoof) + @medical = args[:medical] if args.key?(:medical) + end + end + + # Set of dominant colors and their corresponding scores. + class DominantColorsAnnotation + include Google::Apis::Core::Hashable + + # RGB color values with their score and pixel fraction. + # Corresponds to the JSON property `colors` + # @return [Array] + attr_accessor :colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @colors = args[:colors] if args.key?(:colors) + end + end + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please + # refer to the google.cloud.vision.v1.TextAnnotation.TextProperty message + # definition below for more detail. + class TextAnnotation + include Google::Apis::Core::Hashable + + # List of pages detected by OCR. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # UTF-8 text detected on the pages. + # 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) + @pages = args[:pages] if args.key?(:pages) + @text = args[:text] if args.key?(:text) + end + end + + # Detected language for a structural component. + class DetectedLanguage + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Confidence of detected language. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @confidence = args[:confidence] if args.key?(:confidence) + end + end + + # A vertex represents a 2D point in the image. + # NOTE: the vertex coordinates are in the same scale as the original image. + class Vertex + include Google::Apis::Core::Hashable + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Fixnum] + attr_accessor :y + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Fixnum] + attr_accessor :x + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @y = args[:y] if args.key?(:y) + @x = args[:x] if args.key?(:x) + end + end + + # Additional information detected on the structural component. + class TextProperty + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # 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) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @detected_break = args[:detected_break] if args.key?(:detected_break) + end + end + + # A bounding polygon for the detected image annotation. + class BoundingPoly + include Google::Apis::Core::Hashable + + # The bounding polygon vertices. + # Corresponds to the JSON property `vertices` + # @return [Array] + attr_accessor :vertices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @vertices = args[:vertices] if args.key?(:vertices) + end + end + + # Entity deduced from similar images on the Internet. + class WebEntity + include Google::Apis::Core::Hashable + + # 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 + + # 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) + end + + # Update properties of this object + def update!(**args) + @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 + + # Response to an image annotation request. + class AnnotateImageResponse + include Google::Apis::Core::Hashable + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1::Status] + attr_accessor :error + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please + # refer to the google.cloud.vision.v1.TextAnnotation.TextProperty message + # definition below for more detail. + # Corresponds to the JSON property `fullTextAnnotation` + # @return [Google::Apis::VisionV1::TextAnnotation] + attr_accessor :full_text_annotation + + # If present, landmark detection has completed successfully. + # Corresponds to the JSON property `landmarkAnnotations` + # @return [Array] + attr_accessor :landmark_annotations + + # If present, text (OCR) detection has completed successfully. + # Corresponds to the JSON property `textAnnotations` + # @return [Array] + attr_accessor :text_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] + attr_accessor :logo_annotations + + # Set of crop hints that are used to generate new crops when serving images. + # Corresponds to the JSON property `cropHintsAnnotation` + # @return [Google::Apis::VisionV1::CropHintsAnnotation] + attr_accessor :crop_hints_annotation + + # Relevant information for the image from the Internet. + # Corresponds to the JSON property `webDetection` + # @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) + @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) + @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 end diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb index 2f73c9b05..6b0b0b89d 100644 --- a/generated/google/apis/vision_v1/representations.rb +++ b/generated/google/apis/vision_v1/representations.rb @@ -22,144 +22,6 @@ module Google module Apis module VisionV1 - class FaceAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BatchAnnotateImagesRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DetectedBreak - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ImageContext - 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 AnnotateImageRequest - 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 Symbol - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LatLongRect - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CropHintsAnnotation - 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 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 - - include Google::Apis::Core::JsonObjectSupport - end - - class TextAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Vertex - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DetectedLanguage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class WebEntity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BoundingPoly - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TextProperty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AnnotateImageResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CropHintsParams class Representation < Google::Apis::Core::JsonRepresentation; end @@ -184,7 +46,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class WebDetection + class ImageSource class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -196,7 +58,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ImageSource + class WebDetection class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -263,248 +125,141 @@ module Google end class FaceAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :roll_angle, as: 'rollAngle' - property :sorrow_likelihood, as: 'sorrowLikelihood' - property :tilt_angle, as: 'tiltAngle' - property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation - - property :anger_likelihood, as: 'angerLikelihood' - collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::Landmark, decorator: Google::Apis::VisionV1::Landmark::Representation - - property :surprise_likelihood, as: 'surpriseLikelihood' - property :joy_likelihood, as: 'joyLikelihood' - property :landmarking_confidence, as: 'landmarkingConfidence' - end + include Google::Apis::Core::JsonObjectSupport end class BatchAnnotateImagesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :requests, as: 'requests', class: Google::Apis::VisionV1::AnnotateImageRequest, decorator: Google::Apis::VisionV1::AnnotateImageRequest::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class DetectedBreak - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :is_prefix, as: 'isPrefix' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ImageContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1::LatLongRect, decorator: Google::Apis::VisionV1::LatLongRect::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :crop_hints_params, as: 'cropHintsParams', class: Google::Apis::VisionV1::CropHintsParams, decorator: Google::Apis::VisionV1::CropHintsParams::Representation - - collection :language_hints, as: 'languageHints' - end + include Google::Apis::Core::JsonObjectSupport end class Page - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :width, as: 'width' - collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::Block, decorator: Google::Apis::VisionV1::Block::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation - - property :height, as: 'height' - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :features, as: 'features', class: Google::Apis::VisionV1::Feature, decorator: Google::Apis::VisionV1::Feature::Representation - - property :image_context, as: 'imageContext', class: Google::Apis::VisionV1::ImageContext, decorator: Google::Apis::VisionV1::ImageContext::Representation - - 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 Symbol - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :text, as: 'text' - property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class LatLongRect - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :min_lat_lng, as: 'minLatLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :max_lat_lng, as: 'maxLatLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class CropHintsAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1::CropHint, decorator: Google::Apis::VisionV1::CropHint::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class LatLng - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :longitude, as: 'longitude' - property :latitude, as: 'latitude' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 Representation < Google::Apis::Core::JsonRepresentation; end - class Feature - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :max_results, as: 'maxResults' - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport + end + + class Feature + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class SafeSearchAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :spoof, as: 'spoof' - property :medical, as: 'medical' - property :violence, as: 'violence' - property :adult, as: 'adult' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class DominantColorsAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :colors, as: 'colors', class: Google::Apis::VisionV1::ColorInfo, decorator: Google::Apis::VisionV1::ColorInfo::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class TextAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :pages, as: 'pages', class: Google::Apis::VisionV1::Page, decorator: Google::Apis::VisionV1::Page::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :text, as: 'text' - end - end - - class Vertex - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :y, as: 'y' - property :x, as: 'x' - end + include Google::Apis::Core::JsonObjectSupport end class DetectedLanguage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :language_code, as: 'languageCode' - property :confidence, as: 'confidence' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end - class WebEntity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :entity_id, as: 'entityId' - property :description, as: 'description' - property :score, as: 'score' - end - end + class Vertex + class Representation < Google::Apis::Core::JsonRepresentation; end - class BoundingPoly - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::Vertex, decorator: Google::Apis::VisionV1::Vertex::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class TextProperty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::DetectedLanguage, decorator: Google::Apis::VisionV1::DetectedLanguage::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::DetectedBreak, decorator: Google::Apis::VisionV1::DetectedBreak::Representation + include Google::Apis::Core::JsonObjectSupport + end - end + class BoundingPoly + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WebEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class AnnotateImageResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::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 :web_detection, as: 'webDetection', class: Google::Apis::VisionV1::WebDetection, decorator: Google::Apis::VisionV1::WebDetection::Representation - - property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::CropHintsAnnotation, decorator: Google::Apis::VisionV1::CropHintsAnnotation::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 - - 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 - - end + include Google::Apis::Core::JsonObjectSupport end class CropHintsParams @@ -544,6 +299,22 @@ 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 @@ -560,22 +331,6 @@ module Google 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 Position # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -598,26 +353,26 @@ module Google class WebPage # @private class Representation < Google::Apis::Core::JsonRepresentation - property :score, as: 'score' property :url, as: 'url' + property :score, as: 'score' end end class EntityAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :properties, as: 'properties', class: Google::Apis::VisionV1::Property, decorator: Google::Apis::VisionV1::Property::Representation - - property :score, as: 'score' collection :locations, as: 'locations', class: Google::Apis::VisionV1::LocationInfo, decorator: Google::Apis::VisionV1::LocationInfo::Representation property :mid, as: 'mid' property :confidence, as: 'confidence' - property :locale, as: 'locale' property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation + property :locale, as: 'locale' property :description, as: 'description' property :topicality, as: 'topicality' + collection :properties, as: 'properties', class: Google::Apis::VisionV1::Property, decorator: Google::Apis::VisionV1::Property::Representation + + property :score, as: 'score' end end @@ -651,12 +406,12 @@ module Google class Word # @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 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 + end end @@ -670,13 +425,258 @@ module Google end class Paragraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation + + collection :words, as: 'words', class: Google::Apis::VisionV1::Word, decorator: Google::Apis::VisionV1::Word::Representation + + property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation + + end + end + + class FaceAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation + + property :anger_likelihood, as: 'angerLikelihood' + collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::Landmark, decorator: Google::Apis::VisionV1::Landmark::Representation + + property :surprise_likelihood, as: 'surpriseLikelihood' + property :landmarking_confidence, as: 'landmarkingConfidence' + property :joy_likelihood, as: 'joyLikelihood' + property :detection_confidence, as: 'detectionConfidence' + property :pan_angle, as: 'panAngle' + property :under_exposed_likelihood, as: 'underExposedLikelihood' + 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 + + property :roll_angle, as: 'rollAngle' + property :sorrow_likelihood, as: 'sorrowLikelihood' + property :tilt_angle, as: 'tiltAngle' + end + end + + class BatchAnnotateImagesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :requests, as: 'requests', class: Google::Apis::VisionV1::AnnotateImageRequest, decorator: Google::Apis::VisionV1::AnnotateImageRequest::Representation + + end + end + + class DetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :is_prefix, as: 'isPrefix' + end + end + + class ImageContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + collection :language_hints, as: 'languageHints' + 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 + + end + end + + class AnnotateImageRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_context, as: 'imageContext', class: Google::Apis::VisionV1::ImageContext, decorator: Google::Apis::VisionV1::ImageContext::Representation + + 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 + + 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 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 - collection :words, as: 'words', class: Google::Apis::VisionV1::Word, decorator: Google::Apis::VisionV1::Word::Representation + property :text, as: 'text' + end + end + + class LatLongRect + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :min_lat_lng, as: 'minLatLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation + + property :max_lat_lng, as: 'maxLatLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation + + end + end + + class CropHintsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1::CropHint, decorator: Google::Apis::VisionV1::CropHint::Representation + + end + end + + class LatLng + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :latitude, as: 'latitude' + property :longitude, as: 'longitude' + 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 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 :violence, as: 'violence' + property :adult, as: 'adult' + property :spoof, as: 'spoof' + property :medical, as: 'medical' + end + end + + class DominantColorsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :colors, as: 'colors', class: Google::Apis::VisionV1::ColorInfo, decorator: Google::Apis::VisionV1::ColorInfo::Representation + + end + end + + class TextAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :pages, as: 'pages', class: Google::Apis::VisionV1::Page, decorator: Google::Apis::VisionV1::Page::Representation + + property :text, as: 'text' + end + end + + class DetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :confidence, as: 'confidence' + end + end + + class Vertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :y, as: 'y' + property :x, as: 'x' + end + end + + class TextProperty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 BoundingPoly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::Vertex, decorator: Google::Apis::VisionV1::Vertex::Representation + + end + end + + class WebEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_id, as: 'entityId' + property :description, as: 'description' + property :score, as: 'score' + end + end + + class AnnotateImageResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation + + collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::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 diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index d9d81d923..b4e104751 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -3491,6 +3491,7 @@ module Google # # Corresponds to the JSON property `imageBytes` + # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :image_bytes diff --git a/generated/google/apis/youtubereporting_v1.rb b/generated/google/apis/youtubereporting_v1.rb index b99a9d446..1f2bf259c 100644 --- a/generated/google/apis/youtubereporting_v1.rb +++ b/generated/google/apis/youtubereporting_v1.rb @@ -28,11 +28,11 @@ module Google VERSION = 'V1' REVISION = '20170329' - # View YouTube Analytics reports for your YouTube content - AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly' - # View monetary and non-monetary YouTube Analytics reports for your YouTube content AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly' + + # View YouTube Analytics reports for your YouTube content + AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly' end end end diff --git a/generated/google/apis/youtubereporting_v1/classes.rb b/generated/google/apis/youtubereporting_v1/classes.rb index 4f1896a4a..beb5f96d8 100644 --- a/generated/google/apis/youtubereporting_v1/classes.rb +++ b/generated/google/apis/youtubereporting_v1/classes.rb @@ -27,11 +27,6 @@ module Google class Report include Google::Apis::Core::Hashable - # 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] @@ -42,17 +37,17 @@ module Google # @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 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] @@ -64,19 +59,24 @@ module Google # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) + @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) end end @@ -99,35 +99,6 @@ module Google 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 - # A report type. class ReportType include Google::Apis::Core::Hashable @@ -168,15 +139,39 @@ module Google 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 + # 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 @@ -186,14 +181,19 @@ module Google # @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) - @jobs = args[:jobs] if args.key?(:jobs) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @jobs = args[:jobs] if args.key?(:jobs) end end @@ -201,23 +201,6 @@ module Google class Job include Google::Apis::Core::Hashable - # The server-generated ID of the job (max. 40 characters). - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # 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 creation date/time of the job. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - # The date/time when this job will expire/expired. After a job expired, no # new reports are generated. # Corresponds to the JSON property `expireTime` @@ -235,18 +218,35 @@ module Google # @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 + + # The creation date/time of the job. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @id = args[:id] if args.key?(:id) - @system_managed = args[:system_managed] if args.key?(:system_managed) - @create_time = args[:create_time] if args.key?(:create_time) @expire_time = args[:expire_time] if args.key?(:expire_time) @report_type_id = args[:report_type_id] if args.key?(:report_type_id) @name = args[:name] if args.key?(:name) + @system_managed = args[:system_managed] if args.key?(:system_managed) + @id = args[:id] if args.key?(:id) + @create_time = args[:create_time] if args.key?(:create_time) end end @@ -254,11 +254,6 @@ module Google class ListReportsResponse include Google::Apis::Core::Hashable - # The list of report types. - # Corresponds to the JSON property `reports` - # @return [Array] - attr_accessor :reports - # A token to retrieve next page of results. # Pass this value in the # ListReportsRequest.page_token @@ -268,14 +263,19 @@ module Google # @return [String] attr_accessor :next_page_token + # The list of report types. + # Corresponds to the JSON property `reports` + # @return [Array] + attr_accessor :reports + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @reports = args[:reports] if args.key?(:reports) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @reports = args[:reports] if args.key?(:reports) end end diff --git a/generated/google/apis/youtubereporting_v1/representations.rb b/generated/google/apis/youtubereporting_v1/representations.rb index e83be8422..353542e57 100644 --- a/generated/google/apis/youtubereporting_v1/representations.rb +++ b/generated/google/apis/youtubereporting_v1/representations.rb @@ -34,13 +34,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListReportTypesResponse + class ReportType class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ReportType + class ListReportTypesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -73,13 +73,13 @@ module Google class Report # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 :job_expire_time, as: 'jobExpireTime' property :download_url, as: 'downloadUrl' property :start_time, as: 'startTime' + property :create_time, as: 'createTime' end end @@ -89,15 +89,6 @@ module Google end end - class ListReportTypesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - class ReportType # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -108,33 +99,42 @@ module Google 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 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 - property :next_page_token, as: 'nextPageToken' end end class Job # @private class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :system_managed, as: 'systemManaged' - property :create_time, as: 'createTime' property :expire_time, as: 'expireTime' property :report_type_id, as: 'reportTypeId' property :name, as: 'name' + property :system_managed, as: 'systemManaged' + property :id, as: 'id' + property :create_time, as: 'createTime' end end class ListReportsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :reports, as: 'reports', class: Google::Apis::YoutubereportingV1::Report, decorator: Google::Apis::YoutubereportingV1::Report::Representation - property :next_page_token, as: 'nextPageToken' end end diff --git a/generated/google/apis/youtubereporting_v1/service.rb b/generated/google/apis/youtubereporting_v1/service.rb index 405edda1a..b28e8d5f4 100644 --- a/generated/google/apis/youtubereporting_v1/service.rb +++ b/generated/google/apis/youtubereporting_v1/service.rb @@ -33,66 +33,20 @@ module Google # # @see https://developers.google.com/youtube/reporting/v1/reports/ class YouTubeReportingService < 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://youtubereporting.googleapis.com/', '') end - # Lists report types. - # @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] 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(page_token: nil, include_system_managed: 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['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['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 @@ -372,12 +326,58 @@ module Google 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 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/lib/google/apis/version.rb b/lib/google/apis/version.rb index d0a0868f0..096282b3e 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.10.2' + VERSION = '0.10.3' # Current operating system # @private