Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule

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

A rule used to express this policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule

Returns a new instance of GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule.



1332
1333
1334
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1332

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

Instance Attribute Details

#allow_allBoolean Also known as: allow_all?

ListPolicy only when all values are allowed. Corresponds to the JSON property allowAll

Returns:

  • (Boolean)


1312
1313
1314
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1312

def allow_all
  @allow_all
end

#deny_allBoolean Also known as: deny_all?

ListPolicy only when all values are denied. Corresponds to the JSON property denyAll

Returns:

  • (Boolean)


1318
1319
1320
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1318

def deny_all
  @deny_all
end

#enforceBoolean Also known as: enforce?

BooleanPolicy only. Corresponds to the JSON property enforce

Returns:

  • (Boolean)


1324
1325
1326
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1324

def enforce
  @enforce
end

#valuesGoogle::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues

The values allowed for a ListPolicy. Corresponds to the JSON property values



1330
1331
1332
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1330

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1337
1338
1339
1340
1341
1342
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1337

def update!(**args)
  @allow_all = args[:allow_all] if args.key?(:allow_all)
  @deny_all = args[:deny_all] if args.key?(:deny_all)
  @enforce = args[:enforce] if args.key?(:enforce)
  @values = args[:values] if args.key?(:values)
end