Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest

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

Request for acknowledging the violations in a batch

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest

Returns a new instance of GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest.



294
295
296
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 294

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

Instance Attribute Details

#acknowledge_typeString

Optional. Acknowledge type of specified violations. Corresponds to the JSON property acknowledgeType

Returns:

  • (String)


279
280
281
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 279

def acknowledge_type
  @acknowledge_type
end

#commentString

Required. Business justification explaining the need for violations acknowledgement Corresponds to the JSON property comment

Returns:

  • (String)


285
286
287
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 285

def comment
  @comment
end

#namesArray<String>

Required. The resource names of the Violations to acknowledge. Format for each name: organizations/organization/locations/location/workloads/workload/ violations/violation Corresponds to the JSON property names

Returns:

  • (Array<String>)


292
293
294
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 292

def names
  @names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



299
300
301
302
303
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 299

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