-
Notifications
You must be signed in to change notification settings - Fork 46
/
model_clusterpropertiesupdateparameters.go
59 lines (51 loc) · 3.69 KB
/
model_clusterpropertiesupdateparameters.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
package cluster
import (
"time"
"github.com/hashicorp/go-azure-helpers/lang/dates"
)
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
type ClusterPropertiesUpdateParameters struct {
AddOnFeatures *[]AddOnFeatures `json:"addOnFeatures,omitempty"`
ApplicationTypeVersionsCleanupPolicy *ApplicationTypeVersionsCleanupPolicy `json:"applicationTypeVersionsCleanupPolicy,omitempty"`
Certificate *CertificateDescription `json:"certificate,omitempty"`
CertificateCommonNames *ServerCertificateCommonNames `json:"certificateCommonNames,omitempty"`
ClientCertificateCommonNames *[]ClientCertificateCommonName `json:"clientCertificateCommonNames,omitempty"`
ClientCertificateThumbprints *[]ClientCertificateThumbprint `json:"clientCertificateThumbprints,omitempty"`
ClusterCodeVersion *string `json:"clusterCodeVersion,omitempty"`
EventStoreServiceEnabled *bool `json:"eventStoreServiceEnabled,omitempty"`
FabricSettings *[]SettingsSectionDescription `json:"fabricSettings,omitempty"`
InfrastructureServiceManager *bool `json:"infrastructureServiceManager,omitempty"`
NodeTypes *[]NodeTypeDescription `json:"nodeTypes,omitempty"`
Notifications *[]Notification `json:"notifications,omitempty"`
ReliabilityLevel *ReliabilityLevel `json:"reliabilityLevel,omitempty"`
ReverseProxyCertificate *CertificateDescription `json:"reverseProxyCertificate,omitempty"`
SfZonalUpgradeMode *SfZonalUpgradeMode `json:"sfZonalUpgradeMode,omitempty"`
UpgradeDescription *ClusterUpgradePolicy `json:"upgradeDescription,omitempty"`
UpgradeMode *UpgradeMode `json:"upgradeMode,omitempty"`
UpgradePauseEndTimestampUtc *string `json:"upgradePauseEndTimestampUtc,omitempty"`
UpgradePauseStartTimestampUtc *string `json:"upgradePauseStartTimestampUtc,omitempty"`
UpgradeWave *ClusterUpgradeCadence `json:"upgradeWave,omitempty"`
VMSSZonalUpgradeMode *VMSSZonalUpgradeMode `json:"vmssZonalUpgradeMode,omitempty"`
WaveUpgradePaused *bool `json:"waveUpgradePaused,omitempty"`
}
func (o *ClusterPropertiesUpdateParameters) GetUpgradePauseEndTimestampUtcAsTime() (*time.Time, error) {
if o.UpgradePauseEndTimestampUtc == nil {
return nil, nil
}
return dates.ParseAsFormat(o.UpgradePauseEndTimestampUtc, "2006-01-02T15:04:05Z07:00")
}
func (o *ClusterPropertiesUpdateParameters) SetUpgradePauseEndTimestampUtcAsTime(input time.Time) {
formatted := input.Format("2006-01-02T15:04:05Z07:00")
o.UpgradePauseEndTimestampUtc = &formatted
}
func (o *ClusterPropertiesUpdateParameters) GetUpgradePauseStartTimestampUtcAsTime() (*time.Time, error) {
if o.UpgradePauseStartTimestampUtc == nil {
return nil, nil
}
return dates.ParseAsFormat(o.UpgradePauseStartTimestampUtc, "2006-01-02T15:04:05Z07:00")
}
func (o *ClusterPropertiesUpdateParameters) SetUpgradePauseStartTimestampUtcAsTime(input time.Time) {
formatted := input.Format("2006-01-02T15:04:05Z07:00")
o.UpgradePauseStartTimestampUtc = &formatted
}