Class: Google::Apis::ComputeV1::ReservationSlot

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.



47938
47939
47940
# File 'lib/google/apis/compute_v1/classes.rb', line 47938

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)


47881
47882
47883
# File 'lib/google/apis/compute_v1/classes.rb', line 47881

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)


47888
47889
47890
# File 'lib/google/apis/compute_v1/classes.rb', line 47888

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)


47894
47895
47896
# File 'lib/google/apis/compute_v1/classes.rb', line 47894

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


47899
47900
47901
# File 'lib/google/apis/compute_v1/classes.rb', line 47899

def name
  @name
end

#physical_topologyGoogle::Apis::ComputeV1::ReservationSlotPhysicalTopology

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



47904
47905
47906
# File 'lib/google/apis/compute_v1/classes.rb', line 47904

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)


47910
47911
47912
# File 'lib/google/apis/compute_v1/classes.rb', line 47910

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)


47916
47917
47918
# File 'lib/google/apis/compute_v1/classes.rb', line 47916

def self_link_with_id
  @self_link_with_id
end

#share_settingsGoogle::Apis::ComputeV1::ShareSettings

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



47921
47922
47923
# File 'lib/google/apis/compute_v1/classes.rb', line 47921

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)


47926
47927
47928
# File 'lib/google/apis/compute_v1/classes.rb', line 47926

def state
  @state
end

#statusGoogle::Apis::ComputeV1::ReservationSlotStatus

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



47931
47932
47933
# File 'lib/google/apis/compute_v1/classes.rb', line 47931

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)


47936
47937
47938
# File 'lib/google/apis/compute_v1/classes.rb', line 47936

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



47943
47944
47945
47946
47947
47948
47949
47950
47951
47952
47953
47954
47955
# File 'lib/google/apis/compute_v1/classes.rb', line 47943

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