Class: Google::Apis::ComputeAlpha::StoragePool

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

Overview

Represents a zonal storage pool resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StoragePool

Returns a new instance of StoragePool.



45513
45514
45515
# File 'lib/google/apis/compute_alpha/classes.rb', line 45513

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)


45421
45422
45423
# File 'lib/google/apis/compute_alpha/classes.rb', line 45421

def creation_timestamp
  @creation_timestamp
end

#descriptionString

An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property description

Returns:

  • (String)


45427
45428
45429
# File 'lib/google/apis/compute_alpha/classes.rb', line 45427

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)


45433
45434
45435
# File 'lib/google/apis/compute_alpha/classes.rb', line 45433

def id
  @id
end

#kindString

[Output Only] Type of the resource. Always compute#storagePool for storage pools. Corresponds to the JSON property kind

Returns:

  • (String)


45439
45440
45441
# File 'lib/google/apis/compute_alpha/classes.rb', line 45439

def kind
  @kind
end

#label_fingerprintString

A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a storage pool. Corresponds to the JSON property labelFingerprint NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


45451
45452
45453
# File 'lib/google/apis/compute_alpha/classes.rb', line 45451

def label_fingerprint
  @label_fingerprint
end

#labelsHash<String,String>

Labels to apply to this storage pool. These can be later modified by the setLabels method. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


45457
45458
45459
# File 'lib/google/apis/compute_alpha/classes.rb', line 45457

def labels
  @labels
end

#nameString

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a- z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Corresponds to the JSON property name

Returns:

  • (String)


45467
45468
45469
# File 'lib/google/apis/compute_alpha/classes.rb', line 45467

def name
  @name
end

#provisioned_iopsFixnum

Provsioned IOPS of the storage pool. Corresponds to the JSON property provisionedIops

Returns:

  • (Fixnum)


45472
45473
45474
# File 'lib/google/apis/compute_alpha/classes.rb', line 45472

def provisioned_iops
  @provisioned_iops
end

#resource_statusGoogle::Apis::ComputeAlpha::StoragePoolResourceStatus

[Output Only] Contains output only fields. Corresponds to the JSON property resourceStatus



45477
45478
45479
# File 'lib/google/apis/compute_alpha/classes.rb', line 45477

def resource_status
  @resource_status
end

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

Returns:

  • (String)


45482
45483
45484
# File 'lib/google/apis/compute_alpha/classes.rb', line 45482

def self_link
  @self_link
end

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

Returns:

  • (String)


45487
45488
45489
# File 'lib/google/apis/compute_alpha/classes.rb', line 45487

def self_link_with_id
  @self_link_with_id
end

#size_gbFixnum

Size, in GiB, of the storage pool. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


45492
45493
45494
# File 'lib/google/apis/compute_alpha/classes.rb', line 45492

def size_gb
  @size_gb
end

#stateString

[Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. Corresponds to the JSON property state

Returns:

  • (String)


45499
45500
45501
# File 'lib/google/apis/compute_alpha/classes.rb', line 45499

def state
  @state
end

#typeString

Type of the storage pool Corresponds to the JSON property type

Returns:

  • (String)


45504
45505
45506
# File 'lib/google/apis/compute_alpha/classes.rb', line 45504

def type
  @type
end

#zoneString

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


45511
45512
45513
# File 'lib/google/apis/compute_alpha/classes.rb', line 45511

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45518
45519
45520
45521
45522
45523
45524
45525
45526
45527
45528
45529
45530
45531
45532
45533
45534
# File 'lib/google/apis/compute_alpha/classes.rb', line 45518

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
  @resource_status = args[:resource_status] if args.key?(:resource_status)
  @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)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
  @zone = args[:zone] if args.key?(:zone)
end