Class: Google::Apis::ContainerV1::BlueGreenInfo

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

Overview

Information relevant to blue-green upgrade.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BlueGreenInfo

Returns a new instance of BlueGreenInfo.



856
857
858
# File 'lib/google/apis/container_v1/classes.rb', line 856

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

Instance Attribute Details

#blue_instance_group_urlsArray<String>

The resource URLs of the managed instance groups associated with blue pool. Corresponds to the JSON property blueInstanceGroupUrls

Returns:

  • (Array<String>)


832
833
834
# File 'lib/google/apis/container_v1/classes.rb', line 832

def blue_instance_group_urls
  @blue_instance_group_urls
end

#blue_pool_deletion_start_timeString

Time to start deleting blue pool to complete blue-green upgrade, in RFC3339 text format. Corresponds to the JSON property bluePoolDeletionStartTime

Returns:

  • (String)


838
839
840
# File 'lib/google/apis/container_v1/classes.rb', line 838

def blue_pool_deletion_start_time
  @blue_pool_deletion_start_time
end

#green_instance_group_urlsArray<String>

The resource URLs of the managed instance groups associated with green pool. Corresponds to the JSON property greenInstanceGroupUrls

Returns:

  • (Array<String>)


844
845
846
# File 'lib/google/apis/container_v1/classes.rb', line 844

def green_instance_group_urls
  @green_instance_group_urls
end

#green_pool_versionString

Version of green pool. Corresponds to the JSON property greenPoolVersion

Returns:

  • (String)


849
850
851
# File 'lib/google/apis/container_v1/classes.rb', line 849

def green_pool_version
  @green_pool_version
end

#phaseString

Current blue-green upgrade phase. Corresponds to the JSON property phase

Returns:

  • (String)


854
855
856
# File 'lib/google/apis/container_v1/classes.rb', line 854

def phase
  @phase
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



861
862
863
864
865
866
867
# File 'lib/google/apis/container_v1/classes.rb', line 861

def update!(**args)
  @blue_instance_group_urls = args[:blue_instance_group_urls] if args.key?(:blue_instance_group_urls)
  @blue_pool_deletion_start_time = args[:blue_pool_deletion_start_time] if args.key?(:blue_pool_deletion_start_time)
  @green_instance_group_urls = args[:green_instance_group_urls] if args.key?(:green_instance_group_urls)
  @green_pool_version = args[:green_pool_version] if args.key?(:green_pool_version)
  @phase = args[:phase] if args.key?(:phase)
end