Cloud OS Config V1 API - Module Google::Cloud::OsConfig::V1::OsConfigZonalService::Paths (v1.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
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)
#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)
#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)
#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)
#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)
#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)
#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)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud OS Config V1 API - Module Google::Cloud::OsConfig::V1::OsConfigZonalService::Paths (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [1.3.0](/ruby/docs/reference/google-cloud-os_config-v1/1.3.0/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [1.2.1](/ruby/docs/reference/google-cloud-os_config-v1/1.2.1/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [1.1.0](/ruby/docs/reference/google-cloud-os_config-v1/1.1.0/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [1.0.1](/ruby/docs/reference/google-cloud-os_config-v1/1.0.1/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [0.16.0](/ruby/docs/reference/google-cloud-os_config-v1/0.16.0/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [0.15.2](/ruby/docs/reference/google-cloud-os_config-v1/0.15.2/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [0.14.0](/ruby/docs/reference/google-cloud-os_config-v1/0.14.0/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [0.13.0](/ruby/docs/reference/google-cloud-os_config-v1/0.13.0/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [0.12.0](/ruby/docs/reference/google-cloud-os_config-v1/0.12.0/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [0.11.0](/ruby/docs/reference/google-cloud-os_config-v1/0.11.0/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1/0.10.0/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1/0.9.1/Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths) \nReference documentation and code samples for the Cloud OS Config V1 API module Google::Cloud::OsConfig::V1::OsConfigZonalService::Paths.\n\nPath helper methods for the OsConfigZonalService API. \n\nExtended By\n-----------\n\n- [Google::Cloud::OsConfig::V1::OsConfigZonalService::Paths](./Google-Cloud-OsConfig-V1-OsConfigZonalService-Paths)\n\nMethods\n-------\n\n### #instance_os_policy_assignment_path\n\n def instance_os_policy_assignment_path(project:, location:, instance:, assignment:) -\u003e ::String\n\nCreate a fully-qualified InstanceOSPolicyAssignment resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **instance** (String)\n- **assignment** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #instance_path\n\n def instance_path(project:, zone:, instance:) -\u003e ::String\n def instance_path(project:, location:, instance:) -\u003e ::String\n\nCreate a fully-qualified Instance resource string. \n**Overloads** \n\n def instance_path(project:, zone:, instance:) -\u003e ::String\n\nThe resource will be in the following format:\n\n\n`projects/{project}/zones/{zone}/instances/{instance}` \n**Parameters**\n\n- **project** (String)\n- **zone** (String)\n- **instance** (String) \n\n def instance_path(project:, location:, instance:) -\u003e ::String\n\nThe resource will be in the following format:\n\n\n`projects/{project}/locations/{location}/instances/{instance}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **instance** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #inventory_path\n\n def inventory_path(project:, location:, instance:) -\u003e ::String\n\nCreate a fully-qualified Inventory resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/instances/{instance}/inventory` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **instance** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #location_path\n\n def location_path(project:, location:) -\u003e ::String\n\nCreate a fully-qualified Location resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}` \n**Parameters**\n\n- **project** (String)\n- **location** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #os_policy_assignment_path\n\n def os_policy_assignment_path(project:, location:, os_policy_assignment:) -\u003e ::String\n\nCreate a fully-qualified OSPolicyAssignment resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **os_policy_assignment** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #os_policy_assignment_report_path\n\n def os_policy_assignment_report_path(project:, location:, instance:, assignment:) -\u003e ::String\n\nCreate a fully-qualified OSPolicyAssignmentReport resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **instance** (String)\n- **assignment** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #vulnerability_report_path\n\n def vulnerability_report_path(project:, location:, instance:) -\u003e ::String\n\nCreate a fully-qualified VulnerabilityReport resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **instance** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)"]]