Class: Google::Apis::ComputeAlpha::ReservationSlot

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 reservation slot resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReservationSlot

Returns a new instance of ReservationSlot.



59545
59546
59547
# File 'lib/google/apis/compute_alpha/classes.rb', line 59545

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

Instance Attribute Details

#creation_timestampString

Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


59488
59489
59490
# File 'lib/google/apis/compute_alpha/classes.rb', line 59488

def creation_timestamp
  @creation_timestamp
end

#idFixnum

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

Returns:

  • (Fixnum)


59495
59496
59497
# File 'lib/google/apis/compute_alpha/classes.rb', line 59495

def id
  @id
end

#kindString

Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots. Corresponds to the JSON property kind

Returns:

  • (String)


59501
59502
59503
# File 'lib/google/apis/compute_alpha/classes.rb', line 59501

def kind
  @kind
end

#nameString

Output only. [Output Only] The name of the reservation slot. Corresponds to the JSON property name

Returns:

  • (String)


59506
59507
59508
# File 'lib/google/apis/compute_alpha/classes.rb', line 59506

def name
  @name
end

#physical_topologyGoogle::Apis::ComputeAlpha::ReservationSlotPhysicalTopology

Output only. [Output Only] The physical topology of the reservation slot. Corresponds to the JSON property physicalTopology



59511
59512
59513
# File 'lib/google/apis/compute_alpha/classes.rb', line 59511

def physical_topology
  @physical_topology
end

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

Returns:

  • (String)


59517
59518
59519
# File 'lib/google/apis/compute_alpha/classes.rb', line 59517

def self_link
  @self_link
end

Output only. [Output Only] A server-defined URL for this resource with the resource ID. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


59523
59524
59525
# File 'lib/google/apis/compute_alpha/classes.rb', line 59523

def self_link_with_id
  @self_link_with_id
end

#share_settingsGoogle::Apis::ComputeAlpha::ShareSettings

The share setting for reservations and sole tenancy node groups. Corresponds to the JSON property shareSettings



59528
59529
59530
# File 'lib/google/apis/compute_alpha/classes.rb', line 59528

def share_settings
  @share_settings
end

#stateString

Output only. [Output Only] The state of the reservation slot. Corresponds to the JSON property state

Returns:

  • (String)


59533
59534
59535
# File 'lib/google/apis/compute_alpha/classes.rb', line 59533

def state
  @state
end

#statusGoogle::Apis::ComputeAlpha::ReservationSlotStatus

Output only. [Output Only] The status of the reservation slot. Corresponds to the JSON property status



59538
59539
59540
# File 'lib/google/apis/compute_alpha/classes.rb', line 59538

def status
  @status
end

#zoneString

Output only. [Output Only] The zone in which the reservation slot resides. Corresponds to the JSON property zone

Returns:

  • (String)


59543
59544
59545
# File 'lib/google/apis/compute_alpha/classes.rb', line 59543

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



59550
59551
59552
59553
59554
59555
59556
59557
59558
59559
59560
59561
59562
# File 'lib/google/apis/compute_alpha/classes.rb', line 59550

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @physical_topology = args[:physical_topology] if args.key?(:physical_topology)
  @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)
  @share_settings = args[:share_settings] if args.key?(:share_settings)
  @state = args[:state] if args.key?(:state)
  @status = args[:status] if args.key?(:status)
  @zone = args[:zone] if args.key?(:zone)
end