From e3c21b928d70dd13b26aa44431eded3d03d0b5f8 Mon Sep 17 00:00:00 2001 From: ReleaseHelper Date: Thu, 8 Aug 2024 01:09:15 +0000 Subject: [PATCH] [Release] sdk/resourcemanager/elasticsan/armelasticsan/1.1.0 generation from spec commit: 21c2852d62ccc3abe9cc3800c989c6826f8363dc --- .../elasticsan/armelasticsan/CHANGELOG.md | 7 + .../elasticsan/armelasticsan/autorest.md | 8 +- .../armelasticsan/client_factory.go | 56 ++- .../elasticsan/armelasticsan/constants.go | 2 +- .../armelasticsan/elasticsans_client.go | 30 +- .../elasticsans_client_example_test.go | 24 +- .../armelasticsan/fake/time_rfc3339.go | 42 +- .../elasticsan/armelasticsan/models.go | 6 + .../elasticsan/armelasticsan/models_serde.go | 10 +- .../armelasticsan/operations_client.go | 4 +- .../operations_client_example_test.go | 4 +- .../privateendpointconnections_client.go | 20 +- ...endpointconnections_client_example_test.go | 16 +- .../privatelinkresources_client.go | 4 +- ...rivatelinkresources_client_example_test.go | 4 +- .../{response_types.go => responses.go} | 0 .../elasticsan/armelasticsan/skus_client.go | 4 +- .../armelasticsan/skus_client_example_test.go | 4 +- .../elasticsan/armelasticsan/time_rfc3339.go | 42 +- .../armelasticsan/volumegroups_client.go | 26 +- .../volumegroups_client_example_test.go | 389 ++++++++---------- .../armelasticsan/volumes_client.go | 28 +- .../volumes_client_example_test.go | 20 +- .../armelasticsan/volumesnapshots_client.go | 20 +- .../volumesnapshots_client_example_test.go | 16 +- 25 files changed, 414 insertions(+), 372 deletions(-) rename sdk/resourcemanager/elasticsan/armelasticsan/{response_types.go => responses.go} (100%) diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/CHANGELOG.md b/sdk/resourcemanager/elasticsan/armelasticsan/CHANGELOG.md index 299a0e350d75..8f10fcd8bf62 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/CHANGELOG.md +++ b/sdk/resourcemanager/elasticsan/armelasticsan/CHANGELOG.md @@ -1,5 +1,12 @@ # Release History +## 1.1.0 (2024-08-22) +### Features Added + +- New field `EnforceDataIntegrityCheckForIscsi` in struct `VolumeGroupProperties` +- New field `EnforceDataIntegrityCheckForIscsi` in struct `VolumeGroupUpdateProperties` + + ## 1.0.0 (2024-01-26) ### Other Changes diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/autorest.md b/sdk/resourcemanager/elasticsan/armelasticsan/autorest.md index e30d3ab1b4bb..d423e9da3b52 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/autorest.md +++ b/sdk/resourcemanager/elasticsan/armelasticsan/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.0.0 -tag: package-2023-01 +module-version: 1.1.0 +tag: package-2024-05 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/client_factory.go b/sdk/resourcemanager/elasticsan/armelasticsan/client_factory.go index 5fbc66c40f70..87773177db62 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/client_factory.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/client_factory.go @@ -17,8 +17,7 @@ import ( // Don't use this type directly, use NewClientFactory instead. type ClientFactory struct { subscriptionID string - credential azcore.TokenCredential - options *arm.ClientOptions + internal *arm.Client } // NewClientFactory creates a new instance of ClientFactory with the specified values. @@ -27,60 +26,75 @@ type ClientFactory struct { // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { - _, err := arm.NewClient(moduleName, moduleVersion, credential, options) + internal, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } return &ClientFactory{ - subscriptionID: subscriptionID, credential: credential, - options: options.Clone(), + subscriptionID: subscriptionID, + internal: internal, }, nil } // NewElasticSansClient creates a new instance of ElasticSansClient. func (c *ClientFactory) NewElasticSansClient() *ElasticSansClient { - subClient, _ := NewElasticSansClient(c.subscriptionID, c.credential, c.options) - return subClient + return &ElasticSansClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewOperationsClient creates a new instance of OperationsClient. func (c *ClientFactory) NewOperationsClient() *OperationsClient { - subClient, _ := NewOperationsClient(c.credential, c.options) - return subClient + return &OperationsClient{ + internal: c.internal, + } } // NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient. func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient { - subClient, _ := NewPrivateEndpointConnectionsClient(c.subscriptionID, c.credential, c.options) - return subClient + return &PrivateEndpointConnectionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient. func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient { - subClient, _ := NewPrivateLinkResourcesClient(c.subscriptionID, c.credential, c.options) - return subClient + return &PrivateLinkResourcesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewSKUsClient creates a new instance of SKUsClient. func (c *ClientFactory) NewSKUsClient() *SKUsClient { - subClient, _ := NewSKUsClient(c.subscriptionID, c.credential, c.options) - return subClient + return &SKUsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewVolumeGroupsClient creates a new instance of VolumeGroupsClient. func (c *ClientFactory) NewVolumeGroupsClient() *VolumeGroupsClient { - subClient, _ := NewVolumeGroupsClient(c.subscriptionID, c.credential, c.options) - return subClient + return &VolumeGroupsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewVolumeSnapshotsClient creates a new instance of VolumeSnapshotsClient. func (c *ClientFactory) NewVolumeSnapshotsClient() *VolumeSnapshotsClient { - subClient, _ := NewVolumeSnapshotsClient(c.subscriptionID, c.credential, c.options) - return subClient + return &VolumeSnapshotsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewVolumesClient creates a new instance of VolumesClient. func (c *ClientFactory) NewVolumesClient() *VolumesClient { - subClient, _ := NewVolumesClient(c.subscriptionID, c.credential, c.options) - return subClient + return &VolumesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/constants.go b/sdk/resourcemanager/elasticsan/armelasticsan/constants.go index 68832198ec99..33ddb52fe135 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/constants.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/constants.go @@ -10,7 +10,7 @@ package armelasticsan const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan" - moduleVersion = "v1.0.0" + moduleVersion = "v1.1.0" ) // Action - The action of virtual network rule. diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/elasticsans_client.go b/sdk/resourcemanager/elasticsan/armelasticsan/elasticsans_client.go index 728da4115652..179bbcce9bf7 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/elasticsans_client.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/elasticsans_client.go @@ -46,7 +46,7 @@ func NewElasticSansClient(subscriptionID string, credential azcore.TokenCredenti // BeginCreate - Create ElasticSan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - parameters - Elastic San object. @@ -72,7 +72,7 @@ func (client *ElasticSansClient) BeginCreate(ctx context.Context, resourceGroupN // Create - Create ElasticSan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *ElasticSansClient) create(ctx context.Context, resourceGroupName string, elasticSanName string, parameters ElasticSan, options *ElasticSansClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "ElasticSansClient.BeginCreate" @@ -114,7 +114,7 @@ func (client *ElasticSansClient) createCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -126,7 +126,7 @@ func (client *ElasticSansClient) createCreateRequest(ctx context.Context, resour // BeginDelete - Delete a Elastic San. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - options - ElasticSansClientBeginDeleteOptions contains the optional parameters for the ElasticSansClient.BeginDelete method. @@ -151,7 +151,7 @@ func (client *ElasticSansClient) BeginDelete(ctx context.Context, resourceGroupN // Delete - Delete a Elastic San. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *ElasticSansClient) deleteOperation(ctx context.Context, resourceGroupName string, elasticSanName string, options *ElasticSansClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ElasticSansClient.BeginDelete" @@ -193,7 +193,7 @@ func (client *ElasticSansClient) deleteCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -202,7 +202,7 @@ func (client *ElasticSansClient) deleteCreateRequest(ctx context.Context, resour // Get - Get a ElasticSan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - options - ElasticSansClientGetOptions contains the optional parameters for the ElasticSansClient.Get method. @@ -248,7 +248,7 @@ func (client *ElasticSansClient) getCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -265,7 +265,7 @@ func (client *ElasticSansClient) getHandleResponse(resp *http.Response) (Elastic // NewListByResourceGroupPager - Gets a list of ElasticSan in a resource group. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - ElasticSansClientListByResourceGroupOptions contains the optional parameters for the ElasticSansClient.NewListByResourceGroupPager // method. @@ -308,7 +308,7 @@ func (client *ElasticSansClient) listByResourceGroupCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -325,7 +325,7 @@ func (client *ElasticSansClient) listByResourceGroupHandleResponse(resp *http.Re // NewListBySubscriptionPager - Gets a list of ElasticSans in a subscription // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - options - ElasticSansClientListBySubscriptionOptions contains the optional parameters for the ElasticSansClient.NewListBySubscriptionPager // method. func (client *ElasticSansClient) NewListBySubscriptionPager(options *ElasticSansClientListBySubscriptionOptions) *runtime.Pager[ElasticSansClientListBySubscriptionResponse] { @@ -363,7 +363,7 @@ func (client *ElasticSansClient) listBySubscriptionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -381,7 +381,7 @@ func (client *ElasticSansClient) listBySubscriptionHandleResponse(resp *http.Res // BeginUpdate - Update a Elastic San. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - parameters - Elastic San object. @@ -407,7 +407,7 @@ func (client *ElasticSansClient) BeginUpdate(ctx context.Context, resourceGroupN // Update - Update a Elastic San. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *ElasticSansClient) update(ctx context.Context, resourceGroupName string, elasticSanName string, parameters Update, options *ElasticSansClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "ElasticSansClient.BeginUpdate" @@ -449,7 +449,7 @@ func (client *ElasticSansClient) updateCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/elasticsans_client_example_test.go b/sdk/resourcemanager/elasticsan/armelasticsan/elasticsans_client_example_test.go index d9b93d65faab..9f2d1f1cfa6f 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/elasticsans_client_example_test.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/elasticsans_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_ListBySubscription_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_ListBySubscription_MaximumSet_Gen.json func ExampleElasticSansClient_NewListBySubscriptionPager_elasticSansListBySubscriptionMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -107,7 +107,7 @@ func ExampleElasticSansClient_NewListBySubscriptionPager_elasticSansListBySubscr } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_ListBySubscription_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_ListBySubscription_MinimumSet_Gen.json func ExampleElasticSansClient_NewListBySubscriptionPager_elasticSansListBySubscriptionMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -196,7 +196,7 @@ func ExampleElasticSansClient_NewListBySubscriptionPager_elasticSansListBySubscr } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_ListByResourceGroup_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_ListByResourceGroup_MaximumSet_Gen.json func ExampleElasticSansClient_NewListByResourceGroupPager_elasticSansListByResourceGroupMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -285,7 +285,7 @@ func ExampleElasticSansClient_NewListByResourceGroupPager_elasticSansListByResou } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_ListByResourceGroup_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_ListByResourceGroup_MinimumSet_Gen.json func ExampleElasticSansClient_NewListByResourceGroupPager_elasticSansListByResourceGroupMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -374,7 +374,7 @@ func ExampleElasticSansClient_NewListByResourceGroupPager_elasticSansListByResou } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_Create_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Create_MaximumSet_Gen.json func ExampleElasticSansClient_BeginCreate_elasticSansCreateMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -448,7 +448,7 @@ func ExampleElasticSansClient_BeginCreate_elasticSansCreateMaximumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_Create_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Create_MinimumSet_Gen.json func ExampleElasticSansClient_BeginCreate_elasticSansCreateMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -515,7 +515,7 @@ func ExampleElasticSansClient_BeginCreate_elasticSansCreateMinimumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_Update_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Update_MaximumSet_Gen.json func ExampleElasticSansClient_BeginUpdate_elasticSansUpdateMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -609,7 +609,7 @@ func ExampleElasticSansClient_BeginUpdate_elasticSansUpdateMaximumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_Update_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Update_MinimumSet_Gen.json func ExampleElasticSansClient_BeginUpdate_elasticSansUpdateMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -694,7 +694,7 @@ func ExampleElasticSansClient_BeginUpdate_elasticSansUpdateMinimumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_Delete_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Delete_MaximumSet_Gen.json func ExampleElasticSansClient_BeginDelete_elasticSansDeleteMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -715,7 +715,7 @@ func ExampleElasticSansClient_BeginDelete_elasticSansDeleteMaximumSetGen() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_Delete_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Delete_MinimumSet_Gen.json func ExampleElasticSansClient_BeginDelete_elasticSansDeleteMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -736,7 +736,7 @@ func ExampleElasticSansClient_BeginDelete_elasticSansDeleteMinimumSetGen() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_Get_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Get_MaximumSet_Gen.json func ExampleElasticSansClient_Get_elasticSansGetMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -817,7 +817,7 @@ func ExampleElasticSansClient_Get_elasticSansGetMaximumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/ElasticSans_Get_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Get_MinimumSet_Gen.json func ExampleElasticSansClient_Get_elasticSansGetMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/fake/time_rfc3339.go b/sdk/resourcemanager/elasticsan/armelasticsan/fake/time_rfc3339.go index b0535a7b63e6..81f308b0d343 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/fake/time_rfc3339.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/fake/time_rfc3339.go @@ -19,12 +19,16 @@ import ( ) // Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. -var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) const ( - utcDateTimeJSON = `"2006-01-02T15:04:05.999999999"` - utcDateTime = "2006-01-02T15:04:05.999999999" - dateTimeJSON = `"` + time.RFC3339Nano + `"` + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` ) type dateTimeRFC3339 time.Time @@ -40,17 +44,33 @@ func (t dateTimeRFC3339) MarshalText() ([]byte, error) { } func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { - layout := utcDateTimeJSON - if tzOffsetRegex.Match(data) { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT } return t.Parse(layout, string(data)) } func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { - layout := utcDateTime - if tzOffsetRegex.Match(data) { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT } return t.Parse(layout, string(data)) } @@ -61,6 +81,10 @@ func (t *dateTimeRFC3339) Parse(layout, value string) error { return err } +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return @@ -74,7 +98,7 @@ func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { } func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || strings.EqualFold(string(data), "null") { + if data == nil || string(data) == "null" { return nil } var aux dateTimeRFC3339 diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/models.go b/sdk/resourcemanager/elasticsan/armelasticsan/models.go index def2908b74cc..414a84bcfd21 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/models.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/models.go @@ -546,6 +546,9 @@ type VolumeGroupProperties struct { // Encryption Properties describing Key Vault and Identity information EncryptionProperties *EncryptionProperties + // A boolean indicating whether or not Data Integrity Check is enabled + EnforceDataIntegrityCheckForIscsi *bool + // A collection of rules governing the accessibility from specific network locations. NetworkACLs *NetworkRuleSet @@ -576,6 +579,9 @@ type VolumeGroupUpdateProperties struct { // Encryption Properties describing Key Vault and Identity information EncryptionProperties *EncryptionProperties + // A boolean indicating whether or not Data Integrity Check is enabled + EnforceDataIntegrityCheckForIscsi *bool + // A collection of rules governing the accessibility from specific network locations. NetworkACLs *NetworkRuleSet diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/models_serde.go b/sdk/resourcemanager/elasticsan/armelasticsan/models_serde.go index bf663309a56e..50452c42f030 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/models_serde.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/models_serde.go @@ -1449,6 +1449,7 @@ func (v VolumeGroupProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "encryption", v.Encryption) populate(objectMap, "encryptionProperties", v.EncryptionProperties) + populate(objectMap, "enforceDataIntegrityCheckForIscsi", v.EnforceDataIntegrityCheckForIscsi) populate(objectMap, "networkAcls", v.NetworkACLs) populate(objectMap, "privateEndpointConnections", v.PrivateEndpointConnections) populate(objectMap, "protocolType", v.ProtocolType) @@ -1471,6 +1472,9 @@ func (v *VolumeGroupProperties) UnmarshalJSON(data []byte) error { case "encryptionProperties": err = unpopulate(val, "EncryptionProperties", &v.EncryptionProperties) delete(rawMsg, key) + case "enforceDataIntegrityCheckForIscsi": + err = unpopulate(val, "EnforceDataIntegrityCheckForIscsi", &v.EnforceDataIntegrityCheckForIscsi) + delete(rawMsg, key) case "networkAcls": err = unpopulate(val, "NetworkACLs", &v.NetworkACLs) delete(rawMsg, key) @@ -1527,6 +1531,7 @@ func (v VolumeGroupUpdateProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "encryption", v.Encryption) populate(objectMap, "encryptionProperties", v.EncryptionProperties) + populate(objectMap, "enforceDataIntegrityCheckForIscsi", v.EnforceDataIntegrityCheckForIscsi) populate(objectMap, "networkAcls", v.NetworkACLs) populate(objectMap, "protocolType", v.ProtocolType) return json.Marshal(objectMap) @@ -1547,6 +1552,9 @@ func (v *VolumeGroupUpdateProperties) UnmarshalJSON(data []byte) error { case "encryptionProperties": err = unpopulate(val, "EncryptionProperties", &v.EncryptionProperties) delete(rawMsg, key) + case "enforceDataIntegrityCheckForIscsi": + err = unpopulate(val, "EnforceDataIntegrityCheckForIscsi", &v.EnforceDataIntegrityCheckForIscsi) + delete(rawMsg, key) case "networkAcls": err = unpopulate(val, "NetworkACLs", &v.NetworkACLs) delete(rawMsg, key) @@ -1708,7 +1716,7 @@ func populate(m map[string]any, k string, v any) { } func unpopulate(data json.RawMessage, fn string, v any) error { - if data == nil { + if data == nil || string(data) == "null" { return nil } if err := json.Unmarshal(data, v); err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/operations_client.go b/sdk/resourcemanager/elasticsan/armelasticsan/operations_client.go index 4a89de8e742d..105deae82e6d 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/operations_client.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/operations_client.go @@ -39,7 +39,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Gets a list of ElasticSan operations. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -73,7 +73,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/operations_client_example_test.go b/sdk/resourcemanager/elasticsan/armelasticsan/operations_client_example_test.go index ec278590150f..718a137d300a 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/operations_client_example_test.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/operations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Operations_List_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Operations_List_MaximumSet_Gen.json func ExampleOperationsClient_NewListPager_operationsListMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -57,7 +57,7 @@ func ExampleOperationsClient_NewListPager_operationsListMaximumSetGen() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Operations_List_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Operations_List_MinimumSet_Gen.json func ExampleOperationsClient_NewListPager_operationsListMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/privateendpointconnections_client.go b/sdk/resourcemanager/elasticsan/armelasticsan/privateendpointconnections_client.go index 26866a02e783..81c80f4b34ca 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/privateendpointconnections_client.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/privateendpointconnections_client.go @@ -46,7 +46,7 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // BeginCreate - Update the state of specified private endpoint connection associated with the Elastic San // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - privateEndpointConnectionName - The name of the Private Endpoint connection. @@ -74,7 +74,7 @@ func (client *PrivateEndpointConnectionsClient) BeginCreate(ctx context.Context, // Create - Update the state of specified private endpoint connection associated with the Elastic San // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *PrivateEndpointConnectionsClient) create(ctx context.Context, resourceGroupName string, elasticSanName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionsClient.BeginCreate" @@ -120,7 +120,7 @@ func (client *PrivateEndpointConnectionsClient) createCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -132,7 +132,7 @@ func (client *PrivateEndpointConnectionsClient) createCreateRequest(ctx context. // BeginDelete - Deletes the specified private endpoint connection associated with the Elastic San // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - privateEndpointConnectionName - The name of the Private Endpoint connection. @@ -159,7 +159,7 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Deletes the specified private endpoint connection associated with the Elastic San // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, elasticSanName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionsClient.BeginDelete" @@ -205,7 +205,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -214,7 +214,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Gets the specified private endpoint connection associated with the Elastic San // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - privateEndpointConnectionName - The name of the Private Endpoint connection. @@ -266,7 +266,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -283,7 +283,7 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // NewListPager - List all Private Endpoint Connections associated with the Elastic San. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager @@ -332,7 +332,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/elasticsan/armelasticsan/privateendpointconnections_client_example_test.go index a1a2ec005653..3409d6125fe6 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/privateendpointconnections_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Create_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_Create_MaximumSet_Gen.json func ExamplePrivateEndpointConnectionsClient_BeginCreate_privateEndpointConnectionsCreateMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -79,7 +79,7 @@ func ExamplePrivateEndpointConnectionsClient_BeginCreate_privateEndpointConnecti // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Create_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_Create_MinimumSet_Gen.json func ExamplePrivateEndpointConnectionsClient_BeginCreate_privateEndpointConnectionsCreateMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -133,7 +133,7 @@ func ExamplePrivateEndpointConnectionsClient_BeginCreate_privateEndpointConnecti // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Get_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_Get_MaximumSet_Gen.json func ExamplePrivateEndpointConnectionsClient_Get_privateEndpointConnectionsGetMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -179,7 +179,7 @@ func ExamplePrivateEndpointConnectionsClient_Get_privateEndpointConnectionsGetMa // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Get_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_Get_MinimumSet_Gen.json func ExamplePrivateEndpointConnectionsClient_Get_privateEndpointConnectionsGetMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -225,7 +225,7 @@ func ExamplePrivateEndpointConnectionsClient_Get_privateEndpointConnectionsGetMi // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Delete_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_Delete_MaximumSet_Gen.json func ExamplePrivateEndpointConnectionsClient_BeginDelete_privateEndpointConnectionsDeleteMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -246,7 +246,7 @@ func ExamplePrivateEndpointConnectionsClient_BeginDelete_privateEndpointConnecti } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Delete_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_Delete_MinimumSet_Gen.json func ExamplePrivateEndpointConnectionsClient_BeginDelete_privateEndpointConnectionsDeleteMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -267,7 +267,7 @@ func ExamplePrivateEndpointConnectionsClient_BeginDelete_privateEndpointConnecti } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_List_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_List_MaximumSet_Gen.json func ExamplePrivateEndpointConnectionsClient_NewListPager_privateEndpointConnectionsListMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -321,7 +321,7 @@ func ExamplePrivateEndpointConnectionsClient_NewListPager_privateEndpointConnect } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_List_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_List_MinimumSet_Gen.json func ExamplePrivateEndpointConnectionsClient_NewListPager_privateEndpointConnectionsListMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/privatelinkresources_client.go b/sdk/resourcemanager/elasticsan/armelasticsan/privatelinkresources_client.go index b55478e34ed6..99347ff2b7bf 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/privatelinkresources_client.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/privatelinkresources_client.go @@ -46,7 +46,7 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // ListByElasticSan - Gets the private link resources that need to be created for a elastic San. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - options - PrivateLinkResourcesClientListByElasticSanOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByElasticSan @@ -93,7 +93,7 @@ func (client *PrivateLinkResourcesClient) listByElasticSanCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/privatelinkresources_client_example_test.go b/sdk/resourcemanager/elasticsan/armelasticsan/privatelinkresources_client_example_test.go index edfb64ccc991..edffcde6b78d 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/privatelinkresources_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateLinkResources_ListByElasticSan_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateLinkResources_ListByElasticSan_MaximumSet_Gen.json func ExamplePrivateLinkResourcesClient_ListByElasticSan_privateLinkResourcesListByElasticSanMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -60,7 +60,7 @@ func ExamplePrivateLinkResourcesClient_ListByElasticSan_privateLinkResourcesList // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateLinkResources_ListByElasticSan_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateLinkResources_ListByElasticSan_MinimumSet_Gen.json func ExamplePrivateLinkResourcesClient_ListByElasticSan_privateLinkResourcesListByElasticSanMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/response_types.go b/sdk/resourcemanager/elasticsan/armelasticsan/responses.go similarity index 100% rename from sdk/resourcemanager/elasticsan/armelasticsan/response_types.go rename to sdk/resourcemanager/elasticsan/armelasticsan/responses.go diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/skus_client.go b/sdk/resourcemanager/elasticsan/armelasticsan/skus_client.go index 7aa34aa7aeb7..b92fd26b9875 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/skus_client.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/skus_client.go @@ -45,7 +45,7 @@ func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, opt // NewListPager - List all the available Skus in the region and information related to them // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - options - SKUsClientListOptions contains the optional parameters for the SKUsClient.NewListPager method. func (client *SKUsClient) NewListPager(options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SKUsClientListResponse]{ @@ -83,10 +83,10 @@ func (client *SKUsClient) listCreateRequest(ctx context.Context, options *SKUsCl return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/skus_client_example_test.go b/sdk/resourcemanager/elasticsan/armelasticsan/skus_client_example_test.go index b9719dfc8aca..3697b5f5a885 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/skus_client_example_test.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/skus_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Skus_List_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Skus_List_MaximumSet_Gen.json func ExampleSKUsClient_NewListPager_skusListMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -64,7 +64,7 @@ func ExampleSKUsClient_NewListPager_skusListMaximumSetGen() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Skus_List_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Skus_List_MinimumSet_Gen.json func ExampleSKUsClient_NewListPager_skusListMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/time_rfc3339.go b/sdk/resourcemanager/elasticsan/armelasticsan/time_rfc3339.go index 7670a7ac63ef..0286a717834c 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/time_rfc3339.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/time_rfc3339.go @@ -19,12 +19,16 @@ import ( ) // Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. -var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) const ( - utcDateTimeJSON = `"2006-01-02T15:04:05.999999999"` - utcDateTime = "2006-01-02T15:04:05.999999999" - dateTimeJSON = `"` + time.RFC3339Nano + `"` + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` ) type dateTimeRFC3339 time.Time @@ -40,17 +44,33 @@ func (t dateTimeRFC3339) MarshalText() ([]byte, error) { } func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { - layout := utcDateTimeJSON - if tzOffsetRegex.Match(data) { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT } return t.Parse(layout, string(data)) } func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { - layout := utcDateTime - if tzOffsetRegex.Match(data) { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT } return t.Parse(layout, string(data)) } @@ -61,6 +81,10 @@ func (t *dateTimeRFC3339) Parse(layout, value string) error { return err } +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return @@ -74,7 +98,7 @@ func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { } func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || strings.EqualFold(string(data), "null") { + if data == nil || string(data) == "null" { return nil } var aux dateTimeRFC3339 diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/volumegroups_client.go b/sdk/resourcemanager/elasticsan/armelasticsan/volumegroups_client.go index c7488c2038dd..c96d14477dad 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/volumegroups_client.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/volumegroups_client.go @@ -46,7 +46,7 @@ func NewVolumeGroupsClient(subscriptionID string, credential azcore.TokenCredent // BeginCreate - Create a Volume Group. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -74,7 +74,7 @@ func (client *VolumeGroupsClient) BeginCreate(ctx context.Context, resourceGroup // Create - Create a Volume Group. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *VolumeGroupsClient) create(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, parameters VolumeGroup, options *VolumeGroupsClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "VolumeGroupsClient.BeginCreate" @@ -120,7 +120,7 @@ func (client *VolumeGroupsClient) createCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -132,7 +132,7 @@ func (client *VolumeGroupsClient) createCreateRequest(ctx context.Context, resou // BeginDelete - Delete an VolumeGroup. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -159,7 +159,7 @@ func (client *VolumeGroupsClient) BeginDelete(ctx context.Context, resourceGroup // Delete - Delete an VolumeGroup. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *VolumeGroupsClient) deleteOperation(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, options *VolumeGroupsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "VolumeGroupsClient.BeginDelete" @@ -205,7 +205,7 @@ func (client *VolumeGroupsClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -214,7 +214,7 @@ func (client *VolumeGroupsClient) deleteCreateRequest(ctx context.Context, resou // Get - Get an VolumeGroups. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -265,7 +265,7 @@ func (client *VolumeGroupsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -282,7 +282,7 @@ func (client *VolumeGroupsClient) getHandleResponse(resp *http.Response) (Volume // NewListByElasticSanPager - List VolumeGroups. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - options - VolumeGroupsClientListByElasticSanOptions contains the optional parameters for the VolumeGroupsClient.NewListByElasticSanPager @@ -330,7 +330,7 @@ func (client *VolumeGroupsClient) listByElasticSanCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -348,7 +348,7 @@ func (client *VolumeGroupsClient) listByElasticSanHandleResponse(resp *http.Resp // BeginUpdate - Update an VolumeGroup. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -376,7 +376,7 @@ func (client *VolumeGroupsClient) BeginUpdate(ctx context.Context, resourceGroup // Update - Update an VolumeGroup. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *VolumeGroupsClient) update(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, parameters VolumeGroupUpdate, options *VolumeGroupsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "VolumeGroupsClient.BeginUpdate" @@ -422,7 +422,7 @@ func (client *VolumeGroupsClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/volumegroups_client_example_test.go b/sdk/resourcemanager/elasticsan/armelasticsan/volumegroups_client_example_test.go index f735975f8c62..7f2fcd70a457 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/volumegroups_client_example_test.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/volumegroups_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_ListByElasticSan_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_ListByElasticSan_MaximumSet_Gen.json func ExampleVolumeGroupsClient_NewListByElasticSanPager_volumeGroupsListByElasticSanMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -43,25 +43,25 @@ func ExampleVolumeGroupsClient_NewListByElasticSanPager_volumeGroupsListByElasti // page.VolumeGroupList = armelasticsan.VolumeGroupList{ // Value: []*armelasticsan.VolumeGroup{ // { - // Name: to.Ptr("cr"), - // Type: to.Ptr("Microsoft.ElasticSan/elasticSans/volumeGroups"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}"), + // Name: to.Ptr("qymuqyvdlpshrna"), + // Type: to.Ptr("wwkffcgidqktzuzo"), + // ID: to.Ptr("cgwmakehxvhv"), // SystemData: &armelasticsan.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // CreatedBy: to.Ptr("kakcyehdrphqkilgkhpbdtvpupak"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // CreatedBy: to.Ptr("iskcypymrroqhmdwccwqzdclpyutpb"), // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // LastModifiedBy: to.Ptr("bcclmbseed"), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // LastModifiedBy: to.Ptr("ujpptnmvqtzudoiaihbgrvnagxh"), // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), // }, // Identity: &armelasticsan.Identity{ // Type: to.Ptr(armelasticsan.IdentityTypeNone), - // PrincipalID: to.Ptr("ihsiwrwdofymkhquaxcrtfmmrsygw"), - // TenantID: to.Ptr("gtkzkjsy"), + // PrincipalID: to.Ptr("uqclmeopt"), + // TenantID: to.Ptr("qvhlvbvgodtycsfjhamstlrusktly"), // UserAssignedIdentities: map[string]*armelasticsan.UserAssignedIdentity{ - // "key7482": &armelasticsan.UserAssignedIdentity{ - // ClientID: to.Ptr("jaczsquolgxwpznljbmdupn"), - // PrincipalID: to.Ptr("vfdzizicxcfcqecgsmshz"), + // "key1006": &armelasticsan.UserAssignedIdentity{ + // ClientID: to.Ptr("hsfmzocbkqpxspqwamdqjknd"), + // PrincipalID: to.Ptr("pcbbifvgblsrhzmpdt"), // }, // }, // }, @@ -69,46 +69,47 @@ func ExampleVolumeGroupsClient_NewListByElasticSanPager_volumeGroupsListByElasti // Encryption: to.Ptr(armelasticsan.EncryptionTypeEncryptionAtRestWithPlatformKey), // EncryptionProperties: &armelasticsan.EncryptionProperties{ // EncryptionIdentity: &armelasticsan.EncryptionIdentity{ - // EncryptionUserAssignedIdentity: to.Ptr("im"), + // EncryptionUserAssignedIdentity: to.Ptr("gfhkfbozahmmwluqndfgxunssafa"), // }, // KeyVaultProperties: &armelasticsan.KeyVaultProperties{ - // CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), - // CurrentVersionedKeyIdentifier: to.Ptr("rnpxhtzkquzyoepwbwktbwb"), - // KeyName: to.Ptr("sftaiernmrzypnrkpakrrawxcbsqzc"), - // KeyVaultURI: to.Ptr("https://microsoft.com/axmblwp"), - // KeyVersion: to.Ptr("c"), - // LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), + // CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:49.141Z"); return t}()), + // CurrentVersionedKeyIdentifier: to.Ptr("giyyriknaomjipru"), + // KeyName: to.Ptr("lunpapamzeimppgobraxjt"), + // KeyVaultURI: to.Ptr("https://microsoft.com/a"), + // KeyVersion: to.Ptr("oemygbnfmqhijmonkqfqmy"), + // LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:49.141Z"); return t}()), // }, // }, + // EnforceDataIntegrityCheckForIscsi: to.Ptr(true), // NetworkACLs: &armelasticsan.NetworkRuleSet{ // VirtualNetworkRules: []*armelasticsan.VirtualNetworkRule{ // { // Action: to.Ptr(armelasticsan.ActionAllow), - // VirtualNetworkResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}"), + // VirtualNetworkResourceID: to.Ptr("bkhwaiqvvaguymsmnzzbzz"), // }}, // }, // PrivateEndpointConnections: []*armelasticsan.PrivateEndpointConnection{ // { - // Name: to.Ptr("{privateEndpointConnectionName}"), - // Type: to.Ptr("Microsoft.ElasticSan/elasticSans/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}"), + // Name: to.Ptr("duzwhl"), + // Type: to.Ptr("mzwnrqbkzgk"), + // ID: to.Ptr("utnp"), // SystemData: &armelasticsan.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-07-03T09:59:45.919Z"); return t}()), - // CreatedBy: to.Ptr("otfifnrahdshqombvtg"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // CreatedBy: to.Ptr("iskcypymrroqhmdwccwqzdclpyutpb"), // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-07-03T09:59:45.919Z"); return t}()), - // LastModifiedBy: to.Ptr("jnaxavnlhrboshtidtib"), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // LastModifiedBy: to.Ptr("ujpptnmvqtzudoiaihbgrvnagxh"), // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), // }, // Properties: &armelasticsan.PrivateEndpointConnectionProperties{ // GroupIDs: []*string{ - // to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}")}, + // to.Ptr("ftdxwynrey")}, // PrivateEndpoint: &armelasticsan.PrivateEndpoint{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}"), + // ID: to.Ptr("kdvywmjnrvqksyvxgosjorlzjk"), // }, // PrivateLinkServiceConnectionState: &armelasticsan.PrivateLinkServiceConnectionState{ - // Description: to.Ptr("Auto-Approved"), - // ActionsRequired: to.Ptr("None"), + // Description: to.Ptr("hqsksvdlhacbmawvhlhhfmcyv"), + // ActionsRequired: to.Ptr("xvnopczgivazrjlzirhtww"), // Status: to.Ptr(armelasticsan.PrivateEndpointServiceConnectionStatusPending), // }, // ProvisioningState: to.Ptr(armelasticsan.ProvisioningStatesSucceeded), @@ -122,7 +123,7 @@ func ExampleVolumeGroupsClient_NewListByElasticSanPager_volumeGroupsListByElasti } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_ListByElasticSan_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_ListByElasticSan_MinimumSet_Gen.json func ExampleVolumeGroupsClient_NewListByElasticSanPager_volumeGroupsListByElasticSanMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -149,7 +150,7 @@ func ExampleVolumeGroupsClient_NewListByElasticSanPager_volumeGroupsListByElasti } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_Create_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Create_MaximumSet_Gen.json func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -164,26 +165,27 @@ func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateMaximumSetGen() { Identity: &armelasticsan.Identity{ Type: to.Ptr(armelasticsan.IdentityTypeNone), UserAssignedIdentities: map[string]*armelasticsan.UserAssignedIdentity{ - "key7482": {}, + "key1006": {}, }, }, Properties: &armelasticsan.VolumeGroupProperties{ - Encryption: to.Ptr(armelasticsan.EncryptionTypeEncryptionAtRestWithCustomerManagedKey), + Encryption: to.Ptr(armelasticsan.EncryptionTypeEncryptionAtRestWithPlatformKey), EncryptionProperties: &armelasticsan.EncryptionProperties{ EncryptionIdentity: &armelasticsan.EncryptionIdentity{ - EncryptionUserAssignedIdentity: to.Ptr("im"), + EncryptionUserAssignedIdentity: to.Ptr("gfhkfbozahmmwluqndfgxunssafa"), }, KeyVaultProperties: &armelasticsan.KeyVaultProperties{ - KeyName: to.Ptr("sftaiernmrzypnrkpakrrawxcbsqzc"), - KeyVaultURI: to.Ptr("https://microsoft.com/axmblwp"), - KeyVersion: to.Ptr("c"), + KeyName: to.Ptr("lunpapamzeimppgobraxjt"), + KeyVaultURI: to.Ptr("https://microsoft.com/a"), + KeyVersion: to.Ptr("oemygbnfmqhijmonkqfqmy"), }, }, + EnforceDataIntegrityCheckForIscsi: to.Ptr(true), NetworkACLs: &armelasticsan.NetworkRuleSet{ VirtualNetworkRules: []*armelasticsan.VirtualNetworkRule{ { Action: to.Ptr(armelasticsan.ActionAllow), - VirtualNetworkResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}"), + VirtualNetworkResourceID: to.Ptr("bkhwaiqvvaguymsmnzzbzz"), }}, }, ProtocolType: to.Ptr(armelasticsan.StorageTargetTypeIscsi), @@ -200,25 +202,25 @@ func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateMaximumSetGen() { _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VolumeGroup = armelasticsan.VolumeGroup{ - // Name: to.Ptr("cr"), - // Type: to.Ptr("Microsoft.ElasticSan/elasticSans/volumeGroups"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}"), + // Name: to.Ptr("qymuqyvdlpshrna"), + // Type: to.Ptr("wwkffcgidqktzuzo"), + // ID: to.Ptr("cgwmakehxvhv"), // SystemData: &armelasticsan.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // CreatedBy: to.Ptr("kakcyehdrphqkilgkhpbdtvpupak"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // CreatedBy: to.Ptr("iskcypymrroqhmdwccwqzdclpyutpb"), // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // LastModifiedBy: to.Ptr("bcclmbseed"), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // LastModifiedBy: to.Ptr("ujpptnmvqtzudoiaihbgrvnagxh"), // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), // }, // Identity: &armelasticsan.Identity{ // Type: to.Ptr(armelasticsan.IdentityTypeNone), - // PrincipalID: to.Ptr("ihsiwrwdofymkhquaxcrtfmmrsygw"), - // TenantID: to.Ptr("gtkzkjsy"), + // PrincipalID: to.Ptr("uqclmeopt"), + // TenantID: to.Ptr("qvhlvbvgodtycsfjhamstlrusktly"), // UserAssignedIdentities: map[string]*armelasticsan.UserAssignedIdentity{ - // "key7482": &armelasticsan.UserAssignedIdentity{ - // ClientID: to.Ptr("jaczsquolgxwpznljbmdupn"), - // PrincipalID: to.Ptr("vfdzizicxcfcqecgsmshz"), + // "key1006": &armelasticsan.UserAssignedIdentity{ + // ClientID: to.Ptr("hsfmzocbkqpxspqwamdqjknd"), + // PrincipalID: to.Ptr("pcbbifvgblsrhzmpdt"), // }, // }, // }, @@ -226,31 +228,59 @@ func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateMaximumSetGen() { // Encryption: to.Ptr(armelasticsan.EncryptionTypeEncryptionAtRestWithPlatformKey), // EncryptionProperties: &armelasticsan.EncryptionProperties{ // EncryptionIdentity: &armelasticsan.EncryptionIdentity{ - // EncryptionUserAssignedIdentity: to.Ptr("im"), + // EncryptionUserAssignedIdentity: to.Ptr("gfhkfbozahmmwluqndfgxunssafa"), // }, // KeyVaultProperties: &armelasticsan.KeyVaultProperties{ - // CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), - // CurrentVersionedKeyIdentifier: to.Ptr("rnpxhtzkquzyoepwbwktbwb"), - // KeyName: to.Ptr("sftaiernmrzypnrkpakrrawxcbsqzc"), - // KeyVaultURI: to.Ptr("https://microsoft.com/axmblwp"), - // KeyVersion: to.Ptr("c"), - // LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), + // CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:49.141Z"); return t}()), + // CurrentVersionedKeyIdentifier: to.Ptr("giyyriknaomjipru"), + // KeyName: to.Ptr("lunpapamzeimppgobraxjt"), + // KeyVaultURI: to.Ptr("https://microsoft.com/a"), + // KeyVersion: to.Ptr("oemygbnfmqhijmonkqfqmy"), + // LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:49.141Z"); return t}()), // }, // }, + // EnforceDataIntegrityCheckForIscsi: to.Ptr(true), // NetworkACLs: &armelasticsan.NetworkRuleSet{ // VirtualNetworkRules: []*armelasticsan.VirtualNetworkRule{ // { // Action: to.Ptr(armelasticsan.ActionAllow), - // VirtualNetworkResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}"), + // VirtualNetworkResourceID: to.Ptr("bkhwaiqvvaguymsmnzzbzz"), // }}, // }, - // ProtocolType: to.Ptr(armelasticsan.StorageTargetTypeIscsi), - // ProvisioningState: to.Ptr(armelasticsan.ProvisioningStatesSucceeded), - // }, - // } + // PrivateEndpointConnections: []*armelasticsan.PrivateEndpointConnection{ + // { + // Name: to.Ptr("duzwhl"), + // Type: to.Ptr("mzwnrqbkzgk"), + // ID: to.Ptr("utnp"), + // SystemData: &armelasticsan.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // CreatedBy: to.Ptr("iskcypymrroqhmdwccwqzdclpyutpb"), + // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // LastModifiedBy: to.Ptr("ujpptnmvqtzudoiaihbgrvnagxh"), + // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), + // }, + // Properties: &armelasticsan.PrivateEndpointConnectionProperties{ + // GroupIDs: []*string{ + // to.Ptr("ftdxwynrey")}, + // PrivateEndpoint: &armelasticsan.PrivateEndpoint{ + // ID: to.Ptr("kdvywmjnrvqksyvxgosjorlzjk"), + // }, + // PrivateLinkServiceConnectionState: &armelasticsan.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("hqsksvdlhacbmawvhlhhfmcyv"), + // ActionsRequired: to.Ptr("xvnopczgivazrjlzirhtww"), + // Status: to.Ptr(armelasticsan.PrivateEndpointServiceConnectionStatusPending), + // }, + // ProvisioningState: to.Ptr(armelasticsan.ProvisioningStatesSucceeded), + // }, + // }}, + // ProtocolType: to.Ptr(armelasticsan.StorageTargetTypeIscsi), + // ProvisioningState: to.Ptr(armelasticsan.ProvisioningStatesSucceeded), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_Create_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Create_MinimumSet_Gen.json func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -273,84 +303,10 @@ func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateMinimumSetGen() { _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VolumeGroup = armelasticsan.VolumeGroup{ - // Name: to.Ptr("cr"), - // Type: to.Ptr("Microsoft.ElasticSan/elasticSans/volumeGroups"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}"), - // SystemData: &armelasticsan.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // CreatedBy: to.Ptr("kakcyehdrphqkilgkhpbdtvpupak"), - // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // LastModifiedBy: to.Ptr("bcclmbseed"), - // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // }, - // Identity: &armelasticsan.Identity{ - // Type: to.Ptr(armelasticsan.IdentityTypeNone), - // PrincipalID: to.Ptr("ihsiwrwdofymkhquaxcrtfmmrsygw"), - // TenantID: to.Ptr("gtkzkjsy"), - // UserAssignedIdentities: map[string]*armelasticsan.UserAssignedIdentity{ - // "key7482": &armelasticsan.UserAssignedIdentity{ - // ClientID: to.Ptr("jaczsquolgxwpznljbmdupn"), - // PrincipalID: to.Ptr("vfdzizicxcfcqecgsmshz"), - // }, - // }, - // }, - // Properties: &armelasticsan.VolumeGroupProperties{ - // Encryption: to.Ptr(armelasticsan.EncryptionTypeEncryptionAtRestWithPlatformKey), - // EncryptionProperties: &armelasticsan.EncryptionProperties{ - // EncryptionIdentity: &armelasticsan.EncryptionIdentity{ - // EncryptionUserAssignedIdentity: to.Ptr("im"), - // }, - // KeyVaultProperties: &armelasticsan.KeyVaultProperties{ - // CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), - // CurrentVersionedKeyIdentifier: to.Ptr("rnpxhtzkquzyoepwbwktbwb"), - // KeyName: to.Ptr("sftaiernmrzypnrkpakrrawxcbsqzc"), - // KeyVaultURI: to.Ptr("https://microsoft.com/axmblwp"), - // KeyVersion: to.Ptr("c"), - // LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), - // }, - // }, - // NetworkACLs: &armelasticsan.NetworkRuleSet{ - // VirtualNetworkRules: []*armelasticsan.VirtualNetworkRule{ - // { - // Action: to.Ptr(armelasticsan.ActionAllow), - // VirtualNetworkResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}"), - // }}, - // }, - // PrivateEndpointConnections: []*armelasticsan.PrivateEndpointConnection{ - // { - // Name: to.Ptr("gewxykc"), - // Type: to.Ptr("ailymcedgvxbqklmqtlty"), - // ID: to.Ptr("opcjchensdf"), - // SystemData: &armelasticsan.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // CreatedBy: to.Ptr("kakcyehdrphqkilgkhpbdtvpupak"), - // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // LastModifiedBy: to.Ptr("bcclmbseed"), - // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // }, - // Properties: &armelasticsan.PrivateEndpointConnectionProperties{ - // GroupIDs: []*string{ - // to.Ptr("bolviufgqnyid")}, - // PrivateEndpoint: &armelasticsan.PrivateEndpoint{ - // ID: to.Ptr("ehxmltubeltzmgcqxocakaansat"), - // }, - // PrivateLinkServiceConnectionState: &armelasticsan.PrivateLinkServiceConnectionState{ - // Description: to.Ptr("nahklgxicbqjbbvcdrkljqdhprruys"), - // ActionsRequired: to.Ptr("sairafcqpvucoy"), - // Status: to.Ptr(armelasticsan.PrivateEndpointServiceConnectionStatusPending), - // }, - // ProvisioningState: to.Ptr(armelasticsan.ProvisioningStatesSucceeded), - // }, - // }}, - // ProtocolType: to.Ptr(armelasticsan.StorageTargetTypeIscsi), - // ProvisioningState: to.Ptr(armelasticsan.ProvisioningStatesSucceeded), - // }, - // } + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_Update_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Update_MaximumSet_Gen.json func ExampleVolumeGroupsClient_BeginUpdate_volumeGroupsUpdateMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -365,26 +321,27 @@ func ExampleVolumeGroupsClient_BeginUpdate_volumeGroupsUpdateMaximumSetGen() { Identity: &armelasticsan.Identity{ Type: to.Ptr(armelasticsan.IdentityTypeNone), UserAssignedIdentities: map[string]*armelasticsan.UserAssignedIdentity{ - "key7482": {}, + "key1006": {}, }, }, Properties: &armelasticsan.VolumeGroupUpdateProperties{ Encryption: to.Ptr(armelasticsan.EncryptionTypeEncryptionAtRestWithPlatformKey), EncryptionProperties: &armelasticsan.EncryptionProperties{ EncryptionIdentity: &armelasticsan.EncryptionIdentity{ - EncryptionUserAssignedIdentity: to.Ptr("im"), + EncryptionUserAssignedIdentity: to.Ptr("gfhkfbozahmmwluqndfgxunssafa"), }, KeyVaultProperties: &armelasticsan.KeyVaultProperties{ - KeyName: to.Ptr("sftaiernmrzypnrkpakrrawxcbsqzc"), - KeyVaultURI: to.Ptr("https://microsoft.com/axmblwp"), - KeyVersion: to.Ptr("c"), + KeyName: to.Ptr("lunpapamzeimppgobraxjt"), + KeyVaultURI: to.Ptr("https://microsoft.com/a"), + KeyVersion: to.Ptr("oemygbnfmqhijmonkqfqmy"), }, }, + EnforceDataIntegrityCheckForIscsi: to.Ptr(true), NetworkACLs: &armelasticsan.NetworkRuleSet{ VirtualNetworkRules: []*armelasticsan.VirtualNetworkRule{ { Action: to.Ptr(armelasticsan.ActionAllow), - VirtualNetworkResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}"), + VirtualNetworkResourceID: to.Ptr("bkhwaiqvvaguymsmnzzbzz"), }}, }, ProtocolType: to.Ptr(armelasticsan.StorageTargetTypeIscsi), @@ -401,25 +358,25 @@ func ExampleVolumeGroupsClient_BeginUpdate_volumeGroupsUpdateMaximumSetGen() { _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VolumeGroup = armelasticsan.VolumeGroup{ - // Name: to.Ptr("cr"), - // Type: to.Ptr("Microsoft.ElasticSan/elasticSans/volumeGroups"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}"), + // Name: to.Ptr("qymuqyvdlpshrna"), + // Type: to.Ptr("wwkffcgidqktzuzo"), + // ID: to.Ptr("cgwmakehxvhv"), // SystemData: &armelasticsan.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // CreatedBy: to.Ptr("kakcyehdrphqkilgkhpbdtvpupak"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // CreatedBy: to.Ptr("iskcypymrroqhmdwccwqzdclpyutpb"), // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // LastModifiedBy: to.Ptr("bcclmbseed"), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // LastModifiedBy: to.Ptr("ujpptnmvqtzudoiaihbgrvnagxh"), // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), // }, // Identity: &armelasticsan.Identity{ // Type: to.Ptr(armelasticsan.IdentityTypeNone), - // PrincipalID: to.Ptr("ihsiwrwdofymkhquaxcrtfmmrsygw"), - // TenantID: to.Ptr("gtkzkjsy"), + // PrincipalID: to.Ptr("uqclmeopt"), + // TenantID: to.Ptr("qvhlvbvgodtycsfjhamstlrusktly"), // UserAssignedIdentities: map[string]*armelasticsan.UserAssignedIdentity{ - // "key7482": &armelasticsan.UserAssignedIdentity{ - // ClientID: to.Ptr("jaczsquolgxwpznljbmdupn"), - // PrincipalID: to.Ptr("vfdzizicxcfcqecgsmshz"), + // "key1006": &armelasticsan.UserAssignedIdentity{ + // ClientID: to.Ptr("hsfmzocbkqpxspqwamdqjknd"), + // PrincipalID: to.Ptr("pcbbifvgblsrhzmpdt"), // }, // }, // }, @@ -427,46 +384,47 @@ func ExampleVolumeGroupsClient_BeginUpdate_volumeGroupsUpdateMaximumSetGen() { // Encryption: to.Ptr(armelasticsan.EncryptionTypeEncryptionAtRestWithPlatformKey), // EncryptionProperties: &armelasticsan.EncryptionProperties{ // EncryptionIdentity: &armelasticsan.EncryptionIdentity{ - // EncryptionUserAssignedIdentity: to.Ptr("im"), + // EncryptionUserAssignedIdentity: to.Ptr("gfhkfbozahmmwluqndfgxunssafa"), // }, // KeyVaultProperties: &armelasticsan.KeyVaultProperties{ - // CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), - // CurrentVersionedKeyIdentifier: to.Ptr("rnpxhtzkquzyoepwbwktbwb"), - // KeyName: to.Ptr("sftaiernmrzypnrkpakrrawxcbsqzc"), - // KeyVaultURI: to.Ptr("https://microsoft.com/axmblwp"), - // KeyVersion: to.Ptr("c"), - // LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), + // CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:49.141Z"); return t}()), + // CurrentVersionedKeyIdentifier: to.Ptr("giyyriknaomjipru"), + // KeyName: to.Ptr("lunpapamzeimppgobraxjt"), + // KeyVaultURI: to.Ptr("https://microsoft.com/a"), + // KeyVersion: to.Ptr("oemygbnfmqhijmonkqfqmy"), + // LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:49.141Z"); return t}()), // }, // }, + // EnforceDataIntegrityCheckForIscsi: to.Ptr(true), // NetworkACLs: &armelasticsan.NetworkRuleSet{ // VirtualNetworkRules: []*armelasticsan.VirtualNetworkRule{ // { // Action: to.Ptr(armelasticsan.ActionAllow), - // VirtualNetworkResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}"), + // VirtualNetworkResourceID: to.Ptr("bkhwaiqvvaguymsmnzzbzz"), // }}, // }, // PrivateEndpointConnections: []*armelasticsan.PrivateEndpointConnection{ // { - // Name: to.Ptr("{privateEndpointConnectionName}"), - // Type: to.Ptr("Microsoft.ElasticSan/elasticSans/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}"), + // Name: to.Ptr("duzwhl"), + // Type: to.Ptr("mzwnrqbkzgk"), + // ID: to.Ptr("utnp"), // SystemData: &armelasticsan.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-07-03T09:59:45.919Z"); return t}()), - // CreatedBy: to.Ptr("otfifnrahdshqombvtg"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // CreatedBy: to.Ptr("iskcypymrroqhmdwccwqzdclpyutpb"), // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-07-03T09:59:45.919Z"); return t}()), - // LastModifiedBy: to.Ptr("jnaxavnlhrboshtidtib"), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // LastModifiedBy: to.Ptr("ujpptnmvqtzudoiaihbgrvnagxh"), // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), // }, // Properties: &armelasticsan.PrivateEndpointConnectionProperties{ // GroupIDs: []*string{ - // to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}")}, + // to.Ptr("ftdxwynrey")}, // PrivateEndpoint: &armelasticsan.PrivateEndpoint{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}"), + // ID: to.Ptr("kdvywmjnrvqksyvxgosjorlzjk"), // }, // PrivateLinkServiceConnectionState: &armelasticsan.PrivateLinkServiceConnectionState{ - // Description: to.Ptr("Auto-Approved"), - // ActionsRequired: to.Ptr("None"), + // Description: to.Ptr("hqsksvdlhacbmawvhlhhfmcyv"), + // ActionsRequired: to.Ptr("xvnopczgivazrjlzirhtww"), // Status: to.Ptr(armelasticsan.PrivateEndpointServiceConnectionStatusPending), // }, // ProvisioningState: to.Ptr(armelasticsan.ProvisioningStatesSucceeded), @@ -478,7 +436,7 @@ func ExampleVolumeGroupsClient_BeginUpdate_volumeGroupsUpdateMaximumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_Update_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Update_MinimumSet_Gen.json func ExampleVolumeGroupsClient_BeginUpdate_volumeGroupsUpdateMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -504,7 +462,7 @@ func ExampleVolumeGroupsClient_BeginUpdate_volumeGroupsUpdateMinimumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_Delete_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Delete_MaximumSet_Gen.json func ExampleVolumeGroupsClient_BeginDelete_volumeGroupsDeleteMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -525,7 +483,7 @@ func ExampleVolumeGroupsClient_BeginDelete_volumeGroupsDeleteMaximumSetGen() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_Delete_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Delete_MinimumSet_Gen.json func ExampleVolumeGroupsClient_BeginDelete_volumeGroupsDeleteMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -546,7 +504,7 @@ func ExampleVolumeGroupsClient_BeginDelete_volumeGroupsDeleteMinimumSetGen() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_Get_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Get_MaximumSet_Gen.json func ExampleVolumeGroupsClient_Get_volumeGroupsGetMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -565,25 +523,25 @@ func ExampleVolumeGroupsClient_Get_volumeGroupsGetMaximumSetGen() { _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VolumeGroup = armelasticsan.VolumeGroup{ - // Name: to.Ptr("cr"), - // Type: to.Ptr("Microsoft.ElasticSan/elasticSans/volumeGroups"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}"), + // Name: to.Ptr("qymuqyvdlpshrna"), + // Type: to.Ptr("wwkffcgidqktzuzo"), + // ID: to.Ptr("cgwmakehxvhv"), // SystemData: &armelasticsan.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // CreatedBy: to.Ptr("kakcyehdrphqkilgkhpbdtvpupak"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // CreatedBy: to.Ptr("iskcypymrroqhmdwccwqzdclpyutpb"), // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:10.057Z"); return t}()), - // LastModifiedBy: to.Ptr("bcclmbseed"), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // LastModifiedBy: to.Ptr("ujpptnmvqtzudoiaihbgrvnagxh"), // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), // }, // Identity: &armelasticsan.Identity{ // Type: to.Ptr(armelasticsan.IdentityTypeNone), - // PrincipalID: to.Ptr("ihsiwrwdofymkhquaxcrtfmmrsygw"), - // TenantID: to.Ptr("gtkzkjsy"), + // PrincipalID: to.Ptr("uqclmeopt"), + // TenantID: to.Ptr("qvhlvbvgodtycsfjhamstlrusktly"), // UserAssignedIdentities: map[string]*armelasticsan.UserAssignedIdentity{ - // "key7482": &armelasticsan.UserAssignedIdentity{ - // ClientID: to.Ptr("jaczsquolgxwpznljbmdupn"), - // PrincipalID: to.Ptr("vfdzizicxcfcqecgsmshz"), + // "key1006": &armelasticsan.UserAssignedIdentity{ + // ClientID: to.Ptr("hsfmzocbkqpxspqwamdqjknd"), + // PrincipalID: to.Ptr("pcbbifvgblsrhzmpdt"), // }, // }, // }, @@ -591,46 +549,47 @@ func ExampleVolumeGroupsClient_Get_volumeGroupsGetMaximumSetGen() { // Encryption: to.Ptr(armelasticsan.EncryptionTypeEncryptionAtRestWithPlatformKey), // EncryptionProperties: &armelasticsan.EncryptionProperties{ // EncryptionIdentity: &armelasticsan.EncryptionIdentity{ - // EncryptionUserAssignedIdentity: to.Ptr("im"), + // EncryptionUserAssignedIdentity: to.Ptr("gfhkfbozahmmwluqndfgxunssafa"), // }, // KeyVaultProperties: &armelasticsan.KeyVaultProperties{ - // CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), - // CurrentVersionedKeyIdentifier: to.Ptr("rnpxhtzkquzyoepwbwktbwb"), - // KeyName: to.Ptr("sftaiernmrzypnrkpakrrawxcbsqzc"), - // KeyVaultURI: to.Ptr("https://microsoft.com/axmblwp"), - // KeyVersion: to.Ptr("c"), - // LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-23T12:16:11.388Z"); return t}()), + // CurrentVersionedKeyExpirationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:49.141Z"); return t}()), + // CurrentVersionedKeyIdentifier: to.Ptr("giyyriknaomjipru"), + // KeyName: to.Ptr("lunpapamzeimppgobraxjt"), + // KeyVaultURI: to.Ptr("https://microsoft.com/a"), + // KeyVersion: to.Ptr("oemygbnfmqhijmonkqfqmy"), + // LastKeyRotationTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:49.141Z"); return t}()), // }, // }, + // EnforceDataIntegrityCheckForIscsi: to.Ptr(true), // NetworkACLs: &armelasticsan.NetworkRuleSet{ // VirtualNetworkRules: []*armelasticsan.VirtualNetworkRule{ // { // Action: to.Ptr(armelasticsan.ActionAllow), - // VirtualNetworkResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}"), + // VirtualNetworkResourceID: to.Ptr("bkhwaiqvvaguymsmnzzbzz"), // }}, // }, // PrivateEndpointConnections: []*armelasticsan.PrivateEndpointConnection{ // { - // Name: to.Ptr("{privateEndpointConnectionName}"), - // Type: to.Ptr("Microsoft.ElasticSan/elasticSans/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}"), + // Name: to.Ptr("duzwhl"), + // Type: to.Ptr("mzwnrqbkzgk"), + // ID: to.Ptr("utnp"), // SystemData: &armelasticsan.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-07-03T09:59:45.919Z"); return t}()), - // CreatedBy: to.Ptr("otfifnrahdshqombvtg"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // CreatedBy: to.Ptr("iskcypymrroqhmdwccwqzdclpyutpb"), // CreatedByType: to.Ptr(armelasticsan.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-07-03T09:59:45.919Z"); return t}()), - // LastModifiedBy: to.Ptr("jnaxavnlhrboshtidtib"), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-07-09T08:26:45.352Z"); return t}()), + // LastModifiedBy: to.Ptr("ujpptnmvqtzudoiaihbgrvnagxh"), // LastModifiedByType: to.Ptr(armelasticsan.CreatedByTypeUser), // }, // Properties: &armelasticsan.PrivateEndpointConnectionProperties{ // GroupIDs: []*string{ - // to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}")}, + // to.Ptr("ftdxwynrey")}, // PrivateEndpoint: &armelasticsan.PrivateEndpoint{ - // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}"), + // ID: to.Ptr("kdvywmjnrvqksyvxgosjorlzjk"), // }, // PrivateLinkServiceConnectionState: &armelasticsan.PrivateLinkServiceConnectionState{ - // Description: to.Ptr("Auto-Approved"), - // ActionsRequired: to.Ptr("None"), + // Description: to.Ptr("hqsksvdlhacbmawvhlhhfmcyv"), + // ActionsRequired: to.Ptr("xvnopczgivazrjlzirhtww"), // Status: to.Ptr(armelasticsan.PrivateEndpointServiceConnectionStatusPending), // }, // ProvisioningState: to.Ptr(armelasticsan.ProvisioningStatesSucceeded), @@ -642,7 +601,7 @@ func ExampleVolumeGroupsClient_Get_volumeGroupsGetMaximumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeGroups_Get_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Get_MinimumSet_Gen.json func ExampleVolumeGroupsClient_Get_volumeGroupsGetMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/volumes_client.go b/sdk/resourcemanager/elasticsan/armelasticsan/volumes_client.go index bf660ae25063..2c65ed705be0 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/volumes_client.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/volumes_client.go @@ -46,7 +46,7 @@ func NewVolumesClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreate - Create a Volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -74,7 +74,7 @@ func (client *VolumesClient) BeginCreate(ctx context.Context, resourceGroupName // Create - Create a Volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *VolumesClient) create(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, volumeName string, parameters Volume, options *VolumesClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "VolumesClient.BeginCreate" @@ -124,7 +124,7 @@ func (client *VolumesClient) createCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -136,7 +136,7 @@ func (client *VolumesClient) createCreateRequest(ctx context.Context, resourceGr // BeginDelete - Delete an Volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -163,7 +163,7 @@ func (client *VolumesClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Delete an Volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *VolumesClient) deleteOperation(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, volumeName string, options *VolumesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "VolumesClient.BeginDelete" @@ -213,22 +213,22 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.XMSDeleteSnapshots != nil { req.Raw().Header["x-ms-delete-snapshots"] = []string{string(*options.XMSDeleteSnapshots)} } if options != nil && options.XMSForceDelete != nil { req.Raw().Header["x-ms-force-delete"] = []string{string(*options.XMSForceDelete)} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // Get - Get an Volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -284,7 +284,7 @@ func (client *VolumesClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -301,7 +301,7 @@ func (client *VolumesClient) getHandleResponse(resp *http.Response) (VolumesClie // NewListByVolumeGroupPager - List Volumes in a VolumeGroup. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -354,7 +354,7 @@ func (client *VolumesClient) listByVolumeGroupCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -372,7 +372,7 @@ func (client *VolumesClient) listByVolumeGroupHandleResponse(resp *http.Response // BeginUpdate - Update an Volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -400,7 +400,7 @@ func (client *VolumesClient) BeginUpdate(ctx context.Context, resourceGroupName // Update - Update an Volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *VolumesClient) update(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, volumeName string, parameters VolumeUpdate, options *VolumesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "VolumesClient.BeginUpdate" @@ -450,7 +450,7 @@ func (client *VolumesClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/volumes_client_example_test.go b/sdk/resourcemanager/elasticsan/armelasticsan/volumes_client_example_test.go index a13ad9fed2ee..233eba3d5484 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/volumes_client_example_test.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/volumes_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Create_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Create_MaximumSet_Gen.json func ExampleVolumesClient_BeginCreate_volumesCreateMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -85,7 +85,7 @@ func ExampleVolumesClient_BeginCreate_volumesCreateMaximumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Create_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Create_MinimumSet_Gen.json func ExampleVolumesClient_BeginCreate_volumesCreateMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -145,7 +145,7 @@ func ExampleVolumesClient_BeginCreate_volumesCreateMinimumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Update_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Update_MaximumSet_Gen.json func ExampleVolumesClient_BeginUpdate_volumesUpdateMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -205,7 +205,7 @@ func ExampleVolumesClient_BeginUpdate_volumesUpdateMaximumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Update_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Update_MinimumSet_Gen.json func ExampleVolumesClient_BeginUpdate_volumesUpdateMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -261,7 +261,7 @@ func ExampleVolumesClient_BeginUpdate_volumesUpdateMinimumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Delete_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Delete_MaximumSet_Gen.json func ExampleVolumesClient_BeginDelete_volumesDeleteMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -284,7 +284,7 @@ func ExampleVolumesClient_BeginDelete_volumesDeleteMaximumSetGen() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Delete_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Delete_MinimumSet_Gen.json func ExampleVolumesClient_BeginDelete_volumesDeleteMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -307,7 +307,7 @@ func ExampleVolumesClient_BeginDelete_volumesDeleteMinimumSetGen() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Get_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Get_MaximumSet_Gen.json func ExampleVolumesClient_Get_volumesGetMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -359,7 +359,7 @@ func ExampleVolumesClient_Get_volumesGetMaximumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Get_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Get_MinimumSet_Gen.json func ExampleVolumesClient_Get_volumesGetMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -411,7 +411,7 @@ func ExampleVolumesClient_Get_volumesGetMinimumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_ListByVolumeGroup_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_ListByVolumeGroup_MaximumSet_Gen.json func ExampleVolumesClient_NewListByVolumeGroupPager_volumesListByVolumeGroupMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -471,7 +471,7 @@ func ExampleVolumesClient_NewListByVolumeGroupPager_volumesListByVolumeGroupMaxi } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_ListByVolumeGroup_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_ListByVolumeGroup_MinimumSet_Gen.json func ExampleVolumesClient_NewListByVolumeGroupPager_volumesListByVolumeGroupMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/volumesnapshots_client.go b/sdk/resourcemanager/elasticsan/armelasticsan/volumesnapshots_client.go index 667d4be669b7..499cfde7e0f6 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/volumesnapshots_client.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/volumesnapshots_client.go @@ -46,7 +46,7 @@ func NewVolumeSnapshotsClient(subscriptionID string, credential azcore.TokenCred // BeginCreate - Create a Volume Snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -75,7 +75,7 @@ func (client *VolumeSnapshotsClient) BeginCreate(ctx context.Context, resourceGr // Create - Create a Volume Snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *VolumeSnapshotsClient) create(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, snapshotName string, parameters Snapshot, options *VolumeSnapshotsClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "VolumeSnapshotsClient.BeginCreate" @@ -125,7 +125,7 @@ func (client *VolumeSnapshotsClient) createCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -137,7 +137,7 @@ func (client *VolumeSnapshotsClient) createCreateRequest(ctx context.Context, re // BeginDelete - Delete a Volume Snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -165,7 +165,7 @@ func (client *VolumeSnapshotsClient) BeginDelete(ctx context.Context, resourceGr // Delete - Delete a Volume Snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 func (client *VolumeSnapshotsClient) deleteOperation(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, snapshotName string, options *VolumeSnapshotsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "VolumeSnapshotsClient.BeginDelete" @@ -215,7 +215,7 @@ func (client *VolumeSnapshotsClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -224,7 +224,7 @@ func (client *VolumeSnapshotsClient) deleteCreateRequest(ctx context.Context, re // Get - Get a Volume Snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -280,7 +280,7 @@ func (client *VolumeSnapshotsClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -297,7 +297,7 @@ func (client *VolumeSnapshotsClient) getHandleResponse(resp *http.Response) (Vol // NewListByVolumeGroupPager - List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter // -// Generated from API version 2023-01-01 +// Generated from API version 2024-05-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - elasticSanName - The name of the ElasticSan. // - volumeGroupName - The name of the VolumeGroup. @@ -353,7 +353,7 @@ func (client *VolumeSnapshotsClient) listByVolumeGroupCreateRequest(ctx context. if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2023-01-01") + reqQP.Set("api-version", "2024-05-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/volumesnapshots_client_example_test.go b/sdk/resourcemanager/elasticsan/armelasticsan/volumesnapshots_client_example_test.go index 52ee8e34659b..0f57406fb140 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/volumesnapshots_client_example_test.go +++ b/sdk/resourcemanager/elasticsan/armelasticsan/volumesnapshots_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeSnapshots_ListByVolumeGroup_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_ListByVolumeGroup_MaximumSet_Gen.json func ExampleVolumeSnapshotsClient_NewListByVolumeGroupPager_volumeSnapshotsListByVolumeGroupMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -67,7 +67,7 @@ func ExampleVolumeSnapshotsClient_NewListByVolumeGroupPager_volumeSnapshotsListB } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeSnapshots_ListByVolumeGroup_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_ListByVolumeGroup_MinimumSet_Gen.json func ExampleVolumeSnapshotsClient_NewListByVolumeGroupPager_volumeSnapshotsListByVolumeGroupMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -94,7 +94,7 @@ func ExampleVolumeSnapshotsClient_NewListByVolumeGroupPager_volumeSnapshotsListB } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeSnapshots_Create_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Create_MaximumSet_Gen.json func ExampleVolumeSnapshotsClient_BeginCreate_volumeSnapshotsCreateMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -145,7 +145,7 @@ func ExampleVolumeSnapshotsClient_BeginCreate_volumeSnapshotsCreateMaximumSetGen // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeSnapshots_Create_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Create_MinimumSet_Gen.json func ExampleVolumeSnapshotsClient_BeginCreate_volumeSnapshotsCreateMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -196,7 +196,7 @@ func ExampleVolumeSnapshotsClient_BeginCreate_volumeSnapshotsCreateMinimumSetGen // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json func ExampleVolumeSnapshotsClient_BeginDelete_volumeSnapshotsDeleteMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -217,7 +217,7 @@ func ExampleVolumeSnapshotsClient_BeginDelete_volumeSnapshotsDeleteMaximumSetGen } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json func ExampleVolumeSnapshotsClient_BeginDelete_volumeSnapshotsDeleteMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -238,7 +238,7 @@ func ExampleVolumeSnapshotsClient_BeginDelete_volumeSnapshotsDeleteMinimumSetGen } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeSnapshots_Get_MaximumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Get_MaximumSet_Gen.json func ExampleVolumeSnapshotsClient_Get_volumeSnapshotsGetMaximumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -279,7 +279,7 @@ func ExampleVolumeSnapshotsClient_Get_volumeSnapshotsGetMaximumSetGen() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/907b79c0a6a660826e54dc1f16ea14b831b201d2/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/VolumeSnapshots_Get_MinimumSet_Gen.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Get_MinimumSet_Gen.json func ExampleVolumeSnapshotsClient_Get_volumeSnapshotsGetMinimumSetGen() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {