Skip to content

Commit

Permalink
Updating based on d1cb4737
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-tf-azure committed Jun 10, 2024
1 parent ffbde92 commit f7a0fe7
Show file tree
Hide file tree
Showing 12 changed files with 142 additions and 175 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package virtualmachinescalesets
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type SecurityPostureReference struct {
ExcludeExtensions *[]VirtualMachineExtension `json:"excludeExtensions,omitempty"`
Id *string `json:"id,omitempty"`
ExcludeExtensions *[]string `json:"excludeExtensions,omitempty"`
Id string `json:"id"`
IsOverridable *bool `json:"isOverridable,omitempty"`
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package virtualmachinescalesets

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type SecurityPostureReferenceUpdate struct {
ExcludeExtensions *[]string `json:"excludeExtensions,omitempty"`
Id *string `json:"id,omitempty"`
IsOverridable *bool `json:"isOverridable,omitempty"`
}

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ package virtualmachinescalesets
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type VirtualMachineScaleSetUpdateVMProfile struct {
BillingProfile *BillingProfile `json:"billingProfile,omitempty"`
DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
ExtensionProfile *VirtualMachineScaleSetExtensionProfile `json:"extensionProfile,omitempty"`
HardwareProfile *VirtualMachineScaleSetHardwareProfile `json:"hardwareProfile,omitempty"`
LicenseType *string `json:"licenseType,omitempty"`
NetworkProfile *VirtualMachineScaleSetUpdateNetworkProfile `json:"networkProfile,omitempty"`
OsProfile *VirtualMachineScaleSetUpdateOSProfile `json:"osProfile,omitempty"`
ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"`
SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"`
StorageProfile *VirtualMachineScaleSetUpdateStorageProfile `json:"storageProfile,omitempty"`
UserData *string `json:"userData,omitempty"`
BillingProfile *BillingProfile `json:"billingProfile,omitempty"`
DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
ExtensionProfile *VirtualMachineScaleSetExtensionProfile `json:"extensionProfile,omitempty"`
HardwareProfile *VirtualMachineScaleSetHardwareProfile `json:"hardwareProfile,omitempty"`
LicenseType *string `json:"licenseType,omitempty"`
NetworkProfile *VirtualMachineScaleSetUpdateNetworkProfile `json:"networkProfile,omitempty"`
OsProfile *VirtualMachineScaleSetUpdateOSProfile `json:"osProfile,omitempty"`
ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"`
SecurityPostureReference *SecurityPostureReferenceUpdate `json:"securityPostureReference,omitempty"`
SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"`
StorageProfile *VirtualMachineScaleSetUpdateStorageProfile `json:"storageProfile,omitempty"`
UserData *string `json:"userData,omitempty"`
}
76 changes: 38 additions & 38 deletions resource-manager/web/2023-12-01/appserviceenvironments/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,44 @@ func parseFtpsState(input string) (*FtpsState, error) {
return &out, nil
}

type FunctionsDeploymentStorageType string

const (
FunctionsDeploymentStorageTypeBlobContainer FunctionsDeploymentStorageType = "blobContainer"
)

func PossibleValuesForFunctionsDeploymentStorageType() []string {
return []string{
string(FunctionsDeploymentStorageTypeBlobContainer),
}
}

func (s *FunctionsDeploymentStorageType) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseFunctionsDeploymentStorageType(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseFunctionsDeploymentStorageType(input string) (*FunctionsDeploymentStorageType, error) {
vals := map[string]FunctionsDeploymentStorageType{
"blobcontainer": FunctionsDeploymentStorageTypeBlobContainer,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := FunctionsDeploymentStorageType(input)
return &out, nil
}

type HostType string

const (
Expand Down Expand Up @@ -1249,44 +1287,6 @@ func parseStatusOptions(input string) (*StatusOptions, error) {
return &out, nil
}

type StorageType string

const (
StorageTypeBlobContainer StorageType = "blobContainer"
)

func PossibleValuesForStorageType() []string {
return []string{
string(StorageTypeBlobContainer),
}
}

func (s *StorageType) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseStorageType(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseStorageType(input string) (*StorageType, error) {
vals := map[string]StorageType{
"blobcontainer": StorageTypeBlobContainer,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := StorageType(input)
return &out, nil
}

type SupportedTlsVersions string

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package appserviceenvironments

type FunctionsDeploymentStorage struct {
Authentication *FunctionsDeploymentStorageAuthentication `json:"authentication,omitempty"`
Type *StorageType `json:"type,omitempty"`
Type *FunctionsDeploymentStorageType `json:"type,omitempty"`
Value *string `json:"value,omitempty"`
}
76 changes: 38 additions & 38 deletions resource-manager/web/2023-12-01/appserviceplans/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,44 @@ func parseFtpsState(input string) (*FtpsState, error) {
return &out, nil
}

type FunctionsDeploymentStorageType string

const (
FunctionsDeploymentStorageTypeBlobContainer FunctionsDeploymentStorageType = "blobContainer"
)

func PossibleValuesForFunctionsDeploymentStorageType() []string {
return []string{
string(FunctionsDeploymentStorageTypeBlobContainer),
}
}

func (s *FunctionsDeploymentStorageType) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseFunctionsDeploymentStorageType(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseFunctionsDeploymentStorageType(input string) (*FunctionsDeploymentStorageType, error) {
vals := map[string]FunctionsDeploymentStorageType{
"blobcontainer": FunctionsDeploymentStorageTypeBlobContainer,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := FunctionsDeploymentStorageType(input)
return &out, nil
}

type HostType string

const (
Expand Down Expand Up @@ -1058,44 +1096,6 @@ func parseStatusOptions(input string) (*StatusOptions, error) {
return &out, nil
}

type StorageType string

const (
StorageTypeBlobContainer StorageType = "blobContainer"
)

func PossibleValuesForStorageType() []string {
return []string{
string(StorageTypeBlobContainer),
}
}

func (s *StorageType) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseStorageType(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseStorageType(input string) (*StorageType, error) {
vals := map[string]StorageType{
"blobcontainer": StorageTypeBlobContainer,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := StorageType(input)
return &out, nil
}

type SupportedTlsVersions string

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package appserviceplans

type FunctionsDeploymentStorage struct {
Authentication *FunctionsDeploymentStorageAuthentication `json:"authentication,omitempty"`
Type *StorageType `json:"type,omitempty"`
Type *FunctionsDeploymentStorageType `json:"type,omitempty"`
Value *string `json:"value,omitempty"`
}
76 changes: 38 additions & 38 deletions resource-manager/web/2023-12-01/webapps/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,44 @@ func parseFtpsState(input string) (*FtpsState, error) {
return &out, nil
}

type FunctionsDeploymentStorageType string

const (
FunctionsDeploymentStorageTypeBlobContainer FunctionsDeploymentStorageType = "blobContainer"
)

func PossibleValuesForFunctionsDeploymentStorageType() []string {
return []string{
string(FunctionsDeploymentStorageTypeBlobContainer),
}
}

func (s *FunctionsDeploymentStorageType) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseFunctionsDeploymentStorageType(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseFunctionsDeploymentStorageType(input string) (*FunctionsDeploymentStorageType, error) {
vals := map[string]FunctionsDeploymentStorageType{
"blobcontainer": FunctionsDeploymentStorageTypeBlobContainer,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := FunctionsDeploymentStorageType(input)
return &out, nil
}

type HostNameType string

const (
Expand Down Expand Up @@ -2239,44 +2277,6 @@ func parseSslState(input string) (*SslState, error) {
return &out, nil
}

type StorageType string

const (
StorageTypeBlobContainer StorageType = "blobContainer"
)

func PossibleValuesForStorageType() []string {
return []string{
string(StorageTypeBlobContainer),
}
}

func (s *StorageType) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseStorageType(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseStorageType(input string) (*StorageType, error) {
vals := map[string]StorageType{
"blobcontainer": StorageTypeBlobContainer,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := StorageType(input)
return &out, nil
}

type SupportedTlsVersions string

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package webapps

type FunctionsDeploymentStorage struct {
Authentication *FunctionsDeploymentStorageAuthentication `json:"authentication,omitempty"`
Type *StorageType `json:"type,omitempty"`
Type *FunctionsDeploymentStorageType `json:"type,omitempty"`
Value *string `json:"value,omitempty"`
}

0 comments on commit f7a0fe7

Please sign in to comment.