Class: Ansible::Ruby::Modules::Gcp_compute_image
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gcp_compute_image
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb
Overview
Represents an Image resource. Google Compute Engine uses operating system images to create the root persistent disks for your instances. You specify an image when you create an instance. Images contain a boot loader, an operating system, and a root file system. Linux operating system images are also capable of running containers on Compute Engine. Images can be either public or custom. Public images are provided and maintained by Google, open-source communities, and third-party vendors. By default, all projects have access to these images and can use them to create instances. Custom images are available only to your project. You can create a custom image from root persistent disks and other images. Then, use the custom image to create an instance.
Instance Method Summary collapse
-
#description ⇒ Object?
An optional description of this resource.
-
#disk_size_gb ⇒ Object?
Size of the image when restored onto a persistent disk (in GB).
-
#family ⇒ Object?
The name of the image family to which this image belongs.
-
#guest_os_features ⇒ Object?
A list of features to enable on the guest OS.
-
#image_encryption_key ⇒ Object?
Encrypts the image using a customer-supplied encryption key.,After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image) .
-
#licenses ⇒ Object?
Any applicable license URI.
-
#name ⇒ String
Name of the resource; provided by the client when the resource is created.
-
#raw_disk ⇒ Object?
The parameters of the raw disk image.
-
#source_disk ⇒ String?
Refers to a gcompute_disk object You must provide either this property or the rawDisk.source property but not both to create an image.
-
#source_disk_encryption_key ⇒ Object?
The customer-supplied encryption key of the source disk.
-
#source_disk_id ⇒ Object?
The ID value of the disk used to create this image.
-
#source_type ⇒ :RAW?
The type of the image used to create this disk.
-
#state ⇒ :present, ...
Whether the given object should exist in GCP.
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
#description ⇒ Object?
19 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 19 attribute :description |
#disk_size_gb ⇒ Object?
22 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 22 attribute :disk_size_gb |
#family ⇒ Object?
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 25 attribute :family |
#guest_os_features ⇒ Object?
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 28 attribute :guest_os_features |
#image_encryption_key ⇒ Object?
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 31 attribute :image_encryption_key |
#licenses ⇒ Object?
34 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 34 attribute :licenses |
#name ⇒ String
37 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 37 attribute :name |
#raw_disk ⇒ Object?
41 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 41 attribute :raw_disk |
#source_disk ⇒ String?
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 44 attribute :source_disk |
#source_disk_encryption_key ⇒ Object?
48 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 48 attribute :source_disk_encryption_key |
#source_disk_id ⇒ Object?
51 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 51 attribute :source_disk_id |
#source_type ⇒ :RAW?
54 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 54 attribute :source_type |
#state ⇒ :present, ...
15 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_image.rb', line 15 attribute :state |