Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package alertprocessingrules

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.

Expand All @@ -12,7 +8,6 @@ type AlertProcessingRule struct {
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *AlertProcessingRuleProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Tags *map[string]string `json:"tags,omitempty"`
Type *string `json:"type,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions {
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers {
out := client.Headers{}
if o.IfMatch != nil {
out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch))
out.Append("if-match", fmt.Sprintf("%v", *o.IfMatch))
}
if o.IfNoneMatch != nil {
out.Append("If-None-Match", fmt.Sprintf("%v", *o.IfNoneMatch))
out.Append("if-none-match", fmt.Sprintf("%v", *o.IfNoneMatch))
}
return &out
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func DefaultDeleteOperationOptions() DeleteOperationOptions {
func (o DeleteOperationOptions) ToHeaders() *client.Headers {
out := client.Headers{}
if o.IfMatch != nil {
out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch))
out.Append("if-match", fmt.Sprintf("%v", *o.IfMatch))
}
return &out
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package agentpools

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 AgentPool struct {
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Properties *ManagedClusterAgentPoolProfileProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Type *string `json:"type,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ package agentpools
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AgentPoolAvailableVersionsProperties struct {
AgentPoolVersions *[]AgentPoolAvailableVersionsPropertiesAgentPoolVersionsInlined `json:"agentPoolVersions,omitempty"`
AgentPoolVersions *[]AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem `json:"agentPoolVersions,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package agentpools
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AgentPoolAvailableVersionsPropertiesAgentPoolVersionsInlined struct {
type AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem struct {
Default *bool `json:"default,omitempty"`
IsPreview *bool `json:"isPreview,omitempty"`
KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package agentpools

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 AgentPoolUpgradeProfile struct {
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Properties AgentPoolUpgradeProfileProperties `json:"properties"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Type *string `json:"type,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package agentpools
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AgentPoolUpgradeProfileProperties struct {
KubernetesVersion string `json:"kubernetesVersion"`
LatestNodeImageVersion *string `json:"latestNodeImageVersion,omitempty"`
OsType OSType `json:"osType"`
Upgrades *[]AgentPoolUpgradeProfilePropertiesUpgradesInlined `json:"upgrades,omitempty"`
KubernetesVersion string `json:"kubernetesVersion"`
LatestNodeImageVersion *string `json:"latestNodeImageVersion,omitempty"`
OsType OSType `json:"osType"`
Upgrades *[]AgentPoolUpgradeProfilePropertiesUpgradesItem `json:"upgrades,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package agentpools
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AgentPoolUpgradeProfilePropertiesUpgradesInlined struct {
type AgentPoolUpgradeProfilePropertiesUpgradesItem struct {
IsPreview *bool `json:"isPreview,omitempty"`
KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
package machines

import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata"
"github.com/hashicorp/go-azure-helpers/resourcemanager/zones"
)

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

type Machine struct {
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Properties *MachineProperties `json:"properties,omitempty"`
Type *string `json:"type,omitempty"`
Zones *zones.Schema `json:"zones,omitempty"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Properties *MachineProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Type *string `json:"type,omitempty"`
Zones *zones.Schema `json:"zones,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions {
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers {
out := client.Headers{}
if o.IfMatch != nil {
out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch))
out.Append("if-match", fmt.Sprintf("%v", *o.IfMatch))
}
if o.IfNoneMatch != nil {
out.Append("If-None-Match", fmt.Sprintf("%v", *o.IfNoneMatch))
out.Append("if-none-match", fmt.Sprintf("%v", *o.IfNoneMatch))
}
return &out
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func DefaultDeleteOperationOptions() DeleteOperationOptions {
func (o DeleteOperationOptions) ToHeaders() *client.Headers {
out := client.Headers{}
if o.IfMatch != nil {
out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch))
out.Append("if-match", fmt.Sprintf("%v", *o.IfMatch))
}
return &out
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func DefaultUpdateTagsOperationOptions() UpdateTagsOperationOptions {
func (o UpdateTagsOperationOptions) ToHeaders() *client.Headers {
out := client.Headers{}
if o.IfMatch != nil {
out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch))
out.Append("if-match", fmt.Sprintf("%v", *o.IfMatch))
}
return &out
}
Expand All @@ -55,6 +55,7 @@ func (c ManagedClustersClient) UpdateTags(ctx context.Context, id commonids.Kube
opts := client.RequestOptions{
ContentType: "application/json; charset=utf-8",
ExpectedStatusCodes: []int{
http.StatusAccepted,
http.StatusOK,
},
HttpMethod: http.MethodPatch,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package managedclusters
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type ManagedClusterPoolUpgradeProfile struct {
KubernetesVersion string `json:"kubernetesVersion"`
Name *string `json:"name,omitempty"`
OsType OSType `json:"osType"`
Upgrades *[]ManagedClusterPoolUpgradeProfileUpgradesInlined `json:"upgrades,omitempty"`
KubernetesVersion string `json:"kubernetesVersion"`
Name *string `json:"name,omitempty"`
OsType OSType `json:"osType"`
Upgrades *[]ManagedClusterPoolUpgradeProfileUpgradesItem `json:"upgrades,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package managedclusters
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type ManagedClusterPoolUpgradeProfileUpgradesInlined struct {
type ManagedClusterPoolUpgradeProfileUpgradesItem struct {
IsPreview *bool `json:"isPreview,omitempty"`
KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package managedclusters

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 ManagedClusterUpgradeProfile struct {
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Properties ManagedClusterUpgradeProfileProperties `json:"properties"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Type *string `json:"type,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func (c PrivateEndpointConnectionsClient) Delete(ctx context.Context, id Private
opts := client.RequestOptions{
ContentType: "application/json; charset=utf-8",
ExpectedStatusCodes: []int{
http.StatusAccepted,
http.StatusNoContent,
http.StatusOK,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package privateendpointconnections

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 PrivateEndpointConnection struct {
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Type *string `json:"type,omitempty"`
}

This file was deleted.

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

type ErrorDetail struct {
AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
Code *string `json:"code,omitempty"`
Details *[]ErrorDetail `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Recommendations *[]string `json:"recommendations,omitempty"`
}

This file was deleted.

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

type ErrorDetail struct {
AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
Code *string `json:"code,omitempty"`
Details *[]ErrorDetail `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Recommendations *[]string `json:"recommendations,omitempty"`
}

This file was deleted.

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

type ErrorDetail struct {
AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
Code *string `json:"code,omitempty"`
Details *[]ErrorDetail `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Recommendations *[]string `json:"recommendations,omitempty"`
}
Loading