Class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
- 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
CreateOrgPolicyViolationsPreviewOperationMetadata 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., when the state was set to RUNNING.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
constructor
A new instance of GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
Returns a new instance of GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata.
759 760 761 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 759 def initialize(**args) update!(**args) end |
Instance Attribute Details
#request_time ⇒ String
Time when the request was received.
Corresponds to the JSON property requestTime
730 731 732 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 730 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
736 737 738 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 736 def resources_found @resources_found end |
#resources_pending ⇒ Fixnum
Number of resources still to scan.
Corresponds to the JSON property resourcesPending
741 742 743 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 741 def resources_pending @resources_pending end |
#resources_scanned ⇒ Fixnum
Number of resources already scanned.
Corresponds to the JSON property resourcesScanned
746 747 748 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 746 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
752 753 754 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 752 def start_time @start_time end |
#state ⇒ String
Output only. The current state of the operation.
Corresponds to the JSON property state
757 758 759 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 757 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
764 765 766 767 768 769 770 771 |
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 764 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 |