Cloud OS Config V1 API - Module Google::Cloud::OsConfig::V1::OsConfigZonalService::Paths (v0.16.0)

Reference documentation and code samples for the Cloud OS Config V1 API module Google::Cloud::OsConfig::V1::OsConfigZonalService::Paths.

Path helper methods for the OsConfigZonalService API.

Methods

#instance_os_policy_assignment_path

def instance_os_policy_assignment_path(project:, location:, instance:, assignment:) -> ::String

Create a fully-qualified InstanceOSPolicyAssignment resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}

Parameters
  • project (String)
  • location (String)
  • instance (String)
  • assignment (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#instance_path

def instance_path(project:, zone:, instance:) -> ::String
def instance_path(project:, location:, instance:) -> ::String

Create a fully-qualified Instance resource string.

Overloads
def instance_path(project:, zone:, instance:) -> ::String
The resource will be in the following format:

projects/{project}/zones/{zone}/instances/{instance}

Parameters
  • project (String)
  • zone (String)
  • instance (String)
def instance_path(project:, location:, instance:) -> ::String
The resource will be in the following format:

projects/{project}/locations/{location}/instances/{instance}

Parameters
  • project (String)
  • location (String)
  • instance (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#inventory_path

def inventory_path(project:, location:, instance:) -> ::String

Create a fully-qualified Inventory resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/instances/{instance}/inventory

Parameters
  • project (String)
  • location (String)
  • instance (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#location_path

def location_path(project:, location:) -> ::String

Create a fully-qualified Location resource string.

The resource will be in the following format:

projects/{project}/locations/{location}

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

#os_policy_assignment_path

def os_policy_assignment_path(project:, location:, os_policy_assignment:) -> ::String

Create a fully-qualified OSPolicyAssignment resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}

Parameters
  • project (String)
  • location (String)
  • os_policy_assignment (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#os_policy_assignment_report_path

def os_policy_assignment_report_path(project:, location:, instance:, assignment:) -> ::String

Create a fully-qualified OSPolicyAssignmentReport resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report

Parameters
  • project (String)
  • location (String)
  • instance (String)
  • assignment (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#vulnerability_report_path

def vulnerability_report_path(project:, location:, instance:) -> ::String

Create a fully-qualified VulnerabilityReport resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport

Parameters
  • project (String)
  • location (String)
  • instance (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)