diff --git a/api_names_out.yaml b/api_names_out.yaml index 293bc194a..9ce161966 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -2920,6 +2920,7 @@ "/compute:beta/Backend/maxRatePerInstance": max_rate_per_instance "/compute:beta/Backend/maxUtilization": max_utilization "/compute:beta/BackendService": backend_service +"/compute:beta/BackendService/affinityCookieTtlSec": affinity_cookie_ttl_sec "/compute:beta/BackendService/backends": backends "/compute:beta/BackendService/backends/backend": backend "/compute:beta/BackendService/creationTimestamp": creation_timestamp @@ -2936,6 +2937,7 @@ "/compute:beta/BackendService/protocol": protocol "/compute:beta/BackendService/region": region "/compute:beta/BackendService/selfLink": self_link +"/compute:beta/BackendService/sessionAffinity": session_affinity "/compute:beta/BackendService/timeoutSec": timeout_sec "/compute:beta/BackendServiceGroupHealth": backend_service_group_health "/compute:beta/BackendServiceGroupHealth/healthStatus": health_status @@ -4067,6 +4069,8 @@ "/compute:beta/VpnTunnel/name": name "/compute:beta/VpnTunnel/peerIp": peer_ip "/compute:beta/VpnTunnel/region": region +"/compute:beta/VpnTunnel/remoteTrafficSelector": remote_traffic_selector +"/compute:beta/VpnTunnel/remoteTrafficSelector/remote_traffic_selector": remote_traffic_selector "/compute:beta/VpnTunnel/router": router "/compute:beta/VpnTunnel/selfLink": self_link "/compute:beta/VpnTunnel/sharedSecret": shared_secret @@ -4396,6 +4400,229 @@ "/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/monitoring.projects.collectdTimeSeries.create": create_collectd_time_series +"/monitoring:v3/monitoring.projects.collectdTimeSeries.create/name": name +"/monitoring:v3/monitoring.projects.groups.update": update_project_group +"/monitoring:v3/monitoring.projects.groups.update/validateOnly": validate_only +"/monitoring:v3/monitoring.projects.groups.update/name": name +"/monitoring:v3/monitoring.projects.groups.get": get_project_group +"/monitoring:v3/monitoring.projects.groups.get/name": name +"/monitoring:v3/monitoring.projects.groups.create": create_project_group +"/monitoring:v3/monitoring.projects.groups.create/validateOnly": validate_only +"/monitoring:v3/monitoring.projects.groups.create/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/pageSize": page_size +"/monitoring:v3/monitoring.projects.groups.list/childrenOfGroup": children_of_group +"/monitoring:v3/monitoring.projects.groups.list/name": name +"/monitoring:v3/monitoring.projects.groups.list/ancestorsOfGroup": ancestors_of_group +"/monitoring:v3/monitoring.projects.groups.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.groups.delete": delete_project_group +"/monitoring:v3/monitoring.projects.groups.delete/name": name +"/monitoring:v3/monitoring.projects.groups.members.list": list_project_group_members +"/monitoring:v3/monitoring.projects.groups.members.list/filter": filter +"/monitoring:v3/monitoring.projects.groups.members.list/interval.endTime": interval_end_time +"/monitoring:v3/monitoring.projects.groups.members.list/interval.startTime": interval_start_time +"/monitoring:v3/monitoring.projects.groups.members.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.groups.members.list/name": name +"/monitoring:v3/monitoring.projects.groups.members.list/pageToken": page_token +"/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.list": list_project_metric_descriptors +"/monitoring:v3/monitoring.projects.metricDescriptors.list/pageSize": page_size +"/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.delete": delete_project_metric_descriptor +"/monitoring:v3/monitoring.projects.metricDescriptors.delete/name": name +"/monitoring:v3/monitoring.projects.timeSeries.create": create_time_series +"/monitoring:v3/monitoring.projects.timeSeries.create/name": name +"/monitoring:v3/monitoring.projects.timeSeries.list": list_project_time_series +"/monitoring:v3/monitoring.projects.timeSeries.list/filter": filter +"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.groupByFields": aggregation_group_by_fields +"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.crossSeriesReducer": aggregation_cross_series_reducer +"/monitoring:v3/monitoring.projects.timeSeries.list/interval.endTime": interval_end_time +"/monitoring:v3/monitoring.projects.timeSeries.list/interval.startTime": interval_start_time +"/monitoring:v3/monitoring.projects.timeSeries.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.timeSeries.list/view": view +"/monitoring:v3/monitoring.projects.timeSeries.list/name": name +"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.alignmentPeriod": aggregation_alignment_period +"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.perSeriesAligner": aggregation_per_series_aligner +"/monitoring:v3/monitoring.projects.timeSeries.list/orderBy": order_by +"/monitoring:v3/monitoring.projects.timeSeries.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.get": get_project_monitored_resource_descriptor +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.get/name": name +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list": list_project_monitored_resource_descriptors +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/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/Metric": metric +"/monitoring:v3/Metric/labels": labels +"/monitoring:v3/Metric/labels/label": label +"/monitoring:v3/Metric/type": type +"/monitoring:v3/ListGroupMembersResponse": list_group_members_response +"/monitoring:v3/ListGroupMembersResponse/members": members +"/monitoring:v3/ListGroupMembersResponse/members/member": member +"/monitoring:v3/ListGroupMembersResponse/nextPageToken": next_page_token +"/monitoring:v3/ListGroupMembersResponse/totalSize": total_size +"/monitoring:v3/TimeInterval": time_interval +"/monitoring:v3/TimeInterval/endTime": end_time +"/monitoring:v3/TimeInterval/startTime": start_time +"/monitoring:v3/Group": group +"/monitoring:v3/Group/displayName": display_name +"/monitoring:v3/Group/parentName": parent_name +"/monitoring:v3/Group/isCluster": is_cluster +"/monitoring:v3/Group/filter": filter +"/monitoring:v3/Group/name": 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/Point": point +"/monitoring:v3/Point/value": value +"/monitoring:v3/Point/interval": interval +"/monitoring:v3/CollectdValue": collectd_value +"/monitoring:v3/CollectdValue/value": value +"/monitoring:v3/CollectdValue/dataSourceName": data_source_name +"/monitoring:v3/CollectdValue/dataSourceType": data_source_type +"/monitoring:v3/TimeSeries": time_series +"/monitoring:v3/TimeSeries/metric": metric +"/monitoring:v3/TimeSeries/points": points +"/monitoring:v3/TimeSeries/points/point": point +"/monitoring:v3/TimeSeries/valueType": value_type +"/monitoring:v3/TimeSeries/resource": resource +"/monitoring:v3/TimeSeries/metricKind": metric_kind +"/monitoring:v3/MetricDescriptor": metric_descriptor +"/monitoring:v3/MetricDescriptor/description": description +"/monitoring:v3/MetricDescriptor/unit": unit +"/monitoring:v3/MetricDescriptor/labels": labels +"/monitoring:v3/MetricDescriptor/labels/label": label +"/monitoring:v3/MetricDescriptor/metricKind": metric_kind +"/monitoring:v3/MetricDescriptor/valueType": value_type +"/monitoring:v3/MetricDescriptor/displayName": display_name +"/monitoring:v3/MetricDescriptor/name": name +"/monitoring:v3/MetricDescriptor/type": type +"/monitoring:v3/Exponential": exponential +"/monitoring:v3/Exponential/growthFactor": growth_factor +"/monitoring:v3/Exponential/scale": scale +"/monitoring:v3/Exponential/numFiniteBuckets": num_finite_buckets +"/monitoring:v3/Explicit": explicit +"/monitoring:v3/Explicit/bounds": bounds +"/monitoring:v3/Explicit/bounds/bound": bound +"/monitoring:v3/Linear": linear +"/monitoring:v3/Linear/width": width +"/monitoring:v3/Linear/offset": offset +"/monitoring:v3/Linear/numFiniteBuckets": num_finite_buckets +"/monitoring:v3/CollectdPayload": collectd_payload +"/monitoring:v3/CollectdPayload/endTime": end_time +"/monitoring:v3/CollectdPayload/metadata": metadata +"/monitoring:v3/CollectdPayload/metadata/metadatum": metadatum +"/monitoring:v3/CollectdPayload/values": values +"/monitoring:v3/CollectdPayload/values/value": value +"/monitoring:v3/CollectdPayload/pluginInstance": plugin_instance +"/monitoring:v3/CollectdPayload/startTime": start_time +"/monitoring:v3/CollectdPayload/typeInstance": type_instance +"/monitoring:v3/CollectdPayload/type": type +"/monitoring:v3/CollectdPayload/plugin": plugin +"/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/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/count": count +"/monitoring:v3/Distribution/sumOfSquaredDeviation": sum_of_squared_deviation +"/monitoring:v3/Distribution/mean": mean +"/monitoring:v3/Distribution/range": range +"/monitoring:v3/Distribution/exemplars": exemplars +"/monitoring:v3/Distribution/exemplars/exemplar": exemplar +"/monitoring:v3/MonitoredResource": monitored_resource +"/monitoring:v3/MonitoredResource/labels": labels +"/monitoring:v3/MonitoredResource/labels/label": label +"/monitoring:v3/MonitoredResource/type": type +"/monitoring:v3/LabelDescriptor": label_descriptor +"/monitoring:v3/LabelDescriptor/description": description +"/monitoring:v3/LabelDescriptor/valueType": value_type +"/monitoring:v3/LabelDescriptor/key": key +"/monitoring:v3/MonitoredResourceDescriptor": monitored_resource_descriptor +"/monitoring:v3/MonitoredResourceDescriptor/displayName": display_name +"/monitoring:v3/MonitoredResourceDescriptor/description": description +"/monitoring:v3/MonitoredResourceDescriptor/labels": labels +"/monitoring:v3/MonitoredResourceDescriptor/labels/label": label +"/monitoring:v3/MonitoredResourceDescriptor/type": type +"/monitoring:v3/MonitoredResourceDescriptor/name": name +"/monitoring:v3/TypedValue": typed_value +"/monitoring:v3/TypedValue/boolValue": bool_value +"/monitoring:v3/TypedValue/stringValue": string_value +"/monitoring:v3/TypedValue/int64Value": int64_value +"/monitoring:v3/TypedValue/doubleValue": double_value +"/monitoring:v3/TypedValue/distributionValue": distribution_value +"/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/Field": field +"/monitoring:v3/Field/defaultValue": default_value +"/monitoring:v3/Field/jsonName": json_name +"/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/typeUrl": type_url +"/monitoring:v3/Field/name": name +"/monitoring:v3/Field/packed": packed +"/monitoring:v3/Field/number": number +"/monitoring:v3/Field/kind": kind +"/monitoring:v3/Option": option +"/monitoring:v3/Option/value": value +"/monitoring:v3/Option/value/value": value +"/monitoring:v3/Option/name": name +"/monitoring:v3/Empty": empty +"/monitoring:v3/SourceContext": source_context +"/monitoring:v3/SourceContext/fileName": file_name +"/monitoring:v3/Range": range +"/monitoring:v3/Range/max": max +"/monitoring:v3/Range/min": min +"/monitoring:v3/CreateTimeSeriesRequest": create_time_series_request +"/monitoring:v3/CreateTimeSeriesRequest/timeSeries": time_series +"/monitoring:v3/CreateTimeSeriesRequest/timeSeries/time_series": time_series +"/monitoring:v3/BucketOptions": bucket_options +"/monitoring:v3/BucketOptions/explicitBuckets": explicit_buckets +"/monitoring:v3/BucketOptions/exponentialBuckets": exponential_buckets +"/monitoring:v3/BucketOptions/linearBuckets": linear_buckets +"/monitoring:v3/CreateCollectdTimeSeriesRequest": create_collectd_time_series_request +"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads": collectd_payloads +"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads/collectd_payload": collectd_payload +"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdVersion": collectd_version +"/monitoring:v3/CreateCollectdTimeSeriesRequest/resource": resource +"/monitoring:v3/Type": type +"/monitoring:v3/Type/oneofs": oneofs +"/monitoring:v3/Type/oneofs/oneof": oneof +"/monitoring:v3/Type/options": options +"/monitoring:v3/Type/options/option": option +"/monitoring:v3/Type/sourceContext": source_context +"/monitoring:v3/Type/fields": fields +"/monitoring:v3/Type/fields/field": field +"/monitoring:v3/Type/name": name +"/monitoring:v3/Type/syntax": syntax +"/monitoring:v3/Exemplar": exemplar +"/monitoring:v3/Exemplar/value": value +"/monitoring:v3/Exemplar/attachments": attachments +"/monitoring:v3/Exemplar/attachments/attachment": attachment +"/monitoring:v3/Exemplar/attachments/attachment/attachment": attachment +"/monitoring:v3/Exemplar/timestamp": timestamp +"/monitoring:v3/ListGroupsResponse": list_groups_response +"/monitoring:v3/ListGroupsResponse/group": group +"/monitoring:v3/ListGroupsResponse/group/group": group +"/monitoring:v3/ListGroupsResponse/nextPageToken": next_page_token "/adexchangebuyer:v1.4/fields": fields "/adexchangebuyer:v1.4/key": key "/adexchangebuyer:v1.4/quotaUser": quota_user @@ -4571,6 +4798,15 @@ "/adexchangebuyer:v1.4/Creative/clickThroughUrl/click_through_url": click_through_url "/adexchangebuyer:v1.4/Creative/corrections": corrections "/adexchangebuyer:v1.4/Creative/corrections/correction": correction +"/adexchangebuyer:v1.4/Creative/corrections/correction/contexts": contexts +"/adexchangebuyer:v1.4/Creative/corrections/correction/contexts/context": context +"/adexchangebuyer:v1.4/Creative/corrections/correction/contexts/context/auctionType": auction_type +"/adexchangebuyer:v1.4/Creative/corrections/correction/contexts/context/auctionType/auction_type": auction_type +"/adexchangebuyer:v1.4/Creative/corrections/correction/contexts/context/contextType": context_type +"/adexchangebuyer:v1.4/Creative/corrections/correction/contexts/context/geoCriteriaId": geo_criteria_id +"/adexchangebuyer:v1.4/Creative/corrections/correction/contexts/context/geoCriteriaId/geo_criteria_id": geo_criteria_id +"/adexchangebuyer:v1.4/Creative/corrections/correction/contexts/context/platform": platform +"/adexchangebuyer:v1.4/Creative/corrections/correction/contexts/context/platform/platform": platform "/adexchangebuyer:v1.4/Creative/corrections/correction/details": details "/adexchangebuyer:v1.4/Creative/corrections/correction/details/detail": detail "/adexchangebuyer:v1.4/Creative/corrections/correction/reason": reason @@ -4585,6 +4821,8 @@ "/adexchangebuyer:v1.4/Creative/impressionTrackingUrl": impression_tracking_url "/adexchangebuyer:v1.4/Creative/impressionTrackingUrl/impression_tracking_url": impression_tracking_url "/adexchangebuyer:v1.4/Creative/kind": kind +"/adexchangebuyer:v1.4/Creative/languages": languages +"/adexchangebuyer:v1.4/Creative/languages/language": language "/adexchangebuyer:v1.4/Creative/nativeAd": native_ad "/adexchangebuyer:v1.4/Creative/nativeAd/advertiser": advertiser "/adexchangebuyer:v1.4/Creative/nativeAd/appIcon": app_icon @@ -4665,6 +4903,7 @@ "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/guaranteedLooks": guaranteed_looks "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTermsBillingInfo": deal_terms_guaranteed_fixed_price_terms_billing_info "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTermsBillingInfo/currencyConversionTimeMs": currency_conversion_time_ms +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTermsBillingInfo/dfpLineItemId": dfp_line_item_id "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTermsBillingInfo/originalContractedQuantity": original_contracted_quantity "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTermsBillingInfo/price": price "/adexchangebuyer:v1.4/DealTermsNonGuaranteedAuctionTerms": deal_terms_non_guaranteed_auction_terms @@ -4699,6 +4938,7 @@ "/adexchangebuyer:v1.4/DimensionDimensionValue": dimension_dimension_value "/adexchangebuyer:v1.4/DimensionDimensionValue/id": id "/adexchangebuyer:v1.4/DimensionDimensionValue/name": name +"/adexchangebuyer:v1.4/DimensionDimensionValue/percentage": percentage "/adexchangebuyer:v1.4/EditAllOrderDealsRequest": edit_all_order_deals_request "/adexchangebuyer:v1.4/EditAllOrderDealsRequest/deals": deals "/adexchangebuyer:v1.4/EditAllOrderDealsRequest/deals/deal": deal @@ -4966,6 +5206,7 @@ "/adexchangebuyer:v1.4/TargetingValueCreativeSize/companionSizes/companion_size": companion_size "/adexchangebuyer:v1.4/TargetingValueCreativeSize/creativeSizeType": creative_size_type "/adexchangebuyer:v1.4/TargetingValueCreativeSize/size": size +"/adexchangebuyer:v1.4/TargetingValueCreativeSize/skippableAdType": skippable_ad_type "/adexchangebuyer:v1.4/TargetingValueDayPartTargeting": targeting_value_day_part_targeting "/adexchangebuyer:v1.4/TargetingValueDayPartTargeting/dayParts": day_parts "/adexchangebuyer:v1.4/TargetingValueDayPartTargeting/dayParts/day_part": day_part @@ -9155,6 +9396,7 @@ "/bigquery:v2/UserDefinedFunctionResource/resourceUri": resource_uri "/bigquery:v2/ViewDefinition": view_definition "/bigquery:v2/ViewDefinition/query": query +"/bigquery:v2/ViewDefinition/useLegacySql": use_legacy_sql "/bigquery:v2/ViewDefinition/userDefinedFunctionResources": user_defined_function_resources "/bigquery:v2/ViewDefinition/userDefinedFunctionResources/user_defined_function_resource": user_defined_function_resource "/blogger:v3/fields": fields @@ -10817,88 +11059,6 @@ "/civicinfo:v2/VoterInfoResponse/precinctId": precinct_id "/civicinfo:v2/VoterInfoResponse/state": state "/civicinfo:v2/VoterInfoResponse/state/state": state -"/cloudbuild:v1/key": key -"/cloudbuild:v1/quotaUser": quota_user -"/cloudbuild:v1/fields": fields -"/cloudbuild:v1/cloudbuild.projects.builds.create": create_project_build -"/cloudbuild:v1/cloudbuild.projects.builds.create/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/pageToken": page_token -"/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.operations.get": get_operation -"/cloudbuild:v1/cloudbuild.operations.get/name": name -"/cloudbuild:v1/cloudbuild.operations.list": list_operations -"/cloudbuild:v1/cloudbuild.operations.list/pageSize": page_size -"/cloudbuild:v1/cloudbuild.operations.list/filter": filter -"/cloudbuild:v1/cloudbuild.operations.list/name": name -"/cloudbuild:v1/cloudbuild.operations.list/pageToken": page_token -"/cloudbuild:v1/Status": status -"/cloudbuild:v1/Status/code": code -"/cloudbuild:v1/Status/details": details -"/cloudbuild:v1/Status/details/detail": detail -"/cloudbuild:v1/Status/details/detail/detail": detail -"/cloudbuild:v1/Status/message": message -"/cloudbuild:v1/BuildOperationMetadata": build_operation_metadata -"/cloudbuild:v1/BuildOperationMetadata/build": build -"/cloudbuild:v1/Source": source -"/cloudbuild:v1/Source/storageSource": storage_source -"/cloudbuild:v1/Operation": operation -"/cloudbuild:v1/Operation/error": error -"/cloudbuild:v1/Operation/done": done -"/cloudbuild:v1/Operation/metadata": metadata -"/cloudbuild:v1/Operation/metadata/metadatum": metadatum -"/cloudbuild:v1/Operation/response": response -"/cloudbuild:v1/Operation/response/response": response -"/cloudbuild:v1/Operation/name": name -"/cloudbuild:v1/BuiltImage": built_image -"/cloudbuild:v1/BuiltImage/digest": digest -"/cloudbuild:v1/BuiltImage/name": name -"/cloudbuild:v1/StorageSource": storage_source -"/cloudbuild:v1/StorageSource/bucket": bucket -"/cloudbuild:v1/StorageSource/generation": generation -"/cloudbuild:v1/StorageSource/object": object -"/cloudbuild:v1/Results": results -"/cloudbuild:v1/Results/images": images -"/cloudbuild:v1/Results/images/image": image -"/cloudbuild:v1/Build": build -"/cloudbuild:v1/Build/id": id -"/cloudbuild:v1/Build/results": results -"/cloudbuild:v1/Build/status": status -"/cloudbuild:v1/Build/finishTime": finish_time -"/cloudbuild:v1/Build/timeout": timeout -"/cloudbuild:v1/Build/steps": steps -"/cloudbuild:v1/Build/steps/step": step -"/cloudbuild:v1/Build/source": source -"/cloudbuild:v1/Build/createTime": create_time -"/cloudbuild:v1/Build/statusDetail": status_detail -"/cloudbuild:v1/Build/images": images -"/cloudbuild:v1/Build/images/image": image -"/cloudbuild:v1/Build/startTime": start_time -"/cloudbuild:v1/Build/logsBucket": logs_bucket -"/cloudbuild:v1/Build/projectId": project_id -"/cloudbuild:v1/CancelBuildRequest": cancel_build_request -"/cloudbuild:v1/ListOperationsResponse": list_operations_response -"/cloudbuild:v1/ListOperationsResponse/nextPageToken": next_page_token -"/cloudbuild:v1/ListOperationsResponse/operations": operations -"/cloudbuild:v1/ListOperationsResponse/operations/operation": operation -"/cloudbuild:v1/BuildStep": build_step -"/cloudbuild:v1/BuildStep/args": args -"/cloudbuild:v1/BuildStep/args/arg": arg -"/cloudbuild:v1/BuildStep/dir": dir -"/cloudbuild:v1/BuildStep/name": name -"/cloudbuild:v1/BuildStep/env": env -"/cloudbuild:v1/BuildStep/env/env": env -"/cloudbuild:v1/ListBuildsResponse": list_builds_response -"/cloudbuild:v1/ListBuildsResponse/nextPageToken": next_page_token -"/cloudbuild:v1/ListBuildsResponse/builds": builds -"/cloudbuild:v1/ListBuildsResponse/builds/build": build "/cloudmonitoring:v2beta2/fields": fields "/cloudmonitoring:v2beta2/key": key "/cloudmonitoring:v2beta2/quotaUser": quota_user @@ -11629,6 +11789,10 @@ "/compute:v1/compute.instances.start/instance": instance "/compute:v1/compute.instances.start/project": project "/compute:v1/compute.instances.start/zone": zone +"/compute:v1/compute.instances.startWithEncryptionKey": start_instance_with_encryption_key +"/compute:v1/compute.instances.startWithEncryptionKey/instance": instance +"/compute:v1/compute.instances.startWithEncryptionKey/project": project +"/compute:v1/compute.instances.startWithEncryptionKey/zone": zone "/compute:v1/compute.instances.stop": stop_instance "/compute:v1/compute.instances.stop/instance": instance "/compute:v1/compute.instances.stop/project": project @@ -11691,6 +11855,40 @@ "/compute:v1/compute.regions.list/maxResults": max_results "/compute:v1/compute.regions.list/pageToken": page_token "/compute:v1/compute.regions.list/project": project +"/compute:v1/compute.routers.aggregatedList": aggregated_router_list +"/compute:v1/compute.routers.aggregatedList/filter": filter +"/compute:v1/compute.routers.aggregatedList/maxResults": max_results +"/compute:v1/compute.routers.aggregatedList/pageToken": page_token +"/compute:v1/compute.routers.aggregatedList/project": project +"/compute:v1/compute.routers.delete": delete_router +"/compute:v1/compute.routers.delete/project": project +"/compute:v1/compute.routers.delete/region": region +"/compute:v1/compute.routers.delete/router": router +"/compute:v1/compute.routers.get": get_router +"/compute:v1/compute.routers.get/project": project +"/compute:v1/compute.routers.get/region": region +"/compute:v1/compute.routers.get/router": router +"/compute:v1/compute.routers.getRouterStatus": get_router_router_status +"/compute:v1/compute.routers.getRouterStatus/project": project +"/compute:v1/compute.routers.getRouterStatus/region": region +"/compute:v1/compute.routers.getRouterStatus/router": router +"/compute:v1/compute.routers.insert": insert_router +"/compute:v1/compute.routers.insert/project": project +"/compute:v1/compute.routers.insert/region": region +"/compute:v1/compute.routers.list": list_routers +"/compute:v1/compute.routers.list/filter": filter +"/compute:v1/compute.routers.list/maxResults": max_results +"/compute:v1/compute.routers.list/pageToken": page_token +"/compute:v1/compute.routers.list/project": project +"/compute:v1/compute.routers.list/region": region +"/compute:v1/compute.routers.patch": patch_router +"/compute:v1/compute.routers.patch/project": project +"/compute:v1/compute.routers.patch/region": region +"/compute:v1/compute.routers.patch/router": router +"/compute:v1/compute.routers.update": update_router +"/compute:v1/compute.routers.update/project": project +"/compute:v1/compute.routers.update/region": region +"/compute:v1/compute.routers.update/router": router "/compute:v1/compute.routes.delete": delete_route "/compute:v1/compute.routes.delete/project": project "/compute:v1/compute.routes.delete/route": route @@ -11972,6 +12170,7 @@ "/compute:v1/AttachedDisk/autoDelete": auto_delete "/compute:v1/AttachedDisk/boot": boot "/compute:v1/AttachedDisk/deviceName": device_name +"/compute:v1/AttachedDisk/diskEncryptionKey": disk_encryption_key "/compute:v1/AttachedDisk/index": index "/compute:v1/AttachedDisk/initializeParams": initialize_params "/compute:v1/AttachedDisk/interface": interface @@ -11986,6 +12185,7 @@ "/compute:v1/AttachedDiskInitializeParams/diskSizeGb": disk_size_gb "/compute:v1/AttachedDiskInitializeParams/diskType": disk_type "/compute:v1/AttachedDiskInitializeParams/sourceImage": source_image +"/compute:v1/AttachedDiskInitializeParams/sourceImageEncryptionKey": source_image_encryption_key "/compute:v1/Autoscaler": autoscaler "/compute:v1/Autoscaler/autoscalingPolicy": autoscaling_policy "/compute:v1/Autoscaler/creationTimestamp": creation_timestamp @@ -12072,6 +12272,12 @@ "/compute:v1/BackendServiceList/kind": kind "/compute:v1/BackendServiceList/nextPageToken": next_page_token "/compute:v1/BackendServiceList/selfLink": self_link +"/compute:v1/CustomerEncryptionKey": customer_encryption_key +"/compute:v1/CustomerEncryptionKey/rawKey": raw_key +"/compute:v1/CustomerEncryptionKey/sha256": sha256 +"/compute:v1/CustomerEncryptionKeyProtectedDisk": customer_encryption_key_protected_disk +"/compute:v1/CustomerEncryptionKeyProtectedDisk/diskEncryptionKey": disk_encryption_key +"/compute:v1/CustomerEncryptionKeyProtectedDisk/source": source "/compute:v1/DeprecationStatus": deprecation_status "/compute:v1/DeprecationStatus/deleted": deleted "/compute:v1/DeprecationStatus/deprecated": deprecated @@ -12081,6 +12287,7 @@ "/compute:v1/Disk": disk "/compute:v1/Disk/creationTimestamp": creation_timestamp "/compute:v1/Disk/description": description +"/compute:v1/Disk/diskEncryptionKey": disk_encryption_key "/compute:v1/Disk/id": id "/compute:v1/Disk/kind": kind "/compute:v1/Disk/lastAttachTimestamp": last_attach_timestamp @@ -12092,8 +12299,10 @@ "/compute:v1/Disk/selfLink": self_link "/compute:v1/Disk/sizeGb": size_gb "/compute:v1/Disk/sourceImage": source_image +"/compute:v1/Disk/sourceImageEncryptionKey": source_image_encryption_key "/compute:v1/Disk/sourceImageId": source_image_id "/compute:v1/Disk/sourceSnapshot": source_snapshot +"/compute:v1/Disk/sourceSnapshotEncryptionKey": source_snapshot_encryption_key "/compute:v1/Disk/sourceSnapshotId": source_snapshot_id "/compute:v1/Disk/status": status "/compute:v1/Disk/type": type @@ -12287,6 +12496,7 @@ "/compute:v1/Image/diskSizeGb": disk_size_gb "/compute:v1/Image/family": family "/compute:v1/Image/id": id +"/compute:v1/Image/imageEncryptionKey": image_encryption_key "/compute:v1/Image/kind": kind "/compute:v1/Image/licenses": licenses "/compute:v1/Image/licenses/license": license @@ -12297,6 +12507,7 @@ "/compute:v1/Image/rawDisk/source": source "/compute:v1/Image/selfLink": self_link "/compute:v1/Image/sourceDisk": source_disk +"/compute:v1/Image/sourceDiskEncryptionKey": source_disk_encryption_key "/compute:v1/Image/sourceDiskId": source_disk_id "/compute:v1/Image/sourceType": source_type "/compute:v1/Image/status": status @@ -12517,6 +12728,9 @@ "/compute:v1/InstancesScopedList/warning/message": message "/compute:v1/InstancesSetMachineTypeRequest": instances_set_machine_type_request "/compute:v1/InstancesSetMachineTypeRequest/machineType": machine_type +"/compute:v1/InstancesStartWithEncryptionKeyRequest": instances_start_with_encryption_key_request +"/compute:v1/InstancesStartWithEncryptionKeyRequest/disks": disks +"/compute:v1/InstancesStartWithEncryptionKeyRequest/disks/disk": disk "/compute:v1/License": license "/compute:v1/License/chargesUseFee": charges_use_fee "/compute:v1/License/kind": kind @@ -12529,6 +12743,7 @@ "/compute:v1/MachineType/guestCpus": guest_cpus "/compute:v1/MachineType/id": id "/compute:v1/MachineType/imageSpaceGb": image_space_gb +"/compute:v1/MachineType/isSharedCpu": is_shared_cpu "/compute:v1/MachineType/kind": kind "/compute:v1/MachineType/maximumPersistentDisks": maximum_persistent_disks "/compute:v1/MachineType/maximumPersistentDisksSizeGb": maximum_persistent_disks_size_gb @@ -12685,6 +12900,7 @@ "/compute:v1/Project": project "/compute:v1/Project/commonInstanceMetadata": common_instance_metadata "/compute:v1/Project/creationTimestamp": creation_timestamp +"/compute:v1/Project/defaultServiceAccount": default_service_account "/compute:v1/Project/description": description "/compute:v1/Project/enabledFeatures": enabled_features "/compute:v1/Project/enabledFeatures/enabled_feature": enabled_feature @@ -12753,6 +12969,78 @@ "/compute:v1/RouteList/kind": kind "/compute:v1/RouteList/nextPageToken": next_page_token "/compute:v1/RouteList/selfLink": self_link +"/compute:v1/Router": router +"/compute:v1/Router/bgp": bgp +"/compute:v1/Router/bgpPeers": bgp_peers +"/compute:v1/Router/bgpPeers/bgp_peer": bgp_peer +"/compute:v1/Router/creationTimestamp": creation_timestamp +"/compute:v1/Router/description": description +"/compute:v1/Router/id": id +"/compute:v1/Router/interfaces": interfaces +"/compute:v1/Router/interfaces/interface": interface +"/compute:v1/Router/kind": kind +"/compute:v1/Router/name": name +"/compute:v1/Router/network": network +"/compute:v1/Router/region": region +"/compute:v1/Router/selfLink": self_link +"/compute:v1/RouterAggregatedList": router_aggregated_list +"/compute:v1/RouterAggregatedList/id": id +"/compute:v1/RouterAggregatedList/items": items +"/compute:v1/RouterAggregatedList/items/item": item +"/compute:v1/RouterAggregatedList/kind": kind +"/compute:v1/RouterAggregatedList/nextPageToken": next_page_token +"/compute:v1/RouterAggregatedList/selfLink": self_link +"/compute:v1/RouterBgp": router_bgp +"/compute:v1/RouterBgp/asn": asn +"/compute:v1/RouterBgpPeer": router_bgp_peer +"/compute:v1/RouterBgpPeer/advertisedRoutePriority": advertised_route_priority +"/compute:v1/RouterBgpPeer/interfaceName": interface_name +"/compute:v1/RouterBgpPeer/ipAddress": ip_address +"/compute:v1/RouterBgpPeer/name": name +"/compute:v1/RouterBgpPeer/peerAsn": peer_asn +"/compute:v1/RouterBgpPeer/peerIpAddress": peer_ip_address +"/compute:v1/RouterInterface": router_interface +"/compute:v1/RouterInterface/ipRange": ip_range +"/compute:v1/RouterInterface/linkedVpnTunnel": linked_vpn_tunnel +"/compute:v1/RouterInterface/name": name +"/compute:v1/RouterList": router_list +"/compute:v1/RouterList/id": id +"/compute:v1/RouterList/items": items +"/compute:v1/RouterList/items/item": item +"/compute:v1/RouterList/kind": kind +"/compute:v1/RouterList/nextPageToken": next_page_token +"/compute:v1/RouterList/selfLink": self_link +"/compute:v1/RouterStatus": router_status +"/compute:v1/RouterStatus/bestRoutes": best_routes +"/compute:v1/RouterStatus/bestRoutes/best_route": best_route +"/compute:v1/RouterStatus/bgpPeerStatus": bgp_peer_status +"/compute:v1/RouterStatus/bgpPeerStatus/bgp_peer_status": bgp_peer_status +"/compute:v1/RouterStatus/network": network +"/compute:v1/RouterStatusBgpPeerStatus": router_status_bgp_peer_status +"/compute:v1/RouterStatusBgpPeerStatus/advertisedRoutes": advertised_routes +"/compute:v1/RouterStatusBgpPeerStatus/advertisedRoutes/advertised_route": advertised_route +"/compute:v1/RouterStatusBgpPeerStatus/ipAddress": ip_address +"/compute:v1/RouterStatusBgpPeerStatus/linkedVpnTunnel": linked_vpn_tunnel +"/compute:v1/RouterStatusBgpPeerStatus/name": name +"/compute:v1/RouterStatusBgpPeerStatus/numLearnedRoutes": num_learned_routes +"/compute:v1/RouterStatusBgpPeerStatus/peerIpAddress": peer_ip_address +"/compute:v1/RouterStatusBgpPeerStatus/state": state +"/compute:v1/RouterStatusBgpPeerStatus/status": status +"/compute:v1/RouterStatusBgpPeerStatus/uptime": uptime +"/compute:v1/RouterStatusBgpPeerStatus/uptimeSeconds": uptime_seconds +"/compute:v1/RouterStatusResponse": router_status_response +"/compute:v1/RouterStatusResponse/kind": kind +"/compute:v1/RouterStatusResponse/result": result +"/compute:v1/RoutersScopedList": routers_scoped_list +"/compute:v1/RoutersScopedList/routers": routers +"/compute:v1/RoutersScopedList/routers/router": router +"/compute:v1/RoutersScopedList/warning": warning +"/compute:v1/RoutersScopedList/warning/code": code +"/compute:v1/RoutersScopedList/warning/data": data +"/compute:v1/RoutersScopedList/warning/data/datum": datum +"/compute:v1/RoutersScopedList/warning/data/datum/key": key +"/compute:v1/RoutersScopedList/warning/data/datum/value": value +"/compute:v1/RoutersScopedList/warning/message": message "/compute:v1/Scheduling": scheduling "/compute:v1/Scheduling/automaticRestart": automatic_restart "/compute:v1/Scheduling/onHostMaintenance": on_host_maintenance @@ -12775,7 +13063,9 @@ "/compute:v1/Snapshot/licenses/license": license "/compute:v1/Snapshot/name": name "/compute:v1/Snapshot/selfLink": self_link +"/compute:v1/Snapshot/snapshotEncryptionKey": snapshot_encryption_key "/compute:v1/Snapshot/sourceDisk": source_disk +"/compute:v1/Snapshot/sourceDiskEncryptionKey": source_disk_encryption_key "/compute:v1/Snapshot/sourceDiskId": source_disk_id "/compute:v1/Snapshot/status": status "/compute:v1/Snapshot/storageBytes": storage_bytes @@ -13060,6 +13350,9 @@ "/compute:v1/VpnTunnel/name": name "/compute:v1/VpnTunnel/peerIp": peer_ip "/compute:v1/VpnTunnel/region": region +"/compute:v1/VpnTunnel/remoteTrafficSelector": remote_traffic_selector +"/compute:v1/VpnTunnel/remoteTrafficSelector/remote_traffic_selector": remote_traffic_selector +"/compute:v1/VpnTunnel/router": router "/compute:v1/VpnTunnel/selfLink": self_link "/compute:v1/VpnTunnel/sharedSecret": shared_secret "/compute:v1/VpnTunnel/sharedSecretHash": shared_secret_hash @@ -17790,10 +18083,12 @@ "/drive:v2/drive.permissions.patch": patch_permission "/drive:v2/drive.permissions.patch/fileId": file_id "/drive:v2/drive.permissions.patch/permissionId": permission_id +"/drive:v2/drive.permissions.patch/removeExpiration": remove_expiration "/drive:v2/drive.permissions.patch/transferOwnership": transfer_ownership "/drive:v2/drive.permissions.update": update_permission "/drive:v2/drive.permissions.update/fileId": file_id "/drive:v2/drive.permissions.update/permissionId": permission_id +"/drive:v2/drive.permissions.update/removeExpiration": remove_expiration "/drive:v2/drive.permissions.update/transferOwnership": transfer_ownership "/drive:v2/drive.properties.delete": delete_property "/drive:v2/drive.properties.delete/fileId": file_id @@ -18171,6 +18466,7 @@ "/drive:v2/Permission/domain": domain "/drive:v2/Permission/emailAddress": email_address "/drive:v2/Permission/etag": etag +"/drive:v2/Permission/expirationDate": expiration_date "/drive:v2/Permission/id": id "/drive:v2/Permission/kind": kind "/drive:v2/Permission/name": name @@ -18327,6 +18623,7 @@ "/drive:v3/drive.permissions.update": update_permission "/drive:v3/drive.permissions.update/fileId": file_id "/drive:v3/drive.permissions.update/permissionId": permission_id +"/drive:v3/drive.permissions.update/removeExpiration": remove_expiration "/drive:v3/drive.permissions.update/transferOwnership": transfer_ownership "/drive:v3/drive.replies.create": create_reply "/drive:v3/drive.replies.create/commentId": comment_id @@ -18529,6 +18826,7 @@ "/drive:v3/Permission/displayName": display_name "/drive:v3/Permission/domain": domain "/drive:v3/Permission/emailAddress": email_address +"/drive:v3/Permission/expirationTime": expiration_time "/drive:v3/Permission/id": id "/drive:v3/Permission/kind": kind "/drive:v3/Permission/photoLink": photo_link @@ -20305,10 +20603,12 @@ "/groupssettings:v1/Groups/allowGoogleCommunication": allow_google_communication "/groupssettings:v1/Groups/allowWebPosting": allow_web_posting "/groupssettings:v1/Groups/archiveOnly": archive_only +"/groupssettings:v1/Groups/customFooterText": custom_footer_text "/groupssettings:v1/Groups/customReplyTo": custom_reply_to "/groupssettings:v1/Groups/defaultMessageDenyNotificationText": default_message_deny_notification_text "/groupssettings:v1/Groups/description": description "/groupssettings:v1/Groups/email": email +"/groupssettings:v1/Groups/includeCustomFooter": include_custom_footer "/groupssettings:v1/Groups/includeInGlobalAddressList": include_in_global_address_list "/groupssettings:v1/Groups/isArchived": is_archived "/groupssettings:v1/Groups/kind": kind @@ -22246,8 +22546,18 @@ "/genomics:v1/OperationMetadata/request/request": request "/genomics:v1/OperationMetadata/events": events "/genomics:v1/OperationMetadata/events/event": event +"/genomics:v1/OperationMetadata/runtimeMetadata": runtime_metadata +"/genomics:v1/OperationMetadata/runtimeMetadata/runtime_metadatum": runtime_metadatum "/genomics:v1/OperationEvent": operation_event "/genomics:v1/OperationEvent/description": description +"/genomics:v1/RuntimeMetadata": runtime_metadata +"/genomics:v1/RuntimeMetadata/gce": gce +"/genomics:v1/GCE": gce +"/genomics:v1/GCE/instanceName": instance_name +"/genomics:v1/GCE/zone": zone +"/genomics:v1/GCE/machineType": machine_type +"/genomics:v1/GCE/diskNames": disk_names +"/genomics:v1/GCE/diskNames/disk_name": disk_name "/iam:v1/fields": fields "/iam:v1/key": key "/iam:v1/quotaUser": quota_user @@ -23558,6 +23868,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/oobCode": oob_code "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/captchaChallenge": captcha_challenge "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/captchaResponse": captcha_response +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/createdAt": created_at "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/deleteAttribute": delete_attribute "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/deleteAttribute/delete_attribute": delete_attribute @@ -23569,6 +23880,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/emailVerified": email_verified "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/idToken": id_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/instanceId": instance_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/lastLoginAt": last_login_at "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/localId": local_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/oobCode": oob_code "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/password": password @@ -23639,6 +23951,8 @@ "/identitytoolkit:v3/IdpConfig/experimentPercent": experiment_percent "/identitytoolkit:v3/IdpConfig/provider": provider "/identitytoolkit:v3/IdpConfig/secret": secret +"/identitytoolkit:v3/IdpConfig/whitelistedAudiences": whitelisted_audiences +"/identitytoolkit:v3/IdpConfig/whitelistedAudiences/whitelisted_audience": whitelisted_audience "/identitytoolkit:v3/Relyingparty": relyingparty "/identitytoolkit:v3/Relyingparty/captchaResp": captcha_resp "/identitytoolkit:v3/Relyingparty/challenge": challenge @@ -23683,10 +23997,12 @@ "/identitytoolkit:v3/UploadAccountResponse/error/error/message": message "/identitytoolkit:v3/UploadAccountResponse/kind": kind "/identitytoolkit:v3/UserInfo": user_info +"/identitytoolkit:v3/UserInfo/createdAt": created_at "/identitytoolkit:v3/UserInfo/disabled": disabled "/identitytoolkit:v3/UserInfo/displayName": display_name "/identitytoolkit:v3/UserInfo/email": email "/identitytoolkit:v3/UserInfo/emailVerified": email_verified +"/identitytoolkit:v3/UserInfo/lastLoginAt": last_login_at "/identitytoolkit:v3/UserInfo/localId": local_id "/identitytoolkit:v3/UserInfo/passwordHash": password_hash "/identitytoolkit:v3/UserInfo/passwordUpdatedAt": password_updated_at @@ -28117,6 +28433,7 @@ "/youtube:v3/youtube.subscriptions.list/id": id "/youtube:v3/youtube.subscriptions.list/maxResults": max_results "/youtube:v3/youtube.subscriptions.list/mine": mine +"/youtube:v3/youtube.subscriptions.list/myRecentSubscribers": my_recent_subscribers "/youtube:v3/youtube.subscriptions.list/mySubscribers": my_subscribers "/youtube:v3/youtube.subscriptions.list/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtube:v3/youtube.subscriptions.list/onBehalfOfContentOwnerChannel": on_behalf_of_content_owner_channel @@ -28788,6 +29105,10 @@ "/youtube:v3/LiveChatMessageSnippet/liveChatId": live_chat_id "/youtube:v3/LiveChatMessageSnippet/messageDeletedDetails": message_deleted_details "/youtube:v3/LiveChatMessageSnippet/messageRetractedDetails": message_retracted_details +"/youtube:v3/LiveChatMessageSnippet/pollClosedDetails": poll_closed_details +"/youtube:v3/LiveChatMessageSnippet/pollEditedDetails": poll_edited_details +"/youtube:v3/LiveChatMessageSnippet/pollOpenedDetails": poll_opened_details +"/youtube:v3/LiveChatMessageSnippet/pollVotedDetails": poll_voted_details "/youtube:v3/LiveChatMessageSnippet/publishedAt": published_at "/youtube:v3/LiveChatMessageSnippet/textMessageDetails": text_message_details "/youtube:v3/LiveChatMessageSnippet/type": type @@ -28811,6 +29132,24 @@ "/youtube:v3/LiveChatModeratorSnippet": live_chat_moderator_snippet "/youtube:v3/LiveChatModeratorSnippet/liveChatId": live_chat_id "/youtube:v3/LiveChatModeratorSnippet/moderatorDetails": moderator_details +"/youtube:v3/LiveChatPollClosedDetails": live_chat_poll_closed_details +"/youtube:v3/LiveChatPollClosedDetails/pollId": poll_id +"/youtube:v3/LiveChatPollEditedDetails": live_chat_poll_edited_details +"/youtube:v3/LiveChatPollEditedDetails/id": id +"/youtube:v3/LiveChatPollEditedDetails/items": items +"/youtube:v3/LiveChatPollEditedDetails/items/item": item +"/youtube:v3/LiveChatPollEditedDetails/prompt": prompt +"/youtube:v3/LiveChatPollItem": live_chat_poll_item +"/youtube:v3/LiveChatPollItem/description": description +"/youtube:v3/LiveChatPollItem/itemId": item_id +"/youtube:v3/LiveChatPollOpenedDetails": live_chat_poll_opened_details +"/youtube:v3/LiveChatPollOpenedDetails/id": id +"/youtube:v3/LiveChatPollOpenedDetails/items": items +"/youtube:v3/LiveChatPollOpenedDetails/items/item": item +"/youtube:v3/LiveChatPollOpenedDetails/prompt": prompt +"/youtube:v3/LiveChatPollVotedDetails": live_chat_poll_voted_details +"/youtube:v3/LiveChatPollVotedDetails/itemId": item_id +"/youtube:v3/LiveChatPollVotedDetails/pollId": poll_id "/youtube:v3/LiveChatTextMessageDetails": live_chat_text_message_details "/youtube:v3/LiveChatTextMessageDetails/messageText": message_text "/youtube:v3/LiveChatUserBannedMessageDetails": live_chat_user_banned_message_details diff --git a/generated/google/apis/adexchangebuyer_v1_4.rb b/generated/google/apis/adexchangebuyer_v1_4.rb index bdcc65c1f..5caa91413 100644 --- a/generated/google/apis/adexchangebuyer_v1_4.rb +++ b/generated/google/apis/adexchangebuyer_v1_4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_4 VERSION = 'V1_4' - REVISION = '20160509' + REVISION = '20160606' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer_v1_4/classes.rb b/generated/google/apis/adexchangebuyer_v1_4/classes.rb index 54396d180..c2e480684 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/classes.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/classes.rb @@ -556,6 +556,12 @@ module Google # @return [String] attr_accessor :kind + # Detected languages for this creative. Read-only. This field should not be set + # in requests. + # Corresponds to the JSON property `languages` + # @return [Array] + attr_accessor :languages + # If nativeAd is set, HTMLSnippet and videoURL should not be set. # Corresponds to the JSON property `nativeAd` # @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd] @@ -638,6 +644,7 @@ module Google @height = args[:height] if args.key?(:height) @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url) @kind = args[:kind] if args.key?(:kind) + @languages = args[:languages] if args.key?(:languages) @native_ad = args[:native_ad] if args.key?(:native_ad) @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status) @product_categories = args[:product_categories] if args.key?(:product_categories) @@ -654,6 +661,11 @@ module Google class Correction include Google::Apis::Core::Hashable + # All known serving contexts containing serving status information. + # Corresponds to the JSON property `contexts` + # @return [Array] + attr_accessor :contexts + # Additional details about the correction. # Corresponds to the JSON property `details` # @return [Array] @@ -670,9 +682,50 @@ module Google # Update properties of this object def update!(**args) + @contexts = args[:contexts] if args.key?(:contexts) @details = args[:details] if args.key?(:details) @reason = args[:reason] if args.key?(:reason) end + + # + class Context + include Google::Apis::Core::Hashable + + # Only set when contextType=AUCTION_TYPE. Represents the auction types this + # correction applies to. + # Corresponds to the JSON property `auctionType` + # @return [Array] + attr_accessor :auction_type + + # The type of context (e.g., location, platform, auction type, SSL-ness). + # Corresponds to the JSON property `contextType` + # @return [String] + attr_accessor :context_type + + # Only set when contextType=LOCATION. Represents the geo criterias this + # correction applies to. + # Corresponds to the JSON property `geoCriteriaId` + # @return [Array] + attr_accessor :geo_criteria_id + + # Only set when contextType=PLATFORM. Represents the platforms this correction + # applies to. + # Corresponds to the JSON property `platform` + # @return [Array] + attr_accessor :platform + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auction_type = args[:auction_type] if args.key?(:auction_type) + @context_type = args[:context_type] if args.key?(:context_type) + @geo_criteria_id = args[:geo_criteria_id] if args.key?(:geo_criteria_id) + @platform = args[:platform] if args.key?(:platform) + end + end end # The filtering reasons for the creative. Read-only. This field should not be @@ -1213,6 +1266,12 @@ module Google # @return [String] attr_accessor :currency_conversion_time_ms + # The DFP line item id associated with this deal. For features like CPD, buyers + # can retrieve the DFP line item for billing reconciliation. + # Corresponds to the JSON property `dfpLineItemId` + # @return [String] + attr_accessor :dfp_line_item_id + # The original contracted quantity (# impressions) for this deal. To ensure # delivery, sometimes publisher will book the deal with a impression buffer, # however clients are billed using the original contracted quantity. @@ -1233,6 +1292,7 @@ module Google # Update properties of this object def update!(**args) @currency_conversion_time_ms = args[:currency_conversion_time_ms] if args.key?(:currency_conversion_time_ms) + @dfp_line_item_id = args[:dfp_line_item_id] if args.key?(:dfp_line_item_id) @original_contracted_quantity = args[:original_contracted_quantity] if args.key?(:original_contracted_quantity) @price = args[:price] if args.key?(:price) end @@ -1438,11 +1498,19 @@ module Google # @return [Fixnum] attr_accessor :id - # Name of the dimension mainly for debugging purposes. + # Name of the dimension mainly for debugging purposes, except for the case of + # CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # Percent of total impressions for a dimension type. e.g. `dimension_type: ' + # GENDER', [`dimension_value: `id: 1, name: 'MALE', percentage: 60``]` Gender + # MALE is 60% of all impressions which have gender. + # Corresponds to the JSON property `percentage` + # @return [Fixnum] + attr_accessor :percentage + def initialize(**args) update!(**args) end @@ -1451,6 +1519,7 @@ module Google def update!(**args) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) + @percentage = args[:percentage] if args.key?(:percentage) end end @@ -3138,6 +3207,11 @@ module Google # @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueSize] attr_accessor :size + # The skippable ad type for video size. + # Corresponds to the JSON property `skippableAdType` + # @return [String] + attr_accessor :skippable_ad_type + def initialize(**args) update!(**args) end @@ -3147,6 +3221,7 @@ module Google @companion_sizes = args[:companion_sizes] if args.key?(:companion_sizes) @creative_size_type = args[:creative_size_type] if args.key?(:creative_size_type) @size = args[:size] if args.key?(:size) + @skippable_ad_type = args[:skippable_ad_type] if args.key?(:skippable_ad_type) end end diff --git a/generated/google/apis/adexchangebuyer_v1_4/representations.rb b/generated/google/apis/adexchangebuyer_v1_4/representations.rb index d34de0666..f32f5ff5a 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/representations.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/representations.rb @@ -111,6 +111,12 @@ module Google class Correction class Representation < Google::Apis::Core::JsonRepresentation; end + + class Context + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end include Google::Apis::Core::JsonObjectSupport end @@ -614,6 +620,7 @@ module Google property :height, as: 'height' collection :impression_tracking_url, as: 'impressionTrackingUrl' property :kind, as: 'kind' + collection :languages, as: 'languages' property :native_ad, as: 'nativeAd', class: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Representation property :open_auction_status, as: 'openAuctionStatus' @@ -631,9 +638,21 @@ module Google class Correction # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :contexts, as: 'contexts', class: Google::Apis::AdexchangebuyerV1_4::Creative::Correction::Context, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::Correction::Context::Representation + collection :details, as: 'details' property :reason, as: 'reason' end + + class Context + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :auction_type, as: 'auctionType' + property :context_type, as: 'contextType' + collection :geo_criteria_id, as: 'geoCriteriaId' + collection :platform, as: 'platform' + end + end end class FilteringReasons @@ -792,6 +811,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :currency_conversion_time_ms, as: 'currencyConversionTimeMs' + property :dfp_line_item_id, as: 'dfpLineItemId' property :original_contracted_quantity, as: 'originalContractedQuantity' property :price, as: 'price', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation @@ -866,6 +886,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' property :name, as: 'name' + property :percentage, as: 'percentage' end end @@ -1292,6 +1313,7 @@ module Google property :creative_size_type, as: 'creativeSizeType' property :size, as: 'size', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize::Representation + property :skippable_ad_type, as: 'skippableAdType' end end diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 8ad83dc10..b5d607d19 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20160523' + REVISION = '20160607' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index 32f574a53..3dc3b8d3e 100644 --- a/generated/google/apis/adsensehost_v4_1.rb +++ b/generated/google/apis/adsensehost_v4_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/host/ module AdsensehostV4_1 VERSION = 'V4_1' - REVISION = '20160523' + REVISION = '20160607' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/analyticsreporting_v4.rb b/generated/google/apis/analyticsreporting_v4.rb index 84debcf8b..bfa57ee9d 100644 --- a/generated/google/apis/analyticsreporting_v4.rb +++ b/generated/google/apis/analyticsreporting_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/analytics/devguides/reporting/core/v4/ module AnalyticsreportingV4 VERSION = 'V4' - REVISION = '20160512' + REVISION = '20160601' # View your Google Analytics data AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly' diff --git a/generated/google/apis/analyticsreporting_v4/classes.rb b/generated/google/apis/analyticsreporting_v4/classes.rb index 55774a250..093af9e60 100644 --- a/generated/google/apis/analyticsreporting_v4/classes.rb +++ b/generated/google/apis/analyticsreporting_v4/classes.rb @@ -407,22 +407,29 @@ module Google # The `reportRequest.dateRanges` field should not be specified for cohorts # or Lifetime value requests. # If a date range is not provided, the default date range is (startDate: - # current date - 7 days, endDate: current date - 1 day) + # current date - 7 days, endDate: current date - 1 day). Every + # [ReportRequest](#ReportRequest) within a `batchGet` method must + # contain the same `dateRanges` definition. # Corresponds to the JSON property `dateRanges` # @return [Array] attr_accessor :date_ranges # Segment the data returned for the request. A segment definition helps look # at a subset of the segment request. A request can contain up to four - # segments. All requests should have the same segment definitions. Requests + # segments. Every [ReportRequest](#ReportRequest) within a + # `batchGet` method must contain the same `segments` definition. Requests # with segments must have the `ga:segment` dimension. # Corresponds to the JSON property `segments` # @return [Array] attr_accessor :segments - # The desired sampling level. If the sampling level is not specified the - # DEFAULT sampling level will be used. All requests should have same - # `samplingLevel`. + # The desired report + # [sample](https://support.google.com/analytics/answer/2637192) size. + # If the the `samplingLevel` field is unspecified the `DEFAULT` sampling + # level is used. Every [ReportRequest](#ReportRequest) within a + # `batchGet` method must contain the same `samplingLevel` definition. See + # [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling) + # for details. # Corresponds to the JSON property `samplingLevel` # @return [String] attr_accessor :sampling_level @@ -471,7 +478,10 @@ module Google attr_accessor :hide_value_ranges alias_method :hide_value_ranges?, :hide_value_ranges - # Unique View Id for retrieving Analytics data. + # The Analytics + # [view ID](https://support.google.com/analytics/answer/1009618) + # from which to retrieve data. Every [ReportRequest](#ReportRequest) + # within a `batchGet` method must contain the same `viewId`. # Corresponds to the JSON property `viewId` # @return [String] attr_accessor :view_id @@ -610,8 +620,13 @@ module Google # @return [Fixnum] attr_accessor :row_count - # If sampling was enabled, this returns the total number of samples - # present, one entry per date range. + # If the results are + # [sampled](https://support.google.com/analytics/answer/2637192), + # this returns the total number of + # samples present, one entry per date range. If the results are not sampled + # this field will not be defined. See + # [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling) + # for details. # Corresponds to the JSON property `samplingSpaceSizes` # @return [Array] attr_accessor :sampling_space_sizes @@ -623,8 +638,12 @@ module Google # @return [Array] attr_accessor :maximums - # If sampling was enabled, this returns the total number of samples - # read, one entry per date range + # If the results are + # [sampled](https://support.google.com/analytics/answer/2637192), + # this returns the total number of samples read, one entry per date range. + # If the results are not sampled this field will not be defined. See + # [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling) + # for details. # Corresponds to the JSON property `samplesReadCounts` # @return [Array] attr_accessor :samples_read_counts @@ -684,7 +703,7 @@ module Google # Requests, each request will have a separate response. # There can be a maximum of 5 requests. All requests should have the same - # `dateRange`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`. + # `dateRanges`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`. # Corresponds to the JSON property `reportRequests` # @return [Array] attr_accessor :report_requests @@ -880,8 +899,7 @@ module Google class PivotHeaderEntry include Google::Apis::Core::Hashable - # The name of the dimensions in the pivotDimensionValues field in the - # response. + # The name of the dimensions in the pivot response. # Corresponds to the JSON property `dimensionNames` # @return [Array] attr_accessor :dimension_names @@ -1144,7 +1162,7 @@ module Google # @return [Array] attr_accessor :dimensions - # List of metrics for each requested DateRange + # List of metrics for each requested DateRange. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index a4214cee0..68e6ed03e 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20160519' + REVISION = '20160601' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidenterprise_v1/classes.rb b/generated/google/apis/androidenterprise_v1/classes.rb index a297a8438..6380a351e 100644 --- a/generated/google/apis/androidenterprise_v1/classes.rb +++ b/generated/google/apis/androidenterprise_v1/classes.rb @@ -1463,7 +1463,7 @@ module Google # @return [String] attr_accessor :kind - # The user's primary email, e.g. "jsmith@example.com". + # The user's primary email address, e.g. "jsmith@example.com". # Corresponds to the JSON property `primaryEmail` # @return [String] attr_accessor :primary_email diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 0aef51e19..bfcc5dc20 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '20160516' + REVISION = '20160602' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index e2b8f0899..b2c044a79 100644 --- a/generated/google/apis/appstate_v1.rb +++ b/generated/google/apis/appstate_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/web/api/states module AppstateV1 VERSION = 'V1' - REVISION = '20160519' + REVISION = '20160531' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 6f63474ef..cedd4919e 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 = '20160511' + REVISION = '20160526' # 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 15461ce4a..6bd9d192f 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -2760,6 +2760,15 @@ module Google # @return [String] attr_accessor :query + # [Experimental] Specifies whether to use BigQuery's legacy SQL for this view. + # The default value is true. If set to false, the view will use BigQuery's + # standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and + # views that reference this view must use the same flag value. + # Corresponds to the JSON property `useLegacySql` + # @return [Boolean] + attr_accessor :use_legacy_sql + alias_method :use_legacy_sql?, :use_legacy_sql + # [Experimental] Describes user-defined function resources used in the query. # Corresponds to the JSON property `userDefinedFunctionResources` # @return [Array] @@ -2772,6 +2781,7 @@ module Google # Update properties of this object def update!(**args) @query = args[:query] if args.key?(:query) + @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql) @user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources) end end diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 7efca2ca1..1bc0076a8 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -994,6 +994,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :query, as: 'query' + property :use_legacy_sql, as: 'useLegacySql' collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation end diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index deae89757..db2d691b3 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 = '20160517' + REVISION = '20160605' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/clouddebugger_v2.rb b/generated/google/apis/clouddebugger_v2.rb index 8ebfa4dd4..7e749a60e 100644 --- a/generated/google/apis/clouddebugger_v2.rb +++ b/generated/google/apis/clouddebugger_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/tools/cloud-debugger module ClouddebuggerV2 VERSION = 'V2' - REVISION = '20160309' + REVISION = '20160602' # 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/clouddebugger_v2/service.rb b/generated/google/apis/clouddebugger_v2/service.rb index a161bfa83..845ab4d0c 100644 --- a/generated/google/apis/clouddebugger_v2/service.rb +++ b/generated/google/apis/clouddebugger_v2/service.rb @@ -29,10 +29,10 @@ module Google # require 'google/apis/clouddebugger_v2' # # Clouddebugger = Google::Apis::ClouddebuggerV2 # Alias the module - # service = Clouddebugger::ClouddebuggerService.new + # service = Clouddebugger::CloudDebuggerService.new # # @see https://cloud.google.com/tools/cloud-debugger - class ClouddebuggerService < Google::Apis::Core::BaseService + class CloudDebuggerService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, # quota, and reports. Required unless you provide an OAuth 2.0 token. diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 13a16ae2e..addc310c4 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20160519' + REVISION = '20160525' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 27780269b..e2445b7b5 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -1020,6 +1020,13 @@ module Google class BackendService include Google::Apis::Core::Hashable + # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set + # to 0, the cookie is non-persistent and lasts only until the end of the browser + # session (or equivalent). The maximum allowed value for TTL is one day. + # Corresponds to the JSON property `affinityCookieTtlSec` + # @return [Fixnum] + attr_accessor :affinity_cookie_ttl_sec + # The list of backends that serve this BackendService. # Corresponds to the JSON property `backends` # @return [Array] @@ -1108,6 +1115,11 @@ module Google # @return [String] attr_accessor :self_link + # Type of session affinity to use. + # Corresponds to the JSON property `sessionAffinity` + # @return [String] + attr_accessor :session_affinity + # How many seconds to wait for the backend before considering it a failed # request. Default is 30 seconds. # Corresponds to the JSON property `timeoutSec` @@ -1120,6 +1132,7 @@ module Google # Update properties of this object def update!(**args) + @affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec) @backends = args[:backends] if args.key?(:backends) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @@ -1134,6 +1147,7 @@ module Google @protocol = args[:protocol] if args.key?(:protocol) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @session_affinity = args[:session_affinity] if args.key?(:session_affinity) @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) end end @@ -3340,13 +3354,14 @@ module Google # A list of service accounts, with their specified scopes, authorized for this # instance. Service accounts generate access tokens that can be accessed through # the metadata server and used to authenticate applications on the instance. See - # Authenticating from Google Compute Engine for more information. + # Service Accounts for more information. # Corresponds to the JSON property `serviceAccounts` # @return [Array] attr_accessor :service_accounts # [Output Only] The status of the instance. One of the following values: - # PROVISIONING, STAGING, RUNNING, STOPPING, and TERMINATED. + # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDED, SUSPENDING, and + # TERMINATED. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -4574,8 +4589,8 @@ module Google # IP addresses other than their own and receive packets with destination IP # addresses other than their own. If these instances will be used as an IP # gateway or it will be set as the next-hop in a Route resource, specify true. - # If unsure, leave this set to false. See the canIpForward documentation for - # more information. + # If unsure, leave this set to false. See the Enable IP forwarding for instances + # documentation for more information. # Corresponds to the JSON property `canIpForward` # @return [Boolean] attr_accessor :can_ip_forward @@ -7092,7 +7107,7 @@ module Google class RouterStatus include Google::Apis::Core::Hashable - # Best routes for this router. + # Best routes for this router's network. # Corresponds to the JSON property `bestRoutes` # @return [Array] attr_accessor :best_routes @@ -9732,6 +9747,13 @@ module Google # @return [String] attr_accessor :region + # Remote traffic selectors to use when establishing the VPN tunnel with peer VPN + # gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/ + # 16. The ranges should be disjoint. + # Corresponds to the JSON property `remoteTrafficSelector` + # @return [Array] + attr_accessor :remote_traffic_selector + # URL of router resource to be used for dynamic routing. # Corresponds to the JSON property `router` # @return [String] @@ -9780,6 +9802,7 @@ module Google @name = args[:name] if args.key?(:name) @peer_ip = args[:peer_ip] if args.key?(:peer_ip) @region = args[:region] if args.key?(:region) + @remote_traffic_selector = args[:remote_traffic_selector] if args.key?(:remote_traffic_selector) @router = args[:router] if args.key?(:router) @self_link = args[:self_link] if args.key?(:self_link) @shared_secret = args[:shared_secret] if args.key?(:shared_secret) diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index c3c579832..a2a503e50 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -1551,6 +1551,7 @@ module Google class BackendService # @private class Representation < Google::Apis::Core::JsonRepresentation + property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec' collection :backends, as: 'backends', class: Google::Apis::ComputeBeta::Backend, decorator: Google::Apis::ComputeBeta::Backend::Representation property :creation_timestamp, as: 'creationTimestamp' @@ -1566,6 +1567,7 @@ module Google property :protocol, as: 'protocol' property :region, as: 'region' property :self_link, as: 'selfLink' + property :session_affinity, as: 'sessionAffinity' property :timeout_sec, as: 'timeoutSec' end end @@ -3682,6 +3684,7 @@ module Google property :name, as: 'name' property :peer_ip, as: 'peerIp' property :region, as: 'region' + collection :remote_traffic_selector, as: 'remoteTrafficSelector' property :router, as: 'router' property :self_link, as: 'selfLink' property :shared_secret, as: 'sharedSecret' diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 7c6380d29..d6589de9f 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -4122,10 +4122,9 @@ module Google # Retrieves the list of private images available to the specified project. # Private images are images you create that belong to your project. This method # does not get any images that belong to other projects, including publicly- - # available images, like Debian 7. If you want to get a list of publicly- + # available images, like Debian 8. If you want to get a list of publicly- # available images, use this method to make a request to the respective image # project, such as debian-cloud or windows-cloud. - # See Accessing images for more information. # @param [String] project # Project ID for this request. # @param [String] filter diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index dc3748178..f42f3c61a 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20160519' + REVISION = '20160525' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 2c2effe71..a6ce857cf 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -365,6 +365,11 @@ module Google # @return [String] attr_accessor :device_name + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `diskEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :disk_encryption_key + # Assigns a zero-based index to this disk, where 0 is reserved for the boot disk. # For example, if you have many disks attached to an instance, each disk would # have a unique index number. If not specified, the server will choose an @@ -429,6 +434,7 @@ module Google @auto_delete = args[:auto_delete] if args.key?(:auto_delete) @boot = args[:boot] if args.key?(:boot) @device_name = args[:device_name] if args.key?(:device_name) + @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @index = args[:index] if args.key?(:index) @initialize_params = args[:initialize_params] if args.key?(:initialize_params) @interface = args[:interface] if args.key?(:interface) @@ -493,6 +499,11 @@ module Google # @return [String] attr_accessor :source_image + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `sourceImageEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :source_image_encryption_key + def initialize(**args) update!(**args) end @@ -503,6 +514,7 @@ module Google @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_type = args[:disk_type] if args.key?(:disk_type) @source_image = args[:source_image] if args.key?(:source_image) + @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) end end @@ -1188,6 +1200,59 @@ module Google end end + # Represents a customer-supplied encryption key + class CustomerEncryptionKey + include Google::Apis::Core::Hashable + + # Specifies a 256-bit customer-supplied encryption key, encoded in base64 to + # either encrypt or decrypt this resource. + # Corresponds to the JSON property `rawKey` + # @return [String] + attr_accessor :raw_key + + # [Output only] The base64 encoded SHA-256 hash of the customer-supplied + # encryption key that protects this resource. + # Corresponds to the JSON property `sha256` + # @return [String] + attr_accessor :sha256 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @raw_key = args[:raw_key] if args.key?(:raw_key) + @sha256 = args[:sha256] if args.key?(:sha256) + end + end + + # + class CustomerEncryptionKeyProtectedDisk + include Google::Apis::Core::Hashable + + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `diskEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :disk_encryption_key + + # Specifies a valid partial or full URL to an existing Persistent Disk resource. + # This field is only applicable for persistent disks. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) + @source = args[:source] if args.key?(:source) + end + end + # Deprecation status for a public resource. class DeprecationStatus include Google::Apis::Core::Hashable @@ -1255,6 +1320,11 @@ module Google # @return [String] attr_accessor :description + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `diskEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :disk_encryption_key + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -1330,6 +1400,11 @@ module Google # @return [String] attr_accessor :source_image + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `sourceImageEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :source_image_encryption_key + # [Output Only] The ID value of the image used to create this disk. This value # identifies the exact image that was used to create this persistent disk. For # example, if you created the persistent disk from an image that was later @@ -1350,6 +1425,11 @@ module Google # @return [String] attr_accessor :source_snapshot + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `sourceSnapshotEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :source_snapshot_encryption_key + # [Output Only] The unique ID of the snapshot used to create this disk. This # value identifies the exact snapshot that was used to create this persistent # disk. For example, if you created the persistent disk from a snapshot that was @@ -1390,6 +1470,7 @@ module Google def update!(**args) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @last_attach_timestamp = args[:last_attach_timestamp] if args.key?(:last_attach_timestamp) @@ -1400,8 +1481,10 @@ module Google @self_link = args[:self_link] if args.key?(:self_link) @size_gb = args[:size_gb] if args.key?(:size_gb) @source_image = args[:source_image] if args.key?(:source_image) + @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) @source_image_id = args[:source_image_id] if args.key?(:source_image_id) @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) + @source_snapshot_encryption_key = args[:source_snapshot_encryption_key] if args.key?(:source_snapshot_encryption_key) @source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id) @status = args[:status] if args.key?(:status) @type = args[:type] if args.key?(:type) @@ -2837,6 +2920,11 @@ module Google # @return [String] attr_accessor :id + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `imageEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :image_encryption_key + # [Output Only] Type of the resource. Always compute#image for images. # Corresponds to the JSON property `kind` # @return [String] @@ -2878,6 +2966,11 @@ module Google # @return [String] attr_accessor :source_disk + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `sourceDiskEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :source_disk_encryption_key + # The ID value of the disk used to create this image. This value may be used to # determine whether the image was taken from the current or a previous instance # of a given disk name. @@ -2912,12 +3005,14 @@ module Google @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @family = args[:family] if args.key?(:family) @id = args[:id] if args.key?(:id) + @image_encryption_key = args[:image_encryption_key] if args.key?(:image_encryption_key) @kind = args[:kind] if args.key?(:kind) @licenses = args[:licenses] if args.key?(:licenses) @name = args[:name] if args.key?(:name) @raw_disk = args[:raw_disk] if args.key?(:raw_disk) @self_link = args[:self_link] if args.key?(:self_link) @source_disk = args[:source_disk] if args.key?(:source_disk) + @source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key) @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) @source_type = args[:source_type] if args.key?(:source_type) @status = args[:status] if args.key?(:status) @@ -3104,13 +3199,14 @@ module Google # A list of service accounts, with their specified scopes, authorized for this # instance. Service accounts generate access tokens that can be accessed through # the metadata server and used to authenticate applications on the instance. See - # Authenticating from Google Compute Engine for more information. + # Service Accounts for more information. # Corresponds to the JSON property `serviceAccounts` # @return [Array] attr_accessor :service_accounts # [Output Only] The status of the instance. One of the following values: - # PROVISIONING, STAGING, RUNNING, STOPPING, and TERMINATED. + # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDED, SUSPENDING, and + # TERMINATED. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -4232,8 +4328,8 @@ module Google # IP addresses other than their own and receive packets with destination IP # addresses other than their own. If these instances will be used as an IP # gateway or it will be set as the next-hop in a Route resource, specify true. - # If unsure, leave this set to false. See the canIpForward documentation for - # more information. + # If unsure, leave this set to false. See the Enable IP forwarding for instances + # documentation for more information. # Corresponds to the JSON property `canIpForward` # @return [Boolean] attr_accessor :can_ip_forward @@ -4577,6 +4673,30 @@ module Google end end + # + class InstancesStartWithEncryptionKeyRequest + include Google::Apis::Core::Hashable + + # Array of disks associated with this instance that are protected with a + # customer-supplied encryption key. + # In order to start the instance, the disk url and its corresponding key must be + # provided. + # If the disk is not protected with a customer-supplied encryption key it should + # not be specified. + # Corresponds to the JSON property `disks` + # @return [Array] + attr_accessor :disks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disks = args[:disks] if args.key?(:disks) + end + end + # A license resource. class License include Google::Apis::Core::Hashable @@ -4653,6 +4773,13 @@ module Google # @return [Fixnum] attr_accessor :image_space_gb + # [Output Only] Whether this machine type has a shared CPU. See Shared-core + # machine types for more information. + # Corresponds to the JSON property `isSharedCpu` + # @return [Boolean] + attr_accessor :is_shared_cpu + alias_method :is_shared_cpu?, :is_shared_cpu + # [Output Only] The type of the resource. Always compute#machineType for machine # types. # Corresponds to the JSON property `kind` @@ -4708,6 +4835,7 @@ module Google @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus) @id = args[:id] if args.key?(:id) @image_space_gb = args[:image_space_gb] if args.key?(:image_space_gb) + @is_shared_cpu = args[:is_shared_cpu] if args.key?(:is_shared_cpu) @kind = args[:kind] if args.key?(:kind) @maximum_persistent_disks = args[:maximum_persistent_disks] if args.key?(:maximum_persistent_disks) @maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] if args.key?(:maximum_persistent_disks_size_gb) @@ -5927,6 +6055,11 @@ module Google # @return [String] attr_accessor :creation_timestamp + # [Output Only] Default service account used by VMs running in this project. + # Corresponds to the JSON property `defaultServiceAccount` + # @return [String] + attr_accessor :default_service_account + # An optional textual description of the resource. # Corresponds to the JSON property `description` # @return [String] @@ -5979,6 +6112,7 @@ module Google def update!(**args) @common_instance_metadata = args[:common_instance_metadata] if args.key?(:common_instance_metadata) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @default_service_account = args[:default_service_account] if args.key?(:default_service_account) @description = args[:description] if args.key?(:description) @enabled_features = args[:enabled_features] if args.key?(:enabled_features) @id = args[:id] if args.key?(:id) @@ -6411,6 +6545,522 @@ module Google end end + # Router resource. + class Router + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `bgp` + # @return [Google::Apis::ComputeV1::RouterBgp] + attr_accessor :bgp + + # + # Corresponds to the JSON property `bgpPeers` + # @return [Array] + attr_accessor :bgp_peers + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # + # Corresponds to the JSON property `interfaces` + # @return [Array] + attr_accessor :interfaces + + # [Output Only] Type of resource. Always compute#router for routers. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # URI of the network to which this router belongs. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # [Output Only] URI of the region where the router resides. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bgp = args[:bgp] if args.key?(:bgp) + @bgp_peers = args[:bgp_peers] if args.key?(:bgp_peers) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @interfaces = args[:interfaces] if args.key?(:interfaces) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # Contains a list of routers. + class RouterAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A map of scoped router lists. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # + class RouterBgp + include Google::Apis::Core::Hashable + + # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, + # either 16-bit or 32-bit. The value will be fixed for this router resource. All + # VPN tunnels that link to this router will have the same local ASN. + # Corresponds to the JSON property `asn` + # @return [Fixnum] + attr_accessor :asn + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asn = args[:asn] if args.key?(:asn) + end + end + + # BGP information that needs to be configured into the routing stack to + # establish the BGP peering. It must specify peer ASN and either interface name, + # IP, or peer IP. Reference: https://tools.ietf.org/html/rfc4273 + class RouterBgpPeer + include Google::Apis::Core::Hashable + + # The priority of routes advertised to this BGP peer. In the case where there is + # more than one matching route of maximum length, the routes with lowest + # priority value win. + # Corresponds to the JSON property `advertisedRoutePriority` + # @return [Fixnum] + attr_accessor :advertised_route_priority + + # Name of the interface the BGP peer is associated with. + # Corresponds to the JSON property `interfaceName` + # @return [String] + attr_accessor :interface_name + + # IP address of the interface inside Google Cloud Platform. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # Name of this BGP peer. The name must be 1-63 characters long and comply with + # RFC1035. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be + # different for every tunnel. + # Corresponds to the JSON property `peerAsn` + # @return [Fixnum] + attr_accessor :peer_asn + + # IP address of the BGP interface outside Google cloud. + # Corresponds to the JSON property `peerIpAddress` + # @return [String] + attr_accessor :peer_ip_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority) + @interface_name = args[:interface_name] if args.key?(:interface_name) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @name = args[:name] if args.key?(:name) + @peer_asn = args[:peer_asn] if args.key?(:peer_asn) + @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address) + end + end + + # Router interfaces. Each interface requires either one linked resource (e.g. + # linked_vpn_tunnel) or IP address + range (specified in ip_range). + class RouterInterface + include Google::Apis::Core::Hashable + + # IP address and range of the interface. The IP range must be in the RFC3927 + # link-local IP space. The value must be a CIDR-formatted string, for example: + # 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP + # address of the interface. + # Corresponds to the JSON property `ipRange` + # @return [String] + attr_accessor :ip_range + + # URI of linked VPN tunnel. It must be in the same region as the router. Each + # interface can have at most one linked resource. + # Corresponds to the JSON property `linkedVpnTunnel` + # @return [String] + attr_accessor :linked_vpn_tunnel + + # Name of this interface entry. The name must be 1-63 characters long and comply + # with RFC1035. + # 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) + @ip_range = args[:ip_range] if args.key?(:ip_range) + @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel) + @name = args[:name] if args.key?(:name) + end + end + + # Contains a list of Router resources. + class RouterList + include Google::Apis::Core::Hashable + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of Router resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#router for routers. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # + class RouterStatus + include Google::Apis::Core::Hashable + + # Best routes for this router's network. + # Corresponds to the JSON property `bestRoutes` + # @return [Array] + attr_accessor :best_routes + + # + # Corresponds to the JSON property `bgpPeerStatus` + # @return [Array] + attr_accessor :bgp_peer_status + + # URI of the network to which this router belongs. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @best_routes = args[:best_routes] if args.key?(:best_routes) + @bgp_peer_status = args[:bgp_peer_status] if args.key?(:bgp_peer_status) + @network = args[:network] if args.key?(:network) + end + end + + # + class RouterStatusBgpPeerStatus + include Google::Apis::Core::Hashable + + # Routes that were advertised to the remote BGP peer + # Corresponds to the JSON property `advertisedRoutes` + # @return [Array] + attr_accessor :advertised_routes + + # IP address of the local BGP interface. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # URL of the VPN tunnel that this BGP peer controls. + # Corresponds to the JSON property `linkedVpnTunnel` + # @return [String] + attr_accessor :linked_vpn_tunnel + + # Name of this BGP peer. Unique within the Routers resource. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Number of routes learned from the remote BGP Peer. + # Corresponds to the JSON property `numLearnedRoutes` + # @return [Fixnum] + attr_accessor :num_learned_routes + + # IP address of the remote BGP interface. + # Corresponds to the JSON property `peerIpAddress` + # @return [String] + attr_accessor :peer_ip_address + + # BGP state as specified in RFC1771. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Status of the BGP peer: `UP, DOWN` + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, + # 59 minutes, 59 seconds + # Corresponds to the JSON property `uptime` + # @return [String] + attr_accessor :uptime + + # Time this session has been up, in seconds. Format: 145 + # Corresponds to the JSON property `uptimeSeconds` + # @return [String] + attr_accessor :uptime_seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @advertised_routes = args[:advertised_routes] if args.key?(:advertised_routes) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel) + @name = args[:name] if args.key?(:name) + @num_learned_routes = args[:num_learned_routes] if args.key?(:num_learned_routes) + @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address) + @state = args[:state] if args.key?(:state) + @status = args[:status] if args.key?(:status) + @uptime = args[:uptime] if args.key?(:uptime) + @uptime_seconds = args[:uptime_seconds] if args.key?(:uptime_seconds) + end + end + + # + class RouterStatusResponse + include Google::Apis::Core::Hashable + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `result` + # @return [Google::Apis::ComputeV1::RouterStatus] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @result = args[:result] if args.key?(:result) + end + end + + # + class RoutersScopedList + include Google::Apis::Core::Hashable + + # List of routers contained in this scope. + # Corresponds to the JSON property `routers` + # @return [Array] + attr_accessor :routers + + # Informational warning which replaces the list of routers when the list is + # empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::RoutersScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @routers = args[:routers] if args.key?(:routers) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of routers when the list is + # empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # Sets the scheduling options for an Instance. class Scheduling include Google::Apis::Core::Hashable @@ -6561,11 +7211,21 @@ module Google # @return [String] attr_accessor :self_link + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `snapshotEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :snapshot_encryption_key + # [Output Only] The source disk used to create this snapshot. # Corresponds to the JSON property `sourceDisk` # @return [String] attr_accessor :source_disk + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `sourceDiskEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :source_disk_encryption_key + # [Output Only] The ID value of the disk used to create this snapshot. This # value may be used to determine whether the snapshot was taken from the current # or a previous instance of a given disk name. @@ -6608,7 +7268,9 @@ module Google @licenses = args[:licenses] if args.key?(:licenses) @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) + @snapshot_encryption_key = args[:snapshot_encryption_key] if args.key?(:snapshot_encryption_key) @source_disk = args[:source_disk] if args.key?(:source_disk) + @source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key) @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) @status = args[:status] if args.key?(:status) @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes) @@ -8748,6 +9410,18 @@ module Google # @return [String] attr_accessor :region + # Remote traffic selectors to use when establishing the VPN tunnel with peer VPN + # gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/ + # 16. The ranges should be disjoint. + # Corresponds to the JSON property `remoteTrafficSelector` + # @return [Array] + attr_accessor :remote_traffic_selector + + # URL of router resource to be used for dynamic routing. + # Corresponds to the JSON property `router` + # @return [String] + attr_accessor :router + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -8791,6 +9465,8 @@ module Google @name = args[:name] if args.key?(:name) @peer_ip = args[:peer_ip] if args.key?(:peer_ip) @region = args[:region] if args.key?(:region) + @remote_traffic_selector = args[:remote_traffic_selector] if args.key?(:remote_traffic_selector) + @router = args[:router] if args.key?(:router) @self_link = args[:self_link] if args.key?(:self_link) @shared_secret = args[:shared_secret] if args.key?(:shared_secret) @shared_secret_hash = args[:shared_secret_hash] if args.key?(:shared_secret_hash) diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index c0be967da..fb8f84246 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -160,6 +160,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CustomerEncryptionKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CustomerEncryptionKeyProtectedDisk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DeprecationStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -586,6 +598,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstancesStartWithEncryptionKeyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class License class Representation < Google::Apis::Core::JsonRepresentation; end @@ -820,6 +838,78 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Router + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RouterAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RouterBgp + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RouterBgpPeer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RouterInterface + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RouterList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RouterStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RouterStatusBgpPeerStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RouterStatusResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RoutersScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class Scheduling class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1264,6 +1354,8 @@ module Google property :auto_delete, as: 'autoDelete' property :boot, as: 'boot' property :device_name, as: 'deviceName' + property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + property :index, as: 'index' property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeV1::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeV1::AttachedDiskInitializeParams::Representation @@ -1283,6 +1375,8 @@ module Google property :disk_size_gb, as: 'diskSizeGb' property :disk_type, as: 'diskType' property :source_image, as: 'sourceImage' + property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + end end @@ -1447,6 +1541,23 @@ module Google end end + class CustomerEncryptionKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :raw_key, as: 'rawKey' + property :sha256, as: 'sha256' + end + end + + class CustomerEncryptionKeyProtectedDisk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + + property :source, as: 'source' + end + end + class DeprecationStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1463,6 +1574,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + property :id, as: 'id' property :kind, as: 'kind' property :last_attach_timestamp, as: 'lastAttachTimestamp' @@ -1473,8 +1586,12 @@ module Google property :self_link, as: 'selfLink' property :size_gb, as: 'sizeGb' property :source_image, as: 'sourceImage' + property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + property :source_image_id, as: 'sourceImageId' property :source_snapshot, as: 'sourceSnapshot' + property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + property :source_snapshot_id, as: 'sourceSnapshotId' property :status, as: 'status' property :type, as: 'type' @@ -1825,6 +1942,8 @@ module Google property :disk_size_gb, as: 'diskSizeGb' property :family, as: 'family' property :id, as: 'id' + property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + property :kind, as: 'kind' collection :licenses, as: 'licenses' property :name, as: 'name' @@ -1832,6 +1951,8 @@ module Google property :self_link, as: 'selfLink' property :source_disk, as: 'sourceDisk' + property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + property :source_disk_id, as: 'sourceDiskId' property :source_type, as: 'sourceType' property :status, as: 'status' @@ -2267,6 +2388,14 @@ module Google end end + class InstancesStartWithEncryptionKeyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :disks, as: 'disks', class: Google::Apis::ComputeV1::CustomerEncryptionKeyProtectedDisk, decorator: Google::Apis::ComputeV1::CustomerEncryptionKeyProtectedDisk::Representation + + end + end + class License # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2287,6 +2416,7 @@ module Google property :guest_cpus, as: 'guestCpus' property :id, as: 'id' property :image_space_gb, as: 'imageSpaceGb' + property :is_shared_cpu, as: 'isSharedCpu' property :kind, as: 'kind' property :maximum_persistent_disks, as: 'maximumPersistentDisks' property :maximum_persistent_disks_size_gb, as: 'maximumPersistentDisksSizeGb' @@ -2604,6 +2734,7 @@ module Google property :common_instance_metadata, as: 'commonInstanceMetadata', class: Google::Apis::ComputeV1::Metadata, decorator: Google::Apis::ComputeV1::Metadata::Representation property :creation_timestamp, as: 'creationTimestamp' + property :default_service_account, as: 'defaultServiceAccount' property :description, as: 'description' collection :enabled_features, as: 'enabledFeatures' property :id, as: 'id' @@ -2716,6 +2847,143 @@ module Google end end + class Router + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bgp, as: 'bgp', class: Google::Apis::ComputeV1::RouterBgp, decorator: Google::Apis::ComputeV1::RouterBgp::Representation + + collection :bgp_peers, as: 'bgpPeers', class: Google::Apis::ComputeV1::RouterBgpPeer, decorator: Google::Apis::ComputeV1::RouterBgpPeer::Representation + + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, as: 'id' + collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeV1::RouterInterface, decorator: Google::Apis::ComputeV1::RouterInterface::Representation + + property :kind, as: 'kind' + property :name, as: 'name' + property :network, as: 'network' + property :region, as: 'region' + property :self_link, as: 'selfLink' + end + end + + class RouterAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::RoutersScopedList, decorator: Google::Apis::ComputeV1::RoutersScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class RouterBgp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asn, as: 'asn' + end + end + + class RouterBgpPeer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :advertised_route_priority, as: 'advertisedRoutePriority' + property :interface_name, as: 'interfaceName' + property :ip_address, as: 'ipAddress' + property :name, as: 'name' + property :peer_asn, as: 'peerAsn' + property :peer_ip_address, as: 'peerIpAddress' + end + end + + class RouterInterface + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_range, as: 'ipRange' + property :linked_vpn_tunnel, as: 'linkedVpnTunnel' + property :name, as: 'name' + end + end + + class RouterList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::Router, decorator: Google::Apis::ComputeV1::Router::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class RouterStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :best_routes, as: 'bestRoutes', class: Google::Apis::ComputeV1::Route, decorator: Google::Apis::ComputeV1::Route::Representation + + collection :bgp_peer_status, as: 'bgpPeerStatus', class: Google::Apis::ComputeV1::RouterStatusBgpPeerStatus, decorator: Google::Apis::ComputeV1::RouterStatusBgpPeerStatus::Representation + + property :network, as: 'network' + end + end + + class RouterStatusBgpPeerStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :advertised_routes, as: 'advertisedRoutes', class: Google::Apis::ComputeV1::Route, decorator: Google::Apis::ComputeV1::Route::Representation + + property :ip_address, as: 'ipAddress' + property :linked_vpn_tunnel, as: 'linkedVpnTunnel' + property :name, as: 'name' + property :num_learned_routes, as: 'numLearnedRoutes' + property :peer_ip_address, as: 'peerIpAddress' + property :state, as: 'state' + property :status, as: 'status' + property :uptime, as: 'uptime' + property :uptime_seconds, as: 'uptimeSeconds' + end + end + + class RouterStatusResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :result, as: 'result', class: Google::Apis::ComputeV1::RouterStatus, decorator: Google::Apis::ComputeV1::RouterStatus::Representation + + end + end + + class RoutersScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :routers, as: 'routers', class: Google::Apis::ComputeV1::Router, decorator: Google::Apis::ComputeV1::Router::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::RoutersScopedList::Warning, decorator: Google::Apis::ComputeV1::RoutersScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::RoutersScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::RoutersScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class Scheduling # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2753,7 +3021,11 @@ module Google collection :licenses, as: 'licenses' property :name, as: 'name' property :self_link, as: 'selfLink' + property :snapshot_encryption_key, as: 'snapshotEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + property :source_disk, as: 'sourceDisk' + property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + property :source_disk_id, as: 'sourceDiskId' property :status, as: 'status' property :storage_bytes, as: 'storageBytes' @@ -3294,6 +3566,8 @@ module Google property :name, as: 'name' property :peer_ip, as: 'peerIp' property :region, as: 'region' + collection :remote_traffic_selector, as: 'remoteTrafficSelector' + property :router, as: 'router' property :self_link, as: 'selfLink' property :shared_secret, as: 'sharedSecret' property :shared_secret_hash, as: 'sharedSecretHash' diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 87b0709e1..9aa313ad3 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -3475,10 +3475,9 @@ module Google # Retrieves the list of private images available to the specified project. # Private images are images you create that belong to your project. This method # does not get any images that belong to other projects, including publicly- - # available images, like Debian 7. If you want to get a list of publicly- + # available images, like Debian 8. If you want to get a list of publicly- # available images, use this method to make a request to the respective image # project, such as debian-cloud or windows-cloud. - # See Accessing images for more information. # @param [String] project # Project ID for this request. # @param [String] filter @@ -5635,6 +5634,51 @@ module Google execute_or_queue_command(command, &block) end + # Starts an instance that was stopped using the using the instances().stop + # method. For more information, see Restart an instance. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name of the instance resource to start. + # @param [Google::Apis::ComputeV1::InstancesStartWithEncryptionKeyRequest] instances_start_with_encryption_key_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def start_instance_with_encryption_key(project, zone, instance, instances_start_with_encryption_key_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey', options) + command.request_representation = Google::Apis::ComputeV1::InstancesStartWithEncryptionKeyRequest::Representation + command.request_object = instances_start_with_encryption_key_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Stops a running instance, shutting it down cleanly, and allows you to restart # the instance at a later time. Stopped instances do not incur per-minute, # virtual machine usage charges while they are stopped, but any resources that @@ -6538,6 +6582,402 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of routers. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: field_name + # comparison_string literal_string. + # The field_name is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The comparison_string must be + # either eq (equals) or ne (not equals). The literal_string is the string value + # to filter to. The literal value must be valid for the type of field you are + # filtering by (string, number, boolean). For string fields, the literal value + # is interpreted as a regular expression using RE2 syntax. The literal value + # must match the entire field. + # For example, to filter for instances that do not have a name of example- + # instance, you would use filter=name ne example-instance. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. + # The Beta API also supports filtering on multiple expressions by providing each + # separate expression within parentheses. For example, (scheduling. + # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are + # treated as AND expressions, meaning that resources must match all expressions + # to pass the filters. + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::RouterAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::RouterAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_router_list(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/routers', options) + command.response_representation = Google::Apis::ComputeV1::RouterAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::RouterAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified Router resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] router + # Name of the Router resource to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_router(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/routers/{router}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['router'] = router unless router.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified Router resource. Get a list of available routers by + # making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] router + # Name of the Router resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Router] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Router] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_router(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}', options) + command.response_representation = Google::Apis::ComputeV1::Router::Representation + command.response_class = Google::Apis::ComputeV1::Router + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['router'] = router unless router.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves runtime information of the specified router. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] router + # Name of the Router resource to query. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::RouterStatusResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::RouterStatusResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_router_router_status(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}/getRouterStatus', options) + command.response_representation = Google::Apis::ComputeV1::RouterStatusResponse::Representation + command.response_class = Google::Apis::ComputeV1::RouterStatusResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['router'] = router unless router.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a Router resource in the specified project and region using the data + # included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [Google::Apis::ComputeV1::Router] router_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_router(project, region, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/routers', options) + command.request_representation = Google::Apis::ComputeV1::Router::Representation + command.request_object = router_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of Router resources available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: field_name + # comparison_string literal_string. + # The field_name is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The comparison_string must be + # either eq (equals) or ne (not equals). The literal_string is the string value + # to filter to. The literal value must be valid for the type of field you are + # filtering by (string, number, boolean). For string fields, the literal value + # is interpreted as a regular expression using RE2 syntax. The literal value + # must match the entire field. + # For example, to filter for instances that do not have a name of example- + # instance, you would use filter=name ne example-instance. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. + # The Beta API also supports filtering on multiple expressions by providing each + # separate expression within parentheses. For example, (scheduling. + # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are + # treated as AND expressions, meaning that resources must match all expressions + # to pass the filters. + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::RouterList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::RouterList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_routers(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/routers', options) + command.response_representation = Google::Apis::ComputeV1::RouterList::Representation + command.response_class = Google::Apis::ComputeV1::RouterList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the entire content of the Router resource. This method supports patch + # semantics. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] router + # Name of the Router resource to update. + # @param [Google::Apis::ComputeV1::Router] router_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_router(project, region, router, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/routers/{router}', options) + command.request_representation = Google::Apis::ComputeV1::Router::Representation + command.request_object = router_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['router'] = router unless router.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the entire content of the Router resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] router + # Name of the Router resource to update. + # @param [Google::Apis::ComputeV1::Router] router_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_router(project, region, router, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{project}/regions/{region}/routers/{router}', options) + command.request_representation = Google::Apis::ComputeV1::Router::Representation + command.request_object = router_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['router'] = router unless router.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified Route resource. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index 6d647e632..1649877ec 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20160426' + REVISION = '20160603' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index 1fb6c0ef3..a0e13aab7 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '20160513' + REVISION = '20160601' # 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/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index b135850c7..e654f3db7 100644 --- a/generated/google/apis/doubleclicksearch_v2.rb +++ b/generated/google/apis/doubleclicksearch_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/doubleclick-search/ module DoubleclicksearchV2 VERSION = 'V2' - REVISION = '20160519' + REVISION = '20160601' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 9db623f45..f293f5bbb 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 = '20160520' + REVISION = '20160602' # 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 9b7cfe88f..678f39cac 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -2093,6 +2093,11 @@ module Google # @return [String] attr_accessor :etag + # The time at which this permission will expire (RFC 3339 date-time). + # Corresponds to the JSON property `expirationDate` + # @return [DateTime] + attr_accessor :expiration_date + # The ID of the user this permission refers to, and identical to the # permissionId in the About and Files resources. When making a drive.permissions. # insert request, exactly one of the id or value fields must be specified. @@ -2161,6 +2166,7 @@ module Google @domain = args[:domain] if args.key?(:domain) @email_address = args[:email_address] if args.key?(:email_address) @etag = args[:etag] if args.key?(:etag) + @expiration_date = args[:expiration_date] if args.key?(:expiration_date) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) diff --git a/generated/google/apis/drive_v2/representations.rb b/generated/google/apis/drive_v2/representations.rb index 8616c78fd..e38ae482d 100644 --- a/generated/google/apis/drive_v2/representations.rb +++ b/generated/google/apis/drive_v2/representations.rb @@ -764,6 +764,8 @@ module Google property :domain, as: 'domain' property :email_address, as: 'emailAddress' property :etag, as: 'etag' + property :expiration_date, as: 'expirationDate', type: DateTime + property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index 170c9d866..5f615880f 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -1853,6 +1853,8 @@ module Google # @param [String] permission_id # The ID for the permission. # @param [Google::Apis::DriveV2::Permission] permission_object + # @param [Boolean] remove_expiration + # Whether to remove the expiration date. # @param [Boolean] transfer_ownership # Whether changing a role to 'owner' downgrades the current owners to writers. # Does nothing if the specified role is not 'owner'. @@ -1877,7 +1879,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_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options) command.request_representation = Google::Apis::DriveV2::Permission::Representation command.request_object = permission_object @@ -1885,6 +1887,7 @@ module Google command.response_class = Google::Apis::DriveV2::Permission command.params['fileId'] = file_id unless file_id.nil? command.params['permissionId'] = permission_id unless permission_id.nil? + command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil? command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1898,6 +1901,8 @@ module Google # @param [String] permission_id # The ID for the permission. # @param [Google::Apis::DriveV2::Permission] permission_object + # @param [Boolean] remove_expiration + # Whether to remove the expiration date. # @param [Boolean] transfer_ownership # Whether changing a role to 'owner' downgrades the current owners to writers. # Does nothing if the specified role is not 'owner'. @@ -1922,7 +1927,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_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options) command.request_representation = Google::Apis::DriveV2::Permission::Representation command.request_object = permission_object @@ -1930,6 +1935,7 @@ module Google command.response_class = Google::Apis::DriveV2::Permission command.params['fileId'] = file_id unless file_id.nil? command.params['permissionId'] = permission_id unless permission_id.nil? + command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil? command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index 2fc4e4d0c..619c2dbf5 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 = '20160520' + REVISION = '20160602' # 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 1b22841bf..4bbff774c 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -1164,6 +1164,11 @@ module Google # @return [String] attr_accessor :email_address + # The time at which this permission will expire (RFC 3339 date-time). + # Corresponds to the JSON property `expirationTime` + # @return [DateTime] + attr_accessor :expiration_time + # The ID of this permission. This is a unique identifier for the grantee, and is # published in User resources as permissionId. # Corresponds to the JSON property `id` @@ -1208,6 +1213,7 @@ module Google @display_name = args[:display_name] if args.key?(:display_name) @domain = args[:domain] if args.key?(:domain) @email_address = args[:email_address] if args.key?(:email_address) + @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @photo_link = args[:photo_link] if args.key?(:photo_link) diff --git a/generated/google/apis/drive_v3/representations.rb b/generated/google/apis/drive_v3/representations.rb index 867697cec..0c5d06316 100644 --- a/generated/google/apis/drive_v3/representations.rb +++ b/generated/google/apis/drive_v3/representations.rb @@ -451,6 +451,8 @@ module Google property :display_name, as: 'displayName' property :domain, as: 'domain' property :email_address, as: 'emailAddress' + property :expiration_time, as: 'expirationTime', type: DateTime + property :id, as: 'id' property :kind, as: 'kind' property :photo_link, as: 'photoLink' diff --git a/generated/google/apis/drive_v3/service.rb b/generated/google/apis/drive_v3/service.rb index 80420eb41..6c2243e63 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -1110,6 +1110,8 @@ module Google # @param [String] permission_id # The ID of the permission. # @param [Google::Apis::DriveV3::Permission] permission_object + # @param [Boolean] remove_expiration + # Whether to remove the expiration date. # @param [Boolean] transfer_ownership # Whether to transfer ownership to the specified user and downgrade the current # owner to a writer. This parameter is required as an acknowledgement of the @@ -1135,7 +1137,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_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options) command.request_representation = Google::Apis::DriveV3::Permission::Representation command.request_object = permission_object @@ -1143,6 +1145,7 @@ module Google command.response_class = Google::Apis::DriveV3::Permission command.params['fileId'] = file_id unless file_id.nil? command.params['permissionId'] = permission_id unless permission_id.nil? + command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil? command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? diff --git a/generated/google/apis/fusiontables_v2.rb b/generated/google/apis/fusiontables_v2.rb index 8400a1a9a..4d517d799 100644 --- a/generated/google/apis/fusiontables_v2.rb +++ b/generated/google/apis/fusiontables_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fusiontables module FusiontablesV2 VERSION = 'V2' - REVISION = '20160317' + REVISION = '20160526' # Manage your Fusion Tables AUTH_FUSIONTABLES = 'https://www.googleapis.com/auth/fusiontables' diff --git a/generated/google/apis/fusiontables_v2/classes.rb b/generated/google/apis/fusiontables_v2/classes.rb index fda3806ec..e93146a76 100644 --- a/generated/google/apis/fusiontables_v2/classes.rb +++ b/generated/google/apis/fusiontables_v2/classes.rb @@ -123,9 +123,10 @@ module Google # NUMBER_NO_SEPARATORfor example 1234.56 NUMBER_PERCENTfor example 123,456% # NUMBER_SCIENTIFICfor example 1E3 STRING_EIGHT_LINE_IMAGEDisplays thumbnail # images as tall as eight lines of text STRING_FOUR_LINE_IMAGEDisplays thumbnail - # images as tall as four lines of text STRING_JSON_TEXTAllows JSON editing of - # text in UI STRING_LINKTreats cell as a link (must start with http:// or https:/ - # /) STRING_ONE_LINE_IMAGEDisplays thumbnail images as tall as one line of text + # images as tall as four lines of text STRING_JSON_TEXTAllows editing of text as + # JSON in UI STRING_JSON_LISTAllows editing of text as a JSON list in UI + # STRING_LINKTreats cell as a link (must start with http:// or https://) + # STRING_ONE_LINE_IMAGEDisplays thumbnail images as tall as one line of text # STRING_VIDEO_OR_MAPDisplay a video or map thumbnail # Corresponds to the JSON property `formatPattern` # @return [String] diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index 0835669e5..f5e0223fc 100644 --- a/generated/google/apis/games_configuration_v1configuration.rb +++ b/generated/google/apis/games_configuration_v1configuration.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesConfigurationV1configuration VERSION = 'V1configuration' - REVISION = '20160519' + REVISION = '20160530' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index 13e2f7bd8..ffc40bd83 100644 --- a/generated/google/apis/games_management_v1management.rb +++ b/generated/google/apis/games_management_v1management.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesManagementV1management VERSION = 'V1management' - REVISION = '20160519' + REVISION = '20160530' # Share your Google+ profile information and view and manage your game activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index d4e9afcdf..b94a0dbbc 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20160519' + REVISION = '20160530' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 9a2a214ae..022b43899 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/genomics/ module GenomicsV1 VERSION = 'V1' - REVISION = '20160524' + REVISION = '20160607' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index 5e2fbe060..89b5bff82 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -3329,6 +3329,11 @@ module Google # @return [Array] attr_accessor :events + # Runtime metadata on this Operation. + # Corresponds to the JSON property `runtimeMetadata` + # @return [Hash] + attr_accessor :runtime_metadata + def initialize(**args) update!(**args) end @@ -3340,6 +3345,7 @@ module Google @end_time = args[:end_time] if args.key?(:end_time) @request = args[:request] if args.key?(:request) @events = args[:events] if args.key?(:events) + @runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata) end end @@ -3361,6 +3367,63 @@ module Google @description = args[:description] if args.key?(:description) 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 GCE resource that is being managed by a running pipeline. + # Corresponds to the JSON property `gce` + # @return [Google::Apis::GenomicsV1::Gce] + attr_accessor :gce + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gce = args[:gce] if args.key?(:gce) + end + end + + # Describes a GCE resource that is being managed by a running pipeline. + class Gce + include Google::Apis::Core::Hashable + + # The instance on which the operation is running. + # Corresponds to the JSON property `instanceName` + # @return [String] + attr_accessor :instance_name + + # The availability zone in which the instance resides. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + # The machine type of the instance. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # The names of the disks that were created for this pipeline. + # Corresponds to the JSON property `diskNames` + # @return [Array] + attr_accessor :disk_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance_name = args[:instance_name] if args.key?(:instance_name) + @zone = args[:zone] if args.key?(:zone) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @disk_names = args[:disk_names] if args.key?(:disk_names) + end + end end end end diff --git a/generated/google/apis/genomics_v1/representations.rb b/generated/google/apis/genomics_v1/representations.rb index 2a1730eea..2fca7375a 100644 --- a/generated/google/apis/genomics_v1/representations.rb +++ b/generated/google/apis/genomics_v1/representations.rb @@ -478,6 +478,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RuntimeMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Gce + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AnnotationSet # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1298,6 +1310,7 @@ module Google hash :request, as: 'request' collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation + hash :runtime_metadata, as: 'runtimeMetadata' end end @@ -1307,6 +1320,24 @@ module Google property :description, as: 'description' end end + + class RuntimeMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gce, as: 'gce', class: Google::Apis::GenomicsV1::Gce, decorator: Google::Apis::GenomicsV1::Gce::Representation + + end + end + + class Gce + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance_name, as: 'instanceName' + property :zone, as: 'zone' + property :machine_type, as: 'machineType' + collection :disk_names, as: 'diskNames' + end + end end end end diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 3c8714ced..25d4cde7a 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20160522' + REVISION = '20160526' # View and manage your mail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/groupssettings_v1.rb b/generated/google/apis/groupssettings_v1.rb index 5392d7afa..2c851830c 100644 --- a/generated/google/apis/groupssettings_v1.rb +++ b/generated/google/apis/groupssettings_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/groups-settings/get_started module GroupssettingsV1 VERSION = 'V1' - REVISION = '20160323' + REVISION = '20160525' # View and manage the settings of a Google Apps Group AUTH_APPS_GROUPS_SETTINGS = 'https://www.googleapis.com/auth/apps.groups.settings' diff --git a/generated/google/apis/groupssettings_v1/classes.rb b/generated/google/apis/groupssettings_v1/classes.rb index b6b7004f7..7566949bf 100644 --- a/generated/google/apis/groupssettings_v1/classes.rb +++ b/generated/google/apis/groupssettings_v1/classes.rb @@ -46,6 +46,11 @@ module Google # @return [String] attr_accessor :archive_only + # Custom footer text. + # Corresponds to the JSON property `customFooterText` + # @return [String] + attr_accessor :custom_footer_text + # Default email to which reply to any message should go. # Corresponds to the JSON property `customReplyTo` # @return [String] @@ -66,6 +71,11 @@ module Google # @return [String] attr_accessor :email + # Whether to include custom footer. + # Corresponds to the JSON property `includeCustomFooter` + # @return [String] + attr_accessor :include_custom_footer + # If this groups should be included in global address list or not. # Corresponds to the JSON property `includeInGlobalAddressList` # @return [String] @@ -196,10 +206,12 @@ module Google @allow_google_communication = args[:allow_google_communication] if args.key?(:allow_google_communication) @allow_web_posting = args[:allow_web_posting] if args.key?(:allow_web_posting) @archive_only = args[:archive_only] if args.key?(:archive_only) + @custom_footer_text = args[:custom_footer_text] if args.key?(:custom_footer_text) @custom_reply_to = args[:custom_reply_to] if args.key?(:custom_reply_to) @default_message_deny_notification_text = args[:default_message_deny_notification_text] if args.key?(:default_message_deny_notification_text) @description = args[:description] if args.key?(:description) @email = args[:email] if args.key?(:email) + @include_custom_footer = args[:include_custom_footer] if args.key?(:include_custom_footer) @include_in_global_address_list = args[:include_in_global_address_list] if args.key?(:include_in_global_address_list) @is_archived = args[:is_archived] if args.key?(:is_archived) @kind = args[:kind] if args.key?(:kind) diff --git a/generated/google/apis/groupssettings_v1/representations.rb b/generated/google/apis/groupssettings_v1/representations.rb index d5d2d062c..34210a36b 100644 --- a/generated/google/apis/groupssettings_v1/representations.rb +++ b/generated/google/apis/groupssettings_v1/representations.rb @@ -35,10 +35,12 @@ module Google property :allow_google_communication, as: 'allowGoogleCommunication' property :allow_web_posting, as: 'allowWebPosting' property :archive_only, as: 'archiveOnly' + property :custom_footer_text, as: 'customFooterText' property :custom_reply_to, as: 'customReplyTo' property :default_message_deny_notification_text, as: 'defaultMessageDenyNotificationText' property :description, as: 'description' property :email, as: 'email' + property :include_custom_footer, as: 'includeCustomFooter' property :include_in_global_address_list, as: 'includeInGlobalAddressList' property :is_archived, as: 'isArchived' property :kind, as: 'kind' diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index 5180021e9..61a463674 100644 --- a/generated/google/apis/identitytoolkit_v3.rb +++ b/generated/google/apis/identitytoolkit_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/identity-toolkit/v3/ module IdentitytoolkitV3 VERSION = 'V3' - REVISION = '20160510' + REVISION = '20160603' end end end diff --git a/generated/google/apis/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index 136463426..c4837c0f2 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -587,6 +587,11 @@ module Google # @return [String] attr_accessor :captcha_response + # The timestamp when the account is created. + # Corresponds to the JSON property `createdAt` + # @return [String] + attr_accessor :created_at + # GCP project number of the requesting delegated app. Currently only intended # for Firebase V1 migration. # Corresponds to the JSON property `delegatedProjectNumber` @@ -635,6 +640,11 @@ module Google # @return [String] attr_accessor :instance_id + # Last login timestamp. + # Corresponds to the JSON property `lastLoginAt` + # @return [String] + attr_accessor :last_login_at + # The local ID of the user. # Corresponds to the JSON property `localId` # @return [String] @@ -685,6 +695,7 @@ module Google def update!(**args) @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge) @captcha_response = args[:captcha_response] if args.key?(:captcha_response) + @created_at = args[:created_at] if args.key?(:created_at) @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) @delete_attribute = args[:delete_attribute] if args.key?(:delete_attribute) @delete_provider = args[:delete_provider] if args.key?(:delete_provider) @@ -694,6 +705,7 @@ module Google @email_verified = args[:email_verified] if args.key?(:email_verified) @id_token = args[:id_token] if args.key?(:id_token) @instance_id = args[:instance_id] if args.key?(:instance_id) + @last_login_at = args[:last_login_at] if args.key?(:last_login_at) @local_id = args[:local_id] if args.key?(:local_id) @oob_code = args[:oob_code] if args.key?(:oob_code) @password = args[:password] if args.key?(:password) @@ -1171,6 +1183,11 @@ module Google # @return [String] attr_accessor :secret + # Whitelisted client IDs for audience check. + # Corresponds to the JSON property `whitelistedAudiences` + # @return [Array] + attr_accessor :whitelisted_audiences + def initialize(**args) update!(**args) end @@ -1182,6 +1199,7 @@ module Google @experiment_percent = args[:experiment_percent] if args.key?(:experiment_percent) @provider = args[:provider] if args.key?(:provider) @secret = args[:secret] if args.key?(:secret) + @whitelisted_audiences = args[:whitelisted_audiences] if args.key?(:whitelisted_audiences) end end @@ -1501,6 +1519,11 @@ module Google class UserInfo include Google::Apis::Core::Hashable + # User creation timestamp. + # Corresponds to the JSON property `createdAt` + # @return [String] + attr_accessor :created_at + # Whether the user is disabled. # Corresponds to the JSON property `disabled` # @return [Boolean] @@ -1523,6 +1546,11 @@ module Google attr_accessor :email_verified alias_method :email_verified?, :email_verified + # last login timestamp. + # Corresponds to the JSON property `lastLoginAt` + # @return [String] + attr_accessor :last_login_at + # The local ID of the user. # Corresponds to the JSON property `localId` # @return [String] @@ -1569,10 +1597,12 @@ module Google # Update properties of this object def update!(**args) + @created_at = args[:created_at] if args.key?(:created_at) @disabled = args[:disabled] if args.key?(:disabled) @display_name = args[:display_name] if args.key?(:display_name) @email = args[:email] if args.key?(:email) @email_verified = args[:email_verified] if args.key?(:email_verified) + @last_login_at = args[:last_login_at] if args.key?(:last_login_at) @local_id = args[:local_id] if args.key?(:local_id) @password_hash = args[:password_hash] if args.key?(:password_hash) @password_updated_at = args[:password_updated_at] if args.key?(:password_updated_at) diff --git a/generated/google/apis/identitytoolkit_v3/representations.rb b/generated/google/apis/identitytoolkit_v3/representations.rb index 3fb89618b..7dd715ba4 100644 --- a/generated/google/apis/identitytoolkit_v3/representations.rb +++ b/generated/google/apis/identitytoolkit_v3/representations.rb @@ -389,6 +389,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :captcha_challenge, as: 'captchaChallenge' property :captcha_response, as: 'captchaResponse' + property :created_at, as: 'createdAt' property :delegated_project_number, as: 'delegatedProjectNumber' collection :delete_attribute, as: 'deleteAttribute' collection :delete_provider, as: 'deleteProvider' @@ -398,6 +399,7 @@ module Google property :email_verified, as: 'emailVerified' property :id_token, as: 'idToken' property :instance_id, as: 'instanceId' + property :last_login_at, as: 'lastLoginAt' property :local_id, as: 'localId' property :oob_code, as: 'oobCode' property :password, as: 'password' @@ -528,6 +530,7 @@ module Google property :experiment_percent, as: 'experimentPercent' property :provider, as: 'provider' property :secret, as: 'secret' + collection :whitelisted_audiences, as: 'whitelistedAudiences' end end @@ -614,10 +617,12 @@ module Google class UserInfo # @private class Representation < Google::Apis::Core::JsonRepresentation + property :created_at, as: 'createdAt' property :disabled, as: 'disabled' property :display_name, as: 'displayName' property :email, as: 'email' property :email_verified, as: 'emailVerified' + property :last_login_at, as: 'lastLoginAt' property :local_id, as: 'localId' property :password_hash, :base64 => true, as: 'passwordHash' property :password_updated_at, as: 'passwordUpdatedAt' diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb new file mode 100644 index 000000000..7e733e7ca --- /dev/null +++ b/generated/google/apis/monitoring_v3.rb @@ -0,0 +1,45 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/monitoring_v3/service.rb' +require 'google/apis/monitoring_v3/classes.rb' +require 'google/apis/monitoring_v3/representations.rb' + +module Google + module Apis + # Google Monitoring API + # + # Manages your Stackdriver Monitoring data and configurations. Most projects + # must be associated with a Stackdriver account, with a few exceptions as noted + # on the individual method pages. + # + # @see https://cloud.google.com/monitoring/api/ + module MonitoringV3 + VERSION = 'V3' + REVISION = '20160606' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View monitoring data for all of your Google Cloud and third-party projects + AUTH_MONITORING_READ = 'https://www.googleapis.com/auth/monitoring.read' + + # Publish metric data to your Google Cloud projects + AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write' + + # View and write monitoring data for all of your Google and third-party Cloud and API projects + AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring' + end + end +end diff --git a/generated/google/apis/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb new file mode 100644 index 000000000..14d79d9cf --- /dev/null +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -0,0 +1,1404 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module MonitoringV3 + + # A specific metric identified by specifying values for all of the + # labels of a `MetricDescriptor`. + class Metric + include Google::Apis::Core::Hashable + + # The set of labels that uniquely identify a metric. To specify a + # metric, all labels enumerated in the `MetricDescriptor` must be + # assigned values. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # An existing metric type, see google.api.MetricDescriptor. + # For example, `compute.googleapis.com/instance/cpu/usage_time`. + # 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 `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 + + # A time interval extending from after `startTime` through `endTime`. If + # `startTime` is omitted, the interval is the single point in time, `endTime`. + class TimeInterval + include Google::Apis::Core::Hashable + + # Required. The end of the interval. The interval includes this + # time. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # If this value is omitted, the interval is a point in time, + # `endTime`. If `startTime` is present, it must be earlier than + # (less than) `endTime`. The interval begins after + # `startTime`—it does not include `startTime`. + # 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) + 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 + # that resource is a member of that group. Groups can contain any number of + # monitored resources, and each monitored resource can be a member of any + # number of groups. + # Groups can be nested in parent-child hierarchies. The `parentName` field + # identifies an optional parent for each group. If a group has a parent, then + # the only monitored resources available to be matched by the group's filter + # are the resources contained in the parent group. In other words, a group + # contains the monitored resources that match its filter and the filters of all + # the group's ancestors. A group without a parent can contain any monitored + # resource. + # For example, consider an infrastructure running a set of instances with two + # user-defined tags: `"environment"` and `"role"`. A parent group has a filter, + # `environment="production"`. A child of that parent group has a filter, + # `role="transcoder"`. The parent group contains all instances in the + # production environment, regardless of their roles. The child group contains + # instances that have the transcoder role *and* are in the production + # environment. + # The monitored resources contained in a group can change at any moment, + # depending on what resources exist and what filters are associated with the + # group and its ancestors. + class Group + include Google::Apis::Core::Hashable + + # A user-assigned name for this group, used only for display purposes. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The name of the group's parent, if it has one. + # The format is `"projects/`project_id_or_number`/groups/`group_id`"`. + # For groups with no parent, `parentName` is the empty string, `""`. + # Corresponds to the JSON property `parentName` + # @return [String] + attr_accessor :parent_name + + # If true, the members of this group are considered to be a cluster. + # The system can perform additional analysis on groups that are clusters. + # Corresponds to the JSON property `isCluster` + # @return [Boolean] + attr_accessor :is_cluster + alias_method :is_cluster?, :is_cluster + + # The filter used to determine which monitored resources belong to this group. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # The name of this group. + # The format is + # `"projects/`project_id_or_number`/groups/`group_id`"`. + # When creating a group, this field is ignored and a new name is created + # consisting of the project specified in the call to `CreateGroup` + # and a unique ``group_id`` that is generated automatically. + # @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) + @display_name = args[:display_name] if args.key?(:display_name) + @parent_name = args[:parent_name] if args.key?(:parent_name) + @is_cluster = args[:is_cluster] if args.key?(:is_cluster) + @filter = args[:filter] if args.key?(:filter) + @name = args[:name] if args.key?(:name) + end + end + + # The `ListTimeSeries` response. + class ListTimeSeriesResponse + include Google::Apis::Core::Hashable + + # One or more time series that match the filter included in the request. + # Corresponds to the JSON property `timeSeries` + # @return [Array] + attr_accessor :time_series + + # 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) + @time_series = args[:time_series] if args.key?(:time_series) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A single data point in a time series. + class Point + include Google::Apis::Core::Hashable + + # A single strongly-typed value. + # Corresponds to the JSON property `value` + # @return [Google::Apis::MonitoringV3::TypedValue] + attr_accessor :value + + # A time interval extending from after `startTime` through `endTime`. If + # `startTime` is omitted, the interval is the single point in time, `endTime`. + # Corresponds to the JSON property `interval` + # @return [Google::Apis::MonitoringV3::TimeInterval] + attr_accessor :interval + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + @interval = args[:interval] if args.key?(:interval) + end + end + + # A single data point from a `collectd`-based plugin. + class CollectdValue + include Google::Apis::Core::Hashable + + # A single strongly-typed value. + # Corresponds to the JSON property `value` + # @return [Google::Apis::MonitoringV3::TypedValue] + attr_accessor :value + + # The data source for the `collectd` value. For example there are + # two data sources for network measurements: `"rx"` and `"tx"`. + # Corresponds to the JSON property `dataSourceName` + # @return [String] + attr_accessor :data_source_name + + # The type of measurement. + # Corresponds to the JSON property `dataSourceType` + # @return [String] + attr_accessor :data_source_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + @data_source_name = args[:data_source_name] if args.key?(:data_source_name) + @data_source_type = args[:data_source_type] if args.key?(:data_source_type) + end + end + + # A collection of data points that describes the time-varying nature + # of a metric. A time series is identified by a combination of a + # fully-specified monitored resource and a fully-specified metric. + class TimeSeries + include Google::Apis::Core::Hashable + + # A specific metric identified by specifying values for all of the + # labels of a `MetricDescriptor`. + # Corresponds to the JSON property `metric` + # @return [Google::Apis::MonitoringV3::Metric] + attr_accessor :metric + + # The data points of this time series. When used as output, points will be + # sorted by decreasing time order. When used as input, points could be + # written in any orders. + # Corresponds to the JSON property `points` + # @return [Array] + attr_accessor :points + + # The value type of the time series. This can be different than the value + # type specified in [google.api.MetricDescriptor] because of alignment and + # reduction operations on the data. This field is ignored when writing data; + # the value specified in the descriptor is used instead. + # @OutputOnly + # 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": "my-instance", + # "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. This can be different than the metric + # kind specified in [google.api.MetricDescriptor] because of alignment and + # reduction operations on the data. This field is ignored when writing data; + # the value specified in the descriptor is used instead. + # @OutputOnly + # Corresponds to the JSON property `metricKind` + # @return [String] + attr_accessor :metric_kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metric = args[:metric] if args.key?(:metric) + @points = args[:points] if args.key?(:points) + @value_type = args[:value_type] if args.key?(:value_type) + @resource = args[:resource] if args.key?(:resource) + @metric_kind = args[:metric_kind] if args.key?(:metric_kind) + end + end + + # Defines a metric type and its schema. + class MetricDescriptor + include Google::Apis::Core::Hashable + + # A detailed description of the metric, which can be used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The unit in which the metric value is reported. It is only applicable + # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The + # supported units are a subset of [The Unified Code for Units of + # Measure](http://unitsofmeasure.org/ucum.html) standard: + # **Basic units (UNIT)** + # * `bit` bit + # * `By` byte + # * `s` second + # * `min` minute + # * `h` hour + # * `d` day + # **Prefixes (PREFIX)** + # * `k` kilo (10**3) + # * `M` mega (10**6) + # * `G` giga (10**9) + # * `T` tera (10**12) + # * `P` peta (10**15) + # * `E` exa (10**18) + # * `Z` zetta (10**21) + # * `Y` yotta (10**24) + # * `m` milli (10**-3) + # * `u` micro (10**-6) + # * `n` nano (10**-9) + # * `p` pico (10**-12) + # * `f` femto (10**-15) + # * `a` atto (10**-18) + # * `z` zepto (10**-21) + # * `y` yocto (10**-24) + # * `Ki` kibi (2**10) + # * `Mi` mebi (2**20) + # * `Gi` gibi (2**30) + # * `Ti` tebi (2**40) + # **Grammar** + # The grammar includes the dimensionless unit `1`, such as `1/s`. + # The grammar also includes these connectors: + # * `/` division (as an infix operator, e.g. `1/s`). + # * `.` multiplication (as an infix operator, e.g. `GBy.d`) + # The grammar for a unit is as follows: + # Expression = Component ` "." Component ` ` "/" Component ` ; + # Component = [ PREFIX ] UNIT [ Annotation ] + # | Annotation + # | "1" + # ; + # Annotation = "`" NAME "`" ; + # Notes: + # * `Annotation` is just a comment if it follows a `UNIT` and is + # equivalent to `1` if it is used alone. For examples, + # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. + # * `NAME` is a sequence of non-blank printable ASCII characters not + # containing '`' or '`'. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # The set of labels that can be used to describe a specific instance of this + # metric type. For example, the + # `compute.googleapis.com/instance/network/received_bytes_count` metric type + # has a label, `loadbalanced`, that specifies whether the traffic was + # received through a load balanced IP address. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Whether the metric records instantaneous values, changes to a value, etc. + # Corresponds to the JSON property `metricKind` + # @return [String] + attr_accessor :metric_kind + + # Whether the measurement is an integer, a floating-point number, etc. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + # 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 + + # Resource name. The format of the name may vary between different + # implementations. For examples: + # projects/`project_id`/metricDescriptors/`type=**` + # metricDescriptors/`type=**` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The metric type including a DNS name prefix, for example + # `"compute.googleapis.com/instance/cpu/utilization"`. Metric types + # should use a natural hierarchical grouping such as the following: + # compute.googleapis.com/instance/cpu/utilization + # compute.googleapis.com/instance/disk/read_ops_count + # compute.googleapis.com/instance/network/received_bytes_count + # Note that if the metric type changes, the monitoring data will be + # discontinued, and anything depends on it will break, such as monitoring + # dashboards, alerting rules and quota limits. Therefore, once a metric has + # been published, its type should be immutable. + # 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) + @description = args[:description] if args.key?(:description) + @unit = args[:unit] if args.key?(:unit) + @labels = args[:labels] if args.key?(:labels) + @metric_kind = args[:metric_kind] if args.key?(:metric_kind) + @value_type = args[:value_type] if args.key?(:value_type) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + end + end + + # Specify a sequence of buckets that have a width that is proportional to + # the value of the lower bound. Each bucket represents a constant relative + # uncertainty on a specific value in the bucket. + # Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for + # bucket i: + # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). + # Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)). + class Exponential + include Google::Apis::Core::Hashable + + # Must be greater than 1 + # Corresponds to the JSON property `growthFactor` + # @return [Float] + attr_accessor :growth_factor + + # Must be greater than 0 + # Corresponds to the JSON property `scale` + # @return [Float] + 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) + @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 + + # A set of buckets with arbitrary widths. + # Defines `size(bounds) + 1` (= N) buckets with these boundaries for + # bucket i: + # Upper bound (0 <= i < N-1): bounds[i] + # Lower bound (1 <= i < N); bounds[i - 1] + # There must be at least one element in `bounds`. If `bounds` has only one + # element, there are no finite buckets, and that single element is the + # common boundary of the overflow and underflow buckets. + class Explicit + include Google::Apis::Core::Hashable + + # The values must be monotonically increasing. + # 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 + + # Specify a sequence of buckets that all have the same width (except + # overflow and underflow). Each bucket represents a constant absolute + # uncertainty on the specific value in the bucket. + # Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for + # bucket `i`: + # Upper bound (0 <= i < N-1): offset + (width * i). + # Lower bound (1 <= i < N): offset + (width * (i - 1)). + class Linear + include Google::Apis::Core::Hashable + + # Must be greater than 0. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + # Lower bound of the first bucket. + # Corresponds to the JSON property `offset` + # @return [Float] + attr_accessor :offset + + # Must be greater than 0. + # Corresponds to the JSON property `numFiniteBuckets` + # @return [Fixnum] + attr_accessor :num_finite_buckets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @width = args[:width] if args.key?(:width) + @offset = args[:offset] if args.key?(:offset) + @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) + end + end + + # A 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 measurement metadata. Example: `"process_id" -> 12345` + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # 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 instance name of the plugin Example: `"hdcl"`. + # Corresponds to the JSON property `pluginInstance` + # @return [String] + attr_accessor :plugin_instance + + # The start time of the interval. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The measurement type instance. Example: `"used"`. + # Corresponds to the JSON property `typeInstance` + # @return [String] + attr_accessor :type_instance + + # The measurement type. Example: `"memory"`. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The name of the plugin. Example: `"disk"`. + # Corresponds to the JSON property `plugin` + # @return [String] + attr_accessor :plugin + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @metadata = args[:metadata] if args.key?(:metadata) + @values = args[:values] if args.key?(:values) + @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance) + @start_time = args[:start_time] if args.key?(:start_time) + @type_instance = args[:type_instance] if args.key?(:type_instance) + @type = args[:type] if args.key?(:type) + @plugin = args[:plugin] if args.key?(:plugin) + 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 + + # Distribution contains summary statistics for a population of values and, + # optionally, a histogram representing the distribution of those values across + # a specified set of histogram 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 specifying parameters for a method of computing them + # (buckets of fixed width or buckets of exponentially increasing width). + # 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 + + # If `bucket_options` is given, then the sum of the values in `bucket_counts` + # must equal the value in `count`. If `bucket_options` is not given, no + # `bucket_counts` fields may be given. + # Bucket counts are given in order under the numbering scheme described + # above (the underflow bucket has number 0; the finite buckets, if any, + # have numbers 1 through N-2; the overflow bucket has number N-1). + # The size of `bucket_counts` must be no greater than N as defined in + # `bucket_options`. + # Any suffix of trailing zero bucket_count fields may be omitted. + # Corresponds to the JSON property `bucketCounts` + # @return [Array] + attr_accessor :bucket_counts + + # A Distribution may optionally contain a histogram of the values in the + # population. The histogram is given in `bucket_counts` as counts of values + # that fall into one of a sequence of non-overlapping buckets. The sequence + # of buckets is described by `bucket_options`. + # A bucket specifies an inclusive lower bound and exclusive upper bound for + # the values that are counted for that bucket. The upper bound of a bucket + # is 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. + # `BucketOptions` describes bucket boundaries in one of three ways. Two + # describe the boundaries by giving parameters for a formula to generate + # boundaries and one gives the bucket boundaries explicitly. + # If `bucket_boundaries` is not given, then no `bucket_counts` may be given. + # Corresponds to the JSON property `bucketOptions` + # @return [Google::Apis::MonitoringV3::BucketOptions] + attr_accessor :bucket_options + + # The number of values in the population. Must be non-negative. + # Corresponds to the JSON property `count` + # @return [String] + attr_accessor :count + + # 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 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 + + # The range of the population values. + # Corresponds to the JSON property `range` + # @return [Google::Apis::MonitoringV3::Range] + attr_accessor :range + + # Must be in increasing order of |value| field. The current requirement + # enforced by the backend is that at most one Exemplar will fall into any + # bucket. + # Corresponds to the JSON property `exemplars` + # @return [Array] + attr_accessor :exemplars + + 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) + @count = args[:count] if args.key?(:count) + @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation) + @mean = args[:mean] if args.key?(:mean) + @range = args[:range] if args.key?(:range) + @exemplars = args[:exemplars] if args.key?(:exemplars) + 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": "my-instance", + # "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 + + # 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 + + # 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. 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. 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 + + # Required. The monitored resource type. For example, the type + # `"cloudsql_database"` represents databases in Google Cloud SQL. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # 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) + @labels = args[:labels] if args.key?(:labels) + @type = args[:type] if args.key?(:type) + @name = args[:name] if args.key?(:name) + 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 integer. Its range is approximately ±9.2x1018. + # Corresponds to the JSON property `int64Value` + # @return [String] + attr_accessor :int64_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 + + # Distribution contains summary statistics for a population of values and, + # optionally, a histogram representing the distribution of those values across + # a specified set of histogram 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 specifying parameters for a method of computing them + # (buckets of fixed width or buckets of exponentially increasing width). + # 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) + @int64_value = args[:int64_value] if args.key?(:int64_value) + @double_value = args[:double_value] if args.key?(:double_value) + @distribution_value = args[:distribution_value] if args.key?(:distribution_value) + 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 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 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 + + # The field cardinality. + # Corresponds to the JSON property `cardinality` + # @return [String] + attr_accessor :cardinality + + # 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 name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Whether to use alternative packed wire representation. + # Corresponds to the JSON property `packed` + # @return [Boolean] + attr_accessor :packed + alias_method :packed?, :packed + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_value = args[:default_value] if args.key?(:default_value) + @json_name = args[:json_name] if args.key?(:json_name) + @options = args[:options] if args.key?(:options) + @oneof_index = args[:oneof_index] if args.key?(:oneof_index) + @cardinality = args[:cardinality] if args.key?(:cardinality) + @type_url = args[:type_url] if args.key?(:type_url) + @name = args[:name] if args.key?(:name) + @packed = args[:packed] if args.key?(:packed) + @number = args[:number] if args.key?(:number) + @kind = args[:kind] if args.key?(:kind) + 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. For example, `"com.google.protobuf"`. + # Corresponds to the JSON property `value` + # @return [Hash] + attr_accessor :value + + # The option's name. For example, `"java_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) + @value = args[:value] if args.key?(:value) + @name = args[:name] if args.key?(: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 + + # `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.proto"`. + # Corresponds to the JSON property `fileName` + # @return [String] + attr_accessor :file_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_name = args[:file_name] if args.key?(:file_name) + end + end + + # The range of the population values. + class Range + include Google::Apis::Core::Hashable + + # The maximum of the population values. + # Corresponds to the JSON property `max` + # @return [Float] + attr_accessor :max + + # The minimum of the population values. + # Corresponds to the JSON property `min` + # @return [Float] + attr_accessor :min + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max = args[:max] if args.key?(:max) + @min = args[:min] if args.key?(:min) + 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 + + # A Distribution may optionally contain a histogram of the values in the + # population. The histogram is given in `bucket_counts` as counts of values + # that fall into one of a sequence of non-overlapping buckets. The sequence + # of buckets is described by `bucket_options`. + # A bucket specifies an inclusive lower bound and exclusive upper bound for + # the values that are counted for that bucket. The upper bound of a bucket + # is 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. + # `BucketOptions` describes bucket boundaries in one of three ways. Two + # describe the boundaries by giving parameters for a formula to generate + # boundaries and one gives the bucket boundaries explicitly. + # If `bucket_boundaries` is not given, then no `bucket_counts` may be given. + class BucketOptions + include Google::Apis::Core::Hashable + + # A set of buckets with arbitrary widths. + # Defines `size(bounds) + 1` (= N) buckets with these boundaries for + # bucket i: + # Upper bound (0 <= i < N-1): bounds[i] + # Lower bound (1 <= i < N); bounds[i - 1] + # There must be at least one element in `bounds`. If `bounds` has only one + # element, there are no finite buckets, and that single element is the + # common boundary of the overflow and underflow buckets. + # Corresponds to the JSON property `explicitBuckets` + # @return [Google::Apis::MonitoringV3::Explicit] + attr_accessor :explicit_buckets + + # Specify a sequence of buckets that have a width that is proportional to + # the value of the lower bound. Each bucket represents a constant relative + # uncertainty on a specific value in the bucket. + # Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for + # bucket i: + # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). + # Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)). + # Corresponds to the JSON property `exponentialBuckets` + # @return [Google::Apis::MonitoringV3::Exponential] + attr_accessor :exponential_buckets + + # Specify a sequence of buckets that all have the same width (except + # overflow and underflow). Each bucket represents a constant absolute + # uncertainty on the specific value in the bucket. + # Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for + # bucket `i`: + # Upper bound (0 <= i < N-1): offset + (width * i). + # Lower bound (1 <= i < N): offset + (width * (i - 1)). + # Corresponds to the JSON property `linearBuckets` + # @return [Google::Apis::MonitoringV3::Linear] + attr_accessor :linear_buckets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets) + @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets) + @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets) + end + end + + # The `CreateCollectdTimeSeries` request. + class CreateCollectdTimeSeriesRequest + include Google::Apis::Core::Hashable + + # 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 + + # 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": "my-instance", + # "zone": "us-central1-a" `` + # Corresponds to the JSON property `resource` + # @return [Google::Apis::MonitoringV3::MonitoredResource] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collectd_payloads = args[:collectd_payloads] if args.key?(:collectd_payloads) + @collectd_version = args[:collectd_version] if args.key?(:collectd_version) + @resource = args[:resource] if args.key?(:resource) + 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 + + # The 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::MonitoringV3::SourceContext] + attr_accessor :source_context + + # 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 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) + @options = args[:options] if args.key?(:options) + @source_context = args[:source_context] if args.key?(:source_context) + @fields = args[:fields] if args.key?(:fields) + @name = args[:name] if args.key?(:name) + @syntax = args[:syntax] if args.key?(:syntax) + end + end + + # Exemplars are example points that may be used to annotate aggregated + # distribution values. They are metadata that gives information about a + # particular value added to a Distribution bucket, such as a trace ID that + # was active when a value was added. They can contain further information, + # such as a example values and timestamps, origin, etc. + # This is an experimental feature which is available in internal Monarch. + # The purpose of including it here is to be able to construct demos and + # prototypes for the purposes of eludicating use cases. + class Exemplar + include Google::Apis::Core::Hashable + + # Value of the exemplar point. This value determines to which bucket the + # exemplar belongs. + # Corresponds to the JSON property `value` + # @return [Float] + attr_accessor :value + + # Contextual information about the example value. Examples are: + # Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace + # Literal string: type.googleapis.com/google.protobuf.StringValue + # Labels dropped during aggregation: + # type.googleapis.com/google.monitoring.v3.DroppedLabels + # There may be only a single attachment of any given message type in a + # single exemplar, and this is enforced by the system. + # Corresponds to the JSON property `attachments` + # @return [Array>] + attr_accessor :attachments + + # The observation (sampling) time of the above value. + # 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) + @value = args[:value] if args.key?(:value) + @attachments = args[:attachments] if args.key?(:attachments) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # The `ListGroups` response. + class ListGroupsResponse + include Google::Apis::Core::Hashable + + # The groups that match the specified filters. + # Corresponds to the JSON property `group` + # @return [Array] + attr_accessor :group + + # If there are more results than have been returned, then this field is set + # to a non-empty value. To see the additional results, + # use that value as `pageToken` in the next call to this method. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @group = args[:group] if args.key?(:group) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + end + end +end diff --git a/generated/google/apis/monitoring_v3/representations.rb b/generated/google/apis/monitoring_v3/representations.rb new file mode 100644 index 000000000..73412e802 --- /dev/null +++ b/generated/google/apis/monitoring_v3/representations.rb @@ -0,0 +1,533 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module MonitoringV3 + + class Metric + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListGroupMembersResponse + 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 Group + 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 Point + 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 TimeSeries + 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 Exponential + 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 Linear + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CollectdPayload + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListMetricDescriptorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Distribution + 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 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 TypedValue + 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 Field + 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 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 CreateTimeSeriesRequest + 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 CreateCollectdTimeSeriesRequest + 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 Exemplar + 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 Metric + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' + property :type, as: 'type' + end + end + + class ListGroupMembersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :members, as: 'members', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation + + property :next_page_token, as: 'nextPageToken' + property :total_size, as: 'totalSize' + end + end + + class TimeInterval + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + end + end + + class Group + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :parent_name, as: 'parentName' + property :is_cluster, as: 'isCluster' + property :filter, as: 'filter' + property :name, as: 'name' + 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 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 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_name, as: 'dataSourceName' + property :data_source_type, as: 'dataSourceType' + end + end + + class TimeSeries + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metric, as: 'metric', class: Google::Apis::MonitoringV3::Metric, decorator: Google::Apis::MonitoringV3::Metric::Representation + + collection :points, as: 'points', class: Google::Apis::MonitoringV3::Point, decorator: Google::Apis::MonitoringV3::Point::Representation + + property :value_type, as: 'valueType' + property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation + + property :metric_kind, as: 'metricKind' + end + end + + class MetricDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :unit, as: 'unit' + collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation + + property :metric_kind, as: 'metricKind' + property :value_type, as: 'valueType' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :type, as: 'type' + end + 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 + end + + class Explicit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bounds, as: 'bounds' + end + end + + class Linear + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :width, as: 'width' + property :offset, as: 'offset' + property :num_finite_buckets, as: 'numFiniteBuckets' + end + end + + class CollectdPayload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + hash :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation + + collection :values, as: 'values', class: Google::Apis::MonitoringV3::CollectdValue, decorator: Google::Apis::MonitoringV3::CollectdValue::Representation + + property :plugin_instance, as: 'pluginInstance' + property :start_time, as: 'startTime' + property :type_instance, as: 'typeInstance' + property :type, as: 'type' + property :plugin, as: 'plugin' + end + end + + class ListMetricDescriptorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :metric_descriptors, as: 'metricDescriptors', class: Google::Apis::MonitoringV3::MetricDescriptor, decorator: Google::Apis::MonitoringV3::MetricDescriptor::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class 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 :count, as: 'count' + property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation' + property :mean, as: 'mean' + property :range, as: 'range', class: Google::Apis::MonitoringV3::Range, decorator: Google::Apis::MonitoringV3::Range::Representation + + collection :exemplars, as: 'exemplars', class: Google::Apis::MonitoringV3::Exemplar, decorator: Google::Apis::MonitoringV3::Exemplar::Representation + + end + end + + class MonitoredResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' + property :type, as: 'type' + 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' + collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation + + property :type, as: 'type' + property :name, as: 'name' + end + end + + class TypedValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bool_value, as: 'boolValue' + property :string_value, as: 'stringValue' + property :int64_value, as: 'int64Value' + property :double_value, as: 'doubleValue' + property :distribution_value, as: 'distributionValue', class: Google::Apis::MonitoringV3::Distribution, decorator: Google::Apis::MonitoringV3::Distribution::Representation + + end + end + + class ListMonitoredResourceDescriptorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::MonitoringV3::MonitoredResourceDescriptor, decorator: Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation + + end + end + + class Field + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default_value, as: 'defaultValue' + property :json_name, as: 'jsonName' + collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation + + property :oneof_index, as: 'oneofIndex' + property :cardinality, as: 'cardinality' + property :type_url, as: 'typeUrl' + property :name, as: 'name' + property :packed, as: 'packed' + property :number, as: 'number' + property :kind, as: 'kind' + end + end + + class Option + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :value, as: 'value' + property :name, as: 'name' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class SourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_name, as: 'fileName' + end + end + + class Range + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max, as: 'max' + property :min, as: 'min' + end + end + + class CreateTimeSeriesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :time_series, as: 'timeSeries', class: Google::Apis::MonitoringV3::TimeSeries, decorator: Google::Apis::MonitoringV3::TimeSeries::Representation + + end + end + + class BucketOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + property :linear_buckets, as: 'linearBuckets', class: Google::Apis::MonitoringV3::Linear, decorator: Google::Apis::MonitoringV3::Linear::Representation + + end + end + + class CreateCollectdTimeSeriesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collectd_payloads, as: 'collectdPayloads', class: Google::Apis::MonitoringV3::CollectdPayload, decorator: Google::Apis::MonitoringV3::CollectdPayload::Representation + + property :collectd_version, as: 'collectdVersion' + property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation + + end + end + + class Type + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :oneofs, as: 'oneofs' + collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation + + property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV3::SourceContext, decorator: Google::Apis::MonitoringV3::SourceContext::Representation + + collection :fields, as: 'fields', class: Google::Apis::MonitoringV3::Field, decorator: Google::Apis::MonitoringV3::Field::Representation + + property :name, as: 'name' + property :syntax, as: 'syntax' + end + end + + class Exemplar + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + collection :attachments, as: 'attachments' + property :timestamp, as: 'timestamp' + end + end + + class ListGroupsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :group, as: 'group', class: Google::Apis::MonitoringV3::Group, decorator: Google::Apis::MonitoringV3::Group::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + end + end +end diff --git a/generated/google/apis/monitoring_v3/service.rb b/generated/google/apis/monitoring_v3/service.rb new file mode 100644 index 000000000..c8391950b --- /dev/null +++ b/generated/google/apis/monitoring_v3/service.rb @@ -0,0 +1,743 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module MonitoringV3 + # Google Monitoring API + # + # Manages your Stackdriver Monitoring data and configurations. Most projects + # must be associated with a Stackdriver account, with a few exceptions as noted + # on the individual method pages. + # + # @example + # require 'google/apis/monitoring_v3' + # + # Monitoring = Google::Apis::MonitoringV3 # Alias the module + # service = Monitoring::MonitoringService.new + # + # @see https://cloud.google.com/monitoring/api/ + class MonitoringService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://monitoring.googleapis.com/', '') + end + + # **Stackdriver Monitoring Agent only:** Creates a new time series. + # + # @param [String] name + # The project in which to create the time series. The format is + # `"projects/PROJECT_ID_OR_NUMBER"`. + # @param [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest] create_collectd_time_series_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include 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_collectd_time_series(name, create_collectd_time_series_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options) + command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation + command.request_object = create_collectd_time_series_request_object + command.response_representation = Google::Apis::MonitoringV3::Empty::Representation + command.response_class = Google::Apis::MonitoringV3::Empty + command.params['name'] = name unless name.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing group. + # You can change any group attributes except `name`. + # @param [String] name + # The name of this group. + # The format is + # `"projects/`project_id_or_number`/groups/`group_id`"`. + # When creating a group, this field is ignored and a new name is created + # consisting of the project specified in the call to `CreateGroup` + # and a unique ``group_id`` that is generated automatically. + # @OutputOnly + # @param [Google::Apis::MonitoringV3::Group] group_object + # @param [Boolean] validate_only + # If true, validate this request but do not update the existing group. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::Group] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_group(name, group_object = nil, validate_only: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v3/{+name}', options) + command.request_representation = Google::Apis::MonitoringV3::Group::Representation + command.request_object = group_object + command.response_representation = Google::Apis::MonitoringV3::Group::Representation + command.response_class = Google::Apis::MonitoringV3::Group + command.params['name'] = name unless name.nil? + command.query['validateOnly'] = validate_only unless validate_only.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Gets a single group. + # @param [String] name + # The group to retrieve. The format is + # `"projects/`project_id_or_number`/groups/`group_id`"`. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::Group] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_group(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::Group::Representation + command.response_class = Google::Apis::MonitoringV3::Group + command.params['name'] = name unless name.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new group. + # @param [String] name + # The project in which to create the group. The format is + # `"projects/`project_id_or_number`"`. + # @param [Google::Apis::MonitoringV3::Group] group_object + # @param [Boolean] validate_only + # If true, validate this request but do not create the group. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::Group] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_group(name, group_object = nil, validate_only: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/groups', options) + command.request_representation = Google::Apis::MonitoringV3::Group::Representation + command.request_object = group_object + command.response_representation = Google::Apis::MonitoringV3::Group::Representation + command.response_class = Google::Apis::MonitoringV3::Group + command.params['name'] = name unless name.nil? + command.query['validateOnly'] = validate_only unless validate_only.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Lists the existing groups. + # @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 [Fixnum] page_size + # A positive number that is the maximum number of results to return. + # @param [String] children_of_group + # A group name: `"projects/`project_id_or_number`/groups/`group_id`"`. + # Returns groups whose `parentName` field contains the group + # name. If no groups have this parent, the results are empty. + # @param [String] ancestors_of_group + # A group name: `"projects/`project_id_or_number`/groups/`group_id`"`. + # Returns groups that are ancestors of the specified group. + # The groups are returned in order, starting with the immediate parent and + # ending with the most distant ancestor. If the specified group has no + # immediate parent, the results are empty. + # @param [String] 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. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::ListGroupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::ListGroupsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_groups(name, descendants_of_group: nil, page_size: nil, children_of_group: nil, ancestors_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['pageSize'] = page_size unless page_size.nil? + command.query['childrenOfGroup'] = children_of_group unless children_of_group.nil? + command.query['ancestorsOfGroup'] = ancestors_of_group unless ancestors_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) + end + + # Deletes an existing group. + # @param [String] name + # The group to delete. The format is + # `"projects/`project_id_or_number`/groups/`group_id`"`. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include 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_group(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::Empty::Representation + command.response_class = Google::Apis::MonitoringV3::Empty + command.params['name'] = name unless name.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Lists the monitored resources that are members of a group. + # @param [String] name + # The group whose members are listed. The format is + # `"projects/`project_id_or_number`/groups/`group_id`"`. + # @param [String] filter + # An optional [list filter](/monitoring/api/learn_more#filtering) describing + # the members to be returned. The filter may reference the type, labels, and + # metadata of monitored resources that comprise the group. + # For example, to return only resources representing Compute Engine VM + # instances, use this filter: + # resource.type = "gce_instance" + # @param [String] interval_end_time + # Required. The end of the interval. The interval includes this + # time. + # @param [String] interval_start_time + # If this value is omitted, the interval is a point in time, + # `endTime`. If `startTime` is present, it must be earlier than + # (less than) `endTime`. The interval begins after + # `startTime`—it does not include `startTime`. + # @param [Fixnum] page_size + # A positive number that is the maximum number of results to return. + # @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. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::ListGroupMembersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::ListGroupMembersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_group_members(name, filter: nil, interval_end_time: nil, interval_start_time: nil, page_size: 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['filter'] = filter unless filter.nil? + command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil? + command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # 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](/monitoring/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 + + # 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 [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](/monitoring/api/v3/filters) + # specifies which metric descriptors are to be + # returned. For example, the following filter matches all + # [custom metrics](/monitoring/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 [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include 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_size: nil, filter: nil, page_token: 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['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 + + # Deletes a metric descriptor. Only user-created + # [custom metrics](/monitoring/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 + + # 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 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] filter + # A [monitoring filter](/monitoring/api/v3/filters) 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 [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. + # Fields not specified in `groupByFields` are aggregated away. + # If `groupByFields` is not specified, the time series are + # aggregated into a single output time series. If + # `crossSeriesReducer` is not defined, this field is ignored. + # @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] interval_end_time + # Required. The end of the interval. The interval includes this + # time. + # @param [String] interval_start_time + # If this value is omitted, the interval is a point in time, + # `endTime`. If `startTime` is present, it must be earlier than + # (less than) `endTime`. The interval begins after + # `startTime`—it does not include `startTime`. + # @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] view + # Specifies which information is returned about the time series. + # @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 [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] 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] 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. + # @param [String] fields + # Selector specifying which fields to include 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, filter: nil, aggregation_group_by_fields: nil, aggregation_cross_series_reducer: nil, interval_end_time: nil, interval_start_time: nil, page_size: nil, view: nil, aggregation_alignment_period: nil, aggregation_per_series_aligner: nil, order_by: nil, page_token: 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['filter'] = filter unless filter.nil? + command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil? + command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil? + command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil? + command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['view'] = view unless view.nil? + command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil? + command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil? + command.query['orderBy'] = order_by unless order_by.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 a single monitored resource descriptor. This method does not require a + # Stackdriver account. + # @param [String] name + # The monitored resource descriptor to get. The format is + # `"projects/`project_id_or_number`/monitoredResourceDescriptors/`resource_type`" + # `. + # The ``resource_type`` is a predefined type, such as + # `cloudsql_database`. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::MonitoredResourceDescriptor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::MonitoredResourceDescriptor] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_monitored_resource_descriptor(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation + command.response_class = Google::Apis::MonitoringV3::MonitoredResourceDescriptor + 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](/monitoring/api/v3/filters) describing + # the descriptors to be returned. The filter can reference + # the descriptor's type and labels. For example, the + # following filter returns only Google Compute Engine descriptors + # that have an `id` label: + # resource.type = starts_with("gce_") AND resource.label:id + # @param [String] 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. + # @param [String] fields + # Selector specifying which fields to include 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::ListMonitoredResourceDescriptorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::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_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['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/oauth2_v2.rb b/generated/google/apis/oauth2_v2.rb index d922c7c61..560853db7 100644 --- a/generated/google/apis/oauth2_v2.rb +++ b/generated/google/apis/oauth2_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/accounts/docs/OAuth2 module Oauth2V2 VERSION = 'V2' - REVISION = '20160330' + REVISION = '20160602' # 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/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index d1123cc5d..7366e825d 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 = '20160523' + REVISION = '20160607' # 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 213d8f434..43e08d994 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 = '20160523' + REVISION = '20160607' # 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/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index 72944c390..203809637 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20160519' + REVISION = '20160603' # View the files in your Google Drive AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly' diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index 42fb14228..cf7eeec4b 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20160519' + REVISION = '20160606' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index 57d635d46..ff35d0075 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -668,15 +668,14 @@ module Google attr_accessor :lat_long_rect # List of languages to use for TEXT_DETECTION. In most cases, an empty value - # will yield the best results as it will allow text detection to - # automatically detect the text language. For languages based on the latin - # alphabet a hint is not needed. In rare cases, when the language of - # the text in the image is known in advance, setting this hint will help get - # better results (although it will hurt a great deal if the hint is wrong). - # Text detection will return an error if one or more of the languages - # specified here are not supported. The exact list of supported languages are - # specified here: - # https://cloud.google.com/translate/v2/using_rest#language-params + # 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](/translate/v2/translate-reference#supported_languages). # Corresponds to the JSON property `languageHints` # @return [Array] attr_accessor :language_hints @@ -1064,6 +1063,8 @@ module Google attr_accessor :source # Image content, represented as a stream of bytes. + # Note: as with all `bytes` fields, protobuffers use a pure binary + # representation, whereas JSON representations use base64. # Corresponds to the JSON property `content` # @return [String] attr_accessor :content diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 78acdde80..474d77a11 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20160510' + REVISION = '20160608' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 4bb4a124d..bca1c7d0a 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/v3 module YoutubeV3 VERSION = 'V3' - REVISION = '20160509' + REVISION = '20160606' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index a7b15215b..ce4a2e9f2 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -4533,6 +4533,26 @@ module Google # @return [Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails] attr_accessor :message_retracted_details + # + # Corresponds to the JSON property `pollClosedDetails` + # @return [Google::Apis::YoutubeV3::LiveChatPollClosedDetails] + attr_accessor :poll_closed_details + + # + # Corresponds to the JSON property `pollEditedDetails` + # @return [Google::Apis::YoutubeV3::LiveChatPollEditedDetails] + attr_accessor :poll_edited_details + + # + # Corresponds to the JSON property `pollOpenedDetails` + # @return [Google::Apis::YoutubeV3::LiveChatPollOpenedDetails] + attr_accessor :poll_opened_details + + # + # Corresponds to the JSON property `pollVotedDetails` + # @return [Google::Apis::YoutubeV3::LiveChatPollVotedDetails] + attr_accessor :poll_voted_details + # The date and time when the message was orignally published. The value is # specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. # Corresponds to the JSON property `publishedAt` @@ -4569,6 +4589,10 @@ module Google @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id) @message_deleted_details = args[:message_deleted_details] if args.key?(:message_deleted_details) @message_retracted_details = args[:message_retracted_details] if args.key?(:message_retracted_details) + @poll_closed_details = args[:poll_closed_details] if args.key?(:poll_closed_details) + @poll_edited_details = args[:poll_edited_details] if args.key?(:poll_edited_details) + @poll_opened_details = args[:poll_opened_details] if args.key?(:poll_opened_details) + @poll_voted_details = args[:poll_voted_details] if args.key?(:poll_voted_details) @published_at = args[:published_at] if args.key?(:published_at) @text_message_details = args[:text_message_details] if args.key?(:text_message_details) @type = args[:type] if args.key?(:type) @@ -4712,6 +4736,137 @@ module Google end end + # + class LiveChatPollClosedDetails + include Google::Apis::Core::Hashable + + # The id of the poll that was closed. + # Corresponds to the JSON property `pollId` + # @return [String] + attr_accessor :poll_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @poll_id = args[:poll_id] if args.key?(:poll_id) + end + end + + # + class LiveChatPollEditedDetails + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # + # Corresponds to the JSON property `prompt` + # @return [String] + attr_accessor :prompt + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @prompt = args[:prompt] if args.key?(:prompt) + end + end + + # + class LiveChatPollItem + include Google::Apis::Core::Hashable + + # Plain text description of the item. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @item_id = args[:item_id] if args.key?(:item_id) + end + end + + # + class LiveChatPollOpenedDetails + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # + # Corresponds to the JSON property `prompt` + # @return [String] + attr_accessor :prompt + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @prompt = args[:prompt] if args.key?(:prompt) + end + end + + # + class LiveChatPollVotedDetails + include Google::Apis::Core::Hashable + + # The poll item the user chose. + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + # The poll the user voted on. + # Corresponds to the JSON property `pollId` + # @return [String] + attr_accessor :poll_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @item_id = args[:item_id] if args.key?(:item_id) + @poll_id = args[:poll_id] if args.key?(:poll_id) + end + end + # class LiveChatTextMessageDetails include Google::Apis::Core::Hashable diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index 92e5ab101..46a1cccc1 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -574,6 +574,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LiveChatPollClosedDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiveChatPollEditedDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiveChatPollItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiveChatPollOpenedDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiveChatPollVotedDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LiveChatTextMessageDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2202,6 +2232,14 @@ module Google property :message_retracted_details, as: 'messageRetractedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails::Representation + property :poll_closed_details, as: 'pollClosedDetails', class: Google::Apis::YoutubeV3::LiveChatPollClosedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollClosedDetails::Representation + + property :poll_edited_details, as: 'pollEditedDetails', class: Google::Apis::YoutubeV3::LiveChatPollEditedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollEditedDetails::Representation + + property :poll_opened_details, as: 'pollOpenedDetails', class: Google::Apis::YoutubeV3::LiveChatPollOpenedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollOpenedDetails::Representation + + property :poll_voted_details, as: 'pollVotedDetails', class: Google::Apis::YoutubeV3::LiveChatPollVotedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollVotedDetails::Representation + property :published_at, as: 'publishedAt', type: DateTime property :text_message_details, as: 'textMessageDetails', class: Google::Apis::YoutubeV3::LiveChatTextMessageDetails, decorator: Google::Apis::YoutubeV3::LiveChatTextMessageDetails::Representation @@ -2250,6 +2288,49 @@ module Google end end + class LiveChatPollClosedDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :poll_id, as: 'pollId' + end + end + + class LiveChatPollEditedDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatPollItem, decorator: Google::Apis::YoutubeV3::LiveChatPollItem::Representation + + property :prompt, as: 'prompt' + end + end + + class LiveChatPollItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :item_id, as: 'itemId' + end + end + + class LiveChatPollOpenedDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatPollItem, decorator: Google::Apis::YoutubeV3::LiveChatPollItem::Representation + + property :prompt, as: 'prompt' + end + end + + class LiveChatPollVotedDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :item_id, as: 'itemId' + property :poll_id, as: 'pollId' + end + end + class LiveChatTextMessageDetails # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index 5886e8b2d..bcaaa6193 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -3622,9 +3622,12 @@ module Google # @param [Boolean] mine # Set this parameter's value to true to retrieve a feed of the authenticated # user's subscriptions. + # @param [Boolean] my_recent_subscribers + # Set this parameter's value to true to retrieve a feed of the subscribers of + # the authenticated user in reverse chronological order (newest first). # @param [Boolean] my_subscribers # Set this parameter's value to true to retrieve a feed of the subscribers of - # the authenticated user. + # the authenticated user in no particular order. # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. # The onBehalfOfContentOwner parameter indicates that the request's @@ -3679,7 +3682,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_subscriptions(part, channel_id: nil, for_channel_id: nil, id: nil, max_results: nil, mine: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, order: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_subscriptions(part, channel_id: nil, for_channel_id: nil, id: nil, max_results: nil, mine: nil, my_recent_subscribers: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, order: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'subscriptions', options) command.response_representation = Google::Apis::YoutubeV3::ListSubscriptionResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListSubscriptionResponse @@ -3688,6 +3691,7 @@ module Google command.query['id'] = id unless id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['mine'] = mine unless mine.nil? + command.query['myRecentSubscribers'] = my_recent_subscribers unless my_recent_subscribers.nil? command.query['mySubscribers'] = my_subscribers unless my_subscribers.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil? diff --git a/script/generate b/script/generate index 151bd339a..a8691fa89 100755 --- a/script/generate +++ b/script/generate @@ -103,6 +103,7 @@ API_IDS=(adexchangebuyer:v1.4 \ URLS=(https://content.googleapis.com/discovery/v1/apis/youtubePartner/v1/rest \ https://content.googleapis.com/discovery/v1/apis/compute/beta/rest \ https://developers.google.com/my-business/samples/mybusiness_google_rest_v3.json \ + https://monitoring.googleapis.com/\$discovery/rest?version=v3 \ ) echo 'a' | bundle exec bin/generate-api gen generated --from-discovery=true --names_out=$DIR/api_names_out.yaml --url=${URLS[*]} --id=${API_IDS[*]}