Class: Google::Apis::GameservicesV1::GameServerDeployment

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/gameservices_v1/classes.rb,
generated/google/apis/gameservices_v1/representations.rb,
generated/google/apis/gameservices_v1/representations.rb

Overview

A game server deployment resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GameServerDeployment

Returns a new instance of GameServerDeployment.



880
881
882
# File 'generated/google/apis/gameservices_v1/classes.rb', line 880

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

Instance Attribute Details

#create_timeString

Output only. The creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


849
850
851
# File 'generated/google/apis/gameservices_v1/classes.rb', line 849

def create_time
  @create_time
end

#descriptionString

Human readable description of the game server delpoyment. Corresponds to the JSON property description

Returns:

  • (String)


854
855
856
# File 'generated/google/apis/gameservices_v1/classes.rb', line 854

def description
  @description
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


859
860
861
# File 'generated/google/apis/gameservices_v1/classes.rb', line 859

def etag
  @etag
end

#labelsHash<String,String>

The labels associated with this game server deployment. Each label is a key- value pair. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


865
866
867
# File 'generated/google/apis/gameservices_v1/classes.rb', line 865

def labels
  @labels
end

#nameString

The resource name of the game server deployment, in the following form: projects/project/locations/location/gameServerDeployments/deployment`. For example,projects/my-project/locations/global/gameServerDeployments/my- deployment. Corresponds to the JSON propertyname`

Returns:

  • (String)


873
874
875
# File 'generated/google/apis/gameservices_v1/classes.rb', line 873

def name
  @name
end

#update_timeString

Output only. The last-modified time. Corresponds to the JSON property updateTime

Returns:

  • (String)


878
879
880
# File 'generated/google/apis/gameservices_v1/classes.rb', line 878

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



885
886
887
888
889
890
891
892
# File 'generated/google/apis/gameservices_v1/classes.rb', line 885

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end