Organization Policy V2 API - Class Google::Cloud::OrgPolicy::V2::CreatePolicyRequest (v0.3.0)

Stay organized with collections Save and categorize content based on your preferences.

Reference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::CreatePolicyRequest.

The request sent to the [CreatePolicyRequest] [google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy] method.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#parent

def parent() -> ::String
Returns
  • (::String) —

    Required. The Cloud resource that will parent the new Policy. Must be in one of the following forms:

    • projects/{project_number}
    • projects/{project_id}
    • folders/{folder_id}
    • organizations/{organization_id}

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) —

    Required. The Cloud resource that will parent the new Policy. Must be in one of the following forms:

    • projects/{project_number}
    • projects/{project_id}
    • folders/{folder_id}
    • organizations/{organization_id}
Returns
  • (::String) —

    Required. The Cloud resource that will parent the new Policy. Must be in one of the following forms:

    • projects/{project_number}
    • projects/{project_id}
    • folders/{folder_id}
    • organizations/{organization_id}

#policy

def policy() -> ::Google::Cloud::OrgPolicy::V2::Policy
Returns

#policy=

def policy=(value) -> ::Google::Cloud::OrgPolicy::V2::Policy
Parameter
Returns