Policy Simulator V1 API - Module Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Paths (v1.4.0)

Reference documentation and code samples for the Policy Simulator V1 API module Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Paths.

Path helper methods for the OrgPolicyViolationsPreviewService API.

Methods

#custom_constraint_path

def custom_constraint_path(organization:, custom_constraint:) -> ::String

Create a fully-qualified CustomConstraint resource string.

The resource will be in the following format:

organizations/{organization}/customConstraints/{custom_constraint}

Parameters
  • organization (String)
  • custom_constraint (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#org_policy_violations_preview_path

def org_policy_violations_preview_path(organization:, location:, org_policy_violations_preview:) -> ::String

Create a fully-qualified OrgPolicyViolationsPreview resource string.

The resource will be in the following format:

organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{org_policy_violations_preview}

Parameters
  • organization (String)
  • location (String)
  • org_policy_violations_preview (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#organization_location_path

def organization_location_path(organization:, location:) -> ::String

Create a fully-qualified OrganizationLocation resource string.

The resource will be in the following format:

organizations/{organization}/locations/{location}

Parameters
  • organization (String)
  • location (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#policy_path

def policy_path(project:, policy:) -> ::String
def policy_path(folder:, policy:) -> ::String
def policy_path(organization:, policy:) -> ::String

Create a fully-qualified Policy resource string.

Overloads
def policy_path(project:, policy:) -> ::String
The resource will be in the following format:

projects/{project}/policies/{policy}

Parameters
  • project (String)
  • policy (String)
def policy_path(folder:, policy:) -> ::String
The resource will be in the following format:

folders/{folder}/policies/{policy}

Parameters
  • folder (String)
  • policy (String)
def policy_path(organization:, policy:) -> ::String
The resource will be in the following format:

organizations/{organization}/policies/{policy}

Parameters
  • organization (String)
  • policy (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)