Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ViolationExceptionContext

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

Overview

Violation exception detail.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1ViolationExceptionContext

Returns a new instance of GoogleCloudAssuredworkloadsV1beta1ViolationExceptionContext.



1794
1795
1796
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1794

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

Instance Attribute Details

#acknowledgement_timeString

Timestamp when the violation was acknowledged. Corresponds to the JSON property acknowledgementTime

Returns:

  • (String)


1782
1783
1784
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1782

def acknowledgement_time
  @acknowledgement_time
end

#commentString

Business justification provided towards the acknowledgement of the violation. Corresponds to the JSON property comment

Returns:

  • (String)


1787
1788
1789
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1787

def comment
  @comment
end

#user_nameString

Name of the user (or service account) who acknowledged the violation. Corresponds to the JSON property userName

Returns:

  • (String)


1792
1793
1794
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1792

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1799
1800
1801
1802
1803
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1799

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