Class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/policysimulator_v1beta/classes.rb,
lib/google/apis/policysimulator_v1beta/representations.rb,
lib/google/apis/policysimulator_v1beta/representations.rb
Overview
GenerateOrgPolicyViolationsPreviewOperationMetadata is metadata about an OrgPolicyViolationsPreview generations operation.
Instance Attribute Summary collapse
-
#request_time ⇒ String
Time when the request was received.
-
#resources_found ⇒ Fixnum
Total number of resources that need scanning.
-
#resources_pending ⇒ Fixnum
Number of resources still to scan.
-
#resources_scanned ⇒ Fixnum
Number of resources already scanned.
-
#start_time ⇒ String
Time when the request started processing, i.e.
-
#state ⇒ String
The current state of the operation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
constructor
A new instance of GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
Returns a new instance of GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata.
615 616 617 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 615 def initialize(**args) update!(**args) end |
Instance Attribute Details
#request_time ⇒ String
Time when the request was received.
Corresponds to the JSON property requestTime
586 587 588 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 586 def request_time @request_time end |
#resources_found ⇒ Fixnum
Total number of resources that need scanning. Should equal resource_scanned +
resources_pending
Corresponds to the JSON property resourcesFound
592 593 594 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 592 def resources_found @resources_found end |
#resources_pending ⇒ Fixnum
Number of resources still to scan.
Corresponds to the JSON property resourcesPending
597 598 599 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 597 def resources_pending @resources_pending end |
#resources_scanned ⇒ Fixnum
Number of resources already scanned.
Corresponds to the JSON property resourcesScanned
602 603 604 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 602 def resources_scanned @resources_scanned end |
#start_time ⇒ String
Time when the request started processing, i.e. when the state was set to
RUNNING.
Corresponds to the JSON property startTime
608 609 610 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 608 def start_time @start_time end |
#state ⇒ String
The current state of the operation.
Corresponds to the JSON property state
613 614 615 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 613 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
620 621 622 623 624 625 626 627 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 620 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 |