module Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Paths
Path helper methods for the OsConfigZonalService
API.
Public Instance Methods
Create a fully-qualified InstanceOSPoliciesCompliance
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}`
@param project [String] @param location [String] @param instance [String]
@return [::String]
# File lib/google/cloud/os_config/v1alpha/os_config_zonal_service/paths.rb, line 58 def instance_os_policies_compliance_path project:, location:, instance: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/instanceOSPoliciesCompliances/#{instance}" end
Create a fully-qualified Instance resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/instances/{instance}`
@param project [String] @param location [String] @param instance [String]
@return [::String]
# File lib/google/cloud/os_config/v1alpha/os_config_zonal_service/paths.rb, line 39 def instance_path project:, location:, instance: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}" end
Create a fully-qualified Inventory
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/instances/{instance}/inventory`
@param project [String] @param location [String] @param instance [String]
@return [::String]
# File lib/google/cloud/os_config/v1alpha/os_config_zonal_service/paths.rb, line 77 def inventory_path project:, location:, instance: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/inventory" end
Create a fully-qualified Location resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}`
@param project [String] @param location [String]
@return [::String]
# File lib/google/cloud/os_config/v1alpha/os_config_zonal_service/paths.rb, line 95 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end
Create a fully-qualified OSPolicyAssignment
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}`
@param project [String] @param location [String] @param os_policy_assignment [String]
@return [::String]
# File lib/google/cloud/os_config/v1alpha/os_config_zonal_service/paths.rb, line 113 def os_policy_assignment_path project:, location:, os_policy_assignment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/osPolicyAssignments/#{os_policy_assignment}" end
Create a fully-qualified VulnerabilityReport
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport`
@param project [String] @param location [String] @param instance [String]
@return [::String]
# File lib/google/cloud/os_config/v1alpha/os_config_zonal_service/paths.rb, line 132 def vulnerability_report_path project:, location:, instance: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/vulnerabilityReport" end