Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationExceptionContext

Inherits:
Object
  • Object
show all
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. Next Id: 6

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1ViolationExceptionContext

Returns a new instance of GoogleCloudAssuredworkloadsV1ViolationExceptionContext.



506
507
508
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 506

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)


494
495
496
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 494

def acknowledgement_time
  @acknowledgement_time
end

#commentString

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

Returns:

  • (String)


499
500
501
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 499

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)


504
505
506
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 504

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



511
512
513
514
515
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 511

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