Module: Google::Cloud::Metastore::V1::DataprocMetastore::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/metastore/v1/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.
-
#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/v1/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 |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
59 60 61 62 63 |
# File 'lib/google/cloud/metastore/v1/dataproc_metastore/paths.rb', line 59 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}
78 79 80 81 82 83 84 |
# File 'lib/google/cloud/metastore/v1/dataproc_metastore/paths.rb', line 78 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}
97 98 99 100 101 |
# File 'lib/google/cloud/metastore/v1/dataproc_metastore/paths.rb', line 97 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}
115 116 117 118 119 120 |
# File 'lib/google/cloud/metastore/v1/dataproc_metastore/paths.rb', line 115 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}
134 135 136 137 138 139 |
# File 'lib/google/cloud/metastore/v1/dataproc_metastore/paths.rb', line 134 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 |