Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto PR: Regenerating the Go SDK (96f2292a08e5714d9d1e86ec09e5025f2a4089d4) #820

Closed
wants to merge 1 commit into from
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = DomainServiceId{}
var _ resourceids.ResourceId = &DomainServiceId{}

// DomainServiceId is a struct representing the Resource ID for a Domain Service
type DomainServiceId struct {
Expand All @@ -30,7 +30,7 @@ func NewDomainServiceID(subscriptionId string, resourceGroupName string, domainS

// ParseDomainServiceID parses 'input' into a DomainServiceId
func ParseDomainServiceID(input string) (*DomainServiceId, error) {
parser := resourceids.NewParserFromResourceIdType(DomainServiceId{})
parser := resourceids.NewParserFromResourceIdType(&DomainServiceId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -47,7 +47,7 @@ func ParseDomainServiceID(input string) (*DomainServiceId, error) {
// ParseDomainServiceIDInsensitively parses 'input' case-insensitively into a DomainServiceId
// note: this method should only be used for API response data and not user input
func ParseDomainServiceIDInsensitively(input string) (*DomainServiceId, error) {
parser := resourceids.NewParserFromResourceIdType(DomainServiceId{})
parser := resourceids.NewParserFromResourceIdType(&DomainServiceId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = DomainServiceId{}
var _ resourceids.ResourceId = &DomainServiceId{}

// DomainServiceId is a struct representing the Resource ID for a Domain Service
type DomainServiceId struct {
Expand All @@ -30,7 +30,7 @@ func NewDomainServiceID(subscriptionId string, resourceGroupName string, domainS

// ParseDomainServiceID parses 'input' into a DomainServiceId
func ParseDomainServiceID(input string) (*DomainServiceId, error) {
parser := resourceids.NewParserFromResourceIdType(DomainServiceId{})
parser := resourceids.NewParserFromResourceIdType(&DomainServiceId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -47,7 +47,7 @@ func ParseDomainServiceID(input string) (*DomainServiceId, error) {
// ParseDomainServiceIDInsensitively parses 'input' case-insensitively into a DomainServiceId
// note: this method should only be used for API response data and not user input
func ParseDomainServiceIDInsensitively(input string) (*DomainServiceId, error) {
parser := resourceids.NewParserFromResourceIdType(DomainServiceId{})
parser := resourceids.NewParserFromResourceIdType(&DomainServiceId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = OuContainerId{}
var _ resourceids.ResourceId = &OuContainerId{}

// OuContainerId is a struct representing the Resource ID for a Ou Container
type OuContainerId struct {
Expand All @@ -32,7 +32,7 @@ func NewOuContainerID(subscriptionId string, resourceGroupName string, domainSer

// ParseOuContainerID parses 'input' into a OuContainerId
func ParseOuContainerID(input string) (*OuContainerId, error) {
parser := resourceids.NewParserFromResourceIdType(OuContainerId{})
parser := resourceids.NewParserFromResourceIdType(&OuContainerId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -49,7 +49,7 @@ func ParseOuContainerID(input string) (*OuContainerId, error) {
// ParseOuContainerIDInsensitively parses 'input' case-insensitively into a OuContainerId
// note: this method should only be used for API response data and not user input
func ParseOuContainerIDInsensitively(input string) (*OuContainerId, error) {
parser := resourceids.NewParserFromResourceIdType(OuContainerId{})
parser := resourceids.NewParserFromResourceIdType(&OuContainerId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) HashiCorp Inc. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = B2CDirectoryId{}
var _ resourceids.ResourceId = &B2CDirectoryId{}

// B2CDirectoryId is a struct representing the Resource ID for a B 2 C Directory
type B2CDirectoryId struct {
Expand All @@ -30,7 +30,7 @@ func NewB2CDirectoryID(subscriptionId string, resourceGroup string, directoryNam

// ParseB2CDirectoryID parses 'input' into a B2CDirectoryId
func ParseB2CDirectoryID(input string) (*B2CDirectoryId, error) {
parser := resourceids.NewParserFromResourceIdType(B2CDirectoryId{})
parser := resourceids.NewParserFromResourceIdType(&B2CDirectoryId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -47,7 +47,7 @@ func ParseB2CDirectoryID(input string) (*B2CDirectoryId, error) {
// ParseB2CDirectoryIDInsensitively parses 'input' case-insensitively into a B2CDirectoryId
// note: this method should only be used for API response data and not user input
func ParseB2CDirectoryIDInsensitively(input string) (*B2CDirectoryId, error) {
parser := resourceids.NewParserFromResourceIdType(B2CDirectoryId{})
parser := resourceids.NewParserFromResourceIdType(&B2CDirectoryId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = GenerateRecommendationId{}
var _ resourceids.ResourceId = &GenerateRecommendationId{}

// GenerateRecommendationId is a struct representing the Resource ID for a Generate Recommendation
type GenerateRecommendationId struct {
Expand All @@ -28,7 +28,7 @@ func NewGenerateRecommendationID(subscriptionId string, operationId string) Gene

// ParseGenerateRecommendationID parses 'input' into a GenerateRecommendationId
func ParseGenerateRecommendationID(input string) (*GenerateRecommendationId, error) {
parser := resourceids.NewParserFromResourceIdType(GenerateRecommendationId{})
parser := resourceids.NewParserFromResourceIdType(&GenerateRecommendationId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -45,7 +45,7 @@ func ParseGenerateRecommendationID(input string) (*GenerateRecommendationId, err
// ParseGenerateRecommendationIDInsensitively parses 'input' case-insensitively into a GenerateRecommendationId
// note: this method should only be used for API response data and not user input
func ParseGenerateRecommendationIDInsensitively(input string) (*GenerateRecommendationId, error) {
parser := resourceids.NewParserFromResourceIdType(GenerateRecommendationId{})
parser := resourceids.NewParserFromResourceIdType(&GenerateRecommendationId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = ScopedRecommendationId{}
var _ resourceids.ResourceId = &ScopedRecommendationId{}

// ScopedRecommendationId is a struct representing the Resource ID for a Scoped Recommendation
type ScopedRecommendationId struct {
Expand All @@ -28,7 +28,7 @@ func NewScopedRecommendationID(resourceUri string, recommendationId string) Scop

// ParseScopedRecommendationID parses 'input' into a ScopedRecommendationId
func ParseScopedRecommendationID(input string) (*ScopedRecommendationId, error) {
parser := resourceids.NewParserFromResourceIdType(ScopedRecommendationId{})
parser := resourceids.NewParserFromResourceIdType(&ScopedRecommendationId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -45,7 +45,7 @@ func ParseScopedRecommendationID(input string) (*ScopedRecommendationId, error)
// ParseScopedRecommendationIDInsensitively parses 'input' case-insensitively into a ScopedRecommendationId
// note: this method should only be used for API response data and not user input
func ParseScopedRecommendationIDInsensitively(input string) (*ScopedRecommendationId, error) {
parser := resourceids.NewParserFromResourceIdType(ScopedRecommendationId{})
parser := resourceids.NewParserFromResourceIdType(&ScopedRecommendationId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
6 changes: 3 additions & 3 deletions resource-manager/advisor/2020-01-01/metadata/id_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = MetadataId{}
var _ resourceids.ResourceId = &MetadataId{}

// MetadataId is a struct representing the Resource ID for a Metadata
type MetadataId struct {
Expand All @@ -26,7 +26,7 @@ func NewMetadataID(metadataName string) MetadataId {

// ParseMetadataID parses 'input' into a MetadataId
func ParseMetadataID(input string) (*MetadataId, error) {
parser := resourceids.NewParserFromResourceIdType(MetadataId{})
parser := resourceids.NewParserFromResourceIdType(&MetadataId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -43,7 +43,7 @@ func ParseMetadataID(input string) (*MetadataId, error) {
// ParseMetadataIDInsensitively parses 'input' case-insensitively into a MetadataId
// note: this method should only be used for API response data and not user input
func ParseMetadataIDInsensitively(input string) (*MetadataId, error) {
parser := resourceids.NewParserFromResourceIdType(MetadataId{})
parser := resourceids.NewParserFromResourceIdType(&MetadataId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = ScopedSuppressionId{}
var _ resourceids.ResourceId = &ScopedSuppressionId{}

// ScopedSuppressionId is a struct representing the Resource ID for a Scoped Suppression
type ScopedSuppressionId struct {
Expand All @@ -30,7 +30,7 @@ func NewScopedSuppressionID(resourceUri string, recommendationId string, suppres

// ParseScopedSuppressionID parses 'input' into a ScopedSuppressionId
func ParseScopedSuppressionID(input string) (*ScopedSuppressionId, error) {
parser := resourceids.NewParserFromResourceIdType(ScopedSuppressionId{})
parser := resourceids.NewParserFromResourceIdType(&ScopedSuppressionId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -47,7 +47,7 @@ func ParseScopedSuppressionID(input string) (*ScopedSuppressionId, error) {
// ParseScopedSuppressionIDInsensitively parses 'input' case-insensitively into a ScopedSuppressionId
// note: this method should only be used for API response data and not user input
func ParseScopedSuppressionIDInsensitively(input string) (*ScopedSuppressionId, error) {
parser := resourceids.NewParserFromResourceIdType(ScopedSuppressionId{})
parser := resourceids.NewParserFromResourceIdType(&ScopedSuppressionId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = AdvisorScoreId{}
var _ resourceids.ResourceId = &AdvisorScoreId{}

// AdvisorScoreId is a struct representing the Resource ID for a Advisor Score
type AdvisorScoreId struct {
Expand All @@ -28,7 +28,7 @@ func NewAdvisorScoreID(subscriptionId string, advisorScoreName string) AdvisorSc

// ParseAdvisorScoreID parses 'input' into a AdvisorScoreId
func ParseAdvisorScoreID(input string) (*AdvisorScoreId, error) {
parser := resourceids.NewParserFromResourceIdType(AdvisorScoreId{})
parser := resourceids.NewParserFromResourceIdType(&AdvisorScoreId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -45,7 +45,7 @@ func ParseAdvisorScoreID(input string) (*AdvisorScoreId, error) {
// ParseAdvisorScoreIDInsensitively parses 'input' case-insensitively into a AdvisorScoreId
// note: this method should only be used for API response data and not user input
func ParseAdvisorScoreIDInsensitively(input string) (*AdvisorScoreId, error) {
parser := resourceids.NewParserFromResourceIdType(AdvisorScoreId{})
parser := resourceids.NewParserFromResourceIdType(&AdvisorScoreId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = GenerateRecommendationId{}
var _ resourceids.ResourceId = &GenerateRecommendationId{}

// GenerateRecommendationId is a struct representing the Resource ID for a Generate Recommendation
type GenerateRecommendationId struct {
Expand All @@ -28,7 +28,7 @@ func NewGenerateRecommendationID(subscriptionId string, operationId string) Gene

// ParseGenerateRecommendationID parses 'input' into a GenerateRecommendationId
func ParseGenerateRecommendationID(input string) (*GenerateRecommendationId, error) {
parser := resourceids.NewParserFromResourceIdType(GenerateRecommendationId{})
parser := resourceids.NewParserFromResourceIdType(&GenerateRecommendationId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -45,7 +45,7 @@ func ParseGenerateRecommendationID(input string) (*GenerateRecommendationId, err
// ParseGenerateRecommendationIDInsensitively parses 'input' case-insensitively into a GenerateRecommendationId
// note: this method should only be used for API response data and not user input
func ParseGenerateRecommendationIDInsensitively(input string) (*GenerateRecommendationId, error) {
parser := resourceids.NewParserFromResourceIdType(GenerateRecommendationId{})
parser := resourceids.NewParserFromResourceIdType(&GenerateRecommendationId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = ScopedRecommendationId{}
var _ resourceids.ResourceId = &ScopedRecommendationId{}

// ScopedRecommendationId is a struct representing the Resource ID for a Scoped Recommendation
type ScopedRecommendationId struct {
Expand All @@ -28,7 +28,7 @@ func NewScopedRecommendationID(resourceUri string, recommendationId string) Scop

// ParseScopedRecommendationID parses 'input' into a ScopedRecommendationId
func ParseScopedRecommendationID(input string) (*ScopedRecommendationId, error) {
parser := resourceids.NewParserFromResourceIdType(ScopedRecommendationId{})
parser := resourceids.NewParserFromResourceIdType(&ScopedRecommendationId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -45,7 +45,7 @@ func ParseScopedRecommendationID(input string) (*ScopedRecommendationId, error)
// ParseScopedRecommendationIDInsensitively parses 'input' case-insensitively into a ScopedRecommendationId
// note: this method should only be used for API response data and not user input
func ParseScopedRecommendationIDInsensitively(input string) (*ScopedRecommendationId, error) {
parser := resourceids.NewParserFromResourceIdType(ScopedRecommendationId{})
parser := resourceids.NewParserFromResourceIdType(&ScopedRecommendationId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
6 changes: 3 additions & 3 deletions resource-manager/advisor/2022-10-01/metadata/id_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = MetadataId{}
var _ resourceids.ResourceId = &MetadataId{}

// MetadataId is a struct representing the Resource ID for a Metadata
type MetadataId struct {
Expand All @@ -26,7 +26,7 @@ func NewMetadataID(metadataName string) MetadataId {

// ParseMetadataID parses 'input' into a MetadataId
func ParseMetadataID(input string) (*MetadataId, error) {
parser := resourceids.NewParserFromResourceIdType(MetadataId{})
parser := resourceids.NewParserFromResourceIdType(&MetadataId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -43,7 +43,7 @@ func ParseMetadataID(input string) (*MetadataId, error) {
// ParseMetadataIDInsensitively parses 'input' case-insensitively into a MetadataId
// note: this method should only be used for API response data and not user input
func ParseMetadataIDInsensitively(input string) (*MetadataId, error) {
parser := resourceids.NewParserFromResourceIdType(MetadataId{})
parser := resourceids.NewParserFromResourceIdType(&MetadataId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

var _ resourceids.ResourceId = ScopedSuppressionId{}
var _ resourceids.ResourceId = &ScopedSuppressionId{}

// ScopedSuppressionId is a struct representing the Resource ID for a Scoped Suppression
type ScopedSuppressionId struct {
Expand All @@ -30,7 +30,7 @@ func NewScopedSuppressionID(resourceUri string, recommendationId string, suppres

// ParseScopedSuppressionID parses 'input' into a ScopedSuppressionId
func ParseScopedSuppressionID(input string) (*ScopedSuppressionId, error) {
parser := resourceids.NewParserFromResourceIdType(ScopedSuppressionId{})
parser := resourceids.NewParserFromResourceIdType(&ScopedSuppressionId{})
parsed, err := parser.Parse(input, false)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand All @@ -47,7 +47,7 @@ func ParseScopedSuppressionID(input string) (*ScopedSuppressionId, error) {
// ParseScopedSuppressionIDInsensitively parses 'input' case-insensitively into a ScopedSuppressionId
// note: this method should only be used for API response data and not user input
func ParseScopedSuppressionIDInsensitively(input string) (*ScopedSuppressionId, error) {
parser := resourceids.NewParserFromResourceIdType(ScopedSuppressionId{})
parser := resourceids.NewParserFromResourceIdType(&ScopedSuppressionId{})
parsed, err := parser.Parse(input, true)
if err != nil {
return nil, fmt.Errorf("parsing %q: %+v", input, err)
Expand Down
Loading