Reference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition.
Custom constraint definition. Defines this as a managed constraint.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#action_type
def action_type() -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType
- (::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType) — Allow or deny type.
#action_type=
def action_type=(value) -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType
- value (::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType) — Allow or deny type.
- (::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType) — Allow or deny type.
#condition
def condition() -> ::String
-
(::String) — Org policy condition/expression. For example:
resource.instanceName.matches("[production|test]_.*_(\d)+")
or,resource.management.auto_upgrade == true
The max length of the condition is 1000 characters.
#condition=
def condition=(value) -> ::String
-
value (::String) — Org policy condition/expression. For example:
resource.instanceName.matches("[production|test]_.*_(\d)+")
or,resource.management.auto_upgrade == true
The max length of the condition is 1000 characters.
-
(::String) — Org policy condition/expression. For example:
resource.instanceName.matches("[production|test]_.*_(\d)+")
or,resource.management.auto_upgrade == true
The max length of the condition is 1000 characters.
#method_types
def method_types() -> ::Array<::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType>
- (::Array<::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType>) — All the operations being applied for this constraint.
#method_types=
def method_types=(value) -> ::Array<::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType>
- value (::Array<::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType>) — All the operations being applied for this constraint.
- (::Array<::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType>) — All the operations being applied for this constraint.
#parameters
def parameters() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) — Stores the structure of
Parameters
used by the constraint condition. The key ofmap
represents the name of the parameter.
#parameters=
def parameters=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}
-
value (::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) — Stores the structure of
Parameters
used by the constraint condition. The key ofmap
represents the name of the parameter.
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) — Stores the structure of
Parameters
used by the constraint condition. The key ofmap
represents the name of the parameter.
#resource_types
def resource_types() -> ::Array<::String>
-
(::Array<::String>) —
The resource instance type on which this policy applies. Format will be of the form :
<service name>/<type>
Example:compute.googleapis.com/Instance
.
#resource_types=
def resource_types=(value) -> ::Array<::String>
-
value (::Array<::String>) —
The resource instance type on which this policy applies. Format will be of the form :
<service name>/<type>
Example:compute.googleapis.com/Instance
.
-
(::Array<::String>) —
The resource instance type on which this policy applies. Format will be of the form :
<service name>/<type>
Example:compute.googleapis.com/Instance
.