Class: Google::Apis::GameservicesV1::GameServerDeployment
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::GameServerDeployment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gameservices_v1/classes.rb,
lib/google/apis/gameservices_v1/representations.rb,
lib/google/apis/gameservices_v1/representations.rb
Overview
A game server deployment resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Human readable description of the game server deployment.
-
#etag ⇒ String
Used to perform consistent read-modify-write updates.
-
#labels ⇒ Hash<String,String>
The labels associated with this game server deployment.
-
#name ⇒ String
The resource name of the game server deployment, in the following form:
projects/
project/locations/
locationId/gameServerDeployments/
deploymentId`` . -
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GameServerDeployment
constructor
A new instance of GameServerDeployment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GameServerDeployment
Returns a new instance of GameServerDeployment.
881 882 883 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 881 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
849 850 851 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 849 def create_time @create_time end |
#description ⇒ String
Human readable description of the game server deployment.
Corresponds to the JSON property description
854 855 856 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 854 def description @description end |
#etag ⇒ String
Used to perform consistent read-modify-write updates. If not set, a blind "
overwrite" update happens.
Corresponds to the JSON property etag
860 861 862 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 860 def etag @etag end |
#labels ⇒ Hash<String,String>
The labels associated with this game server deployment. Each label is a key-
value pair.
Corresponds to the JSON property labels
866 867 868 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 866 def labels @labels end |
#name ⇒ String
The resource name of the game server deployment, in the following form:
projects/
project/locations/
locationId/gameServerDeployments/
deploymentId`
. For example,
projects/my-project/locations/global/gameServerDeployments/my-
deployment.
Corresponds to the JSON property
name`
874 875 876 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 874 def name @name end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
879 880 881 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 879 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
886 887 888 889 890 891 892 893 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 886 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 |