Class: Google::Apis::RunV2::GoogleCloudRunV2InstanceSplitStatus

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

Overview

Represents the observed state of a single InstanceSplit entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2InstanceSplitStatus

Returns a new instance of GoogleCloudRunV2InstanceSplitStatus.



1272
1273
1274
# File 'lib/google/apis/run_v2/classes.rb', line 1272

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

Instance Attribute Details

#percentFixnum

Specifies percent of the instance split to this Revision. Corresponds to the JSON property percent

Returns:

  • (Fixnum)


1260
1261
1262
# File 'lib/google/apis/run_v2/classes.rb', line 1260

def percent
  @percent
end

#revisionString

Revision to which this instance split is assigned. Corresponds to the JSON property revision

Returns:

  • (String)


1265
1266
1267
# File 'lib/google/apis/run_v2/classes.rb', line 1265

def revision
  @revision
end

#typeString

The allocation type for this instance split. Corresponds to the JSON property type

Returns:

  • (String)


1270
1271
1272
# File 'lib/google/apis/run_v2/classes.rb', line 1270

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1277
1278
1279
1280
1281
# File 'lib/google/apis/run_v2/classes.rb', line 1277

def update!(**args)
  @percent = args[:percent] if args.key?(:percent)
  @revision = args[:revision] if args.key?(:revision)
  @type = args[:type] if args.key?(:type)
end