Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest
- 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
-
#acknowledge_type ⇒ String
Optional.
-
#comment ⇒ String
Required.
-
#names ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest
constructor
A new instance of GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_type ⇒ String
Optional. Acknowledge type of specified violations.
Corresponds to the JSON property acknowledgeType
279 280 281 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 279 def acknowledge_type @acknowledge_type end |
#comment ⇒ String
Required. Business justification explaining the need for violations
acknowledgement
Corresponds to the JSON property comment
285 286 287 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 285 def comment @comment end |
#names ⇒ Array<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
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 |