-
Notifications
You must be signed in to change notification settings - Fork 188
/
fleets_update_run_spec_arm_types_gen.go
91 lines (74 loc) · 3.65 KB
/
fleets_update_run_spec_arm_types_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20230315preview
import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"
type Fleets_UpdateRun_Spec_ARM struct {
Name string `json:"name,omitempty"`
// Properties: The resource-specific properties for this resource.
Properties *UpdateRunProperties_ARM `json:"properties,omitempty"`
}
var _ genruntime.ARMResourceSpec = &Fleets_UpdateRun_Spec_ARM{}
// GetAPIVersion returns the ARM API version of the resource. This is always "2023-03-15-preview"
func (updateRun Fleets_UpdateRun_Spec_ARM) GetAPIVersion() string {
return string(APIVersion_Value)
}
// GetName returns the Name of the resource
func (updateRun *Fleets_UpdateRun_Spec_ARM) GetName() string {
return updateRun.Name
}
// GetType returns the ARM Type of the resource. This is always "Microsoft.ContainerService/fleets/updateRuns"
func (updateRun *Fleets_UpdateRun_Spec_ARM) GetType() string {
return "Microsoft.ContainerService/fleets/updateRuns"
}
// The properties of the UpdateRun.
type UpdateRunProperties_ARM struct {
// ManagedClusterUpdate: The update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be
// modified until the run is started.
ManagedClusterUpdate *ManagedClusterUpdate_ARM `json:"managedClusterUpdate,omitempty"`
// Strategy: The strategy defines the order in which the clusters will be updated.
// If not set, all members will be updated sequentially. The UpdateRun status will show a single UpdateStage and a single
// UpdateGroup targeting all members.
// The strategy of the UpdateRun can be modified until the run is started.
Strategy *UpdateRunStrategy_ARM `json:"strategy,omitempty"`
}
// The update to be applied to the ManagedClusters.
type ManagedClusterUpdate_ARM struct {
// Upgrade: The upgrade to apply to the ManagedClusters.
Upgrade *ManagedClusterUpgradeSpec_ARM `json:"upgrade,omitempty"`
}
// Defines the update sequence of the clusters via stages and groups.
// Stages within a run are executed sequentially one
// after another.
// Groups within a stage are executed in parallel.
// Member clusters within a group are updated sequentially
// one after another.
// A valid strategy contains no duplicate groups within or across stages.
type UpdateRunStrategy_ARM struct {
// Stages: The list of stages that compose this update run. Min size: 1.
Stages []UpdateStage_ARM `json:"stages"`
}
// The upgrade to apply to a ManagedCluster.
type ManagedClusterUpgradeSpec_ARM struct {
// KubernetesVersion: The Kubernetes version to upgrade the member clusters to.
KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
// Type: ManagedClusterUpgradeType is the type of upgrade to be applied.
Type *ManagedClusterUpgradeType `json:"type,omitempty"`
}
// Defines a stage which contains the groups to update and the steps to take (e.g., wait for a time period) before starting
// the next stage.
type UpdateStage_ARM struct {
// AfterStageWaitInSeconds: The time in seconds to wait at the end of this stage before starting the next one. Defaults to
// 0 seconds if unspecified.
AfterStageWaitInSeconds *int `json:"afterStageWaitInSeconds,omitempty"`
// Groups: Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
Groups []UpdateGroup_ARM `json:"groups"`
// Name: The name of the stage. Must be unique within the UpdateRun.
Name *string `json:"name,omitempty"`
}
// A group to be updated.
type UpdateGroup_ARM struct {
// Name: Name of the group.
// It must match a group name of an existing fleet member.
Name *string `json:"name,omitempty"`
}