Autogenerated update (2019-08-13)

Update:
- bigquery_v2
- cloudprivatecatalogproducer_v1beta1
- doubleclickbidmanager_v1
- securitycenter_v1
- securitycenter_v1beta1
This commit is contained in:
Google APIs 2019-08-13 00:37:50 +00:00
parent ff15f9b5ea
commit 9267e91d2f
14 changed files with 207 additions and 39 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/ # @see https://cloud.google.com/bigquery/
module BigqueryV2 module BigqueryV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20190724' REVISION = '20190807'
# View and manage your data in Google BigQuery # View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -617,6 +617,85 @@ module Google
end end
end end
# Representative value of a categorical feature.
class CategoricalValue
include Google::Apis::Core::Hashable
# Counts of all categories for the categorical feature. If there are
# more than ten categories, we return top ten (by count) and return
# one more CategoryCount with category "_OTHER_" and count as
# aggregate counts of remaining categories.
# Corresponds to the JSON property `categoryCounts`
# @return [Array<Google::Apis::BigqueryV2::CategoryCount>]
attr_accessor :category_counts
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@category_counts = args[:category_counts] if args.key?(:category_counts)
end
end
# Represents the count of a single category within the cluster.
class CategoryCount
include Google::Apis::Core::Hashable
# The name of category.
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# The count of training samples matching the category within the
# cluster.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@category = args[:category] if args.key?(:category)
@count = args[:count] if args.key?(:count)
end
end
# Message containing the information about one cluster.
class Cluster
include Google::Apis::Core::Hashable
# Centroid id.
# Corresponds to the JSON property `centroidId`
# @return [Fixnum]
attr_accessor :centroid_id
# Count of training data rows that were assigned to this cluster.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Values of highly variant features for this cluster.
# Corresponds to the JSON property `featureValues`
# @return [Array<Google::Apis::BigqueryV2::FeatureValue>]
attr_accessor :feature_values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@centroid_id = args[:centroid_id] if args.key?(:centroid_id)
@count = args[:count] if args.key?(:count)
@feature_values = args[:feature_values] if args.key?(:feature_values)
end
end
# Information about a single cluster for clustering model. # Information about a single cluster for clustering model.
class ClusterInfo class ClusterInfo
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -675,6 +754,11 @@ module Google
class ClusteringMetrics class ClusteringMetrics
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Beta] Information for all clusters.
# Corresponds to the JSON property `clusters`
# @return [Array<Google::Apis::BigqueryV2::Cluster>]
attr_accessor :clusters
# Davies-Bouldin index. # Davies-Bouldin index.
# Corresponds to the JSON property `daviesBouldinIndex` # Corresponds to the JSON property `daviesBouldinIndex`
# @return [Float] # @return [Float]
@ -691,6 +775,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@clusters = args[:clusters] if args.key?(:clusters)
@davies_bouldin_index = args[:davies_bouldin_index] if args.key?(:davies_bouldin_index) @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) @mean_squared_distance = args[:mean_squared_distance] if args.key?(:mean_squared_distance)
end end
@ -1623,6 +1708,38 @@ module Google
end end
end end
# Representative value of a single feature within the cluster.
class FeatureValue
include Google::Apis::Core::Hashable
# Representative value of a categorical feature.
# Corresponds to the JSON property `categoricalValue`
# @return [Google::Apis::BigqueryV2::CategoricalValue]
attr_accessor :categorical_value
# The feature column name.
# Corresponds to the JSON property `featureColumn`
# @return [String]
attr_accessor :feature_column
# The numerical feature value. This is the centroid value for this
# feature.
# Corresponds to the JSON property `numericalValue`
# @return [Float]
attr_accessor :numerical_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@categorical_value = args[:categorical_value] if args.key?(:categorical_value)
@feature_column = args[:feature_column] if args.key?(:feature_column)
@numerical_value = args[:numerical_value] if args.key?(:numerical_value)
end
end
# #
class GetQueryResultsResponse class GetQueryResultsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1828,7 +1945,7 @@ module Google
class IterationResult class IterationResult
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Beta] Information about top clusters for clustering models. # Information about top clusters for clustering models.
# Corresponds to the JSON property `clusterInfos` # Corresponds to the JSON property `clusterInfos`
# @return [Array<Google::Apis::BigqueryV2::ClusterInfo>] # @return [Array<Google::Apis::BigqueryV2::ClusterInfo>]
attr_accessor :cluster_infos attr_accessor :cluster_infos
@ -5212,7 +5329,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :data_split_method attr_accessor :data_split_method
# [Beta] Distance type for clustering models. # Distance type for clustering models.
# Corresponds to the JSON property `distanceType` # Corresponds to the JSON property `distanceType`
# @return [String] # @return [String]
attr_accessor :distance_type attr_accessor :distance_type
@ -5236,6 +5353,17 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :input_label_columns attr_accessor :input_label_columns
# The column used to provide the initial centroids for kmeans algorithm
# when kmeans_initialization_method is CUSTOM.
# Corresponds to the JSON property `kmeansInitializationColumn`
# @return [String]
attr_accessor :kmeans_initialization_column
# The method used to initialize the centroids for kmeans algorithm.
# Corresponds to the JSON property `kmeansInitializationMethod`
# @return [String]
attr_accessor :kmeans_initialization_method
# L1 regularization coefficient. # L1 regularization coefficient.
# Corresponds to the JSON property `l1Regularization` # Corresponds to the JSON property `l1Regularization`
# @return [Float] # @return [Float]
@ -5286,7 +5414,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :model_uri attr_accessor :model_uri
# [Beta] Number of clusters for clustering models. # Number of clusters for clustering models.
# Corresponds to the JSON property `numClusters` # Corresponds to the JSON property `numClusters`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :num_clusters attr_accessor :num_clusters
@ -5315,6 +5443,8 @@ module Google
@early_stop = args[:early_stop] if args.key?(:early_stop) @early_stop = args[:early_stop] if args.key?(:early_stop)
@initial_learn_rate = args[:initial_learn_rate] if args.key?(:initial_learn_rate) @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) @input_label_columns = args[:input_label_columns] if args.key?(:input_label_columns)
@kmeans_initialization_column = args[:kmeans_initialization_column] if args.key?(:kmeans_initialization_column)
@kmeans_initialization_method = args[:kmeans_initialization_method] if args.key?(:kmeans_initialization_method)
@l1_regularization = args[:l1_regularization] if args.key?(:l1_regularization) @l1_regularization = args[:l1_regularization] if args.key?(:l1_regularization)
@l2_regularization = args[:l2_regularization] if args.key?(:l2_regularization) @l2_regularization = args[:l2_regularization] if args.key?(:l2_regularization)
@label_class_weights = args[:label_class_weights] if args.key?(:label_class_weights) @label_class_weights = args[:label_class_weights] if args.key?(:label_class_weights)

