Class: Google::Apis::ComputeBeta::StoragePoolType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StoragePoolType

Returns a new instance of StoragePoolType.



46958
46959
46960
# File 'lib/google/apis/compute_beta/classes.rb', line 46958

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)


46871
46872
46873
# File 'lib/google/apis/compute_beta/classes.rb', line 46871

def creation_timestamp
  @creation_timestamp
end

#deprecatedGoogle::Apis::ComputeBeta::DeprecationStatus

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



46876
46877
46878
# File 'lib/google/apis/compute_beta/classes.rb', line 46876

def deprecated
  @deprecated
end

#descriptionString

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

Returns:

  • (String)


46881
46882
46883
# File 'lib/google/apis/compute_beta/classes.rb', line 46881

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)


46887
46888
46889
# File 'lib/google/apis/compute_beta/classes.rb', line 46887

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)


46893
46894
46895
# File 'lib/google/apis/compute_beta/classes.rb', line 46893

def kind
  @kind
end

#max_pool_provisioned_capacity_gbFixnum

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

Returns:

  • (Fixnum)


46898
46899
46900
# File 'lib/google/apis/compute_beta/classes.rb', line 46898

def max_pool_provisioned_capacity_gb
  @max_pool_provisioned_capacity_gb
end

#max_pool_provisioned_iopsFixnum

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

Returns:

  • (Fixnum)


46903
46904
46905
# File 'lib/google/apis/compute_beta/classes.rb', line 46903

def max_pool_provisioned_iops
  @max_pool_provisioned_iops
end

#max_pool_provisioned_throughputFixnum

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

Returns:

  • (Fixnum)


46908
46909
46910
# File 'lib/google/apis/compute_beta/classes.rb', line 46908

def max_pool_provisioned_throughput
  @max_pool_provisioned_throughput
end

#min_pool_provisioned_capacity_gbFixnum

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

Returns:

  • (Fixnum)


46913
46914
46915
# File 'lib/google/apis/compute_beta/classes.rb', line 46913

def min_pool_provisioned_capacity_gb
  @min_pool_provisioned_capacity_gb
end

#min_pool_provisioned_iopsFixnum

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

Returns:

  • (Fixnum)


46918
46919
46920
# File 'lib/google/apis/compute_beta/classes.rb', line 46918

def min_pool_provisioned_iops
  @min_pool_provisioned_iops
end

#min_pool_provisioned_throughputFixnum

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

Returns:

  • (Fixnum)


46923
46924
46925
# File 'lib/google/apis/compute_beta/classes.rb', line 46923

def min_pool_provisioned_throughput
  @min_pool_provisioned_throughput
end

#min_size_gbFixnum

[Deprecated] This field is deprecated. Use minPoolProvisionedCapacityGb instead. Corresponds to the JSON property minSizeGb

Returns:

  • (Fixnum)


46929
46930
46931
# File 'lib/google/apis/compute_beta/classes.rb', line 46929

def min_size_gb
  @min_size_gb
end

#nameString

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

Returns:

  • (String)


46934
46935
46936
# File 'lib/google/apis/compute_beta/classes.rb', line 46934

def name
  @name
end

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

Returns:

  • (String)


46939
46940
46941
# File 'lib/google/apis/compute_beta/classes.rb', line 46939

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)


46944
46945
46946
# File 'lib/google/apis/compute_beta/classes.rb', line 46944

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>)


46949
46950
46951
# File 'lib/google/apis/compute_beta/classes.rb', line 46949

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)


46956
46957
46958
# File 'lib/google/apis/compute_beta/classes.rb', line 46956

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46963
46964
46965
46966
46967
46968
46969
46970
46971
46972
46973
46974
46975
46976
46977
46978
46979
46980
46981
# File 'lib/google/apis/compute_beta/classes.rb', line 46963

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_pool_provisioned_capacity_gb = args[:max_pool_provisioned_capacity_gb] if args.key?(:max_pool_provisioned_capacity_gb)
  @max_pool_provisioned_iops = args[:max_pool_provisioned_iops] if args.key?(:max_pool_provisioned_iops)
  @max_pool_provisioned_throughput = args[:max_pool_provisioned_throughput] if args.key?(:max_pool_provisioned_throughput)
  @min_pool_provisioned_capacity_gb = args[:min_pool_provisioned_capacity_gb] if args.key?(:min_pool_provisioned_capacity_gb)
  @min_pool_provisioned_iops = args[:min_pool_provisioned_iops] if args.key?(:min_pool_provisioned_iops)
  @min_pool_provisioned_throughput = args[:min_pool_provisioned_throughput] if args.key?(:min_pool_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