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: 5

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1ViolationExceptionContext

Returns a new instance of GoogleCloudAssuredworkloadsV1ViolationExceptionContext.



363
364
365
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 363

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)


351
352
353
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 351

def acknowledgement_time
  @acknowledgement_time
end

#commentString

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

Returns:

  • (String)


356
357
358
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 356

def comment
  @comment
end

#principal_emailString

Email address of the user (or service account) who acknowledged the violation. Corresponds to the JSON property principalEmail

Returns:

  • (String)


361
362
363
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 361

def principal_email
  @principal_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



368
369
370
371
372
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 368

def update!(**args)
  @acknowledgement_time = args[:acknowledgement_time] if args.key?(:acknowledgement_time)
  @comment = args[:comment] if args.key?(:comment)
  @principal_email = args[:principal_email] if args.key?(:principal_email)
end