Module: Google::Cloud::GDCHardwareManagement::V1alpha::GDCHardwareManagement::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb
Overview
Path helper methods for the GDCHardwareManagement API.
Instance Method Summary collapse
-
#change_log_entry_path(project:, location:, order:, change_log_entry:) ⇒ ::String
Create a fully-qualified ChangeLogEntry resource string.
-
#comment_path(project:, location:, order:, comment:) ⇒ ::String
Create a fully-qualified Comment resource string.
-
#hardware_group_path(project:, location:, order:, hardware_group:) ⇒ ::String
Create a fully-qualified HardwareGroup resource string.
-
#hardware_path(project:, location:, hardware:) ⇒ ::String
Create a fully-qualified Hardware resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#order_path(project:, location:, order:) ⇒ ::String
Create a fully-qualified Order resource string.
-
#site_path(project:, location:, site:) ⇒ ::String
Create a fully-qualified Site resource string.
-
#sku_path(project:, location:, sku:) ⇒ ::String
Create a fully-qualified Sku resource string.
-
#zone_path(project:, location:, zone:) ⇒ ::String
Create a fully-qualified Zone resource string.
Instance Method Details
#change_log_entry_path(project:, location:, order:, change_log_entry:) ⇒ ::String
Create a fully-qualified ChangeLogEntry resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb', line 40 def change_log_entry_path project:, location:, order:, change_log_entry: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "order cannot contain /" if order.to_s.include? "/" "projects/#{project}/locations/#{location}/orders/#{order}/changeLogEntries/#{change_log_entry}" end |
#comment_path(project:, location:, order:, comment:) ⇒ ::String
Create a fully-qualified Comment resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/orders/{order}/comments/{comment}
61 62 63 64 65 66 67 |
# File 'lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb', line 61 def comment_path project:, location:, order:, comment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "order cannot contain /" if order.to_s.include? "/" "projects/#{project}/locations/#{location}/orders/#{order}/comments/#{comment}" end |
#hardware_group_path(project:, location:, order:, hardware_group:) ⇒ ::String
Create a fully-qualified HardwareGroup resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}
101 102 103 104 105 106 107 |
# File 'lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb', line 101 def hardware_group_path project:, location:, order:, hardware_group: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "order cannot contain /" if order.to_s.include? "/" "projects/#{project}/locations/#{location}/orders/#{order}/hardwareGroups/#{hardware_group}" end |
#hardware_path(project:, location:, hardware:) ⇒ ::String
Create a fully-qualified Hardware resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/hardware/{hardware}
81 82 83 84 85 86 |
# File 'lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb', line 81 def hardware_path project:, location:, hardware: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/hardware/#{hardware}" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
120 121 122 123 124 |
# File 'lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb', line 120 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#order_path(project:, location:, order:) ⇒ ::String
Create a fully-qualified Order resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/orders/{order}
138 139 140 141 142 143 |
# File 'lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb', line 138 def order_path project:, location:, order: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/orders/#{order}" end |
#site_path(project:, location:, site:) ⇒ ::String
Create a fully-qualified Site resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/sites/{site}
157 158 159 160 161 162 |
# File 'lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb', line 157 def site_path project:, location:, site: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/sites/#{site}" end |
#sku_path(project:, location:, sku:) ⇒ ::String
Create a fully-qualified Sku resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/skus/{sku}
176 177 178 179 180 181 |
# File 'lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb', line 176 def sku_path project:, location:, sku: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/skus/#{sku}" end |
#zone_path(project:, location:, zone:) ⇒ ::String
Create a fully-qualified Zone resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/zones/{zone}
195 196 197 198 199 200 |
# File 'lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb', line 195 def zone_path project:, location:, zone: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/zones/#{zone}" end |