Class: Etna::Clients::Metis::RenameFolderRequest

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) ⇒ RenameFolderRequest

Returns a new instance of RenameFolderRequest.



25
26
27
# File 'lib/etna/clients/metis/models.rb', line 25

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

Instance Attribute Details

#bucket_nameObject

Returns the value of attribute bucket_name

Returns:

  • (Object)

    the current value of bucket_name



22
23
24
# File 'lib/etna/clients/metis/models.rb', line 22

def bucket_name
  @bucket_name
end

#create_parentObject

Returns the value of attribute create_parent

Returns:

  • (Object)

    the current value of create_parent



22
23
24
# File 'lib/etna/clients/metis/models.rb', line 22

def create_parent
  @create_parent
end

#folder_pathObject

Returns the value of attribute folder_path

Returns:

  • (Object)

    the current value of folder_path



22
23
24
# File 'lib/etna/clients/metis/models.rb', line 22

def folder_path
  @folder_path
end

#new_bucket_nameObject

Returns the value of attribute new_bucket_name

Returns:

  • (Object)

    the current value of new_bucket_name



22
23
24
# File 'lib/etna/clients/metis/models.rb', line 22

def new_bucket_name
  @new_bucket_name
end

#new_folder_pathObject

Returns the value of attribute new_folder_path

Returns:

  • (Object)

    the current value of new_folder_path



22
23
24
# File 'lib/etna/clients/metis/models.rb', line 22

def new_folder_path
  @new_folder_path
end

#project_nameObject

Returns the value of attribute project_name

Returns:

  • (Object)

    the current value of project_name



22
23
24
# File 'lib/etna/clients/metis/models.rb', line 22

def project_name
  @project_name
end

Instance Method Details

#to_hObject



29
30
31
32
33
34
# File 'lib/etna/clients/metis/models.rb', line 29

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