Class: Ansible::Ruby::Modules::Gc_storage

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/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

Methods inherited from Base

#ansible_name, #to_h

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

#bucketString

Returns Bucket name.

Returns:

  • (String)

    Bucket name.



12
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 12

attribute :bucket

#destString?

Returns The destination file path when downloading an object/key with a GET operation.

Returns:

  • (String, nil)

    The destination file path when downloading an object/key with a GET operation.



24
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 24

attribute :dest

#expirationObject?

Returns Time limit (in seconds) for the URL generated and returned by GCA when performing a mode=put or mode=get_url operation. This url is only available when public-read is the acl for the object.

Returns:

  • (Object, nil)

    Time limit (in seconds) for the URL generated and returned by GCA when performing a mode=put or mode=get_url operation. This url is only available when public-read is the acl for the object.



39
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 39

attribute :expiration

#force:yes, ...

Returns Forces an overwrite either locally on the filesystem or remotely with the object/key. Used with PUT and GET operations.

Returns:

  • (:yes, :no, nil)

    Forces an overwrite either locally on the filesystem or remotely with the object/key. Used with PUT and GET operations.



28
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 28

attribute :force

#gs_access_keyObject

Returns GS access key. If not set then the value of the GS_ACCESS_KEY_ID environment variable is used.

Returns:

  • (Object)

    GS access key. If not set then the value of the GS_ACCESS_KEY_ID environment variable is used.



50
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 50

attribute :gs_access_key

#gs_secret_keyObject

Returns GS secret key. If not set then the value of the GS_SECRET_ACCESS_KEY environment variable is used.

Returns:

  • (Object)

    GS secret key. If not set then the value of the GS_SECRET_ACCESS_KEY environment variable is used.



46
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 46

attribute :gs_secret_key

#headersObject?

Returns Headers to attach to object.

Returns:

  • (Object, nil)

    Headers to attach to object.



36
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 36

attribute :headers

#mode:get, ...

Returns Switches the module behaviour between upload, download, get_url (return download url) , get_str (download object as string), create (bucket) and delete (bucket).

Returns:

  • (:get, :put, :get_url, :get_str, :delete, :create)

    Switches the module behaviour between upload, download, get_url (return download url) , get_str (download object as string), create (bucket) and delete (bucket).



42
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 42

attribute :mode

#objectString?

Returns Keyname of the object inside the bucket. Can be also be used to create “virtual directories” (see examples).

Returns:

  • (String, nil)

    Keyname of the object inside the bucket. Can be also be used to create “virtual directories” (see examples).



16
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 16

attribute :object

#permissionString?

Returns This option let’s the user set the canned permissions on the object/bucket that are created. The permissions that can be set are ‘private’, ‘public-read’, ‘authenticated-read’.

Returns:

  • (String, nil)

    This option let’s the user set the canned permissions on the object/bucket that are created. The permissions that can be set are ‘private’, ‘public-read’, ‘authenticated-read’.



32
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 32

attribute :permission

#regionString?

Returns The gs region to use. If not defined then the value ‘US’ will be used. See U(cloud.google.com/storage/docs/bucket-locations).

Returns:



54
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 54

attribute :region

#srcString?

Returns The source file path when performing a PUT operation.

Returns:

  • (String, nil)

    The source file path when performing a PUT operation.



20
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 20

attribute :src

#versioningSymbol?

Returns Whether versioning is enabled or disabled (note that once versioning is enabled, it can only be suspended).

Returns:

  • (Symbol, nil)

    Whether versioning is enabled or disabled (note that once versioning is enabled, it can only be suspended)



58
# File 'lib/ansible/ruby/modules/generated/cloud/google/gc_storage.rb', line 58

attribute :versioning