Class: Google::Apis::GameservicesV1beta::GameServerDeploymentRollout

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

Overview

The game server deployment rollout which represents the desired rollout state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GameServerDeploymentRollout

Returns a new instance of GameServerDeploymentRollout.



952
953
954
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 952

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


918
919
920
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 918

def create_time
  @create_time
end

#default_game_server_configString

The default game server config is applied to all realms unless overridden in the rollout. For example, projects/my-project/locations/global/ gameServerDeployments/my-game/configs/my-config. Corresponds to the JSON property defaultGameServerConfig

Returns:

  • (String)


925
926
927
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 925

def default_game_server_config
  @default_game_server_config
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


930
931
932
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 930

def etag
  @etag
end

#game_server_config_overridesArray<Google::Apis::GameservicesV1beta::GameServerConfigOverride>

Contains the game server config rollout overrides. Overrides are processed in the order they are listed. Once a match is found for a realm, the rest of the list is not processed. Corresponds to the JSON property gameServerConfigOverrides



937
938
939
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 937

def game_server_config_overrides
  @game_server_config_overrides
end

#nameString

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

Returns:

  • (String)


945
946
947
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 945

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


950
951
952
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 950

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



957
958
959
960
961
962
963
964
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 957

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