Class: Google::Cloud::Compute::V1::AttachedDiskInitializeParams
- Inherits:
-
Object
- Object
- Google::Cloud::Compute::V1::AttachedDiskInitializeParams
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/compute/v1/compute.rb
Overview
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Defined Under Namespace
Modules: OnUpdateAction Classes: LabelsEntry
Instance Attribute Summary collapse
-
#description ⇒ ::String
An optional description.
-
#disk_name ⇒ ::String
Specifies the disk name.
-
#disk_size_gb ⇒ ::Integer
Specifies the size of the disk in base-2 GB.
-
#disk_type ⇒ ::String
Specifies the disk type to use to create the instance.
-
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Labels to apply to this disk.
-
#licenses ⇒ ::Array<::String>
A list of publicly visible licenses.
-
#on_update_action ⇒ ::String
Specifies which action to take on instance update with this disk.
-
#provisioned_iops ⇒ ::Integer
Indicates how many IOPS to provision for the disk.
-
#resource_policies ⇒ ::Array<::String>
Resource policies applied to this disk for automatic snapshot creations.
-
#source_image ⇒ ::String
The source image to create this disk.
-
#source_image_encryption_key ⇒ ::Google::Cloud::Compute::V1::CustomerEncryptionKey
The customer-supplied encryption key of the source image.
-
#source_snapshot ⇒ ::String
The source snapshot to create this disk.
-
#source_snapshot_encryption_key ⇒ ::Google::Cloud::Compute::V1::CustomerEncryptionKey
The customer-supplied encryption key of the source snapshot.
Instance Attribute Details
#description ⇒ ::String
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#disk_name ⇒ ::String
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#disk_size_gb ⇒ ::Integer
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#disk_type ⇒ ::String
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#licenses ⇒ ::Array<::String>
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#on_update_action ⇒ ::String
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#provisioned_iops ⇒ ::Integer
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#resource_policies ⇒ ::Array<::String>
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#source_image ⇒ ::String
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#source_image_encryption_key ⇒ ::Google::Cloud::Compute::V1::CustomerEncryptionKey
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#source_snapshot ⇒ ::String
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |
#source_snapshot_encryption_key ⇒ ::Google::Cloud::Compute::V1::CustomerEncryptionKey
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2015 class AttachedDiskInitializeParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies which action to take on instance update with this disk. Default is to use the existing disk. module OnUpdateAction # A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0 # Always recreate the disk. RECREATE_DISK = 494767853 # Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 # Use the existing disk, this is the default behaviour. USE_EXISTING_DISK = 232682233 end end |