Class: Google::Apis::ComputeAlpha::DiskType

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Overview

Represents a Disk Type resource. Google Compute Engine has two Disk Type resources:

  • Regional * Zonal You can choose from a variety of disk types based on your needs. For more information, read Storage options. The diskTypes resource represents disk types for a zonal persistent disk. For more information, read Zonal persistent disks. The regionDiskTypes resource represents disk types for a regional persistent disk. For more information, read Regional persistent disks. (== resource_for $ api_version.diskTypes ==) (== resource_for $api_version.regionDiskTypes ==)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DiskType

Returns a new instance of DiskType.


6427
6428
6429
# File 'generated/google/apis/compute_alpha/classes.rb', line 6427

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creation_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)

6364
6365
6366
# File 'generated/google/apis/compute_alpha/classes.rb', line 6364

def creation_timestamp
  @creation_timestamp
end

#default_disk_size_gbFixnum

[Output Only] Server-defined default disk size in GB. Corresponds to the JSON property defaultDiskSizeGb

Returns:

  • (Fixnum)

6369
6370
6371
# File 'generated/google/apis/compute_alpha/classes.rb', line 6369

def default_disk_size_gb
  @default_disk_size_gb
end

#deprecatedGoogle::Apis::ComputeAlpha::DeprecationStatus

Deprecation status for a public resource. Corresponds to the JSON property deprecated


6374
6375
6376
# File 'generated/google/apis/compute_alpha/classes.rb', line 6374

def deprecated
  @deprecated
end

#descriptionString

[Output Only] An optional description of this resource. Corresponds to the JSON property description

Returns:

  • (String)

6379
6380
6381
# File 'generated/google/apis/compute_alpha/classes.rb', line 6379

def description
  @description
end

#idFixnum

[Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)

6385
6386
6387
# File 'generated/google/apis/compute_alpha/classes.rb', line 6385

def id
  @id
end

#kindString

[Output Only] Type of the resource. Always compute#diskType for disk types. Corresponds to the JSON property kind

Returns:

  • (String)

6390
6391
6392
# File 'generated/google/apis/compute_alpha/classes.rb', line 6390

def kind
  @kind
end

#nameString

[Output Only] Name of the resource. Corresponds to the JSON property name

Returns:

  • (String)

6395
6396
6397
# File 'generated/google/apis/compute_alpha/classes.rb', line 6395

def name
  @name
end

#regionString

[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. Corresponds to the JSON property region

Returns:

  • (String)

6402
6403
6404
# File 'generated/google/apis/compute_alpha/classes.rb', line 6402

def region
  @region
end

[Output Only] Server-defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)

6407
6408
6409
# File 'generated/google/apis/compute_alpha/classes.rb', line 6407

def self_link
  @self_link
end

[Output Only] Server-defined URL for this resource with the resource id. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)

6412
6413
6414
# File 'generated/google/apis/compute_alpha/classes.rb', line 6412

def self_link_with_id
  @self_link_with_id
end

#valid_disk_sizeString

[Output Only] An optional textual description of the valid disk size, such as " 10GB-10TB". Corresponds to the JSON property validDiskSize

Returns:

  • (String)

6418
6419
6420
# File 'generated/google/apis/compute_alpha/classes.rb', line 6418

def valid_disk_size
  @valid_disk_size
end

#zoneString

[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. Corresponds to the JSON property zone

Returns:

  • (String)

6425
6426
6427
# File 'generated/google/apis/compute_alpha/classes.rb', line 6425

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
# File 'generated/google/apis/compute_alpha/classes.rb', line 6432

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @default_disk_size_gb = args[:default_disk_size_gb] if args.key?(:default_disk_size_gb)
  @deprecated = args[:deprecated] if args.key?(:deprecated)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @region = args[:region] if args.key?(:region)
  @self_link = args[:self_link] if args.key?(:self_link)
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
  @valid_disk_size = args[:valid_disk_size] if args.key?(:valid_disk_size)
  @zone = args[:zone] if args.key?(:zone)
end