Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationExceptionContext
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationExceptionContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/assuredworkloads_v1/classes.rb,
lib/google/apis/assuredworkloads_v1/representations.rb,
lib/google/apis/assuredworkloads_v1/representations.rb
Overview
Violation exception detail.
Instance Attribute Summary collapse
-
#acknowledgement_time ⇒ String
Timestamp when the violation was acknowledged.
-
#comment ⇒ String
Business justification provided towards the acknowledgement of the violation.
-
#user_name ⇒ String
Name of the user (or service account) who acknowledged the violation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1ViolationExceptionContext
constructor
A new instance of GoogleCloudAssuredworkloadsV1ViolationExceptionContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1ViolationExceptionContext
Returns a new instance of GoogleCloudAssuredworkloadsV1ViolationExceptionContext.
559 560 561 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 559 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acknowledgement_time ⇒ String
Timestamp when the violation was acknowledged.
Corresponds to the JSON property acknowledgementTime
547 548 549 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 547 def acknowledgement_time @acknowledgement_time end |
#comment ⇒ String
Business justification provided towards the acknowledgement of the violation.
Corresponds to the JSON property comment
552 553 554 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 552 def comment @comment end |
#user_name ⇒ String
Name of the user (or service account) who acknowledged the violation.
Corresponds to the JSON property userName
557 558 559 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 557 def user_name @user_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
564 565 566 567 568 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 564 def update!(**args) @acknowledgement_time = args[:acknowledgement_time] if args.key?(:acknowledgement_time) @comment = args[:comment] if args.key?(:comment) @user_name = args[:user_name] if args.key?(:user_name) end |