Class: Ansible::Ruby::Modules::Rax_files_objects
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Rax_files_objects
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb
Overview
Upload, download, and delete objects in Rackspace Cloud Files
Instance Method Summary collapse
-
#clear_meta ⇒ :yes, ...
Optionally clear existing metadata when applying metadata to existing objects.
-
#container ⇒ Object
The container to use for file object operations.
-
#dest ⇒ Object?
The destination of a “get” operation; i.e.
-
#expires ⇒ Object?
Used to set an expiration on a file or folder uploaded to Cloud Files.
-
#meta ⇒ Object?
A hash of items to set as metadata values on an uploaded file or folder.
-
#method ⇒ :get, ...
The method of operation to be performed.
-
#src ⇒ Object?
Source from which to upload files.
-
#state ⇒ :present, ...
Indicate desired state of the resource.
-
#structure ⇒ :yes, ...
Used to specify whether to maintain nested directory structure when downloading objects from Cloud Files.
-
#type ⇒ :file, ...
Type of object to do work on,Metadata object or a file object.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#clear_meta ⇒ :yes, ...
Returns Optionally clear existing metadata when applying metadata to existing objects. Selecting this option is only appropriate when setting type=meta.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 12 attribute :clear_meta |
#container ⇒ Object
Returns The container to use for file object operations.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 16 attribute :container |
#dest ⇒ Object?
Returns The destination of a “get” operation; i.e. a local directory, “/home/user/myfolder”. Used to specify the destination of an operation on a remote object; i.e. a file name, “file1”, or a comma-separated list of remote objects, “file1,file2,file17”.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 20 attribute :dest |
#expires ⇒ Object?
Returns Used to set an expiration on a file or folder uploaded to Cloud Files. Requires an integer, specifying expiration in seconds.
23 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 23 attribute :expires |
#meta ⇒ Object?
Returns A hash of items to set as metadata values on an uploaded file or folder.
26 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 26 attribute :meta |
#method ⇒ :get, ...
Returns The method of operation to be performed. For example, put to upload files to Cloud Files, get to download files from Cloud Files or delete to delete remote objects in Cloud Files.
29 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 29 attribute :method |
#src ⇒ Object?
Returns Source from which to upload files. Used to specify a remote object as a source for an operation, i.e. a file name, “file1”, or a comma-separated list of remote objects, “file1,file2,file17”. src and dest are mutually exclusive on remote-only object operations.
33 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 33 attribute :src |
#state ⇒ :present, ...
Returns Indicate desired state of the resource.
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 40 attribute :state |
#structure ⇒ :yes, ...
Returns Used to specify whether to maintain nested directory structure when downloading objects from Cloud Files. Setting to false downloads the contents of a container to a single, flat directory.
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 36 attribute :structure |
#type ⇒ :file, ...
Returns Type of object to do work on,Metadata object or a file object.
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_files_objects.rb', line 44 attribute :type |