From ed4e71418341f37942d72f1e2c224220f1fe0761 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 9 Mar 2018 00:36:06 +0000 Subject: [PATCH] Autogenerated update (2018-03-09) Update: - adexchangebuyer2_v2beta1 - container_v1 - container_v1beta1 - content_v2 - dlp_v2beta2 - genomics_v2alpha1 - monitoring_v3 - oslogin_v1 - oslogin_v1alpha --- api_names_out.yaml | 138 +++ .../google/apis/adexchangebuyer2_v2beta1.rb | 2 +- generated/google/apis/container_v1.rb | 2 +- generated/google/apis/container_v1beta1.rb | 2 +- .../google/apis/container_v1beta1/classes.rb | 253 +++--- .../google/apis/container_v1beta1/service.rb | 467 +++++----- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 2 +- generated/google/apis/dlp_v2beta2.rb | 2 +- generated/google/apis/dlp_v2beta2/classes.rb | 24 + .../apis/dlp_v2beta2/representations.rb | 4 + generated/google/apis/genomics_v2alpha1.rb | 2 +- generated/google/apis/monitoring_v3.rb | 2 +- .../google/apis/monitoring_v3/classes.rb | 797 +++++++++++++++++- .../apis/monitoring_v3/representations.rb | 279 ++++++ .../google/apis/monitoring_v3/service.rb | 612 ++++++++++++++ generated/google/apis/oslogin_v1.rb | 4 +- generated/google/apis/oslogin_v1/service.rb | 2 +- generated/google/apis/oslogin_v1alpha.rb | 4 +- .../google/apis/oslogin_v1alpha/service.rb | 2 +- 20 files changed, 2231 insertions(+), 371 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index be48cfa6e..9b997fe0f 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -46033,6 +46033,7 @@ "/dlp:v2beta2/GooglePrivacyDlpV2beta2CategoricalStatsConfig/field": field "/dlp:v2beta2/GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket": google_privacy_dlp_v2beta2_categorical_stats_histogram_bucket "/dlp:v2beta2/GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket/bucketSize": bucket_size +"/dlp:v2beta2/GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket/bucketValueCount": bucket_value_count "/dlp:v2beta2/GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket/bucketValues": bucket_values "/dlp:v2beta2/GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket/bucketValues/bucket_value": bucket_value "/dlp:v2beta2/GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket/valueFrequencyLowerBound": value_frequency_lower_bound @@ -46281,6 +46282,7 @@ "/dlp:v2beta2/GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass/quasiIdsValues/quasi_ids_value": quasi_ids_value "/dlp:v2beta2/GooglePrivacyDlpV2beta2KAnonymityHistogramBucket": google_privacy_dlp_v2beta2_k_anonymity_histogram_bucket "/dlp:v2beta2/GooglePrivacyDlpV2beta2KAnonymityHistogramBucket/bucketSize": bucket_size +"/dlp:v2beta2/GooglePrivacyDlpV2beta2KAnonymityHistogramBucket/bucketValueCount": bucket_value_count "/dlp:v2beta2/GooglePrivacyDlpV2beta2KAnonymityHistogramBucket/bucketValues": bucket_values "/dlp:v2beta2/GooglePrivacyDlpV2beta2KAnonymityHistogramBucket/bucketValues/bucket_value": bucket_value "/dlp:v2beta2/GooglePrivacyDlpV2beta2KAnonymityHistogramBucket/equivalenceClassSizeLowerBound": equivalence_class_size_lower_bound @@ -46296,6 +46298,7 @@ "/dlp:v2beta2/GooglePrivacyDlpV2beta2KMapEstimationConfig/regionCode": region_code "/dlp:v2beta2/GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket": google_privacy_dlp_v2beta2_k_map_estimation_histogram_bucket "/dlp:v2beta2/GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket/bucketSize": bucket_size +"/dlp:v2beta2/GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket/bucketValueCount": bucket_value_count "/dlp:v2beta2/GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket/bucketValues": bucket_values "/dlp:v2beta2/GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket/bucketValues/bucket_value": bucket_value "/dlp:v2beta2/GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket/maxAnonymity": max_anonymity @@ -46329,6 +46332,7 @@ "/dlp:v2beta2/GooglePrivacyDlpV2beta2LDiversityEquivalenceClass/topSensitiveValues/top_sensitive_value": top_sensitive_value "/dlp:v2beta2/GooglePrivacyDlpV2beta2LDiversityHistogramBucket": google_privacy_dlp_v2beta2_l_diversity_histogram_bucket "/dlp:v2beta2/GooglePrivacyDlpV2beta2LDiversityHistogramBucket/bucketSize": bucket_size +"/dlp:v2beta2/GooglePrivacyDlpV2beta2LDiversityHistogramBucket/bucketValueCount": bucket_value_count "/dlp:v2beta2/GooglePrivacyDlpV2beta2LDiversityHistogramBucket/bucketValues": bucket_values "/dlp:v2beta2/GooglePrivacyDlpV2beta2LDiversityHistogramBucket/bucketValues/bucket_value": bucket_value "/dlp:v2beta2/GooglePrivacyDlpV2beta2LDiversityHistogramBucket/sensitiveValueFrequencyLowerBound": sensitive_value_frequency_lower_bound @@ -55166,6 +55170,26 @@ "/ml:v1beta1/ml.projects.predict": predict_project "/ml:v1beta1/ml.projects.predict/name": name "/ml:v1beta1/quotaUser": quota_user +"/monitoring:v3/Aggregation": aggregation +"/monitoring:v3/Aggregation/alignmentPeriod": alignment_period +"/monitoring:v3/Aggregation/crossSeriesReducer": cross_series_reducer +"/monitoring:v3/Aggregation/groupByFields": group_by_fields +"/monitoring:v3/Aggregation/groupByFields/group_by_field": group_by_field +"/monitoring:v3/Aggregation/perSeriesAligner": per_series_aligner +"/monitoring:v3/AlertPolicy": alert_policy +"/monitoring:v3/AlertPolicy/combiner": combiner +"/monitoring:v3/AlertPolicy/conditions": conditions +"/monitoring:v3/AlertPolicy/conditions/condition": condition +"/monitoring:v3/AlertPolicy/creationRecord": creation_record +"/monitoring:v3/AlertPolicy/displayName": display_name +"/monitoring:v3/AlertPolicy/documentation": documentation +"/monitoring:v3/AlertPolicy/enabled": enabled +"/monitoring:v3/AlertPolicy/mutationRecord": mutation_record +"/monitoring:v3/AlertPolicy/name": name +"/monitoring:v3/AlertPolicy/notificationChannels": notification_channels +"/monitoring:v3/AlertPolicy/notificationChannels/notification_channel": notification_channel +"/monitoring:v3/AlertPolicy/userLabels": user_labels +"/monitoring:v3/AlertPolicy/userLabels/user_label": user_label "/monitoring:v3/BasicAuthentication": basic_authentication "/monitoring:v3/BasicAuthentication/password": password "/monitoring:v3/BasicAuthentication/username": username @@ -55196,6 +55220,11 @@ "/monitoring:v3/CollectdValueError": collectd_value_error "/monitoring:v3/CollectdValueError/error": error "/monitoring:v3/CollectdValueError/index": index +"/monitoring:v3/Condition": condition +"/monitoring:v3/Condition/conditionAbsent": condition_absent +"/monitoring:v3/Condition/conditionThreshold": condition_threshold +"/monitoring:v3/Condition/displayName": display_name +"/monitoring:v3/Condition/name": name "/monitoring:v3/ContentMatcher": content_matcher "/monitoring:v3/ContentMatcher/content": content "/monitoring:v3/CreateCollectdTimeSeriesRequest": create_collectd_time_series_request @@ -55217,6 +55246,9 @@ "/monitoring:v3/Distribution/mean": mean "/monitoring:v3/Distribution/range": range "/monitoring:v3/Distribution/sumOfSquaredDeviation": sum_of_squared_deviation +"/monitoring:v3/Documentation": documentation +"/monitoring:v3/Documentation/content": content +"/monitoring:v3/Documentation/mimeType": mime_type "/monitoring:v3/Empty": empty "/monitoring:v3/Explicit": explicit "/monitoring:v3/Explicit/bounds": bounds @@ -55237,6 +55269,11 @@ "/monitoring:v3/Field/options/option": option "/monitoring:v3/Field/packed": packed "/monitoring:v3/Field/typeUrl": type_url +"/monitoring:v3/GetNotificationChannelVerificationCodeRequest": get_notification_channel_verification_code_request +"/monitoring:v3/GetNotificationChannelVerificationCodeRequest/expireTime": expire_time +"/monitoring:v3/GetNotificationChannelVerificationCodeResponse": get_notification_channel_verification_code_response +"/monitoring:v3/GetNotificationChannelVerificationCodeResponse/code": code +"/monitoring:v3/GetNotificationChannelVerificationCodeResponse/expireTime": expire_time "/monitoring:v3/Group": group "/monitoring:v3/Group/displayName": display_name "/monitoring:v3/Group/filter": filter @@ -55265,6 +55302,10 @@ "/monitoring:v3/Linear/numFiniteBuckets": num_finite_buckets "/monitoring:v3/Linear/offset": offset "/monitoring:v3/Linear/width": width +"/monitoring:v3/ListAlertPoliciesResponse": list_alert_policies_response +"/monitoring:v3/ListAlertPoliciesResponse/alertPolicies": alert_policies +"/monitoring:v3/ListAlertPoliciesResponse/alertPolicies/alert_policy": alert_policy +"/monitoring:v3/ListAlertPoliciesResponse/nextPageToken": next_page_token "/monitoring:v3/ListGroupMembersResponse": list_group_members_response "/monitoring:v3/ListGroupMembersResponse/members": members "/monitoring:v3/ListGroupMembersResponse/members/member": member @@ -55282,6 +55323,14 @@ "/monitoring:v3/ListMonitoredResourceDescriptorsResponse/nextPageToken": next_page_token "/monitoring:v3/ListMonitoredResourceDescriptorsResponse/resourceDescriptors": resource_descriptors "/monitoring:v3/ListMonitoredResourceDescriptorsResponse/resourceDescriptors/resource_descriptor": resource_descriptor +"/monitoring:v3/ListNotificationChannelDescriptorsResponse": list_notification_channel_descriptors_response +"/monitoring:v3/ListNotificationChannelDescriptorsResponse/channelDescriptors": channel_descriptors +"/monitoring:v3/ListNotificationChannelDescriptorsResponse/channelDescriptors/channel_descriptor": channel_descriptor +"/monitoring:v3/ListNotificationChannelDescriptorsResponse/nextPageToken": next_page_token +"/monitoring:v3/ListNotificationChannelsResponse": list_notification_channels_response +"/monitoring:v3/ListNotificationChannelsResponse/nextPageToken": next_page_token +"/monitoring:v3/ListNotificationChannelsResponse/notificationChannels": notification_channels +"/monitoring:v3/ListNotificationChannelsResponse/notificationChannels/notification_channel": notification_channel "/monitoring:v3/ListTimeSeriesResponse": list_time_series_response "/monitoring:v3/ListTimeSeriesResponse/nextPageToken": next_page_token "/monitoring:v3/ListTimeSeriesResponse/timeSeries": time_series @@ -55299,6 +55348,12 @@ "/monitoring:v3/Metric/labels": labels "/monitoring:v3/Metric/labels/label": label "/monitoring:v3/Metric/type": type +"/monitoring:v3/MetricAbsence": metric_absence +"/monitoring:v3/MetricAbsence/aggregations": aggregations +"/monitoring:v3/MetricAbsence/aggregations/aggregation": aggregation +"/monitoring:v3/MetricAbsence/duration": duration +"/monitoring:v3/MetricAbsence/filter": filter +"/monitoring:v3/MetricAbsence/trigger": trigger "/monitoring:v3/MetricDescriptor": metric_descriptor "/monitoring:v3/MetricDescriptor/description": description "/monitoring:v3/MetricDescriptor/displayName": display_name @@ -55309,6 +55364,17 @@ "/monitoring:v3/MetricDescriptor/type": type "/monitoring:v3/MetricDescriptor/unit": unit "/monitoring:v3/MetricDescriptor/valueType": value_type +"/monitoring:v3/MetricThreshold": metric_threshold +"/monitoring:v3/MetricThreshold/aggregations": aggregations +"/monitoring:v3/MetricThreshold/aggregations/aggregation": aggregation +"/monitoring:v3/MetricThreshold/comparison": comparison +"/monitoring:v3/MetricThreshold/denominatorAggregations": denominator_aggregations +"/monitoring:v3/MetricThreshold/denominatorAggregations/denominator_aggregation": denominator_aggregation +"/monitoring:v3/MetricThreshold/denominatorFilter": denominator_filter +"/monitoring:v3/MetricThreshold/duration": duration +"/monitoring:v3/MetricThreshold/filter": filter +"/monitoring:v3/MetricThreshold/thresholdValue": threshold_value +"/monitoring:v3/MetricThreshold/trigger": trigger "/monitoring:v3/MonitoredResource": monitored_resource "/monitoring:v3/MonitoredResource/labels": labels "/monitoring:v3/MonitoredResource/labels/label": label @@ -55325,6 +55391,29 @@ "/monitoring:v3/MonitoredResourceMetadata/systemLabels/system_label": system_label "/monitoring:v3/MonitoredResourceMetadata/userLabels": user_labels "/monitoring:v3/MonitoredResourceMetadata/userLabels/user_label": user_label +"/monitoring:v3/MutationRecord": mutation_record +"/monitoring:v3/MutationRecord/mutateTime": mutate_time +"/monitoring:v3/MutationRecord/mutatedBy": mutated_by +"/monitoring:v3/NotificationChannel": notification_channel +"/monitoring:v3/NotificationChannel/description": description +"/monitoring:v3/NotificationChannel/displayName": display_name +"/monitoring:v3/NotificationChannel/enabled": enabled +"/monitoring:v3/NotificationChannel/labels": labels +"/monitoring:v3/NotificationChannel/labels/label": label +"/monitoring:v3/NotificationChannel/name": name +"/monitoring:v3/NotificationChannel/type": type +"/monitoring:v3/NotificationChannel/userLabels": user_labels +"/monitoring:v3/NotificationChannel/userLabels/user_label": user_label +"/monitoring:v3/NotificationChannel/verificationStatus": verification_status +"/monitoring:v3/NotificationChannelDescriptor": notification_channel_descriptor +"/monitoring:v3/NotificationChannelDescriptor/description": description +"/monitoring:v3/NotificationChannelDescriptor/displayName": display_name +"/monitoring:v3/NotificationChannelDescriptor/labels": labels +"/monitoring:v3/NotificationChannelDescriptor/labels/label": label +"/monitoring:v3/NotificationChannelDescriptor/name": name +"/monitoring:v3/NotificationChannelDescriptor/supportedTiers": supported_tiers +"/monitoring:v3/NotificationChannelDescriptor/supportedTiers/supported_tier": supported_tier +"/monitoring:v3/NotificationChannelDescriptor/type": type "/monitoring:v3/Option": option "/monitoring:v3/Option/name": name "/monitoring:v3/Option/value": value @@ -55338,6 +55427,7 @@ "/monitoring:v3/ResourceGroup": resource_group "/monitoring:v3/ResourceGroup/groupId": group_id "/monitoring:v3/ResourceGroup/resourceType": resource_type +"/monitoring:v3/SendNotificationChannelVerificationCodeRequest": send_notification_channel_verification_code_request "/monitoring:v3/SourceContext": source_context "/monitoring:v3/SourceContext/fileName": file_name "/monitoring:v3/Status": status @@ -55359,6 +55449,9 @@ "/monitoring:v3/TimeSeries/points/point": point "/monitoring:v3/TimeSeries/resource": resource "/monitoring:v3/TimeSeries/valueType": value_type +"/monitoring:v3/Trigger": trigger +"/monitoring:v3/Trigger/count": count +"/monitoring:v3/Trigger/percent": percent "/monitoring:v3/Type": type "/monitoring:v3/Type/fields": fields "/monitoring:v3/Type/fields/field": field @@ -55395,8 +55488,25 @@ "/monitoring:v3/UptimeCheckIp/ipAddress": ip_address "/monitoring:v3/UptimeCheckIp/location": location "/monitoring:v3/UptimeCheckIp/region": region +"/monitoring:v3/VerifyNotificationChannelRequest": verify_notification_channel_request +"/monitoring:v3/VerifyNotificationChannelRequest/code": code "/monitoring:v3/fields": fields "/monitoring:v3/key": key +"/monitoring:v3/monitoring.projects.alertPolicies.create": create_project_alert_policy +"/monitoring:v3/monitoring.projects.alertPolicies.create/name": name +"/monitoring:v3/monitoring.projects.alertPolicies.delete": delete_project_alert_policy +"/monitoring:v3/monitoring.projects.alertPolicies.delete/name": name +"/monitoring:v3/monitoring.projects.alertPolicies.get": get_project_alert_policy +"/monitoring:v3/monitoring.projects.alertPolicies.get/name": name +"/monitoring:v3/monitoring.projects.alertPolicies.list": list_project_alert_policies +"/monitoring:v3/monitoring.projects.alertPolicies.list/filter": filter +"/monitoring:v3/monitoring.projects.alertPolicies.list/name": name +"/monitoring:v3/monitoring.projects.alertPolicies.list/orderBy": order_by +"/monitoring:v3/monitoring.projects.alertPolicies.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.alertPolicies.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.alertPolicies.patch": patch_project_alert_policy +"/monitoring:v3/monitoring.projects.alertPolicies.patch/name": name +"/monitoring:v3/monitoring.projects.alertPolicies.patch/updateMask": update_mask "/monitoring:v3/monitoring.projects.collectdTimeSeries.create": create_collectd_time_series "/monitoring:v3/monitoring.projects.collectdTimeSeries.create/name": name "/monitoring:v3/monitoring.projects.groups.create": create_project_group @@ -55441,6 +55551,34 @@ "/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/name": name "/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/pageSize": page_size "/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.notificationChannelDescriptors.get": get_project_notification_channel_descriptor +"/monitoring:v3/monitoring.projects.notificationChannelDescriptors.get/name": name +"/monitoring:v3/monitoring.projects.notificationChannelDescriptors.list": list_project_notification_channel_descriptors +"/monitoring:v3/monitoring.projects.notificationChannelDescriptors.list/name": name +"/monitoring:v3/monitoring.projects.notificationChannelDescriptors.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.notificationChannelDescriptors.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.notificationChannels.create": create_project_notification_channel +"/monitoring:v3/monitoring.projects.notificationChannels.create/name": name +"/monitoring:v3/monitoring.projects.notificationChannels.delete": delete_project_notification_channel +"/monitoring:v3/monitoring.projects.notificationChannels.delete/force": force +"/monitoring:v3/monitoring.projects.notificationChannels.delete/name": name +"/monitoring:v3/monitoring.projects.notificationChannels.get": get_project_notification_channel +"/monitoring:v3/monitoring.projects.notificationChannels.get/name": name +"/monitoring:v3/monitoring.projects.notificationChannels.getVerificationCode": get_project_notification_channel_verification_code +"/monitoring:v3/monitoring.projects.notificationChannels.getVerificationCode/name": name +"/monitoring:v3/monitoring.projects.notificationChannels.list": list_project_notification_channels +"/monitoring:v3/monitoring.projects.notificationChannels.list/filter": filter +"/monitoring:v3/monitoring.projects.notificationChannels.list/name": name +"/monitoring:v3/monitoring.projects.notificationChannels.list/orderBy": order_by +"/monitoring:v3/monitoring.projects.notificationChannels.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.notificationChannels.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.notificationChannels.patch": patch_project_notification_channel +"/monitoring:v3/monitoring.projects.notificationChannels.patch/name": name +"/monitoring:v3/monitoring.projects.notificationChannels.patch/updateMask": update_mask +"/monitoring:v3/monitoring.projects.notificationChannels.sendVerificationCode": send_project_notification_channel_verification_code +"/monitoring:v3/monitoring.projects.notificationChannels.sendVerificationCode/name": name +"/monitoring:v3/monitoring.projects.notificationChannels.verify": verify_notification_channel +"/monitoring:v3/monitoring.projects.notificationChannels.verify/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 diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index 9ebf37d0a..2008535dd 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20180305' + REVISION = '20180307' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index 796e1cf76..d36a9c6a3 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20180213' + REVISION = '20180223' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index e5ea09c7c..f94c32a41 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20180213' + REVISION = '20180223' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index aaa78cef4..65d1b5c6f 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -130,22 +130,22 @@ module Google # @return [String] attr_accessor :name - # The server-assigned `name` of the operation. - # This field is deprecated, use name instead. + # Deprecated. The server-assigned `name` of the operation. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the operation resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -613,8 +613,8 @@ module Google class CompleteIpRotationRequest include Google::Apis::Core::Hashable - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -626,17 +626,17 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -669,17 +669,17 @@ module Google # @return [String] attr_accessor :parent - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -701,8 +701,8 @@ module Google class CreateNodePoolRequest include Google::Apis::Core::Hashable - # The name of the cluster. - # This field is deprecated, use parent instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the parent field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -723,17 +723,17 @@ module Google # @return [String] attr_accessor :parent - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -1743,8 +1743,8 @@ module Google class RollbackNodePoolUpgradeRequest include Google::Apis::Core::Hashable - # The name of the cluster to rollback. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to rollback. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -1756,23 +1756,23 @@ module Google # @return [String] attr_accessor :name - # The name of the node pool to rollback. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to rollback. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -1844,8 +1844,8 @@ module Google # @return [Google::Apis::ContainerV1beta1::AddonsConfig] attr_accessor :addons_config - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -1856,17 +1856,17 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -1891,8 +1891,8 @@ module Google class SetLabelsRequest include Google::Apis::Core::Hashable - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -1913,9 +1913,9 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id @@ -1925,10 +1925,10 @@ module Google # @return [Hash] attr_accessor :resource_labels - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -1953,8 +1953,8 @@ module Google class SetLegacyAbacRequest include Google::Apis::Core::Hashable - # The name of the cluster to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -1971,17 +1971,17 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2004,8 +2004,8 @@ module Google class SetLocationsRequest include Google::Apis::Core::Hashable - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2026,17 +2026,17 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2059,8 +2059,8 @@ module Google class SetLoggingServiceRequest include Google::Apis::Core::Hashable - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2079,16 +2079,17 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2164,8 +2165,8 @@ module Google # @return [String] attr_accessor :action - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2176,9 +2177,9 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id @@ -2190,10 +2191,10 @@ module Google # @return [Google::Apis::ContainerV1beta1::MasterAuth] attr_accessor :update - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2217,8 +2218,8 @@ module Google class SetMonitoringServiceRequest include Google::Apis::Core::Hashable - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2237,17 +2238,17 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2270,8 +2271,8 @@ module Google class SetNetworkPolicyRequest include Google::Apis::Core::Hashable - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2289,17 +2290,17 @@ module Google # @return [Google::Apis::ContainerV1beta1::NetworkPolicy] attr_accessor :network_policy - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2328,8 +2329,8 @@ module Google # @return [Google::Apis::ContainerV1beta1::NodePoolAutoscaling] attr_accessor :autoscaling - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2341,23 +2342,23 @@ module Google # @return [String] attr_accessor :name - # The name of the node pool to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2382,8 +2383,8 @@ module Google class SetNodePoolManagementRequest include Google::Apis::Core::Hashable - # The name of the cluster to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2401,23 +2402,23 @@ module Google # @return [String] attr_accessor :name - # The name of the node pool to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to update. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2442,8 +2443,8 @@ module Google class SetNodePoolSizeRequest include Google::Apis::Core::Hashable - # The name of the cluster to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2460,22 +2461,23 @@ module Google # @return [Fixnum] attr_accessor :node_count - # The name of the node pool to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to update. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2500,8 +2502,8 @@ module Google class StartIpRotationRequest include Google::Apis::Core::Hashable - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2512,17 +2514,17 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2544,8 +2546,8 @@ module Google class UpdateClusterRequest include Google::Apis::Core::Hashable - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2556,9 +2558,9 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id @@ -2570,10 +2572,10 @@ module Google # @return [Google::Apis::ContainerV1beta1::ClusterUpdate] attr_accessor :update - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2596,8 +2598,8 @@ module Google class UpdateMasterRequest include Google::Apis::Core::Hashable - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2615,16 +2617,17 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2647,8 +2650,8 @@ module Google class UpdateNodePoolRequest include Google::Apis::Core::Hashable - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2664,8 +2667,8 @@ module Google # @return [String] attr_accessor :name - # The name of the node pool to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to upgrade. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id @@ -2677,17 +2680,17 @@ module Google # @return [String] attr_accessor :node_version - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone diff --git a/generated/google/apis/container_v1beta1/service.rb b/generated/google/apis/container_v1beta1/service.rb index a8776d41e..1aa42e290 100644 --- a/generated/google/apis/container_v1beta1/service.rb +++ b/generated/google/apis/container_v1beta1/service.rb @@ -53,13 +53,13 @@ module Google # The name (project and location) of the server config to get # Specified in the format 'projects/*/locations/*'. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine [zone](/compute/docs/zones#available) - # to return operations for. - # This field is deprecated, use name instead. + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) to return operations for. + # This field has been deprecated and replaced by the name field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -178,17 +178,17 @@ module Google # The name (project, location, cluster) of the cluster to delete. # Specified in the format 'projects/*/locations/*/clusters/*'. # @param [String] cluster_id - # The name of the cluster to delete. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to delete. + # This field has been deprecated and replaced by the name field. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -224,17 +224,17 @@ module Google # The name (project, location, cluster) of the cluster to retrieve. # Specified in the format 'projects/*/locations/*/clusters/*'. # @param [String] cluster_id - # The name of the cluster to retrieve. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to retrieve. + # This field has been deprecated and replaced by the name field. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -272,14 +272,14 @@ module Google # Specified in the format 'projects/*/locations/*'. # Location "-" matches all zones and all regions. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides, or "-" for all zones. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -761,20 +761,20 @@ module Google # The name (project, location, cluster, node pool id) of the node pool to delete. # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to delete. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to delete. + # This field has been deprecated and replaced by the name field. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -811,20 +811,20 @@ module Google # The name (project, location, cluster, node pool id) of the node pool to get. # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool. + # This field has been deprecated and replaced by the name field. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -861,17 +861,17 @@ module Google # The parent (project, location, cluster id) where the node pools will be listed. # Specified in the format 'projects/*/locations/*/clusters/*'. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use parent instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the parent field. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1116,17 +1116,17 @@ module Google # The name (project, location, operation id) of the operation to get. # Specified in the format 'projects/*/locations/*/operations/*'. # @param [String] operation_id - # The server-assigned `name` of the operation. - # This field is deprecated, use name instead. + # Deprecated. The server-assigned `name` of the operation. + # This field has been deprecated and replaced by the name field. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1163,13 +1163,14 @@ module Google # Specified in the format 'projects/*/locations/*'. # Location "-" matches all zones and all regions. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine [zone](/compute/docs/zones#available) + # Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones# + # available) # to return operations for, or `-` for all zones. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1201,13 +1202,13 @@ module Google # Returns configuration info about the Kubernetes Engine service. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine [zone](/compute/docs/zones#available) - # to return operations for. - # This field is deprecated, use name instead. + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) to return operations for. + # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project and location) of the server config to get # Specified in the format 'projects/*/locations/*'. @@ -1242,17 +1243,17 @@ module Google # Sets the addons of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetAddonsConfigRequest] set_addons_config_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1287,17 +1288,17 @@ module Google # Completes master IP rotation. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::CompleteIpRotationRequest] complete_ip_rotation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1341,14 +1342,14 @@ module Google # Finally, an entry is added to the project's global metadata indicating # which CIDR range is being used by the cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [Google::Apis::ContainerV1beta1::CreateClusterRequest] create_cluster_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1388,17 +1389,17 @@ module Google # (e.g. load balancer resources) will not be deleted if they weren't present # at the initial create time. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to delete. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to delete. + # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, cluster) of the cluster to delete. # Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1434,17 +1435,17 @@ module Google # Gets the details of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to retrieve. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to retrieve. + # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, cluster) of the cluster to retrieve. # Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1480,17 +1481,17 @@ module Google # Enables or disables the ABAC authorization mechanism on a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetLegacyAbacRequest] set_legacy_abac_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1526,14 +1527,14 @@ module Google # Lists all clusters owned by a project in either the specified zone or all # zones. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides, or "-" for all zones. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] parent # The parent (project and location) where the clusters will be listed. # Specified in the format 'projects/*/locations/*'. @@ -1569,17 +1570,17 @@ module Google # Sets the locations of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetLocationsRequest] set_locations_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1614,16 +1615,17 @@ module Google # Sets the logging service of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetLoggingServiceRequest] set_logging_service_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1658,16 +1660,17 @@ module Google # Updates the master of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::UpdateMasterRequest] update_master_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1702,17 +1705,17 @@ module Google # Sets the monitoring service of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetMonitoringServiceRequest] set_monitoring_service_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1747,17 +1750,17 @@ module Google # Sets labels on a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetLabelsRequest] set_labels_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1837,17 +1840,17 @@ module Google # This can be either via password generation or explicitly set. # Modify basic_auth.csv and reset the K8S API server. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetMasterAuthRequest] set_master_auth_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1882,17 +1885,17 @@ module Google # Enables/Disables Network Policy for a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest] set_network_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1927,17 +1930,17 @@ module Google # Start master IP rotation. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::StartIpRotationRequest] start_ip_rotation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1972,17 +1975,17 @@ module Google # Updates the settings of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::UpdateClusterRequest] update_cluster_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2017,20 +2020,20 @@ module Google # Sets the autoscaling settings of a specific node pool. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2066,17 +2069,17 @@ module Google # Creates a node pool for a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use parent instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the parent field. # @param [Google::Apis::ContainerV1beta1::CreateNodePoolRequest] create_node_pool_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2111,20 +2114,20 @@ module Google # Deletes a node pool from a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to delete. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to delete. + # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, cluster, node pool id) of the node pool to delete. # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. @@ -2161,20 +2164,20 @@ module Google # Retrieves the node pool requested. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool. + # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, cluster, node pool id) of the node pool to get. # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. @@ -2211,17 +2214,17 @@ module Google # Lists the node pools for a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] cluster_id - # The name of the cluster. - # This field is deprecated, use parent instead. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the parent field. # @param [String] parent # The parent (project, location, cluster id) where the node pools will be listed. # Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2258,20 +2261,20 @@ module Google # Roll back the previously Aborted or Failed NodePool upgrade. # This will be an no-op if the last upgrade successfully completed. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to rollback. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to rollback. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to rollback. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to rollback. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2307,20 +2310,20 @@ module Google # Sets the NodeManagement options for a node pool. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to update. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest] set_node_pool_management_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2356,19 +2359,20 @@ module Google # Sets the size of a specific node pool. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to update. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to update. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::SetNodePoolSizeRequest] set_node_pool_size_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2404,20 +2408,20 @@ module Google # Updates the version and/or image type of a specific node pool. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to upgrade. - # This field is deprecated, use name instead. + # Deprecated. The name of the node pool to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::UpdateNodePoolRequest] update_node_pool_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2453,16 +2457,16 @@ module Google # Cancels the specified operation. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the operation resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] operation_id - # The server-assigned `name` of the operation. - # This field is deprecated, use name instead. + # Deprecated. The server-assigned `name` of the operation. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1beta1::CancelOperationRequest] cancel_operation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2497,17 +2501,17 @@ module Google # Gets the specified operation. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # This field is deprecated, use name instead. + # This field has been deprecated and replaced by the name field. # @param [String] operation_id - # The server-assigned `name` of the operation. - # This field is deprecated, use name instead. + # Deprecated. The server-assigned `name` of the operation. + # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, operation id) of the operation to get. # Specified in the format 'projects/*/locations/*/operations/*'. @@ -2543,13 +2547,14 @@ module Google # Lists all operations in a project in a specific zone or all zones. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine [zone](/compute/docs/zones#available) + # Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones# + # available) # to return operations for, or `-` for all zones. - # This field is deprecated, use parent instead. + # This field has been deprecated and replaced by the parent field. # @param [String] parent # The parent (project and location) where the operations will be listed. # Specified in the format 'projects/*/locations/*'. diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index e249e35e3..8327d2f5f 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20180227' + REVISION = '20180305' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 09d454e8e..9987c0e80 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -1583,7 +1583,7 @@ module Google # @return [Google::Apis::ContentV2::Datafeed] attr_accessor :datafeed - # The ID of the data feed to get or delete. + # The ID of the data feed to get, delete or fetch. # Corresponds to the JSON property `datafeedId` # @return [Fixnum] attr_accessor :datafeed_id diff --git a/generated/google/apis/dlp_v2beta2.rb b/generated/google/apis/dlp_v2beta2.rb index cf93aaa0d..9da4a302a 100644 --- a/generated/google/apis/dlp_v2beta2.rb +++ b/generated/google/apis/dlp_v2beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2beta2 VERSION = 'V2beta2' - REVISION = '20180222' + REVISION = '20180306' # 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/dlp_v2beta2/classes.rb b/generated/google/apis/dlp_v2beta2/classes.rb index 46c8cde5b..55863e508 100644 --- a/generated/google/apis/dlp_v2beta2/classes.rb +++ b/generated/google/apis/dlp_v2beta2/classes.rb @@ -1949,6 +1949,11 @@ module Google # @return [Fixnum] attr_accessor :bucket_size + # Total number of distinct values in this bucket. + # Corresponds to the JSON property `bucketValueCount` + # @return [Fixnum] + attr_accessor :bucket_value_count + # Sample of value frequencies in this bucket. The total number of # values returned per bucket is capped at 20. # Corresponds to the JSON property `bucketValues` @@ -1972,6 +1977,7 @@ module Google # Update properties of this object def update!(**args) @bucket_size = args[:bucket_size] if args.key?(:bucket_size) + @bucket_value_count = args[:bucket_value_count] if args.key?(:bucket_value_count) @bucket_values = args[:bucket_values] if args.key?(:bucket_values) @value_frequency_lower_bound = args[:value_frequency_lower_bound] if args.key?(:value_frequency_lower_bound) @value_frequency_upper_bound = args[:value_frequency_upper_bound] if args.key?(:value_frequency_upper_bound) @@ -4040,6 +4046,11 @@ module Google # @return [Fixnum] attr_accessor :bucket_size + # Total number of distinct equivalence classes in this bucket. + # Corresponds to the JSON property `bucketValueCount` + # @return [Fixnum] + attr_accessor :bucket_value_count + # Sample of equivalence classes in this bucket. The total number of # classes returned per bucket is capped at 20. # Corresponds to the JSON property `bucketValues` @@ -4063,6 +4074,7 @@ module Google # Update properties of this object def update!(**args) @bucket_size = args[:bucket_size] if args.key?(:bucket_size) + @bucket_value_count = args[:bucket_value_count] if args.key?(:bucket_value_count) @bucket_values = args[:bucket_values] if args.key?(:bucket_values) @equivalence_class_size_lower_bound = args[:equivalence_class_size_lower_bound] if args.key?(:equivalence_class_size_lower_bound) @equivalence_class_size_upper_bound = args[:equivalence_class_size_upper_bound] if args.key?(:equivalence_class_size_upper_bound) @@ -4145,6 +4157,11 @@ module Google # @return [Fixnum] attr_accessor :bucket_size + # Total number of distinct quasi-identifier tuple values in this bucket. + # Corresponds to the JSON property `bucketValueCount` + # @return [Fixnum] + attr_accessor :bucket_value_count + # Sample of quasi-identifier tuple values in this bucket. The total # number of classes returned per bucket is capped at 20. # Corresponds to the JSON property `bucketValues` @@ -4168,6 +4185,7 @@ module Google # Update properties of this object def update!(**args) @bucket_size = args[:bucket_size] if args.key?(:bucket_size) + @bucket_value_count = args[:bucket_value_count] if args.key?(:bucket_value_count) @bucket_values = args[:bucket_values] if args.key?(:bucket_values) @max_anonymity = args[:max_anonymity] if args.key?(:max_anonymity) @min_anonymity = args[:min_anonymity] if args.key?(:min_anonymity) @@ -4387,6 +4405,11 @@ module Google # @return [Fixnum] attr_accessor :bucket_size + # Total number of distinct equivalence classes in this bucket. + # Corresponds to the JSON property `bucketValueCount` + # @return [Fixnum] + attr_accessor :bucket_value_count + # Sample of equivalence classes in this bucket. The total number of # classes returned per bucket is capped at 20. # Corresponds to the JSON property `bucketValues` @@ -4412,6 +4435,7 @@ module Google # Update properties of this object def update!(**args) @bucket_size = args[:bucket_size] if args.key?(:bucket_size) + @bucket_value_count = args[:bucket_value_count] if args.key?(:bucket_value_count) @bucket_values = args[:bucket_values] if args.key?(:bucket_values) @sensitive_value_frequency_lower_bound = args[:sensitive_value_frequency_lower_bound] if args.key?(:sensitive_value_frequency_lower_bound) @sensitive_value_frequency_upper_bound = args[:sensitive_value_frequency_upper_bound] if args.key?(:sensitive_value_frequency_upper_bound) diff --git a/generated/google/apis/dlp_v2beta2/representations.rb b/generated/google/apis/dlp_v2beta2/representations.rb index 0d71a0af2..228bef1aa 100644 --- a/generated/google/apis/dlp_v2beta2/representations.rb +++ b/generated/google/apis/dlp_v2beta2/representations.rb @@ -1769,6 +1769,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :bucket_size, :numeric_string => true, as: 'bucketSize' + property :bucket_value_count, :numeric_string => true, as: 'bucketValueCount' collection :bucket_values, as: 'bucketValues', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ValueFrequency, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ValueFrequency::Representation property :value_frequency_lower_bound, :numeric_string => true, as: 'valueFrequencyLowerBound' @@ -2370,6 +2371,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :bucket_size, :numeric_string => true, as: 'bucketSize' + property :bucket_value_count, :numeric_string => true, as: 'bucketValueCount' collection :bucket_values, as: 'bucketValues', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass::Representation property :equivalence_class_size_lower_bound, :numeric_string => true, as: 'equivalenceClassSizeLowerBound' @@ -2400,6 +2402,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :bucket_size, :numeric_string => true, as: 'bucketSize' + property :bucket_value_count, :numeric_string => true, as: 'bucketValueCount' collection :bucket_values, as: 'bucketValues', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues::Representation property :max_anonymity, :numeric_string => true, as: 'maxAnonymity' @@ -2475,6 +2478,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :bucket_size, :numeric_string => true, as: 'bucketSize' + property :bucket_value_count, :numeric_string => true, as: 'bucketValueCount' collection :bucket_values, as: 'bucketValues', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2LDiversityEquivalenceClass, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2LDiversityEquivalenceClass::Representation property :sensitive_value_frequency_lower_bound, :numeric_string => true, as: 'sensitiveValueFrequencyLowerBound' diff --git a/generated/google/apis/genomics_v2alpha1.rb b/generated/google/apis/genomics_v2alpha1.rb index 0122f12d9..c6f5f6bd6 100644 --- a/generated/google/apis/genomics_v2alpha1.rb +++ b/generated/google/apis/genomics_v2alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV2alpha1 VERSION = 'V2alpha1' - REVISION = '20180303' + REVISION = '20180307' # 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/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index d91a2cb45..2b76a619d 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20180221' + REVISION = '20180303' # 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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index 780c0294b..4498da1aa 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -22,6 +22,174 @@ module Google module Apis module MonitoringV3 + # Describes how to combine multiple time series to provide different views of + # the data. Aggregation consists of an alignment step on individual time series ( + # alignment_period and per_series_aligner) followed by an optional reduction + # step of the data across the aligned time series (cross_series_reducer and + # group_by_fields). For more details, see Aggregation. + class Aggregation + include Google::Apis::Core::Hashable + + # 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. + # Corresponds to the JSON property `alignmentPeriod` + # @return [String] + attr_accessor :alignment_period + + # 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. + # Corresponds to the JSON property `crossSeriesReducer` + # @return [String] + attr_accessor :cross_series_reducer + + # The set of fields to preserve when crossSeriesReducer is specified. The + # groupByFields determine how the time series are partitioned into subsets prior + # to applying the aggregation function. Each subset contains time series that + # have the same value for each of the grouping fields. Each individual time + # series is a member of exactly one subset. The crossSeriesReducer is applied to + # each subset of time series. It is not possible to reduce across different + # resource types, so this field implicitly contains resource.type. Fields not + # specified in groupByFields are aggregated away. If groupByFields is not + # specified and all the time series have the same resource type, then the time + # series are aggregated into a single output time series. If crossSeriesReducer + # is not defined, this field is ignored. + # Corresponds to the JSON property `groupByFields` + # @return [Array] + attr_accessor :group_by_fields + + # 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. + # Corresponds to the JSON property `perSeriesAligner` + # @return [String] + attr_accessor :per_series_aligner + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alignment_period = args[:alignment_period] if args.key?(:alignment_period) + @cross_series_reducer = args[:cross_series_reducer] if args.key?(:cross_series_reducer) + @group_by_fields = args[:group_by_fields] if args.key?(:group_by_fields) + @per_series_aligner = args[:per_series_aligner] if args.key?(:per_series_aligner) + end + end + + # A description of the conditions under which some aspect of your system is + # considered to be "unhealthy" and the ways to notify people or services about + # this state. For an overview of alert policies, see Introduction to Alerting. + class AlertPolicy + include Google::Apis::Core::Hashable + + # How to combine the results of multiple conditions to determine if an incident + # should be opened. + # Corresponds to the JSON property `combiner` + # @return [String] + attr_accessor :combiner + + # A list of conditions for the policy. The conditions are combined by AND or OR + # according to the combiner field. If the combined conditions evaluate to true, + # then an incident is created. A policy can have from one to six conditions. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # Describes a change made to a configuration. + # Corresponds to the JSON property `creationRecord` + # @return [Google::Apis::MonitoringV3::MutationRecord] + attr_accessor :creation_record + + # A short name or phrase used to identify the policy in dashboards, + # notifications, and incidents. To avoid confusion, don't use the same display + # name for multiple policies in the same project. The name is limited to 512 + # Unicode characters. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # A content string and a MIME type that describes the content string's format. + # Corresponds to the JSON property `documentation` + # @return [Google::Apis::MonitoringV3::Documentation] + attr_accessor :documentation + + # Whether or not the policy is enabled. On write, the default interpretation if + # unset is that the policy is enabled. On read, clients should not make any + # assumption about the state if it has not been populated. The field should + # always be populated on List and Get operations, unless a field projection has + # been specified that strips it out. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Describes a change made to a configuration. + # Corresponds to the JSON property `mutationRecord` + # @return [Google::Apis::MonitoringV3::MutationRecord] + attr_accessor :mutation_record + + # Required if the policy exists. The resource name for this policy. The syntax + # is: + # projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + # [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is + # created. When calling the alertPolicies.create method, do not include the name + # field in the alerting policy passed as part of the request. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Identifies the notification channels to which notifications should be sent + # when incidents are opened or closed or when new violations occur on an already + # opened incident. Each element of this array corresponds to the name field in + # each of the NotificationChannel objects that are returned from the + # ListNotificationChannels method. The syntax of the entries in this field is: + # projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] + # Corresponds to the JSON property `notificationChannels` + # @return [Array] + attr_accessor :notification_channels + + # User-supplied key/value data to be used for organizing and identifying the + # AlertPolicy objects.The field can contain up to 64 entries. Each key and value + # is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels + # and values can contain only lowercase letters, numerals, underscores, and + # dashes. Keys must begin with a letter. + # Corresponds to the JSON property `userLabels` + # @return [Hash] + attr_accessor :user_labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @combiner = args[:combiner] if args.key?(:combiner) + @conditions = args[:conditions] if args.key?(:conditions) + @creation_record = args[:creation_record] if args.key?(:creation_record) + @display_name = args[:display_name] if args.key?(:display_name) + @documentation = args[:documentation] if args.key?(:documentation) + @enabled = args[:enabled] if args.key?(:enabled) + @mutation_record = args[:mutation_record] if args.key?(:mutation_record) + @name = args[:name] if args.key?(:name) + @notification_channels = args[:notification_channels] if args.key?(:notification_channels) + @user_labels = args[:user_labels] if args.key?(:user_labels) + end + end + # A type of authentication to perform against the specified resource or URL that # uses username and password. Currently, only Basic authentication is supported # in Uptime Monitoring. @@ -327,6 +495,63 @@ module Google end end + # A condition is a true/false test that determines when an alerting policy + # should open an incident. If a condition evaluates to true, it signifies that + # something is wrong. + class Condition + include Google::Apis::Core::Hashable + + # A condition type that checks that monitored resources are reporting data. The + # configuration defines a metric and a set of monitored resources. The predicate + # is considered in violation when a time series for the specified metric of a + # monitored resource does not include any data in the specified duration. + # Corresponds to the JSON property `conditionAbsent` + # @return [Google::Apis::MonitoringV3::MetricAbsence] + attr_accessor :condition_absent + + # A condition type that compares a collection of time series against a threshold. + # Corresponds to the JSON property `conditionThreshold` + # @return [Google::Apis::MonitoringV3::MetricThreshold] + attr_accessor :condition_threshold + + # A short name or phrase used to identify the condition in dashboards, + # notifications, and incidents. To avoid confusion, don't use the same display + # name for multiple conditions in the same policy. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Required if the condition exists. The unique resource name for this condition. + # Its syntax is: + # projects/[PROJECT_ID]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] + # [CONDITION_ID] is assigned by Stackdriver Monitoring when the condition is + # created as part of a new or updated alerting policy.When calling the + # alertPolicies.create method, do not include the name field in the conditions + # of the requested alerting policy. Stackdriver Monitoring creates the condition + # identifiers and includes them in the new policy.When calling the alertPolicies. + # update method to update a policy, including a condition name causes the + # existing condition to be updated. Conditions without names are added to the + # updated policy. Existing conditions are deleted if they are not updated.Best + # practice is to preserve [CONDITION_ID] if you make only small changes, such as + # those to condition thresholds, durations, or trigger values. Otherwise, treat + # the change as a new condition and let the existing condition be deleted. + # 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) + @condition_absent = args[:condition_absent] if args.key?(:condition_absent) + @condition_threshold = args[:condition_threshold] if args.key?(:condition_threshold) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + # Used to perform string matching. Currently, this matches on the exact content. # In the future, it can be expanded to allow for regular expressions and more # complex matching. @@ -522,6 +747,35 @@ module Google end end + # A content string and a MIME type that describes the content string's format. + class Documentation + include Google::Apis::Core::Hashable + + # The text of the documentation, interpreted according to mime_type. The content + # may not exceed 8,192 Unicode characters and may not exceed more than 10,240 + # bytes when encoded in UTF-8 format, whichever is smaller. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # The format of the content field. Presently, only the value "text/markdown" is + # supported. See Markdown (https://en.wikipedia.org/wiki/Markdown) for more + # information. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @mime_type = args[:mime_type] if args.key?(:mime_type) + 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: @@ -677,6 +931,63 @@ module Google end end + # The GetNotificationChannelVerificationCode request. + class GetNotificationChannelVerificationCodeRequest + include Google::Apis::Core::Hashable + + # The desired expiration time. If specified, the API will guarantee that the + # returned code will not be valid after the specified timestamp; however, the + # API cannot guarantee that the returned code will be valid for at least as long + # as the requested time (the API puts an upper bound on the amount of time for + # which a code may be valid). If omitted, a default expiration will be used, + # which may be less than the max permissible expiration (so specifying an + # expiration may extend the code's lifetime over omitting an expiration, even + # though the API does impose an upper limit on the maximum expiration that is + # permitted). + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expire_time = args[:expire_time] if args.key?(:expire_time) + end + end + + # The GetNotificationChannelVerificationCode request. + class GetNotificationChannelVerificationCodeResponse + include Google::Apis::Core::Hashable + + # The verification code, which may be used to verify other channels that have an + # equivalent identity (i.e. other channels of the same type with the same + # fingerprint such as other email channels with the same email address or other + # sms channels with the same number). + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # The expiration time associated with the code that was returned. If an + # expiration was provided in the request, this is the minimum of the requested + # expiration in the request and the max permitted expiration. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @expire_time = args[:expire_time] if args.key?(:expire_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 @@ -924,6 +1235,33 @@ module Google end end + # The protocol for the ListAlertPolicies response. + class ListAlertPoliciesResponse + include Google::Apis::Core::Hashable + + # The returned alert policies. + # Corresponds to the JSON property `alertPolicies` + # @return [Array] + attr_accessor :alert_policies + + # If there might be more results than were 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) + @alert_policies = args[:alert_policies] if args.key?(:alert_policies) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The ListGroupMembers response. class ListGroupMembersResponse include Google::Apis::Core::Hashable @@ -1040,6 +1378,61 @@ module Google end end + # The ListNotificationChannelDescriptors response. + class ListNotificationChannelDescriptorsResponse + include Google::Apis::Core::Hashable + + # The monitored resource descriptors supported for the specified project, + # optionally filtered. + # Corresponds to the JSON property `channelDescriptors` + # @return [Array] + attr_accessor :channel_descriptors + + # If not empty, indicates that there may be more results that match the request. + # Use the value in the page_token field in a subsequent request to fetch the + # next set of results. If empty, all results have been returned. + # 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) + @channel_descriptors = args[:channel_descriptors] if args.key?(:channel_descriptors) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The ListNotificationChannels response. + class ListNotificationChannelsResponse + include Google::Apis::Core::Hashable + + # If not empty, indicates that there may be more results that match the request. + # Use the value in the page_token field in a subsequent request to fetch the + # next set of results. If empty, all results have been returned. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The notification channels defined for the specified project. + # Corresponds to the JSON property `notificationChannels` + # @return [Array] + attr_accessor :notification_channels + + 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) + @notification_channels = args[:notification_channels] if args.key?(:notification_channels) + end + end + # The ListTimeSeries response. class ListTimeSeriesResponse include Google::Apis::Core::Hashable @@ -1161,6 +1554,61 @@ module Google end end + # A condition type that checks that monitored resources are reporting data. The + # configuration defines a metric and a set of monitored resources. The predicate + # is considered in violation when a time series for the specified metric of a + # monitored resource does not include any data in the specified duration. + class MetricAbsence + include Google::Apis::Core::Hashable + + # Specifies the alignment of data points in individual time series as well as + # how to combine the retrieved time series together (such as when aggregating + # multiple streams on each resource to a single stream for each resource or when + # aggregating streams across all members of a group of resrouces). Multiple + # aggregations are applied in the order specified.This field is similar to the + # one in the MetricService.ListTimeSeries request. It is advisable to use the + # ListTimeSeries method when debugging this field. + # Corresponds to the JSON property `aggregations` + # @return [Array] + attr_accessor :aggregations + + # The amount of time that a time series must fail to report new data to be + # considered failing. Currently, only values that are a multiple of a minute--e. + # g. 60, 120, or 300 seconds--are supported. If an invalid value is given, an + # error will be returned. The Duration.nanos field is ignored. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # A filter that identifies which time series should be compared with the + # threshold.The filter is similar to the one that is specified in the + # MetricService.ListTimeSeries request (that call is useful to verify the time + # series that will be retrieved / processed) and must specify the metric type + # and optionally may contain restrictions on resource type, resource labels, and + # metric labels. This field may not exceed 2048 Unicode characters in length. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Specifies how many time series must fail a predicate to trigger a condition. + # If not specified, then a `count: 1` trigger is used. + # Corresponds to the JSON property `trigger` + # @return [Google::Apis::MonitoringV3::Trigger] + attr_accessor :trigger + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aggregations = args[:aggregations] if args.key?(:aggregations) + @duration = args[:duration] if args.key?(:duration) + @filter = args[:filter] if args.key?(:filter) + @trigger = args[:trigger] if args.key?(:trigger) + end + end + # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's # existing data unusable. @@ -1241,6 +1689,106 @@ module Google end end + # A condition type that compares a collection of time series against a threshold. + class MetricThreshold + include Google::Apis::Core::Hashable + + # Specifies the alignment of data points in individual time series as well as + # how to combine the retrieved time series together (such as when aggregating + # multiple streams on each resource to a single stream for each resource or when + # aggregating streams across all members of a group of resrouces). Multiple + # aggregations are applied in the order specified.This field is similar to the + # one in the MetricService.ListTimeSeries request. It is advisable to use the + # ListTimeSeries method when debugging this field. + # Corresponds to the JSON property `aggregations` + # @return [Array] + attr_accessor :aggregations + + # The comparison to apply between the time series (indicated by filter and + # aggregation) and the threshold (indicated by threshold_value). The comparison + # is applied on each time series, with the time series on the left-hand side and + # the threshold on the right-hand side.Only COMPARISON_LT and COMPARISON_GT are + # supported currently. + # Corresponds to the JSON property `comparison` + # @return [String] + attr_accessor :comparison + + # Specifies the alignment of data points in individual time series selected by + # denominatorFilter as well as how to combine the retrieved time series together + # (such as when aggregating multiple streams on each resource to a single stream + # for each resource or when aggregating streams across all members of a group of + # resources).When computing ratios, the aggregations and + # denominator_aggregations fields must use the same alignment period and produce + # time series that have the same periodicity and labels.This field is similar to + # the one in the MetricService.ListTimeSeries request. It is advisable to use + # the ListTimeSeries method when debugging this field. + # Corresponds to the JSON property `denominatorAggregations` + # @return [Array] + attr_accessor :denominator_aggregations + + # A filter that identifies a time series that should be used as the denominator + # of a ratio that will be compared with the threshold. If a denominator_filter + # is specified, the time series specified by the filter field will be used as + # the numerator.The filter is similar to the one that is specified in the + # MetricService.ListTimeSeries request (that call is useful to verify the time + # series that will be retrieved / processed) and must specify the metric type + # and optionally may contain restrictions on resource type, resource labels, and + # metric labels. This field may not exceed 2048 Unicode characters in length. + # Corresponds to the JSON property `denominatorFilter` + # @return [String] + attr_accessor :denominator_filter + + # The amount of time that a time series must violate the threshold to be + # considered failing. Currently, only values that are a multiple of a minute--e. + # g. 60, 120, or 300 seconds--are supported. If an invalid value is given, an + # error will be returned. The Duration.nanos field is ignored. When choosing a + # duration, it is useful to keep in mind the frequency of the underlying time + # series data (which may also be affected by any alignments specified in the + # aggregation field); a good duration is long enough so that a single outlier + # does not generate spurious alerts, but short enough that unhealthy states are + # detected and alerted on quickly. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # A filter that identifies which time series should be compared with the + # threshold.The filter is similar to the one that is specified in the + # MetricService.ListTimeSeries request (that call is useful to verify the time + # series that will be retrieved / processed) and must specify the metric type + # and optionally may contain restrictions on resource type, resource labels, and + # metric labels. This field may not exceed 2048 Unicode characters in length. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # A value against which to compare the time series. + # Corresponds to the JSON property `thresholdValue` + # @return [Float] + attr_accessor :threshold_value + + # Specifies how many time series must fail a predicate to trigger a condition. + # If not specified, then a `count: 1` trigger is used. + # Corresponds to the JSON property `trigger` + # @return [Google::Apis::MonitoringV3::Trigger] + attr_accessor :trigger + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aggregations = args[:aggregations] if args.key?(:aggregations) + @comparison = args[:comparison] if args.key?(:comparison) + @denominator_aggregations = args[:denominator_aggregations] if args.key?(:denominator_aggregations) + @denominator_filter = args[:denominator_filter] if args.key?(:denominator_filter) + @duration = args[:duration] if args.key?(:duration) + @filter = args[:filter] if args.key?(:filter) + @threshold_value = args[:threshold_value] if args.key?(:threshold_value) + @trigger = args[:trigger] if args.key?(:trigger) + 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 @@ -1380,6 +1928,188 @@ module Google end end + # Describes a change made to a configuration. + class MutationRecord + include Google::Apis::Core::Hashable + + # When the change occurred. + # Corresponds to the JSON property `mutateTime` + # @return [String] + attr_accessor :mutate_time + + # The email address of the user making the change. + # Corresponds to the JSON property `mutatedBy` + # @return [String] + attr_accessor :mutated_by + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @mutate_time = args[:mutate_time] if args.key?(:mutate_time) + @mutated_by = args[:mutated_by] if args.key?(:mutated_by) + end + end + + # A NotificationChannel is a medium through which an alert is delivered when a + # policy violation is detected. Examples of channels include email, SMS, and + # third-party messaging applications. Fields containing sensitive information + # like authentication tokens or contact info are only partially populated on + # retrieval. + class NotificationChannel + include Google::Apis::Core::Hashable + + # An optional human-readable description of this notification channel. This + # description may provide additional details, beyond the display name, for the + # channel. This may not exceeed 1024 Unicode characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # An optional human-readable name for this notification channel. It is + # recommended that you specify a non-empty and unique name in order to make it + # easier to identify the channels in your project, though this is not enforced. + # The display name is limited to 512 Unicode characters. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Whether notifications are forwarded to the described channel. This makes it + # possible to disable delivery of notifications to a particular channel without + # removing the channel from all alerting policies that reference the channel. + # This is a more convenient approach when the change is temporary and you want + # to receive notifications from the same set of alerting policies on the channel + # at some point in the future. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Configuration fields that define the channel and its behavior. The permissible + # and required labels are specified in the NotificationChannelDescriptor.labels + # of the NotificationChannelDescriptor corresponding to the type field. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The full REST resource name for this channel. The syntax is: + # projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] + # The [CHANNEL_ID] is automatically assigned by the server on creation. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The type of the notification channel. This field matches the value of the + # NotificationChannelDescriptor.type field. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # User-supplied key/value data that does not need to conform to the + # corresponding NotificationChannelDescriptor's schema, unlike the labels field. + # This field is intended to be used for organizing and identifying the + # NotificationChannel objects.The field can contain up to 64 entries. Each key + # and value is limited to 63 Unicode characters or 128 bytes, whichever is + # smaller. Labels and values can contain only lowercase letters, numerals, + # underscores, and dashes. Keys must begin with a letter. + # Corresponds to the JSON property `userLabels` + # @return [Hash] + attr_accessor :user_labels + + # Indicates whether this channel has been verified or not. On a + # ListNotificationChannels or GetNotificationChannel operation, this field is + # expected to be populated.If the value is UNVERIFIED, then it indicates that + # the channel is non-functioning (it both requires verification and lacks + # verification); otherwise, it is assumed that the channel works.If the channel + # is neither VERIFIED nor UNVERIFIED, it implies that the channel is of a type + # that does not require verification or that this specific channel has been + # exempted from verification because it was created prior to verification being + # required for channels of this type.This field cannot be modified using a + # standard UpdateNotificationChannel operation. To change the value of this + # field, you must call VerifyNotificationChannel. + # Corresponds to the JSON property `verificationStatus` + # @return [String] + attr_accessor :verification_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @enabled = args[:enabled] if args.key?(:enabled) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @user_labels = args[:user_labels] if args.key?(:user_labels) + @verification_status = args[:verification_status] if args.key?(:verification_status) + end + end + + # A description of a notification channel. The descriptor includes the + # properties of the channel and the set of labels or fields that must be + # specified to configure channels of a given type. + class NotificationChannelDescriptor + include Google::Apis::Core::Hashable + + # A human-readable description of the notification channel type. The description + # may include a description of the properties of the channel and pointers to + # external documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A human-readable name for the notification channel type. This form of the name + # is suitable for a user interface. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The set of labels that must be defined to identify a particular channel of the + # corresponding type. Each label includes a description for how that field + # should be populated. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # The full REST resource name for this descriptor. The syntax is: + # projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE] + # In the above, [TYPE] is the value of the type field. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The tiers that support this notification channel; the project service tier + # must be one of the supported_tiers. + # Corresponds to the JSON property `supportedTiers` + # @return [Array] + attr_accessor :supported_tiers + + # The type of notification channel, such as "email", "sms", etc. Notification + # channel types are globally unique. + # 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) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @supported_tiers = args[:supported_tiers] if args.key?(:supported_tiers) + @type = args[:type] if args.key?(:type) + end + end + # A protocol buffer option, which can be attached to a message, field, # enumeration, etc. class Option @@ -1491,6 +2221,19 @@ module Google end end + # The SendNotificationChannelVerificationCode request. + class SendNotificationChannelVerificationCodeRequest + 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 @@ -1711,6 +2454,34 @@ module Google end end + # Specifies how many time series must fail a predicate to trigger a condition. + # If not specified, then a `count: 1` trigger is used. + class Trigger + include Google::Apis::Core::Hashable + + # The absolute number of time series that must fail the predicate for the + # condition to be triggered. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # The percentage of time series that must fail the predicate for the condition + # to be triggered. + # Corresponds to the JSON property `percent` + # @return [Float] + attr_accessor :percent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @count = args[:count] if args.key?(:count) + @percent = args[:percent] if args.key?(:percent) + end + end + # A protocol buffer message type. class Type include Google::Apis::Core::Hashable @@ -1882,7 +2653,7 @@ module Google # How often, in seconds, the uptime check is performed. Currently, the only # supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and - # 900s (15 minutes). Required. + # 900s (15 minutes). Optional, defaults to 300s. # Corresponds to the JSON property `period` # @return [String] attr_accessor :period @@ -1970,6 +2741,30 @@ module Google @region = args[:region] if args.key?(:region) end end + + # The VerifyNotificationChannel request. + class VerifyNotificationChannelRequest + include Google::Apis::Core::Hashable + + # The verification code that was delivered to the channel as a result of + # invoking the SendNotificationChannelVerificationCode API method or that was + # retrieved from a verified channel via GetNotificationChannelVerificationCode. + # For example, one might have "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in + # general, one is only guaranteed that the code is valid UTF-8; one should not + # make any assumptions regarding the structure or format of the code). + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + end + end end end end diff --git a/generated/google/apis/monitoring_v3/representations.rb b/generated/google/apis/monitoring_v3/representations.rb index 8a95e826c..d23a77788 100644 --- a/generated/google/apis/monitoring_v3/representations.rb +++ b/generated/google/apis/monitoring_v3/representations.rb @@ -22,6 +22,18 @@ module Google module Apis module MonitoringV3 + class Aggregation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AlertPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BasicAuthentication class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,6 +70,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Condition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ContentMatcher class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,6 +106,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Documentation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +136,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetNotificationChannelVerificationCodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetNotificationChannelVerificationCodeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Group class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,6 +178,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListAlertPoliciesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListGroupMembersResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -166,6 +208,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListNotificationChannelDescriptorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListNotificationChannelsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListTimeSeriesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -190,12 +244,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MetricAbsence + 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 MetricThreshold + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MonitoredResource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -214,6 +280,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MutationRecord + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NotificationChannel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NotificationChannelDescriptor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Option class Representation < Google::Apis::Core::JsonRepresentation; end @@ -238,6 +322,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SendNotificationChannelVerificationCodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SourceContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -268,6 +358,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Trigger + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Type class Representation < Google::Apis::Core::JsonRepresentation; end @@ -292,6 +388,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class VerifyNotificationChannelRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Aggregation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alignment_period, as: 'alignmentPeriod' + property :cross_series_reducer, as: 'crossSeriesReducer' + collection :group_by_fields, as: 'groupByFields' + property :per_series_aligner, as: 'perSeriesAligner' + end + end + + class AlertPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :combiner, as: 'combiner' + collection :conditions, as: 'conditions', class: Google::Apis::MonitoringV3::Condition, decorator: Google::Apis::MonitoringV3::Condition::Representation + + property :creation_record, as: 'creationRecord', class: Google::Apis::MonitoringV3::MutationRecord, decorator: Google::Apis::MonitoringV3::MutationRecord::Representation + + property :display_name, as: 'displayName' + property :documentation, as: 'documentation', class: Google::Apis::MonitoringV3::Documentation, decorator: Google::Apis::MonitoringV3::Documentation::Representation + + property :enabled, as: 'enabled' + property :mutation_record, as: 'mutationRecord', class: Google::Apis::MonitoringV3::MutationRecord, decorator: Google::Apis::MonitoringV3::MutationRecord::Representation + + property :name, as: 'name' + collection :notification_channels, as: 'notificationChannels' + hash :user_labels, as: 'userLabels' + end + end + class BasicAuthentication # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -358,6 +490,18 @@ module Google end end + class Condition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition_absent, as: 'conditionAbsent', class: Google::Apis::MonitoringV3::MetricAbsence, decorator: Google::Apis::MonitoringV3::MetricAbsence::Representation + + property :condition_threshold, as: 'conditionThreshold', class: Google::Apis::MonitoringV3::MetricThreshold, decorator: Google::Apis::MonitoringV3::MetricThreshold::Representation + + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + class ContentMatcher # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -406,6 +550,14 @@ module Google end end + class Documentation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :mime_type, as: 'mimeType' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -445,6 +597,21 @@ module Google end end + class GetNotificationChannelVerificationCodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :expire_time, as: 'expireTime' + end + end + + class GetNotificationChannelVerificationCodeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :expire_time, as: 'expireTime' + end + end + class Group # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -498,6 +665,15 @@ module Google end end + class ListAlertPoliciesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :alert_policies, as: 'alertPolicies', class: Google::Apis::MonitoringV3::AlertPolicy, decorator: Google::Apis::MonitoringV3::AlertPolicy::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListGroupMembersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -535,6 +711,24 @@ module Google end end + class ListNotificationChannelDescriptorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :channel_descriptors, as: 'channelDescriptors', class: Google::Apis::MonitoringV3::NotificationChannelDescriptor, decorator: Google::Apis::MonitoringV3::NotificationChannelDescriptor::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListNotificationChannelsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :notification_channels, as: 'notificationChannels', class: Google::Apis::MonitoringV3::NotificationChannel, decorator: Google::Apis::MonitoringV3::NotificationChannel::Representation + + end + end + class ListTimeSeriesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -571,6 +765,18 @@ module Google end end + class MetricAbsence + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :aggregations, as: 'aggregations', class: Google::Apis::MonitoringV3::Aggregation, decorator: Google::Apis::MonitoringV3::Aggregation::Representation + + property :duration, as: 'duration' + property :filter, as: 'filter' + property :trigger, as: 'trigger', class: Google::Apis::MonitoringV3::Trigger, decorator: Google::Apis::MonitoringV3::Trigger::Representation + + end + end + class MetricDescriptor # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -586,6 +792,23 @@ module Google end end + class MetricThreshold + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :aggregations, as: 'aggregations', class: Google::Apis::MonitoringV3::Aggregation, decorator: Google::Apis::MonitoringV3::Aggregation::Representation + + property :comparison, as: 'comparison' + collection :denominator_aggregations, as: 'denominatorAggregations', class: Google::Apis::MonitoringV3::Aggregation, decorator: Google::Apis::MonitoringV3::Aggregation::Representation + + property :denominator_filter, as: 'denominatorFilter' + property :duration, as: 'duration' + property :filter, as: 'filter' + property :threshold_value, as: 'thresholdValue' + property :trigger, as: 'trigger', class: Google::Apis::MonitoringV3::Trigger, decorator: Google::Apis::MonitoringV3::Trigger::Representation + + end + end + class MonitoredResource # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -614,6 +837,41 @@ module Google end end + class MutationRecord + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :mutate_time, as: 'mutateTime' + property :mutated_by, as: 'mutatedBy' + end + end + + class NotificationChannel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :enabled, as: 'enabled' + hash :labels, as: 'labels' + property :name, as: 'name' + property :type, as: 'type' + hash :user_labels, as: 'userLabels' + property :verification_status, as: 'verificationStatus' + end + end + + class NotificationChannelDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation + + property :name, as: 'name' + collection :supported_tiers, as: 'supportedTiers' + property :type, as: 'type' + end + end + class Option # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -648,6 +906,12 @@ module Google end end + class SendNotificationChannelVerificationCodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class SourceContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -695,6 +959,14 @@ module Google end end + class Trigger + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :count, as: 'count' + property :percent, as: 'percent' + end + end + class Type # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -754,6 +1026,13 @@ module Google property :region, as: 'region' end end + + class VerifyNotificationChannelRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + end + end end end end diff --git a/generated/google/apis/monitoring_v3/service.rb b/generated/google/apis/monitoring_v3/service.rb index 249fd2f2b..5e2647e13 100644 --- a/generated/google/apis/monitoring_v3/service.rb +++ b/generated/google/apis/monitoring_v3/service.rb @@ -49,6 +49,219 @@ module Google @batch_path = 'batch' end + # Creates a new alerting policy. + # @param [String] name + # The project in which to create the alerting policy. The format is projects/[ + # PROJECT_ID].Note that this field names the parent container in which the + # alerting policy will be written, not the name of the created policy. The + # alerting policy that is returned will have a name that contains a normalized + # representation of this name as a prefix but adds a suffix of the form / + # alertPolicies/[POLICY_ID], identifying the policy in the container. + # @param [Google::Apis::MonitoringV3::AlertPolicy] alert_policy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::AlertPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::AlertPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_alert_policy(name, alert_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/alertPolicies', options) + command.request_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation + command.request_object = alert_policy_object + command.response_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation + command.response_class = Google::Apis::MonitoringV3::AlertPolicy + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an alerting policy. + # @param [String] name + # The alerting policy to delete. The format is: + # projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + # For more information, see AlertPolicy. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_alert_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::Empty::Representation + command.response_class = Google::Apis::MonitoringV3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a single alerting policy. + # @param [String] name + # The alerting policy to retrieve. The format is + # projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::AlertPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::AlertPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_alert_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation + command.response_class = Google::Apis::MonitoringV3::AlertPolicy + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the existing alerting policies for the project. + # @param [String] name + # The project whose alert policies are to be listed. The format is + # projects/[PROJECT_ID] + # Note that this field names the parent container in which the alerting policies + # to be listed are stored. To retrieve a single alerting policy by name, use the + # GetAlertPolicy operation, instead. + # @param [String] filter + # If provided, this field specifies the criteria that must be met by alert + # policies to be included in the response.For more details, see sorting and + # filtering. + # @param [String] order_by + # A comma-separated list of fields by which to sort the result. Supports the + # same set of field references as the filter field. Entries can be prefixed with + # a minus sign to sort by the field in descending order.For more details, see + # sorting and filtering. + # @param [Fixnum] page_size + # The maximum number of results to return in a single response. + # @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 more results from the previous method call. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::ListAlertPoliciesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::ListAlertPoliciesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_alert_policies(name, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}/alertPolicies', options) + command.response_representation = Google::Apis::MonitoringV3::ListAlertPoliciesResponse::Representation + command.response_class = Google::Apis::MonitoringV3::ListAlertPoliciesResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates an alerting policy. You can either replace the entire policy with a + # new one or replace only certain fields in the current alerting policy by + # specifying the fields to be updated via updateMask. Returns the updated + # alerting policy. + # @param [String] name + # Required if the policy exists. The resource name for this policy. The syntax + # is: + # projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + # [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is + # created. When calling the alertPolicies.create method, do not include the name + # field in the alerting policy passed as part of the request. + # @param [Google::Apis::MonitoringV3::AlertPolicy] alert_policy_object + # @param [String] update_mask + # Optional. A list of alerting policy field names. If this field is not empty, + # each listed field in the existing alerting policy is set to the value of the + # corresponding field in the supplied policy (alert_policy), or to the field's + # default value if the field is not in the supplied alerting policy. Fields not + # listed retain their previous value.Examples of valid field masks include + # display_name, documentation, documentation.content, documentation.mime_type, + # user_labels, user_label.nameofkey, enabled, conditions, combiner, etc.If this + # field is empty, then the supplied alerting policy replaces the existing policy. + # It is the same as deleting the existing policy and adding the supplied policy, + # except for the following: + # The new policy will have the same [ALERT_POLICY_ID] as the former policy. This + # gives you continuity with the former policy in your notifications and + # incidents. + # Conditions in the new policy will keep their former [CONDITION_ID] if the + # supplied condition includes the name field with that [CONDITION_ID]. If the + # supplied condition omits the name field, then a new [CONDITION_ID] is created. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::AlertPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::AlertPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_alert_policy(name, alert_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation + command.request_object = alert_policy_object + command.response_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation + command.response_class = Google::Apis::MonitoringV3::AlertPolicy + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Stackdriver Monitoring Agent only: Creates a new time series. @@ -557,6 +770,405 @@ module Google execute_or_queue_command(command, &block) end + # Gets a single channel descriptor. The descriptor indicates which fields are + # expected / permitted for a notification channel of the given type. + # @param [String] name + # The channel type for which to execute the request. The format is projects/[ + # PROJECT_ID]/notificationChannelDescriptors/`channel_type`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::NotificationChannelDescriptor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::NotificationChannelDescriptor] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_notification_channel_descriptor(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::NotificationChannelDescriptor::Representation + command.response_class = Google::Apis::MonitoringV3::NotificationChannelDescriptor + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the descriptors for supported channel types. The use of descriptors + # makes it possible for new channel types to be dynamically added. + # @param [String] name + # The REST resource name of the parent from which to retrieve the notification + # channel descriptors. The expected syntax is: + # projects/[PROJECT_ID] + # Note that this names the parent container in which to look for the descriptors; + # to retrieve a single descriptor by name, use the + # GetNotificationChannelDescriptor operation, instead. + # @param [Fixnum] page_size + # The maximum number of results to return in a single response. If not set to a + # positive number, a reasonable value will be chosen by the service. + # @param [String] page_token + # If non-empty, page_token must contain a value returned as the next_page_token + # in a previous response to request the next set of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::ListNotificationChannelDescriptorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::ListNotificationChannelDescriptorsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_notification_channel_descriptors(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}/notificationChannelDescriptors', options) + command.response_representation = Google::Apis::MonitoringV3::ListNotificationChannelDescriptorsResponse::Representation + command.response_class = Google::Apis::MonitoringV3::ListNotificationChannelDescriptorsResponse + command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new notification channel, representing a single notification + # endpoint such as an email address, SMS number, or pagerduty service. + # @param [String] name + # The project on which to execute the request. The format is: + # projects/[PROJECT_ID] + # Note that this names the container into which the channel will be written. + # This does not name the newly created channel. The resulting channel's name + # will have a normalized version of this field as a prefix, but will add / + # notificationChannels/[CHANNEL_ID] to identify the channel. + # @param [Google::Apis::MonitoringV3::NotificationChannel] notification_channel_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::NotificationChannel] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::NotificationChannel] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_notification_channel(name, notification_channel_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/notificationChannels', options) + command.request_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation + command.request_object = notification_channel_object + command.response_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation + command.response_class = Google::Apis::MonitoringV3::NotificationChannel + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a notification channel. + # @param [String] name + # The channel for which to execute the request. The format is projects/[ + # PROJECT_ID]/notificationChannels/[CHANNEL_ID]. + # @param [Boolean] force + # If true, the notification channel will be deleted regardless of its use in + # alert policies (the policies will be updated to remove the channel). If false, + # channels that are still referenced by an existing alerting policy will fail to + # be deleted in a delete operation. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::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_notification_channel(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::Empty::Representation + command.response_class = Google::Apis::MonitoringV3::Empty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a single notification channel. The channel includes the relevant + # configuration details with which the channel was created. However, the + # response may truncate or omit passwords, API keys, or other private key matter + # and thus the response may not be 100% identical to the information that was + # supplied in the call to the create method. + # @param [String] name + # The channel for which to execute the request. The format is projects/[ + # PROJECT_ID]/notificationChannels/[CHANNEL_ID]. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::NotificationChannel] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::NotificationChannel] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_notification_channel(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation + command.response_class = Google::Apis::MonitoringV3::NotificationChannel + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Requests a verification code for an already verified channel that can then be + # used in a call to VerifyNotificationChannel() on a different channel with an + # equivalent identity in the same or in a different project. This makes it + # possible to copy a channel between projects without requiring manual + # reverification of the channel. If the channel is not in the verified state, + # this method will fail (in other words, this may only be used if the + # SendNotificationChannelVerificationCode and VerifyNotificationChannel paths + # have already been used to put the given channel into the verified state).There + # is no guarantee that the verification codes returned by this method will be of + # a similar structure or form as the ones that are delivered to the channel via + # SendNotificationChannelVerificationCode; while VerifyNotificationChannel() + # will recognize both the codes delivered via + # SendNotificationChannelVerificationCode() and returned from + # GetNotificationChannelVerificationCode(), it is typically the case that the + # verification codes delivered via SendNotificationChannelVerificationCode() + # will be shorter and also have a shorter expiration (e.g. codes such as "G- + # 123456") whereas GetVerificationCode() will typically return a much longer, + # websafe base 64 encoded string that has a longer expiration time. + # @param [String] name + # The notification channel for which a verification code is to be generated and + # retrieved. This must name a channel that is already verified; if the specified + # channel is not verified, the request will fail. + # @param [Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeRequest] get_notification_channel_verification_code_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_notification_channel_verification_code(name, get_notification_channel_verification_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:getVerificationCode', options) + command.request_representation = Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeRequest::Representation + command.request_object = get_notification_channel_verification_code_request_object + command.response_representation = Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeResponse::Representation + command.response_class = Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the notification channels that have been created for the project. + # @param [String] name + # The project on which to execute the request. The format is projects/[ + # PROJECT_ID]. That is, this names the container in which to look for the + # notification channels; it does not name a specific channel. To query a + # specific channel by REST resource name, use the GetNotificationChannel + # operation. + # @param [String] filter + # If provided, this field specifies the criteria that must be met by + # notification channels to be included in the response.For more details, see + # sorting and filtering. + # @param [String] order_by + # A comma-separated list of fields by which to sort the result. Supports the + # same set of fields as in filter. Entries can be prefixed with a minus sign to + # sort in descending rather than ascending order.For more details, see sorting + # and filtering. + # @param [Fixnum] page_size + # The maximum number of results to return in a single response. If not set to a + # positive number, a reasonable value will be chosen by the service. + # @param [String] page_token + # If non-empty, page_token must contain a value returned as the next_page_token + # in a previous response to request the next set of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::ListNotificationChannelsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::ListNotificationChannelsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @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_notification_channels(name, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}/notificationChannels', options) + command.response_representation = Google::Apis::MonitoringV3::ListNotificationChannelsResponse::Representation + command.response_class = Google::Apis::MonitoringV3::ListNotificationChannelsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a notification channel. Fields not specified in the field mask remain + # unchanged. + # @param [String] name + # The full REST resource name for this channel. The syntax is: + # projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] + # The [CHANNEL_ID] is automatically assigned by the server on creation. + # @param [Google::Apis::MonitoringV3::NotificationChannel] notification_channel_object + # @param [String] update_mask + # The fields to update. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::NotificationChannel] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::NotificationChannel] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_notification_channel(name, notification_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation + command.request_object = notification_channel_object + command.response_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation + command.response_class = Google::Apis::MonitoringV3::NotificationChannel + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Causes a verification code to be delivered to the channel. The code can then + # be supplied in VerifyNotificationChannel to verify the channel. + # @param [String] name + # The notification channel to which to send a verification code. + # @param [Google::Apis::MonitoringV3::SendNotificationChannelVerificationCodeRequest] send_notification_channel_verification_code_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def send_project_notification_channel_verification_code(name, send_notification_channel_verification_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:sendVerificationCode', options) + command.request_representation = Google::Apis::MonitoringV3::SendNotificationChannelVerificationCodeRequest::Representation + command.request_object = send_notification_channel_verification_code_request_object + command.response_representation = Google::Apis::MonitoringV3::Empty::Representation + command.response_class = Google::Apis::MonitoringV3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Verifies a NotificationChannel by proving receipt of the code delivered to the + # channel as a result of calling SendNotificationChannelVerificationCode. + # @param [String] name + # The notification channel to verify. + # @param [Google::Apis::MonitoringV3::VerifyNotificationChannelRequest] verify_notification_channel_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MonitoringV3::NotificationChannel] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::NotificationChannel] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def verify_notification_channel(name, verify_notification_channel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:verify', options) + command.request_representation = Google::Apis::MonitoringV3::VerifyNotificationChannelRequest::Representation + command.request_object = verify_notification_channel_request_object + command.response_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation + command.response_class = Google::Apis::MonitoringV3::NotificationChannel + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates or adds data to one or more time series. The response is empty if all # time series in the request were written. If any time series could not be # written, a corresponding failure message is included in the error response. diff --git a/generated/google/apis/oslogin_v1.rb b/generated/google/apis/oslogin_v1.rb index 18f1a885f..168a5ea06 100644 --- a/generated/google/apis/oslogin_v1.rb +++ b/generated/google/apis/oslogin_v1.rb @@ -18,14 +18,14 @@ require 'google/apis/oslogin_v1/representations.rb' module Google module Apis - # Google Cloud OS Login API + # Cloud OS Login API # # Manages OS login configuration for Google account users. # # @see https://cloud.google.com/compute/docs/oslogin/rest/ module OsloginV1 VERSION = 'V1' - REVISION = '20180117' + REVISION = '20180306' # 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/oslogin_v1/service.rb b/generated/google/apis/oslogin_v1/service.rb index 9f349ec89..5238180e6 100644 --- a/generated/google/apis/oslogin_v1/service.rb +++ b/generated/google/apis/oslogin_v1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module OsloginV1 - # Google Cloud OS Login API + # Cloud OS Login API # # Manages OS login configuration for Google account users. # diff --git a/generated/google/apis/oslogin_v1alpha.rb b/generated/google/apis/oslogin_v1alpha.rb index d186a651e..7ed326711 100644 --- a/generated/google/apis/oslogin_v1alpha.rb +++ b/generated/google/apis/oslogin_v1alpha.rb @@ -18,14 +18,14 @@ require 'google/apis/oslogin_v1alpha/representations.rb' module Google module Apis - # Google Cloud OS Login API + # Cloud OS Login API # # Manages OS login configuration for Google account users. # # @see https://cloud.google.com/compute/docs/oslogin/rest/ module OsloginV1alpha VERSION = 'V1alpha' - REVISION = '20180117' + REVISION = '20180306' # 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/oslogin_v1alpha/service.rb b/generated/google/apis/oslogin_v1alpha/service.rb index 81c758ae2..2622856ce 100644 --- a/generated/google/apis/oslogin_v1alpha/service.rb +++ b/generated/google/apis/oslogin_v1alpha/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module OsloginV1alpha - # Google Cloud OS Login API + # Cloud OS Login API # # Manages OS login configuration for Google account users. #