Module: Google::Cloud::Chronicle::V1::DataTableService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/chronicle/v1/data_table_service/paths.rb
Overview
Path helper methods for the DataTableService API.
Instance Method Summary collapse
-
#data_access_scope_path(project:, location:, instance:, data_access_scope:) ⇒ ::String
Create a fully-qualified DataAccessScope resource string.
-
#data_table_operation_errors_path(project:, location:, instance:, data_table_operation_errors:) ⇒ ::String
Create a fully-qualified DataTableOperationErrors resource string.
-
#data_table_path(project:, location:, instance:, data_table:) ⇒ ::String
Create a fully-qualified DataTable resource string.
-
#data_table_row_path(project:, location:, instance:, data_table:, data_table_row:) ⇒ ::String
Create a fully-qualified DataTableRow resource string.
-
#instance_path(project:, location:, instance:) ⇒ ::String
Create a fully-qualified Instance resource string.
Instance Method Details
#data_access_scope_path(project:, location:, instance:, data_access_scope:) ⇒ ::String
Create a fully-qualified DataAccessScope resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/chronicle/v1/data_table_service/paths.rb', line 40 def data_access_scope_path project:, location:, instance:, data_access_scope: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/dataAccessScopes/#{data_access_scope}" end |
#data_table_operation_errors_path(project:, location:, instance:, data_table_operation_errors:) ⇒ ::String
Create a fully-qualified DataTableOperationErrors resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
82 83 84 85 86 87 88 |
# File 'lib/google/cloud/chronicle/v1/data_table_service/paths.rb', line 82 def data_table_operation_errors_path project:, location:, instance:, data_table_operation_errors: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/dataTableOperationErrors/#{data_table_operation_errors}" end |
#data_table_path(project:, location:, instance:, data_table:) ⇒ ::String
Create a fully-qualified DataTable resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
61 62 63 64 65 66 67 |
# File 'lib/google/cloud/chronicle/v1/data_table_service/paths.rb', line 61 def data_table_path project:, location:, instance:, data_table: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/dataTables/#{data_table}" end |
#data_table_row_path(project:, location:, instance:, data_table:, data_table_row:) ⇒ ::String
Create a fully-qualified DataTableRow resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
104 105 106 107 108 109 110 111 |
# File 'lib/google/cloud/chronicle/v1/data_table_service/paths.rb', line 104 def data_table_row_path project:, location:, instance:, data_table:, data_table_row: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" raise ::ArgumentError, "data_table cannot contain /" if data_table.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/dataTables/#{data_table}/dataTableRows/#{data_table_row}" end |
#instance_path(project:, location:, instance:) ⇒ ::String
Create a fully-qualified Instance resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}
125 126 127 128 129 130 |
# File 'lib/google/cloud/chronicle/v1/data_table_service/paths.rb', line 125 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 |