Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest

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

Request for acknowledging the violation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest

Returns a new instance of GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest.



49
50
51
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 49

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

Instance Attribute Details

#acknowledge_typeString

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

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 32

def acknowledge_type
  @acknowledge_type
end

#commentString

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

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 38

def comment
  @comment
end

#non_compliant_org_policyString

Optional. This field is deprecated and will be removed in future version of the API. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/project_number/policies/ constraint_name folders/folder_id/policies/constraint_name organizations/ organization_id/policies/constraint_name Corresponds to the JSON property nonCompliantOrgPolicy

Returns:

  • (String)


47
48
49
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 47

def non_compliant_org_policy
  @non_compliant_org_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



54
55
56
57
58
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 54

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