Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint.
The definition of a custom constraint.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#action_type
def action_type() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::ActionType
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::ActionType) — Allow or deny type.
#action_type=
def action_type=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::ActionType
- value (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::ActionType) — Allow or deny type.
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::ActionType) — Allow or deny type.
#condition
def condition() -> ::String
-
(::String) — Organization Policy condition/expression. For example:
resource.instanceName.matches("[production|test]_.*_(\d)+")'
or,resource.management.auto_upgrade == true
#condition=
def condition=(value) -> ::String
-
value (::String) — Organization Policy condition/expression. For example:
resource.instanceName.matches("[production|test]_.*_(\d)+")'
or,resource.management.auto_upgrade == true
-
(::String) — Organization Policy condition/expression. For example:
resource.instanceName.matches("[production|test]_.*_(\d)+")'
or,resource.management.auto_upgrade == true
#description
def description() -> ::String
- (::String) — Detailed information about this custom policy constraint.
#description=
def description=(value) -> ::String
- value (::String) — Detailed information about this custom policy constraint.
- (::String) — Detailed information about this custom policy constraint.
#display_name
def display_name() -> ::String
- (::String) — One line display name for the UI.
#display_name=
def display_name=(value) -> ::String
- value (::String) — One line display name for the UI.
- (::String) — One line display name for the UI.
#method_types
def method_types() -> ::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType>
- (::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType>) — All the operations being applied for this constraint.
#method_types=
def method_types=(value) -> ::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType>
- value (::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType>) — All the operations being applied for this constraint.
- (::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType>) — All the operations being applied for this constraint.
#name
def name() -> ::String
-
(::String) — Name of the constraint. This is unique within the organization. Format of
the name should be
organizations/{organization_id}/customConstraints/{custom_constraint_id}
Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
#name=
def name=(value) -> ::String
-
value (::String) — Name of the constraint. This is unique within the organization. Format of
the name should be
organizations/{organization_id}/customConstraints/{custom_constraint_id}
Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
-
(::String) — Name of the constraint. This is unique within the organization. Format of
the name should be
organizations/{organization_id}/customConstraints/{custom_constraint_id}
Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
#resource_types
def resource_types() -> ::Array<::String>
-
(::Array<::String>) —
The Resource Instance type on which this policy applies to. Format will be of the form : "
compute.googleapis.com/Instance
.
#resource_types=
def resource_types=(value) -> ::Array<::String>
-
value (::Array<::String>) —
The Resource Instance type on which this policy applies to. Format will be of the form : "
compute.googleapis.com/Instance
.
-
(::Array<::String>) —
The Resource Instance type on which this policy applies to. Format will be of the form : "
compute.googleapis.com/Instance
.