Class: Etna::Clients::Metis::RenameFileRequest

Inherits:
Struct
  • Object
show all
Includes:
JsonSerializableStruct
Defined in:
lib/etna/clients/metis/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from JsonSerializableStruct

#as_json, included, #to_json

Constructor Details

#initialize(**params) ⇒ RenameFileRequest



40
41
42
# File 'lib/etna/clients/metis/models.rb', line 40

def initialize(**params)
  super({create_parent: false}.update(params))
end

Instance Attribute Details

#bucket_nameObject

Returns the value of attribute bucket_name



37
38
39
# File 'lib/etna/clients/metis/models.rb', line 37

def bucket_name
  @bucket_name
end

#create_parentObject

Returns the value of attribute create_parent



37
38
39
# File 'lib/etna/clients/metis/models.rb', line 37

def create_parent
  @create_parent
end

#file_pathObject

Returns the value of attribute file_path



37
38
39
# File 'lib/etna/clients/metis/models.rb', line 37

def file_path
  @file_path
end

#new_bucket_nameObject

Returns the value of attribute new_bucket_name



37
38
39
# File 'lib/etna/clients/metis/models.rb', line 37

def new_bucket_name
  @new_bucket_name
end

#new_file_pathObject

Returns the value of attribute new_file_path



37
38
39
# File 'lib/etna/clients/metis/models.rb', line 37

def new_file_path
  @new_file_path
end

#project_nameObject

Returns the value of attribute project_name



37
38
39
# File 'lib/etna/clients/metis/models.rb', line 37

def project_name
  @project_name
end

Instance Method Details

#to_hObject



44
45
46
47
48
49
# File 'lib/etna/clients/metis/models.rb', line 44

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