Reference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::Policy.
Defines a Cloud Organization Policy
which is used to specify Constraints
for configurations of Cloud Platform resources.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#alternate
def alternate() -> ::Google::Cloud::OrgPolicy::V2::AlternatePolicySpec
- (::Google::Cloud::OrgPolicy::V2::AlternatePolicySpec) — Deprecated.
#alternate=
def alternate=(value) -> ::Google::Cloud::OrgPolicy::V2::AlternatePolicySpec
- value (::Google::Cloud::OrgPolicy::V2::AlternatePolicySpec) — Deprecated.
- (::Google::Cloud::OrgPolicy::V2::AlternatePolicySpec) — Deprecated.
#name
def name() -> ::String
-
(::String) — Immutable. The resource name of the Policy. Must be one of the following
forms, where constraint_name is the name of the constraint which this
Policy configures:
projects/{project_number}/policies/{constraint_name}
folders/{folder_id}/policies/{constraint_name}
organizations/{organization_id}/policies/{constraint_name}
For example, "projects/123/policies/compute.disableSerialPortAccess".
Note:
projects/{project_id}/policies/{constraint_name}
is also an acceptable name for API requests, but responses will return the name using the equivalent project number.
#name=
def name=(value) -> ::String
-
value (::String) — Immutable. The resource name of the Policy. Must be one of the following
forms, where constraint_name is the name of the constraint which this
Policy configures:
projects/{project_number}/policies/{constraint_name}
folders/{folder_id}/policies/{constraint_name}
organizations/{organization_id}/policies/{constraint_name}
For example, "projects/123/policies/compute.disableSerialPortAccess".
Note:
projects/{project_id}/policies/{constraint_name}
is also an acceptable name for API requests, but responses will return the name using the equivalent project number.
-
(::String) — Immutable. The resource name of the Policy. Must be one of the following
forms, where constraint_name is the name of the constraint which this
Policy configures:
projects/{project_number}/policies/{constraint_name}
folders/{folder_id}/policies/{constraint_name}
organizations/{organization_id}/policies/{constraint_name}
For example, "projects/123/policies/compute.disableSerialPortAccess".
Note:
projects/{project_id}/policies/{constraint_name}
is also an acceptable name for API requests, but responses will return the name using the equivalent project number.
#spec
def spec() -> ::Google::Cloud::OrgPolicy::V2::PolicySpec
- (::Google::Cloud::OrgPolicy::V2::PolicySpec) — Basic information about the Organization Policy.
#spec=
def spec=(value) -> ::Google::Cloud::OrgPolicy::V2::PolicySpec
- value (::Google::Cloud::OrgPolicy::V2::PolicySpec) — Basic information about the Organization Policy.
- (::Google::Cloud::OrgPolicy::V2::PolicySpec) — Basic information about the Organization Policy.