Add dfareporting_v2_6, regenerate APIs
This commit is contained in:
1 parent
ff11f30681
commit
ef50538458
112 files changed
+33405
-4981
No files matched your search
@@ -174,6 +174,14 @@ module Google
|
||||
attr_accessor :ignore_unspecified_column_families
|
||||
alias_method :ignore_unspecified_column_families?, :ignore_unspecified_column_families
|
||||
|
||||
# [Optional] If field is true, then the rowkey column families will be read and
|
||||
# converted to string. Otherwise they are read with BYTES type values and users
|
||||
# need to manually cast them with CAST if necessary. The default value is false.
|
||||
# Corresponds to the JSON property `readRowkeyAsString`
|
||||
# @return [Boolean]
|
||||
attr_accessor :read_rowkey_as_string
|
||||
alias_method :read_rowkey_as_string?, :read_rowkey_as_string
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -182,6 +190,7 @@ module Google
|
||||
def update!(**args)
|
||||
@column_families = args[:column_families] if args.key?(:column_families)
|
||||
@ignore_unspecified_column_families = args[:ignore_unspecified_column_families] if args.key?(:ignore_unspecified_column_families)
|
||||
@read_rowkey_as_string = args[:read_rowkey_as_string] if args.key?(:read_rowkey_as_string)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -325,6 +334,17 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Experimental] The labels associated with this dataset. You can use these to
|
||||
# organize and group your datasets. You can set this property when inserting or
|
||||
# updating a dataset. Label keys and values can be no longer than 63 characters,
|
||||
# can only contain letters, numeric characters, underscores and dashes.
|
||||
# International characters are allowed. Label values are optional. Label keys
|
||||
# must start with a letter and must be unique within a dataset. Both keys and
|
||||
# values are additionally constrained to be <= 128 bytes in size.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# [Output-only] The date when this dataset or any of its tables was last
|
||||
# modified, in milliseconds since the epoch.
|
||||
# Corresponds to the JSON property `lastModifiedTime`
|
||||
@@ -358,6 +378,7 @@ module Google
|
||||
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@@ -490,6 +511,12 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Experimental] The labels associated with this dataset. You can use these to
|
||||
# organize and group your datasets.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -500,6 +527,7 @@ module Google
|
||||
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -834,6 +862,12 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output-only, Experimental] The number of rows affected by a DML statement.
|
||||
# Present only for DML statements INSERT, UPDATE or DELETE.
|
||||
# Corresponds to the JSON property `numDmlAffectedRows`
|
||||
# @return [String]
|
||||
attr_accessor :num_dml_affected_rows
|
||||
|
||||
# A token used for paging results.
|
||||
# Corresponds to the JSON property `pageToken`
|
||||
# @return [String]
|
||||
@@ -876,6 +910,7 @@ module Google
|
||||
@job_complete = args[:job_complete] if args.key?(:job_complete)
|
||||
@job_reference = args[:job_reference] if args.key?(:job_reference)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
|
||||
@page_token = args[:page_token] if args.key?(:page_token)
|
||||
@rows = args[:rows] if args.key?(:rows)
|
||||
@schema = args[:schema] if args.key?(:schema)
|
||||
@@ -1700,8 +1735,13 @@ module Google
|
||||
attr_accessor :cache_hit
|
||||
alias_method :cache_hit?, :cache_hit
|
||||
|
||||
# [Output-only, Experimental] Describes execution plan for the query as a list
|
||||
# of stages.
|
||||
# [Output-only, Experimental] The number of rows affected by a DML statement.
|
||||
# Present only for DML statements INSERT, UPDATE or DELETE.
|
||||
# Corresponds to the JSON property `numDmlAffectedRows`
|
||||
# @return [String]
|
||||
attr_accessor :num_dml_affected_rows
|
||||
|
||||
# [Output-only, Experimental] Describes execution plan for the query.
|
||||
# Corresponds to the JSON property `queryPlan`
|
||||
# @return [Array<Google::Apis::BigqueryV2::ExplainQueryStage>]
|
||||
attr_accessor :query_plan
|
||||
@@ -1736,6 +1776,7 @@ module Google
|
||||
def update!(**args)
|
||||
@billing_tier = args[:billing_tier] if args.key?(:billing_tier)
|
||||
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
||||
@num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
|
||||
@query_plan = args[:query_plan] if args.key?(:query_plan)
|
||||
@referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
|
||||
@schema = args[:schema] if args.key?(:schema)
|
||||
@@ -2075,6 +2116,12 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output-only, Experimental] The number of rows affected by a DML statement.
|
||||
# Present only for DML statements INSERT, UPDATE or DELETE.
|
||||
# Corresponds to the JSON property `numDmlAffectedRows`
|
||||
# @return [String]
|
||||
attr_accessor :num_dml_affected_rows
|
||||
|
||||
# A token used for paging results.
|
||||
# Corresponds to the JSON property `pageToken`
|
||||
# @return [String]
|
||||
@@ -2115,6 +2162,7 @@ module Google
|
||||
@job_complete = args[:job_complete] if args.key?(:job_complete)
|
||||
@job_reference = args[:job_reference] if args.key?(:job_reference)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
|
||||
@page_token = args[:page_token] if args.key?(:page_token)
|
||||
@rows = args[:rows] if args.key?(:rows)
|
||||
@schema = args[:schema] if args.key?(:schema)
|
||||
|
||||
@@ -364,6 +364,7 @@ module Google
|
||||
collection :column_families, as: 'columnFamilies', class: Google::Apis::BigqueryV2::BigtableColumnFamily, decorator: Google::Apis::BigqueryV2::BigtableColumnFamily::Representation
|
||||
|
||||
property :ignore_unspecified_column_families, as: 'ignoreUnspecifiedColumnFamilies'
|
||||
property :read_rowkey_as_string, as: 'readRowkeyAsString'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -393,6 +394,7 @@ module Google
|
||||
property :friendly_name, as: 'friendlyName'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
hash :labels, as: 'labels'
|
||||
property :last_modified_time, as: 'lastModifiedTime'
|
||||
property :location, as: 'location'
|
||||
property :self_link, as: 'selfLink'
|
||||
@@ -430,6 +432,7 @@ module Google
|
||||
property :friendly_name, as: 'friendlyName'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
hash :labels, as: 'labels'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -511,6 +514,7 @@ module Google
|
||||
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :num_dml_affected_rows, as: 'numDmlAffectedRows'
|
||||
property :page_token, as: 'pageToken'
|
||||
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
|
||||
|
||||
@@ -710,6 +714,7 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :billing_tier, as: 'billingTier'
|
||||
property :cache_hit, as: 'cacheHit'
|
||||
property :num_dml_affected_rows, as: 'numDmlAffectedRows'
|
||||
collection :query_plan, as: 'queryPlan', class: Google::Apis::BigqueryV2::ExplainQueryStage, decorator: Google::Apis::BigqueryV2::ExplainQueryStage::Representation
|
||||
|
||||
collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
||||
@@ -806,6 +811,7 @@ module Google
|
||||
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :num_dml_affected_rows, as: 'numDmlAffectedRows'
|
||||
property :page_token, as: 'pageToken'
|
||||
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
|
||||
|
||||
|
||||
@@ -177,6 +177,12 @@ module Google
|
||||
# Project ID of the datasets to be listed
|
||||
# @param [Boolean] all
|
||||
# Whether to list all datasets, including hidden ones
|
||||
# @param [String] filter
|
||||
# An expression for filtering the results of the request by label. The syntax is
|
||||
# "labels.[:]". Multiple filters can be ANDed together by connecting with a
|
||||
# space. Example: "labels.department:receiving labels.active". See https://cloud.
|
||||
# google.com/bigquery/docs/labeling-datasets#filtering_datasets_using_labels for
|
||||
# details.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results to return
|
||||
# @param [String] page_token
|
||||
@@ -202,12 +208,13 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_datasets(project_id, all: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def list_datasets(project_id, all: nil, filter: nil, 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', options)
|
||||
command.response_representation = Google::Apis::BigqueryV2::DatasetList::Representation
|
||||
command.response_class = Google::Apis::BigqueryV2::DatasetList
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['all'] = all unless all.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
|
||||
Reference in new issue
Block a user