Reference documentation and code samples for the Design Center V1 API class Google::Cloud::DesignCenter::V1::Policy.
A Policy is a resource within an Application Template that refers to a Policy that you author outside of Application Design Center and attach to an application template.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#apply_conditions
def apply_conditions() -> ::Array<::Google::Cloud::DesignCenter::V1::ApplyCondition>-
(::Array<::Google::Cloud::DesignCenter::V1::ApplyCondition>) — Optional. Conditions for applying the policy. Condition accepts the
criticalityandenvironmentparameters from the application template.
#apply_conditions=
def apply_conditions=(value) -> ::Array<::Google::Cloud::DesignCenter::V1::ApplyCondition>-
value (::Array<::Google::Cloud::DesignCenter::V1::ApplyCondition>) — Optional. Conditions for applying the policy. Condition accepts the
criticalityandenvironmentparameters from the application template.
-
(::Array<::Google::Cloud::DesignCenter::V1::ApplyCondition>) — Optional. Conditions for applying the policy. Condition accepts the
criticalityandenvironmentparameters from the application template.
#cloud_control_configs
def cloud_control_configs() -> ::Array<::Google::Cloud::DesignCenter::V1::CloudControlConfig>-
(::Array<::Google::Cloud::DesignCenter::V1::CloudControlConfig>) — Optional. Input only. Parameter values for the cloud controls of the
policy's framework, grouped by cloud control. Only honored when framework
parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on the policy. On update, they replace the saved values. If they are empty, the saved values are cleared if
cloud_control_configsis named in the update mask. Otherwise, the saved values are kept, unless the policy's framework changes.
#cloud_control_configs=
def cloud_control_configs=(value) -> ::Array<::Google::Cloud::DesignCenter::V1::CloudControlConfig>-
value (::Array<::Google::Cloud::DesignCenter::V1::CloudControlConfig>) — Optional. Input only. Parameter values for the cloud controls of the
policy's framework, grouped by cloud control. Only honored when framework
parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on the policy. On update, they replace the saved values. If they are empty, the saved values are cleared if
cloud_control_configsis named in the update mask. Otherwise, the saved values are kept, unless the policy's framework changes.
-
(::Array<::Google::Cloud::DesignCenter::V1::CloudControlConfig>) — Optional. Input only. Parameter values for the cloud controls of the
policy's framework, grouped by cloud control. Only honored when framework
parameter support is enabled for the project; ignored otherwise.
The values are saved with the application template and are not returned on the policy. On update, they replace the saved values. If they are empty, the saved values are cleared if
cloud_control_configsis named in the update mask. Otherwise, the saved values are kept, unless the policy's framework changes.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. The policy creation timestamp.
#description
def description() -> ::String- (::String) — Optional. The policy description.
#description=
def description=(value) -> ::String- value (::String) — Optional. The policy description.
- (::String) — Optional. The policy description.
#display_name
def display_name() -> ::String- (::String) — Optional. The policy display name.
#display_name=
def display_name=(value) -> ::String- value (::String) — Optional. The policy display name.
- (::String) — Optional. The policy display name.
#name
def name() -> ::String-
(::String) — Identifier. The policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
#name=
def name=(value) -> ::String-
value (::String) — Identifier. The policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
-
(::String) — Identifier. The policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
#policy_revision_uri
def policy_revision_uri() -> ::String-
(::String) — Optional. URI of the policy revision.
Note: The following fields are mutually exclusive:
policy_revision_uri,policy_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
#policy_revision_uri=
def policy_revision_uri=(value) -> ::String-
value (::String) — Optional. URI of the policy revision.
Note: The following fields are mutually exclusive:
policy_revision_uri,policy_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. URI of the policy revision.
Note: The following fields are mutually exclusive:
policy_revision_uri,policy_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
#policy_type
def policy_type() -> ::Google::Cloud::DesignCenter::V1::Policy::PolicyType- (::Google::Cloud::DesignCenter::V1::Policy::PolicyType) — Required. The policy type. Policy type is used to determine the domain of the policy.
#policy_type=
def policy_type=(value) -> ::Google::Cloud::DesignCenter::V1::Policy::PolicyType- value (::Google::Cloud::DesignCenter::V1::Policy::PolicyType) — Required. The policy type. Policy type is used to determine the domain of the policy.
- (::Google::Cloud::DesignCenter::V1::Policy::PolicyType) — Required. The policy type. Policy type is used to determine the domain of the policy.
#policy_uri
def policy_uri() -> ::String-
(::String) — Optional. URI of the policy.
Note: The following fields are mutually exclusive:
policy_uri,policy_revision_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
#policy_uri=
def policy_uri=(value) -> ::String-
value (::String) — Optional. URI of the policy.
Note: The following fields are mutually exclusive:
policy_uri,policy_revision_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. URI of the policy.
Note: The following fields are mutually exclusive:
policy_uri,policy_revision_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. The policy update timestamp.