Class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata

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

Overview

CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an OrgPolicyViolationsPreview generations operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata

Returns a new instance of GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata.



1354
1355
1356
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1354

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

Instance Attribute Details

#request_timeString

Time when the request was received. Corresponds to the JSON property requestTime

Returns:

  • (String)


1325
1326
1327
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1325

def request_time
  @request_time
end

#resources_foundFixnum

Total number of resources that need scanning. Should equal resource_scanned + resources_pending Corresponds to the JSON property resourcesFound

Returns:

  • (Fixnum)


1331
1332
1333
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1331

def resources_found
  @resources_found
end

#resources_pendingFixnum

Number of resources still to scan. Corresponds to the JSON property resourcesPending

Returns:

  • (Fixnum)


1336
1337
1338
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1336

def resources_pending
  @resources_pending
end

#resources_scannedFixnum

Number of resources already scanned. Corresponds to the JSON property resourcesScanned

Returns:

  • (Fixnum)


1341
1342
1343
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1341

def resources_scanned
  @resources_scanned
end

#start_timeString

Time when the request started processing, i.e., when the state was set to RUNNING. Corresponds to the JSON property startTime

Returns:

  • (String)


1347
1348
1349
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1347

def start_time
  @start_time
end

#stateString

Output only. The current state of the operation. Corresponds to the JSON property state

Returns:

  • (String)


1352
1353
1354
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1352

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1359
1360
1361
1362
1363
1364
1365
1366
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1359

def update!(**args)
  @request_time = args[:request_time] if args.key?(:request_time)
  @resources_found = args[:resources_found] if args.key?(:resources_found)
  @resources_pending = args[:resources_pending] if args.key?(:resources_pending)
  @resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
end