Class Policy (0.1.0)

Policy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
policy_uri str
Optional. URI of the policy. This field is a member of oneof_ uri.
policy_revision_uri str
Optional. URI of the policy revision. This field is a member of oneof_ uri.
name str
Identifier. The policy name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
display_name str
Optional. The policy display name.
description str
Optional. The policy description.
policy_type google.cloud.designcenter_v1.types.Policy.PolicyType
Required. The policy type. Policy type is used to determine the domain of the policy.
apply_conditions MutableSequence[google.cloud.designcenter_v1.types.ApplyCondition]
Optional. Conditions for applying the policy. Condition accepts the criticality and environment parameters from the application template.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The policy creation timestamp.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The policy update timestamp.
cloud_control_configs MutableSequence[google.cloud.designcenter_v1.types.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.

Classes

PolicyType

PolicyType(value)

The policy type.