Design Center V1 API - Class Google::Cloud::DesignCenter::V1::Policy (v0.1.0)

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>
Returns

#apply_conditions=

def apply_conditions=(value) -> ::Array<::Google::Cloud::DesignCenter::V1::ApplyCondition>
Parameter
Returns

#cloud_control_configs

def cloud_control_configs() -> ::Array<::Google::Cloud::DesignCenter::V1::CloudControlConfig>
Returns
  • (::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_configs is 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>
Parameter
  • 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_configs is named in the update mask. Otherwise, the saved values are kept, unless the policy's framework changes.

Returns
  • (::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_configs is 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
Returns

#description

def description() -> ::String
Returns
  • (::String) — Optional. The policy description.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Optional. The policy description.
Returns
  • (::String) — Optional. The policy description.

#display_name

def display_name() -> ::String
Returns
  • (::String) — Optional. The policy display name.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::String) — Optional. The policy display name.
Returns
  • (::String) — Optional. The policy display name.

#name

def name() -> ::String
Returns
  • (::String) — Identifier. The policy name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Identifier. The policy name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns

#policy_type=

def policy_type=(value) -> ::Google::Cloud::DesignCenter::V1::Policy::PolicyType
Parameter
Returns

#policy_uri

def policy_uri() -> ::String
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns