Class: Ansible::Ruby::Modules::Gce_pd
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gce_pd
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb
Overview
This module can create and destroy unformatted GCE persistent disks U(developers.google.com/compute/docs/disks#persistentdisks). It also supports attaching and detaching disks from running instances. Full install/configuration instructions for the gce* modules can be found in the comments of ansible/test/gce_tests.py.
Instance Method Summary collapse
-
#credentials_file ⇒ Object?
Path to the JSON file associated with the service account email.
-
#detach_only ⇒ :yes, ...
Do not destroy the disk, merely detach it from an instance.
-
#disk_type ⇒ :"pd-standard", ...
Type of disk provisioned.
-
#image ⇒ Object?
The source image to use for the disk.
-
#instance_name ⇒ String?
Instance name if you wish to attach or detach the disk.
-
#mode ⇒ :READ_WRITE, ...
GCE mount mode of disk, READ_ONLY (default) or READ_WRITE.
-
#name ⇒ String
Name of the disk.
-
#pem_file ⇒ Object?
Path to the pem file associated with the service account email This option is deprecated.
-
#project_id ⇒ Object?
Your GCE project ID.
-
#service_account_email ⇒ Object?
Service account email.
-
#size_gb ⇒ Integer?
Whole integer size of disk (in GB) to create, default is 10 GB.
-
#snapshot ⇒ Object?
The source snapshot to use for the disk.
-
#state ⇒ :active, ...
Desired state of the persistent disk.
-
#zone ⇒ String?
Zone in which to create the disk.
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
#credentials_file ⇒ Object?
Returns path to the JSON file associated with the service account email.
51 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 51 attribute :credentials_file |
#detach_only ⇒ :yes, ...
Returns do not destroy the disk, merely detach it from an instance.
11 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 11 attribute :detach_only |
#disk_type ⇒ :"pd-standard", ...
Returns type of disk provisioned.
57 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 57 attribute :disk_type |
#image ⇒ Object?
Returns the source image to use for the disk.
31 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 31 attribute :image |
#instance_name ⇒ String?
Returns instance name if you wish to attach or detach the disk.
15 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 15 attribute :instance_name |
#mode ⇒ :READ_WRITE, ...
Returns GCE mount mode of disk, READ_ONLY (default) or READ_WRITE.
19 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 19 attribute :mode |
#name ⇒ String
Returns name of the disk.
23 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 23 attribute :name |
#pem_file ⇒ Object?
Returns path to the pem file associated with the service account email This option is deprecated. Use ‘credentials_file’.
48 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 48 attribute :pem_file |
#project_id ⇒ Object?
Returns your GCE project ID.
54 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 54 attribute :project_id |
#service_account_email ⇒ Object?
Returns service account email.
45 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 45 attribute :service_account_email |
#size_gb ⇒ Integer?
Returns whole integer size of disk (in GB) to create, default is 10 GB.
27 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 27 attribute :size_gb |
#snapshot ⇒ Object?
Returns the source snapshot to use for the disk.
34 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 34 attribute :snapshot |
#state ⇒ :active, ...
Returns desired state of the persistent disk.
37 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 37 attribute :state |
#zone ⇒ String?
Returns zone in which to create the disk.
41 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 41 attribute :zone |