View File

@ -88,6 +88,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CategoricalValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CategoryCount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Cluster
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClusterInfo class ClusterInfo
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -196,6 +214,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FeatureValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetQueryResultsResponse class GetQueryResultsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -754,6 +778,32 @@ module Google
end end
end end
class CategoricalValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :category_counts, as: 'categoryCounts', class: Google::Apis::BigqueryV2::CategoryCount, decorator: Google::Apis::BigqueryV2::CategoryCount::Representation
end
end
class CategoryCount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :count, :numeric_string => true, as: 'count'
end
end
class Cluster
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :centroid_id, :numeric_string => true, as: 'centroidId'
property :count, :numeric_string => true, as: 'count'
collection :feature_values, as: 'featureValues', class: Google::Apis::BigqueryV2::FeatureValue, decorator: Google::Apis::BigqueryV2::FeatureValue::Representation
end
end
class ClusterInfo class ClusterInfo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -773,6 +823,8 @@ module Google
class ClusteringMetrics class ClusteringMetrics
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :clusters, as: 'clusters', class: Google::Apis::BigqueryV2::Cluster, decorator: Google::Apis::BigqueryV2::Cluster::Representation
property :davies_bouldin_index, as: 'daviesBouldinIndex' property :davies_bouldin_index, as: 'daviesBouldinIndex'
property :mean_squared_distance, as: 'meanSquaredDistance' property :mean_squared_distance, as: 'meanSquaredDistance'
end end
@ -984,6 +1036,16 @@ module Google
end end
end end
class FeatureValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :categorical_value, as: 'categoricalValue', class: Google::Apis::BigqueryV2::CategoricalValue, decorator: Google::Apis::BigqueryV2::CategoricalValue::Representation
property :feature_column, as: 'featureColumn'
property :numerical_value, as: 'numericalValue'
end
end
class GetQueryResultsResponse class GetQueryResultsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1878,6 +1940,8 @@ module Google
property :early_stop, as: 'earlyStop' property :early_stop, as: 'earlyStop'
property :initial_learn_rate, as: 'initialLearnRate' property :initial_learn_rate, as: 'initialLearnRate'
collection :input_label_columns, as: 'inputLabelColumns' collection :input_label_columns, as: 'inputLabelColumns'
property :kmeans_initialization_column, as: 'kmeansInitializationColumn'
property :kmeans_initialization_method, as: 'kmeansInitializationMethod'
property :l1_regularization, as: 'l1Regularization' property :l1_regularization, as: 'l1Regularization'
property :l2_regularization, as: 'l2Regularization' property :l2_regularization, as: 'l2Regularization'
hash :label_class_weights, as: 'labelClassWeights' hash :label_class_weights, as: 'labelClassWeights'

View File

