From 6c63bac103cb982a831676b15833d79fbdb52f69 Mon Sep 17 00:00:00 2001 From: Tao <104055472+teowa@users.noreply.github.com> Date: Tue, 23 May 2023 10:43:10 +0800 Subject: [PATCH] go mod vendor --- .../2023-03-01/replicas/id_configurationstore.go | 12 ++++++------ .../2023-03-01/replicas/id_replica.go | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_configurationstore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_configurationstore.go index d235cde5bb804..64c7ad6a24404 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_configurationstore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_configurationstore.go @@ -40,15 +40,15 @@ func ParseConfigurationStoreID(input string) (*ConfigurationStoreId, error) { id := ConfigurationStoreId{} if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { - return nil, fmt.Errorf("the segment 'subscriptionId' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) } if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { - return nil, fmt.Errorf("the segment 'resourceGroupName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) } if id.ConfigurationStoreName, ok = parsed.Parsed["configurationStoreName"]; !ok { - return nil, fmt.Errorf("the segment 'configurationStoreName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "configurationStoreName", *parsed) } return &id, nil @@ -67,15 +67,15 @@ func ParseConfigurationStoreIDInsensitively(input string) (*ConfigurationStoreId id := ConfigurationStoreId{} if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { - return nil, fmt.Errorf("the segment 'subscriptionId' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) } if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { - return nil, fmt.Errorf("the segment 'resourceGroupName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) } if id.ConfigurationStoreName, ok = parsed.Parsed["configurationStoreName"]; !ok { - return nil, fmt.Errorf("the segment 'configurationStoreName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "configurationStoreName", *parsed) } return &id, nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_replica.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_replica.go index 18599868d3051..464e8bae7e91f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_replica.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_replica.go @@ -42,19 +42,19 @@ func ParseReplicaID(input string) (*ReplicaId, error) { id := ReplicaId{} if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { - return nil, fmt.Errorf("the segment 'subscriptionId' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) } if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { - return nil, fmt.Errorf("the segment 'resourceGroupName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) } if id.ConfigurationStoreName, ok = parsed.Parsed["configurationStoreName"]; !ok { - return nil, fmt.Errorf("the segment 'configurationStoreName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "configurationStoreName", *parsed) } if id.ReplicaName, ok = parsed.Parsed["replicaName"]; !ok { - return nil, fmt.Errorf("the segment 'replicaName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "replicaName", *parsed) } return &id, nil @@ -73,19 +73,19 @@ func ParseReplicaIDInsensitively(input string) (*ReplicaId, error) { id := ReplicaId{} if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { - return nil, fmt.Errorf("the segment 'subscriptionId' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) } if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { - return nil, fmt.Errorf("the segment 'resourceGroupName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) } if id.ConfigurationStoreName, ok = parsed.Parsed["configurationStoreName"]; !ok { - return nil, fmt.Errorf("the segment 'configurationStoreName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "configurationStoreName", *parsed) } if id.ReplicaName, ok = parsed.Parsed["replicaName"]; !ok { - return nil, fmt.Errorf("the segment 'replicaName' was not found in the resource id %q", input) + return nil, resourceids.NewSegmentNotSpecifiedError(id, "replicaName", *parsed) } return &id, nil