Module: Google::Cloud::Metastore::V1beta::DataprocMetastore::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb
Overview
Path helper methods for the DataprocMetastore API.
Instance Method Summary collapse
-
#backup_path(project:, location:, service:, backup:) ⇒ ::String
Create a fully-qualified Backup resource string.
-
#lake_path(project:, location:, lake:) ⇒ ::String
Create a fully-qualified Lake resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#metadata_import_path(project:, location:, service:, metadata_import:) ⇒ ::String
Create a fully-qualified MetadataImport resource string.
-
#network_path(project:, network:) ⇒ ::String
Create a fully-qualified Network resource string.
-
#service_path(project:, location:, service:) ⇒ ::String
Create a fully-qualified Service resource string.
-
#subnetwork_path(project:, region:, subnetwork:) ⇒ ::String
Create a fully-qualified Subnetwork resource string.
Instance Method Details
#backup_path(project:, location:, service:, backup:) ⇒ ::String
Create a fully-qualified Backup resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/services/{service}/backups/{backup}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb', line 40 def backup_path project:, location:, service:, backup: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/" "projects/#{project}/locations/#{location}/services/#{service}/backups/#{backup}" end |
#lake_path(project:, location:, lake:) ⇒ ::String
Create a fully-qualified Lake resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/lakes/{lake}
60 61 62 63 64 65 |
# File 'lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb', line 60 def lake_path project:, location:, lake: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/lakes/#{lake}" 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}
78 79 80 81 82 |
# File 'lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb', line 78 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#metadata_import_path(project:, location:, service:, metadata_import:) ⇒ ::String
Create a fully-qualified MetadataImport resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}
97 98 99 100 101 102 103 |
# File 'lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb', line 97 def project:, location:, service:, metadata_import: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/" "projects/#{project}/locations/#{location}/services/#{service}/metadataImports/#{}" end |
#network_path(project:, network:) ⇒ ::String
Create a fully-qualified Network resource string.
The resource will be in the following format:
projects/{project}/global/networks/{network}
116 117 118 119 120 |
# File 'lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb', line 116 def network_path project:, network: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/global/networks/#{network}" end |
#service_path(project:, location:, service:) ⇒ ::String
Create a fully-qualified Service resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/services/{service}
134 135 136 137 138 139 |
# File 'lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb', line 134 def service_path project:, location:, service: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/services/#{service}" end |
#subnetwork_path(project:, region:, subnetwork:) ⇒ ::String
Create a fully-qualified Subnetwork resource string.
The resource will be in the following format:
projects/{project}/regions/{region}/subnetworks/{subnetwork}
153 154 155 156 157 158 |
# File 'lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb', line 153 def subnetwork_path project:, region:, subnetwork: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/" "projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}" end |