@ -499,6 +499,9 @@ module Google
# only jobs created after or at this timestamp are returned # only jobs created after or at this timestamp are returned
# @param [String] page_token # @param [String] page_token
# Page token, returned by a previous call, to request the next page of results # Page token, returned by a previous call, to request the next page of results
# @param [String] parent_job_id
# If set, retrieves only jobs whose parent is this job. Otherwise, retrieves
# only jobs which have no parent
# @param [String] projection # @param [String] projection
# Restrict information returned to a set of selected fields # Restrict information returned to a set of selected fields
# @param [Array<String>, String] state_filter # @param [Array<String>, String] state_filter
@ -522,7 +525,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_jobs(project_id, all_users: nil, max_creation_time: nil, max_results: nil, min_creation_time: nil, page_token: nil, projection: nil, state_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_jobs(project_id, all_users: nil, max_creation_time: nil, max_results: nil, min_creation_time: nil, page_token: nil, parent_job_id: nil, projection: nil, state_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{projectId}/jobs', options) command = make_simple_command(:get, 'projects/{projectId}/jobs', options)
command.response_representation = Google::Apis::BigqueryV2::JobList::Representation command.response_representation = Google::Apis::BigqueryV2::JobList::Representation
command.response_class = Google::Apis::BigqueryV2::JobList command.response_class = Google::Apis::BigqueryV2::JobList
@ -532,6 +535,7 @@ module Google
command.query['maxResults'] = max_results unless max_results.nil? command.query['maxResults'] = max_results unless max_results.nil?
command.query['minCreationTime'] = min_creation_time unless min_creation_time.nil? command.query['minCreationTime'] = min_creation_time unless min_creation_time.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['parentJobId'] = parent_job_id unless parent_job_id.nil?
command.query['projection'] = projection unless projection.nil? command.query['projection'] = projection unless projection.nil?
command.query['stateFilter'] = state_filter unless state_filter.nil? command.query['stateFilter'] = state_filter unless state_filter.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/private-catalog/ # @see https://cloud.google.com/private-catalog/
module CloudprivatecatalogproducerV1beta1 module CloudprivatecatalogproducerV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20190804' REVISION = '20190810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -681,14 +681,6 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :exempted_members attr_accessor :exempted_members
# Specifies whether principals can be exempted for the same LogType in
# lower-level resource policies. If true, any lower-level exemptions will
# be ignored.
# Corresponds to the JSON property `ignoreChildExemptions`
# @return [Boolean]
attr_accessor :ignore_child_exemptions
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
# The log type that this config enables. # The log type that this config enables.
# Corresponds to the JSON property `logType` # Corresponds to the JSON property `logType`
# @return [String] # @return [String]
@ -701,7 +693,6 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members) @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
@log_type = args[:log_type] if args.key?(:log_type) @log_type = args[:log_type] if args.key?(:log_type)
end end
end end

View File

@ -294,7 +294,6 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers' collection :exempted_members, as: 'exemptedMembers'
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
property :log_type, as: 'logType' property :log_type, as: 'logType'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/bid-manager/ # @see https://developers.google.com/bid-manager/
module DoubleclickbidmanagerV1 module DoubleclickbidmanagerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190715' REVISION = '20190807'
# View and manage your reports in DoubleClick Bid Manager # View and manage your reports in DoubleClick Bid Manager
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1 module SecuritycenterV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190802' REVISION = '20190810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -217,14 +217,6 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :exempted_members attr_accessor :exempted_members
# Specifies whether principals can be exempted for the same LogType in
# lower-level resource policies. If true, any lower-level exemptions will
# be ignored.
# Corresponds to the JSON property `ignoreChildExemptions`
# @return [Boolean]
attr_accessor :ignore_child_exemptions
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
# The log type that this config enables. # The log type that this config enables.
# Corresponds to the JSON property `logType` # Corresponds to the JSON property `logType`
# @return [String] # @return [String]
@ -237,7 +229,6 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members) @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
@log_type = args[:log_type] if args.key?(:log_type) @log_type = args[:log_type] if args.key?(:log_type)
end end
end end

View File

@ -275,7 +275,6 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers' collection :exempted_members, as: 'exemptedMembers'
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
property :log_type, as: 'logType' property :log_type, as: 'logType'
end end
end end

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta1 module SecuritycenterV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20190802' REVISION = '20190810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -209,14 +209,6 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :exempted_members attr_accessor :exempted_members
# Specifies whether principals can be exempted for the same LogType in
# lower-level resource policies. If true, any lower-level exemptions will
# be ignored.
# Corresponds to the JSON property `ignoreChildExemptions`
# @return [Boolean]
attr_accessor :ignore_child_exemptions
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
# The log type that this config enables. # The log type that this config enables.
# Corresponds to the JSON property `logType` # Corresponds to the JSON property `logType`
# @return [String] # @return [String]
@ -229,7 +221,6 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members) @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
@log_type = args[:log_type] if args.key?(:log_type) @log_type = args[:log_type] if args.key?(:log_type)
end end
end end

View File

@ -267,7 +267,6 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers' collection :exempted_members, as: 'exemptedMembers'
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
property :log_type, as: 'logType' property :log_type, as: 'logType'
end end
end end