Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1AsyncQuery

Returns a new instance of GoogleCloudApigeeV1AsyncQuery.



1201
1202
1203
# File 'lib/google/apis/apigee_v1/classes.rb', line 1201

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

Instance Attribute Details

#createdString

Creation time of the query. Corresponds to the JSON property created

Returns:

  • (String)


1136
1137
1138
# File 'lib/google/apis/apigee_v1/classes.rb', line 1136

def created
  @created
end

#envgroup_hostnameString

Hostname is available only when query is executed at host level. Corresponds to the JSON property envgroupHostname

Returns:

  • (String)


1141
1142
1143
# File 'lib/google/apis/apigee_v1/classes.rb', line 1141

def envgroup_hostname
  @envgroup_hostname
end

#errorString

Error is set when query fails. Corresponds to the JSON property error

Returns:

  • (String)


1146
1147
1148
# File 'lib/google/apis/apigee_v1/classes.rb', line 1146

def error
  @error
end

#execution_timeString

ExecutionTime is available only after the query is completed. Corresponds to the JSON property executionTime

Returns:

  • (String)


1151
1152
1153
# File 'lib/google/apis/apigee_v1/classes.rb', line 1151

def execution_time
  @execution_time
end

#nameString

Asynchronous Query Name. Corresponds to the JSON property name

Returns:

  • (String)


1156
1157
1158
# File 'lib/google/apis/apigee_v1/classes.rb', line 1156

def name
  @name
end

#query_paramsGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1QueryMetadata

Contains information like metrics, dimenstions etc of the AsyncQuery. Corresponds to the JSON property queryParams



1161
1162
1163
# File 'lib/google/apis/apigee_v1/classes.rb', line 1161

def query_params
  @query_params
end

#report_definition_idString

Asynchronous Report ID. Corresponds to the JSON property reportDefinitionId

Returns:

  • (String)


1166
1167
1168
# File 'lib/google/apis/apigee_v1/classes.rb', line 1166

def report_definition_id
  @report_definition_id
end

#resultGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQueryResult

Result is available only after the query is completed. Corresponds to the JSON property result



1171
1172
1173
# File 'lib/google/apis/apigee_v1/classes.rb', line 1171

def result
  @result
end

#result_file_sizeString

ResultFileSize is available only after the query is completed. Corresponds to the JSON property resultFileSize

Returns:

  • (String)


1176
1177
1178
# File 'lib/google/apis/apigee_v1/classes.rb', line 1176

def result_file_size
  @result_file_size
end

#result_rowsFixnum

ResultRows is available only after the query is completed. Corresponds to the JSON property resultRows

Returns:

  • (Fixnum)


1181
1182
1183
# File 'lib/google/apis/apigee_v1/classes.rb', line 1181

def result_rows
  @result_rows
end

#selfString

Self link of the query. Example: /organizations/myorg/environments/myenv/ queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd or following format if query is running at host level: /organizations/myorg/hostQueries/9cfc0d85-0f30-46d6- ae6f-318d0cb961bd Corresponds to the JSON property self

Returns:

  • (String)


1189
1190
1191
# File 'lib/google/apis/apigee_v1/classes.rb', line 1189

def self
  @self
end

#stateString

Query state could be "enqueued", "running", "completed", "failed". Corresponds to the JSON property state

Returns:

  • (String)


1194
1195
1196
# File 'lib/google/apis/apigee_v1/classes.rb', line 1194

def state
  @state
end

#updatedString

Last updated timestamp for the query. Corresponds to the JSON property updated

Returns:

  • (String)


1199
1200
1201
# File 'lib/google/apis/apigee_v1/classes.rb', line 1199

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
# File 'lib/google/apis/apigee_v1/classes.rb', line 1206

def update!(**args)
  @created = args[:created] if args.key?(:created)
  @envgroup_hostname = args[:envgroup_hostname] if args.key?(:envgroup_hostname)
  @error = args[:error] if args.key?(:error)
  @execution_time = args[:execution_time] if args.key?(:execution_time)
  @name = args[:name] if args.key?(:name)
  @query_params = args[:query_params] if args.key?(:query_params)
  @report_definition_id = args[:report_definition_id] if args.key?(:report_definition_id)
  @result = args[:result] if args.key?(:result)
  @result_file_size = args[:result_file_size] if args.key?(:result_file_size)
  @result_rows = args[:result_rows] if args.key?(:result_rows)
  @self = args[:self] if args.key?(:self)
  @state = args[:state] if args.key?(:state)
  @updated = args[:updated] if args.key?(:updated)
end