Class: Google::Apis::GkehubV1alpha::ClusterUpgradeScopeSpec
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::ClusterUpgradeScopeSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb
Overview
ClusterUpgrade: The configuration for the scope-level ClusterUpgrade feature.
Instance Attribute Summary collapse
-
#gke_upgrade_overrides ⇒ Array<Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeOverride>
Allow users to override some properties of each GKE upgrade.
-
#post_conditions ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions
Post conditional checks after an upgrade has been applied on all eligible clusters.
-
#upstream_scopes ⇒ Array<String>
This scope consumes upgrades that have COMPLETE status code in the upstream scopes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterUpgradeScopeSpec
constructor
A new instance of ClusterUpgradeScopeSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterUpgradeScopeSpec
Returns a new instance of ClusterUpgradeScopeSpec.
797 798 799 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 797 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gke_upgrade_overrides ⇒ Array<Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeOverride>
Allow users to override some properties of each GKE upgrade.
Corresponds to the JSON property gkeUpgradeOverrides
779 780 781 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 779 def gke_upgrade_overrides @gke_upgrade_overrides end |
#post_conditions ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions
Post conditional checks after an upgrade has been applied on all eligible
clusters.
Corresponds to the JSON property postConditions
785 786 787 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 785 def post_conditions @post_conditions end |
#upstream_scopes ⇒ Array<String>
This scope consumes upgrades that have COMPLETE status code in the upstream
scopes. See UpgradeStatus.Code for code definitions. The scope name should be
in the form: projects/
p/locations/global/scopes/
s`Where
pis the
project,
sis a valid Scope in this project.
pWILL match the Feature's
project. This is defined as repeated for future proof reasons. Initial
implementation will enforce at most one upstream scope.
Corresponds to the JSON property
upstreamScopes`
795 796 797 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 795 def upstream_scopes @upstream_scopes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
802 803 804 805 806 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 802 def update!(**args) @gke_upgrade_overrides = args[:gke_upgrade_overrides] if args.key?(:gke_upgrade_overrides) @post_conditions = args[:post_conditions] if args.key?(:post_conditions) @upstream_scopes = args[:upstream_scopes] if args.key?(:upstream_scopes) end |