From a75421d9cf9647d4a6e49d9c9f275421aa6149aa Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 10 Nov 2020 09:59:09 +0000 Subject: [PATCH] Generated from 3a3936bb8a4768f77047ee6ac8b8e778329bcd29 --- .../mgmt/2020-08-01-preview/storage/enums.go | 17 ++- .../2020-08-01-preview/storage/fileshares.go | 32 +++-- .../mgmt/2020-08-01-preview/storage/models.go | 124 +++++++++++------- .../storage/storageapi/interfaces.go | 6 +- 4 files changed, 118 insertions(+), 61 deletions(-) diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/enums.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/enums.go index 539969fbbce3..c892e1435a8e 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/enums.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/enums.go @@ -482,11 +482,13 @@ type ListSharesExpand string const ( // ListSharesExpandDeleted ... ListSharesExpandDeleted ListSharesExpand = "deleted" + // ListSharesExpandSnapshots ... + ListSharesExpandSnapshots ListSharesExpand = "snapshots" ) // PossibleListSharesExpandValues returns an array of possible values for the ListSharesExpand const type. func PossibleListSharesExpandValues() []ListSharesExpand { - return []ListSharesExpand{ListSharesExpandDeleted} + return []ListSharesExpand{ListSharesExpandDeleted, ListSharesExpandSnapshots} } // MinimumTLSVersion enumerates the values for minimum tls version. @@ -617,6 +619,19 @@ func PossiblePublicAccessValues() []PublicAccess { return []PublicAccess{PublicAccessBlob, PublicAccessContainer, PublicAccessNone} } +// PutSharesExpand enumerates the values for put shares expand. +type PutSharesExpand string + +const ( + // Snapshots ... + Snapshots PutSharesExpand = "snapshots" +) + +// PossiblePutSharesExpandValues returns an array of possible values for the PutSharesExpand const type. +func PossiblePutSharesExpandValues() []PutSharesExpand { + return []PutSharesExpand{Snapshots} +} + // Reason enumerates the values for reason. type Reason string diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/fileshares.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/fileshares.go index 66c991f06043..876886eaed32 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/fileshares.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/fileshares.go @@ -53,7 +53,8 @@ func NewFileSharesClientWithBaseURI(baseURI string, subscriptionID string) FileS // between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) // character must be immediately preceded and followed by a letter or number. // fileShare - properties of the file share to create. -func (client FileSharesClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare) (result FileShare, err error) { +// expand - optional, used to create a snapshot. +func (client FileSharesClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare, expand PutSharesExpand) (result FileShare, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Create") defer func() { @@ -87,7 +88,7 @@ func (client FileSharesClient) Create(ctx context.Context, resourceGroupName str return result, validation.NewError("storage.FileSharesClient", "Create", err.Error()) } - req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareName, fileShare) + req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareName, fileShare, expand) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", nil, "Failure preparing request") return @@ -109,7 +110,7 @@ func (client FileSharesClient) Create(ctx context.Context, resourceGroupName str } // CreatePreparer prepares the Create request. -func (client FileSharesClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare) (*http.Request, error) { +func (client FileSharesClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare, expand PutSharesExpand) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -121,6 +122,9 @@ func (client FileSharesClient) CreatePreparer(ctx context.Context, resourceGroup queryParameters := map[string]interface{}{ "api-version": APIVersion, } + if len(string(expand)) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), @@ -159,7 +163,8 @@ func (client FileSharesClient) CreateResponder(resp *http.Response) (result File // shareName - the name of the file share within the specified storage account. File share names must be // between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) // character must be immediately preceded and followed by a letter or number. -func (client FileSharesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string) (result autorest.Response, err error) { +// xMsSnapshot - optional, used to delete a snapshot. +func (client FileSharesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, xMsSnapshot string) (result autorest.Response, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Delete") defer func() { @@ -186,7 +191,7 @@ func (client FileSharesClient) Delete(ctx context.Context, resourceGroupName str return result, validation.NewError("storage.FileSharesClient", "Delete", err.Error()) } - req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareName) + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareName, xMsSnapshot) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", nil, "Failure preparing request") return @@ -208,7 +213,7 @@ func (client FileSharesClient) Delete(ctx context.Context, resourceGroupName str } // DeletePreparer prepares the Delete request. -func (client FileSharesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string) (*http.Request, error) { +func (client FileSharesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, xMsSnapshot string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -226,6 +231,10 @@ func (client FileSharesClient) DeletePreparer(ctx context.Context, resourceGroup autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters), autorest.WithQueryParameters(queryParameters)) + if len(xMsSnapshot) > 0 { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithHeader("x-ms-snapshot", autorest.String(xMsSnapshot))) + } return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -256,7 +265,8 @@ func (client FileSharesClient) DeleteResponder(resp *http.Response) (result auto // between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) // character must be immediately preceded and followed by a letter or number. // expand - optional, used to expand the properties within share's properties. -func (client FileSharesClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand GetShareExpand) (result FileShare, err error) { +// xMsSnapshot - optional, used to retrieve properties of a snapshot. +func (client FileSharesClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand GetShareExpand, xMsSnapshot string) (result FileShare, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Get") defer func() { @@ -283,7 +293,7 @@ func (client FileSharesClient) Get(ctx context.Context, resourceGroupName string return result, validation.NewError("storage.FileSharesClient", "Get", err.Error()) } - req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareName, expand) + req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareName, expand, xMsSnapshot) if err != nil { err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", nil, "Failure preparing request") return @@ -305,7 +315,7 @@ func (client FileSharesClient) Get(ctx context.Context, resourceGroupName string } // GetPreparer prepares the Get request. -func (client FileSharesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand GetShareExpand) (*http.Request, error) { +func (client FileSharesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand GetShareExpand, xMsSnapshot string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -326,6 +336,10 @@ func (client FileSharesClient) GetPreparer(ctx context.Context, resourceGroupNam autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters), autorest.WithQueryParameters(queryParameters)) + if len(xMsSnapshot) > 0 { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithHeader("x-ms-snapshot", autorest.String(xMsSnapshot))) + } return preparer.Prepare((&http.Request{}).WithContext(ctx)) } diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/models.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/models.go index e25dd524ee6c..80e9bda72e32 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/models.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/models.go @@ -182,8 +182,8 @@ func (a *Account) UnmarshalJSON(body []byte) error { return nil } -// AccountCheckNameAvailabilityParameters the parameters used to check the availability of the storage account -// name. +// AccountCheckNameAvailabilityParameters the parameters used to check the availability of the storage +// account name. type AccountCheckNameAvailabilityParameters struct { // Name - The storage account name. Name *string `json:"name,omitempty"` @@ -314,8 +314,8 @@ func (acp *AccountCreateParameters) UnmarshalJSON(body []byte) error { return nil } -// AccountInternetEndpoints the URIs that are used to perform a retrieval of a public blob, file, web or dfs -// object via a internet routing endpoint. +// AccountInternetEndpoints the URIs that are used to perform a retrieval of a public blob, file, web or +// dfs object via a internet routing endpoint. type AccountInternetEndpoints struct { // Blob - READ-ONLY; Gets the blob endpoint. Blob *string `json:"blob,omitempty"` @@ -496,12 +496,15 @@ func (page AccountListResultPage) Values() []Account { } // Creates a new instance of the AccountListResultPage type. -func NewAccountListResultPage(getNextPage func(context.Context, AccountListResult) (AccountListResult, error)) AccountListResultPage { - return AccountListResultPage{fn: getNextPage} +func NewAccountListResultPage(cur AccountListResult, getNextPage func(context.Context, AccountListResult) (AccountListResult, error)) AccountListResultPage { + return AccountListResultPage{ + fn: getNextPage, + alr: cur, + } } -// AccountMicrosoftEndpoints the URIs that are used to perform a retrieval of a public blob, queue, table, web -// or dfs object via a microsoft routing endpoint. +// AccountMicrosoftEndpoints the URIs that are used to perform a retrieval of a public blob, queue, table, +// web or dfs object via a microsoft routing endpoint. type AccountMicrosoftEndpoints struct { // Blob - READ-ONLY; Gets the blob endpoint. Blob *string `json:"blob,omitempty"` @@ -672,7 +675,8 @@ type AccountSasParameters struct { KeyToSign *string `json:"keyToSign,omitempty"` } -// AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type AccountsCreateFuture struct { azure.Future } @@ -700,7 +704,8 @@ func (future *AccountsCreateFuture) Result(client AccountsClient) (a Account, er return } -// AccountsFailoverFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// AccountsFailoverFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type AccountsFailoverFuture struct { azure.Future } @@ -722,8 +727,8 @@ func (future *AccountsFailoverFuture) Result(client AccountsClient) (ar autorest return } -// AccountsRestoreBlobRangesFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// AccountsRestoreBlobRangesFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. type AccountsRestoreBlobRangesFuture struct { azure.Future } @@ -751,7 +756,8 @@ func (future *AccountsRestoreBlobRangesFuture) Result(client AccountsClient) (br return } -// AccountUpdateParameters the parameters that can be provided when updating the storage account properties. +// AccountUpdateParameters the parameters that can be provided when updating the storage account +// properties. type AccountUpdateParameters struct { // Sku - Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those SKU names be updated to any other value. Sku *Sku `json:"sku,omitempty"` @@ -1052,8 +1058,8 @@ func (bip *BlobInventoryPolicy) UnmarshalJSON(body []byte) error { return nil } -// BlobInventoryPolicyDefinition an object that defines the blob inventory rule. Each definition consists of a -// set of filters. +// BlobInventoryPolicyDefinition an object that defines the blob inventory rule. Each definition consists +// of a set of filters. type BlobInventoryPolicyDefinition struct { // Filters - An object that defines the filter set. Filters *BlobInventoryPolicyFilter `json:"filters,omitempty"` @@ -1088,7 +1094,8 @@ func (bipp BlobInventoryPolicyProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// BlobInventoryPolicyRule an object that wraps the blob inventory rule. Each rule is uniquely defined by name. +// BlobInventoryPolicyRule an object that wraps the blob inventory rule. Each rule is uniquely defined by +// name. type BlobInventoryPolicyRule struct { // Enabled - Rule is enabled when set to true. Enabled *bool `json:"enabled,omitempty"` @@ -1607,8 +1614,11 @@ func (page DeletedAccountListResultPage) Values() []DeletedAccount { } // Creates a new instance of the DeletedAccountListResultPage type. -func NewDeletedAccountListResultPage(getNextPage func(context.Context, DeletedAccountListResult) (DeletedAccountListResult, error)) DeletedAccountListResultPage { - return DeletedAccountListResultPage{fn: getNextPage} +func NewDeletedAccountListResultPage(cur DeletedAccountListResult, getNextPage func(context.Context, DeletedAccountListResult) (DeletedAccountListResult, error)) DeletedAccountListResultPage { + return DeletedAccountListResultPage{ + fn: getNextPage, + dalr: cur, + } } // DeletedAccountProperties ... @@ -1741,8 +1751,8 @@ type EncryptionScopeKeyVaultProperties struct { KeyURI *string `json:"keyUri,omitempty"` } -// EncryptionScopeListResult list of encryption scopes requested, and if paging is required, a URL to the next -// page of encryption scopes. +// EncryptionScopeListResult list of encryption scopes requested, and if paging is required, a URL to the +// next page of encryption scopes. type EncryptionScopeListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; List of encryption scopes requested. @@ -1894,8 +1904,11 @@ func (page EncryptionScopeListResultPage) Values() []EncryptionScope { } // Creates a new instance of the EncryptionScopeListResultPage type. -func NewEncryptionScopeListResultPage(getNextPage func(context.Context, EncryptionScopeListResult) (EncryptionScopeListResult, error)) EncryptionScopeListResultPage { - return EncryptionScopeListResultPage{fn: getNextPage} +func NewEncryptionScopeListResultPage(cur EncryptionScopeListResult, getNextPage func(context.Context, EncryptionScopeListResult) (EncryptionScopeListResult, error)) EncryptionScopeListResultPage { + return EncryptionScopeListResultPage{ + fn: getNextPage, + eslr: cur, + } } // EncryptionScopeProperties properties of the encryption scope. @@ -1961,7 +1974,8 @@ type EncryptionServices struct { Queue *EncryptionService `json:"queue,omitempty"` } -// Endpoints the URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object. +// Endpoints the URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs +// object. type Endpoints struct { // Blob - READ-ONLY; Gets the blob endpoint. Blob *string `json:"blob,omitempty"` @@ -2283,8 +2297,8 @@ func (fsi *FileShareItem) UnmarshalJSON(body []byte) error { return nil } -// FileShareItems response schema. Contains list of shares returned, and if paging is requested or required, a -// URL to next page of shares. +// FileShareItems response schema. Contains list of shares returned, and if paging is requested or +// required, a URL to next page of shares. type FileShareItems struct { autorest.Response `json:"-"` // Value - READ-ONLY; List of file shares returned. @@ -2436,8 +2450,11 @@ func (page FileShareItemsPage) Values() []FileShareItem { } // Creates a new instance of the FileShareItemsPage type. -func NewFileShareItemsPage(getNextPage func(context.Context, FileShareItems) (FileShareItems, error)) FileShareItemsPage { - return FileShareItemsPage{fn: getNextPage} +func NewFileShareItemsPage(cur FileShareItems, getNextPage func(context.Context, FileShareItems) (FileShareItems, error)) FileShareItemsPage { + return FileShareItemsPage{ + fn: getNextPage, + fsi: cur, + } } // FileShareProperties the properties of the file share. @@ -2468,6 +2485,8 @@ type FileShareProperties struct { AccessTierStatus *string `json:"accessTierStatus,omitempty"` // ShareUsageBytes - READ-ONLY; The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files. ShareUsageBytes *int64 `json:"shareUsageBytes,omitempty"` + // SnapshotTime - READ-ONLY; Creation time of share snapshot returned in the response of list shares with expand param "snapshots". + SnapshotTime *date.Time `json:"snapshotTime,omitempty"` } // MarshalJSON is the custom marshaler for FileShareProperties. @@ -2893,8 +2912,8 @@ func (lci *ListContainerItem) UnmarshalJSON(body []byte) error { return nil } -// ListContainerItems response schema. Contains list of blobs returned, and if paging is requested or required, -// a URL to next page of containers. +// ListContainerItems response schema. Contains list of blobs returned, and if paging is requested or +// required, a URL to next page of containers. type ListContainerItems struct { autorest.Response `json:"-"` // Value - READ-ONLY; List of blobs containers returned. @@ -3046,8 +3065,11 @@ func (page ListContainerItemsPage) Values() []ListContainerItem { } // Creates a new instance of the ListContainerItemsPage type. -func NewListContainerItemsPage(getNextPage func(context.Context, ListContainerItems) (ListContainerItems, error)) ListContainerItemsPage { - return ListContainerItemsPage{fn: getNextPage} +func NewListContainerItemsPage(cur ListContainerItems, getNextPage func(context.Context, ListContainerItems) (ListContainerItems, error)) ListContainerItemsPage { + return ListContainerItemsPage{ + fn: getNextPage, + lci: cur, + } } // ListQueue ... @@ -3289,8 +3311,11 @@ func (page ListQueueResourcePage) Values() []ListQueue { } // Creates a new instance of the ListQueueResourcePage type. -func NewListQueueResourcePage(getNextPage func(context.Context, ListQueueResource) (ListQueueResource, error)) ListQueueResourcePage { - return ListQueueResourcePage{fn: getNextPage} +func NewListQueueResourcePage(cur ListQueueResource, getNextPage func(context.Context, ListQueueResource) (ListQueueResource, error)) ListQueueResourcePage { + return ListQueueResourcePage{ + fn: getNextPage, + lqr: cur, + } } // ListQueueServices ... @@ -3459,8 +3484,11 @@ func (page ListTableResourcePage) Values() []Table { } // Creates a new instance of the ListTableResourcePage type. -func NewListTableResourcePage(getNextPage func(context.Context, ListTableResource) (ListTableResource, error)) ListTableResourcePage { - return ListTableResourcePage{fn: getNextPage} +func NewListTableResourcePage(cur ListTableResource, getNextPage func(context.Context, ListTableResource) (ListTableResource, error)) ListTableResourcePage { + return ListTableResourcePage{ + fn: getNextPage, + ltr: cur, + } } // ListTableServices ... @@ -3673,8 +3701,8 @@ type ObjectReplicationPolicies struct { Value *[]ObjectReplicationPolicy `json:"value,omitempty"` } -// ObjectReplicationPolicy the replication policy between two storage accounts. Multiple rules can be defined -// in one policy. +// ObjectReplicationPolicy the replication policy between two storage accounts. Multiple rules can be +// defined in one policy. type ObjectReplicationPolicy struct { autorest.Response `json:"-"` // ObjectReplicationPolicyProperties - Returns the Storage Account Object Replication Policy. @@ -3747,9 +3775,9 @@ func (orp *ObjectReplicationPolicy) UnmarshalJSON(body []byte) error { return nil } -// ObjectReplicationPolicyFilter filters limit replication to a subset of blobs within the storage account. A -// logical OR is performed on values in the filter. If multiple filters are defined, a logical AND is performed -// on all filters. +// ObjectReplicationPolicyFilter filters limit replication to a subset of blobs within the storage account. +// A logical OR is performed on values in the filter. If multiple filters are defined, a logical AND is +// performed on all filters. type ObjectReplicationPolicyFilter struct { // PrefixMatch - Optional. Filters the results to replicate only blobs whose names begin with the specified prefix. PrefixMatch *[]string `json:"prefixMatch,omitempty"` @@ -3891,8 +3919,8 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } -// OperationListResult result of the request to list Storage operations. It contains a list of operations and a -// URL link to get the next set of results. +// OperationListResult result of the request to list Storage operations. It contains a list of operations +// and a URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` // Value - List of Storage operations supported by the Storage resource provider. @@ -4117,8 +4145,8 @@ type ProtocolSettings struct { Smb *SmbSetting `json:"smb,omitempty"` } -// ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have -// tags and a location +// ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not +// have tags and a location type ProxyResource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` @@ -4358,8 +4386,8 @@ func (r Restriction) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// RoutingPreference routing preference defines the type of network, either microsoft or internet routing to be -// used to deliver the user data, the default option is microsoft routing +// RoutingPreference routing preference defines the type of network, either microsoft or internet routing +// to be used to deliver the user data, the default option is microsoft routing type RoutingPreference struct { // RoutingChoice - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' RoutingChoice RoutingChoice `json:"routingChoice,omitempty"` @@ -4676,8 +4704,8 @@ type TagProperty struct { Upn *string `json:"upn,omitempty"` } -// TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which -// has 'tags' and a 'location' +// TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource +// which has 'tags' and a 'location' type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` diff --git a/services/preview/storage/mgmt/2020-08-01-preview/storage/storageapi/interfaces.go b/services/preview/storage/mgmt/2020-08-01-preview/storage/storageapi/interfaces.go index 42f9560df05b..cd82fd214baa 100644 --- a/services/preview/storage/mgmt/2020-08-01-preview/storage/storageapi/interfaces.go +++ b/services/preview/storage/mgmt/2020-08-01-preview/storage/storageapi/interfaces.go @@ -171,9 +171,9 @@ var _ FileServicesClientAPI = (*storage.FileServicesClient)(nil) // FileSharesClientAPI contains the set of methods on the FileSharesClient type. type FileSharesClientAPI interface { - Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare storage.FileShare) (result storage.FileShare, err error) - Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string) (result autorest.Response, err error) - Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand storage.GetShareExpand) (result storage.FileShare, err error) + Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare storage.FileShare, expand storage.PutSharesExpand) (result storage.FileShare, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, xMsSnapshot string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand storage.GetShareExpand, xMsSnapshot string) (result storage.FileShare, err error) List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand storage.ListSharesExpand) (result storage.FileShareItemsPage, err error) ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand storage.ListSharesExpand) (result storage.FileShareItemsIterator, err error) Restore(ctx context.Context, resourceGroupName string, accountName string, shareName string, deletedShare storage.DeletedShare) (result autorest.Response, err error)