From cd3877754f88903bb56b2eae4830cec1e18d8334 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 3 May 2019 00:37:18 +0000 Subject: [PATCH] Autogenerated update (2019-05-03) Update: - bigquery_v2 - calendar_v3 - cloudbuild_v1 - dialogflow_v2 - digitalassetlinks_v1 - dns_v2beta1 - iam_v1 - serviceconsumermanagement_v1 - servicenetworking_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 - spanner_v1 - storage_v1 - youtube_partner_v1 --- api_names_out.yaml | 20 + generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 914 ------------------ .../apis/bigquery_v2/representations.rb | 365 ------- generated/google/apis/bigquery_v2/service.rb | 162 ---- generated/google/apis/calendar_v3.rb | 2 +- generated/google/apis/calendar_v3/classes.rb | 2 +- generated/google/apis/calendar_v3/service.rb | 16 +- generated/google/apis/cloudbuild_v1.rb | 2 +- .../google/apis/cloudbuild_v1/classes.rb | 6 + .../apis/cloudbuild_v1/representations.rb | 1 + generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 6 +- generated/google/apis/digitalassetlinks_v1.rb | 2 +- .../apis/digitalassetlinks_v1/service.rb | 9 +- generated/google/apis/dns_v2beta1.rb | 2 +- generated/google/apis/dns_v2beta1/service.rb | 2 +- generated/google/apis/iam_v1.rb | 2 +- generated/google/apis/iam_v1/classes.rb | 48 + .../google/apis/iam_v1/representations.rb | 28 + generated/google/apis/iam_v1/service.rb | 29 +- .../apis/serviceconsumermanagement_v1.rb | 2 +- .../serviceconsumermanagement_v1/classes.rb | 6 + .../representations.rb | 1 + generated/google/apis/servicenetworking_v1.rb | 2 +- .../apis/servicenetworking_v1/classes.rb | 6 + .../servicenetworking_v1/representations.rb | 1 + .../google/apis/servicenetworking_v1beta.rb | 2 +- .../apis/servicenetworking_v1beta/classes.rb | 6 + .../representations.rb | 1 + generated/google/apis/serviceusage_v1.rb | 2 +- .../google/apis/serviceusage_v1/classes.rb | 6 + .../apis/serviceusage_v1/representations.rb | 1 + generated/google/apis/serviceusage_v1beta1.rb | 2 +- .../apis/serviceusage_v1beta1/classes.rb | 6 + .../serviceusage_v1beta1/representations.rb | 1 + generated/google/apis/spanner_v1.rb | 2 +- generated/google/apis/spanner_v1/classes.rb | 54 +- .../google/apis/spanner_v1/representations.rb | 17 + generated/google/apis/storage_v1.rb | 2 +- generated/google/apis/storage_v1/classes.rb | 4 +- .../google/apis/storage_v1/representations.rb | 3 +- generated/google/apis/youtube_partner_v1.rb | 2 +- 43 files changed, 263 insertions(+), 1488 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 0f84eb25f..9b4ed6527 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -15776,6 +15776,8 @@ "/cloudbuild:v1/BuildTrigger/includedFiles/included_file": included_file "/cloudbuild:v1/BuildTrigger/substitutions": substitutions "/cloudbuild:v1/BuildTrigger/substitutions/substitution": substitution +"/cloudbuild:v1/BuildTrigger/tags": tags +"/cloudbuild:v1/BuildTrigger/tags/tag": tag "/cloudbuild:v1/BuildTrigger/triggerTemplate": trigger_template "/cloudbuild:v1/BuiltImage": built_image "/cloudbuild:v1/BuiltImage/digest": digest @@ -82054,6 +82056,8 @@ "/healthcare:v1beta1/healthcare.projects.locations.list/pageToken": page_token "/healthcare:v1beta1/key": key "/healthcare:v1beta1/quotaUser": quota_user +"/iam:v1/AdminAuditData": admin_audit_data +"/iam:v1/AdminAuditData/permissionDelta": permission_delta "/iam:v1/AuditConfig": audit_config "/iam:v1/AuditConfig/auditLogConfigs": audit_log_configs "/iam:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config @@ -82134,6 +82138,11 @@ "/iam:v1/Permission/onlyInPredefinedRoles": only_in_predefined_roles "/iam:v1/Permission/stage": stage "/iam:v1/Permission/title": title +"/iam:v1/PermissionDelta": permission_delta +"/iam:v1/PermissionDelta/addedPermissions": added_permissions +"/iam:v1/PermissionDelta/addedPermissions/added_permission": added_permission +"/iam:v1/PermissionDelta/removedPermissions": removed_permissions +"/iam:v1/PermissionDelta/removedPermissions/removed_permission": removed_permission "/iam:v1/Policy": policy "/iam:v1/Policy/auditConfigs": audit_configs "/iam:v1/Policy/auditConfigs/audit_config": audit_config @@ -95299,6 +95308,7 @@ "/serviceconsumermanagement:v1/MonitoredResourceDescriptor/displayName": display_name "/serviceconsumermanagement:v1/MonitoredResourceDescriptor/labels": labels "/serviceconsumermanagement:v1/MonitoredResourceDescriptor/labels/label": label +"/serviceconsumermanagement:v1/MonitoredResourceDescriptor/launchStage": launch_stage "/serviceconsumermanagement:v1/MonitoredResourceDescriptor/name": name "/serviceconsumermanagement:v1/MonitoredResourceDescriptor/type": type "/serviceconsumermanagement:v1/Monitoring": monitoring @@ -96692,6 +96702,7 @@ "/servicenetworking:v1/MonitoredResourceDescriptor/displayName": display_name "/servicenetworking:v1/MonitoredResourceDescriptor/labels": labels "/servicenetworking:v1/MonitoredResourceDescriptor/labels/label": label +"/servicenetworking:v1/MonitoredResourceDescriptor/launchStage": launch_stage "/servicenetworking:v1/MonitoredResourceDescriptor/name": name "/servicenetworking:v1/MonitoredResourceDescriptor/type": type "/servicenetworking:v1/Monitoring": monitoring @@ -97079,6 +97090,7 @@ "/servicenetworking:v1beta/MonitoredResourceDescriptor/displayName": display_name "/servicenetworking:v1beta/MonitoredResourceDescriptor/labels": labels "/servicenetworking:v1beta/MonitoredResourceDescriptor/labels/label": label +"/servicenetworking:v1beta/MonitoredResourceDescriptor/launchStage": launch_stage "/servicenetworking:v1beta/MonitoredResourceDescriptor/name": name "/servicenetworking:v1beta/MonitoredResourceDescriptor/type": type "/servicenetworking:v1beta/Monitoring": monitoring @@ -97563,6 +97575,7 @@ "/serviceusage:v1/MonitoredResourceDescriptor/displayName": display_name "/serviceusage:v1/MonitoredResourceDescriptor/labels": labels "/serviceusage:v1/MonitoredResourceDescriptor/labels/label": label +"/serviceusage:v1/MonitoredResourceDescriptor/launchStage": launch_stage "/serviceusage:v1/MonitoredResourceDescriptor/name": name "/serviceusage:v1/MonitoredResourceDescriptor/type": type "/serviceusage:v1/Monitoring": monitoring @@ -98035,6 +98048,7 @@ "/serviceusage:v1beta1/MonitoredResourceDescriptor/displayName": display_name "/serviceusage:v1beta1/MonitoredResourceDescriptor/labels": labels "/serviceusage:v1beta1/MonitoredResourceDescriptor/labels/label": label +"/serviceusage:v1beta1/MonitoredResourceDescriptor/launchStage": launch_stage "/serviceusage:v1beta1/MonitoredResourceDescriptor/name": name "/serviceusage:v1beta1/MonitoredResourceDescriptor/type": type "/serviceusage:v1beta1/Monitoring": monitoring @@ -100472,6 +100486,8 @@ "/spanner:v1/InstanceConfig": instance_config "/spanner:v1/InstanceConfig/displayName": display_name "/spanner:v1/InstanceConfig/name": name +"/spanner:v1/InstanceConfig/replicas": replicas +"/spanner:v1/InstanceConfig/replicas/replica": replica "/spanner:v1/KeyRange": key_range "/spanner:v1/KeyRange/endClosed": end_closed "/spanner:v1/KeyRange/endClosed/end_closed": end_closed @@ -100601,6 +100617,10 @@ "/spanner:v1/ReadRequest/table": table "/spanner:v1/ReadRequest/transaction": transaction "/spanner:v1/ReadWrite": read_write +"/spanner:v1/ReplicaInfo": replica_info +"/spanner:v1/ReplicaInfo/defaultLeaderLocation": default_leader_location +"/spanner:v1/ReplicaInfo/location": location +"/spanner:v1/ReplicaInfo/type": type "/spanner:v1/ResultSet": result_set "/spanner:v1/ResultSet/metadata": metadata "/spanner:v1/ResultSet/rows": rows diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 6eafbcd1f..b59ef9f07 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20190423' + REVISION = '20190501' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 9f9009316..312d18a29 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -22,74 +22,6 @@ module Google module Apis module BigqueryV2 - # Aggregate metrics for classification models. For multi-class models, - # the metrics are either macro-averaged: metrics are calculated for each - # label and then an unweighted average is taken of those values or - # micro-averaged: the metric is calculated globally by counting the total - # number of correctly predicted rows. - class AggregateClassificationMetrics - include Google::Apis::Core::Hashable - - # Accuracy is the fraction of predictions given the correct label. For - # multiclass this is a micro-averaged metric. - # Corresponds to the JSON property `accuracy` - # @return [Float] - attr_accessor :accuracy - - # The F1 score is an average of recall and precision. For multiclass - # this is a macro-averaged metric. - # Corresponds to the JSON property `f1Score` - # @return [Float] - attr_accessor :f1_score - - # Logarithmic Loss. For multiclass this is a macro-averaged metric. - # Corresponds to the JSON property `logLoss` - # @return [Float] - attr_accessor :log_loss - - # Precision is the fraction of actual positive predictions that had - # positive actual labels. For multiclass this is a macro-averaged - # metric treating each class as a binary classifier. - # Corresponds to the JSON property `precision` - # @return [Float] - attr_accessor :precision - - # Recall is the fraction of actual positive labels that were given a - # positive prediction. For multiclass this is a macro-averaged metric. - # Corresponds to the JSON property `recall` - # @return [Float] - attr_accessor :recall - - # Area Under a ROC Curve. For multiclass this is a macro-averaged - # metric. - # Corresponds to the JSON property `rocAuc` - # @return [Float] - attr_accessor :roc_auc - - # Threshold at which the metrics are computed. For binary - # classification models this is the positive class threshold. - # For multi-class classfication models this is the confidence - # threshold. - # Corresponds to the JSON property `threshold` - # @return [Float] - attr_accessor :threshold - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @accuracy = args[:accuracy] if args.key?(:accuracy) - @f1_score = args[:f1_score] if args.key?(:f1_score) - @log_loss = args[:log_loss] if args.key?(:log_loss) - @precision = args[:precision] if args.key?(:precision) - @recall = args[:recall] if args.key?(:recall) - @roc_auc = args[:roc_auc] if args.key?(:roc_auc) - @threshold = args[:threshold] if args.key?(:threshold) - end - end - # class BigQueryModelTraining include Google::Apis::Core::Hashable @@ -291,90 +223,6 @@ module Google end end - # Evaluation metrics for binary classification models. - class BinaryClassificationMetrics - include Google::Apis::Core::Hashable - - # Aggregate metrics for classification models. For multi-class models, - # the metrics are either macro-averaged: metrics are calculated for each - # label and then an unweighted average is taken of those values or - # micro-averaged: the metric is calculated globally by counting the total - # number of correctly predicted rows. - # Corresponds to the JSON property `aggregateClassificationMetrics` - # @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics] - attr_accessor :aggregate_classification_metrics - - # Binary confusion matrix at multiple thresholds. - # Corresponds to the JSON property `binaryConfusionMatrixList` - # @return [Array] - attr_accessor :binary_confusion_matrix_list - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics) - @binary_confusion_matrix_list = args[:binary_confusion_matrix_list] if args.key?(:binary_confusion_matrix_list) - end - end - - # Confusion matrix for binary classification models. - class BinaryConfusionMatrix - include Google::Apis::Core::Hashable - - # Number of false samples predicted as false. - # Corresponds to the JSON property `falseNegatives` - # @return [Fixnum] - attr_accessor :false_negatives - - # Number of false samples predicted as true. - # Corresponds to the JSON property `falsePositives` - # @return [Fixnum] - attr_accessor :false_positives - - # Threshold value used when computing each of the following metric. - # Corresponds to the JSON property `positiveClassThreshold` - # @return [Float] - attr_accessor :positive_class_threshold - - # Aggregate precision. - # Corresponds to the JSON property `precision` - # @return [Float] - attr_accessor :precision - - # Aggregate recall. - # Corresponds to the JSON property `recall` - # @return [Float] - attr_accessor :recall - - # Number of true samples predicted as false. - # Corresponds to the JSON property `trueNegatives` - # @return [Fixnum] - attr_accessor :true_negatives - - # Number of true samples predicted as true. - # Corresponds to the JSON property `truePositives` - # @return [Fixnum] - attr_accessor :true_positives - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @false_negatives = args[:false_negatives] if args.key?(:false_negatives) - @false_positives = args[:false_positives] if args.key?(:false_positives) - @positive_class_threshold = args[:positive_class_threshold] if args.key?(:positive_class_threshold) - @precision = args[:precision] if args.key?(:precision) - @recall = args[:recall] if args.key?(:recall) - @true_negatives = args[:true_negatives] if args.key?(:true_negatives) - @true_positives = args[:true_positives] if args.key?(:true_positives) - end - end - # class BqmlIterationResult include Google::Apis::Core::Hashable @@ -541,38 +389,6 @@ module Google end end - # Information about a single cluster for clustering model. - class ClusterInfo - include Google::Apis::Core::Hashable - - # Centroid id. - # Corresponds to the JSON property `centroidId` - # @return [Fixnum] - attr_accessor :centroid_id - - # Cluster radius, the average distance from centroid - # to each point assigned to the cluster. - # Corresponds to the JSON property `clusterRadius` - # @return [Float] - attr_accessor :cluster_radius - - # Cluster size, the total number of points assigned to the cluster. - # Corresponds to the JSON property `clusterSize` - # @return [Fixnum] - attr_accessor :cluster_size - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @centroid_id = args[:centroid_id] if args.key?(:centroid_id) - @cluster_radius = args[:cluster_radius] if args.key?(:cluster_radius) - @cluster_size = args[:cluster_size] if args.key?(:cluster_size) - end - end - # class Clustering include Google::Apis::Core::Hashable @@ -595,57 +411,6 @@ module Google end end - # Evaluation metrics for clustering models. - class ClusteringMetrics - include Google::Apis::Core::Hashable - - # Davies-Bouldin index. - # Corresponds to the JSON property `daviesBouldinIndex` - # @return [Float] - attr_accessor :davies_bouldin_index - - # Mean of squared distances between each sample to its cluster centroid. - # Corresponds to the JSON property `meanSquaredDistance` - # @return [Float] - attr_accessor :mean_squared_distance - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @davies_bouldin_index = args[:davies_bouldin_index] if args.key?(:davies_bouldin_index) - @mean_squared_distance = args[:mean_squared_distance] if args.key?(:mean_squared_distance) - end - end - - # Confusion matrix for multi-class classification models. - class ConfusionMatrix - include Google::Apis::Core::Hashable - - # Confidence threshold used when computing the entries of the - # confusion matrix. - # Corresponds to the JSON property `confidenceThreshold` - # @return [Float] - attr_accessor :confidence_threshold - - # One row per actual label. - # Corresponds to the JSON property `rows` - # @return [Array] - attr_accessor :rows - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold) - @rows = args[:rows] if args.key?(:rows) - end - end - # class CsvOptions include Google::Apis::Core::Hashable @@ -1102,33 +867,6 @@ module Google end end - # A single entry in the confusion matrix. - class Entry - include Google::Apis::Core::Hashable - - # Number of items being predicted as this label. - # Corresponds to the JSON property `itemCount` - # @return [Fixnum] - attr_accessor :item_count - - # The predicted label. For confidence_threshold > 0, we will - # also add an entry indicating the number of items under the - # confidence threshold. - # Corresponds to the JSON property `predictedLabel` - # @return [String] - attr_accessor :predicted_label - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @item_count = args[:item_count] if args.key?(:item_count) - @predicted_label = args[:predicted_label] if args.key?(:predicted_label) - end - end - # class ErrorProto include Google::Apis::Core::Hashable @@ -1167,45 +905,6 @@ module Google end end - # Evaluation metrics of a model. These are either computed on all - # training data or just the eval data based on whether eval data was used - # during training. - class EvaluationMetrics - include Google::Apis::Core::Hashable - - # Evaluation metrics for binary classification models. - # Corresponds to the JSON property `binaryClassificationMetrics` - # @return [Google::Apis::BigqueryV2::BinaryClassificationMetrics] - attr_accessor :binary_classification_metrics - - # Evaluation metrics for clustering models. - # Corresponds to the JSON property `clusteringMetrics` - # @return [Google::Apis::BigqueryV2::ClusteringMetrics] - attr_accessor :clustering_metrics - - # Evaluation metrics for multi-class classification models. - # Corresponds to the JSON property `multiClassClassificationMetrics` - # @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics] - attr_accessor :multi_class_classification_metrics - - # Evaluation metrics for regression models. - # Corresponds to the JSON property `regressionMetrics` - # @return [Google::Apis::BigqueryV2::RegressionMetrics] - attr_accessor :regression_metrics - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics) - @clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics) - @multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics) - @regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics) - end - end - # class ExplainQueryStage include Google::Apis::Core::Hashable @@ -1695,55 +1394,6 @@ module Google end end - # Information about a single iteration of the training run. - class IterationResult - include Google::Apis::Core::Hashable - - # [Beta] Information about top clusters for clustering models. - # Corresponds to the JSON property `clusterInfos` - # @return [Array] - attr_accessor :cluster_infos - - # Time taken to run the iteration in milliseconds. - # Corresponds to the JSON property `durationMs` - # @return [Fixnum] - attr_accessor :duration_ms - - # Loss computed on the eval data at the end of iteration. - # Corresponds to the JSON property `evalLoss` - # @return [Float] - attr_accessor :eval_loss - - # Index of the iteration, 0 based. - # Corresponds to the JSON property `index` - # @return [Fixnum] - attr_accessor :index - - # Learn rate used for this iteration. - # Corresponds to the JSON property `learnRate` - # @return [Float] - attr_accessor :learn_rate - - # Loss computed on the training data at the end of iteration. - # Corresponds to the JSON property `trainingLoss` - # @return [Float] - attr_accessor :training_loss - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cluster_infos = args[:cluster_infos] if args.key?(:cluster_infos) - @duration_ms = args[:duration_ms] if args.key?(:duration_ms) - @eval_loss = args[:eval_loss] if args.key?(:eval_loss) - @index = args[:index] if args.key?(:index) - @learn_rate = args[:learn_rate] if args.key?(:learn_rate) - @training_loss = args[:training_loss] if args.key?(:training_loss) - end - end - # class Job include Google::Apis::Core::Hashable @@ -3072,55 +2722,6 @@ module Google end end - # - class ListModelsResponse - include Google::Apis::Core::Hashable - - # Models in the requested dataset. Only the following fields are populated: - # model_reference, model_type, creation_time, last_modified_time and - # labels. - # Corresponds to the JSON property `models` - # @return [Array] - attr_accessor :models - - # A token to request the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @models = args[:models] if args.key?(:models) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # BigQuery-specific metadata about a location. This will be set on - # google.cloud.location.Location.metadata in Cloud Location API - # responses. - class LocationMetadata - include Google::Apis::Core::Hashable - - # The legacy BigQuery location ID, e.g. “EU” for the “europe” location. - # This is for any API consumers that need the legacy “US” and “EU” locations. - # Corresponds to the JSON property `legacyLocationId` - # @return [String] - attr_accessor :legacy_location_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @legacy_location_id = args[:legacy_location_id] if args.key?(:legacy_location_id) - end - end - # class MaterializedViewDefinition include Google::Apis::Core::Hashable @@ -3147,115 +2748,6 @@ module Google end end - # - class Model - include Google::Apis::Core::Hashable - - # Output only. The time when this model was created, in millisecs since the - # epoch. - # Corresponds to the JSON property `creationTime` - # @return [Fixnum] - attr_accessor :creation_time - - # [Optional] A user-friendly description of this model. - # @mutable bigquery.models.patch - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Output only. A hash of this resource. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # [Optional] The time when this model expires, in milliseconds since the - # epoch. If not present, the model will persist indefinitely. Expired models - # will be deleted and their storage reclaimed. The defaultTableExpirationMs - # property of the encapsulating dataset can be used to set a default - # expirationTime on newly created models. - # @mutable bigquery.models.patch - # Corresponds to the JSON property `expirationTime` - # @return [Fixnum] - attr_accessor :expiration_time - - # Output only. Input feature columns that were used to train this model. - # Corresponds to the JSON property `featureColumns` - # @return [Array] - attr_accessor :feature_columns - - # [Optional] A descriptive name for this model. - # @mutable bigquery.models.patch - # Corresponds to the JSON property `friendlyName` - # @return [String] - attr_accessor :friendly_name - - # Output only. Label columns that were used to train this model. - # The output of the model will have a “predicted_” prefix to these columns. - # Corresponds to the JSON property `labelColumns` - # @return [Array] - attr_accessor :label_columns - - # [Optional] The labels associated with this model. You can use these to - # organize and group your models. Label keys and values can be no longer - # than 63 characters, can only contain lowercase letters, numeric - # characters, underscores and dashes. International characters are allowed. - # Label values are optional. Label keys must start with a letter and each - # label in the list must have a different key. - # @mutable bigquery.models.patch - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # Output only. The time when this model was last modified, in millisecs - # since the epoch. - # Corresponds to the JSON property `lastModifiedTime` - # @return [Fixnum] - attr_accessor :last_modified_time - - # Output only. The geographic location where the model resides. This value - # is inherited from the dataset. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # Id path of a model. - # Corresponds to the JSON property `modelReference` - # @return [Google::Apis::BigqueryV2::ModelReference] - attr_accessor :model_reference - - # Output only. Type of the model resource. - # Corresponds to the JSON property `modelType` - # @return [String] - attr_accessor :model_type - - # Output only. Information for all training runs in increasing order of - # start_time. - # Corresponds to the JSON property `trainingRuns` - # @return [Array] - attr_accessor :training_runs - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @description = args[:description] if args.key?(:description) - @etag = args[:etag] if args.key?(:etag) - @expiration_time = args[:expiration_time] if args.key?(:expiration_time) - @feature_columns = args[:feature_columns] if args.key?(:feature_columns) - @friendly_name = args[:friendly_name] if args.key?(:friendly_name) - @label_columns = args[:label_columns] if args.key?(:label_columns) - @labels = args[:labels] if args.key?(:labels) - @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) - @location = args[:location] if args.key?(:location) - @model_reference = args[:model_reference] if args.key?(:model_reference) - @model_type = args[:model_type] if args.key?(:model_type) - @training_runs = args[:training_runs] if args.key?(:training_runs) - end - end - # class ModelDefinition include Google::Apis::Core::Hashable @@ -3319,68 +2811,6 @@ module Google end end - # Id path of a model. - class ModelReference - include Google::Apis::Core::Hashable - - # [Required] The ID of the dataset containing this model. - # Corresponds to the JSON property `datasetId` - # @return [String] - attr_accessor :dataset_id - - # [Required] The ID of the model. The ID must contain only - # letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum - # length is 1,024 characters. - # Corresponds to the JSON property `modelId` - # @return [String] - attr_accessor :model_id - - # [Required] The ID of the project containing this model. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dataset_id = args[:dataset_id] if args.key?(:dataset_id) - @model_id = args[:model_id] if args.key?(:model_id) - @project_id = args[:project_id] if args.key?(:project_id) - end - end - - # Evaluation metrics for multi-class classification models. - class MultiClassClassificationMetrics - include Google::Apis::Core::Hashable - - # Aggregate metrics for classification models. For multi-class models, - # the metrics are either macro-averaged: metrics are calculated for each - # label and then an unweighted average is taken of those values or - # micro-averaged: the metric is calculated globally by counting the total - # number of correctly predicted rows. - # Corresponds to the JSON property `aggregateClassificationMetrics` - # @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics] - attr_accessor :aggregate_classification_metrics - - # Confusion matrix at different thresholds. - # Corresponds to the JSON property `confusionMatrixList` - # @return [Array] - attr_accessor :confusion_matrix_list - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics) - @confusion_matrix_list = args[:confusion_matrix_list] if args.key?(:confusion_matrix_list) - end - end - # class ProjectList include Google::Apis::Core::Hashable @@ -3923,49 +3353,6 @@ module Google end end - # Evaluation metrics for regression models. - class RegressionMetrics - include Google::Apis::Core::Hashable - - # Mean absolute error. - # Corresponds to the JSON property `meanAbsoluteError` - # @return [Float] - attr_accessor :mean_absolute_error - - # Mean squared error. - # Corresponds to the JSON property `meanSquaredError` - # @return [Float] - attr_accessor :mean_squared_error - - # Mean squared log error. - # Corresponds to the JSON property `meanSquaredLogError` - # @return [Float] - attr_accessor :mean_squared_log_error - - # Median absolute error. - # Corresponds to the JSON property `medianAbsoluteError` - # @return [Float] - attr_accessor :median_absolute_error - - # R^2 score. - # Corresponds to the JSON property `rSquared` - # @return [Float] - attr_accessor :r_squared - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @mean_absolute_error = args[:mean_absolute_error] if args.key?(:mean_absolute_error) - @mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error) - @mean_squared_log_error = args[:mean_squared_log_error] if args.key?(:mean_squared_log_error) - @median_absolute_error = args[:median_absolute_error] if args.key?(:median_absolute_error) - @r_squared = args[:r_squared] if args.key?(:r_squared) - end - end - # class RoutineReference include Google::Apis::Core::Hashable @@ -3998,134 +3385,6 @@ module Google end end - # A single row in the confusion matrix. - class Row - include Google::Apis::Core::Hashable - - # The original label of this row. - # Corresponds to the JSON property `actualLabel` - # @return [String] - attr_accessor :actual_label - - # Info describing predicted label distribution. - # Corresponds to the JSON property `entries` - # @return [Array] - attr_accessor :entries - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @actual_label = args[:actual_label] if args.key?(:actual_label) - @entries = args[:entries] if args.key?(:entries) - end - end - - # The type of a variable, e.g., a function argument. - # Examples: - # INT64: `type_kind="INT64"` - # ARRAY: `type_kind="ARRAY", array_element_type="STRING"` - # STRUCT>: - # `type_kind="STRUCT", - # struct_type=`fields=[ - # `name="x", type=`type_kind="STRING"``, - # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` - # ]`` - class StandardSqlDataType - include Google::Apis::Core::Hashable - - # The type of a variable, e.g., a function argument. - # Examples: - # INT64: `type_kind="INT64"` - # ARRAY: `type_kind="ARRAY", array_element_type="STRING"` - # STRUCT>: - # `type_kind="STRUCT", - # struct_type=`fields=[ - # `name="x", type=`type_kind="STRING"``, - # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` - # ]`` - # Corresponds to the JSON property `arrayElementType` - # @return [Google::Apis::BigqueryV2::StandardSqlDataType] - attr_accessor :array_element_type - - # The fields of this struct, in order, if type_kind = "STRUCT". - # Corresponds to the JSON property `structType` - # @return [Google::Apis::BigqueryV2::StandardSqlStructType] - attr_accessor :struct_type - - # Required. The top level type of this field. - # Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY"). - # Corresponds to the JSON property `typeKind` - # @return [String] - attr_accessor :type_kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @array_element_type = args[:array_element_type] if args.key?(:array_element_type) - @struct_type = args[:struct_type] if args.key?(:struct_type) - @type_kind = args[:type_kind] if args.key?(:type_kind) - end - end - - # A field or a column. - class StandardSqlField - include Google::Apis::Core::Hashable - - # Optional. The name of this field. Can be absent for struct fields. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The type of a variable, e.g., a function argument. - # Examples: - # INT64: `type_kind="INT64"` - # ARRAY: `type_kind="ARRAY", array_element_type="STRING"` - # STRUCT>: - # `type_kind="STRUCT", - # struct_type=`fields=[ - # `name="x", type=`type_kind="STRING"``, - # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` - # ]`` - # Corresponds to the JSON property `type` - # @return [Google::Apis::BigqueryV2::StandardSqlDataType] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @type = args[:type] if args.key?(:type) - end - end - - # - class StandardSqlStructType - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `fields` - # @return [Array] - attr_accessor :fields - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @fields = args[:fields] if args.key?(:fields) - end - end - # class Streamingbuffer include Google::Apis::Core::Hashable @@ -4907,179 +4166,6 @@ module Google end end - # - class TrainingOptions - include Google::Apis::Core::Hashable - - # The column to split data with. This column won't be used as a - # feature. - # 1. When data_split_method is CUSTOM, the corresponding column should - # be boolean. The rows with true value tag are eval data, and the false - # are training data. - # 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION - # rows (from smallest to largest) in the corresponding column are used - # as training data, and the rest are eval data. It respects the order - # in Orderable data types: - # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data- - # type-properties - # Corresponds to the JSON property `dataSplitColumn` - # @return [String] - attr_accessor :data_split_column - - # The fraction of evaluation data over the whole input data. The rest - # of data will be used as training data. The format should be double. - # Accurate to two decimal places. - # Default value is 0.2. - # Corresponds to the JSON property `dataSplitEvalFraction` - # @return [Float] - attr_accessor :data_split_eval_fraction - - # The data split type for training and evaluation, e.g. RANDOM. - # Corresponds to the JSON property `dataSplitMethod` - # @return [String] - attr_accessor :data_split_method - - # [Beta] Distance type for clustering models. - # Corresponds to the JSON property `distanceType` - # @return [String] - attr_accessor :distance_type - - # Whether to stop early when the loss doesn't improve significantly - # any more (compared to min_relative_progress). - # Corresponds to the JSON property `earlyStop` - # @return [Boolean] - attr_accessor :early_stop - alias_method :early_stop?, :early_stop - - # Specifies the initial learning rate for line search to start at. - # Corresponds to the JSON property `initialLearnRate` - # @return [Float] - attr_accessor :initial_learn_rate - - # Name of input label columns in training data. - # Corresponds to the JSON property `inputLabelColumns` - # @return [Array] - attr_accessor :input_label_columns - - # L1 regularization coefficient. - # Corresponds to the JSON property `l1Regularization` - # @return [Float] - attr_accessor :l1_regularization - - # L2 regularization coefficient. - # Corresponds to the JSON property `l2Regularization` - # @return [Float] - attr_accessor :l2_regularization - - # Weights associated with each label class, for rebalancing the - # training data. - # Corresponds to the JSON property `labelClassWeights` - # @return [Hash] - attr_accessor :label_class_weights - - # Learning rate in training. - # Corresponds to the JSON property `learnRate` - # @return [Float] - attr_accessor :learn_rate - - # The strategy to determine learning rate. - # Corresponds to the JSON property `learnRateStrategy` - # @return [String] - attr_accessor :learn_rate_strategy - - # Type of loss function used during training run. - # Corresponds to the JSON property `lossType` - # @return [String] - attr_accessor :loss_type - - # The maximum number of iterations in training. - # Corresponds to the JSON property `maxIterations` - # @return [Fixnum] - attr_accessor :max_iterations - - # When early_stop is true, stops training when accuracy improvement is - # less than 'min_relative_progress'. - # Corresponds to the JSON property `minRelativeProgress` - # @return [Float] - attr_accessor :min_relative_progress - - # [Beta] Number of clusters for clustering models. - # Corresponds to the JSON property `numClusters` - # @return [Fixnum] - attr_accessor :num_clusters - - # Whether to train a model from the last checkpoint. - # Corresponds to the JSON property `warmStart` - # @return [Boolean] - attr_accessor :warm_start - alias_method :warm_start?, :warm_start - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data_split_column = args[:data_split_column] if args.key?(:data_split_column) - @data_split_eval_fraction = args[:data_split_eval_fraction] if args.key?(:data_split_eval_fraction) - @data_split_method = args[:data_split_method] if args.key?(:data_split_method) - @distance_type = args[:distance_type] if args.key?(:distance_type) - @early_stop = args[:early_stop] if args.key?(:early_stop) - @initial_learn_rate = args[:initial_learn_rate] if args.key?(:initial_learn_rate) - @input_label_columns = args[:input_label_columns] if args.key?(:input_label_columns) - @l1_regularization = args[:l1_regularization] if args.key?(:l1_regularization) - @l2_regularization = args[:l2_regularization] if args.key?(:l2_regularization) - @label_class_weights = args[:label_class_weights] if args.key?(:label_class_weights) - @learn_rate = args[:learn_rate] if args.key?(:learn_rate) - @learn_rate_strategy = args[:learn_rate_strategy] if args.key?(:learn_rate_strategy) - @loss_type = args[:loss_type] if args.key?(:loss_type) - @max_iterations = args[:max_iterations] if args.key?(:max_iterations) - @min_relative_progress = args[:min_relative_progress] if args.key?(:min_relative_progress) - @num_clusters = args[:num_clusters] if args.key?(:num_clusters) - @warm_start = args[:warm_start] if args.key?(:warm_start) - end - end - - # Information about a single training query run for the model. - class TrainingRun - include Google::Apis::Core::Hashable - - # Evaluation metrics of a model. These are either computed on all - # training data or just the eval data based on whether eval data was used - # during training. - # Corresponds to the JSON property `evaluationMetrics` - # @return [Google::Apis::BigqueryV2::EvaluationMetrics] - attr_accessor :evaluation_metrics - - # Output of each iteration run, results.size() <= max_iterations. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - # The start time of this training run. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Options that were used for this training run, includes - # user specified and default options that were used. - # Corresponds to the JSON property `trainingOptions` - # @return [Google::Apis::BigqueryV2::TrainingOptions] - attr_accessor :training_options - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics) - @results = args[:results] if args.key?(:results) - @start_time = args[:start_time] if args.key?(:start_time) - @training_options = args[:training_options] if args.key?(:training_options) - end - end - # class UserDefinedFunctionResource include Google::Apis::Core::Hashable diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 0b647f127..915c7b9ce 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -22,12 +22,6 @@ module Google module Apis module BigqueryV2 - class AggregateClassificationMetrics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class BigQueryModelTraining class Representation < Google::Apis::Core::JsonRepresentation; end @@ -52,18 +46,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BinaryClassificationMetrics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BinaryConfusionMatrix - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class BqmlIterationResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,30 +64,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ClusterInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Clustering class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ClusteringMetrics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ConfusionMatrix - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CsvOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,24 +118,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Entry - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ErrorProto class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class EvaluationMetrics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ExplainQueryStage class Representation < Google::Apis::Core::JsonRepresentation; end @@ -208,12 +160,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class IterationResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Job class Representation < Google::Apis::Core::JsonRepresentation; end @@ -316,30 +262,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListModelsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LocationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class MaterializedViewDefinition class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Model - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ModelDefinition class Representation < Google::Apis::Core::JsonRepresentation; end @@ -352,18 +280,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ModelReference - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MultiClassClassificationMetrics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ProjectList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -436,42 +352,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RegressionMetrics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class RoutineReference class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Row - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StandardSqlDataType - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StandardSqlField - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StandardSqlStructType - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Streamingbuffer class Representation < Google::Apis::Core::JsonRepresentation; end @@ -574,18 +460,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TrainingOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TrainingRun - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class UserDefinedFunctionResource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -598,19 +472,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AggregateClassificationMetrics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :accuracy, as: 'accuracy' - property :f1_score, as: 'f1Score' - property :log_loss, as: 'logLoss' - property :precision, as: 'precision' - property :recall, as: 'recall' - property :roc_auc, as: 'rocAuc' - property :threshold, as: 'threshold' - end - end - class BigQueryModelTraining # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -653,29 +514,6 @@ module Google end end - class BinaryClassificationMetrics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :aggregate_classification_metrics, as: 'aggregateClassificationMetrics', class: Google::Apis::BigqueryV2::AggregateClassificationMetrics, decorator: Google::Apis::BigqueryV2::AggregateClassificationMetrics::Representation - - collection :binary_confusion_matrix_list, as: 'binaryConfusionMatrixList', class: Google::Apis::BigqueryV2::BinaryConfusionMatrix, decorator: Google::Apis::BigqueryV2::BinaryConfusionMatrix::Representation - - end - end - - class BinaryConfusionMatrix - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :false_negatives, :numeric_string => true, as: 'falseNegatives' - property :false_positives, :numeric_string => true, as: 'falsePositives' - property :positive_class_threshold, as: 'positiveClassThreshold' - property :precision, as: 'precision' - property :recall, as: 'recall' - property :true_negatives, :numeric_string => true, as: 'trueNegatives' - property :true_positives, :numeric_string => true, as: 'truePositives' - end - end - class BqmlIterationResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -715,15 +553,6 @@ module Google end end - class ClusterInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :centroid_id, :numeric_string => true, as: 'centroidId' - property :cluster_radius, as: 'clusterRadius' - property :cluster_size, :numeric_string => true, as: 'clusterSize' - end - end - class Clustering # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -731,23 +560,6 @@ module Google end end - class ClusteringMetrics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :davies_bouldin_index, as: 'daviesBouldinIndex' - property :mean_squared_distance, as: 'meanSquaredDistance' - end - end - - class ConfusionMatrix - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :confidence_threshold, as: 'confidenceThreshold' - collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::Row, decorator: Google::Apis::BigqueryV2::Row::Representation - - end - end - class CsvOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -844,14 +656,6 @@ module Google end end - class Entry - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :item_count, :numeric_string => true, as: 'itemCount' - property :predicted_label, as: 'predictedLabel' - end - end - class ErrorProto # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -862,20 +666,6 @@ module Google end end - class EvaluationMetrics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :binary_classification_metrics, as: 'binaryClassificationMetrics', class: Google::Apis::BigqueryV2::BinaryClassificationMetrics, decorator: Google::Apis::BigqueryV2::BinaryClassificationMetrics::Representation - - property :clustering_metrics, as: 'clusteringMetrics', class: Google::Apis::BigqueryV2::ClusteringMetrics, decorator: Google::Apis::BigqueryV2::ClusteringMetrics::Representation - - property :multi_class_classification_metrics, as: 'multiClassClassificationMetrics', class: Google::Apis::BigqueryV2::MultiClassClassificationMetrics, decorator: Google::Apis::BigqueryV2::MultiClassClassificationMetrics::Representation - - property :regression_metrics, as: 'regressionMetrics', class: Google::Apis::BigqueryV2::RegressionMetrics, decorator: Google::Apis::BigqueryV2::RegressionMetrics::Representation - - end - end - class ExplainQueryStage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -979,19 +769,6 @@ module Google end end - class IterationResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :cluster_infos, as: 'clusterInfos', class: Google::Apis::BigqueryV2::ClusterInfo, decorator: Google::Apis::BigqueryV2::ClusterInfo::Representation - - property :duration_ms, :numeric_string => true, as: 'durationMs' - property :eval_loss, as: 'evalLoss' - property :index, as: 'index' - property :learn_rate, as: 'learnRate' - property :training_loss, as: 'trainingLoss' - end - end - class Job # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1291,22 +1068,6 @@ module Google end end - class ListModelsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :models, as: 'models', class: Google::Apis::BigqueryV2::Model, decorator: Google::Apis::BigqueryV2::Model::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class LocationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :legacy_location_id, as: 'legacyLocationId' - end - end - class MaterializedViewDefinition # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1315,29 +1076,6 @@ module Google end end - class Model - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :creation_time, :numeric_string => true, as: 'creationTime' - property :description, as: 'description' - property :etag, as: 'etag' - property :expiration_time, :numeric_string => true, as: 'expirationTime' - collection :feature_columns, as: 'featureColumns', class: Google::Apis::BigqueryV2::StandardSqlField, decorator: Google::Apis::BigqueryV2::StandardSqlField::Representation - - property :friendly_name, as: 'friendlyName' - collection :label_columns, as: 'labelColumns', class: Google::Apis::BigqueryV2::StandardSqlField, decorator: Google::Apis::BigqueryV2::StandardSqlField::Representation - - hash :labels, as: 'labels' - property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime' - property :location, as: 'location' - property :model_reference, as: 'modelReference', class: Google::Apis::BigqueryV2::ModelReference, decorator: Google::Apis::BigqueryV2::ModelReference::Representation - - property :model_type, as: 'modelType' - collection :training_runs, as: 'trainingRuns', class: Google::Apis::BigqueryV2::TrainingRun, decorator: Google::Apis::BigqueryV2::TrainingRun::Representation - - end - end - class ModelDefinition # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1357,25 +1095,6 @@ module Google end end - class ModelReference - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :dataset_id, as: 'datasetId' - property :model_id, as: 'modelId' - property :project_id, as: 'projectId' - end - end - - class MultiClassClassificationMetrics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :aggregate_classification_metrics, as: 'aggregateClassificationMetrics', class: Google::Apis::BigqueryV2::AggregateClassificationMetrics, decorator: Google::Apis::BigqueryV2::AggregateClassificationMetrics::Representation - - collection :confusion_matrix_list, as: 'confusionMatrixList', class: Google::Apis::BigqueryV2::ConfusionMatrix, decorator: Google::Apis::BigqueryV2::ConfusionMatrix::Representation - - end - end - class ProjectList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1520,17 +1239,6 @@ module Google end end - class RegressionMetrics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :mean_absolute_error, as: 'meanAbsoluteError' - property :mean_squared_error, as: 'meanSquaredError' - property :mean_squared_log_error, as: 'meanSquaredLogError' - property :median_absolute_error, as: 'medianAbsoluteError' - property :r_squared, as: 'rSquared' - end - end - class RoutineReference # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1540,43 +1248,6 @@ module Google end end - class Row - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :actual_label, as: 'actualLabel' - collection :entries, as: 'entries', class: Google::Apis::BigqueryV2::Entry, decorator: Google::Apis::BigqueryV2::Entry::Representation - - end - end - - class StandardSqlDataType - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :array_element_type, as: 'arrayElementType', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation - - property :struct_type, as: 'structType', class: Google::Apis::BigqueryV2::StandardSqlStructType, decorator: Google::Apis::BigqueryV2::StandardSqlStructType::Representation - - property :type_kind, as: 'typeKind' - end - end - - class StandardSqlField - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :type, as: 'type', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation - - end - end - - class StandardSqlStructType - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::StandardSqlField, decorator: Google::Apis::BigqueryV2::StandardSqlField::Representation - - end - end - class Streamingbuffer # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1784,42 +1455,6 @@ module Google end end - class TrainingOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data_split_column, as: 'dataSplitColumn' - property :data_split_eval_fraction, as: 'dataSplitEvalFraction' - property :data_split_method, as: 'dataSplitMethod' - property :distance_type, as: 'distanceType' - property :early_stop, as: 'earlyStop' - property :initial_learn_rate, as: 'initialLearnRate' - collection :input_label_columns, as: 'inputLabelColumns' - property :l1_regularization, as: 'l1Regularization' - property :l2_regularization, as: 'l2Regularization' - hash :label_class_weights, as: 'labelClassWeights' - property :learn_rate, as: 'learnRate' - property :learn_rate_strategy, as: 'learnRateStrategy' - property :loss_type, as: 'lossType' - property :max_iterations, :numeric_string => true, as: 'maxIterations' - property :min_relative_progress, as: 'minRelativeProgress' - property :num_clusters, :numeric_string => true, as: 'numClusters' - property :warm_start, as: 'warmStart' - end - end - - class TrainingRun - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :evaluation_metrics, as: 'evaluationMetrics', class: Google::Apis::BigqueryV2::EvaluationMetrics, decorator: Google::Apis::BigqueryV2::EvaluationMetrics::Representation - - collection :results, as: 'results', class: Google::Apis::BigqueryV2::IterationResult, decorator: Google::Apis::BigqueryV2::IterationResult::Representation - - property :start_time, as: 'startTime' - property :training_options, as: 'trainingOptions', class: Google::Apis::BigqueryV2::TrainingOptions, decorator: Google::Apis::BigqueryV2::TrainingOptions::Representation - - end - end - class UserDefinedFunctionResource # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/bigquery_v2/service.rb b/generated/google/apis/bigquery_v2/service.rb index 8e153a953..bbf2efb2f 100644 --- a/generated/google/apis/bigquery_v2/service.rb +++ b/generated/google/apis/bigquery_v2/service.rb @@ -577,168 +577,6 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the model specified by modelId from the dataset. - # @param [String] project_id - # Project ID of the model to delete. - # @param [String] dataset_id - # Dataset ID of the model to delete. - # @param [String] model_id - # Model ID of the model to delete. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_model(project_id, dataset_id, model_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}', options) - command.params['projectId'] = project_id unless project_id.nil? - command.params['datasetId'] = dataset_id unless dataset_id.nil? - command.params['modelId'] = model_id unless model_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Gets the specified model resource by model ID. - # @param [String] project_id - # Project ID of the requested model. - # @param [String] dataset_id - # Dataset ID of the requested model. - # @param [String] model_id - # Model ID of the requested model. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::BigqueryV2::Model] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::BigqueryV2::Model] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_model(project_id, dataset_id, model_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}', options) - command.response_representation = Google::Apis::BigqueryV2::Model::Representation - command.response_class = Google::Apis::BigqueryV2::Model - command.params['projectId'] = project_id unless project_id.nil? - command.params['datasetId'] = dataset_id unless dataset_id.nil? - command.params['modelId'] = model_id unless model_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Lists all models in the specified dataset. Requires the READER dataset - # role. - # @param [String] project_id - # Project ID of the models to list. - # @param [String] dataset_id - # Dataset ID of the models to list. - # @param [Fixnum] max_results - # The maximum number of results per page. - # @param [String] page_token - # Page token, returned by a previous call to request the next page of - # results - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::BigqueryV2::ListModelsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::BigqueryV2::ListModelsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_models(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/models', options) - command.response_representation = Google::Apis::BigqueryV2::ListModelsResponse::Representation - command.response_class = Google::Apis::BigqueryV2::ListModelsResponse - command.params['projectId'] = project_id unless project_id.nil? - command.params['datasetId'] = dataset_id unless dataset_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Patch specific fields in the specified model. - # @param [String] project_id - # Project ID of the model to patch. - # @param [String] dataset_id - # Dataset ID of the model to patch. - # @param [String] model_id - # Model ID of the model to patch. - # @param [Google::Apis::BigqueryV2::Model] model_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::BigqueryV2::Model] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::BigqueryV2::Model] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_model(project_id, dataset_id, model_id, model_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}', options) - command.request_representation = Google::Apis::BigqueryV2::Model::Representation - command.request_object = model_object - command.response_representation = Google::Apis::BigqueryV2::Model::Representation - command.response_class = Google::Apis::BigqueryV2::Model - command.params['projectId'] = project_id unless project_id.nil? - command.params['datasetId'] = dataset_id unless dataset_id.nil? - command.params['modelId'] = model_id unless model_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Returns the email address of the service account for your project used for # interactions with Google Cloud KMS. # @param [String] project_id diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 2e2982e2d..ba57cb3a9 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20190331' + REVISION = '20190430' # See, edit, share, and permanently delete all the calendars you can access using Google Calendar AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/calendar_v3/classes.rb b/generated/google/apis/calendar_v3/classes.rb index 93915f05a..f18467739 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -677,7 +677,7 @@ module Google attr_accessor :parameters # The signature of the conference data. - # Genereated on server side. Must be preserved while copying the conference data + # Generated on server side. Must be preserved while copying the conference data # between events, otherwise the conference data will not be copied. # Unset for a conference with a failed create request. # Optional for a conference with a pending create request. diff --git a/generated/google/apis/calendar_v3/service.rb b/generated/google/apis/calendar_v3/service.rb index 4a89812ec..084862833 100644 --- a/generated/google/apis/calendar_v3/service.rb +++ b/generated/google/apis/calendar_v3/service.rb @@ -1346,14 +1346,14 @@ module Google # Learn more about incremental synchronization. # Optional. The default is to return all entries. # @param [DateTime] time_max - # Upper bound (exclusive) for an event's end time to filter by. Optional. The - # default is not to filter by end time. Must be an RFC3339 timestamp with + # Upper bound (exclusive) for an event's start time to filter by. Optional. The + # default is not to filter by start time. Must be an RFC3339 timestamp with # mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06- # 03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMin is set, # timeMax must be greater than timeMin. # @param [DateTime] time_min - # Lower bound (inclusive) for an event's start time to filter by. Optional. The - # default is not to filter by start time. Must be an RFC3339 timestamp with + # Lower bound (exclusive) for an event's end time to filter by. Optional. The + # default is not to filter by end time. Must be an RFC3339 timestamp with # mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06- # 03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMax is set, # timeMin must be smaller than timeMax. @@ -1733,14 +1733,14 @@ module Google # Learn more about incremental synchronization. # Optional. The default is to return all entries. # @param [DateTime] time_max - # Upper bound (exclusive) for an event's end time to filter by. Optional. The - # default is not to filter by end time. Must be an RFC3339 timestamp with + # Upper bound (exclusive) for an event's start time to filter by. Optional. The + # default is not to filter by start time. Must be an RFC3339 timestamp with # mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06- # 03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMin is set, # timeMax must be greater than timeMin. # @param [DateTime] time_min - # Lower bound (inclusive) for an event's start time to filter by. Optional. The - # default is not to filter by start time. Must be an RFC3339 timestamp with + # Lower bound (exclusive) for an event's end time to filter by. Optional. The + # default is not to filter by end time. Must be an RFC3339 timestamp with # mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06- # 03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMax is set, # timeMin must be smaller than timeMax. diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index dbbd16517..dd83d2795 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20190323' + REVISION = '20190501' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index ea30101ba..a78c7a6ea 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -654,6 +654,11 @@ module Google # @return [Hash] attr_accessor :substitutions + # Tags for annotation of a `BuildTrigger` + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + # Location of the source in a Google Cloud Source Repository. # Corresponds to the JSON property `triggerTemplate` # @return [Google::Apis::CloudbuildV1::RepoSource] @@ -675,6 +680,7 @@ module Google @ignored_files = args[:ignored_files] if args.key?(:ignored_files) @included_files = args[:included_files] if args.key?(:included_files) @substitutions = args[:substitutions] if args.key?(:substitutions) + @tags = args[:tags] if args.key?(:tags) @trigger_template = args[:trigger_template] if args.key?(:trigger_template) end end diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index 9bfc700d7..31745d6ae 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -341,6 +341,7 @@ module Google collection :ignored_files, as: 'ignoredFiles' collection :included_files, as: 'includedFiles' hash :substitutions, as: 'substitutions' + collection :tags, as: 'tags' property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation end diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 65119acaa..f2e1a9a52 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2 VERSION = 'V2' - REVISION = '20190420' + REVISION = '20190429' # 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/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index e2328ada4..a9f418a60 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -446,7 +446,7 @@ module Google # @return [String] attr_accessor :input_audio - # Instructs the speech synthesizer how to generate the output audio content. + # Instructs the speech synthesizer on how to generate the output audio content. # Corresponds to the JSON property `outputAudioConfig` # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig] attr_accessor :output_audio_config @@ -493,7 +493,7 @@ module Google # @return [String] attr_accessor :output_audio - # Instructs the speech synthesizer how to generate the output audio content. + # Instructs the speech synthesizer on how to generate the output audio content. # Corresponds to the JSON property `outputAudioConfig` # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig] attr_accessor :output_audio_config @@ -1979,7 +1979,7 @@ module Google end end - # Instructs the speech synthesizer how to generate the output audio content. + # Instructs the speech synthesizer on how to generate the output audio content. class GoogleCloudDialogflowV2OutputAudioConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/digitalassetlinks_v1.rb b/generated/google/apis/digitalassetlinks_v1.rb index ab2da38bd..60dc7ae6c 100644 --- a/generated/google/apis/digitalassetlinks_v1.rb +++ b/generated/google/apis/digitalassetlinks_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/digital-asset-links/ module DigitalassetlinksV1 VERSION = 'V1' - REVISION = '20181103' + REVISION = '20190429' end end end diff --git a/generated/google/apis/digitalassetlinks_v1/service.rb b/generated/google/apis/digitalassetlinks_v1/service.rb index d18fada53..0b456cdf1 100644 --- a/generated/google/apis/digitalassetlinks_v1/service.rb +++ b/generated/google/apis/digitalassetlinks_v1/service.rb @@ -61,10 +61,11 @@ module Google # an HTTPS website or an Android app, the API will ensure that any # statements used to generate the response have been made in a secure way by # the owner of that asset. Conversely, if the source asset is an insecure - # HTTP website (that is, the URL starts with `http://` instead of `https://`), - # the API cannot verify its statements securely, and it is not possible to - # ensure that the website's statements have not been altered by a third - # party. For more information, see the [Digital Asset Links technical design + # HTTP website (that is, the URL starts with `http://` instead of + # `https://`), the API cannot verify its statements securely, and it is not + # possible to ensure that the website's statements have not been altered by a + # third party. For more information, see the [Digital Asset Links technical + # design # specification](https://github.com/google/digitalassetlinks/blob/master/well- # known/details.md). # @param [String] relation diff --git a/generated/google/apis/dns_v2beta1.rb b/generated/google/apis/dns_v2beta1.rb index 651dff86d..adce91442 100644 --- a/generated/google/apis/dns_v2beta1.rb +++ b/generated/google/apis/dns_v2beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV2beta1 VERSION = 'V2beta1' - REVISION = '20190418' + REVISION = '20190425' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dns_v2beta1/service.rb b/generated/google/apis/dns_v2beta1/service.rb index cd1f2093f..00bf51a5f 100644 --- a/generated/google/apis/dns_v2beta1/service.rb +++ b/generated/google/apis/dns_v2beta1/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://www.googleapis.com/', 'dns/v2beta1/projects/') + super('https://dns.googleapis.com/', 'dns/v2beta1/projects/') @batch_path = 'batch/dns/v2beta1' end diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index 110e99de7..9399dfb36 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20190318' + REVISION = '20190429' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index c6453e09d..a19553a7f 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -22,6 +22,28 @@ module Google module Apis module IamV1 + # Audit log information specific to Cloud IAM admin APIs. This message is + # serialized as an `Any` type in the `ServiceData` message of an + # `AuditLog` message. + class AdminAuditData + include Google::Apis::Core::Hashable + + # A PermissionDelta message to record the added_permissions and + # removed_permissions inside a role. + # Corresponds to the JSON property `permissionDelta` + # @return [Google::Apis::IamV1::PermissionDelta] + attr_accessor :permission_delta + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permission_delta = args[:permission_delta] if args.key?(:permission_delta) + end + end + # Specifies the audit configuration for a service. # The configuration determines which permission types are logged, and what # identities, if any, are exempted from logging. @@ -815,6 +837,32 @@ module Google end end + # A PermissionDelta message to record the added_permissions and + # removed_permissions inside a role. + class PermissionDelta + include Google::Apis::Core::Hashable + + # Added permissions. + # Corresponds to the JSON property `addedPermissions` + # @return [Array] + attr_accessor :added_permissions + + # Removed permissions. + # Corresponds to the JSON property `removedPermissions` + # @return [Array] + attr_accessor :removed_permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @added_permissions = args[:added_permissions] if args.key?(:added_permissions) + @removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions) + end + end + # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. # A `Policy` consists of a list of `bindings`. A `binding` binds a list of diff --git a/generated/google/apis/iam_v1/representations.rb b/generated/google/apis/iam_v1/representations.rb index 9acb3dd9e..3cd2e2a27 100644 --- a/generated/google/apis/iam_v1/representations.rb +++ b/generated/google/apis/iam_v1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module IamV1 + class AdminAuditData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AuditConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -148,6 +154,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PermissionDelta + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -274,6 +286,14 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AdminAuditData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :permission_delta, as: 'permissionDelta', class: Google::Apis::IamV1::PermissionDelta, decorator: Google::Apis::IamV1::PermissionDelta::Representation + + end + end + class AuditConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -464,6 +484,14 @@ module Google end end + class PermissionDelta + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :added_permissions, as: 'addedPermissions' + collection :removed_permissions, as: 'removedPermissions' + end + end + class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/iam_v1/service.rb b/generated/google/apis/iam_v1/service.rb index 1f88b9b5f..805e01dfa 100644 --- a/generated/google/apis/iam_v1/service.rb +++ b/generated/google/apis/iam_v1/service.rb @@ -691,8 +691,20 @@ module Google execute_or_queue_command(command, &block) end - # Disables a ServiceAccount. - # The API is currently in alpha phase. + # DisableServiceAccount is currently in the alpha launch stage. + # Disables a ServiceAccount, + # which immediately prevents the service account from authenticating and + # gaining access to APIs. + # Disabled service accounts can be safely restored by using + # EnableServiceAccount at any point. Deleted service accounts cannot be + # restored using this method. + # Disabling a service account that is bound to VMs, Apps, Functions, or + # other jobs will cause those jobs to lose access to resources if they are + # using the disabled service account. + # To improve reliability of your services and avoid unexpected outages, it + # is recommended to first disable a service account rather than delete it. + # After disabling the service account, wait at least 24 hours to verify there + # are no unintended consequences, and then delete the service account. # @param [String] name # The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. @@ -729,8 +741,14 @@ module Google execute_or_queue_command(command, &block) end - # Enables a ServiceAccount. - # The API is currently in alpha phase. + # EnableServiceAccount is currently in the alpha launch stage. + # Restores a disabled ServiceAccount + # that has been manually disabled by using DisableServiceAccount. Service + # accounts that have been disabled by other means or for other reasons, + # such as abuse, cannot be restored using this method. + # EnableServiceAccount will have no effect on a service account that is + # not disabled. Enabling an already enabled service account will have no + # effect. # @param [String] name # The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT_UNIQUE_ID`'. @@ -1139,8 +1157,7 @@ module Google # PatchServiceAccount instead. # Updates a ServiceAccount. # Currently, only the following fields are updatable: - # `display_name` . - # The `etag` is mandatory. + # `display_name` and `description`. # @param [String] name # The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index c891639b8..ede655121 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20190422' + REVISION = '20190501' # 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/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index 4a87c0d7a..f12052c92 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -2207,6 +2207,11 @@ module Google # @return [Array] attr_accessor :labels + # Optional. The launch stage of the monitored resource definition. + # Corresponds to the JSON property `launchStage` + # @return [String] + attr_accessor :launch_stage + # Optional. The resource name of the monitored resource descriptor: # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where # `type` is the value of the `type` field in this object and @@ -2233,6 +2238,7 @@ module Google @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) + @launch_stage = args[:launch_stage] if args.key?(:launch_stage) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end diff --git a/generated/google/apis/serviceconsumermanagement_v1/representations.rb b/generated/google/apis/serviceconsumermanagement_v1/representations.rb index d0d214b82..839fe745f 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/representations.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/representations.rb @@ -973,6 +973,7 @@ module Google property :display_name, as: 'displayName' collection :labels, as: 'labels', class: Google::Apis::ServiceconsumermanagementV1::LabelDescriptor, decorator: Google::Apis::ServiceconsumermanagementV1::LabelDescriptor::Representation + property :launch_stage, as: 'launchStage' property :name, as: 'name' property :type, as: 'type' end diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index d01e10f08..53b242b0b 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20190412' + REVISION = '20190501' # 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/servicenetworking_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index b2b56ecec..8d44f1e79 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -2222,6 +2222,11 @@ module Google # @return [Array] attr_accessor :labels + # Optional. The launch stage of the monitored resource definition. + # Corresponds to the JSON property `launchStage` + # @return [String] + attr_accessor :launch_stage + # Optional. The resource name of the monitored resource descriptor: # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where # `type` is the value of the `type` field in this object and @@ -2248,6 +2253,7 @@ module Google @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) + @launch_stage = args[:launch_stage] if args.key?(:launch_stage) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end diff --git a/generated/google/apis/servicenetworking_v1/representations.rb b/generated/google/apis/servicenetworking_v1/representations.rb index a95013d47..4e7ad36cd 100644 --- a/generated/google/apis/servicenetworking_v1/representations.rb +++ b/generated/google/apis/servicenetworking_v1/representations.rb @@ -826,6 +826,7 @@ module Google property :display_name, as: 'displayName' collection :labels, as: 'labels', class: Google::Apis::ServicenetworkingV1::LabelDescriptor, decorator: Google::Apis::ServicenetworkingV1::LabelDescriptor::Representation + property :launch_stage, as: 'launchStage' property :name, as: 'name' property :type, as: 'type' end diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index 204802f4c..98fd3995e 100644 --- a/generated/google/apis/servicenetworking_v1beta.rb +++ b/generated/google/apis/servicenetworking_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1beta VERSION = 'V1beta' - REVISION = '20190412' + REVISION = '20190501' # 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/servicenetworking_v1beta/classes.rb b/generated/google/apis/servicenetworking_v1beta/classes.rb index eb3cfab9e..50f62f591 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -2162,6 +2162,11 @@ module Google # @return [Array] attr_accessor :labels + # Optional. The launch stage of the monitored resource definition. + # Corresponds to the JSON property `launchStage` + # @return [String] + attr_accessor :launch_stage + # Optional. The resource name of the monitored resource descriptor: # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where # `type` is the value of the `type` field in this object and @@ -2188,6 +2193,7 @@ module Google @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) + @launch_stage = args[:launch_stage] if args.key?(:launch_stage) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end diff --git a/generated/google/apis/servicenetworking_v1beta/representations.rb b/generated/google/apis/servicenetworking_v1beta/representations.rb index fc9f6b127..c7e217fe1 100644 --- a/generated/google/apis/servicenetworking_v1beta/representations.rb +++ b/generated/google/apis/servicenetworking_v1beta/representations.rb @@ -787,6 +787,7 @@ module Google property :display_name, as: 'displayName' collection :labels, as: 'labels', class: Google::Apis::ServicenetworkingV1beta::LabelDescriptor, decorator: Google::Apis::ServicenetworkingV1beta::LabelDescriptor::Representation + property :launch_stage, as: 'launchStage' property :name, as: 'name' property :type, as: 'type' end diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 3119df564..a2ac54951 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20190412' + REVISION = '20190501' # 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/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index 8f15f834d..8d3b715a3 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -2923,6 +2923,11 @@ module Google # @return [Array] attr_accessor :labels + # Optional. The launch stage of the monitored resource definition. + # Corresponds to the JSON property `launchStage` + # @return [String] + attr_accessor :launch_stage + # Optional. The resource name of the monitored resource descriptor: # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where # `type` is the value of the `type` field in this object and @@ -2949,6 +2954,7 @@ module Google @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) + @launch_stage = args[:launch_stage] if args.key?(:launch_stage) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end diff --git a/generated/google/apis/serviceusage_v1/representations.rb b/generated/google/apis/serviceusage_v1/representations.rb index 9f2e5ed62..2e0ab0049 100644 --- a/generated/google/apis/serviceusage_v1/representations.rb +++ b/generated/google/apis/serviceusage_v1/representations.rb @@ -1006,6 +1006,7 @@ module Google property :display_name, as: 'displayName' collection :labels, as: 'labels', class: Google::Apis::ServiceusageV1::LabelDescriptor, decorator: Google::Apis::ServiceusageV1::LabelDescriptor::Representation + property :launch_stage, as: 'launchStage' property :name, as: 'name' property :type, as: 'type' end diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index 7637bc7ae..a98e33b12 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20190412' + REVISION = '20190501' # 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/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index 685c5a361..1f407467e 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -2899,6 +2899,11 @@ module Google # @return [Array] attr_accessor :labels + # Optional. The launch stage of the monitored resource definition. + # Corresponds to the JSON property `launchStage` + # @return [String] + attr_accessor :launch_stage + # Optional. The resource name of the monitored resource descriptor: # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where # `type` is the value of the `type` field in this object and @@ -2925,6 +2930,7 @@ module Google @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) + @launch_stage = args[:launch_stage] if args.key?(:launch_stage) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end diff --git a/generated/google/apis/serviceusage_v1beta1/representations.rb b/generated/google/apis/serviceusage_v1beta1/representations.rb index f8f736352..b8723d9de 100644 --- a/generated/google/apis/serviceusage_v1beta1/representations.rb +++ b/generated/google/apis/serviceusage_v1beta1/representations.rb @@ -1005,6 +1005,7 @@ module Google property :display_name, as: 'displayName' collection :labels, as: 'labels', class: Google::Apis::ServiceusageV1beta1::LabelDescriptor, decorator: Google::Apis::ServiceusageV1beta1::LabelDescriptor::Representation + property :launch_stage, as: 'launchStage' property :name, as: 'name' property :type, as: 'type' end diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb index 4a4badc3a..78e5734a1 100644 --- a/generated/google/apis/spanner_v1.rb +++ b/generated/google/apis/spanner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/spanner/ module SpannerV1 VERSION = 'V1' - REVISION = '20190403' + REVISION = '20190416' # 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/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb index 04aaf1542..5884afb15 100644 --- a/generated/google/apis/spanner_v1/classes.rb +++ b/generated/google/apis/spanner_v1/classes.rb @@ -846,7 +846,7 @@ module Google # serially, such that the effects of statement i are visible to statement # i+1. Each statement must be a DML statement. Execution will stop at the # first failed statement; the remaining statements will not run. - # REQUIRES: statements_size() > 0. + # REQUIRES: `statements_size()` > 0. # Corresponds to the JSON property `statements` # @return [Array] attr_accessor :statements @@ -876,17 +876,17 @@ module Google # If a statement fails, the error is returned as part of the response payload. # Clients can determine whether all DML statements have run successfully, or if # a statement failed, using one of the following approaches: - # 1. Check if 'status' field is OkStatus. - # 2. Check if result_sets_size() equals the number of statements in + # 1. Check if `'status'` field is `OkStatus`. + # 2. Check if `result_sets_size()` equals the number of statements in # ExecuteBatchDmlRequest. # Example 1: A request with 5 DML statements, all executed successfully. # Result: A response with 5 ResultSets, one for each statement in the same - # order, and an OK status. + # order, and an `OkStatus`. # Example 2: A request with 5 DML statements. The 3rd statement has a syntax # error. # Result: A response with 2 ResultSets, for the first 2 statements that - # run successfully, and a syntax error (INVALID_ARGUMENT) status. From - # result_set_size() client can determine that the 3rd statement has failed. + # run successfully, and a syntax error (`INVALID_ARGUMENT`) status. From + # `result_set_size()` client can determine that the 3rd statement has failed. class ExecuteBatchDmlResponse include Google::Apis::Core::Hashable @@ -1264,6 +1264,12 @@ module Google # @return [String] attr_accessor :name + # The geographic placement of nodes in this instance configuration and their + # replication properties. + # Corresponds to the JSON property `replicas` + # @return [Array] + attr_accessor :replicas + def initialize(**args) update!(**args) end @@ -1272,6 +1278,7 @@ module Google def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) + @replicas = args[:replicas] if args.key?(:replicas) end end @@ -2390,6 +2397,41 @@ module Google end end + # + class ReplicaInfo + include Google::Apis::Core::Hashable + + # If true, this location is designated as the default leader location where + # leader replicas are placed. See the [region types + # documentation](https://cloud.google.com/spanner/docs/instances#region_types) + # for more details. + # Corresponds to the JSON property `defaultLeaderLocation` + # @return [Boolean] + attr_accessor :default_leader_location + alias_method :default_leader_location?, :default_leader_location + + # The location of the serving resources, e.g. "us-central1". + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # The type of replica. + # 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) + @default_leader_location = args[:default_leader_location] if args.key?(:default_leader_location) + @location = args[:location] if args.key?(:location) + @type = args[:type] if args.key?(:type) + end + end + # Results from Read or # ExecuteSql. class ResultSet diff --git a/generated/google/apis/spanner_v1/representations.rb b/generated/google/apis/spanner_v1/representations.rb index 8d67e9706..3b0a6650d 100644 --- a/generated/google/apis/spanner_v1/representations.rb +++ b/generated/google/apis/spanner_v1/representations.rb @@ -286,6 +286,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ReplicaInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResultSet class Representation < Google::Apis::Core::JsonRepresentation; end @@ -609,6 +615,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :name, as: 'name' + collection :replicas, as: 'replicas', class: Google::Apis::SpannerV1::ReplicaInfo, decorator: Google::Apis::SpannerV1::ReplicaInfo::Representation + end end @@ -849,6 +857,15 @@ module Google end end + class ReplicaInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default_leader_location, as: 'defaultLeaderLocation' + property :location, as: 'location' + property :type, as: 'type' + end + end + class ResultSet # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 5f6ac3c47..b6fc7b370 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '20190416' + REVISION = '20190426' # 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/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index 64d1b21cb..de402aa84 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -1028,9 +1028,9 @@ module Google # @return [String] attr_accessor :kind - # Key metadata. + # JSON template to produce a JSON-style HMAC Key metadata resource. # Corresponds to the JSON property `metadata` - # @return [Object] + # @return [Google::Apis::StorageV1::HmacKeyMetadata] attr_accessor :metadata # HMAC secret key material. diff --git a/generated/google/apis/storage_v1/representations.rb b/generated/google/apis/storage_v1/representations.rb index 3179a93e0..9b26c2fcd 100644 --- a/generated/google/apis/storage_v1/representations.rb +++ b/generated/google/apis/storage_v1/representations.rb @@ -539,7 +539,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' - property :metadata, as: 'metadata' + property :metadata, as: 'metadata', class: Google::Apis::StorageV1::HmacKeyMetadata, decorator: Google::Apis::StorageV1::HmacKeyMetadata::Representation + property :secret, as: 'secret' end end diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 20401f973..3450ac75e 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20190429' + REVISION = '20190502' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'