-
Notifications
You must be signed in to change notification settings - Fork 188
/
fleets_update_run_status_arm_types_gen.go
213 lines (164 loc) · 8.09 KB
/
fleets_update_run_status_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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20230315preview
import "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
type Fleets_UpdateRun_STATUS_ARM struct {
// ETag: If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.
// Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in
// the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header
// fields.
ETag *string `json:"eTag,omitempty"`
// Id: Fully qualified resource ID for the resource. Ex -
// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id *string `json:"id,omitempty"`
// Name: The name of the resource
Name *string `json:"name,omitempty"`
// Properties: The resource-specific properties for this resource.
Properties *UpdateRunProperties_STATUS_ARM `json:"properties,omitempty"`
// SystemData: Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData_STATUS_ARM `json:"systemData,omitempty"`
// Type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
}
// The properties of the UpdateRun.
type UpdateRunProperties_STATUS_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_STATUS_ARM `json:"managedClusterUpdate,omitempty"`
// ProvisioningState: The provisioning state of the UpdateRun resource.
ProvisioningState *UpdateRunProvisioningState_STATUS `json:"provisioningState,omitempty"`
// Status: The status of the UpdateRun.
Status *UpdateRunStatus_STATUS_ARM `json:"status,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_STATUS_ARM `json:"strategy,omitempty"`
}
// The update to be applied to the ManagedClusters.
type ManagedClusterUpdate_STATUS_ARM struct {
// Upgrade: The upgrade to apply to the ManagedClusters.
Upgrade *ManagedClusterUpgradeSpec_STATUS_ARM `json:"upgrade,omitempty"`
}
// The status of a UpdateRun.
type UpdateRunStatus_STATUS_ARM struct {
// Stages: The stages composing an update run. Stages are run sequentially withing an UpdateRun.
Stages []UpdateStageStatus_STATUS_ARM `json:"stages"`
// Status: The status of the UpdateRun.
Status *UpdateStatus_STATUS_ARM `json:"status,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_STATUS_ARM struct {
// Stages: The list of stages that compose this update run. Min size: 1.
Stages []UpdateStage_STATUS_ARM `json:"stages"`
}
// The upgrade to apply to a ManagedCluster.
type ManagedClusterUpgradeSpec_STATUS_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_STATUS `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_STATUS_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_STATUS_ARM `json:"groups"`
// Name: The name of the stage. Must be unique within the UpdateRun.
Name *string `json:"name,omitempty"`
}
// The status of a UpdateStage.
type UpdateStageStatus_STATUS_ARM struct {
// AfterStageWaitStatus: The status of the wait period configured on the UpdateStage.
AfterStageWaitStatus *WaitStatus_STATUS_ARM `json:"afterStageWaitStatus,omitempty"`
// Groups: The list of groups to be updated as part of this UpdateStage.
Groups []UpdateGroupStatus_STATUS_ARM `json:"groups"`
// Name: The name of the UpdateStage.
Name *string `json:"name,omitempty"`
// Status: The status of the UpdateStage.
Status *UpdateStatus_STATUS_ARM `json:"status,omitempty"`
}
// The status for an operation or group of operations.
type UpdateStatus_STATUS_ARM struct {
// CompletedTime: The time the operation or group was completed.
CompletedTime *string `json:"completedTime,omitempty"`
// Error: The error details when a failure is encountered.
Error *ErrorDetail_STATUS_ARM `json:"error,omitempty"`
// StartTime: The time the operation or group was started.
StartTime *string `json:"startTime,omitempty"`
// State: The State of the operation or group.
State *UpdateState_STATUS `json:"state,omitempty"`
}
// The error detail.
type ErrorDetail_STATUS_ARM struct {
// AdditionalInfo: The error additional info.
AdditionalInfo []ErrorAdditionalInfo_STATUS_ARM `json:"additionalInfo"`
// Code: The error code.
Code *string `json:"code,omitempty"`
// Details: The error details.
Details []ErrorDetail_STATUS_Unrolled_ARM `json:"details"`
// Message: The error message.
Message *string `json:"message,omitempty"`
// Target: The error target.
Target *string `json:"target,omitempty"`
}
// A group to be updated.
type UpdateGroup_STATUS_ARM struct {
// Name: Name of the group.
// It must match a group name of an existing fleet member.
Name *string `json:"name,omitempty"`
}
// The status of a UpdateGroup.
type UpdateGroupStatus_STATUS_ARM struct {
// Members: The list of member this UpdateGroup updates.
Members []MemberUpdateStatus_STATUS_ARM `json:"members"`
// Name: The name of the UpdateGroup.
Name *string `json:"name,omitempty"`
// Status: The status of the UpdateGroup.
Status *UpdateStatus_STATUS_ARM `json:"status,omitempty"`
}
// The status of the wait duration.
type WaitStatus_STATUS_ARM struct {
// Status: The status of the wait duration.
Status *UpdateStatus_STATUS_ARM `json:"status,omitempty"`
// WaitDurationInSeconds: The wait duration configured in seconds.
WaitDurationInSeconds *int `json:"waitDurationInSeconds,omitempty"`
}
// The resource management error additional info.
type ErrorAdditionalInfo_STATUS_ARM struct {
// Info: The additional info.
Info map[string]v1.JSON `json:"info"`
// Type: The additional info type.
Type *string `json:"type,omitempty"`
}
type ErrorDetail_STATUS_Unrolled_ARM struct {
// AdditionalInfo: The error additional info.
AdditionalInfo []ErrorAdditionalInfo_STATUS_ARM `json:"additionalInfo"`
// Code: The error code.
Code *string `json:"code,omitempty"`
// Message: The error message.
Message *string `json:"message,omitempty"`
// Target: The error target.
Target *string `json:"target,omitempty"`
}
// The status of a member update operation.
type MemberUpdateStatus_STATUS_ARM struct {
// ClusterResourceId: The Azure resource id of the target Kubernetes cluster.
ClusterResourceId *string `json:"clusterResourceId,omitempty"`
// Name: The name of the FleetMember.
Name *string `json:"name,omitempty"`
// OperationId: The operation resource id of the latest attempt to perform the operation.
OperationId *string `json:"operationId,omitempty"`
// Status: The status of the MemberUpdate operation.
Status *UpdateStatus_STATUS_ARM `json:"status,omitempty"`
}