Class: Google::Apis::VersionhistoryV1::RolloutData

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

Overview

Rollout-related metadata for a release.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RolloutData

Returns a new instance of RolloutData.



299
300
301
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 299

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

Instance Attribute Details

#rollout_nameString

The name of the rollout. Corresponds to the JSON property rolloutName

Returns:

  • (String)


290
291
292
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 290

def rollout_name
  @rollout_name
end

#tagArray<String>

Tags associated with a release's role in a rollout. Most rollouts will have at least one release with a "rollout" tag and another release with a "control" tag. Some rollouts may have additional named arms. Corresponds to the JSON property tag

Returns:

  • (Array<String>)


297
298
299
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 297

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



304
305
306
307
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 304

def update!(**args)
  @rollout_name = args[:rollout_name] if args.key?(:rollout_name)
  @tag = args[:tag] if args.key?(:tag)
end