Class: Ansible::Ruby::Modules::Gc_storage
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gc_storage
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb
Overview
This module allows users to manage their objects/buckets in Google Cloud Storage. It allows upload and download operations and can set some canned permissions. It also allows retrieval of URLs for objects for use in playbooks, and retrieval of string contents of objects. This module requires setting the default project in GCS prior to playbook usage. See U(developers.google.com/storage/docs/reference/v1/apiversion1) for information about setting the default project.
Instance Method Summary collapse
-
#bucket ⇒ String
Bucket name.
-
#dest ⇒ String?
The destination file path when downloading an object/key with a GET operation.
-
#expiration ⇒ Object?
Time limit (in seconds) for the URL generated and returned by GCA when performing a mode=put or mode=get_url operation.
-
#force ⇒ Boolean?
Forces an overwrite either locally on the filesystem or remotely with the object/key.
-
#gs_access_key ⇒ Object
GS access key.
-
#gs_secret_key ⇒ Object
GS secret key.
-
#headers ⇒ Hash?
Headers to attach to object.
-
#mode ⇒ :get, ...
Switches the module behaviour between upload, download, get_url (return download url) , get_str (download object as string), create (bucket) and delete (bucket).
-
#object ⇒ String?
Keyname of the object inside the bucket.
-
#permission ⇒ String?
This option let’s the user set the canned permissions on the object/bucket that are created.
-
#src ⇒ String?
The source file path when performing a PUT operation.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#bucket ⇒ String
11 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 11 attribute :bucket |
#dest ⇒ String?
23 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 23 attribute :dest |
#expiration ⇒ Object?
39 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 39 attribute :expiration |
#force ⇒ Boolean?
27 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 27 attribute :force |
#gs_access_key ⇒ Object
50 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 50 attribute :gs_access_key |
#gs_secret_key ⇒ Object
46 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 46 attribute :gs_secret_key |
#headers ⇒ Hash?
35 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 35 attribute :headers |
#mode ⇒ :get, ...
42 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 42 attribute :mode |
#object ⇒ String?
15 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 15 attribute :object |
#permission ⇒ String?
31 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 31 attribute :permission |
#src ⇒ String?
19 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb', line 19 attribute :src |