Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1Constraint
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::GoogleCloudAssetV1Constraint
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
The definition of a constraint.
Instance Attribute Summary collapse
-
#boolean_constraint ⇒ Google::Apis::CloudassetV1::GoogleCloudAssetV1BooleanConstraint
A
Constraint
that is either enforced or not. -
#constraint_default ⇒ String
The evaluation behavior of this constraint in the absence of 'Policy'.
-
#description ⇒ String
Detailed description of what this
Constraint
controls as well as how and where it is enforced. -
#display_name ⇒ String
The human readable name of the constraint.
-
#list_constraint ⇒ Google::Apis::CloudassetV1::GoogleCloudAssetV1ListConstraint
A
Constraint
that allows or disallows a list of string values, which are configured by an organization's policy administrator with aPolicy
. -
#name ⇒ String
The unique name of the constraint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssetV1Constraint
constructor
A new instance of GoogleCloudAssetV1Constraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssetV1Constraint
Returns a new instance of GoogleCloudAssetV1Constraint.
1753 1754 1755 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1753 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boolean_constraint ⇒ Google::Apis::CloudassetV1::GoogleCloudAssetV1BooleanConstraint
A Constraint
that is either enforced or not. For example a constraint
constraints/compute.disableSerialPortAccess
. If it is enforced on a VM
instance, serial port connections will not be opened to that instance.
Corresponds to the JSON property booleanConstraint
1723 1724 1725 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1723 def boolean_constraint @boolean_constraint end |
#constraint_default ⇒ String
The evaluation behavior of this constraint in the absence of 'Policy'.
Corresponds to the JSON property constraintDefault
1728 1729 1730 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1728 def constraint_default @constraint_default end |
#description ⇒ String
Detailed description of what this Constraint
controls as well as how and
where it is enforced.
Corresponds to the JSON property description
1734 1735 1736 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1734 def description @description end |
#display_name ⇒ String
The human readable name of the constraint.
Corresponds to the JSON property displayName
1739 1740 1741 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1739 def display_name @display_name end |
#list_constraint ⇒ Google::Apis::CloudassetV1::GoogleCloudAssetV1ListConstraint
A Constraint
that allows or disallows a list of string values, which are
configured by an organization's policy administrator with a Policy
.
Corresponds to the JSON property listConstraint
1745 1746 1747 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1745 def list_constraint @list_constraint end |
#name ⇒ String
The unique name of the constraint. Format of the name should be * constraints/
constraint_name`For example,
constraints/compute.disableSerialPortAccess.
Corresponds to the JSON property
name`
1751 1752 1753 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1751 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1758 1759 1760 1761 1762 1763 1764 1765 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1758 def update!(**args) @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint) @constraint_default = args[:constraint_default] if args.key?(:constraint_default) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @list_constraint = args[:list_constraint] if args.key?(:list_constraint) @name = args[:name] if args.key?(:name) end |