Class: Etna::Clients::Metis::RenameFileRequest
- Inherits:
-
Struct
- Object
- Struct
- Etna::Clients::Metis::RenameFileRequest
- Includes:
- JsonSerializableStruct
- Defined in:
- lib/etna/clients/metis/models.rb
Instance Attribute Summary collapse
-
#bucket_name ⇒ Object
Returns the value of attribute bucket_name.
-
#create_parent ⇒ Object
Returns the value of attribute create_parent.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#new_bucket_name ⇒ Object
Returns the value of attribute new_bucket_name.
-
#new_file_path ⇒ Object
Returns the value of attribute new_file_path.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
Instance Method Summary collapse
-
#initialize(**params) ⇒ RenameFileRequest
constructor
A new instance of RenameFileRequest.
- #to_h ⇒ Object
Methods included from JsonSerializableStruct
Constructor Details
#initialize(**params) ⇒ RenameFileRequest
Returns a new instance of RenameFileRequest.
41 42 43 |
# File 'lib/etna/clients/metis/models.rb', line 41 def initialize(**params) super({create_parent: false}.update(params)) end |
Instance Attribute Details
#bucket_name ⇒ Object
Returns the value of attribute bucket_name
38 39 40 |
# File 'lib/etna/clients/metis/models.rb', line 38 def bucket_name @bucket_name end |
#create_parent ⇒ Object
Returns the value of attribute create_parent
38 39 40 |
# File 'lib/etna/clients/metis/models.rb', line 38 def create_parent @create_parent end |
#file_path ⇒ Object
Returns the value of attribute file_path
38 39 40 |
# File 'lib/etna/clients/metis/models.rb', line 38 def file_path @file_path end |
#new_bucket_name ⇒ Object
Returns the value of attribute new_bucket_name
38 39 40 |
# File 'lib/etna/clients/metis/models.rb', line 38 def new_bucket_name @new_bucket_name end |
#new_file_path ⇒ Object
Returns the value of attribute new_file_path
38 39 40 |
# File 'lib/etna/clients/metis/models.rb', line 38 def new_file_path @new_file_path end |
#project_name ⇒ Object
Returns the value of attribute project_name
38 39 40 |
# File 'lib/etna/clients/metis/models.rb', line 38 def project_name @project_name end |
Instance Method Details
#to_h ⇒ Object
45 46 47 48 49 50 |
# File 'lib/etna/clients/metis/models.rb', line 45 def to_h # The :project_name comes in from Polyphemus as a symbol value, # we need to make sure it's a string because it's going # in the URL. super().compact.transform_values(&:to_s) end |