Class: Google::Apis::CloudassetV1::QueryAssetsRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb

Overview

QueryAssets request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryAssetsRequest

Returns a new instance of QueryAssetsRequest.



4937
4938
4939
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4937

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#job_referenceString

Optional. Reference to the query job, which is from the QueryAssetsResponse of previous QueryAssets call. Corresponds to the JSON property jobReference

Returns:

  • (String)


4887
4888
4889
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4887

def job_reference
  @job_reference
end

#output_configGoogle::Apis::CloudassetV1::QueryAssetsOutputConfig

Output configuration query assets. Corresponds to the JSON property outputConfig



4892
4893
4894
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4892

def output_config
  @output_config
end

#page_sizeFixnum

Optional. The maximum number of rows to return in the results. Responses are limited to 10 MB and 1000 rows. By default, the maximum row count is 1000. When the byte or row count limit is reached, the rest of the query results will be paginated. The field will be ignored when [output_config] is specified. Corresponds to the JSON property pageSize

Returns:

  • (Fixnum)


4900
4901
4902
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4900

def page_size
  @page_size
end

#page_tokenString

Optional. A page token received from previous QueryAssets. The field will be ignored when [output_config] is specified. Corresponds to the JSON property pageToken

Returns:

  • (String)


4906
4907
4908
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4906

def page_token
  @page_token
end

#read_timeString

Optional. Queries cloud assets as they appeared at the specified point in time. Corresponds to the JSON property readTime

Returns:

  • (String)


4911
4912
4913
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4911

def read_time
  @read_time
end

#read_time_windowGoogle::Apis::CloudassetV1::TimeWindow

A time window specified by its start_time and end_time. Corresponds to the JSON property readTimeWindow



4916
4917
4918
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4916

def read_time_window
  @read_time_window
end

#statementString

Optional. A SQL statement that's compatible with BigQuery SQL. Corresponds to the JSON property statement

Returns:

  • (String)


4922
4923
4924
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4922

def statement
  @statement
end

#timeoutString

Optional. Specifies the maximum amount of time that the client is willing to wait for the query to complete. By default, this limit is 5 min for the first query, and 1 minute for the following queries. If the query is complete, the done field in the QueryAssetsResponse is true, otherwise false. Like BigQuery jobs.query API The call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete. The field will be ignored when [output_config] is specified. Corresponds to the JSON property timeout

Returns:

  • (String)


4935
4936
4937
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4935

def timeout
  @timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4942

def update!(**args)
  @job_reference = args[:job_reference] if args.key?(:job_reference)
  @output_config = args[:output_config] if args.key?(:output_config)
  @page_size = args[:page_size] if args.key?(:page_size)
  @page_token = args[:page_token] if args.key?(:page_token)
  @read_time = args[:read_time] if args.key?(:read_time)
  @read_time_window = args[:read_time_window] if args.key?(:read_time_window)
  @statement = args[:statement] if args.key?(:statement)
  @timeout = args[:timeout] if args.key?(:timeout)
end