Class: Google::Apis::ComputeAlpha::StoragePoolType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StoragePoolType

Returns a new instance of StoragePoolType.



48564
48565
48566
# File 'lib/google/apis/compute_alpha/classes.rb', line 48564

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)


48483
48484
48485
# File 'lib/google/apis/compute_alpha/classes.rb', line 48483

def creation_timestamp
  @creation_timestamp
end

#deprecatedGoogle::Apis::ComputeAlpha::DeprecationStatus

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



48488
48489
48490
# File 'lib/google/apis/compute_alpha/classes.rb', line 48488

def deprecated
  @deprecated
end

#descriptionString

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

Returns:

  • (String)


48493
48494
48495
# File 'lib/google/apis/compute_alpha/classes.rb', line 48493

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)


48499
48500
48501
# File 'lib/google/apis/compute_alpha/classes.rb', line 48499

def id
  @id
end

#kindString

[Output Only] Type of the resource. Always compute#storagePoolType for storage pool types. Corresponds to the JSON property kind

Returns:

  • (String)


48505
48506
48507
# File 'lib/google/apis/compute_alpha/classes.rb', line 48505

def kind
  @kind
end

#max_provisioned_iopsFixnum

[Output Only] Maximum provisioned IOPS. Corresponds to the JSON property maxProvisionedIops

Returns:

  • (Fixnum)


48510
48511
48512
# File 'lib/google/apis/compute_alpha/classes.rb', line 48510

def max_provisioned_iops
  @max_provisioned_iops
end

#max_provisioned_throughputFixnum

[Output Only] Maximum provisioned throughput. Corresponds to the JSON property maxProvisionedThroughput

Returns:

  • (Fixnum)


48515
48516
48517
# File 'lib/google/apis/compute_alpha/classes.rb', line 48515

def max_provisioned_throughput
  @max_provisioned_throughput
end

#max_size_gbFixnum

[Output Only] Maximum storage pool size in GB. Corresponds to the JSON property maxSizeGb

Returns:

  • (Fixnum)


48520
48521
48522
# File 'lib/google/apis/compute_alpha/classes.rb', line 48520

def max_size_gb
  @max_size_gb
end

#min_provisioned_iopsFixnum

[Output Only] Minimum provisioned IOPS. Corresponds to the JSON property minProvisionedIops

Returns:

  • (Fixnum)


48525
48526
48527
# File 'lib/google/apis/compute_alpha/classes.rb', line 48525

def min_provisioned_iops
  @min_provisioned_iops
end

#min_provisioned_throughputFixnum

[Output Only] Minimum provisioned throughput. Corresponds to the JSON property minProvisionedThroughput

Returns:

  • (Fixnum)


48530
48531
48532
# File 'lib/google/apis/compute_alpha/classes.rb', line 48530

def min_provisioned_throughput
  @min_provisioned_throughput
end

#min_size_gbFixnum

[Output Only] Minimum storage pool size in GB. Corresponds to the JSON property minSizeGb

Returns:

  • (Fixnum)


48535
48536
48537
# File 'lib/google/apis/compute_alpha/classes.rb', line 48535

def min_size_gb
  @min_size_gb
end

#nameString

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

Returns:

  • (String)


48540
48541
48542
# File 'lib/google/apis/compute_alpha/classes.rb', line 48540

def name
  @name
end

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

Returns:

  • (String)


48545
48546
48547
# File 'lib/google/apis/compute_alpha/classes.rb', line 48545

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)


48550
48551
48552
# File 'lib/google/apis/compute_alpha/classes.rb', line 48550

def self_link_with_id
  @self_link_with_id
end

#supported_disk_typesArray<String>

[Output Only] The list of disk types supported in this storage pool type. Corresponds to the JSON property supportedDiskTypes

Returns:

  • (Array<String>)


48555
48556
48557
# File 'lib/google/apis/compute_alpha/classes.rb', line 48555

def supported_disk_types
  @supported_disk_types
end

#zoneString

[Output Only] URL of the zone where the storage pool 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)


48562
48563
48564
# File 'lib/google/apis/compute_alpha/classes.rb', line 48562

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48569
48570
48571
48572
48573
48574
48575
48576
48577
48578
48579
48580
48581
48582
48583
48584
48585
48586
# File 'lib/google/apis/compute_alpha/classes.rb', line 48569

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @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)
  @max_provisioned_iops = args[:max_provisioned_iops] if args.key?(:max_provisioned_iops)
  @max_provisioned_throughput = args[:max_provisioned_throughput] if args.key?(:max_provisioned_throughput)
  @max_size_gb = args[:max_size_gb] if args.key?(:max_size_gb)
  @min_provisioned_iops = args[:min_provisioned_iops] if args.key?(:min_provisioned_iops)
  @min_provisioned_throughput = args[:min_provisioned_throughput] if args.key?(:min_provisioned_throughput)
  @min_size_gb = args[:min_size_gb] if args.key?(:min_size_gb)
  @name = args[:name] if args.key?(:name)
  @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)
  @supported_disk_types = args[:supported_disk_types] if args.key?(:supported_disk_types)
  @zone = args[:zone] if args.key?(:zone)
end