diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/README.md new file mode 100644 index 0000000000000..94ed874b9f12d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/README.md @@ -0,0 +1,127 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports` Documentation + +The `exports` SDK allows for interaction with the Azure Resource Manager Service `costmanagement` (API Version `2023-07-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports" +``` + + +### Client Initialization + +```go +client := exports.NewExportsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExportsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") + +payload := exports.Export{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExportsClient.Delete` + +```go +ctx := context.TODO() +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") + +read, err := client.Delete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExportsClient.Execute` + +```go +ctx := context.TODO() +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") + +payload := exports.ExportRunRequest{ + // ... +} + + +read, err := client.Execute(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExportsClient.Get` + +```go +ctx := context.TODO() +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") + +read, err := client.Get(ctx, id, exports.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExportsClient.GetExecutionHistory` + +```go +ctx := context.TODO() +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") + +read, err := client.GetExecutionHistory(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExportsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +read, err := client.List(ctx, id, exports.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/client.go similarity index 56% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/client.go index c50f666370630..d66fcf02cc781 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/client.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package exports import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VMInstanceGuestAgentsClient struct { +type ExportsClient struct { Client *resourcemanager.Client } -func NewVMInstanceGuestAgentsClientWithBaseURI(sdkApi sdkEnv.Api) (*VMInstanceGuestAgentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vminstanceguestagents", defaultApiVersion) +func NewExportsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExportsClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "exports", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating VMInstanceGuestAgentsClient: %+v", err) + return nil, fmt.Errorf("instantiating ExportsClient: %+v", err) } - return &VMInstanceGuestAgentsClient{ + return &ExportsClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/constants.go new file mode 100644 index 0000000000000..66ca3bde9456e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/constants.go @@ -0,0 +1,556 @@ +package exports + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CompressionModeType string + +const ( + CompressionModeTypeGzip CompressionModeType = "gzip" + CompressionModeTypeNone CompressionModeType = "None" +) + +func PossibleValuesForCompressionModeType() []string { + return []string{ + string(CompressionModeTypeGzip), + string(CompressionModeTypeNone), + } +} + +func (s *CompressionModeType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCompressionModeType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCompressionModeType(input string) (*CompressionModeType, error) { + vals := map[string]CompressionModeType{ + "gzip": CompressionModeTypeGzip, + "none": CompressionModeTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CompressionModeType(input) + return &out, nil +} + +type DataOverwriteBehaviorType string + +const ( + DataOverwriteBehaviorTypeCreateNewReport DataOverwriteBehaviorType = "CreateNewReport" + DataOverwriteBehaviorTypeOverwritePreviousReport DataOverwriteBehaviorType = "OverwritePreviousReport" +) + +func PossibleValuesForDataOverwriteBehaviorType() []string { + return []string{ + string(DataOverwriteBehaviorTypeCreateNewReport), + string(DataOverwriteBehaviorTypeOverwritePreviousReport), + } +} + +func (s *DataOverwriteBehaviorType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDataOverwriteBehaviorType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDataOverwriteBehaviorType(input string) (*DataOverwriteBehaviorType, error) { + vals := map[string]DataOverwriteBehaviorType{ + "createnewreport": DataOverwriteBehaviorTypeCreateNewReport, + "overwritepreviousreport": DataOverwriteBehaviorTypeOverwritePreviousReport, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DataOverwriteBehaviorType(input) + return &out, nil +} + +type DestinationType string + +const ( + DestinationTypeAzureBlob DestinationType = "AzureBlob" +) + +func PossibleValuesForDestinationType() []string { + return []string{ + string(DestinationTypeAzureBlob), + } +} + +func (s *DestinationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDestinationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDestinationType(input string) (*DestinationType, error) { + vals := map[string]DestinationType{ + "azureblob": DestinationTypeAzureBlob, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DestinationType(input) + return &out, nil +} + +type ExecutionStatus string + +const ( + ExecutionStatusCompleted ExecutionStatus = "Completed" + ExecutionStatusDataNotAvailable ExecutionStatus = "DataNotAvailable" + ExecutionStatusFailed ExecutionStatus = "Failed" + ExecutionStatusInProgress ExecutionStatus = "InProgress" + ExecutionStatusNewDataNotAvailable ExecutionStatus = "NewDataNotAvailable" + ExecutionStatusQueued ExecutionStatus = "Queued" + ExecutionStatusTimeout ExecutionStatus = "Timeout" +) + +func PossibleValuesForExecutionStatus() []string { + return []string{ + string(ExecutionStatusCompleted), + string(ExecutionStatusDataNotAvailable), + string(ExecutionStatusFailed), + string(ExecutionStatusInProgress), + string(ExecutionStatusNewDataNotAvailable), + string(ExecutionStatusQueued), + string(ExecutionStatusTimeout), + } +} + +func (s *ExecutionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExecutionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExecutionStatus(input string) (*ExecutionStatus, error) { + vals := map[string]ExecutionStatus{ + "completed": ExecutionStatusCompleted, + "datanotavailable": ExecutionStatusDataNotAvailable, + "failed": ExecutionStatusFailed, + "inprogress": ExecutionStatusInProgress, + "newdatanotavailable": ExecutionStatusNewDataNotAvailable, + "queued": ExecutionStatusQueued, + "timeout": ExecutionStatusTimeout, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExecutionStatus(input) + return &out, nil +} + +type ExecutionType string + +const ( + ExecutionTypeOnDemand ExecutionType = "OnDemand" + ExecutionTypeScheduled ExecutionType = "Scheduled" +) + +func PossibleValuesForExecutionType() []string { + return []string{ + string(ExecutionTypeOnDemand), + string(ExecutionTypeScheduled), + } +} + +func (s *ExecutionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExecutionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExecutionType(input string) (*ExecutionType, error) { + vals := map[string]ExecutionType{ + "ondemand": ExecutionTypeOnDemand, + "scheduled": ExecutionTypeScheduled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExecutionType(input) + return &out, nil +} + +type ExportType string + +const ( + ExportTypeActualCost ExportType = "ActualCost" + ExportTypeAmortizedCost ExportType = "AmortizedCost" + ExportTypeFocusCost ExportType = "FocusCost" + ExportTypePriceSheet ExportType = "PriceSheet" + ExportTypeReservationDetails ExportType = "ReservationDetails" + ExportTypeReservationRecommendations ExportType = "ReservationRecommendations" + ExportTypeReservationTransactions ExportType = "ReservationTransactions" + ExportTypeUsage ExportType = "Usage" +) + +func PossibleValuesForExportType() []string { + return []string{ + string(ExportTypeActualCost), + string(ExportTypeAmortizedCost), + string(ExportTypeFocusCost), + string(ExportTypePriceSheet), + string(ExportTypeReservationDetails), + string(ExportTypeReservationRecommendations), + string(ExportTypeReservationTransactions), + string(ExportTypeUsage), + } +} + +func (s *ExportType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExportType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExportType(input string) (*ExportType, error) { + vals := map[string]ExportType{ + "actualcost": ExportTypeActualCost, + "amortizedcost": ExportTypeAmortizedCost, + "focuscost": ExportTypeFocusCost, + "pricesheet": ExportTypePriceSheet, + "reservationdetails": ExportTypeReservationDetails, + "reservationrecommendations": ExportTypeReservationRecommendations, + "reservationtransactions": ExportTypeReservationTransactions, + "usage": ExportTypeUsage, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExportType(input) + return &out, nil +} + +type FilterItemNames string + +const ( + FilterItemNamesLookBackPeriod FilterItemNames = "LookBackPeriod" + FilterItemNamesReservationScope FilterItemNames = "ReservationScope" + FilterItemNamesResourceType FilterItemNames = "ResourceType" +) + +func PossibleValuesForFilterItemNames() []string { + return []string{ + string(FilterItemNamesLookBackPeriod), + string(FilterItemNamesReservationScope), + string(FilterItemNamesResourceType), + } +} + +func (s *FilterItemNames) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFilterItemNames(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFilterItemNames(input string) (*FilterItemNames, error) { + vals := map[string]FilterItemNames{ + "lookbackperiod": FilterItemNamesLookBackPeriod, + "reservationscope": FilterItemNamesReservationScope, + "resourcetype": FilterItemNamesResourceType, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FilterItemNames(input) + return &out, nil +} + +type FormatType string + +const ( + FormatTypeCsv FormatType = "Csv" +) + +func PossibleValuesForFormatType() []string { + return []string{ + string(FormatTypeCsv), + } +} + +func (s *FormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFormatType(input string) (*FormatType, error) { + vals := map[string]FormatType{ + "csv": FormatTypeCsv, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FormatType(input) + return &out, nil +} + +type GranularityType string + +const ( + GranularityTypeDaily GranularityType = "Daily" + GranularityTypeMonthly GranularityType = "Monthly" +) + +func PossibleValuesForGranularityType() []string { + return []string{ + string(GranularityTypeDaily), + string(GranularityTypeMonthly), + } +} + +func (s *GranularityType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGranularityType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGranularityType(input string) (*GranularityType, error) { + vals := map[string]GranularityType{ + "daily": GranularityTypeDaily, + "monthly": GranularityTypeMonthly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GranularityType(input) + return &out, nil +} + +type RecurrenceType string + +const ( + RecurrenceTypeAnnually RecurrenceType = "Annually" + RecurrenceTypeDaily RecurrenceType = "Daily" + RecurrenceTypeMonthly RecurrenceType = "Monthly" + RecurrenceTypeWeekly RecurrenceType = "Weekly" +) + +func PossibleValuesForRecurrenceType() []string { + return []string{ + string(RecurrenceTypeAnnually), + string(RecurrenceTypeDaily), + string(RecurrenceTypeMonthly), + string(RecurrenceTypeWeekly), + } +} + +func (s *RecurrenceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRecurrenceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRecurrenceType(input string) (*RecurrenceType, error) { + vals := map[string]RecurrenceType{ + "annually": RecurrenceTypeAnnually, + "daily": RecurrenceTypeDaily, + "monthly": RecurrenceTypeMonthly, + "weekly": RecurrenceTypeWeekly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RecurrenceType(input) + return &out, nil +} + +type StatusType string + +const ( + StatusTypeActive StatusType = "Active" + StatusTypeInactive StatusType = "Inactive" + StatusTypeSystemSuspended StatusType = "SystemSuspended" +) + +func PossibleValuesForStatusType() []string { + return []string{ + string(StatusTypeActive), + string(StatusTypeInactive), + string(StatusTypeSystemSuspended), + } +} + +func (s *StatusType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseStatusType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseStatusType(input string) (*StatusType, error) { + vals := map[string]StatusType{ + "active": StatusTypeActive, + "inactive": StatusTypeInactive, + "systemsuspended": StatusTypeSystemSuspended, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := StatusType(input) + return &out, nil +} + +type TimeframeType string + +const ( + TimeframeTypeBillingMonthToDate TimeframeType = "BillingMonthToDate" + TimeframeTypeCustom TimeframeType = "Custom" + TimeframeTypeMonthToDate TimeframeType = "MonthToDate" + TimeframeTypeTheCurrentMonth TimeframeType = "TheCurrentMonth" + TimeframeTypeTheLastBillingMonth TimeframeType = "TheLastBillingMonth" + TimeframeTypeTheLastMonth TimeframeType = "TheLastMonth" + TimeframeTypeWeekToDate TimeframeType = "WeekToDate" +) + +func PossibleValuesForTimeframeType() []string { + return []string{ + string(TimeframeTypeBillingMonthToDate), + string(TimeframeTypeCustom), + string(TimeframeTypeMonthToDate), + string(TimeframeTypeTheCurrentMonth), + string(TimeframeTypeTheLastBillingMonth), + string(TimeframeTypeTheLastMonth), + string(TimeframeTypeWeekToDate), + } +} + +func (s *TimeframeType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTimeframeType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTimeframeType(input string) (*TimeframeType, error) { + vals := map[string]TimeframeType{ + "billingmonthtodate": TimeframeTypeBillingMonthToDate, + "custom": TimeframeTypeCustom, + "monthtodate": TimeframeTypeMonthToDate, + "thecurrentmonth": TimeframeTypeTheCurrentMonth, + "thelastbillingmonth": TimeframeTypeTheLastBillingMonth, + "thelastmonth": TimeframeTypeTheLastMonth, + "weektodate": TimeframeTypeWeekToDate, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TimeframeType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/id_scopedexport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/id_scopedexport.go new file mode 100644 index 0000000000000..7db2e02ed55d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/id_scopedexport.go @@ -0,0 +1,120 @@ +package exports + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ScopedExportId{}) +} + +var _ resourceids.ResourceId = &ScopedExportId{} + +// ScopedExportId is a struct representing the Resource ID for a Scoped Export +type ScopedExportId struct { + Scope string + ExportName string +} + +// NewScopedExportID returns a new ScopedExportId struct +func NewScopedExportID(scope string, exportName string) ScopedExportId { + return ScopedExportId{ + Scope: scope, + ExportName: exportName, + } +} + +// ParseScopedExportID parses 'input' into a ScopedExportId +func ParseScopedExportID(input string) (*ScopedExportId, error) { + parser := resourceids.NewParserFromResourceIdType(&ScopedExportId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ScopedExportId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseScopedExportIDInsensitively parses 'input' case-insensitively into a ScopedExportId +// note: this method should only be used for API response data and not user input +func ParseScopedExportIDInsensitively(input string) (*ScopedExportId, error) { + parser := resourceids.NewParserFromResourceIdType(&ScopedExportId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ScopedExportId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ScopedExportId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.Scope, ok = input.Parsed["scope"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "scope", input) + } + + if id.ExportName, ok = input.Parsed["exportName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "exportName", input) + } + + return nil +} + +// ValidateScopedExportID checks that 'input' can be parsed as a Scoped Export ID +func ValidateScopedExportID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseScopedExportID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Scoped Export ID +func (id ScopedExportId) ID() string { + fmtString := "/%s/providers/Microsoft.CostManagement/exports/%s" + return fmt.Sprintf(fmtString, strings.TrimPrefix(id.Scope, "/"), id.ExportName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Scoped Export ID +func (id ScopedExportId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.ScopeSegment("scope", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCostManagement", "Microsoft.CostManagement", "Microsoft.CostManagement"), + resourceids.StaticSegment("staticExports", "exports", "exports"), + resourceids.UserSpecifiedSegment("exportName", "exportValue"), + } +} + +// String returns a human-readable description of this Scoped Export ID +func (id ScopedExportId) String() string { + components := []string{ + fmt.Sprintf("Scope: %q", id.Scope), + fmt.Sprintf("Export Name: %q", id.ExportName), + } + return fmt.Sprintf("Scoped Export (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_createorupdate.go new file mode 100644 index 0000000000000..07d7453504280 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_createorupdate.go @@ -0,0 +1,59 @@ +package exports + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Export +} + +// CreateOrUpdate ... +func (c ExportsClient) CreateOrUpdate(ctx context.Context, id ScopedExportId, input Export) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Export + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_delete.go new file mode 100644 index 0000000000000..ce983a858fd08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_delete.go @@ -0,0 +1,46 @@ +package exports + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExportsClient) Delete(ctx context.Context, id ScopedExportId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_execute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_execute.go new file mode 100644 index 0000000000000..ed13c32595956 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_execute.go @@ -0,0 +1,51 @@ +package exports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExecuteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// Execute ... +func (c ExportsClient) Execute(ctx context.Context, id ScopedExportId, input ExportRunRequest) (result ExecuteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/run", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_get.go new file mode 100644 index 0000000000000..6fd164e5ad014 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_get.go @@ -0,0 +1,83 @@ +package exports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Export +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c ExportsClient) Get(ctx context.Context, id ScopedExportId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Export + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_getexecutionhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_getexecutionhistory.go new file mode 100644 index 0000000000000..687216d36d560 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_getexecutionhistory.go @@ -0,0 +1,55 @@ +package exports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetExecutionHistoryOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExportExecutionListResult +} + +// GetExecutionHistory ... +func (c ExportsClient) GetExecutionHistory(ctx context.Context, id ScopedExportId) (result GetExecutionHistoryOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/runHistory", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExportExecutionListResult + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_list.go new file mode 100644 index 0000000000000..fd32a5808ceda --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/method_list.go @@ -0,0 +1,84 @@ +package exports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExportListResult +} + +type ListOperationOptions struct { + Expand *string +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// List ... +func (c ExportsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExportListResult + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_commonexportproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_commonexportproperties.go new file mode 100644 index 0000000000000..90ddf17b1206e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_commonexportproperties.go @@ -0,0 +1,35 @@ +package exports + +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 CommonExportProperties struct { + CompressionMode *CompressionModeType `json:"compressionMode,omitempty"` + DataOverwriteBehavior *DataOverwriteBehaviorType `json:"dataOverwriteBehavior,omitempty"` + Definition ExportDefinition `json:"definition"` + DeliveryInfo ExportDeliveryInfo `json:"deliveryInfo"` + ExportDescription *string `json:"exportDescription,omitempty"` + Format *FormatType `json:"format,omitempty"` + NextRunTimeEstimate *string `json:"nextRunTimeEstimate,omitempty"` + PartitionData *bool `json:"partitionData,omitempty"` + RunHistory *ExportExecutionListResult `json:"runHistory,omitempty"` + SystemSuspensionContext *ExportSuspensionContext `json:"systemSuspensionContext,omitempty"` +} + +func (o *CommonExportProperties) GetNextRunTimeEstimateAsTime() (*time.Time, error) { + if o.NextRunTimeEstimate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.NextRunTimeEstimate, "2006-01-02T15:04:05Z07:00") +} + +func (o *CommonExportProperties) SetNextRunTimeEstimateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.NextRunTimeEstimate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_errordetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_errordetails.go new file mode 100644 index 0000000000000..def5fc753e17b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_errordetails.go @@ -0,0 +1,9 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ErrorDetails struct { + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_export.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_export.go new file mode 100644 index 0000000000000..0ee2528d8d788 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_export.go @@ -0,0 +1,18 @@ +package exports + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Export struct { + ETag *string `json:"eTag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAssigned `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExportProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdataset.go new file mode 100644 index 0000000000000..c4a8d5acdf870 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdataset.go @@ -0,0 +1,9 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportDataset struct { + Configuration *ExportDatasetConfiguration `json:"configuration,omitempty"` + Granularity *GranularityType `json:"granularity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdatasetconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdatasetconfiguration.go new file mode 100644 index 0000000000000..d3e24055f1c9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdatasetconfiguration.go @@ -0,0 +1,10 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportDatasetConfiguration struct { + Columns *[]string `json:"columns,omitempty"` + DataVersion *string `json:"dataVersion,omitempty"` + Filters *[]FilterItems `json:"filters,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdefinition.go new file mode 100644 index 0000000000000..d128ed638e62d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdefinition.go @@ -0,0 +1,11 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportDefinition struct { + DataSet *ExportDataset `json:"dataSet,omitempty"` + TimePeriod *ExportTimePeriod `json:"timePeriod,omitempty"` + Timeframe TimeframeType `json:"timeframe"` + Type ExportType `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdeliverydestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdeliverydestination.go new file mode 100644 index 0000000000000..f5787858b92ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdeliverydestination.go @@ -0,0 +1,13 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportDeliveryDestination struct { + Container string `json:"container"` + ResourceId *string `json:"resourceId,omitempty"` + RootFolderPath *string `json:"rootFolderPath,omitempty"` + SasToken *string `json:"sasToken,omitempty"` + StorageAccount *string `json:"storageAccount,omitempty"` + Type *DestinationType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdeliveryinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdeliveryinfo.go new file mode 100644 index 0000000000000..204ca440e9fa8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportdeliveryinfo.go @@ -0,0 +1,8 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportDeliveryInfo struct { + Destination ExportDeliveryDestination `json:"destination"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportexecutionlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportexecutionlistresult.go new file mode 100644 index 0000000000000..b8e5c87619767 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportexecutionlistresult.go @@ -0,0 +1,8 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportExecutionListResult struct { + Value *[]ExportRun `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportlistresult.go new file mode 100644 index 0000000000000..6e50ebcc28366 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportlistresult.go @@ -0,0 +1,8 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportListResult struct { + Value *[]Export `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportproperties.go new file mode 100644 index 0000000000000..c7e55787e0590 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportproperties.go @@ -0,0 +1,36 @@ +package exports + +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 ExportProperties struct { + CompressionMode *CompressionModeType `json:"compressionMode,omitempty"` + DataOverwriteBehavior *DataOverwriteBehaviorType `json:"dataOverwriteBehavior,omitempty"` + Definition ExportDefinition `json:"definition"` + DeliveryInfo ExportDeliveryInfo `json:"deliveryInfo"` + ExportDescription *string `json:"exportDescription,omitempty"` + Format *FormatType `json:"format,omitempty"` + NextRunTimeEstimate *string `json:"nextRunTimeEstimate,omitempty"` + PartitionData *bool `json:"partitionData,omitempty"` + RunHistory *ExportExecutionListResult `json:"runHistory,omitempty"` + Schedule *ExportSchedule `json:"schedule,omitempty"` + SystemSuspensionContext *ExportSuspensionContext `json:"systemSuspensionContext,omitempty"` +} + +func (o *ExportProperties) GetNextRunTimeEstimateAsTime() (*time.Time, error) { + if o.NextRunTimeEstimate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.NextRunTimeEstimate, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportProperties) SetNextRunTimeEstimateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.NextRunTimeEstimate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrecurrenceperiod.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrecurrenceperiod.go new file mode 100644 index 0000000000000..b78c9ceddfee5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrecurrenceperiod.go @@ -0,0 +1,36 @@ +package exports + +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 ExportRecurrencePeriod struct { + From string `json:"from"` + To *string `json:"to,omitempty"` +} + +func (o *ExportRecurrencePeriod) GetFromAsTime() (*time.Time, error) { + return dates.ParseAsFormat(&o.From, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportRecurrencePeriod) SetFromAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.From = formatted +} + +func (o *ExportRecurrencePeriod) GetToAsTime() (*time.Time, error) { + if o.To == nil { + return nil, nil + } + return dates.ParseAsFormat(o.To, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportRecurrencePeriod) SetToAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.To = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrun.go new file mode 100644 index 0000000000000..24fffaa768e50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrun.go @@ -0,0 +1,12 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportRun struct { + ETag *string `json:"eTag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExportRunProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrunproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrunproperties.go new file mode 100644 index 0000000000000..6090ac5aa9ea0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrunproperties.go @@ -0,0 +1,85 @@ +package exports + +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 ExportRunProperties struct { + EndDate *string `json:"endDate,omitempty"` + Error *ErrorDetails `json:"error,omitempty"` + ExecutionType *ExecutionType `json:"executionType,omitempty"` + FileName *string `json:"fileName,omitempty"` + ManifestFile *string `json:"manifestFile,omitempty"` + ProcessingEndTime *string `json:"processingEndTime,omitempty"` + ProcessingStartTime *string `json:"processingStartTime,omitempty"` + RunSettings *CommonExportProperties `json:"runSettings,omitempty"` + StartDate *string `json:"startDate,omitempty"` + Status *ExecutionStatus `json:"status,omitempty"` + SubmittedBy *string `json:"submittedBy,omitempty"` + SubmittedTime *string `json:"submittedTime,omitempty"` +} + +func (o *ExportRunProperties) GetEndDateAsTime() (*time.Time, error) { + if o.EndDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportRunProperties) SetEndDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndDate = &formatted +} + +func (o *ExportRunProperties) GetProcessingEndTimeAsTime() (*time.Time, error) { + if o.ProcessingEndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.ProcessingEndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportRunProperties) SetProcessingEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.ProcessingEndTime = &formatted +} + +func (o *ExportRunProperties) GetProcessingStartTimeAsTime() (*time.Time, error) { + if o.ProcessingStartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.ProcessingStartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportRunProperties) SetProcessingStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.ProcessingStartTime = &formatted +} + +func (o *ExportRunProperties) GetStartDateAsTime() (*time.Time, error) { + if o.StartDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportRunProperties) SetStartDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartDate = &formatted +} + +func (o *ExportRunProperties) GetSubmittedTimeAsTime() (*time.Time, error) { + if o.SubmittedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.SubmittedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportRunProperties) SetSubmittedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.SubmittedTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrunrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrunrequest.go new file mode 100644 index 0000000000000..af619f29a1a2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportrunrequest.go @@ -0,0 +1,8 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportRunRequest struct { + TimePeriod *ExportTimePeriod `json:"timePeriod,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportschedule.go new file mode 100644 index 0000000000000..d9a1f5757c78a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportschedule.go @@ -0,0 +1,10 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExportSchedule struct { + Recurrence *RecurrenceType `json:"recurrence,omitempty"` + RecurrencePeriod *ExportRecurrencePeriod `json:"recurrencePeriod,omitempty"` + Status *StatusType `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportsuspensioncontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportsuspensioncontext.go new file mode 100644 index 0000000000000..a6343e8246528 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exportsuspensioncontext.go @@ -0,0 +1,28 @@ +package exports + +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 ExportSuspensionContext struct { + SuspensionCode *string `json:"suspensionCode,omitempty"` + SuspensionReason *string `json:"suspensionReason,omitempty"` + SuspensionTime *string `json:"suspensionTime,omitempty"` +} + +func (o *ExportSuspensionContext) GetSuspensionTimeAsTime() (*time.Time, error) { + if o.SuspensionTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.SuspensionTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportSuspensionContext) SetSuspensionTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.SuspensionTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exporttimeperiod.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exporttimeperiod.go new file mode 100644 index 0000000000000..82751bd3d6a7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_exporttimeperiod.go @@ -0,0 +1,33 @@ +package exports + +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 ExportTimePeriod struct { + From string `json:"from"` + To string `json:"to"` +} + +func (o *ExportTimePeriod) GetFromAsTime() (*time.Time, error) { + return dates.ParseAsFormat(&o.From, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportTimePeriod) SetFromAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.From = formatted +} + +func (o *ExportTimePeriod) GetToAsTime() (*time.Time, error) { + return dates.ParseAsFormat(&o.To, "2006-01-02T15:04:05Z07:00") +} + +func (o *ExportTimePeriod) SetToAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.To = formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_filteritems.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_filteritems.go new file mode 100644 index 0000000000000..9f63ef84f5f87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/model_filteritems.go @@ -0,0 +1,9 @@ +package exports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FilterItems struct { + Name *FilterItemNames `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/version.go new file mode 100644 index 0000000000000..11cf25298faf2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports/version.go @@ -0,0 +1,12 @@ +package exports + +import "fmt" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-07-01-preview" + +func userAgent() string { + return fmt.Sprintf("hashicorp/go-azure-sdk/exports/%s", defaultApiVersion) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_secretbase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_secretbase.go index a88630a30c126..1ddf8a889f5f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_secretbase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_secretbase.go @@ -44,14 +44,6 @@ func unmarshalSecretBaseImplementation(input []byte) (SecretBase, error) { return out, nil } - if strings.EqualFold(value, "SecureString") { - var out SecureString - if err := json.Unmarshal(input, &out); err != nil { - return nil, fmt.Errorf("unmarshaling into SecureString: %+v", err) - } - return out, nil - } - out := RawSecretBaseImpl{ Type: value, Values: temp, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_securestring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_securestring.go deleted file mode 100644 index ab62d8f5b5e0f..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_securestring.go +++ /dev/null @@ -1,41 +0,0 @@ -package credentials - -import ( - "encoding/json" - "fmt" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -var _ SecretBase = SecureString{} - -type SecureString struct { - Value string `json:"value"` - - // Fields inherited from SecretBase -} - -var _ json.Marshaler = SecureString{} - -func (s SecureString) MarshalJSON() ([]byte, error) { - type wrapper SecureString - wrapped := wrapper(s) - encoded, err := json.Marshal(wrapped) - if err != nil { - return nil, fmt.Errorf("marshaling SecureString: %+v", err) - } - - var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { - return nil, fmt.Errorf("unmarshaling SecureString: %+v", err) - } - decoded["type"] = "SecureString" - - encoded, err = json.Marshal(decoded) - if err != nil { - return nil, fmt.Errorf("re-marshaling SecureString: %+v", err) - } - - return encoded, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md index df8180a9564ba..29412f6732158 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md @@ -106,7 +106,7 @@ for _, item := range items { ctx := context.TODO() id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") -payload := availabilitysets.ResourcePatch{ +payload := availabilitysets.AvailabilitySetTagsUpdate{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/constants.go index 4de67ae6b6678..dd76a19865f9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/constants.go @@ -9,26 +9,26 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type Force string +type ForceDelete string const ( - ForceFalse Force = "false" - ForceTrue Force = "true" + ForceDeleteFalse ForceDelete = "false" + ForceDeleteTrue ForceDelete = "true" ) -func PossibleValuesForForce() []string { +func PossibleValuesForForceDelete() []string { return []string{ - string(ForceFalse), - string(ForceTrue), + string(ForceDeleteFalse), + string(ForceDeleteTrue), } } -func (s *Force) UnmarshalJSON(bytes []byte) error { +func (s *ForceDelete) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseForce(decoded) + out, err := parseForceDelete(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -36,52 +36,52 @@ func (s *Force) UnmarshalJSON(bytes []byte) error { return nil } -func parseForce(input string) (*Force, error) { - vals := map[string]Force{ - "false": ForceFalse, - "true": ForceTrue, +func parseForceDelete(input string) (*ForceDelete, error) { + vals := map[string]ForceDelete{ + "false": ForceDeleteFalse, + "true": ForceDeleteTrue, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := Force(input) + out := ForceDelete(input) return &out, nil } -type ProvisioningState string +type ResourceProvisioningState string const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreated ProvisioningState = "Created" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateProvisioning ProvisioningState = "Provisioning" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreated ResourceProvisioningState = "Created" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateProvisioning ResourceProvisioningState = "Provisioning" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" ) -func PossibleValuesForProvisioningState() []string { +func PossibleValuesForResourceProvisioningState() []string { return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreated), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreated), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateProvisioning), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), } } -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseProvisioningState(decoded) + out, err := parseResourceProvisioningState(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -89,22 +89,22 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { return nil } -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "created": ProvisioningStateCreated, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "created": ResourceProvisioningStateCreated, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "provisioning": ResourceProvisioningStateProvisioning, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) + out := ResourceProvisioningState(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go index feb65fd440906..fd09f93e3f565 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go @@ -21,7 +21,7 @@ type DeleteOperationResponse struct { } type DeleteOperationOptions struct { - Force *Force + Force *ForceDelete } func DefaultDeleteOperationOptions() DeleteOperationOptions { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_update.go index 7cca724eba7c0..b5c7d8d8734f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_update.go @@ -22,7 +22,7 @@ type UpdateOperationResponse struct { } // Update ... -func (c AvailabilitySetsClient) Update(ctx context.Context, id AvailabilitySetId, input ResourcePatch) (result UpdateOperationResponse, err error) { +func (c AvailabilitySetsClient) Update(ctx context.Context, id AvailabilitySetId, input AvailabilitySetTagsUpdate) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -61,7 +61,7 @@ func (c AvailabilitySetsClient) Update(ctx context.Context, id AvailabilitySetId } // UpdateThenPoll performs Update then polls until it's completed -func (c AvailabilitySetsClient) UpdateThenPoll(ctx context.Context, id AvailabilitySetId, input ResourcePatch) error { +func (c AvailabilitySetsClient) UpdateThenPoll(ctx context.Context, id AvailabilitySetId, input AvailabilitySetTagsUpdate) error { result, err := c.Update(ctx, id, input) if err != nil { return fmt.Errorf("performing Update: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilityset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilityset.go index c1bb50264991f..ea0570a47e5a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilityset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilityset.go @@ -8,12 +8,12 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AvailabilitySet struct { - ExtendedLocation ExtendedLocation `json:"extendedLocation"` - Id *string `json:"id,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties AvailabilitySetProperties `json:"properties"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` + ExtendedLocation ExtendedLocation `json:"extendedLocation"` + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *AvailabilitySetProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilitysetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilitysetproperties.go index 519440060de55..67811acf544bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilitysetproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilitysetproperties.go @@ -4,7 +4,7 @@ package availabilitysets // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AvailabilitySetProperties struct { - AvailabilitySetName *string `json:"availabilitySetName,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - VMmServerId *string `json:"vmmServerId,omitempty"` + AvailabilitySetName *string `json:"availabilitySetName,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + VMmServerId *string `json:"vmmServerId,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_resourcepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilitysettagsupdate.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_resourcepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilitysettagsupdate.go index 8ddbdd73387b8..acfc661f32d6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_resourcepatch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/model_availabilitysettagsupdate.go @@ -3,6 +3,6 @@ package availabilitysets // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ResourcePatch struct { +type AvailabilitySetTagsUpdate struct { Tags *map[string]string `json:"tags,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/client.go index 3523a8784b20a..e8f97b804e493 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/client.go @@ -8,27 +8,27 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets" "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds" + "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents" "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems" "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances" "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates" "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks" - "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents" - "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata" + "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas" "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" ) type Client struct { - AvailabilitySets *availabilitysets.AvailabilitySetsClient - Clouds *clouds.CloudsClient - InventoryItems *inventoryitems.InventoryItemsClient - VMInstanceGuestAgents *vminstanceguestagents.VMInstanceGuestAgentsClient - VMInstanceHybridIdentityMetadata *vminstancehybrididentitymetadata.VMInstanceHybridIdentityMetadataClient - VMmServers *vmmservers.VMmServersClient - VirtualMachineInstances *virtualmachineinstances.VirtualMachineInstancesClient - VirtualMachineTemplates *virtualmachinetemplates.VirtualMachineTemplatesClient - VirtualNetworks *virtualnetworks.VirtualNetworksClient + AvailabilitySets *availabilitysets.AvailabilitySetsClient + Clouds *clouds.CloudsClient + GuestAgents *guestagents.GuestAgentsClient + InventoryItems *inventoryitems.InventoryItemsClient + VMInstanceHybridIdentityMetadatas *vminstancehybrididentitymetadatas.VMInstanceHybridIdentityMetadatasClient + VMmServers *vmmservers.VMmServersClient + VirtualMachineInstances *virtualmachineinstances.VirtualMachineInstancesClient + VirtualMachineTemplates *virtualmachinetemplates.VirtualMachineTemplatesClient + VirtualNetworks *virtualnetworks.VirtualNetworksClient } func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { @@ -44,23 +44,23 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag } configureFunc(cloudsClient.Client) - inventoryItemsClient, err := inventoryitems.NewInventoryItemsClientWithBaseURI(sdkApi) + guestAgentsClient, err := guestagents.NewGuestAgentsClientWithBaseURI(sdkApi) if err != nil { - return nil, fmt.Errorf("building InventoryItems client: %+v", err) + return nil, fmt.Errorf("building GuestAgents client: %+v", err) } - configureFunc(inventoryItemsClient.Client) + configureFunc(guestAgentsClient.Client) - vMInstanceGuestAgentsClient, err := vminstanceguestagents.NewVMInstanceGuestAgentsClientWithBaseURI(sdkApi) + inventoryItemsClient, err := inventoryitems.NewInventoryItemsClientWithBaseURI(sdkApi) if err != nil { - return nil, fmt.Errorf("building VMInstanceGuestAgents client: %+v", err) + return nil, fmt.Errorf("building InventoryItems client: %+v", err) } - configureFunc(vMInstanceGuestAgentsClient.Client) + configureFunc(inventoryItemsClient.Client) - vMInstanceHybridIdentityMetadataClient, err := vminstancehybrididentitymetadata.NewVMInstanceHybridIdentityMetadataClientWithBaseURI(sdkApi) + vMInstanceHybridIdentityMetadatasClient, err := vminstancehybrididentitymetadatas.NewVMInstanceHybridIdentityMetadatasClientWithBaseURI(sdkApi) if err != nil { - return nil, fmt.Errorf("building VMInstanceHybridIdentityMetadata client: %+v", err) + return nil, fmt.Errorf("building VMInstanceHybridIdentityMetadatas client: %+v", err) } - configureFunc(vMInstanceHybridIdentityMetadataClient.Client) + configureFunc(vMInstanceHybridIdentityMetadatasClient.Client) vMmServersClient, err := vmmservers.NewVMmServersClientWithBaseURI(sdkApi) if err != nil { @@ -87,14 +87,14 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag configureFunc(virtualNetworksClient.Client) return &Client{ - AvailabilitySets: availabilitySetsClient, - Clouds: cloudsClient, - InventoryItems: inventoryItemsClient, - VMInstanceGuestAgents: vMInstanceGuestAgentsClient, - VMInstanceHybridIdentityMetadata: vMInstanceHybridIdentityMetadataClient, - VMmServers: vMmServersClient, - VirtualMachineInstances: virtualMachineInstancesClient, - VirtualMachineTemplates: virtualMachineTemplatesClient, - VirtualNetworks: virtualNetworksClient, + AvailabilitySets: availabilitySetsClient, + Clouds: cloudsClient, + GuestAgents: guestAgentsClient, + InventoryItems: inventoryItemsClient, + VMInstanceHybridIdentityMetadatas: vMInstanceHybridIdentityMetadatasClient, + VMmServers: vMmServersClient, + VirtualMachineInstances: virtualMachineInstancesClient, + VirtualMachineTemplates: virtualMachineTemplatesClient, + VirtualNetworks: virtualNetworksClient, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md index 9c626c45ab7be..e773def393d1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md @@ -106,7 +106,7 @@ for _, item := range items { ctx := context.TODO() id := clouds.NewCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudValue") -payload := clouds.ResourcePatch{ +payload := clouds.CloudTagsUpdate{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/constants.go index 416af769cd754..6dc2f4137fc1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/constants.go @@ -9,26 +9,26 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type Force string +type ForceDelete string const ( - ForceFalse Force = "false" - ForceTrue Force = "true" + ForceDeleteFalse ForceDelete = "false" + ForceDeleteTrue ForceDelete = "true" ) -func PossibleValuesForForce() []string { +func PossibleValuesForForceDelete() []string { return []string{ - string(ForceFalse), - string(ForceTrue), + string(ForceDeleteFalse), + string(ForceDeleteTrue), } } -func (s *Force) UnmarshalJSON(bytes []byte) error { +func (s *ForceDelete) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseForce(decoded) + out, err := parseForceDelete(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -36,52 +36,52 @@ func (s *Force) UnmarshalJSON(bytes []byte) error { return nil } -func parseForce(input string) (*Force, error) { - vals := map[string]Force{ - "false": ForceFalse, - "true": ForceTrue, +func parseForceDelete(input string) (*ForceDelete, error) { + vals := map[string]ForceDelete{ + "false": ForceDeleteFalse, + "true": ForceDeleteTrue, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := Force(input) + out := ForceDelete(input) return &out, nil } -type ProvisioningState string +type ResourceProvisioningState string const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreated ProvisioningState = "Created" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateProvisioning ProvisioningState = "Provisioning" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreated ResourceProvisioningState = "Created" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateProvisioning ResourceProvisioningState = "Provisioning" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" ) -func PossibleValuesForProvisioningState() []string { +func PossibleValuesForResourceProvisioningState() []string { return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreated), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreated), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateProvisioning), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), } } -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseProvisioningState(decoded) + out, err := parseResourceProvisioningState(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -89,22 +89,22 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { return nil } -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "created": ProvisioningStateCreated, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "created": ResourceProvisioningStateCreated, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "provisioning": ResourceProvisioningStateProvisioning, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) + out := ResourceProvisioningState(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go index c0f1ded3cfce7..6c283e926401f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go @@ -21,7 +21,7 @@ type DeleteOperationResponse struct { } type DeleteOperationOptions struct { - Force *Force + Force *ForceDelete } func DefaultDeleteOperationOptions() DeleteOperationOptions { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_update.go index fb2a2c8c890e4..e70d514cd382f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_update.go @@ -22,7 +22,7 @@ type UpdateOperationResponse struct { } // Update ... -func (c CloudsClient) Update(ctx context.Context, id CloudId, input ResourcePatch) (result UpdateOperationResponse, err error) { +func (c CloudsClient) Update(ctx context.Context, id CloudId, input CloudTagsUpdate) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -61,7 +61,7 @@ func (c CloudsClient) Update(ctx context.Context, id CloudId, input ResourcePatc } // UpdateThenPoll performs Update then polls until it's completed -func (c CloudsClient) UpdateThenPoll(ctx context.Context, id CloudId, input ResourcePatch) error { +func (c CloudsClient) UpdateThenPoll(ctx context.Context, id CloudId, input CloudTagsUpdate) error { result, err := c.Update(ctx, id, input) if err != nil { return fmt.Errorf("performing Update: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloud.go index 54782e1c6b585..96b29b9e1e156 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloud.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloud.go @@ -12,7 +12,7 @@ type Cloud struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` - Properties CloudProperties `json:"properties"` + Properties *CloudProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloudproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloudproperties.go index dfac177c333f2..d38e841e12a62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloudproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloudproperties.go @@ -4,11 +4,11 @@ package clouds // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type CloudProperties struct { - CloudCapacity *CloudCapacity `json:"cloudCapacity,omitempty"` - CloudName *string `json:"cloudName,omitempty"` - InventoryItemId *string `json:"inventoryItemId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - StorageQoSPolicies *[]StorageQoSPolicy `json:"storageQoSPolicies,omitempty"` - Uuid *string `json:"uuid,omitempty"` - VMmServerId *string `json:"vmmServerId,omitempty"` + CloudCapacity *CloudCapacity `json:"cloudCapacity,omitempty"` + CloudName *string `json:"cloudName,omitempty"` + InventoryItemId *string `json:"inventoryItemId,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + StorageQoSPolicies *[]StorageQosPolicy `json:"storageQoSPolicies,omitempty"` + Uuid *string `json:"uuid,omitempty"` + VMmServerId *string `json:"vmmServerId,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_resourcepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloudtagsupdate.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_resourcepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloudtagsupdate.go index 2b70badeeb85f..a4f8cbee26be0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_resourcepatch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_cloudtagsupdate.go @@ -3,6 +3,6 @@ package clouds // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ResourcePatch struct { +type CloudTagsUpdate struct { Tags *map[string]string `json:"tags,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_storageqospolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_storageqospolicy.go index 8425348c5c630..9bef0029deafd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_storageqospolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/model_storageqospolicy.go @@ -3,7 +3,7 @@ package clouds // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type StorageQoSPolicy struct { +type StorageQosPolicy struct { BandwidthLimit *int64 `json:"bandwidthLimit,omitempty"` Id *string `json:"id,omitempty"` IopsMaximum *int64 `json:"iopsMaximum,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/README.md similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/README.md index ce9abb2a70365..7ed86a9f49bc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents` Documentation -The `vminstanceguestagents` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `guestagents` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,25 +9,25 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents" +import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents" ``` ### Client Initialization ```go -client := vminstanceguestagents.NewVMInstanceGuestAgentsClientWithBaseURI("https://management.azure.com") +client := guestagents.NewGuestAgentsClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` -### Example Usage: `VMInstanceGuestAgentsClient.Create` +### Example Usage: `GuestAgentsClient.Create` ```go ctx := context.TODO() id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") -payload := vminstanceguestagents.GuestAgent{ +payload := guestagents.GuestAgent{ // ... } @@ -38,7 +38,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ``` -### Example Usage: `VMInstanceGuestAgentsClient.Delete` +### Example Usage: `GuestAgentsClient.Delete` ```go ctx := context.TODO() @@ -54,7 +54,7 @@ if model := read.Model; model != nil { ``` -### Example Usage: `VMInstanceGuestAgentsClient.Get` +### Example Usage: `GuestAgentsClient.Get` ```go ctx := context.TODO() @@ -70,14 +70,14 @@ if model := read.Model; model != nil { ``` -### Example Usage: `VMInstanceGuestAgentsClient.List` +### Example Usage: `GuestAgentsClient.ListByVirtualMachineInstance` ```go ctx := context.TODO() id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) +// alternatively `client.ListByVirtualMachineInstance(ctx, id)` can be used to do batched pagination +items, err := client.ListByVirtualMachineInstanceComplete(ctx, id) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/client.go new file mode 100644 index 0000000000000..8b3899fa940fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/client.go @@ -0,0 +1,26 @@ +package guestagents + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GuestAgentsClient struct { + Client *resourcemanager.Client +} + +func NewGuestAgentsClientWithBaseURI(sdkApi sdkEnv.Api) (*GuestAgentsClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "guestagents", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating GuestAgentsClient: %+v", err) + } + + return &GuestAgentsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/constants.go new file mode 100644 index 0000000000000..1b075c17a744a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/constants.go @@ -0,0 +1,113 @@ +package guestagents + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningAction string + +const ( + ProvisioningActionInstall ProvisioningAction = "install" + ProvisioningActionRepair ProvisioningAction = "repair" + ProvisioningActionUninstall ProvisioningAction = "uninstall" +) + +func PossibleValuesForProvisioningAction() []string { + return []string{ + string(ProvisioningActionInstall), + string(ProvisioningActionRepair), + string(ProvisioningActionUninstall), + } +} + +func (s *ProvisioningAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningAction(input string) (*ProvisioningAction, error) { + vals := map[string]ProvisioningAction{ + "install": ProvisioningActionInstall, + "repair": ProvisioningActionRepair, + "uninstall": ProvisioningActionUninstall, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningAction(input) + return &out, nil +} + +type ResourceProvisioningState string + +const ( + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreated ResourceProvisioningState = "Created" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateProvisioning ResourceProvisioningState = "Provisioning" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" +) + +func PossibleValuesForResourceProvisioningState() []string { + return []string{ + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreated), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateProvisioning), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), + } +} + +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResourceProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "created": ResourceProvisioningStateCreated, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "provisioning": ResourceProvisioningStateProvisioning, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResourceProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_create.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_create.go index 12eb42730f97f..4359ec5dc1f74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_create.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package guestagents import ( "context" @@ -23,7 +23,7 @@ type CreateOperationResponse struct { } // Create ... -func (c VMInstanceGuestAgentsClient) Create(ctx context.Context, id commonids.ScopeId, input GuestAgent) (result CreateOperationResponse, err error) { +func (c GuestAgentsClient) Create(ctx context.Context, id commonids.ScopeId, input GuestAgent) (result CreateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -62,7 +62,7 @@ func (c VMInstanceGuestAgentsClient) Create(ctx context.Context, id commonids.Sc } // CreateThenPoll performs Create then polls until it's completed -func (c VMInstanceGuestAgentsClient) CreateThenPoll(ctx context.Context, id commonids.ScopeId, input GuestAgent) error { +func (c GuestAgentsClient) CreateThenPoll(ctx context.Context, id commonids.ScopeId, input GuestAgent) error { result, err := c.Create(ctx, id, input) if err != nil { return fmt.Errorf("performing Create: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_delete.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_delete.go index a71146bce61bd..03887246ede78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_delete.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package guestagents import ( "context" @@ -19,7 +19,7 @@ type DeleteOperationResponse struct { } // Delete ... -func (c VMInstanceGuestAgentsClient) Delete(ctx context.Context, id commonids.ScopeId) (result DeleteOperationResponse, err error) { +func (c GuestAgentsClient) Delete(ctx context.Context, id commonids.ScopeId) (result DeleteOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_get.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_get.go index 27c5e9292e77d..cd77b3a95bb62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_get.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package guestagents import ( "context" @@ -20,7 +20,7 @@ type GetOperationResponse struct { } // Get ... -func (c VMInstanceGuestAgentsClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error) { +func (c GuestAgentsClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_listbyvirtualmachineinstance.go similarity index 58% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_listbyvirtualmachineinstance.go index ce5c3beb48b9a..9ecff449ff5ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_listbyvirtualmachineinstance.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package guestagents import ( "context" @@ -13,19 +13,19 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListOperationResponse struct { +type ListByVirtualMachineInstanceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]GuestAgent } -type ListCompleteResult struct { +type ListByVirtualMachineInstanceCompleteResult struct { LatestHttpResponse *http.Response Items []GuestAgent } -// List ... -func (c VMInstanceGuestAgentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { +// ListByVirtualMachineInstance ... +func (c GuestAgentsClient) ListByVirtualMachineInstance(ctx context.Context, id commonids.ScopeId) (result ListByVirtualMachineInstanceOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -62,16 +62,16 @@ func (c VMInstanceGuestAgentsClient) List(ctx context.Context, id commonids.Scop return } -// ListComplete retrieves all the results into a single object -func (c VMInstanceGuestAgentsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, GuestAgentOperationPredicate{}) +// ListByVirtualMachineInstanceComplete retrieves all the results into a single object +func (c GuestAgentsClient) ListByVirtualMachineInstanceComplete(ctx context.Context, id commonids.ScopeId) (ListByVirtualMachineInstanceCompleteResult, error) { + return c.ListByVirtualMachineInstanceCompleteMatchingPredicate(ctx, id, GuestAgentOperationPredicate{}) } -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VMInstanceGuestAgentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate GuestAgentOperationPredicate) (result ListCompleteResult, err error) { +// ListByVirtualMachineInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GuestAgentsClient) ListByVirtualMachineInstanceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate GuestAgentOperationPredicate) (result ListByVirtualMachineInstanceCompleteResult, err error) { items := make([]GuestAgent, 0) - resp, err := c.List(ctx, id) + resp, err := c.ListByVirtualMachineInstance(ctx, id) if err != nil { result.LatestHttpResponse = resp.HttpResponse err = fmt.Errorf("loading results: %+v", err) @@ -85,7 +85,7 @@ func (c VMInstanceGuestAgentsClient) ListCompleteMatchingPredicate(ctx context.C } } - result = ListCompleteResult{ + result = ListByVirtualMachineInstanceCompleteResult{ LatestHttpResponse: resp.HttpResponse, Items: items, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_guestagent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_guestagent.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_guestagent.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_guestagent.go index 195f7e64aaed0..6c6ae16822d57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_guestagent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_guestagent.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package guestagents import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" @@ -10,7 +10,7 @@ import ( type GuestAgent struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` - Properties GuestAgentProperties `json:"properties"` + Properties *GuestAgentProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_guestagentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_guestagentproperties.go new file mode 100644 index 0000000000000..2f5a38d97e7ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_guestagentproperties.go @@ -0,0 +1,14 @@ +package guestagents + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GuestAgentProperties struct { + Credentials *GuestCredential `json:"credentials,omitempty"` + CustomResourceName *string `json:"customResourceName,omitempty"` + HTTPProxyConfig *HTTPProxyConfiguration `json:"httpProxyConfig,omitempty"` + ProvisioningAction *ProvisioningAction `json:"provisioningAction,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Status *string `json:"status,omitempty"` + Uuid *string `json:"uuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_guestcredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_guestcredential.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_guestcredential.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_guestcredential.go index 4d4b3bdfa33a8..962b3d4183e58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_guestcredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_guestcredential.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package guestagents // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_httpproxyconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_httpproxyconfiguration.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_httpproxyconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_httpproxyconfiguration.go index bc2cbf6e77696..b77724457047d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_httpproxyconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/model_httpproxyconfiguration.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package guestagents // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/predicates.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/predicates.go index 7480836590039..f51a9dcf2c9f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/predicates.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package guestagents // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/version.go index 1b2f08a3bd16d..7019786d6d997 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/version.go @@ -1,4 +1,4 @@ -package vminstanceguestagents +package guestagents import "fmt" @@ -8,5 +8,5 @@ import "fmt" const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vminstanceguestagents/%s", defaultApiVersion) + return fmt.Sprintf("hashicorp/go-azure-sdk/guestagents/%s", defaultApiVersion) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/README.md index c76bf2a8e039e..3588d88600dd6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/README.md @@ -73,14 +73,14 @@ if model := read.Model; model != nil { ``` -### Example Usage: `InventoryItemsClient.ListByVMMServer` +### Example Usage: `InventoryItemsClient.ListByVMmServer` ```go ctx := context.TODO() id := inventoryitems.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue") -// alternatively `client.ListByVMMServer(ctx, id)` can be used to do batched pagination -items, err := client.ListByVMMServerComplete(ctx, id) +// alternatively `client.ListByVMmServer(ctx, id)` can be used to do batched pagination +items, err := client.ListByVMmServerComplete(ctx, id) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/constants.go index d7e2dc448d891..90118ce18043b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/constants.go @@ -100,38 +100,38 @@ func parseOsType(input string) (*OsType, error) { return &out, nil } -type ProvisioningState string +type ResourceProvisioningState string const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreated ProvisioningState = "Created" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateProvisioning ProvisioningState = "Provisioning" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreated ResourceProvisioningState = "Created" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateProvisioning ResourceProvisioningState = "Provisioning" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" ) -func PossibleValuesForProvisioningState() []string { +func PossibleValuesForResourceProvisioningState() []string { return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreated), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreated), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateProvisioning), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), } } -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseProvisioningState(decoded) + out, err := parseResourceProvisioningState(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -139,22 +139,22 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { return nil } -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "created": ProvisioningStateCreated, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "created": ResourceProvisioningStateCreated, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "provisioning": ResourceProvisioningStateProvisioning, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) + out := ResourceProvisioningState(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_listbyvmmserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_listbyvmmserver.go index 20ca7ff8708d4..6c1120b4ceef7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_listbyvmmserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_listbyvmmserver.go @@ -12,19 +12,19 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListByVMMServerOperationResponse struct { +type ListByVMmServerOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]InventoryItem } -type ListByVMMServerCompleteResult struct { +type ListByVMmServerCompleteResult struct { LatestHttpResponse *http.Response Items []InventoryItem } -// ListByVMMServer ... -func (c InventoryItemsClient) ListByVMMServer(ctx context.Context, id VMmServerId) (result ListByVMMServerOperationResponse, err error) { +// ListByVMmServer ... +func (c InventoryItemsClient) ListByVMmServer(ctx context.Context, id VMmServerId) (result ListByVMmServerOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -61,16 +61,16 @@ func (c InventoryItemsClient) ListByVMMServer(ctx context.Context, id VMmServerI return } -// ListByVMMServerComplete retrieves all the results into a single object -func (c InventoryItemsClient) ListByVMMServerComplete(ctx context.Context, id VMmServerId) (ListByVMMServerCompleteResult, error) { - return c.ListByVMMServerCompleteMatchingPredicate(ctx, id, InventoryItemOperationPredicate{}) +// ListByVMmServerComplete retrieves all the results into a single object +func (c InventoryItemsClient) ListByVMmServerComplete(ctx context.Context, id VMmServerId) (ListByVMmServerCompleteResult, error) { + return c.ListByVMmServerCompleteMatchingPredicate(ctx, id, InventoryItemOperationPredicate{}) } -// ListByVMMServerCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c InventoryItemsClient) ListByVMMServerCompleteMatchingPredicate(ctx context.Context, id VMmServerId, predicate InventoryItemOperationPredicate) (result ListByVMMServerCompleteResult, err error) { +// ListByVMmServerCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c InventoryItemsClient) ListByVMmServerCompleteMatchingPredicate(ctx context.Context, id VMmServerId, predicate InventoryItemOperationPredicate) (result ListByVMmServerCompleteResult, err error) { items := make([]InventoryItem, 0) - resp, err := c.ListByVMMServer(ctx, id) + resp, err := c.ListByVMmServer(ctx, id) if err != nil { result.LatestHttpResponse = resp.HttpResponse err = fmt.Errorf("loading results: %+v", err) @@ -84,7 +84,7 @@ func (c InventoryItemsClient) ListByVMMServerCompleteMatchingPredicate(ctx conte } } - result = ListByVMMServerCompleteResult{ + result = ListByVMmServerCompleteResult{ LatestHttpResponse: resp.HttpResponse, Items: items, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_cloudinventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_cloudinventoryitem.go index b8d67d2a4b2d9..56e3f23ee6b08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_cloudinventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_cloudinventoryitem.go @@ -13,10 +13,10 @@ var _ InventoryItemProperties = CloudInventoryItem{} type CloudInventoryItem struct { // Fields inherited from InventoryItemProperties - InventoryItemName *string `json:"inventoryItemName,omitempty"` - ManagedResourceId *string `json:"managedResourceId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Uuid *string `json:"uuid,omitempty"` + InventoryItemName *string `json:"inventoryItemName,omitempty"` + ManagedResourceId *string `json:"managedResourceId,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Uuid *string `json:"uuid,omitempty"` } var _ json.Marshaler = CloudInventoryItem{} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachineinventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachineinventoryitem.go index 8feb3388a1417..e706e7a71f034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachineinventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachineinventoryitem.go @@ -21,10 +21,10 @@ type VirtualMachineInventoryItem struct { PowerState *string `json:"powerState,omitempty"` // Fields inherited from InventoryItemProperties - InventoryItemName *string `json:"inventoryItemName,omitempty"` - ManagedResourceId *string `json:"managedResourceId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Uuid *string `json:"uuid,omitempty"` + InventoryItemName *string `json:"inventoryItemName,omitempty"` + ManagedResourceId *string `json:"managedResourceId,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Uuid *string `json:"uuid,omitempty"` } var _ json.Marshaler = VirtualMachineInventoryItem{} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachinetemplateinventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachinetemplateinventoryitem.go index d039273b7497a..8ed615931326a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachinetemplateinventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachinetemplateinventoryitem.go @@ -17,10 +17,10 @@ type VirtualMachineTemplateInventoryItem struct { OsType *OsType `json:"osType,omitempty"` // Fields inherited from InventoryItemProperties - InventoryItemName *string `json:"inventoryItemName,omitempty"` - ManagedResourceId *string `json:"managedResourceId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Uuid *string `json:"uuid,omitempty"` + InventoryItemName *string `json:"inventoryItemName,omitempty"` + ManagedResourceId *string `json:"managedResourceId,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Uuid *string `json:"uuid,omitempty"` } var _ json.Marshaler = VirtualMachineTemplateInventoryItem{} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualnetworkinventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualnetworkinventoryitem.go index 23e698f13a8a8..5bccb6b6c9452 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualnetworkinventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualnetworkinventoryitem.go @@ -13,10 +13,10 @@ var _ InventoryItemProperties = VirtualNetworkInventoryItem{} type VirtualNetworkInventoryItem struct { // Fields inherited from InventoryItemProperties - InventoryItemName *string `json:"inventoryItemName,omitempty"` - ManagedResourceId *string `json:"managedResourceId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Uuid *string `json:"uuid,omitempty"` + InventoryItemName *string `json:"inventoryItemName,omitempty"` + ManagedResourceId *string `json:"managedResourceId,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Uuid *string `json:"uuid,omitempty"` } var _ json.Marshaler = VirtualNetworkInventoryItem{} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/constants.go index 14c1b12df63d7..033a7f79b7c5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/constants.go @@ -173,26 +173,26 @@ func parseDynamicMemoryEnabled(input string) (*DynamicMemoryEnabled, error) { return &out, nil } -type Force string +type ForceDelete string const ( - ForceFalse Force = "false" - ForceTrue Force = "true" + ForceDeleteFalse ForceDelete = "false" + ForceDeleteTrue ForceDelete = "true" ) -func PossibleValuesForForce() []string { +func PossibleValuesForForceDelete() []string { return []string{ - string(ForceFalse), - string(ForceTrue), + string(ForceDeleteFalse), + string(ForceDeleteTrue), } } -func (s *Force) UnmarshalJSON(bytes []byte) error { +func (s *ForceDelete) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseForce(decoded) + out, err := parseForceDelete(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -200,17 +200,17 @@ func (s *Force) UnmarshalJSON(bytes []byte) error { return nil } -func parseForce(input string) (*Force, error) { - vals := map[string]Force{ - "false": ForceFalse, - "true": ForceTrue, +func parseForceDelete(input string) (*ForceDelete, error) { + vals := map[string]ForceDelete{ + "false": ForceDeleteFalse, + "true": ForceDeleteTrue, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := Force(input) + out := ForceDelete(input) return &out, nil } @@ -340,38 +340,38 @@ func parseOsType(input string) (*OsType, error) { return &out, nil } -type ProvisioningState string +type ResourceProvisioningState string const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreated ProvisioningState = "Created" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateProvisioning ProvisioningState = "Provisioning" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreated ResourceProvisioningState = "Created" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateProvisioning ResourceProvisioningState = "Provisioning" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" ) -func PossibleValuesForProvisioningState() []string { +func PossibleValuesForResourceProvisioningState() []string { return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreated), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreated), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateProvisioning), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), } } -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseProvisioningState(decoded) + out, err := parseResourceProvisioningState(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -379,23 +379,23 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { return nil } -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "created": ProvisioningStateCreated, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "created": ResourceProvisioningStateCreated, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "provisioning": ResourceProvisioningStateProvisioning, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) + out := ResourceProvisioningState(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go index a5b03734e5880..850139ee9c8f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go @@ -23,7 +23,7 @@ type DeleteOperationResponse struct { type DeleteOperationOptions struct { DeleteFromHost *DeleteFromHost - Force *Force + Force *ForceDelete } func DefaultDeleteOperationOptions() DeleteOperationOptions { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_availabilitysetlistavailabilitysetsinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_availabilitysetlistitem.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_availabilitysetlistavailabilitysetsinlined.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_availabilitysetlistitem.go index eeee23b8d4bc3..9501d5991cb86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_availabilitysetlistavailabilitysetsinlined.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_availabilitysetlistitem.go @@ -3,7 +3,7 @@ package virtualmachineinstances // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type AvailabilitySetListAvailabilitySetsInlined struct { +type AvailabilitySetListItem struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_storageqospolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_storageqospolicydetails.go index 4b919e02a8712..9c7e90830d23a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_storageqospolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_storageqospolicydetails.go @@ -3,7 +3,7 @@ package virtualmachineinstances // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type StorageQoSPolicyDetails struct { +type StorageQosPolicyDetails struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualdisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualdisk.go index ffd700958da0b..7a90ab93480ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualdisk.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualdisk.go @@ -13,7 +13,7 @@ type VirtualDisk struct { Lun *int64 `json:"lun,omitempty"` MaxDiskSizeGB *int64 `json:"maxDiskSizeGB,omitempty"` Name *string `json:"name,omitempty"` - StorageQoSPolicy *StorageQoSPolicyDetails `json:"storageQoSPolicy,omitempty"` + StorageQoSPolicy *StorageQosPolicyDetails `json:"storageQoSPolicy,omitempty"` TemplateDiskId *string `json:"templateDiskId,omitempty"` VhdFormatType *string `json:"vhdFormatType,omitempty"` VhdType *string `json:"vhdType,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualdiskupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualdiskupdate.go index 49d92b465d7de..319bbe255f407 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualdiskupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualdiskupdate.go @@ -10,6 +10,6 @@ type VirtualDiskUpdate struct { DiskSizeGB *int64 `json:"diskSizeGB,omitempty"` Lun *int64 `json:"lun,omitempty"` Name *string `json:"name,omitempty"` - StorageQoSPolicy *StorageQoSPolicyDetails `json:"storageQoSPolicy,omitempty"` + StorageQoSPolicy *StorageQosPolicyDetails `json:"storageQoSPolicy,omitempty"` VhdType *string `json:"vhdType,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstance.go index 22578153c53a3..faf083a54f35a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstance.go @@ -8,10 +8,10 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualMachineInstance struct { - ExtendedLocation ExtendedLocation `json:"extendedLocation"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties VirtualMachineInstanceProperties `json:"properties"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` + ExtendedLocation ExtendedLocation `json:"extendedLocation"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualMachineInstanceProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstanceproperties.go index b8549a4145e77..d746386db2095 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstanceproperties.go @@ -4,12 +4,12 @@ package virtualmachineinstances // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualMachineInstanceProperties struct { - AvailabilitySets *[]AvailabilitySetListAvailabilitySetsInlined `json:"availabilitySets,omitempty"` - HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"` - InfrastructureProfile *InfrastructureProfile `json:"infrastructureProfile,omitempty"` - NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` - OsProfile *OsProfileForVMInstance `json:"osProfile,omitempty"` - PowerState *string `json:"powerState,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + AvailabilitySets *[]AvailabilitySetListItem `json:"availabilitySets,omitempty"` + HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"` + InfrastructureProfile *InfrastructureProfile `json:"infrastructureProfile,omitempty"` + NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` + OsProfile *OsProfileForVMInstance `json:"osProfile,omitempty"` + PowerState *string `json:"powerState,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + StorageProfile *StorageProfile `json:"storageProfile,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstanceupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstanceupdateproperties.go index de7604d85c4fa..11cb451071e5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstanceupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/model_virtualmachineinstanceupdateproperties.go @@ -4,9 +4,9 @@ package virtualmachineinstances // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualMachineInstanceUpdateProperties struct { - AvailabilitySets *[]AvailabilitySetListAvailabilitySetsInlined `json:"availabilitySets,omitempty"` - HardwareProfile *HardwareProfileUpdate `json:"hardwareProfile,omitempty"` - InfrastructureProfile *InfrastructureProfileUpdate `json:"infrastructureProfile,omitempty"` - NetworkProfile *NetworkProfileUpdate `json:"networkProfile,omitempty"` - StorageProfile *StorageProfileUpdate `json:"storageProfile,omitempty"` + AvailabilitySets *[]AvailabilitySetListItem `json:"availabilitySets,omitempty"` + HardwareProfile *HardwareProfileUpdate `json:"hardwareProfile,omitempty"` + InfrastructureProfile *InfrastructureProfileUpdate `json:"infrastructureProfile,omitempty"` + NetworkProfile *NetworkProfileUpdate `json:"networkProfile,omitempty"` + StorageProfile *StorageProfileUpdate `json:"storageProfile,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md index f685fef694fd8..f2ef7dcbf0f4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md @@ -106,7 +106,7 @@ for _, item := range items { ctx := context.TODO() id := virtualmachinetemplates.NewVirtualMachineTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineTemplateValue") -payload := virtualmachinetemplates.ResourcePatch{ +payload := virtualmachinetemplates.VirtualMachineTemplateTagsUpdate{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/constants.go index a3405ff11e2e2..430c0f084f0b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/constants.go @@ -132,26 +132,26 @@ func parseDynamicMemoryEnabled(input string) (*DynamicMemoryEnabled, error) { return &out, nil } -type Force string +type ForceDelete string const ( - ForceFalse Force = "false" - ForceTrue Force = "true" + ForceDeleteFalse ForceDelete = "false" + ForceDeleteTrue ForceDelete = "true" ) -func PossibleValuesForForce() []string { +func PossibleValuesForForceDelete() []string { return []string{ - string(ForceFalse), - string(ForceTrue), + string(ForceDeleteFalse), + string(ForceDeleteTrue), } } -func (s *Force) UnmarshalJSON(bytes []byte) error { +func (s *ForceDelete) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseForce(decoded) + out, err := parseForceDelete(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -159,17 +159,17 @@ func (s *Force) UnmarshalJSON(bytes []byte) error { return nil } -func parseForce(input string) (*Force, error) { - vals := map[string]Force{ - "false": ForceFalse, - "true": ForceTrue, +func parseForceDelete(input string) (*ForceDelete, error) { + vals := map[string]ForceDelete{ + "false": ForceDeleteFalse, + "true": ForceDeleteTrue, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := Force(input) + out := ForceDelete(input) return &out, nil } @@ -340,38 +340,38 @@ func parseOsType(input string) (*OsType, error) { return &out, nil } -type ProvisioningState string +type ResourceProvisioningState string const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreated ProvisioningState = "Created" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateProvisioning ProvisioningState = "Provisioning" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreated ResourceProvisioningState = "Created" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateProvisioning ResourceProvisioningState = "Provisioning" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" ) -func PossibleValuesForProvisioningState() []string { +func PossibleValuesForResourceProvisioningState() []string { return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreated), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreated), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateProvisioning), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), } } -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseProvisioningState(decoded) + out, err := parseResourceProvisioningState(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -379,22 +379,22 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { return nil } -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "created": ProvisioningStateCreated, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "created": ResourceProvisioningStateCreated, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "provisioning": ResourceProvisioningStateProvisioning, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) + out := ResourceProvisioningState(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go index 98efca73c6218..bf24f068ad37b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go @@ -21,7 +21,7 @@ type DeleteOperationResponse struct { } type DeleteOperationOptions struct { - Force *Force + Force *ForceDelete } func DefaultDeleteOperationOptions() DeleteOperationOptions { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_update.go index 285078c4134b0..1b128897f8bd8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_update.go @@ -22,7 +22,7 @@ type UpdateOperationResponse struct { } // Update ... -func (c VirtualMachineTemplatesClient) Update(ctx context.Context, id VirtualMachineTemplateId, input ResourcePatch) (result UpdateOperationResponse, err error) { +func (c VirtualMachineTemplatesClient) Update(ctx context.Context, id VirtualMachineTemplateId, input VirtualMachineTemplateTagsUpdate) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -61,7 +61,7 @@ func (c VirtualMachineTemplatesClient) Update(ctx context.Context, id VirtualMac } // UpdateThenPoll performs Update then polls until it's completed -func (c VirtualMachineTemplatesClient) UpdateThenPoll(ctx context.Context, id VirtualMachineTemplateId, input ResourcePatch) error { +func (c VirtualMachineTemplatesClient) UpdateThenPoll(ctx context.Context, id VirtualMachineTemplateId, input VirtualMachineTemplateTagsUpdate) error { result, err := c.Update(ctx, id, input) if err != nil { return fmt.Errorf("performing Update: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_storageqospolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_storageqospolicydetails.go index e39a41230bc38..d08f389526d3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_storageqospolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_storageqospolicydetails.go @@ -3,7 +3,7 @@ package virtualmachinetemplates // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type StorageQoSPolicyDetails struct { +type StorageQosPolicyDetails struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualdisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualdisk.go index ba2d57b6dc343..9d80ea37419f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualdisk.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualdisk.go @@ -13,7 +13,7 @@ type VirtualDisk struct { Lun *int64 `json:"lun,omitempty"` MaxDiskSizeGB *int64 `json:"maxDiskSizeGB,omitempty"` Name *string `json:"name,omitempty"` - StorageQoSPolicy *StorageQoSPolicyDetails `json:"storageQoSPolicy,omitempty"` + StorageQoSPolicy *StorageQosPolicyDetails `json:"storageQoSPolicy,omitempty"` TemplateDiskId *string `json:"templateDiskId,omitempty"` VhdFormatType *string `json:"vhdFormatType,omitempty"` VhdType *string `json:"vhdType,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplate.go index d7b80cd738217..83917fcc2bbb3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplate.go @@ -8,12 +8,12 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualMachineTemplate struct { - ExtendedLocation ExtendedLocation `json:"extendedLocation"` - Id *string `json:"id,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties VirtualMachineTemplateProperties `json:"properties"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` + ExtendedLocation ExtendedLocation `json:"extendedLocation"` + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *VirtualMachineTemplateProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplateproperties.go index 9e470ff000a78..f5f08a095a944 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplateproperties.go @@ -4,22 +4,22 @@ package virtualmachinetemplates // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualMachineTemplateProperties struct { - ComputerName *string `json:"computerName,omitempty"` - CpuCount *int64 `json:"cpuCount,omitempty"` - Disks *[]VirtualDisk `json:"disks,omitempty"` - DynamicMemoryEnabled *DynamicMemoryEnabled `json:"dynamicMemoryEnabled,omitempty"` - DynamicMemoryMaxMB *int64 `json:"dynamicMemoryMaxMB,omitempty"` - DynamicMemoryMinMB *int64 `json:"dynamicMemoryMinMB,omitempty"` - Generation *int64 `json:"generation,omitempty"` - InventoryItemId *string `json:"inventoryItemId,omitempty"` - IsCustomizable *IsCustomizable `json:"isCustomizable,omitempty"` - IsHighlyAvailable *IsHighlyAvailable `json:"isHighlyAvailable,omitempty"` - LimitCPUForMigration *LimitCPUForMigration `json:"limitCpuForMigration,omitempty"` - MemoryMB *int64 `json:"memoryMB,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - OsName *string `json:"osName,omitempty"` - OsType *OsType `json:"osType,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Uuid *string `json:"uuid,omitempty"` - VMmServerId *string `json:"vmmServerId,omitempty"` + ComputerName *string `json:"computerName,omitempty"` + CpuCount *int64 `json:"cpuCount,omitempty"` + Disks *[]VirtualDisk `json:"disks,omitempty"` + DynamicMemoryEnabled *DynamicMemoryEnabled `json:"dynamicMemoryEnabled,omitempty"` + DynamicMemoryMaxMB *int64 `json:"dynamicMemoryMaxMB,omitempty"` + DynamicMemoryMinMB *int64 `json:"dynamicMemoryMinMB,omitempty"` + Generation *int64 `json:"generation,omitempty"` + InventoryItemId *string `json:"inventoryItemId,omitempty"` + IsCustomizable *IsCustomizable `json:"isCustomizable,omitempty"` + IsHighlyAvailable *IsHighlyAvailable `json:"isHighlyAvailable,omitempty"` + LimitCPUForMigration *LimitCPUForMigration `json:"limitCpuForMigration,omitempty"` + MemoryMB *int64 `json:"memoryMB,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + OsName *string `json:"osName,omitempty"` + OsType *OsType `json:"osType,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Uuid *string `json:"uuid,omitempty"` + VMmServerId *string `json:"vmmServerId,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_resourcepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplatetagsupdate.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_resourcepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplatetagsupdate.go index 9158fc48b415b..426289609b917 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_resourcepatch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/model_virtualmachinetemplatetagsupdate.go @@ -3,6 +3,6 @@ package virtualmachinetemplates // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ResourcePatch struct { +type VirtualMachineTemplateTagsUpdate struct { Tags *map[string]string `json:"tags,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md index b423efd5b808d..5894f24d79f57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md @@ -106,7 +106,7 @@ for _, item := range items { ctx := context.TODO() id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") -payload := virtualnetworks.ResourcePatch{ +payload := virtualnetworks.VirtualNetworkTagsUpdate{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/constants.go index 351afacd3d607..99efcd21744a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/constants.go @@ -9,26 +9,26 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type Force string +type ForceDelete string const ( - ForceFalse Force = "false" - ForceTrue Force = "true" + ForceDeleteFalse ForceDelete = "false" + ForceDeleteTrue ForceDelete = "true" ) -func PossibleValuesForForce() []string { +func PossibleValuesForForceDelete() []string { return []string{ - string(ForceFalse), - string(ForceTrue), + string(ForceDeleteFalse), + string(ForceDeleteTrue), } } -func (s *Force) UnmarshalJSON(bytes []byte) error { +func (s *ForceDelete) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseForce(decoded) + out, err := parseForceDelete(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -36,52 +36,52 @@ func (s *Force) UnmarshalJSON(bytes []byte) error { return nil } -func parseForce(input string) (*Force, error) { - vals := map[string]Force{ - "false": ForceFalse, - "true": ForceTrue, +func parseForceDelete(input string) (*ForceDelete, error) { + vals := map[string]ForceDelete{ + "false": ForceDeleteFalse, + "true": ForceDeleteTrue, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := Force(input) + out := ForceDelete(input) return &out, nil } -type ProvisioningState string +type ResourceProvisioningState string const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreated ProvisioningState = "Created" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateProvisioning ProvisioningState = "Provisioning" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreated ResourceProvisioningState = "Created" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateProvisioning ResourceProvisioningState = "Provisioning" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" ) -func PossibleValuesForProvisioningState() []string { +func PossibleValuesForResourceProvisioningState() []string { return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreated), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreated), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateProvisioning), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), } } -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseProvisioningState(decoded) + out, err := parseResourceProvisioningState(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -89,22 +89,22 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { return nil } -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "created": ProvisioningStateCreated, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "created": ResourceProvisioningStateCreated, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "provisioning": ResourceProvisioningStateProvisioning, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) + out := ResourceProvisioningState(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go index 01a9c4496d60c..2b6b3874a86f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go @@ -21,7 +21,7 @@ type DeleteOperationResponse struct { } type DeleteOperationOptions struct { - Force *Force + Force *ForceDelete } func DefaultDeleteOperationOptions() DeleteOperationOptions { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_update.go index b5cdbf20bf533..c8dde82433888 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_update.go @@ -22,7 +22,7 @@ type UpdateOperationResponse struct { } // Update ... -func (c VirtualNetworksClient) Update(ctx context.Context, id VirtualNetworkId, input ResourcePatch) (result UpdateOperationResponse, err error) { +func (c VirtualNetworksClient) Update(ctx context.Context, id VirtualNetworkId, input VirtualNetworkTagsUpdate) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -61,7 +61,7 @@ func (c VirtualNetworksClient) Update(ctx context.Context, id VirtualNetworkId, } // UpdateThenPoll performs Update then polls until it's completed -func (c VirtualNetworksClient) UpdateThenPoll(ctx context.Context, id VirtualNetworkId, input ResourcePatch) error { +func (c VirtualNetworksClient) UpdateThenPoll(ctx context.Context, id VirtualNetworkId, input VirtualNetworkTagsUpdate) error { result, err := c.Update(ctx, id, input) if err != nil { return fmt.Errorf("performing Update: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetwork.go index 9ac2cb963907d..2f42b1433c030 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetwork.go @@ -8,12 +8,12 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualNetwork struct { - ExtendedLocation ExtendedLocation `json:"extendedLocation"` - Id *string `json:"id,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties VirtualNetworkProperties `json:"properties"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` + ExtendedLocation ExtendedLocation `json:"extendedLocation"` + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetworkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetworkproperties.go index 11c6f71f8ded4..3a15bfe80a291 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetworkproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetworkproperties.go @@ -4,9 +4,9 @@ package virtualnetworks // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualNetworkProperties struct { - InventoryItemId *string `json:"inventoryItemId,omitempty"` - NetworkName *string `json:"networkName,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Uuid *string `json:"uuid,omitempty"` - VMmServerId *string `json:"vmmServerId,omitempty"` + InventoryItemId *string `json:"inventoryItemId,omitempty"` + NetworkName *string `json:"networkName,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Uuid *string `json:"uuid,omitempty"` + VMmServerId *string `json:"vmmServerId,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_resourcepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetworktagsupdate.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_resourcepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetworktagsupdate.go index b8e4e3ef99a5d..38f81b4a8d5db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_resourcepatch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/model_virtualnetworktagsupdate.go @@ -3,6 +3,6 @@ package virtualnetworks // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ResourcePatch struct { +type VirtualNetworkTagsUpdate struct { Tags *map[string]string `json:"tags,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/constants.go deleted file mode 100644 index 03950ff6bc5ab..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/constants.go +++ /dev/null @@ -1,113 +0,0 @@ -package vminstanceguestagents - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningAction string - -const ( - ProvisioningActionInstall ProvisioningAction = "install" - ProvisioningActionRepair ProvisioningAction = "repair" - ProvisioningActionUninstall ProvisioningAction = "uninstall" -) - -func PossibleValuesForProvisioningAction() []string { - return []string{ - string(ProvisioningActionInstall), - string(ProvisioningActionRepair), - string(ProvisioningActionUninstall), - } -} - -func (s *ProvisioningAction) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningAction(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningAction(input string) (*ProvisioningAction, error) { - vals := map[string]ProvisioningAction{ - "install": ProvisioningActionInstall, - "repair": ProvisioningActionRepair, - "uninstall": ProvisioningActionUninstall, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningAction(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreated ProvisioningState = "Created" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateProvisioning ProvisioningState = "Provisioning" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreated), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "created": ProvisioningStateCreated, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_guestagentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_guestagentproperties.go deleted file mode 100644 index 7f01590b94f8d..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/model_guestagentproperties.go +++ /dev/null @@ -1,14 +0,0 @@ -package vminstanceguestagents - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GuestAgentProperties struct { - Credentials *GuestCredential `json:"credentials,omitempty"` - CustomResourceName *string `json:"customResourceName,omitempty"` - HTTPProxyConfig *HTTPProxyConfiguration `json:"httpProxyConfig,omitempty"` - ProvisioningAction *ProvisioningAction `json:"provisioningAction,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Status *string `json:"status,omitempty"` - Uuid *string `json:"uuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/constants.go deleted file mode 100644 index 09f22289913c1..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/constants.go +++ /dev/null @@ -1,69 +0,0 @@ -package vminstancehybrididentitymetadata - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreated ProvisioningState = "Created" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateProvisioning ProvisioningState = "Provisioning" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreated), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "created": ProvisioningStateCreated, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/model_vminstancehybrididentitymetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/model_vminstancehybrididentitymetadata.go deleted file mode 100644 index c84683e121957..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/model_vminstancehybrididentitymetadata.go +++ /dev/null @@ -1,16 +0,0 @@ -package vminstancehybrididentitymetadata - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VMInstanceHybridIdentityMetadata struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties VMInstanceHybridIdentityMetadataProperties `json:"properties"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/model_vminstancehybrididentitymetadataproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/model_vminstancehybrididentitymetadataproperties.go deleted file mode 100644 index 67e5598fff715..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/model_vminstancehybrididentitymetadataproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package vminstancehybrididentitymetadata - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VMInstanceHybridIdentityMetadataProperties struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicKey *string `json:"publicKey,omitempty"` - ResourceUid *string `json:"resourceUid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/README.md similarity index 57% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/README.md index a1c2293a99eda..9f5219f9a46af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas` Documentation -The `vminstancehybrididentitymetadata` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `vminstancehybrididentitymetadatas` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,25 +9,25 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata" +import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas" ``` ### Client Initialization ```go -client := vminstancehybrididentitymetadata.NewVMInstanceHybridIdentityMetadataClientWithBaseURI("https://management.azure.com") +client := vminstancehybrididentitymetadatas.NewVMInstanceHybridIdentityMetadatasClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` -### Example Usage: `VMInstanceHybridIdentityMetadataClient.VirtualMachineInstanceHybridIdentityMetadataGet` +### Example Usage: `VMInstanceHybridIdentityMetadatasClient.Get` ```go ctx := context.TODO() id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") -read, err := client.VirtualMachineInstanceHybridIdentityMetadataGet(ctx, id) +read, err := client.Get(ctx, id) if err != nil { // handle the error } @@ -37,14 +37,14 @@ if model := read.Model; model != nil { ``` -### Example Usage: `VMInstanceHybridIdentityMetadataClient.VirtualMachineInstanceHybridIdentityMetadataList` +### Example Usage: `VMInstanceHybridIdentityMetadatasClient.ListByVirtualMachineInstance` ```go ctx := context.TODO() id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") -// alternatively `client.VirtualMachineInstanceHybridIdentityMetadataList(ctx, id)` can be used to do batched pagination -items, err := client.VirtualMachineInstanceHybridIdentityMetadataListComplete(ctx, id) +// alternatively `client.ListByVirtualMachineInstance(ctx, id)` can be used to do batched pagination +items, err := client.ListByVirtualMachineInstanceComplete(ctx, id) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/client.go similarity index 58% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/client.go index 605e66135cb96..630e0e876248c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/client.go @@ -1,4 +1,4 @@ -package vminstancehybrididentitymetadata +package vminstancehybrididentitymetadatas import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VMInstanceHybridIdentityMetadataClient struct { +type VMInstanceHybridIdentityMetadatasClient struct { Client *resourcemanager.Client } -func NewVMInstanceHybridIdentityMetadataClientWithBaseURI(sdkApi sdkEnv.Api) (*VMInstanceHybridIdentityMetadataClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vminstancehybrididentitymetadata", defaultApiVersion) +func NewVMInstanceHybridIdentityMetadatasClientWithBaseURI(sdkApi sdkEnv.Api) (*VMInstanceHybridIdentityMetadatasClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vminstancehybrididentitymetadatas", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating VMInstanceHybridIdentityMetadataClient: %+v", err) + return nil, fmt.Errorf("instantiating VMInstanceHybridIdentityMetadatasClient: %+v", err) } - return &VMInstanceHybridIdentityMetadataClient{ + return &VMInstanceHybridIdentityMetadatasClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/constants.go new file mode 100644 index 0000000000000..73fbe84172ef2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/constants.go @@ -0,0 +1,69 @@ +package vminstancehybrididentitymetadatas + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceProvisioningState string + +const ( + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreated ResourceProvisioningState = "Created" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateProvisioning ResourceProvisioningState = "Provisioning" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" +) + +func PossibleValuesForResourceProvisioningState() []string { + return []string{ + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreated), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateProvisioning), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), + } +} + +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResourceProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "created": ResourceProvisioningStateCreated, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "provisioning": ResourceProvisioningStateProvisioning, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResourceProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/method_virtualmachineinstancehybrididentitymetadataget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_get.go similarity index 74% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/method_virtualmachineinstancehybrididentitymetadataget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_get.go index e147b9fb3e704..03a7dc100c83f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/method_virtualmachineinstancehybrididentitymetadataget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_get.go @@ -1,4 +1,4 @@ -package vminstancehybrididentitymetadata +package vminstancehybrididentitymetadatas import ( "context" @@ -13,14 +13,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VirtualMachineInstanceHybridIdentityMetadataGetOperationResponse struct { +type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *VMInstanceHybridIdentityMetadata } -// VirtualMachineInstanceHybridIdentityMetadataGet ... -func (c VMInstanceHybridIdentityMetadataClient) VirtualMachineInstanceHybridIdentityMetadataGet(ctx context.Context, id commonids.ScopeId) (result VirtualMachineInstanceHybridIdentityMetadataGetOperationResponse, err error) { +// Get ... +func (c VMInstanceHybridIdentityMetadatasClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/method_virtualmachineinstancehybrididentitymetadatalist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_listbyvirtualmachineinstance.go similarity index 52% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/method_virtualmachineinstancehybrididentitymetadatalist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_listbyvirtualmachineinstance.go index 836bd17042fe6..fbaa6692a4939 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/method_virtualmachineinstancehybrididentitymetadatalist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_listbyvirtualmachineinstance.go @@ -1,4 +1,4 @@ -package vminstancehybrididentitymetadata +package vminstancehybrididentitymetadatas import ( "context" @@ -13,19 +13,19 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VirtualMachineInstanceHybridIdentityMetadataListOperationResponse struct { +type ListByVirtualMachineInstanceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VMInstanceHybridIdentityMetadata } -type VirtualMachineInstanceHybridIdentityMetadataListCompleteResult struct { +type ListByVirtualMachineInstanceCompleteResult struct { LatestHttpResponse *http.Response Items []VMInstanceHybridIdentityMetadata } -// VirtualMachineInstanceHybridIdentityMetadataList ... -func (c VMInstanceHybridIdentityMetadataClient) VirtualMachineInstanceHybridIdentityMetadataList(ctx context.Context, id commonids.ScopeId) (result VirtualMachineInstanceHybridIdentityMetadataListOperationResponse, err error) { +// ListByVirtualMachineInstance ... +func (c VMInstanceHybridIdentityMetadatasClient) ListByVirtualMachineInstance(ctx context.Context, id commonids.ScopeId) (result ListByVirtualMachineInstanceOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -62,16 +62,16 @@ func (c VMInstanceHybridIdentityMetadataClient) VirtualMachineInstanceHybridIden return } -// VirtualMachineInstanceHybridIdentityMetadataListComplete retrieves all the results into a single object -func (c VMInstanceHybridIdentityMetadataClient) VirtualMachineInstanceHybridIdentityMetadataListComplete(ctx context.Context, id commonids.ScopeId) (VirtualMachineInstanceHybridIdentityMetadataListCompleteResult, error) { - return c.VirtualMachineInstanceHybridIdentityMetadataListCompleteMatchingPredicate(ctx, id, VMInstanceHybridIdentityMetadataOperationPredicate{}) +// ListByVirtualMachineInstanceComplete retrieves all the results into a single object +func (c VMInstanceHybridIdentityMetadatasClient) ListByVirtualMachineInstanceComplete(ctx context.Context, id commonids.ScopeId) (ListByVirtualMachineInstanceCompleteResult, error) { + return c.ListByVirtualMachineInstanceCompleteMatchingPredicate(ctx, id, VMInstanceHybridIdentityMetadataOperationPredicate{}) } -// VirtualMachineInstanceHybridIdentityMetadataListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VMInstanceHybridIdentityMetadataClient) VirtualMachineInstanceHybridIdentityMetadataListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate VMInstanceHybridIdentityMetadataOperationPredicate) (result VirtualMachineInstanceHybridIdentityMetadataListCompleteResult, err error) { +// ListByVirtualMachineInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VMInstanceHybridIdentityMetadatasClient) ListByVirtualMachineInstanceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate VMInstanceHybridIdentityMetadataOperationPredicate) (result ListByVirtualMachineInstanceCompleteResult, err error) { items := make([]VMInstanceHybridIdentityMetadata, 0) - resp, err := c.VirtualMachineInstanceHybridIdentityMetadataList(ctx, id) + resp, err := c.ListByVirtualMachineInstance(ctx, id) if err != nil { result.LatestHttpResponse = resp.HttpResponse err = fmt.Errorf("loading results: %+v", err) @@ -85,7 +85,7 @@ func (c VMInstanceHybridIdentityMetadataClient) VirtualMachineInstanceHybridIden } } - result = VirtualMachineInstanceHybridIdentityMetadataListCompleteResult{ + result = ListByVirtualMachineInstanceCompleteResult{ LatestHttpResponse: resp.HttpResponse, Items: items, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/model_vminstancehybrididentitymetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/model_vminstancehybrididentitymetadata.go new file mode 100644 index 0000000000000..d678ccec0ba28 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/model_vminstancehybrididentitymetadata.go @@ -0,0 +1,16 @@ +package vminstancehybrididentitymetadatas + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMInstanceHybridIdentityMetadata struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VMInstanceHybridIdentityMetadataProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/model_vminstancehybrididentitymetadataproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/model_vminstancehybrididentitymetadataproperties.go new file mode 100644 index 0000000000000..b25f9d2cf7d2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/model_vminstancehybrididentitymetadataproperties.go @@ -0,0 +1,10 @@ +package vminstancehybrididentitymetadatas + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMInstanceHybridIdentityMetadataProperties struct { + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + PublicKey *string `json:"publicKey,omitempty"` + ResourceUid *string `json:"resourceUid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/predicates.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/predicates.go index 2b14e1e41ff7c..24f64891ff475 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/predicates.go @@ -1,4 +1,4 @@ -package vminstancehybrididentitymetadata +package vminstancehybrididentitymetadatas // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/version.go similarity index 79% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/version.go index e7b052b612a6e..9126484543945 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/version.go @@ -1,4 +1,4 @@ -package vminstancehybrididentitymetadata +package vminstancehybrididentitymetadatas import "fmt" @@ -8,5 +8,5 @@ import "fmt" const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vminstancehybrididentitymetadata/%s", defaultApiVersion) + return fmt.Sprintf("hashicorp/go-azure-sdk/vminstancehybrididentitymetadatas/%s", defaultApiVersion) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md index e7112823e1026..3e61fe49d3f6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md @@ -27,7 +27,7 @@ client.Client.Authorizer = authorizer ctx := context.TODO() id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue") -payload := vmmservers.VMMServer{ +payload := vmmservers.VMmServer{ // ... } @@ -106,7 +106,7 @@ for _, item := range items { ctx := context.TODO() id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue") -payload := vmmservers.ResourcePatch{ +payload := vmmservers.VMmServerTagsUpdate{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/constants.go index 6eeaba57dab0a..93ca4c995031c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/constants.go @@ -9,26 +9,26 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type Force string +type ForceDelete string const ( - ForceFalse Force = "false" - ForceTrue Force = "true" + ForceDeleteFalse ForceDelete = "false" + ForceDeleteTrue ForceDelete = "true" ) -func PossibleValuesForForce() []string { +func PossibleValuesForForceDelete() []string { return []string{ - string(ForceFalse), - string(ForceTrue), + string(ForceDeleteFalse), + string(ForceDeleteTrue), } } -func (s *Force) UnmarshalJSON(bytes []byte) error { +func (s *ForceDelete) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseForce(decoded) + out, err := parseForceDelete(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -36,52 +36,52 @@ func (s *Force) UnmarshalJSON(bytes []byte) error { return nil } -func parseForce(input string) (*Force, error) { - vals := map[string]Force{ - "false": ForceFalse, - "true": ForceTrue, +func parseForceDelete(input string) (*ForceDelete, error) { + vals := map[string]ForceDelete{ + "false": ForceDeleteFalse, + "true": ForceDeleteTrue, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := Force(input) + out := ForceDelete(input) return &out, nil } -type ProvisioningState string +type ResourceProvisioningState string const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreated ProvisioningState = "Created" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateProvisioning ProvisioningState = "Provisioning" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreated ResourceProvisioningState = "Created" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateProvisioning ResourceProvisioningState = "Provisioning" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" ) -func PossibleValuesForProvisioningState() []string { +func PossibleValuesForResourceProvisioningState() []string { return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreated), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreated), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateProvisioning), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), } } -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseProvisioningState(decoded) + out, err := parseResourceProvisioningState(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -89,22 +89,22 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { return nil } -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "created": ProvisioningStateCreated, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "created": ResourceProvisioningStateCreated, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "provisioning": ResourceProvisioningStateProvisioning, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) + out := ResourceProvisioningState(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_createorupdate.go index 368f7160aef19..588c61e668967 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_createorupdate.go @@ -18,11 +18,11 @@ type CreateOrUpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *VMMServer + Model *VMmServer } // CreateOrUpdate ... -func (c VMmServersClient) CreateOrUpdate(ctx context.Context, id VMmServerId, input VMMServer) (result CreateOrUpdateOperationResponse, err error) { +func (c VMmServersClient) CreateOrUpdate(ctx context.Context, id VMmServerId, input VMmServer) (result CreateOrUpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -61,7 +61,7 @@ func (c VMmServersClient) CreateOrUpdate(ctx context.Context, id VMmServerId, in } // CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c VMmServersClient) CreateOrUpdateThenPoll(ctx context.Context, id VMmServerId, input VMMServer) error { +func (c VMmServersClient) CreateOrUpdateThenPoll(ctx context.Context, id VMmServerId, input VMmServer) error { result, err := c.CreateOrUpdate(ctx, id, input) if err != nil { return fmt.Errorf("performing CreateOrUpdate: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go index b68e32b8439bd..b2b9d83624ce1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go @@ -21,7 +21,7 @@ type DeleteOperationResponse struct { } type DeleteOperationOptions struct { - Force *Force + Force *ForceDelete } func DefaultDeleteOperationOptions() DeleteOperationOptions { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_get.go index 421fe8f2a47fa..e777876dede4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_get.go @@ -14,7 +14,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *VMMServer + Model *VMmServer } // Get ... @@ -43,7 +43,7 @@ func (c VMmServersClient) Get(ctx context.Context, id VMmServerId) (result GetOp return } - var model VMMServer + var model VMmServer result.Model = &model if err = resp.Unmarshal(result.Model); err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbyresourcegroup.go index c38d93067ce35..a43596710f792 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbyresourcegroup.go @@ -16,12 +16,12 @@ import ( type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]VMMServer + Model *[]VMmServer } type ListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response - Items []VMMServer + Items []VMmServer } // ListByResourceGroup ... @@ -51,7 +51,7 @@ func (c VMmServersClient) ListByResourceGroup(ctx context.Context, id commonids. } var values struct { - Values *[]VMMServer `json:"value"` + Values *[]VMmServer `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -64,12 +64,12 @@ func (c VMmServersClient) ListByResourceGroup(ctx context.Context, id commonids. // ListByResourceGroupComplete retrieves all the results into a single object func (c VMmServersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { - return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, VMMServerOperationPredicate{}) + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, VMmServerOperationPredicate{}) } // ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VMmServersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VMMServerOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { - items := make([]VMMServer, 0) +func (c VMmServersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VMmServerOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]VMmServer, 0) resp, err := c.ListByResourceGroup(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbysubscription.go index cbaa12c88298d..6ab43a1bf3aba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbysubscription.go @@ -16,12 +16,12 @@ import ( type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]VMMServer + Model *[]VMmServer } type ListBySubscriptionCompleteResult struct { LatestHttpResponse *http.Response - Items []VMMServer + Items []VMmServer } // ListBySubscription ... @@ -51,7 +51,7 @@ func (c VMmServersClient) ListBySubscription(ctx context.Context, id commonids.S } var values struct { - Values *[]VMMServer `json:"value"` + Values *[]VMmServer `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -64,12 +64,12 @@ func (c VMmServersClient) ListBySubscription(ctx context.Context, id commonids.S // ListBySubscriptionComplete retrieves all the results into a single object func (c VMmServersClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error) { - return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, VMMServerOperationPredicate{}) + return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, VMmServerOperationPredicate{}) } // ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VMmServersClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VMMServerOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { - items := make([]VMMServer, 0) +func (c VMmServersClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VMmServerOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { + items := make([]VMmServer, 0) resp, err := c.ListBySubscription(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_update.go index 050732109896a..e318da3eb3b2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_update.go @@ -18,11 +18,11 @@ type UpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *VMMServer + Model *VMmServer } // Update ... -func (c VMmServersClient) Update(ctx context.Context, id VMmServerId, input ResourcePatch) (result UpdateOperationResponse, err error) { +func (c VMmServersClient) Update(ctx context.Context, id VMmServerId, input VMmServerTagsUpdate) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -61,7 +61,7 @@ func (c VMmServersClient) Update(ctx context.Context, id VMmServerId, input Reso } // UpdateThenPoll performs Update then polls until it's completed -func (c VMmServersClient) UpdateThenPoll(ctx context.Context, id VMmServerId, input ResourcePatch) error { +func (c VMmServersClient) UpdateThenPoll(ctx context.Context, id VMmServerId, input VMmServerTagsUpdate) error { result, err := c.Update(ctx, id, input) if err != nil { return fmt.Errorf("performing Update: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmcredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmcredential.go index 139ef67e0e2f4..cbc49c6f49826 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmcredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmcredential.go @@ -3,7 +3,7 @@ package vmmservers // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VMMCredential struct { +type VMmCredential struct { Password *string `json:"password,omitempty"` Username *string `json:"username,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmserver.go index bb0e9a9b33946..19446485ebc8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmserver.go @@ -7,12 +7,12 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VMMServer struct { +type VMmServer struct { ExtendedLocation ExtendedLocation `json:"extendedLocation"` Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` - Properties VMMServerProperties `json:"properties"` + Properties *VMmServerProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmserverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmserverproperties.go index 6532dae951fd8..da0e559badea7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmserverproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmserverproperties.go @@ -3,13 +3,13 @@ package vmmservers // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VMMServerProperties struct { - ConnectionStatus *string `json:"connectionStatus,omitempty"` - Credentials *VMMCredential `json:"credentials,omitempty"` - ErrorMessage *string `json:"errorMessage,omitempty"` - Fqdn string `json:"fqdn"` - Port *int64 `json:"port,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Uuid *string `json:"uuid,omitempty"` - Version *string `json:"version,omitempty"` +type VMmServerProperties struct { + ConnectionStatus *string `json:"connectionStatus,omitempty"` + Credentials *VMmCredential `json:"credentials,omitempty"` + ErrorMessage *string `json:"errorMessage,omitempty"` + Fqdn string `json:"fqdn"` + Port *int64 `json:"port,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Uuid *string `json:"uuid,omitempty"` + Version *string `json:"version,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_resourcepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmservertagsupdate.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_resourcepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmservertagsupdate.go index b5b742ed7b12e..1724fc676e3c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_resourcepatch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/model_vmmservertagsupdate.go @@ -3,6 +3,6 @@ package vmmservers // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ResourcePatch struct { +type VMmServerTagsUpdate struct { Tags *map[string]string `json:"tags,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/predicates.go index c2a867ae8f50c..bf7276b94c70c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/predicates.go @@ -3,14 +3,14 @@ package vmmservers // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VMMServerOperationPredicate struct { +type VMmServerOperationPredicate struct { Id *string Location *string Name *string Type *string } -func (p VMMServerOperationPredicate) Matches(input VMMServer) bool { +func (p VMmServerOperationPredicate) Matches(input VMmServer) bool { if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { return false diff --git a/vendor/modules.txt b/vendor/modules.txt index 28c1bd10374e1..a9ecda2938ef7 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -152,7 +152,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/tags github.com/hashicorp/go-azure-helpers/resourcemanager/zones github.com/hashicorp/go-azure-helpers/sender github.com/hashicorp/go-azure-helpers/storage -# github.com/hashicorp/go-azure-sdk/resource-manager v0.20240603.1222802 +# github.com/hashicorp/go-azure-sdk/resource-manager v0.20240604.1114748 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview @@ -409,6 +409,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exp github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views +github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-07-01-preview/exports github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices @@ -1070,12 +1071,12 @@ github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subsc github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07 github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds +github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks -github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents -github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata +github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15 github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies @@ -1114,7 +1115,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplands github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances -# github.com/hashicorp/go-azure-sdk/sdk v0.20240603.1222802 +# github.com/hashicorp/go-azure-sdk/sdk v0.20240604.1114748 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/sdk/auth github.com/hashicorp/go-azure-sdk/sdk/auth/autorest