Autogenerated update (2019-05-17)
Update: - bigquery_v2 - cloudresourcemanager_v1 - cloudresourcemanager_v2 - cloudresourcemanager_v2beta1 - cloudtasks_v2beta2 - container_v1 - datastore_v1 - datastore_v1beta3 - file_v1 - file_v1beta1 - monitoring_v3 - people_v1 - servicemanagement_v1
This commit is contained in:
parent
4dc7b90293
commit
e74aafefe4
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190501'
|
||||
REVISION = '20190510'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,6 +22,12 @@ 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
|
||||
|
||||
|
@ -46,6 +52,18 @@ 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
|
||||
|
||||
|
@ -64,12 +82,30 @@ 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
|
||||
|
||||
|
@ -118,12 +154,24 @@ 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
|
||||
|
||||
|
@ -160,6 +208,12 @@ 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
|
||||
|
||||
|
@ -262,12 +316,30 @@ 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
|
||||
|
||||
|
@ -280,6 +352,18 @@ 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
|
||||
|
||||
|
@ -352,12 +436,42 @@ 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
|
||||
|
||||
|
@ -460,6 +574,18 @@ 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
|
||||
|
||||
|
@ -472,6 +598,19 @@ 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
|
||||
|
@ -514,6 +653,29 @@ 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
|
||||
|
@ -553,6 +715,15 @@ 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
|
||||
|
@ -560,6 +731,23 @@ 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
|
||||
|
@ -656,6 +844,14 @@ 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
|
||||
|
@ -666,6 +862,20 @@ 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
|
||||
|
@ -769,6 +979,19 @@ 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
|
||||
|
@ -1068,6 +1291,22 @@ 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
|
||||
|
@ -1076,6 +1315,29 @@ 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
|
||||
|
@ -1095,6 +1357,25 @@ 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
|
||||
|
@ -1239,6 +1520,17 @@ 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
|
||||
|
@ -1248,6 +1540,43 @@ 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
|
||||
|
@ -1455,6 +1784,44 @@ 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 :model_uri, as: 'modelUri'
|
||||
property :num_clusters, :numeric_string => true, as: 'numClusters'
|
||||
property :optimization_strategy, as: 'optimizationStrategy'
|
||||
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
|
||||
|
|
|
@ -577,6 +577,168 @@ 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
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190424'
|
||||
REVISION = '20190513'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1084,7 +1084,7 @@ module Google
|
|||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190403'
|
||||
REVISION = '20190515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -475,7 +475,7 @@ module Google
|
|||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20190403'
|
||||
REVISION = '20190515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -475,7 +475,7 @@ module Google
|
|||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/tasks/
|
||||
module CloudtasksV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20190412'
|
||||
REVISION = '20190513'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -91,13 +91,17 @@ module Google
|
|||
# required`](https://cloud.google.com/appengine/docs/standard/python/config/
|
||||
# appref)
|
||||
# Task dispatches also do not follow redirects.
|
||||
# The task attempt has succeeded if the app's request handler returns
|
||||
# an HTTP response code in the range [`200` - `299`]. `503` is
|
||||
# considered an App Engine system error instead of an application
|
||||
# error. Requests returning error `503` will be retried regardless of
|
||||
# retry configuration and not counted against retry counts.
|
||||
# Any other response code or a failure to receive a response before the
|
||||
# deadline is a failed attempt.
|
||||
# The task attempt has succeeded if the app's request handler returns an HTTP
|
||||
# response code in the range [`200` - `299`]. The task attempt has failed if
|
||||
# the app's handler returns a non-2xx response code or Cloud Tasks does
|
||||
# not receive response before the deadline. Failed
|
||||
# tasks will be retried according to the
|
||||
# retry configuration. `503` (Service Unavailable) is
|
||||
# considered an App Engine system error instead of an application error and
|
||||
# will cause Cloud Tasks' traffic congestion control to temporarily throttle
|
||||
# the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
|
||||
# Requests) response from an app handler does not cause traffic congestion
|
||||
# control to throttle the queue.
|
||||
class AppEngineHttpRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1626,13 +1630,17 @@ module Google
|
|||
# required`](https://cloud.google.com/appengine/docs/standard/python/config/
|
||||
# appref)
|
||||
# Task dispatches also do not follow redirects.
|
||||
# The task attempt has succeeded if the app's request handler returns
|
||||
# an HTTP response code in the range [`200` - `299`]. `503` is
|
||||
# considered an App Engine system error instead of an application
|
||||
# error. Requests returning error `503` will be retried regardless of
|
||||
# retry configuration and not counted against retry counts.
|
||||
# Any other response code or a failure to receive a response before the
|
||||
# deadline is a failed attempt.
|
||||
# The task attempt has succeeded if the app's request handler returns an HTTP
|
||||
# response code in the range [`200` - `299`]. The task attempt has failed if
|
||||
# the app's handler returns a non-2xx response code or Cloud Tasks does
|
||||
# not receive response before the deadline. Failed
|
||||
# tasks will be retried according to the
|
||||
# retry configuration. `503` (Service Unavailable) is
|
||||
# considered an App Engine system error instead of an application error and
|
||||
# will cause Cloud Tasks' traffic congestion control to temporarily throttle
|
||||
# the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
|
||||
# Requests) response from an app handler does not cause traffic congestion
|
||||
# control to throttle the queue.
|
||||
# Corresponds to the JSON property `appEngineHttpRequest`
|
||||
# @return [Google::Apis::CloudtasksV2beta2::AppEngineHttpRequest]
|
||||
attr_accessor :app_engine_http_request
|
||||
|
|
|
@ -874,12 +874,12 @@ module Google
|
|||
# The queue name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Fixnum] page_size
|
||||
# Requested page size. Fewer tasks than requested might be returned.
|
||||
# The maximum page size is 1000. If unspecified, the page size will
|
||||
# be the maximum. Fewer tasks than requested might be returned,
|
||||
# even if more tasks exist; use
|
||||
# next_page_token in the
|
||||
# response to determine if more tasks exist.
|
||||
# Maximum page size.
|
||||
# Fewer tasks than requested might be returned, even if more tasks exist; use
|
||||
# next_page_token in the response to
|
||||
# determine if more tasks exist.
|
||||
# The maximum page size is 1000. If unspecified, the page size will be the
|
||||
# maximum.
|
||||
# @param [String] page_token
|
||||
# A token identifying the page of results to return.
|
||||
# To request the first page results, page_token must be empty. To
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190418'
|
||||
REVISION = '20190423'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -437,7 +437,8 @@ module Google
|
|||
|
||||
# [Output only] The size of the address space on each node for hosting
|
||||
# containers. This is provisioned from within the `container_ipv4_cidr`
|
||||
# range.
|
||||
# range. This field will only be set when cluster is in route-based network
|
||||
# mode.
|
||||
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :node_ipv4_cidr_size
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/datastore/
|
||||
module DatastoreV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190324'
|
||||
REVISION = '20190421'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/datastore/
|
||||
module DatastoreV1beta3
|
||||
VERSION = 'V1beta3'
|
||||
REVISION = '20190324'
|
||||
REVISION = '20190421'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/fcm_v1/service.rb'
|
||||
require 'google/apis/fcm_v1/classes.rb'
|
||||
require 'google/apis/fcm_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Firebase Cloud Messaging API
|
||||
#
|
||||
# FCM send API that provides a cross-platform messaging solution to reliably
|
||||
# deliver messages at no cost.
|
||||
#
|
||||
# @see https://firebase.google.com/docs/cloud-messaging
|
||||
module FcmV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,424 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FcmV1
|
||||
|
||||
# Android specific options for messages sent through
|
||||
# [FCM connection server](https://goo.gl/4GLdUl).
|
||||
class AndroidConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An identifier of a group of messages that can be collapsed, so that only
|
||||
# the last message gets sent when delivery can be resumed. A maximum of 4
|
||||
# different collapse keys is allowed at any given time.
|
||||
# Corresponds to the JSON property `collapseKey`
|
||||
# @return [String]
|
||||
attr_accessor :collapse_key
|
||||
|
||||
# Arbitrary key/value payload. If present, it will override
|
||||
# google.firebase.fcm.v1.Message.data.
|
||||
# Corresponds to the JSON property `data`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :data
|
||||
|
||||
# Notification to send to android devices.
|
||||
# Corresponds to the JSON property `notification`
|
||||
# @return [Google::Apis::FcmV1::AndroidNotification]
|
||||
attr_accessor :notification
|
||||
|
||||
# Message priority. Can take "normal" and "high" values.
|
||||
# For more information, see [Setting the priority of a
|
||||
# message](https://goo.gl/GjONJv).
|
||||
# Corresponds to the JSON property `priority`
|
||||
# @return [String]
|
||||
attr_accessor :priority
|
||||
|
||||
# Package name of the application where the registration token must match in
|
||||
# order to receive the message.
|
||||
# Corresponds to the JSON property `restrictedPackageName`
|
||||
# @return [String]
|
||||
attr_accessor :restricted_package_name
|
||||
|
||||
# How long (in seconds) the message should be kept in FCM storage if the
|
||||
# device is offline. The maximum time to live supported is 4 weeks, and the
|
||||
# default value is 4 weeks if not set. Set it to 0 if want to send the
|
||||
# message immediately.
|
||||
# In JSON format, the Duration type is encoded as a string rather than an
|
||||
# object, where the string ends in the suffix "s" (indicating seconds) and
|
||||
# is preceded by the number of seconds, with nanoseconds expressed as
|
||||
# fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
||||
# encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
||||
# be expressed in JSON format as "3.000000001s". The ttl will be rounded down
|
||||
# to the nearest second.
|
||||
# Corresponds to the JSON property `ttl`
|
||||
# @return [String]
|
||||
attr_accessor :ttl
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@collapse_key = args[:collapse_key] if args.key?(:collapse_key)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@notification = args[:notification] if args.key?(:notification)
|
||||
@priority = args[:priority] if args.key?(:priority)
|
||||
@restricted_package_name = args[:restricted_package_name] if args.key?(:restricted_package_name)
|
||||
@ttl = args[:ttl] if args.key?(:ttl)
|
||||
end
|
||||
end
|
||||
|
||||
# Notification to send to android devices.
|
||||
class AndroidNotification
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The notification's body text. If present, it will override
|
||||
# google.firebase.fcm.v1.Notification.body.
|
||||
# Corresponds to the JSON property `body`
|
||||
# @return [String]
|
||||
attr_accessor :body
|
||||
|
||||
# Variable string values to be used in place of the format specifiers in
|
||||
# body_loc_key to use to localize the body text to the user's current
|
||||
# localization.
|
||||
# See [Formatting and Styling](https://goo.gl/MalYE3) for more information.
|
||||
# Corresponds to the JSON property `bodyLocArgs`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :body_loc_args
|
||||
|
||||
# The key to the body string in the app's string resources to use to localize
|
||||
# the body text to the user's current localization.
|
||||
# See [String Resources](https://goo.gl/NdFZGI) for more information.
|
||||
# Corresponds to the JSON property `bodyLocKey`
|
||||
# @return [String]
|
||||
attr_accessor :body_loc_key
|
||||
|
||||
# The [notification's channel
|
||||
# id](https://developer.android.com/guide/topics/ui/notifiers/notifications#
|
||||
# ManageChannels)
|
||||
# (new in Android O). The app must create a channel with this channel ID
|
||||
# before any notification with this channel ID is received. If you don't send
|
||||
# this channel ID in the request, or if the channel ID provided has not yet
|
||||
# been created by the app, FCM uses the channel ID specified in the app
|
||||
# manifest.
|
||||
# Corresponds to the JSON property `channelId`
|
||||
# @return [String]
|
||||
attr_accessor :channel_id
|
||||
|
||||
# The action associated with a user click on the notification.
|
||||
# If specified, an activity with a matching intent filter is launched when
|
||||
# a user clicks on the notification.
|
||||
# Corresponds to the JSON property `clickAction`
|
||||
# @return [String]
|
||||
attr_accessor :click_action
|
||||
|
||||
# The notification's icon color, expressed in #rrggbb format.
|
||||
# Corresponds to the JSON property `color`
|
||||
# @return [String]
|
||||
attr_accessor :color
|
||||
|
||||
# The notification's icon.
|
||||
# Sets the notification icon to myicon for drawable resource myicon.
|
||||
# If you don't send this key in the request, FCM displays the launcher icon
|
||||
# specified in your app manifest.
|
||||
# Corresponds to the JSON property `icon`
|
||||
# @return [String]
|
||||
attr_accessor :icon
|
||||
|
||||
# The sound to play when the device receives the notification.
|
||||
# Supports "default" or the filename of a sound resource bundled in the app.
|
||||
# Sound files must reside in /res/raw/.
|
||||
# Corresponds to the JSON property `sound`
|
||||
# @return [String]
|
||||
attr_accessor :sound
|
||||
|
||||
# Identifier used to replace existing notifications in the notification
|
||||
# drawer.
|
||||
# If not specified, each request creates a new notification.
|
||||
# If specified and a notification with the same tag is already being shown,
|
||||
# the new notification replaces the existing one in the notification drawer.
|
||||
# Corresponds to the JSON property `tag`
|
||||
# @return [String]
|
||||
attr_accessor :tag
|
||||
|
||||
# The notification's title. If present, it will override
|
||||
# google.firebase.fcm.v1.Notification.title.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
# Variable string values to be used in place of the format specifiers in
|
||||
# title_loc_key to use to localize the title text to the user's current
|
||||
# localization.
|
||||
# See [Formatting and Styling](https://goo.gl/MalYE3) for more information.
|
||||
# Corresponds to the JSON property `titleLocArgs`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :title_loc_args
|
||||
|
||||
# The key to the title string in the app's string resources to use to
|
||||
# localize the title text to the user's current localization.
|
||||
# See [String Resources](https://goo.gl/NdFZGI) for more information.
|
||||
# Corresponds to the JSON property `titleLocKey`
|
||||
# @return [String]
|
||||
attr_accessor :title_loc_key
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@body = args[:body] if args.key?(:body)
|
||||
@body_loc_args = args[:body_loc_args] if args.key?(:body_loc_args)
|
||||
@body_loc_key = args[:body_loc_key] if args.key?(:body_loc_key)
|
||||
@channel_id = args[:channel_id] if args.key?(:channel_id)
|
||||
@click_action = args[:click_action] if args.key?(:click_action)
|
||||
@color = args[:color] if args.key?(:color)
|
||||
@icon = args[:icon] if args.key?(:icon)
|
||||
@sound = args[:sound] if args.key?(:sound)
|
||||
@tag = args[:tag] if args.key?(:tag)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
@title_loc_args = args[:title_loc_args] if args.key?(:title_loc_args)
|
||||
@title_loc_key = args[:title_loc_key] if args.key?(:title_loc_key)
|
||||
end
|
||||
end
|
||||
|
||||
# [Apple Push Notification Service](https://goo.gl/MXRTPa) specific options.
|
||||
class ApnsConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# HTTP request headers defined in Apple Push Notification Service. Refer to
|
||||
# [APNs request headers](https://goo.gl/C6Yhia) for
|
||||
# supported headers, e.g. "apns-priority": "10".
|
||||
# Corresponds to the JSON property `headers`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :headers
|
||||
|
||||
# APNs payload as a JSON object, including both `aps` dictionary and custom
|
||||
# payload. See [Payload Key Reference](https://goo.gl/32Pl5W).
|
||||
# If present, it overrides google.firebase.fcm.v1.Notification.title
|
||||
# and google.firebase.fcm.v1.Notification.body.
|
||||
# Corresponds to the JSON property `payload`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :payload
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@headers = args[:headers] if args.key?(:headers)
|
||||
@payload = args[:payload] if args.key?(:payload)
|
||||
end
|
||||
end
|
||||
|
||||
# Message to send by Firebase Cloud Messaging Service.
|
||||
class Message
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Android specific options for messages sent through
|
||||
# [FCM connection server](https://goo.gl/4GLdUl).
|
||||
# Corresponds to the JSON property `android`
|
||||
# @return [Google::Apis::FcmV1::AndroidConfig]
|
||||
attr_accessor :android
|
||||
|
||||
# [Apple Push Notification Service](https://goo.gl/MXRTPa) specific options.
|
||||
# Corresponds to the JSON property `apns`
|
||||
# @return [Google::Apis::FcmV1::ApnsConfig]
|
||||
attr_accessor :apns
|
||||
|
||||
# Condition to send a message to,
|
||||
# e.g. "'foo' in topics && 'bar' in topics".
|
||||
# Corresponds to the JSON property `condition`
|
||||
# @return [String]
|
||||
attr_accessor :condition
|
||||
|
||||
# Input only. Arbitrary key/value payload.
|
||||
# Corresponds to the JSON property `data`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :data
|
||||
|
||||
# Output Only. The identifier of the message sent, in the format of
|
||||
# `projects/*/messages/`message_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Basic notification template to use across all platforms.
|
||||
# Corresponds to the JSON property `notification`
|
||||
# @return [Google::Apis::FcmV1::Notification]
|
||||
attr_accessor :notification
|
||||
|
||||
# Registration token to send a message to.
|
||||
# Corresponds to the JSON property `token`
|
||||
# @return [String]
|
||||
attr_accessor :token
|
||||
|
||||
# Topic name to send a message to, e.g. "weather".
|
||||
# Note: "/topics/" prefix should not be provided.
|
||||
# Corresponds to the JSON property `topic`
|
||||
# @return [String]
|
||||
attr_accessor :topic
|
||||
|
||||
# [Webpush protocol](https://tools.ietf.org/html/rfc8030) options.
|
||||
# Corresponds to the JSON property `webpush`
|
||||
# @return [Google::Apis::FcmV1::WebpushConfig]
|
||||
attr_accessor :webpush
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@android = args[:android] if args.key?(:android)
|
||||
@apns = args[:apns] if args.key?(:apns)
|
||||
@condition = args[:condition] if args.key?(:condition)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@notification = args[:notification] if args.key?(:notification)
|
||||
@token = args[:token] if args.key?(:token)
|
||||
@topic = args[:topic] if args.key?(:topic)
|
||||
@webpush = args[:webpush] if args.key?(:webpush)
|
||||
end
|
||||
end
|
||||
|
||||
# Basic notification template to use across all platforms.
|
||||
class Notification
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The notification's body text.
|
||||
# Corresponds to the JSON property `body`
|
||||
# @return [String]
|
||||
attr_accessor :body
|
||||
|
||||
# The notification's title.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@body = args[:body] if args.key?(:body)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
end
|
||||
end
|
||||
|
||||
# Request to send a message to specified target.
|
||||
class SendMessageRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Message to send by Firebase Cloud Messaging Service.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [Google::Apis::FcmV1::Message]
|
||||
attr_accessor :message
|
||||
|
||||
# Flag for testing the request without actually delivering the message.
|
||||
# Corresponds to the JSON property `validateOnly`
|
||||
# @return [Boolean]
|
||||
attr_accessor :validate_only
|
||||
alias_method :validate_only?, :validate_only
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
||||
end
|
||||
end
|
||||
|
||||
# [Webpush protocol](https://tools.ietf.org/html/rfc8030) options.
|
||||
class WebpushConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Arbitrary key/value payload. If present, it will override
|
||||
# google.firebase.fcm.v1.Message.data.
|
||||
# Corresponds to the JSON property `data`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :data
|
||||
|
||||
# Options for features provided by the FCM SDK for Web.
|
||||
# Corresponds to the JSON property `fcmOptions`
|
||||
# @return [Google::Apis::FcmV1::WebpushFcmOptions]
|
||||
attr_accessor :fcm_options
|
||||
|
||||
# HTTP headers defined in webpush protocol. Refer to
|
||||
# [Webpush protocol](https://tools.ietf.org/html/rfc8030#section-5) for
|
||||
# supported headers, e.g. "TTL": "15".
|
||||
# Corresponds to the JSON property `headers`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :headers
|
||||
|
||||
# Web Notification options as a JSON object. Supports Notification instance
|
||||
# properties as defined in [Web Notification
|
||||
# API](https://developer.mozilla.org/en-US/docs/Web/API/Notification). If
|
||||
# present, "title" and "body" fields override
|
||||
# [google.firebase.fcm.v1.Notification.title] and
|
||||
# [google.firebase.fcm.v1.Notification.body].
|
||||
# Corresponds to the JSON property `notification`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :notification
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@fcm_options = args[:fcm_options] if args.key?(:fcm_options)
|
||||
@headers = args[:headers] if args.key?(:headers)
|
||||
@notification = args[:notification] if args.key?(:notification)
|
||||
end
|
||||
end
|
||||
|
||||
# Options for features provided by the FCM SDK for Web.
|
||||
class WebpushFcmOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The link to open when the user clicks on the notification.
|
||||
# For all URL values, HTTPS is required.
|
||||
# Corresponds to the JSON property `link`
|
||||
# @return [String]
|
||||
attr_accessor :link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@link = args[:link] if args.key?(:link)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,167 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FcmV1
|
||||
|
||||
class AndroidConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidNotification
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ApnsConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Message
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Notification
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SendMessageRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebpushConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebpushFcmOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :collapse_key, as: 'collapseKey'
|
||||
hash :data, as: 'data'
|
||||
property :notification, as: 'notification', class: Google::Apis::FcmV1::AndroidNotification, decorator: Google::Apis::FcmV1::AndroidNotification::Representation
|
||||
|
||||
property :priority, as: 'priority'
|
||||
property :restricted_package_name, as: 'restrictedPackageName'
|
||||
property :ttl, as: 'ttl'
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidNotification
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :body, as: 'body'
|
||||
collection :body_loc_args, as: 'bodyLocArgs'
|
||||
property :body_loc_key, as: 'bodyLocKey'
|
||||
property :channel_id, as: 'channelId'
|
||||
property :click_action, as: 'clickAction'
|
||||
property :color, as: 'color'
|
||||
property :icon, as: 'icon'
|
||||
property :sound, as: 'sound'
|
||||
property :tag, as: 'tag'
|
||||
property :title, as: 'title'
|
||||
collection :title_loc_args, as: 'titleLocArgs'
|
||||
property :title_loc_key, as: 'titleLocKey'
|
||||
end
|
||||
end
|
||||
|
||||
class ApnsConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :headers, as: 'headers'
|
||||
hash :payload, as: 'payload'
|
||||
end
|
||||
end
|
||||
|
||||
class Message
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :android, as: 'android', class: Google::Apis::FcmV1::AndroidConfig, decorator: Google::Apis::FcmV1::AndroidConfig::Representation
|
||||
|
||||
property :apns, as: 'apns', class: Google::Apis::FcmV1::ApnsConfig, decorator: Google::Apis::FcmV1::ApnsConfig::Representation
|
||||
|
||||
property :condition, as: 'condition'
|
||||
hash :data, as: 'data'
|
||||
property :name, as: 'name'
|
||||
property :notification, as: 'notification', class: Google::Apis::FcmV1::Notification, decorator: Google::Apis::FcmV1::Notification::Representation
|
||||
|
||||
property :token, as: 'token'
|
||||
property :topic, as: 'topic'
|
||||
property :webpush, as: 'webpush', class: Google::Apis::FcmV1::WebpushConfig, decorator: Google::Apis::FcmV1::WebpushConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Notification
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :body, as: 'body'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
||||
class SendMessageRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :message, as: 'message', class: Google::Apis::FcmV1::Message, decorator: Google::Apis::FcmV1::Message::Representation
|
||||
|
||||
property :validate_only, as: 'validateOnly'
|
||||
end
|
||||
end
|
||||
|
||||
class WebpushConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :data, as: 'data'
|
||||
property :fcm_options, as: 'fcmOptions', class: Google::Apis::FcmV1::WebpushFcmOptions, decorator: Google::Apis::FcmV1::WebpushFcmOptions::Representation
|
||||
|
||||
hash :headers, as: 'headers'
|
||||
hash :notification, as: 'notification'
|
||||
end
|
||||
end
|
||||
|
||||
class WebpushFcmOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :link, as: 'link'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,97 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FcmV1
|
||||
# Firebase Cloud Messaging API
|
||||
#
|
||||
# FCM send API that provides a cross-platform messaging solution to reliably
|
||||
# deliver messages at no cost.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/fcm_v1'
|
||||
#
|
||||
# Fcm = Google::Apis::FcmV1 # Alias the module
|
||||
# service = Fcm::FirebaseCloudMessagingService.new
|
||||
#
|
||||
# @see https://firebase.google.com/docs/cloud-messaging
|
||||
class FirebaseCloudMessagingService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://fcm.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Send a message to specified target (a registration token, topic
|
||||
# or condition).
|
||||
# @param [String] parent
|
||||
# Required. It contains the Firebase project id (i.e. the unique identifier
|
||||
# for your Firebase project), in the format of `projects/`project_id``.
|
||||
# For legacy support, the numeric project number with no padding is also
|
||||
# supported in the format of `projects/`project_number``.
|
||||
# @param [Google::Apis::FcmV1::SendMessageRequest] send_message_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FcmV1::Message] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FcmV1::Message]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def send_message(parent, send_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/messages:send', options)
|
||||
command.request_representation = Google::Apis::FcmV1::SendMessageRequest::Representation
|
||||
command.request_object = send_message_request_object
|
||||
command.response_representation = Google::Apis::FcmV1::Message::Representation
|
||||
command.response_class = Google::Apis::FcmV1::Message
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/filestore/
|
||||
module FileV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190430'
|
||||
REVISION = '20190516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -135,6 +135,24 @@ module Google
|
|||
# b/instances/vm-1",
|
||||
# `
|
||||
# ],
|
||||
# "maintenance_schedules": `
|
||||
# "csa_rollout": `
|
||||
# "start_time": `
|
||||
# "seconds": 1526406431,
|
||||
# `,
|
||||
# "end_time": `
|
||||
# "seconds": 1535406431,
|
||||
# `,
|
||||
# `,
|
||||
# "ncsa_rollout": `
|
||||
# "start_time": `
|
||||
# "seconds": 1526406431,
|
||||
# `,
|
||||
# "end_time": `
|
||||
# "seconds": 1535406431,
|
||||
# `,
|
||||
# `
|
||||
# `
|
||||
# `
|
||||
# ```
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1Instance
|
||||
|
@ -161,6 +179,12 @@ module Google
|
|||
# @return [Hash<String,String>]
|
||||
attr_accessor :maintenance_policy_names
|
||||
|
||||
# The MaintenanceSchedule contains the scheduling information of published
|
||||
# maintenance schedule.
|
||||
# Corresponds to the JSON property `maintenanceSchedules`
|
||||
# @return [Hash<String,Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule>]
|
||||
attr_accessor :maintenance_schedules
|
||||
|
||||
# Unique name of the resource. It uses the form:
|
||||
# `projects/`project_id`/locations/`location_id`/instances/`instance_id``
|
||||
# Corresponds to the JSON property `name`
|
||||
|
@ -228,6 +252,7 @@ module Google
|
|||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@maintenance_policy_names = args[:maintenance_policy_names] if args.key?(:maintenance_policy_names)
|
||||
@maintenance_schedules = args[:maintenance_schedules] if args.key?(:maintenance_schedules)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata)
|
||||
@provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources)
|
||||
|
@ -240,6 +265,32 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Maintenance schedule which is exposed to customer and potentially end user,
|
||||
# indicating published upcoming future maintenance schedule
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The scheduled end time for the maintenance.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# The scheduled start time for the maintenance.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
end
|
||||
end
|
||||
|
||||
# Node information for custom per-node SLO implementations.
|
||||
# SSA does not support per-node SLO, but producers can populate per-node
|
||||
# information in SloMetadata for custom precomputations.
|
||||
|
@ -801,7 +852,7 @@ module Google
|
|||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
|
|
@ -46,6 +46,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -162,6 +168,8 @@ module Google
|
|||
property :create_time, as: 'createTime'
|
||||
hash :labels, as: 'labels'
|
||||
hash :maintenance_policy_names, as: 'maintenancePolicyNames'
|
||||
hash :maintenance_schedules, as: 'maintenanceSchedules', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
hash :producer_metadata, as: 'producerMetadata'
|
||||
collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource::Representation
|
||||
|
@ -177,6 +185,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/filestore/
|
||||
module FileV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190430'
|
||||
REVISION = '20190516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -135,6 +135,24 @@ module Google
|
|||
# b/instances/vm-1",
|
||||
# `
|
||||
# ],
|
||||
# "maintenance_schedules": `
|
||||
# "csa_rollout": `
|
||||
# "start_time": `
|
||||
# "seconds": 1526406431,
|
||||
# `,
|
||||
# "end_time": `
|
||||
# "seconds": 1535406431,
|
||||
# `,
|
||||
# `,
|
||||
# "ncsa_rollout": `
|
||||
# "start_time": `
|
||||
# "seconds": 1526406431,
|
||||
# `,
|
||||
# "end_time": `
|
||||
# "seconds": 1535406431,
|
||||
# `,
|
||||
# `
|
||||
# `
|
||||
# `
|
||||
# ```
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1Instance
|
||||
|
@ -161,6 +179,12 @@ module Google
|
|||
# @return [Hash<String,String>]
|
||||
attr_accessor :maintenance_policy_names
|
||||
|
||||
# The MaintenanceSchedule contains the scheduling information of published
|
||||
# maintenance schedule.
|
||||
# Corresponds to the JSON property `maintenanceSchedules`
|
||||
# @return [Hash<String,Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule>]
|
||||
attr_accessor :maintenance_schedules
|
||||
|
||||
# Unique name of the resource. It uses the form:
|
||||
# `projects/`project_id`/locations/`location_id`/instances/`instance_id``
|
||||
# Corresponds to the JSON property `name`
|
||||
|
@ -228,6 +252,7 @@ module Google
|
|||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@maintenance_policy_names = args[:maintenance_policy_names] if args.key?(:maintenance_policy_names)
|
||||
@maintenance_schedules = args[:maintenance_schedules] if args.key?(:maintenance_schedules)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata)
|
||||
@provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources)
|
||||
|
@ -240,6 +265,32 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Maintenance schedule which is exposed to customer and potentially end user,
|
||||
# indicating published upcoming future maintenance schedule
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The scheduled end time for the maintenance.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# The scheduled start time for the maintenance.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
end
|
||||
end
|
||||
|
||||
# Node information for custom per-node SLO implementations.
|
||||
# SSA does not support per-node SLO, but producers can populate per-node
|
||||
# information in SloMetadata for custom precomputations.
|
||||
|
@ -801,7 +852,7 @@ module Google
|
|||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
|
|
@ -46,6 +46,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -162,6 +168,8 @@ module Google
|
|||
property :create_time, as: 'createTime'
|
||||
hash :labels, as: 'labels'
|
||||
hash :maintenance_policy_names, as: 'maintenancePolicyNames'
|
||||
hash :maintenance_schedules, as: 'maintenanceSchedules', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
hash :producer_metadata, as: 'producerMetadata'
|
||||
collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource::Representation
|
||||
|
@ -177,6 +185,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/monitoring/api/
|
||||
module MonitoringV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20190503'
|
||||
REVISION = '20190511'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1202,7 +1202,7 @@ module Google
|
|||
end
|
||||
|
||||
# An internal checker allows uptime checks to run on private/internal GCP
|
||||
# resources.DEPRECATED. Use PrivateChecker instead.
|
||||
# resources.
|
||||
class InternalChecker
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1735,6 +1735,11 @@ module Google
|
|||
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Optional. The launch stage of the metric definition.
|
||||
# Corresponds to the JSON property `launchStage`
|
||||
# @return [String]
|
||||
attr_accessor :launch_stage
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::MonitoringV3::MetricDescriptorMetadata]
|
||||
|
@ -1829,6 +1834,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)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
|
@ -1849,7 +1855,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :ingest_delay
|
||||
|
||||
# The launch stage of the metric definition.
|
||||
# Deprecated. Please use the MetricDescriptor.launch_stage instead. The launch
|
||||
# stage of the metric definition.
|
||||
# Corresponds to the JSON property `launchStage`
|
||||
# @return [String]
|
||||
attr_accessor :launch_stage
|
||||
|
|
|
@ -829,6 +829,7 @@ module Google
|
|||
property :display_name, as: 'displayName'
|
||||
collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
|
||||
|
||||
property :launch_stage, as: 'launchStage'
|
||||
property :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::MetricDescriptorMetadata, decorator: Google::Apis::MonitoringV3::MetricDescriptorMetadata::Representation
|
||||
|
||||
property :metric_kind, as: 'metricKind'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/people/
|
||||
module PeopleV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190422'
|
||||
REVISION = '20190516'
|
||||
|
||||
# See, edit, download, and permanently delete your contacts
|
||||
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-management/
|
||||
module ServicemanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190502'
|
||||
REVISION = '20190510'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -452,32 +452,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Configuration of authorization.
|
||||
# This section determines the authorization provider, if unspecified, then no
|
||||
# authorization check will be done.
|
||||
# Example:
|
||||
# experimental:
|
||||
# authorization:
|
||||
# provider: firebaserules.googleapis.com
|
||||
class AuthorizationConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the authorization provider, such as
|
||||
# firebaserules.googleapis.com.
|
||||
# Corresponds to the JSON property `provider`
|
||||
# @return [String]
|
||||
attr_accessor :provider
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@provider = args[:provider] if args.key?(:provider)
|
||||
end
|
||||
end
|
||||
|
||||
# `Backend` defines the backend configuration for a service.
|
||||
class Backend
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1421,32 +1395,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Experimental service configuration. These configuration options can
|
||||
# only be used by whitelisted users.
|
||||
class Experimental
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Configuration of authorization.
|
||||
# This section determines the authorization provider, if unspecified, then no
|
||||
# authorization check will be done.
|
||||
# Example:
|
||||
# experimental:
|
||||
# authorization:
|
||||
# provider: firebaserules.googleapis.com
|
||||
# Corresponds to the JSON property `authorization`
|
||||
# @return [Google::Apis::ServicemanagementV1::AuthorizationConfig]
|
||||
attr_accessor :authorization
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@authorization = args[:authorization] if args.key?(:authorization)
|
||||
end
|
||||
end
|
||||
|
||||
# Represents an expression text. Example:
|
||||
# title: "User account presence"
|
||||
# description: "Determines whether the request has a user account"
|
||||
|
@ -2403,6 +2351,11 @@ module Google
|
|||
# @return [Array<Google::Apis::ServicemanagementV1::LabelDescriptor>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Optional. The launch stage of the metric definition.
|
||||
# Corresponds to the JSON property `launchStage`
|
||||
# @return [String]
|
||||
attr_accessor :launch_stage
|
||||
|
||||
# Additional annotations that can be used to guide the usage of a metric.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::ServicemanagementV1::MetricDescriptorMetadata]
|
||||
|
@ -2501,6 +2454,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)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
|
@ -2521,6 +2475,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :ingest_delay
|
||||
|
||||
# Deprecated. Please use the MetricDescriptor.launch_stage instead.
|
||||
# The launch stage of the metric definition.
|
||||
# Corresponds to the JSON property `launchStage`
|
||||
# @return [String]
|
||||
|
@ -2932,7 +2887,7 @@ module Google
|
|||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
@ -3642,12 +3597,6 @@ module Google
|
|||
# @return [Array<Google::Apis::ServicemanagementV1::Enum>]
|
||||
attr_accessor :enums
|
||||
|
||||
# Experimental service configuration. These configuration options can
|
||||
# only be used by whitelisted users.
|
||||
# Corresponds to the JSON property `experimental`
|
||||
# @return [Google::Apis::ServicemanagementV1::Experimental]
|
||||
attr_accessor :experimental
|
||||
|
||||
# Defines the HTTP configuration for an API service. It contains a list of
|
||||
# HttpRule, each specifying the mapping of an RPC method
|
||||
# to one or more HTTP REST API methods.
|
||||
|
@ -3866,7 +3815,6 @@ module Google
|
|||
@documentation = args[:documentation] if args.key?(:documentation)
|
||||
@endpoints = args[:endpoints] if args.key?(:endpoints)
|
||||
@enums = args[:enums] if args.key?(:enums)
|
||||
@experimental = args[:experimental] if args.key?(:experimental)
|
||||
@http = args[:http] if args.key?(:http)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@logging = args[:logging] if args.key?(:logging)
|
||||
|
|
|
@ -70,12 +70,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthorizationConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Backend
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -226,12 +220,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Experimental
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Expr
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -626,13 +614,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class AuthorizationConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :provider, as: 'provider'
|
||||
end
|
||||
end
|
||||
|
||||
class Backend
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -862,14 +843,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Experimental
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :authorization, as: 'authorization', class: Google::Apis::ServicemanagementV1::AuthorizationConfig, decorator: Google::Apis::ServicemanagementV1::AuthorizationConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Expr
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1061,6 +1034,7 @@ module Google
|
|||
property :display_name, as: 'displayName'
|
||||
collection :labels, as: 'labels', class: Google::Apis::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation
|
||||
|
||||
property :launch_stage, as: 'launchStage'
|
||||
property :metadata, as: 'metadata', class: Google::Apis::ServicemanagementV1::MetricDescriptorMetadata, decorator: Google::Apis::ServicemanagementV1::MetricDescriptorMetadata::Representation
|
||||
|
||||
property :metric_kind, as: 'metricKind'
|
||||
|
@ -1252,8 +1226,6 @@ module Google
|
|||
|
||||
collection :enums, as: 'enums', class: Google::Apis::ServicemanagementV1::Enum, decorator: Google::Apis::ServicemanagementV1::Enum::Representation
|
||||
|
||||
property :experimental, as: 'experimental', class: Google::Apis::ServicemanagementV1::Experimental, decorator: Google::Apis::ServicemanagementV1::Experimental::Representation
|
||||
|
||||
property :http, as: 'http', class: Google::Apis::ServicemanagementV1::Http, decorator: Google::Apis::ServicemanagementV1::Http::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
|
|
Loading…
Reference in New Issue