Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues

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

The values allowed for a ListPolicy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues

Returns a new instance of GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues.



563
564
565
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 563

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

Instance Attribute Details

#allowed_valuesArray<String>

List of values allowed at this resource. Corresponds to the JSON property allowedValues

Returns:

  • (Array<String>)


556
557
558
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 556

def allowed_values
  @allowed_values
end

#denied_valuesArray<String>

List of values denied at this resource. Corresponds to the JSON property deniedValues

Returns:

  • (Array<String>)


561
562
563
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 561

def denied_values
  @denied_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



568
569
570
571
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 568

def update!(**args)
  @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
  @denied_values = args[:denied_values] if args.key?(:denied_values)
end