build(deps): bump the go-deps group across 1 directory with 10 updates
Bumps the go-deps group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [cloud.google.com/go/compute](https://github.com/googleapis/google-cloud-go) | `1.27.1` | `1.27.3` | | [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) | `1.42.0` | `1.43.0` | | [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) | `1.6.0` | `1.7.0` | | [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage](https://github.com/Azure/azure-sdk-for-go) | `1.5.0` | `1.6.0` | | [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) | `1.54.10` | `1.54.18` | | [github.com/gophercloud/gophercloud](https://github.com/gophercloud/gophercloud) | `1.12.0` | `1.13.0` | | [github.com/openshift-online/ocm-sdk-go](https://github.com/openshift-online/ocm-sdk-go) | `0.1.425` | `0.1.429` | | [github.com/osbuild/images](https://github.com/osbuild/images) | `0.69.0` | `0.70.0` | Updates `cloud.google.com/go/compute` from 1.27.1 to 1.27.3 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-cloud-go/compare/pubsub/v1.27.1...compute/v1.27.3) Updates `cloud.google.com/go/storage` from 1.42.0 to 1.43.0 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-cloud-go/compare/spanner/v1.42.0...spanner/v1.43.0) Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.6.0 to 1.7.0 - [Release notes](https://github.com/Azure/azure-sdk-for-go/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md) - [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.6.0...sdk/azcore/v1.7.0) Updates `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage` from 1.5.0 to 1.6.0 - [Release notes](https://github.com/Azure/azure-sdk-for-go/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md) - [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.5.0...sdk/azcore/v1.6.0) Updates `github.com/aws/aws-sdk-go` from 1.54.10 to 1.54.18 - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.54.10...v1.54.18) Updates `github.com/gophercloud/gophercloud` from 1.12.0 to 1.13.0 - [Release notes](https://github.com/gophercloud/gophercloud/releases) - [Changelog](https://github.com/gophercloud/gophercloud/blob/v1.13.0/CHANGELOG.md) - [Commits](https://github.com/gophercloud/gophercloud/compare/v1.12.0...v1.13.0) Updates `github.com/openshift-online/ocm-sdk-go` from 0.1.425 to 0.1.429 - [Release notes](https://github.com/openshift-online/ocm-sdk-go/releases) - [Changelog](https://github.com/openshift-online/ocm-sdk-go/blob/main/CHANGES.md) - [Commits](https://github.com/openshift-online/ocm-sdk-go/compare/v0.1.425...v0.1.429) Updates `github.com/osbuild/images` from 0.69.0 to 0.70.0 - [Release notes](https://github.com/osbuild/images/releases) - [Commits](https://github.com/osbuild/images/compare/v0.69.0...v0.70.0) Updates `golang.org/x/sys` from 0.21.0 to 0.22.0 - [Commits](https://github.com/golang/sys/compare/v0.21.0...v0.22.0) Updates `google.golang.org/api` from 0.186.0 to 0.188.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.186.0...v0.188.0) --- updated-dependencies: - dependency-name: cloud.google.com/go/compute dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: cloud.google.com/go/storage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/gophercloud/gophercloud dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: github.com/openshift-online/ocm-sdk-go dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/osbuild/images dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
c6d669f2cc
commit
4ba7085068
153 changed files with 6445 additions and 1316 deletions
15
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md
generated
vendored
15
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md
generated
vendored
|
|
@ -1,5 +1,20 @@
|
|||
# Release History
|
||||
|
||||
## 1.12.0 (2024-06-06)
|
||||
|
||||
### Features Added
|
||||
|
||||
* Added field `StatusCodes` to `runtime.FetcherForNextLinkOptions` allowing for additional HTTP status codes indicating success.
|
||||
* Added func `NewUUID` to the `runtime` package for generating UUIDs.
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
* Fixed an issue that prevented pollers using the `Operation-Location` strategy from unmarshaling the final result in some cases.
|
||||
|
||||
### Other Changes
|
||||
|
||||
* Updated dependencies.
|
||||
|
||||
## 1.11.1 (2024-04-02)
|
||||
|
||||
### Bugs Fixed
|
||||
|
|
|
|||
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/async/async.go
generated
vendored
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/async/async.go
generated
vendored
|
|
@ -155,5 +155,5 @@ func (p *Poller[T]) Result(ctx context.Context, out *T) error {
|
|||
p.resp = resp
|
||||
}
|
||||
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.CurState), out)
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.CurState), "", out)
|
||||
}
|
||||
|
|
|
|||
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/body/body.go
generated
vendored
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/body/body.go
generated
vendored
|
|
@ -131,5 +131,5 @@ func (p *Poller[T]) Poll(ctx context.Context) (*http.Response, error) {
|
|||
}
|
||||
|
||||
func (p *Poller[T]) Result(ctx context.Context, out *T) error {
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.CurState), out)
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.CurState), "", out)
|
||||
}
|
||||
|
|
|
|||
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/fake/fake.go
generated
vendored
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/fake/fake.go
generated
vendored
|
|
@ -124,7 +124,7 @@ func (p *Poller[T]) Result(ctx context.Context, out *T) error {
|
|||
return exported.NewResponseError(p.resp)
|
||||
}
|
||||
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.FakeStatus), out)
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.FakeStatus), "", out)
|
||||
}
|
||||
|
||||
// SanitizePollerPath removes any fake-appended suffix from a URL's path.
|
||||
|
|
|
|||
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/loc/loc.go
generated
vendored
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/loc/loc.go
generated
vendored
|
|
@ -119,5 +119,5 @@ func (p *Poller[T]) Poll(ctx context.Context) (*http.Response, error) {
|
|||
}
|
||||
|
||||
func (p *Poller[T]) Result(ctx context.Context, out *T) error {
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.CurState), out)
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.CurState), "", out)
|
||||
}
|
||||
|
|
|
|||
11
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/op/op.go
generated
vendored
11
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/op/op.go
generated
vendored
|
|
@ -115,10 +115,13 @@ func (p *Poller[T]) Poll(ctx context.Context) (*http.Response, error) {
|
|||
func (p *Poller[T]) Result(ctx context.Context, out *T) error {
|
||||
var req *exported.Request
|
||||
var err error
|
||||
|
||||
// when the payload is included with the status monitor on
|
||||
// terminal success it's in the "result" JSON property
|
||||
payloadPath := "result"
|
||||
|
||||
if p.FinalState == pollers.FinalStateViaLocation && p.LocURL != "" {
|
||||
req, err = exported.NewRequest(ctx, http.MethodGet, p.LocURL)
|
||||
} else if p.FinalState == pollers.FinalStateViaOpLocation && p.Method == http.MethodPost {
|
||||
// no final GET required, terminal response should have it
|
||||
} else if rl, rlErr := poller.GetResourceLocation(p.resp); rlErr != nil && !errors.Is(rlErr, poller.ErrNoBody) {
|
||||
return rlErr
|
||||
} else if rl != "" {
|
||||
|
|
@ -134,6 +137,8 @@ func (p *Poller[T]) Result(ctx context.Context, out *T) error {
|
|||
|
||||
// if a final GET request has been created, execute it
|
||||
if req != nil {
|
||||
// no JSON path when making a final GET request
|
||||
payloadPath = ""
|
||||
resp, err := p.pl.Do(req)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
@ -141,5 +146,5 @@ func (p *Poller[T]) Result(ctx context.Context, out *T) error {
|
|||
p.resp = resp
|
||||
}
|
||||
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.CurState), out)
|
||||
return pollers.ResultHelper(p.resp, poller.Failed(p.CurState), payloadPath, out)
|
||||
}
|
||||
|
|
|
|||
14
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/util.go
generated
vendored
14
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/util.go
generated
vendored
|
|
@ -159,7 +159,7 @@ func PollHelper(ctx context.Context, endpoint string, pl azexported.Pipeline, up
|
|||
// ResultHelper processes the response as success or failure.
|
||||
// In the success case, it unmarshals the payload into either a new instance of T or out.
|
||||
// In the failure case, it creates an *azcore.Response error from the response.
|
||||
func ResultHelper[T any](resp *http.Response, failed bool, out *T) error {
|
||||
func ResultHelper[T any](resp *http.Response, failed bool, jsonPath string, out *T) error {
|
||||
// short-circuit the simple success case with no response body to unmarshal
|
||||
if resp.StatusCode == http.StatusNoContent {
|
||||
return nil
|
||||
|
|
@ -176,6 +176,18 @@ func ResultHelper[T any](resp *http.Response, failed bool, out *T) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if jsonPath != "" && len(payload) > 0 {
|
||||
// extract the payload from the specified JSON path.
|
||||
// do this before the zero-length check in case there
|
||||
// is no payload.
|
||||
jsonBody := map[string]json.RawMessage{}
|
||||
if err = json.Unmarshal(payload, &jsonBody); err != nil {
|
||||
return err
|
||||
}
|
||||
payload = jsonBody[jsonPath]
|
||||
}
|
||||
|
||||
if len(payload) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go
generated
vendored
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go
generated
vendored
|
|
@ -40,5 +40,5 @@ const (
|
|||
Module = "azcore"
|
||||
|
||||
// Version is the semantic version (see http://semver.org) of this module.
|
||||
Version = "v1.11.1"
|
||||
Version = "v1.12.0"
|
||||
)
|
||||
|
|
|
|||
13
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/pager.go
generated
vendored
13
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/pager.go
generated
vendored
|
|
@ -94,6 +94,10 @@ type FetcherForNextLinkOptions struct {
|
|||
// NextReq is the func to be called when requesting subsequent pages.
|
||||
// Used for paged operations that have a custom next link operation.
|
||||
NextReq func(context.Context, string) (*policy.Request, error)
|
||||
|
||||
// StatusCodes contains additional HTTP status codes indicating success.
|
||||
// The default value is http.StatusOK.
|
||||
StatusCodes []int
|
||||
}
|
||||
|
||||
// FetcherForNextLink is a helper containing boilerplate code to simplify creating a PagingHandler[T].Fetcher from a next link URL.
|
||||
|
|
@ -105,10 +109,13 @@ type FetcherForNextLinkOptions struct {
|
|||
func FetcherForNextLink(ctx context.Context, pl Pipeline, nextLink string, firstReq func(context.Context) (*policy.Request, error), options *FetcherForNextLinkOptions) (*http.Response, error) {
|
||||
var req *policy.Request
|
||||
var err error
|
||||
if options == nil {
|
||||
options = &FetcherForNextLinkOptions{}
|
||||
}
|
||||
if nextLink == "" {
|
||||
req, err = firstReq(ctx)
|
||||
} else if nextLink, err = EncodeQueryParams(nextLink); err == nil {
|
||||
if options != nil && options.NextReq != nil {
|
||||
if options.NextReq != nil {
|
||||
req, err = options.NextReq(ctx, nextLink)
|
||||
} else {
|
||||
req, err = NewRequest(ctx, http.MethodGet, nextLink)
|
||||
|
|
@ -121,7 +128,9 @@ func FetcherForNextLink(ctx context.Context, pl Pipeline, nextLink string, first
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !HasStatusCode(resp, http.StatusOK) {
|
||||
successCodes := []int{http.StatusOK}
|
||||
successCodes = append(successCodes, options.StatusCodes...)
|
||||
if !HasStatusCode(resp, successCodes...) {
|
||||
return nil, NewResponseError(resp)
|
||||
}
|
||||
return resp, nil
|
||||
|
|
|
|||
10
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/request.go
generated
vendored
10
vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/request.go
generated
vendored
|
|
@ -24,6 +24,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/internal/uuid"
|
||||
)
|
||||
|
||||
// Base64Encoding is usesd to specify which base-64 encoder/decoder to use when
|
||||
|
|
@ -263,3 +264,12 @@ func SkipBodyDownload(req *policy.Request) {
|
|||
|
||||
// CtxAPINameKey is used as a context key for adding/retrieving the API name.
|
||||
type CtxAPINameKey = shared.CtxAPINameKey
|
||||
|
||||
// NewUUID returns a new UUID using the RFC4122 algorithm.
|
||||
func NewUUID() (string, error) {
|
||||
u, err := uuid.New()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return u.String(), nil
|
||||
}
|
||||
|
|
|
|||
24
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md
generated
vendored
24
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md
generated
vendored
|
|
@ -1,5 +1,29 @@
|
|||
# Release History
|
||||
|
||||
## 1.7.0 (2024-06-20)
|
||||
|
||||
### Features Added
|
||||
* `AzurePipelinesCredential` authenticates an Azure Pipelines service connection with
|
||||
workload identity federation
|
||||
|
||||
### Breaking Changes
|
||||
> These changes affect only code written against a beta version such as v1.7.0-beta.1
|
||||
* Removed the persistent token caching API. It will return in v1.8.0-beta.1
|
||||
|
||||
## 1.7.0-beta.1 (2024-06-10)
|
||||
|
||||
### Features Added
|
||||
* Restored `AzurePipelinesCredential` and persistent token caching API
|
||||
|
||||
## Breaking Changes
|
||||
> These changes affect only code written against a beta version such as v1.6.0-beta.4
|
||||
* Values which `NewAzurePipelinesCredential` read from environment variables in
|
||||
prior versions are now parameters
|
||||
* Renamed `AzurePipelinesServiceConnectionCredentialOptions` to `AzurePipelinesCredentialOptions`
|
||||
|
||||
### Bugs Fixed
|
||||
* Managed identity bug fixes
|
||||
|
||||
## 1.6.0 (2024-06-10)
|
||||
|
||||
### Features Added
|
||||
|
|
|
|||
1
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md
generated
vendored
1
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md
generated
vendored
|
|
@ -140,6 +140,7 @@ client := armresources.NewResourceGroupsClient("subscription ID", chain, nil)
|
|||
|
||||
|Credential|Usage
|
||||
|-|-
|
||||
|[AzurePipelinesCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#AzurePipelinesCredential)|Authenticate an Azure Pipelines [service connection](https://learn.microsoft.com/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml)
|
||||
|[ClientAssertionCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#ClientAssertionCredential)|Authenticate a service principal with a signed client assertion
|
||||
|[ClientCertificateCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#ClientCertificateCredential)|Authenticate a service principal with a certificate
|
||||
|[ClientSecretCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#ClientSecretCredential)|Authenticate a service principal with a secret
|
||||
|
|
|
|||
1
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD
generated
vendored
1
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD
generated
vendored
|
|
@ -57,6 +57,7 @@ The following table indicates the state of in-memory and persistent caching in e
|
|||
|--------------------------------|---------------------------------------------------------------------|--------------------------|
|
||||
| `AzureCLICredential` | Not Supported | Not Supported |
|
||||
| `AzureDeveloperCLICredential` | Not Supported | Not Supported |
|
||||
| `AzurePipelinesCredential` | Supported | Supported |
|
||||
| `ClientAssertionCredential` | Supported | Supported |
|
||||
| `ClientCertificateCredential` | Supported | Supported |
|
||||
| `ClientSecretCredential` | Supported | Supported |
|
||||
|
|
|
|||
10
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md
generated
vendored
10
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md
generated
vendored
|
|
@ -10,6 +10,7 @@ This troubleshooting guide covers failure investigation techniques, common error
|
|||
- [Enable and configure logging](#enable-and-configure-logging)
|
||||
- [Troubleshoot AzureCLICredential authentication issues](#troubleshoot-azureclicredential-authentication-issues)
|
||||
- [Troubleshoot AzureDeveloperCLICredential authentication issues](#troubleshoot-azuredeveloperclicredential-authentication-issues)
|
||||
- [Troubleshoot AzurePipelinesCredential authentication issues](#troubleshoot-azurepipelinescredential-authentication-issues)
|
||||
- [Troubleshoot ClientCertificateCredential authentication issues](#troubleshoot-clientcertificatecredential-authentication-issues)
|
||||
- [Troubleshoot ClientSecretCredential authentication issues](#troubleshoot-clientsecretcredential-authentication-issues)
|
||||
- [Troubleshoot DefaultAzureCredential authentication issues](#troubleshoot-defaultazurecredential-authentication-issues)
|
||||
|
|
@ -226,6 +227,15 @@ azd auth token --output json --scope https://management.core.windows.net/.defaul
|
|||
|---|---|---|
|
||||
|no client ID/tenant ID/token file specified|Incomplete configuration|In most cases these values are provided via environment variables set by Azure Workload Identity.<ul><li>If your application runs on Azure Kubernetes Servide (AKS) or a cluster that has deployed the Azure Workload Identity admission webhook, check pod labels and service account configuration. See the [AKS documentation](https://learn.microsoft.com/azure/aks/workload-identity-deploy-cluster#disable-workload-identity) and [Azure Workload Identity troubleshooting guide](https://azure.github.io/azure-workload-identity/docs/troubleshooting.html) for more details.<li>If your application isn't running on AKS or your cluster hasn't deployed the Workload Identity admission webhook, set these values in `WorkloadIdentityCredentialOptions`
|
||||
|
||||
<a id="apc"></a>
|
||||
## Troubleshoot AzurePipelinesCredential authentication issues
|
||||
|
||||
| Error Message |Description| Mitigation |
|
||||
|---|---|---|
|
||||
| AADSTS900023: Specified tenant identifier 'some tenant ID' is neither a valid DNS name, nor a valid external domain.|The `tenantID` argument to `NewAzurePipelinesCredential` is incorrect| Verify the tenant ID. It must identify the tenant of the user-assigned managed identity or service principal configured for the service connection.|
|
||||
| No service connection found with identifier |The `serviceConnectionID` argument to `NewAzurePipelinesCredential` is incorrect| Verify the service connection ID. This parameter refers to the `resourceId` of the Azure Service Connection. It can also be found in the query string of the service connection's configuration in Azure DevOps. [Azure Pipelines documentation](https://learn.microsoft.com/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml) has more information about service connections.|
|
||||
|302 (Found) response from OIDC endpoint|The `systemAccessToken` argument to `NewAzurePipelinesCredential` is incorrect|Check pipeline configuration. This value comes from the predefined variable `System.AccessToken` [as described in Azure Pipelines documentation](https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#systemaccesstoken).|
|
||||
|
||||
## Get additional help
|
||||
|
||||
Additional information on ways to reach out for support can be found in [SUPPORT.md](https://github.com/Azure/azure-sdk-for-go/blob/main/SUPPORT.md).
|
||||
|
|
|
|||
50
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_pipelines_credential.go
generated
vendored
50
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_pipelines_credential.go
generated
vendored
|
|
@ -19,21 +19,20 @@ import (
|
|||
const (
|
||||
credNameAzurePipelines = "AzurePipelinesCredential"
|
||||
oidcAPIVersion = "7.1"
|
||||
systemAccessToken = "SYSTEM_ACCESSTOKEN"
|
||||
systemOIDCRequestURI = "SYSTEM_OIDCREQUESTURI"
|
||||
)
|
||||
|
||||
// azurePipelinesCredential authenticates with workload identity federation in an Azure Pipeline. See
|
||||
// AzurePipelinesCredential authenticates with workload identity federation in an Azure Pipeline. See
|
||||
// [Azure Pipelines documentation] for more information.
|
||||
//
|
||||
// [Azure Pipelines documentation]: https://learn.microsoft.com/azure/devops/pipelines/library/connect-to-azure?view=azure-devops#create-an-azure-resource-manager-service-connection-that-uses-workload-identity-federation
|
||||
type azurePipelinesCredential struct {
|
||||
type AzurePipelinesCredential struct {
|
||||
connectionID, oidcURI, systemAccessToken string
|
||||
cred *ClientAssertionCredential
|
||||
}
|
||||
|
||||
// azurePipelinesCredentialOptions contains optional parameters for AzurePipelinesCredential.
|
||||
type azurePipelinesCredentialOptions struct {
|
||||
// AzurePipelinesCredentialOptions contains optional parameters for AzurePipelinesCredential.
|
||||
type AzurePipelinesCredentialOptions struct {
|
||||
azcore.ClientOptions
|
||||
|
||||
// AdditionallyAllowedTenants specifies additional tenants for which the credential may acquire tokens.
|
||||
|
|
@ -48,28 +47,39 @@ type azurePipelinesCredentialOptions struct {
|
|||
DisableInstanceDiscovery bool
|
||||
}
|
||||
|
||||
// newAzurePipelinesCredential is the constructor for AzurePipelinesCredential. In addition to its required arguments,
|
||||
// it reads a security token for the running build, which is required to authenticate the service connection, from the
|
||||
// environment variable SYSTEM_ACCESSTOKEN. See the [Azure Pipelines documentation] for an example showing how to set
|
||||
// this variable in build job YAML.
|
||||
// NewAzurePipelinesCredential is the constructor for AzurePipelinesCredential.
|
||||
//
|
||||
// - tenantID: tenant ID of the service principal federated with the service connection
|
||||
// - clientID: client ID of that service principal
|
||||
// - serviceConnectionID: ID of the service connection to authenticate
|
||||
// - systemAccessToken: security token for the running build. See [Azure Pipelines documentation] for
|
||||
// an example showing how to get this value.
|
||||
//
|
||||
// [Azure Pipelines documentation]: https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#systemaccesstoken
|
||||
func newAzurePipelinesCredential(tenantID, clientID, serviceConnectionID string, options *azurePipelinesCredentialOptions) (*azurePipelinesCredential, error) {
|
||||
if options == nil {
|
||||
options = &azurePipelinesCredentialOptions{}
|
||||
func NewAzurePipelinesCredential(tenantID, clientID, serviceConnectionID, systemAccessToken string, options *AzurePipelinesCredentialOptions) (*AzurePipelinesCredential, error) {
|
||||
if !validTenantID(tenantID) {
|
||||
return nil, errInvalidTenantID
|
||||
}
|
||||
if clientID == "" {
|
||||
return nil, errors.New("no client ID specified")
|
||||
}
|
||||
if serviceConnectionID == "" {
|
||||
return nil, errors.New("no service connection ID specified")
|
||||
}
|
||||
if systemAccessToken == "" {
|
||||
return nil, errors.New("no system access token specified")
|
||||
}
|
||||
u := os.Getenv(systemOIDCRequestURI)
|
||||
if u == "" {
|
||||
return nil, fmt.Errorf("no value for environment variable %s. This should be set by Azure Pipelines", systemOIDCRequestURI)
|
||||
}
|
||||
sat := os.Getenv(systemAccessToken)
|
||||
if sat == "" {
|
||||
return nil, errors.New("no value for environment variable " + systemAccessToken)
|
||||
}
|
||||
a := azurePipelinesCredential{
|
||||
a := AzurePipelinesCredential{
|
||||
connectionID: serviceConnectionID,
|
||||
oidcURI: u,
|
||||
systemAccessToken: sat,
|
||||
systemAccessToken: systemAccessToken,
|
||||
}
|
||||
if options == nil {
|
||||
options = &AzurePipelinesCredentialOptions{}
|
||||
}
|
||||
caco := ClientAssertionCredentialOptions{
|
||||
AdditionallyAllowedTenants: options.AdditionallyAllowedTenants,
|
||||
|
|
@ -86,7 +96,7 @@ func newAzurePipelinesCredential(tenantID, clientID, serviceConnectionID string,
|
|||
}
|
||||
|
||||
// GetToken requests an access token from Microsoft Entra ID. Azure SDK clients call this method automatically.
|
||||
func (a *azurePipelinesCredential) GetToken(ctx context.Context, opts policy.TokenRequestOptions) (azcore.AccessToken, error) {
|
||||
func (a *AzurePipelinesCredential) GetToken(ctx context.Context, opts policy.TokenRequestOptions) (azcore.AccessToken, error) {
|
||||
var err error
|
||||
ctx, endSpan := runtime.StartSpan(ctx, credNameAzurePipelines+"."+traceOpGetToken, a.cred.client.azClient.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
|
|
@ -94,7 +104,7 @@ func (a *azurePipelinesCredential) GetToken(ctx context.Context, opts policy.Tok
|
|||
return tk, err
|
||||
}
|
||||
|
||||
func (a *azurePipelinesCredential) getAssertion(ctx context.Context) (string, error) {
|
||||
func (a *AzurePipelinesCredential) getAssertion(ctx context.Context) (string, error) {
|
||||
url := a.oidcURI + "?api-version=" + oidcAPIVersion + "&serviceConnectionId=" + a.connectionID
|
||||
url, err := runtime.EncodeQueryParams(url)
|
||||
if err != nil {
|
||||
|
|
|
|||
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go
generated
vendored
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go
generated
vendored
|
|
@ -83,6 +83,8 @@ func (e *AuthenticationFailedError) Error() string {
|
|||
anchor = "azure-cli"
|
||||
case credNameAzureDeveloperCLI:
|
||||
anchor = "azd"
|
||||
case credNameAzurePipelines:
|
||||
anchor = "apc"
|
||||
case credNameCert:
|
||||
anchor = "client-cert"
|
||||
case credNameSecret:
|
||||
|
|
|
|||
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go
generated
vendored
2
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go
generated
vendored
|
|
@ -14,5 +14,5 @@ const (
|
|||
module = "github.com/Azure/azure-sdk-for-go/sdk/" + component
|
||||
|
||||
// Version is the semantic version (see http://semver.org) of this module.
|
||||
version = "v1.6.0"
|
||||
version = "v1.7.0"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,78 @@
|
|||
# Release History
|
||||
|
||||
## 1.6.0 (2024-06-28)
|
||||
### Features Added
|
||||
|
||||
- New value `AccessTierCold` added to enum type `AccessTier`
|
||||
- New value `ExpirationActionBlock` added to enum type `ExpirationAction`
|
||||
- New value `MinimumTLSVersionTLS13` added to enum type `MinimumTLSVersion`
|
||||
- New value `ProvisioningStateCanceled`, `ProvisioningStateDeleting`, `ProvisioningStateFailed`, `ProvisioningStateValidateSubscriptionQuotaBegin`, `ProvisioningStateValidateSubscriptionQuotaEnd` added to enum type `ProvisioningState`
|
||||
- New value `PublicNetworkAccessSecuredByPerimeter` added to enum type `PublicNetworkAccess`
|
||||
- New enum type `IssueType` with values `IssueTypeConfigurationPropagationFailure`, `IssueTypeUnknown`
|
||||
- New enum type `ListLocalUserIncludeParam` with values `ListLocalUserIncludeParamNfsv3`
|
||||
- New enum type `NetworkSecurityPerimeterConfigurationProvisioningState` with values `NetworkSecurityPerimeterConfigurationProvisioningStateAccepted`, `NetworkSecurityPerimeterConfigurationProvisioningStateCanceled`, `NetworkSecurityPerimeterConfigurationProvisioningStateDeleting`, `NetworkSecurityPerimeterConfigurationProvisioningStateFailed`, `NetworkSecurityPerimeterConfigurationProvisioningStateSucceeded`
|
||||
- New enum type `NspAccessRuleDirection` with values `NspAccessRuleDirectionInbound`, `NspAccessRuleDirectionOutbound`
|
||||
- New enum type `ResourceAssociationAccessMode` with values `ResourceAssociationAccessModeAudit`, `ResourceAssociationAccessModeEnforced`, `ResourceAssociationAccessModeLearning`
|
||||
- New enum type `RunResult` with values `RunResultFailed`, `RunResultSucceeded`
|
||||
- New enum type `RunStatusEnum` with values `RunStatusEnumFinished`, `RunStatusEnumInProgress`
|
||||
- New enum type `Severity` with values `SeverityError`, `SeverityWarning`
|
||||
- New enum type `TriggerType` with values `TriggerTypeOnSchedule`, `TriggerTypeRunOnce`
|
||||
- New function `*ClientFactory.NewNetworkSecurityPerimeterConfigurationsClient() *NetworkSecurityPerimeterConfigurationsClient`
|
||||
- New function `*ClientFactory.NewTaskAssignmentInstancesReportClient() *TaskAssignmentInstancesReportClient`
|
||||
- New function `*ClientFactory.NewTaskAssignmentsClient() *TaskAssignmentsClient`
|
||||
- New function `*ClientFactory.NewTaskAssignmentsInstancesReportClient() *TaskAssignmentsInstancesReportClient`
|
||||
- New function `NewTaskAssignmentInstancesReportClient(string, azcore.TokenCredential, *arm.ClientOptions) (*TaskAssignmentInstancesReportClient, error)`
|
||||
- New function `*TaskAssignmentInstancesReportClient.NewListPager(string, string, string, *TaskAssignmentInstancesReportClientListOptions) *runtime.Pager[TaskAssignmentInstancesReportClientListResponse]`
|
||||
- New function `NewTaskAssignmentsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*TaskAssignmentsClient, error)`
|
||||
- New function `*TaskAssignmentsClient.BeginCreate(context.Context, string, string, string, TaskAssignment, *TaskAssignmentsClientBeginCreateOptions) (*runtime.Poller[TaskAssignmentsClientCreateResponse], error)`
|
||||
- New function `*TaskAssignmentsClient.BeginDelete(context.Context, string, string, string, *TaskAssignmentsClientBeginDeleteOptions) (*runtime.Poller[TaskAssignmentsClientDeleteResponse], error)`
|
||||
- New function `*TaskAssignmentsClient.Get(context.Context, string, string, string, *TaskAssignmentsClientGetOptions) (TaskAssignmentsClientGetResponse, error)`
|
||||
- New function `*TaskAssignmentsClient.NewListPager(string, string, *TaskAssignmentsClientListOptions) *runtime.Pager[TaskAssignmentsClientListResponse]`
|
||||
- New function `*TaskAssignmentsClient.BeginUpdate(context.Context, string, string, string, TaskAssignmentUpdateParameters, *TaskAssignmentsClientBeginUpdateOptions) (*runtime.Poller[TaskAssignmentsClientUpdateResponse], error)`
|
||||
- New function `NewTaskAssignmentsInstancesReportClient(string, azcore.TokenCredential, *arm.ClientOptions) (*TaskAssignmentsInstancesReportClient, error)`
|
||||
- New function `*TaskAssignmentsInstancesReportClient.NewListPager(string, string, *TaskAssignmentsInstancesReportClientListOptions) *runtime.Pager[TaskAssignmentsInstancesReportClientListResponse]`
|
||||
- New function `NewNetworkSecurityPerimeterConfigurationsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*NetworkSecurityPerimeterConfigurationsClient, error)`
|
||||
- New function `*NetworkSecurityPerimeterConfigurationsClient.Get(context.Context, string, string, string, *NetworkSecurityPerimeterConfigurationsClientGetOptions) (NetworkSecurityPerimeterConfigurationsClientGetResponse, error)`
|
||||
- New function `*NetworkSecurityPerimeterConfigurationsClient.NewListPager(string, string, *NetworkSecurityPerimeterConfigurationsClientListOptions) *runtime.Pager[NetworkSecurityPerimeterConfigurationsClientListResponse]`
|
||||
- New function `*NetworkSecurityPerimeterConfigurationsClient.BeginReconcile(context.Context, string, string, string, *NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions) (*runtime.Poller[NetworkSecurityPerimeterConfigurationsClientReconcileResponse], error)`
|
||||
- New struct `ExecutionTarget`
|
||||
- New struct `ExecutionTrigger`
|
||||
- New struct `ExecutionTriggerUpdate`
|
||||
- New struct `NetworkSecurityPerimeter`
|
||||
- New struct `NetworkSecurityPerimeterConfiguration`
|
||||
- New struct `NetworkSecurityPerimeterConfigurationList`
|
||||
- New struct `NetworkSecurityPerimeterConfigurationProperties`
|
||||
- New struct `NetworkSecurityPerimeterConfigurationPropertiesProfile`
|
||||
- New struct `NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation`
|
||||
- New struct `NspAccessRule`
|
||||
- New struct `NspAccessRuleProperties`
|
||||
- New struct `NspAccessRulePropertiesSubscriptionsItem`
|
||||
- New struct `ProvisioningIssue`
|
||||
- New struct `ProvisioningIssueProperties`
|
||||
- New struct `ProxyResourceAutoGenerated`
|
||||
- New struct `ResourceAutoGenerated`
|
||||
- New struct `TaskAssignment`
|
||||
- New struct `TaskAssignmentExecutionContext`
|
||||
- New struct `TaskAssignmentProperties`
|
||||
- New struct `TaskAssignmentReport`
|
||||
- New struct `TaskAssignmentUpdateExecutionContext`
|
||||
- New struct `TaskAssignmentUpdateParameters`
|
||||
- New struct `TaskAssignmentUpdateProperties`
|
||||
- New struct `TaskAssignmentUpdateReport`
|
||||
- New struct `TaskAssignmentsList`
|
||||
- New struct `TaskReportInstance`
|
||||
- New struct `TaskReportProperties`
|
||||
- New struct `TaskReportSummary`
|
||||
- New struct `TriggerParameters`
|
||||
- New struct `TriggerParametersUpdate`
|
||||
- New field `EnableExtendedGroups` in struct `AccountProperties`
|
||||
- New field `EnableExtendedGroups` in struct `AccountPropertiesCreateParameters`
|
||||
- New field `EnableExtendedGroups` in struct `AccountPropertiesUpdateParameters`
|
||||
- New field `AllowACLAuthorization`, `ExtendedGroups`, `GroupID`, `IsNFSv3Enabled`, `UserID` in struct `LocalUserProperties`
|
||||
- New field `NextLink` in struct `LocalUsers`
|
||||
- New field `Filter`, `Include`, `Maxpagesize` in struct `LocalUsersClientListOptions`
|
||||
|
||||
|
||||
## 1.5.0 (2023-11-24)
|
||||
### Features Added
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential,
|
|||
// BeginAbortHierarchicalNamespaceMigration - Abort live Migration of storage account to enable Hns
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -73,7 +73,7 @@ func (client *AccountsClient) BeginAbortHierarchicalNamespaceMigration(ctx conte
|
|||
// AbortHierarchicalNamespaceMigration - Abort live Migration of storage account to enable Hns
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *AccountsClient) abortHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginAbortHierarchicalNamespaceMigrationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginAbortHierarchicalNamespaceMigration"
|
||||
|
|
@ -115,7 +115,7 @@ func (client *AccountsClient) abortHierarchicalNamespaceMigrationCreateRequest(c
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -124,7 +124,7 @@ func (client *AccountsClient) abortHierarchicalNamespaceMigrationCreateRequest(c
|
|||
// CheckNameAvailability - Checks that the storage account name is valid and is not already in use.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - options - AccountsClientCheckNameAvailabilityOptions contains the optional parameters for the AccountsClient.CheckNameAvailability
|
||||
|
|
@ -163,7 +163,7 @@ func (client *AccountsClient) checkNameAvailabilityCreateRequest(ctx context.Con
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, accountName); err != nil {
|
||||
|
|
@ -187,7 +187,7 @@ func (client *AccountsClient) checkNameAvailabilityHandleResponse(resp *http.Res
|
|||
// set of properties, the request will succeed.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -216,7 +216,7 @@ func (client *AccountsClient) BeginCreate(ctx context.Context, resourceGroupName
|
|||
// set of properties, the request will succeed.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *AccountsClient) create(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters, options *AccountsClientBeginCreateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginCreate"
|
||||
|
|
@ -258,7 +258,7 @@ func (client *AccountsClient) createCreateRequest(ctx context.Context, resourceG
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
@ -273,7 +273,7 @@ func (client *AccountsClient) createCreateRequest(ctx context.Context, resourceG
|
|||
// synchronously across three Azure availability zones in the primary region.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -304,7 +304,7 @@ func (client *AccountsClient) BeginCustomerInitiatedMigration(ctx context.Contex
|
|||
// synchronously across three Azure availability zones in the primary region.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *AccountsClient) customerInitiatedMigration(ctx context.Context, resourceGroupName string, accountName string, parameters AccountMigration, options *AccountsClientBeginCustomerInitiatedMigrationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginCustomerInitiatedMigration"
|
||||
|
|
@ -346,7 +346,7 @@ func (client *AccountsClient) customerInitiatedMigrationCreateRequest(ctx contex
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
@ -358,7 +358,7 @@ func (client *AccountsClient) customerInitiatedMigrationCreateRequest(ctx contex
|
|||
// Delete - Deletes a storage account in Microsoft Azure.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -404,7 +404,7 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
return req, nil
|
||||
}
|
||||
|
|
@ -420,7 +420,7 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG
|
|||
// 'Planned'. Learn more about the failover options here- https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -454,7 +454,7 @@ func (client *AccountsClient) BeginFailover(ctx context.Context, resourceGroupNa
|
|||
// 'Planned'. Learn more about the failover options here- https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *AccountsClient) failover(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginFailoverOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginFailover"
|
||||
|
|
@ -496,7 +496,7 @@ func (client *AccountsClient) failoverCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
if options != nil && options.FailoverType != nil {
|
||||
reqQP.Set("failoverType", "Planned")
|
||||
}
|
||||
|
|
@ -507,7 +507,7 @@ func (client *AccountsClient) failoverCreateRequest(ctx context.Context, resourc
|
|||
// GetCustomerInitiatedMigration - Gets the status of the ongoing migration for the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -560,7 +560,7 @@ func (client *AccountsClient) getCustomerInitiatedMigrationCreateRequest(ctx con
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -579,7 +579,7 @@ func (client *AccountsClient) getCustomerInitiatedMigrationHandleResponse(resp *
|
|||
// and account status. The ListKeys operation should be used to retrieve storage keys.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -626,10 +626,10 @@ func (client *AccountsClient) getPropertiesCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
if options != nil && options.Expand != nil {
|
||||
reqQP.Set("$expand", string(*options.Expand))
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -647,7 +647,7 @@ func (client *AccountsClient) getPropertiesHandleResponse(resp *http.Response) (
|
|||
// BeginHierarchicalNamespaceMigration - Live Migration of storage account to enable Hns
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -677,7 +677,7 @@ func (client *AccountsClient) BeginHierarchicalNamespaceMigration(ctx context.Co
|
|||
// HierarchicalNamespaceMigration - Live Migration of storage account to enable Hns
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *AccountsClient) hierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, requestType string, options *AccountsClientBeginHierarchicalNamespaceMigrationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginHierarchicalNamespaceMigration"
|
||||
|
|
@ -719,7 +719,7 @@ func (client *AccountsClient) hierarchicalNamespaceMigrationCreateRequest(ctx co
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
reqQP.Set("requestType", requestType)
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
|
|
@ -729,7 +729,7 @@ func (client *AccountsClient) hierarchicalNamespaceMigrationCreateRequest(ctx co
|
|||
// NewListPager - Lists all the storage accounts available under the subscription. Note that storage keys are not returned;
|
||||
// use the ListKeys operation for this.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - options - AccountsClientListOptions contains the optional parameters for the AccountsClient.NewListPager method.
|
||||
func (client *AccountsClient) NewListPager(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] {
|
||||
return runtime.NewPager(runtime.PagingHandler[AccountsClientListResponse]{
|
||||
|
|
@ -766,7 +766,7 @@ func (client *AccountsClient) listCreateRequest(ctx context.Context, options *Ac
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -784,7 +784,7 @@ func (client *AccountsClient) listHandleResponse(resp *http.Response) (AccountsC
|
|||
// ListAccountSAS - List SAS credentials of a storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -832,7 +832,7 @@ func (client *AccountsClient) listAccountSASCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
@ -853,7 +853,7 @@ func (client *AccountsClient) listAccountSASHandleResponse(resp *http.Response)
|
|||
// NewListByResourceGroupPager - Lists all the storage accounts available under the given resource group. Note that storage
|
||||
// keys are not returned; use the ListKeys operation for this.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - options - AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.NewListByResourceGroupPager
|
||||
// method.
|
||||
|
|
@ -896,7 +896,7 @@ func (client *AccountsClient) listByResourceGroupCreateRequest(ctx context.Conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -914,7 +914,7 @@ func (client *AccountsClient) listByResourceGroupHandleResponse(resp *http.Respo
|
|||
// ListKeys - Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -961,10 +961,10 @@ func (client *AccountsClient) listKeysCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
if options != nil && options.Expand != nil {
|
||||
reqQP.Set("$expand", "kerb")
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -982,7 +982,7 @@ func (client *AccountsClient) listKeysHandleResponse(resp *http.Response) (Accou
|
|||
// ListServiceSAS - List service SAS credentials of a specific resource.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -1030,7 +1030,7 @@ func (client *AccountsClient) listServiceSASCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
@ -1051,7 +1051,7 @@ func (client *AccountsClient) listServiceSASHandleResponse(resp *http.Response)
|
|||
// RegenerateKey - Regenerates one of the access keys or Kerberos keys for the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -1099,7 +1099,7 @@ func (client *AccountsClient) regenerateKeyCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, regenerateKey); err != nil {
|
||||
|
|
@ -1120,7 +1120,7 @@ func (client *AccountsClient) regenerateKeyHandleResponse(resp *http.Response) (
|
|||
// BeginRestoreBlobRanges - Restore blobs in the specified blob ranges
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -1148,7 +1148,7 @@ func (client *AccountsClient) BeginRestoreBlobRanges(ctx context.Context, resour
|
|||
// RestoreBlobRanges - Restore blobs in the specified blob ranges
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *AccountsClient) restoreBlobRanges(ctx context.Context, resourceGroupName string, accountName string, parameters BlobRestoreParameters, options *AccountsClientBeginRestoreBlobRangesOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginRestoreBlobRanges"
|
||||
|
|
@ -1190,7 +1190,7 @@ func (client *AccountsClient) restoreBlobRangesCreateRequest(ctx context.Context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
@ -1202,7 +1202,7 @@ func (client *AccountsClient) restoreBlobRangesCreateRequest(ctx context.Context
|
|||
// RevokeUserDelegationKeys - Revoke user delegation keys.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -1249,7 +1249,7 @@ func (client *AccountsClient) revokeUserDelegationKeysCreateRequest(ctx context.
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
return req, nil
|
||||
}
|
||||
|
|
@ -1263,7 +1263,7 @@ func (client *AccountsClient) revokeUserDelegationKeysCreateRequest(ctx context.
|
|||
// location and name of the storage account cannot be changed after creation.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -1311,7 +1311,7 @@ func (client *AccountsClient) updateCreateRequest(ctx context.Context, resourceG
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
"AssetsRepo": "Azure/azure-sdk-assets",
|
||||
"AssetsRepoPrefixPath": "go",
|
||||
"TagPrefix": "go/resourcemanager/storage/armstorage",
|
||||
"Tag": "go/resourcemanager/storage/armstorage_c9d59e874d"
|
||||
"Tag": "go/resourcemanager/storage/armstorage_a26d68f572"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
``` yaml
|
||||
azure-arm: true
|
||||
require:
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/0baf811c3c76c87b3c127d098519bd97141222dd/specification/storage/resource-manager/readme.md
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/0baf811c3c76c87b3c127d098519bd97141222dd/specification/storage/resource-manager/readme.go.md
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/220ad9c6554fc7d6d10a89bdb441c1e3b36e3285/specification/storage/resource-manager/readme.md
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/220ad9c6554fc7d6d10a89bdb441c1e3b36e3285/specification/storage/resource-manager/readme.go.md
|
||||
license-header: MICROSOFT_MIT_NO_VERSION
|
||||
module-version: 1.5.0
|
||||
module-version: 1.6.0
|
||||
modelerfour:
|
||||
seal-single-value-enum-by-default: true
|
||||
tag: package-2023-01
|
||||
tag: package-2023-05
|
||||
```
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ func NewBlobContainersClient(subscriptionID string, credential azcore.TokenCrede
|
|||
// clears out only the specified tags in the request.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -103,7 +103,7 @@ func (client *BlobContainersClient) clearLegalHoldCreateRequest(ctx context.Cont
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, legalHold); err != nil {
|
||||
|
|
@ -126,7 +126,7 @@ func (client *BlobContainersClient) clearLegalHoldHandleResponse(resp *http.Resp
|
|||
// contained by the container.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -181,7 +181,7 @@ func (client *BlobContainersClient) createCreateRequest(ctx context.Context, res
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, blobContainer); err != nil {
|
||||
|
|
@ -203,7 +203,7 @@ func (client *BlobContainersClient) createHandleResponse(resp *http.Response) (B
|
|||
// but not required for this operation.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -259,12 +259,12 @@ func (client *BlobContainersClient) createOrUpdateImmutabilityPolicyCreateReques
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.IfMatch != nil {
|
||||
req.Raw().Header["If-Match"] = []string{*options.IfMatch}
|
||||
}
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Parameters != nil {
|
||||
if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil {
|
||||
return nil, err
|
||||
|
|
@ -289,7 +289,7 @@ func (client *BlobContainersClient) createOrUpdateImmutabilityPolicyHandleRespon
|
|||
// Delete - Deletes specified container under its account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -342,7 +342,7 @@ func (client *BlobContainersClient) deleteCreateRequest(ctx context.Context, res
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
return req, nil
|
||||
}
|
||||
|
|
@ -353,7 +353,7 @@ func (client *BlobContainersClient) deleteCreateRequest(ctx context.Context, res
|
|||
// container.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -412,10 +412,10 @@ func (client *BlobContainersClient) deleteImmutabilityPolicyCreateRequest(ctx co
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["If-Match"] = []string{ifMatch}
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
req.Raw().Header["If-Match"] = []string{ifMatch}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
|
|
@ -435,7 +435,7 @@ func (client *BlobContainersClient) deleteImmutabilityPolicyHandleResponse(resp
|
|||
// allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -493,10 +493,10 @@ func (client *BlobContainersClient) extendImmutabilityPolicyCreateRequest(ctx co
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["If-Match"] = []string{ifMatch}
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
req.Raw().Header["If-Match"] = []string{ifMatch}
|
||||
if options != nil && options.Parameters != nil {
|
||||
if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil {
|
||||
return nil, err
|
||||
|
|
@ -521,7 +521,7 @@ func (client *BlobContainersClient) extendImmutabilityPolicyHandleResponse(resp
|
|||
// Get - Gets properties of a specified container.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -575,7 +575,7 @@ func (client *BlobContainersClient) getCreateRequest(ctx context.Context, resour
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -594,7 +594,7 @@ func (client *BlobContainersClient) getHandleResponse(resp *http.Response) (Blob
|
|||
// body.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -650,12 +650,12 @@ func (client *BlobContainersClient) getImmutabilityPolicyCreateRequest(ctx conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.IfMatch != nil {
|
||||
req.Raw().Header["If-Match"] = []string{*options.IfMatch}
|
||||
}
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
|
|
@ -675,7 +675,7 @@ func (client *BlobContainersClient) getImmutabilityPolicyHandleResponse(resp *ht
|
|||
// can be 15 to 60 seconds, or can be infinite.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -729,7 +729,7 @@ func (client *BlobContainersClient) leaseCreateRequest(ctx context.Context, reso
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Parameters != nil {
|
||||
|
|
@ -753,7 +753,7 @@ func (client *BlobContainersClient) leaseHandleResponse(resp *http.Response) (Bl
|
|||
// NewListPager - Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation
|
||||
// token.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -801,16 +801,16 @@ func (client *BlobContainersClient) listCreateRequest(ctx context.Context, resou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", *options.Maxpagesize)
|
||||
}
|
||||
if options != nil && options.Filter != nil {
|
||||
reqQP.Set("$filter", *options.Filter)
|
||||
}
|
||||
if options != nil && options.Include != nil {
|
||||
reqQP.Set("$include", string(*options.Include))
|
||||
}
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", *options.Maxpagesize)
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -829,7 +829,7 @@ func (client *BlobContainersClient) listHandleResponse(resp *http.Response) (Blo
|
|||
// action. ETag in If-Match is required for this operation.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -887,10 +887,10 @@ func (client *BlobContainersClient) lockImmutabilityPolicyCreateRequest(ctx cont
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["If-Match"] = []string{ifMatch}
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
req.Raw().Header["If-Match"] = []string{ifMatch}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
|
|
@ -911,7 +911,7 @@ func (client *BlobContainersClient) lockImmutabilityPolicyHandleResponse(resp *h
|
|||
// unlocked state, Account level versioning must be enabled and there should be no Legal hold on the container.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -943,7 +943,7 @@ func (client *BlobContainersClient) BeginObjectLevelWorm(ctx context.Context, re
|
|||
// unlocked state, Account level versioning must be enabled and there should be no Legal hold on the container.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *BlobContainersClient) objectLevelWorm(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersClientBeginObjectLevelWormOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BlobContainersClient.BeginObjectLevelWorm"
|
||||
|
|
@ -989,7 +989,7 @@ func (client *BlobContainersClient) objectLevelWormCreateRequest(ctx context.Con
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -999,7 +999,7 @@ func (client *BlobContainersClient) objectLevelWormCreateRequest(ctx context.Con
|
|||
// pattern and does not clear out the existing tags that are not specified in the request.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -1055,7 +1055,7 @@ func (client *BlobContainersClient) setLegalHoldCreateRequest(ctx context.Contex
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, legalHold); err != nil {
|
||||
|
|
@ -1077,7 +1077,7 @@ func (client *BlobContainersClient) setLegalHoldHandleResponse(resp *http.Respon
|
|||
// Update fails if the specified container doesn't already exist.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -1132,7 +1132,7 @@ func (client *BlobContainersClient) updateCreateRequest(ctx context.Context, res
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, blobContainer); err != nil {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func NewBlobInventoryPoliciesClient(subscriptionID string, credential azcore.Tok
|
|||
// CreateOrUpdate - Sets the blob inventory policy to the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -100,7 +100,7 @@ func (client *BlobInventoryPoliciesClient) createOrUpdateCreateRequest(ctx conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, properties); err != nil {
|
||||
|
|
@ -121,7 +121,7 @@ func (client *BlobInventoryPoliciesClient) createOrUpdateHandleResponse(resp *ht
|
|||
// Delete - Deletes the blob inventory policy associated with the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -173,7 +173,7 @@ func (client *BlobInventoryPoliciesClient) deleteCreateRequest(ctx context.Conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -182,7 +182,7 @@ func (client *BlobInventoryPoliciesClient) deleteCreateRequest(ctx context.Conte
|
|||
// Get - Gets the blob inventory policy associated with the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -235,7 +235,7 @@ func (client *BlobInventoryPoliciesClient) getCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -252,7 +252,7 @@ func (client *BlobInventoryPoliciesClient) getHandleResponse(resp *http.Response
|
|||
|
||||
// NewListPager - Gets the blob inventory policy associated with the specified storage account.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -302,7 +302,7 @@ func (client *BlobInventoryPoliciesClient) listCreateRequest(ctx context.Context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ func NewBlobServicesClient(subscriptionID string, credential azcore.TokenCredent
|
|||
// and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -96,7 +96,7 @@ func (client *BlobServicesClient) getServicePropertiesCreateRequest(ctx context.
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -113,7 +113,7 @@ func (client *BlobServicesClient) getServicePropertiesHandleResponse(resp *http.
|
|||
|
||||
// NewListPager - List blob services of storage account. It returns a collection of one object named default.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -162,7 +162,7 @@ func (client *BlobServicesClient) listCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -181,7 +181,7 @@ func (client *BlobServicesClient) listHandleResponse(resp *http.Response) (BlobS
|
|||
// and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -232,7 +232,7 @@ func (client *BlobServicesClient) setServicePropertiesCreateRequest(ctx context.
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
|
|||
|
|
@ -21,8 +21,9 @@ pr:
|
|||
include:
|
||||
- sdk/resourcemanager/storage/armstorage/
|
||||
|
||||
stages:
|
||||
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
|
||||
extends:
|
||||
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
|
||||
parameters:
|
||||
IncludeRelease: true
|
||||
ServiceDirectory: 'resourcemanager/storage/armstorage'
|
||||
UsePipelineProxy: false
|
||||
|
|
|
|||
|
|
@ -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,132 +26,203 @@ 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
|
||||
}
|
||||
|
||||
// NewAccountsClient creates a new instance of AccountsClient.
|
||||
func (c *ClientFactory) NewAccountsClient() *AccountsClient {
|
||||
subClient, _ := NewAccountsClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &AccountsClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewBlobContainersClient creates a new instance of BlobContainersClient.
|
||||
func (c *ClientFactory) NewBlobContainersClient() *BlobContainersClient {
|
||||
subClient, _ := NewBlobContainersClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &BlobContainersClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewBlobInventoryPoliciesClient creates a new instance of BlobInventoryPoliciesClient.
|
||||
func (c *ClientFactory) NewBlobInventoryPoliciesClient() *BlobInventoryPoliciesClient {
|
||||
subClient, _ := NewBlobInventoryPoliciesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &BlobInventoryPoliciesClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewBlobServicesClient creates a new instance of BlobServicesClient.
|
||||
func (c *ClientFactory) NewBlobServicesClient() *BlobServicesClient {
|
||||
subClient, _ := NewBlobServicesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &BlobServicesClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewDeletedAccountsClient creates a new instance of DeletedAccountsClient.
|
||||
func (c *ClientFactory) NewDeletedAccountsClient() *DeletedAccountsClient {
|
||||
subClient, _ := NewDeletedAccountsClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &DeletedAccountsClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewEncryptionScopesClient creates a new instance of EncryptionScopesClient.
|
||||
func (c *ClientFactory) NewEncryptionScopesClient() *EncryptionScopesClient {
|
||||
subClient, _ := NewEncryptionScopesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &EncryptionScopesClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewFileServicesClient creates a new instance of FileServicesClient.
|
||||
func (c *ClientFactory) NewFileServicesClient() *FileServicesClient {
|
||||
subClient, _ := NewFileServicesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &FileServicesClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewFileSharesClient creates a new instance of FileSharesClient.
|
||||
func (c *ClientFactory) NewFileSharesClient() *FileSharesClient {
|
||||
subClient, _ := NewFileSharesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &FileSharesClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewLocalUsersClient creates a new instance of LocalUsersClient.
|
||||
func (c *ClientFactory) NewLocalUsersClient() *LocalUsersClient {
|
||||
subClient, _ := NewLocalUsersClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &LocalUsersClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewManagementPoliciesClient creates a new instance of ManagementPoliciesClient.
|
||||
func (c *ClientFactory) NewManagementPoliciesClient() *ManagementPoliciesClient {
|
||||
subClient, _ := NewManagementPoliciesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &ManagementPoliciesClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewNetworkSecurityPerimeterConfigurationsClient creates a new instance of NetworkSecurityPerimeterConfigurationsClient.
|
||||
func (c *ClientFactory) NewNetworkSecurityPerimeterConfigurationsClient() *NetworkSecurityPerimeterConfigurationsClient {
|
||||
return &NetworkSecurityPerimeterConfigurationsClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewObjectReplicationPoliciesClient creates a new instance of ObjectReplicationPoliciesClient.
|
||||
func (c *ClientFactory) NewObjectReplicationPoliciesClient() *ObjectReplicationPoliciesClient {
|
||||
subClient, _ := NewObjectReplicationPoliciesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &ObjectReplicationPoliciesClient{
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
// NewQueueClient creates a new instance of QueueClient.
|
||||
func (c *ClientFactory) NewQueueClient() *QueueClient {
|
||||
subClient, _ := NewQueueClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &QueueClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewQueueServicesClient creates a new instance of QueueServicesClient.
|
||||
func (c *ClientFactory) NewQueueServicesClient() *QueueServicesClient {
|
||||
subClient, _ := NewQueueServicesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &QueueServicesClient{
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
// NewTableClient creates a new instance of TableClient.
|
||||
func (c *ClientFactory) NewTableClient() *TableClient {
|
||||
subClient, _ := NewTableClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &TableClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewTableServicesClient creates a new instance of TableServicesClient.
|
||||
func (c *ClientFactory) NewTableServicesClient() *TableServicesClient {
|
||||
subClient, _ := NewTableServicesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &TableServicesClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewTaskAssignmentInstancesReportClient creates a new instance of TaskAssignmentInstancesReportClient.
|
||||
func (c *ClientFactory) NewTaskAssignmentInstancesReportClient() *TaskAssignmentInstancesReportClient {
|
||||
return &TaskAssignmentInstancesReportClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewTaskAssignmentsClient creates a new instance of TaskAssignmentsClient.
|
||||
func (c *ClientFactory) NewTaskAssignmentsClient() *TaskAssignmentsClient {
|
||||
return &TaskAssignmentsClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewTaskAssignmentsInstancesReportClient creates a new instance of TaskAssignmentsInstancesReportClient.
|
||||
func (c *ClientFactory) NewTaskAssignmentsInstancesReportClient() *TaskAssignmentsInstancesReportClient {
|
||||
return &TaskAssignmentsInstancesReportClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
||||
// NewUsagesClient creates a new instance of UsagesClient.
|
||||
func (c *ClientFactory) NewUsagesClient() *UsagesClient {
|
||||
subClient, _ := NewUsagesClient(c.subscriptionID, c.credential, c.options)
|
||||
return subClient
|
||||
return &UsagesClient{
|
||||
subscriptionID: c.subscriptionID,
|
||||
internal: c.internal,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
191
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/constants.go
generated
vendored
191
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/constants.go
generated
vendored
|
|
@ -10,7 +10,7 @@ package armstorage
|
|||
|
||||
const (
|
||||
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
|
||||
moduleVersion = "v1.5.0"
|
||||
moduleVersion = "v1.6.0"
|
||||
)
|
||||
|
||||
// AccessTier - Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium'
|
||||
|
|
@ -19,6 +19,7 @@ const (
|
|||
type AccessTier string
|
||||
|
||||
const (
|
||||
AccessTierCold AccessTier = "Cold"
|
||||
AccessTierCool AccessTier = "Cool"
|
||||
AccessTierHot AccessTier = "Hot"
|
||||
AccessTierPremium AccessTier = "Premium"
|
||||
|
|
@ -27,6 +28,7 @@ const (
|
|||
// PossibleAccessTierValues returns the possible values for the AccessTier const type.
|
||||
func PossibleAccessTierValues() []AccessTier {
|
||||
return []AccessTier{
|
||||
AccessTierCold,
|
||||
AccessTierCool,
|
||||
AccessTierHot,
|
||||
AccessTierPremium,
|
||||
|
|
@ -331,16 +333,20 @@ func PossibleEncryptionScopeStateValues() []EncryptionScopeState {
|
|||
}
|
||||
}
|
||||
|
||||
// ExpirationAction - The SAS expiration action. Can only be Log.
|
||||
// ExpirationAction - The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated.
|
||||
// The 'Log' action can be used for audit purposes and the 'Block' action can be used to block
|
||||
// and deny the usage of SAS tokens that do not adhere to the sas policy expiration period.
|
||||
type ExpirationAction string
|
||||
|
||||
const (
|
||||
ExpirationActionLog ExpirationAction = "Log"
|
||||
ExpirationActionBlock ExpirationAction = "Block"
|
||||
ExpirationActionLog ExpirationAction = "Log"
|
||||
)
|
||||
|
||||
// PossibleExpirationActionValues returns the possible values for the ExpirationAction const type.
|
||||
func PossibleExpirationActionValues() []ExpirationAction {
|
||||
return []ExpirationAction{
|
||||
ExpirationActionBlock,
|
||||
ExpirationActionLog,
|
||||
}
|
||||
}
|
||||
|
|
@ -481,6 +487,22 @@ func PossibleInventoryRuleTypeValues() []InventoryRuleType {
|
|||
}
|
||||
}
|
||||
|
||||
// IssueType - Type of issue
|
||||
type IssueType string
|
||||
|
||||
const (
|
||||
IssueTypeConfigurationPropagationFailure IssueType = "ConfigurationPropagationFailure"
|
||||
IssueTypeUnknown IssueType = "Unknown"
|
||||
)
|
||||
|
||||
// PossibleIssueTypeValues returns the possible values for the IssueType const type.
|
||||
func PossibleIssueTypeValues() []IssueType {
|
||||
return []IssueType{
|
||||
IssueTypeConfigurationPropagationFailure,
|
||||
IssueTypeUnknown,
|
||||
}
|
||||
}
|
||||
|
||||
// KeyPermission - Permissions for the key -- read-only or full permissions.
|
||||
type KeyPermission string
|
||||
|
||||
|
|
@ -697,6 +719,19 @@ func PossibleListEncryptionScopesIncludeValues() []ListEncryptionScopesInclude {
|
|||
}
|
||||
}
|
||||
|
||||
type ListLocalUserIncludeParam string
|
||||
|
||||
const (
|
||||
ListLocalUserIncludeParamNfsv3 ListLocalUserIncludeParam = "nfsv3"
|
||||
)
|
||||
|
||||
// PossibleListLocalUserIncludeParamValues returns the possible values for the ListLocalUserIncludeParam const type.
|
||||
func PossibleListLocalUserIncludeParamValues() []ListLocalUserIncludeParam {
|
||||
return []ListLocalUserIncludeParam{
|
||||
ListLocalUserIncludeParamNfsv3,
|
||||
}
|
||||
}
|
||||
|
||||
type ManagementPolicyName string
|
||||
|
||||
const (
|
||||
|
|
@ -769,6 +804,7 @@ const (
|
|||
MinimumTLSVersionTLS10 MinimumTLSVersion = "TLS1_0"
|
||||
MinimumTLSVersionTLS11 MinimumTLSVersion = "TLS1_1"
|
||||
MinimumTLSVersionTLS12 MinimumTLSVersion = "TLS1_2"
|
||||
MinimumTLSVersionTLS13 MinimumTLSVersion = "TLS1_3"
|
||||
)
|
||||
|
||||
// PossibleMinimumTLSVersionValues returns the possible values for the MinimumTLSVersion const type.
|
||||
|
|
@ -777,6 +813,7 @@ func PossibleMinimumTLSVersionValues() []MinimumTLSVersion {
|
|||
MinimumTLSVersionTLS10,
|
||||
MinimumTLSVersionTLS11,
|
||||
MinimumTLSVersionTLS12,
|
||||
MinimumTLSVersionTLS13,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -794,6 +831,45 @@ func PossibleNameValues() []Name {
|
|||
}
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationProvisioningState - Provisioning state of Network Security Perimeter configuration
|
||||
// propagation
|
||||
type NetworkSecurityPerimeterConfigurationProvisioningState string
|
||||
|
||||
const (
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateAccepted NetworkSecurityPerimeterConfigurationProvisioningState = "Accepted"
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateCanceled NetworkSecurityPerimeterConfigurationProvisioningState = "Canceled"
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateDeleting NetworkSecurityPerimeterConfigurationProvisioningState = "Deleting"
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateFailed NetworkSecurityPerimeterConfigurationProvisioningState = "Failed"
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateSucceeded NetworkSecurityPerimeterConfigurationProvisioningState = "Succeeded"
|
||||
)
|
||||
|
||||
// PossibleNetworkSecurityPerimeterConfigurationProvisioningStateValues returns the possible values for the NetworkSecurityPerimeterConfigurationProvisioningState const type.
|
||||
func PossibleNetworkSecurityPerimeterConfigurationProvisioningStateValues() []NetworkSecurityPerimeterConfigurationProvisioningState {
|
||||
return []NetworkSecurityPerimeterConfigurationProvisioningState{
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateAccepted,
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateCanceled,
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateDeleting,
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateFailed,
|
||||
NetworkSecurityPerimeterConfigurationProvisioningStateSucceeded,
|
||||
}
|
||||
}
|
||||
|
||||
// NspAccessRuleDirection - Direction of Access Rule
|
||||
type NspAccessRuleDirection string
|
||||
|
||||
const (
|
||||
NspAccessRuleDirectionInbound NspAccessRuleDirection = "Inbound"
|
||||
NspAccessRuleDirectionOutbound NspAccessRuleDirection = "Outbound"
|
||||
)
|
||||
|
||||
// PossibleNspAccessRuleDirectionValues returns the possible values for the NspAccessRuleDirection const type.
|
||||
func PossibleNspAccessRuleDirectionValues() []NspAccessRuleDirection {
|
||||
return []NspAccessRuleDirection{
|
||||
NspAccessRuleDirectionInbound,
|
||||
NspAccessRuleDirectionOutbound,
|
||||
}
|
||||
}
|
||||
|
||||
// ObjectType - This is a required field. This field specifies the scope of the inventory created either at the blob or container
|
||||
// level.
|
||||
type ObjectType string
|
||||
|
|
@ -918,17 +994,27 @@ func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointSer
|
|||
type ProvisioningState string
|
||||
|
||||
const (
|
||||
ProvisioningStateCreating ProvisioningState = "Creating"
|
||||
ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS"
|
||||
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
|
||||
ProvisioningStateCanceled ProvisioningState = "Canceled"
|
||||
ProvisioningStateCreating ProvisioningState = "Creating"
|
||||
ProvisioningStateDeleting ProvisioningState = "Deleting"
|
||||
ProvisioningStateFailed ProvisioningState = "Failed"
|
||||
ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS"
|
||||
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
|
||||
ProvisioningStateValidateSubscriptionQuotaBegin ProvisioningState = "ValidateSubscriptionQuotaBegin"
|
||||
ProvisioningStateValidateSubscriptionQuotaEnd ProvisioningState = "ValidateSubscriptionQuotaEnd"
|
||||
)
|
||||
|
||||
// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
|
||||
func PossibleProvisioningStateValues() []ProvisioningState {
|
||||
return []ProvisioningState{
|
||||
ProvisioningStateCanceled,
|
||||
ProvisioningStateCreating,
|
||||
ProvisioningStateDeleting,
|
||||
ProvisioningStateFailed,
|
||||
ProvisioningStateResolvingDNS,
|
||||
ProvisioningStateSucceeded,
|
||||
ProvisioningStateValidateSubscriptionQuotaBegin,
|
||||
ProvisioningStateValidateSubscriptionQuotaEnd,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -950,13 +1036,15 @@ func PossiblePublicAccessValues() []PublicAccess {
|
|||
}
|
||||
}
|
||||
|
||||
// PublicNetworkAccess - Allow or disallow public network access to Storage Account. Value is optional but if passed in, must
|
||||
// be 'Enabled' or 'Disabled'.
|
||||
// PublicNetworkAccess - Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access
|
||||
// to Storage Account. Value is optional but if passed in, must be 'Enabled', 'Disabled' or
|
||||
// 'SecuredByPerimeter'.
|
||||
type PublicNetworkAccess string
|
||||
|
||||
const (
|
||||
PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
|
||||
PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
|
||||
PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
|
||||
PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
|
||||
PublicNetworkAccessSecuredByPerimeter PublicNetworkAccess = "SecuredByPerimeter"
|
||||
)
|
||||
|
||||
// PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
|
||||
|
|
@ -964,6 +1052,7 @@ func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
|
|||
return []PublicNetworkAccess{
|
||||
PublicNetworkAccessDisabled,
|
||||
PublicNetworkAccessEnabled,
|
||||
PublicNetworkAccessSecuredByPerimeter,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1002,6 +1091,24 @@ func PossibleReasonCodeValues() []ReasonCode {
|
|||
}
|
||||
}
|
||||
|
||||
// ResourceAssociationAccessMode - Access Mode of the resource association
|
||||
type ResourceAssociationAccessMode string
|
||||
|
||||
const (
|
||||
ResourceAssociationAccessModeAudit ResourceAssociationAccessMode = "Audit"
|
||||
ResourceAssociationAccessModeEnforced ResourceAssociationAccessMode = "Enforced"
|
||||
ResourceAssociationAccessModeLearning ResourceAssociationAccessMode = "Learning"
|
||||
)
|
||||
|
||||
// PossibleResourceAssociationAccessModeValues returns the possible values for the ResourceAssociationAccessMode const type.
|
||||
func PossibleResourceAssociationAccessModeValues() []ResourceAssociationAccessMode {
|
||||
return []ResourceAssociationAccessMode{
|
||||
ResourceAssociationAccessModeAudit,
|
||||
ResourceAssociationAccessModeEnforced,
|
||||
ResourceAssociationAccessModeLearning,
|
||||
}
|
||||
}
|
||||
|
||||
// RootSquashType - The property is for NFS share only. The default is NoRootSquash.
|
||||
type RootSquashType string
|
||||
|
||||
|
|
@ -1050,6 +1157,38 @@ func PossibleRuleTypeValues() []RuleType {
|
|||
}
|
||||
}
|
||||
|
||||
// RunResult - Represents the overall result of the execution for the run instance
|
||||
type RunResult string
|
||||
|
||||
const (
|
||||
RunResultFailed RunResult = "Failed"
|
||||
RunResultSucceeded RunResult = "Succeeded"
|
||||
)
|
||||
|
||||
// PossibleRunResultValues returns the possible values for the RunResult const type.
|
||||
func PossibleRunResultValues() []RunResult {
|
||||
return []RunResult{
|
||||
RunResultFailed,
|
||||
RunResultSucceeded,
|
||||
}
|
||||
}
|
||||
|
||||
// RunStatusEnum - Represents the status of the execution.
|
||||
type RunStatusEnum string
|
||||
|
||||
const (
|
||||
RunStatusEnumFinished RunStatusEnum = "Finished"
|
||||
RunStatusEnumInProgress RunStatusEnum = "InProgress"
|
||||
)
|
||||
|
||||
// PossibleRunStatusEnumValues returns the possible values for the RunStatusEnum const type.
|
||||
func PossibleRunStatusEnumValues() []RunStatusEnum {
|
||||
return []RunStatusEnum{
|
||||
RunStatusEnumFinished,
|
||||
RunStatusEnumInProgress,
|
||||
}
|
||||
}
|
||||
|
||||
// SKUConversionStatus - This property indicates the current sku conversion status.
|
||||
type SKUConversionStatus string
|
||||
|
||||
|
|
@ -1150,6 +1289,22 @@ func PossibleServicesValues() []Services {
|
|||
}
|
||||
}
|
||||
|
||||
// Severity - Severity of the issue.
|
||||
type Severity string
|
||||
|
||||
const (
|
||||
SeverityError Severity = "Error"
|
||||
SeverityWarning Severity = "Warning"
|
||||
)
|
||||
|
||||
// PossibleSeverityValues returns the possible values for the Severity const type.
|
||||
func PossibleSeverityValues() []Severity {
|
||||
return []Severity{
|
||||
SeverityError,
|
||||
SeverityWarning,
|
||||
}
|
||||
}
|
||||
|
||||
// ShareAccessTier - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot,
|
||||
// and Cool. FileStorage account can choose Premium.
|
||||
type ShareAccessTier string
|
||||
|
|
@ -1249,6 +1404,22 @@ func PossibleStorageAccountExpandValues() []StorageAccountExpand {
|
|||
}
|
||||
}
|
||||
|
||||
// TriggerType - The trigger type of the storage task assignment execution
|
||||
type TriggerType string
|
||||
|
||||
const (
|
||||
TriggerTypeOnSchedule TriggerType = "OnSchedule"
|
||||
TriggerTypeRunOnce TriggerType = "RunOnce"
|
||||
)
|
||||
|
||||
// PossibleTriggerTypeValues returns the possible values for the TriggerType const type.
|
||||
func PossibleTriggerTypeValues() []TriggerType {
|
||||
return []TriggerType{
|
||||
TriggerTypeOnSchedule,
|
||||
TriggerTypeRunOnce,
|
||||
}
|
||||
}
|
||||
|
||||
// UsageUnit - Gets the unit of measurement.
|
||||
type UsageUnit string
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func NewDeletedAccountsClient(subscriptionID string, credential azcore.TokenCred
|
|||
// Get - Get properties of specified deleted account resource.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - deletedAccountName - Name of the deleted storage account.
|
||||
// - location - The location of the deleted storage account.
|
||||
// - options - DeletedAccountsClientGetOptions contains the optional parameters for the DeletedAccountsClient.Get method.
|
||||
|
|
@ -92,7 +92,7 @@ func (client *DeletedAccountsClient) getCreateRequest(ctx context.Context, delet
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -109,7 +109,7 @@ func (client *DeletedAccountsClient) getHandleResponse(resp *http.Response) (Del
|
|||
|
||||
// NewListPager - Lists deleted accounts under the subscription.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - options - DeletedAccountsClientListOptions contains the optional parameters for the DeletedAccountsClient.NewListPager
|
||||
// method.
|
||||
func (client *DeletedAccountsClient) NewListPager(options *DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse] {
|
||||
|
|
@ -147,7 +147,7 @@ func (client *DeletedAccountsClient) listCreateRequest(ctx context.Context, opti
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ func NewEncryptionScopesClient(subscriptionID string, credential azcore.TokenCre
|
|||
// Get - Returns the properties for the specified encryption scope.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -101,7 +101,7 @@ func (client *EncryptionScopesClient) getCreateRequest(ctx context.Context, reso
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -118,7 +118,7 @@ func (client *EncryptionScopesClient) getHandleResponse(resp *http.Response) (En
|
|||
|
||||
// NewListPager - Lists all the encryption scopes available under the specified storage account.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -167,16 +167,16 @@ func (client *EncryptionScopesClient) listCreateRequest(ctx context.Context, res
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
|
||||
}
|
||||
if options != nil && options.Filter != nil {
|
||||
reqQP.Set("$filter", *options.Filter)
|
||||
}
|
||||
if options != nil && options.Include != nil {
|
||||
reqQP.Set("$include", string(*options.Include))
|
||||
}
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -195,7 +195,7 @@ func (client *EncryptionScopesClient) listHandleResponse(resp *http.Response) (E
|
|||
// does not already exist.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -250,7 +250,7 @@ func (client *EncryptionScopesClient) patchCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, encryptionScope); err != nil {
|
||||
|
|
@ -273,7 +273,7 @@ func (client *EncryptionScopesClient) patchHandleResponse(resp *http.Response) (
|
|||
// encryption scope properties will be updated per the specified request.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -328,7 +328,7 @@ func (client *EncryptionScopesClient) putCreateRequest(ctx context.Context, reso
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, encryptionScope); err != nil {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ func NewFileServicesClient(subscriptionID string, credential azcore.TokenCredent
|
|||
// Sharing) rules.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -96,7 +96,7 @@ func (client *FileServicesClient) getServicePropertiesCreateRequest(ctx context.
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -114,7 +114,7 @@ func (client *FileServicesClient) getServicePropertiesHandleResponse(resp *http.
|
|||
// List - List all file services in storage accounts
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -161,7 +161,7 @@ func (client *FileServicesClient) listCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -180,7 +180,7 @@ func (client *FileServicesClient) listHandleResponse(resp *http.Response) (FileS
|
|||
// Sharing) rules.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -230,7 +230,7 @@ func (client *FileServicesClient) setServicePropertiesCreateRequest(ctx context.
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ func NewFileSharesClient(subscriptionID string, credential azcore.TokenCredentia
|
|||
// the share.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -106,7 +106,7 @@ func (client *FileSharesClient) createCreateRequest(ctx context.Context, resourc
|
|||
if options != nil && options.Expand != nil {
|
||||
reqQP.Set("$expand", *options.Expand)
|
||||
}
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, fileShare); err != nil {
|
||||
|
|
@ -127,7 +127,7 @@ func (client *FileSharesClient) createHandleResponse(resp *http.Response) (FileS
|
|||
// Delete - Deletes specified share under its account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -180,22 +180,22 @@ func (client *FileSharesClient) deleteCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
if options != nil && options.Include != nil {
|
||||
reqQP.Set("$include", *options.Include)
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.XMSSnapshot != nil {
|
||||
req.Raw().Header["x-ms-snapshot"] = []string{*options.XMSSnapshot}
|
||||
}
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// Get - Gets properties of a specified share.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -249,15 +249,15 @@ func (client *FileSharesClient) getCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
if options != nil && options.Expand != nil {
|
||||
reqQP.Set("$expand", *options.Expand)
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.XMSSnapshot != nil {
|
||||
req.Raw().Header["x-ms-snapshot"] = []string{*options.XMSSnapshot}
|
||||
}
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ func (client *FileSharesClient) getHandleResponse(resp *http.Response) (FileShar
|
|||
// be 15 to 60 seconds, or can be infinite.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -328,12 +328,12 @@ func (client *FileSharesClient) leaseCreateRequest(ctx context.Context, resource
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.XMSSnapshot != nil {
|
||||
req.Raw().Header["x-ms-snapshot"] = []string{*options.XMSSnapshot}
|
||||
}
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Parameters != nil {
|
||||
if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil {
|
||||
return nil, err
|
||||
|
|
@ -357,7 +357,7 @@ func (client *FileSharesClient) leaseHandleResponse(resp *http.Response) (FileSh
|
|||
|
||||
// NewListPager - Lists all shares.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -405,16 +405,16 @@ func (client *FileSharesClient) listCreateRequest(ctx context.Context, resourceG
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", *options.Maxpagesize)
|
||||
if options != nil && options.Expand != nil {
|
||||
reqQP.Set("$expand", *options.Expand)
|
||||
}
|
||||
if options != nil && options.Filter != nil {
|
||||
reqQP.Set("$filter", *options.Filter)
|
||||
}
|
||||
if options != nil && options.Expand != nil {
|
||||
reqQP.Set("$expand", *options.Expand)
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", *options.Maxpagesize)
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -432,7 +432,7 @@ func (client *FileSharesClient) listHandleResponse(resp *http.Response) (FileSha
|
|||
// Restore - Restore a file share within a valid retention days if share soft delete is enabled
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -485,7 +485,7 @@ func (client *FileSharesClient) restoreCreateRequest(ctx context.Context, resour
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, deletedShare); err != nil {
|
||||
|
|
@ -498,7 +498,7 @@ func (client *FileSharesClient) restoreCreateRequest(ctx context.Context, resour
|
|||
// Update fails if the specified share does not already exist.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -553,7 +553,7 @@ func (client *FileSharesClient) updateCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, fileShare); err != nil {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
|
@ -43,10 +44,11 @@ func NewLocalUsersClient(subscriptionID string, credential azcore.TokenCredentia
|
|||
return client, nil
|
||||
}
|
||||
|
||||
// CreateOrUpdate - Create or update the properties of a local user associated with the storage account
|
||||
// CreateOrUpdate - Create or update the properties of a local user associated with the storage account. Properties for NFSv3
|
||||
// enablement and extended groups cannot be set with other properties.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -101,7 +103,7 @@ func (client *LocalUsersClient) createOrUpdateCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, properties); err != nil {
|
||||
|
|
@ -122,7 +124,7 @@ func (client *LocalUsersClient) createOrUpdateHandleResponse(resp *http.Response
|
|||
// Delete - Deletes the local user associated with the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -174,7 +176,7 @@ func (client *LocalUsersClient) deleteCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -183,7 +185,7 @@ func (client *LocalUsersClient) deleteCreateRequest(ctx context.Context, resourc
|
|||
// Get - Get the local user of the storage account by username.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -236,7 +238,7 @@ func (client *LocalUsersClient) getCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -253,7 +255,7 @@ func (client *LocalUsersClient) getHandleResponse(resp *http.Response) (LocalUse
|
|||
|
||||
// NewListPager - List the local users associated with the storage account.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -302,7 +304,16 @@ func (client *LocalUsersClient) listCreateRequest(ctx context.Context, resourceG
|
|||
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)
|
||||
}
|
||||
if options != nil && options.Include != nil {
|
||||
reqQP.Set("$include", string(*options.Include))
|
||||
}
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -320,7 +331,7 @@ func (client *LocalUsersClient) listHandleResponse(resp *http.Response) (LocalUs
|
|||
// ListKeys - List SSH authorized keys and shared key of the local user.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -373,7 +384,7 @@ func (client *LocalUsersClient) listKeysCreateRequest(ctx context.Context, resou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -391,7 +402,7 @@ func (client *LocalUsersClient) listKeysHandleResponse(resp *http.Response) (Loc
|
|||
// RegeneratePassword - Regenerate the local user SSH password.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -445,7 +456,7 @@ func (client *LocalUsersClient) regeneratePasswordCreateRequest(ctx context.Cont
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func NewManagementPoliciesClient(subscriptionID string, credential azcore.TokenC
|
|||
// CreateOrUpdate - Sets the managementpolicy to the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -100,7 +100,7 @@ func (client *ManagementPoliciesClient) createOrUpdateCreateRequest(ctx context.
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, properties); err != nil {
|
||||
|
|
@ -121,7 +121,7 @@ func (client *ManagementPoliciesClient) createOrUpdateHandleResponse(resp *http.
|
|||
// Delete - Deletes the managementpolicy associated with the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -173,7 +173,7 @@ func (client *ManagementPoliciesClient) deleteCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
return req, nil
|
||||
}
|
||||
|
|
@ -181,7 +181,7 @@ func (client *ManagementPoliciesClient) deleteCreateRequest(ctx context.Context,
|
|||
// Get - Gets the managementpolicy associated with the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -233,7 +233,7 @@ func (client *ManagementPoliciesClient) getCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
|||
488
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models.go
generated
vendored
488
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models.go
generated
vendored
|
|
@ -243,6 +243,9 @@ type AccountProperties struct {
|
|||
// for this property.
|
||||
DefaultToOAuthAuthentication *bool
|
||||
|
||||
// Enables extended group support with local users feature, if set to true
|
||||
EnableExtendedGroups *bool
|
||||
|
||||
// Allows https traffic only to storage service if sets to true.
|
||||
EnableHTTPSTrafficOnly *bool
|
||||
|
||||
|
|
@ -268,7 +271,7 @@ type AccountProperties struct {
|
|||
// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property.
|
||||
MinimumTLSVersion *MinimumTLSVersion
|
||||
|
||||
// Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.
|
||||
// Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account.
|
||||
PublicNetworkAccess *PublicNetworkAccess
|
||||
|
||||
// Maintains information about the network routing choice opted by the user for data transfer
|
||||
|
|
@ -393,6 +396,9 @@ type AccountPropertiesCreateParameters struct {
|
|||
// for this property.
|
||||
DefaultToOAuthAuthentication *bool
|
||||
|
||||
// Enables extended group support with local users feature, if set to true
|
||||
EnableExtendedGroups *bool
|
||||
|
||||
// Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01.
|
||||
EnableHTTPSTrafficOnly *bool
|
||||
|
||||
|
|
@ -427,7 +433,9 @@ type AccountPropertiesCreateParameters struct {
|
|||
// Network rule set
|
||||
NetworkRuleSet *NetworkRuleSet
|
||||
|
||||
// Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.
|
||||
// Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account.
|
||||
// Value is optional but if passed in, must be 'Enabled', 'Disabled' or
|
||||
// 'SecuredByPerimeter'.
|
||||
PublicNetworkAccess *PublicNetworkAccess
|
||||
|
||||
// Maintains information about the network routing choice opted by the user for data transfer
|
||||
|
|
@ -478,6 +486,9 @@ type AccountPropertiesUpdateParameters struct {
|
|||
// for this property.
|
||||
DefaultToOAuthAuthentication *bool
|
||||
|
||||
// Enables extended group support with local users feature, if set to true
|
||||
EnableExtendedGroups *bool
|
||||
|
||||
// Allows https traffic only to storage service if sets to true.
|
||||
EnableHTTPSTrafficOnly *bool
|
||||
|
||||
|
|
@ -506,7 +517,9 @@ type AccountPropertiesUpdateParameters struct {
|
|||
// Network rule set
|
||||
NetworkRuleSet *NetworkRuleSet
|
||||
|
||||
// Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.
|
||||
// Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account.
|
||||
// Value is optional but if passed in, must be 'Enabled', 'Disabled' or
|
||||
// 'SecuredByPerimeter'.
|
||||
PublicNetworkAccess *PublicNetworkAccess
|
||||
|
||||
// Maintains information about the network routing choice opted by the user for data transfer
|
||||
|
|
@ -1320,6 +1333,35 @@ type ErrorResponseBody struct {
|
|||
Message *string
|
||||
}
|
||||
|
||||
// ExecutionTarget - Target helps provide filter parameters for the objects in the storage account and forms the execution
|
||||
// context for the storage task
|
||||
type ExecutionTarget struct {
|
||||
// List of object prefixes to be excluded from task execution. If there is a conflict between include and exclude prefixes,
|
||||
// the exclude prefix will be the determining factor
|
||||
ExcludePrefix []*string
|
||||
|
||||
// Required list of object prefixes to be included for task execution
|
||||
Prefix []*string
|
||||
}
|
||||
|
||||
// ExecutionTrigger - Execution trigger for storage task assignment
|
||||
type ExecutionTrigger struct {
|
||||
// REQUIRED; The trigger parameters of the storage task assignment execution
|
||||
Parameters *TriggerParameters
|
||||
|
||||
// REQUIRED; The trigger type of the storage task assignment execution
|
||||
Type *TriggerType
|
||||
}
|
||||
|
||||
// ExecutionTriggerUpdate - Execution trigger update for storage task assignment
|
||||
type ExecutionTriggerUpdate struct {
|
||||
// The trigger parameters of the storage task assignment execution
|
||||
Parameters *TriggerParametersUpdate
|
||||
|
||||
// The trigger type of the storage task assignment execution
|
||||
Type *TriggerType
|
||||
}
|
||||
|
||||
// ExtendedLocation - The complex type of the extended location.
|
||||
type ExtendedLocation struct {
|
||||
// The name of the extended location.
|
||||
|
|
@ -1865,6 +1907,15 @@ type LocalUserKeys struct {
|
|||
|
||||
// LocalUserProperties - The Storage Account Local User properties.
|
||||
type LocalUserProperties struct {
|
||||
// Indicates whether ACL authorization is allowed for this user. Set it to false to disallow using ACL authorization.
|
||||
AllowACLAuthorization *bool
|
||||
|
||||
// Supplementary group membership. Only applicable for local users enabled for NFSv3 access.
|
||||
ExtendedGroups []*int32
|
||||
|
||||
// An identifier for associating a group of users.
|
||||
GroupID *int32
|
||||
|
||||
// Indicates whether ssh key exists. Set it to false to remove existing SSH key.
|
||||
HasSSHKey *bool
|
||||
|
||||
|
|
@ -1877,6 +1928,9 @@ type LocalUserProperties struct {
|
|||
// Optional, local user home directory.
|
||||
HomeDirectory *string
|
||||
|
||||
// Indicates if the local user is enabled for access with NFSv3 protocol.
|
||||
IsNFSv3Enabled *bool
|
||||
|
||||
// The permission scopes of the local user.
|
||||
PermissionScopes []*PermissionScope
|
||||
|
||||
|
|
@ -1885,6 +1939,9 @@ type LocalUserProperties struct {
|
|||
|
||||
// READ-ONLY; A unique Security Identifier that is generated by the server.
|
||||
Sid *string
|
||||
|
||||
// READ-ONLY; A unique Identifier that is generated by the server.
|
||||
UserID *int32
|
||||
}
|
||||
|
||||
// LocalUserRegeneratePasswordResult - The secrets of Storage Account Local User.
|
||||
|
|
@ -1894,10 +1951,14 @@ type LocalUserRegeneratePasswordResult struct {
|
|||
SSHPassword *string
|
||||
}
|
||||
|
||||
// LocalUsers - List storage account local users.
|
||||
// LocalUsers - List of local users requested, and if paging is required, a URL to the next page of local users.
|
||||
type LocalUsers struct {
|
||||
// The local users associated with the storage account.
|
||||
// The list of local users associated with the storage account.
|
||||
Value []*LocalUser
|
||||
|
||||
// READ-ONLY; Request URL that can be used to query next page of local users. Returned when total number of requested local
|
||||
// users exceeds the maximum page size.
|
||||
NextLink *string
|
||||
}
|
||||
|
||||
// ManagementPolicy - The Get Storage Account ManagementPolicies operation response.
|
||||
|
|
@ -2095,6 +2156,123 @@ type NetworkRuleSet struct {
|
|||
VirtualNetworkRules []*VirtualNetworkRule
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeter related information
|
||||
type NetworkSecurityPerimeter struct {
|
||||
// The ARM identifier of the resource
|
||||
ID *string
|
||||
|
||||
// Location of the resource
|
||||
Location *string
|
||||
|
||||
// Guid of the resource
|
||||
PerimeterGUID *string
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfiguration - The Network Security Perimeter configuration resource.
|
||||
type NetworkSecurityPerimeterConfiguration struct {
|
||||
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
||||
ID *string
|
||||
|
||||
// READ-ONLY; The name of the resource
|
||||
Name *string
|
||||
|
||||
// READ-ONLY; Properties of the Network Security Perimeter Configuration
|
||||
Properties *NetworkSecurityPerimeterConfigurationProperties
|
||||
|
||||
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
|
||||
SystemData *SystemData
|
||||
|
||||
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
||||
Type *string
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationList - Result of the List Network Security Perimeter configuration operation.
|
||||
type NetworkSecurityPerimeterConfigurationList struct {
|
||||
// The URI that can be used to request the next set of paged results.
|
||||
NextLink *string
|
||||
|
||||
// READ-ONLY; A collection of Network Security Perimeter configurations
|
||||
Value []*NetworkSecurityPerimeterConfiguration
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationProperties - Properties of the Network Security Perimeter Configuration
|
||||
type NetworkSecurityPerimeterConfigurationProperties struct {
|
||||
// READ-ONLY; NetworkSecurityPerimeter related information
|
||||
NetworkSecurityPerimeter *NetworkSecurityPerimeter
|
||||
|
||||
// READ-ONLY; Network Security Perimeter profile
|
||||
Profile *NetworkSecurityPerimeterConfigurationPropertiesProfile
|
||||
|
||||
// READ-ONLY; List of Provisioning Issues if any
|
||||
ProvisioningIssues []*ProvisioningIssue
|
||||
|
||||
// READ-ONLY; Provisioning state of Network Security Perimeter configuration propagation
|
||||
ProvisioningState *NetworkSecurityPerimeterConfigurationProvisioningState
|
||||
|
||||
// READ-ONLY; Information about resource association
|
||||
ResourceAssociation *NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationPropertiesProfile - Network Security Perimeter profile
|
||||
type NetworkSecurityPerimeterConfigurationPropertiesProfile struct {
|
||||
// List of Access Rules
|
||||
AccessRules []*NspAccessRule
|
||||
|
||||
// Current access rules version
|
||||
AccessRulesVersion *float32
|
||||
|
||||
// Diagnostic settings version
|
||||
DiagnosticSettingsVersion *float32
|
||||
|
||||
// Enabled logging categories
|
||||
EnabledLogCategories []*string
|
||||
|
||||
// Name of the resource
|
||||
Name *string
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation - Information about resource association
|
||||
type NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation struct {
|
||||
// Access Mode of the resource association
|
||||
AccessMode *ResourceAssociationAccessMode
|
||||
|
||||
// Name of the resource association
|
||||
Name *string
|
||||
}
|
||||
|
||||
// NspAccessRule - Information of Access Rule in Network Security Perimeter profile
|
||||
type NspAccessRule struct {
|
||||
// Name of the resource
|
||||
Name *string
|
||||
|
||||
// READ-ONLY; Properties of Access Rule
|
||||
Properties *NspAccessRuleProperties
|
||||
}
|
||||
|
||||
// NspAccessRuleProperties - Properties of Access Rule
|
||||
type NspAccessRuleProperties struct {
|
||||
// Address prefixes in the CIDR format for inbound rules
|
||||
AddressPrefixes []*string
|
||||
|
||||
// Direction of Access Rule
|
||||
Direction *NspAccessRuleDirection
|
||||
|
||||
// Subscriptions for inbound rules
|
||||
Subscriptions []*NspAccessRulePropertiesSubscriptionsItem
|
||||
|
||||
// READ-ONLY; FQDN for outbound rules
|
||||
FullyQualifiedDomainNames []*string
|
||||
|
||||
// READ-ONLY; NetworkSecurityPerimeters for inbound rules
|
||||
NetworkSecurityPerimeters []*NetworkSecurityPerimeter
|
||||
}
|
||||
|
||||
// NspAccessRulePropertiesSubscriptionsItem - Subscription for inbound rule
|
||||
type NspAccessRulePropertiesSubscriptionsItem struct {
|
||||
// The ARM identifier of subscription
|
||||
ID *string
|
||||
}
|
||||
|
||||
// ObjectReplicationPolicies - List storage account object replication policies.
|
||||
type ObjectReplicationPolicies struct {
|
||||
// The replication policy between two storage accounts.
|
||||
|
|
@ -2205,8 +2383,8 @@ type OperationProperties struct {
|
|||
}
|
||||
|
||||
type PermissionScope struct {
|
||||
// REQUIRED; The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), and Create
|
||||
// (c).
|
||||
// REQUIRED; The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), Create
|
||||
// (c), Modify Ownership (o), and Modify Permissions (p).
|
||||
Permissions *string
|
||||
|
||||
// REQUIRED; The name of resource, normally the container name or the file share name, used by the local user.
|
||||
|
|
@ -2318,6 +2496,27 @@ type ProtocolSettings struct {
|
|||
Smb *SmbSetting
|
||||
}
|
||||
|
||||
// ProvisioningIssue - Describes provisioning issue for given NetworkSecurityPerimeterConfiguration
|
||||
type ProvisioningIssue struct {
|
||||
// Name of the issue
|
||||
Name *string
|
||||
|
||||
// READ-ONLY; Properties of provisioning issue
|
||||
Properties *ProvisioningIssueProperties
|
||||
}
|
||||
|
||||
// ProvisioningIssueProperties - Properties of provisioning issue
|
||||
type ProvisioningIssueProperties struct {
|
||||
// Description of the issue
|
||||
Description *string
|
||||
|
||||
// Type of issue
|
||||
IssueType *IssueType
|
||||
|
||||
// Severity of the issue.
|
||||
Severity *Severity
|
||||
}
|
||||
|
||||
// ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a
|
||||
// location
|
||||
type ProxyResource struct {
|
||||
|
|
@ -2331,6 +2530,22 @@ type ProxyResource struct {
|
|||
Type *string
|
||||
}
|
||||
|
||||
// ProxyResourceAutoGenerated - The resource model definition for a Azure Resource Manager proxy resource. It will not have
|
||||
// tags and a location
|
||||
type ProxyResourceAutoGenerated struct {
|
||||
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
||||
ID *string
|
||||
|
||||
// READ-ONLY; The name of the resource
|
||||
Name *string
|
||||
|
||||
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
|
||||
SystemData *SystemData
|
||||
|
||||
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
||||
Type *string
|
||||
}
|
||||
|
||||
type Queue struct {
|
||||
// Queue resource properties.
|
||||
QueueProperties *QueueProperties
|
||||
|
|
@ -2398,6 +2613,21 @@ type ResourceAccessRule struct {
|
|||
TenantID *string
|
||||
}
|
||||
|
||||
// ResourceAutoGenerated - Common fields that are returned in the response for all Azure Resource Manager resources
|
||||
type ResourceAutoGenerated struct {
|
||||
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
||||
ID *string
|
||||
|
||||
// READ-ONLY; The name of the resource
|
||||
Name *string
|
||||
|
||||
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
|
||||
SystemData *SystemData
|
||||
|
||||
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
||||
Type *string
|
||||
}
|
||||
|
||||
// RestorePolicyProperties - The blob service properties for blob restore policy
|
||||
type RestorePolicyProperties struct {
|
||||
// REQUIRED; Blob restore is enabled if set to true.
|
||||
|
|
@ -2505,7 +2735,9 @@ type SSHPublicKey struct {
|
|||
|
||||
// SasPolicy assigned to the storage account.
|
||||
type SasPolicy struct {
|
||||
// REQUIRED; The SAS expiration action. Can only be Log.
|
||||
// REQUIRED; The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated.
|
||||
// The 'Log' action can be used for audit purposes and the 'Block' action can be used to block
|
||||
// and deny the usage of SAS tokens that do not adhere to the sas policy expiration period.
|
||||
ExpirationAction *ExpirationAction
|
||||
|
||||
// REQUIRED; The SAS expiration period, DD.HH:MM:SS.
|
||||
|
|
@ -2727,6 +2959,198 @@ type TagProperty struct {
|
|||
Upn *string
|
||||
}
|
||||
|
||||
// TaskAssignment - The storage task assignment.
|
||||
type TaskAssignment struct {
|
||||
// REQUIRED; Properties of the storage task assignment.
|
||||
Properties *TaskAssignmentProperties
|
||||
|
||||
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
||||
ID *string
|
||||
|
||||
// READ-ONLY; The name of the resource
|
||||
Name *string
|
||||
|
||||
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
||||
Type *string
|
||||
}
|
||||
|
||||
// TaskAssignmentExecutionContext - Execution context of the storage task assignment.
|
||||
type TaskAssignmentExecutionContext struct {
|
||||
// REQUIRED; Execution trigger of the storage task assignment
|
||||
Trigger *ExecutionTrigger
|
||||
|
||||
// Execution target of the storage task assignment
|
||||
Target *ExecutionTarget
|
||||
}
|
||||
|
||||
// TaskAssignmentProperties - Properties of the storage task assignment.
|
||||
type TaskAssignmentProperties struct {
|
||||
// REQUIRED; Text that describes the purpose of the storage task assignment
|
||||
Description *string
|
||||
|
||||
// REQUIRED; Whether the storage task assignment is enabled or not
|
||||
Enabled *bool
|
||||
|
||||
// REQUIRED; The storage task assignment execution context
|
||||
ExecutionContext *TaskAssignmentExecutionContext
|
||||
|
||||
// REQUIRED; The storage task assignment report
|
||||
Report *TaskAssignmentReport
|
||||
|
||||
// REQUIRED; Id of the corresponding storage task
|
||||
TaskID *string
|
||||
|
||||
// Run status of storage task assignment
|
||||
RunStatus *TaskReportProperties
|
||||
|
||||
// READ-ONLY; Represents the provisioning state of the storage task assignment.
|
||||
ProvisioningState *ProvisioningState
|
||||
}
|
||||
|
||||
// TaskAssignmentReport - The storage task assignment report
|
||||
type TaskAssignmentReport struct {
|
||||
// REQUIRED; The container prefix for the location of storage task assignment report
|
||||
Prefix *string
|
||||
}
|
||||
|
||||
// TaskAssignmentUpdateExecutionContext - Execution context of the storage task assignment update.
|
||||
type TaskAssignmentUpdateExecutionContext struct {
|
||||
// Execution target of the storage task assignment
|
||||
Target *ExecutionTarget
|
||||
|
||||
// Execution trigger of the storage task assignment
|
||||
Trigger *ExecutionTriggerUpdate
|
||||
}
|
||||
|
||||
// TaskAssignmentUpdateParameters - Parameters of the storage task assignment update request
|
||||
type TaskAssignmentUpdateParameters struct {
|
||||
// Properties of the storage task assignment.
|
||||
Properties *TaskAssignmentUpdateProperties
|
||||
}
|
||||
|
||||
// TaskAssignmentUpdateProperties - Properties of the storage task update assignment.
|
||||
type TaskAssignmentUpdateProperties struct {
|
||||
// Text that describes the purpose of the storage task assignment
|
||||
Description *string
|
||||
|
||||
// Whether the storage task assignment is enabled or not
|
||||
Enabled *bool
|
||||
|
||||
// The storage task assignment execution context
|
||||
ExecutionContext *TaskAssignmentUpdateExecutionContext
|
||||
|
||||
// The storage task assignment report
|
||||
Report *TaskAssignmentUpdateReport
|
||||
|
||||
// Run status of storage task assignment
|
||||
RunStatus *TaskReportProperties
|
||||
|
||||
// READ-ONLY; Represents the provisioning state of the storage task assignment.
|
||||
ProvisioningState *ProvisioningState
|
||||
|
||||
// READ-ONLY; Id of the corresponding storage task
|
||||
TaskID *string
|
||||
}
|
||||
|
||||
// TaskAssignmentUpdateReport - The storage task assignment report
|
||||
type TaskAssignmentUpdateReport struct {
|
||||
// The prefix of the storage task assignment report
|
||||
Prefix *string
|
||||
}
|
||||
|
||||
// TaskAssignmentsList - List of storage task assignments for the storage account
|
||||
type TaskAssignmentsList struct {
|
||||
// READ-ONLY; Request URL that can be used to query next page of storage task assignments. Returned when total number of requested
|
||||
// storage task assignments exceed maximum page size.
|
||||
NextLink *string
|
||||
|
||||
// READ-ONLY; Gets the list of storage task assignments and their properties.
|
||||
Value []*TaskAssignment
|
||||
}
|
||||
|
||||
// TaskReportInstance - Storage Tasks run report instance
|
||||
type TaskReportInstance struct {
|
||||
// Storage task execution report for a run instance.
|
||||
Properties *TaskReportProperties
|
||||
|
||||
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
||||
ID *string
|
||||
|
||||
// READ-ONLY; The name of the resource
|
||||
Name *string
|
||||
|
||||
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
||||
Type *string
|
||||
}
|
||||
|
||||
// TaskReportProperties - Storage task execution report for a run instance.
|
||||
type TaskReportProperties struct {
|
||||
// READ-ONLY; End time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison
|
||||
// operators can be used as described for DateTime properties in
|
||||
// https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
|
||||
FinishTime *string
|
||||
|
||||
// READ-ONLY; Total number of objects where task operation failed when was attempted. Filter options such as objectFailedCount
|
||||
// eq 0 and other comparison operators can be used as described for Numerical properties
|
||||
// in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
|
||||
ObjectFailedCount *string
|
||||
|
||||
// READ-ONLY; Total number of objects that meet the storage tasks condition and were operated upon. Filter options such as
|
||||
// objectsOperatedOnCount ge 100 and other comparison operators can be used as described for
|
||||
// Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
|
||||
ObjectsOperatedOnCount *string
|
||||
|
||||
// READ-ONLY; Total number of objects where task operation succeeded when was attempted.Filter options such as objectsSucceededCount
|
||||
// gt 150 and other comparison operators can be used as described for Numerical
|
||||
// properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
|
||||
ObjectsSucceededCount *string
|
||||
|
||||
// READ-ONLY; Total number of objects that meet the condition as defined in the storage task assignment execution context.
|
||||
// Filter options such as objectsTargetedCount gt 50 and other comparison operators can be
|
||||
// used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
|
||||
ObjectsTargetedCount *string
|
||||
|
||||
// READ-ONLY; Represents the overall result of the execution for the run instance
|
||||
RunResult *RunResult
|
||||
|
||||
// READ-ONLY; Represents the status of the execution.
|
||||
RunStatusEnum *RunStatusEnum
|
||||
|
||||
// READ-ONLY; Well known Azure Storage error code that represents the error encountered during execution of the run instance.
|
||||
RunStatusError *string
|
||||
|
||||
// READ-ONLY; Start time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other
|
||||
// comparison operators can be used as described for DateTime properties in
|
||||
// https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
|
||||
StartTime *string
|
||||
|
||||
// READ-ONLY; Represents the Storage Account Id where the storage task definition was applied and executed.
|
||||
StorageAccountID *string
|
||||
|
||||
// READ-ONLY; Full path to the verbose report stored in the reporting container as specified in the assignment execution context
|
||||
// for the storage account.
|
||||
SummaryReportPath *string
|
||||
|
||||
// READ-ONLY; Represents the Storage Task Assignment Id associated with the storage task that provided an execution context.
|
||||
TaskAssignmentID *string
|
||||
|
||||
// READ-ONLY; Storage Task Arm Id.
|
||||
TaskID *string
|
||||
|
||||
// READ-ONLY; Storage Task Version
|
||||
TaskVersion *string
|
||||
}
|
||||
|
||||
// TaskReportSummary - Fetch Storage Tasks Run Summary.
|
||||
type TaskReportSummary struct {
|
||||
// READ-ONLY; Request URL that can be used to query next page of storage task run results summary. Returned when the number
|
||||
// of run instances and summary reports exceed maximum page size.
|
||||
NextLink *string
|
||||
|
||||
// READ-ONLY; Gets storage tasks run result summary.
|
||||
Value []*TaskReportInstance
|
||||
}
|
||||
|
||||
// TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags'
|
||||
// and a 'location'
|
||||
type TrackedResource struct {
|
||||
|
|
@ -2746,6 +3170,54 @@ type TrackedResource struct {
|
|||
Type *string
|
||||
}
|
||||
|
||||
// TriggerParameters - The trigger parameters update for the storage task assignment execution
|
||||
type TriggerParameters struct {
|
||||
// When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
|
||||
// should not be present when ExecutionTrigger.properties.type is 'RunOnce'
|
||||
EndBy *time.Time
|
||||
|
||||
// Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
|
||||
// should not be present when ExecutionTrigger.properties.type is 'RunOnce'
|
||||
Interval *int32
|
||||
|
||||
// Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this
|
||||
// property should not be present when ExecutionTrigger.properties.type is
|
||||
// 'RunOnce'
|
||||
IntervalUnit *string
|
||||
|
||||
// When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
|
||||
// should not be present when ExecutionTrigger.properties.type is 'RunOnce'
|
||||
StartFrom *time.Time
|
||||
|
||||
// When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property
|
||||
// should not be present when ExecutionTrigger.properties.type is 'OnSchedule'
|
||||
StartOn *time.Time
|
||||
}
|
||||
|
||||
// TriggerParametersUpdate - The trigger parameters update for the storage task assignment execution
|
||||
type TriggerParametersUpdate struct {
|
||||
// When to end task execution. This is a mutable field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
|
||||
// should not be present when ExecutionTrigger.properties.type is 'RunOnce'
|
||||
EndBy *time.Time
|
||||
|
||||
// Run interval of task execution. This is a mutable field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
|
||||
// should not be present when ExecutionTrigger.properties.type is 'RunOnce'
|
||||
Interval *int32
|
||||
|
||||
// Run interval unit of task execution. This is a mutable field when ExecutionTrigger.properties.type is 'OnSchedule'; this
|
||||
// property should not be present when ExecutionTrigger.properties.type is
|
||||
// 'RunOnce'
|
||||
IntervalUnit *string
|
||||
|
||||
// When to start task execution. This is a mutable field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
|
||||
// should not be present when ExecutionTrigger.properties.type is 'RunOnce'
|
||||
StartFrom *time.Time
|
||||
|
||||
// When to start task execution. This is a mutable field when ExecutionTrigger.properties.type is 'RunOnce'; this property
|
||||
// should not be present when ExecutionTrigger.properties.type is 'OnSchedule'
|
||||
StartOn *time.Time
|
||||
}
|
||||
|
||||
// UpdateHistoryProperty - An update history of the ImmutabilityPolicy of a blob container.
|
||||
type UpdateHistoryProperty struct {
|
||||
// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to
|
||||
|
|
|
|||
1152
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models_serde.go
generated
vendored
1152
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models_serde.go
generated
vendored
File diff suppressed because it is too large
Load diff
265
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/networksecurityperimeterconfigurations_client.go
generated
vendored
Normal file
265
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/networksecurityperimeterconfigurations_client.go
generated
vendored
Normal file
|
|
@ -0,0 +1,265 @@
|
|||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
package armstorage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationsClient contains the methods for the NetworkSecurityPerimeterConfigurations group.
|
||||
// Don't use this type directly, use NewNetworkSecurityPerimeterConfigurationsClient() instead.
|
||||
type NetworkSecurityPerimeterConfigurationsClient struct {
|
||||
internal *arm.Client
|
||||
subscriptionID string
|
||||
}
|
||||
|
||||
// NewNetworkSecurityPerimeterConfigurationsClient creates a new instance of NetworkSecurityPerimeterConfigurationsClient with the specified values.
|
||||
// - subscriptionID - The ID of the target subscription.
|
||||
// - credential - used to authorize requests. Usually a credential from azidentity.
|
||||
// - options - pass nil to accept the default values.
|
||||
func NewNetworkSecurityPerimeterConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NetworkSecurityPerimeterConfigurationsClient, error) {
|
||||
cl, err := arm.NewClient(moduleName, moduleVersion, credential, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client := &NetworkSecurityPerimeterConfigurationsClient{
|
||||
subscriptionID: subscriptionID,
|
||||
internal: cl,
|
||||
}
|
||||
return client, nil
|
||||
}
|
||||
|
||||
// Get - Gets effective NetworkSecurityPerimeterConfiguration for association
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - networkSecurityPerimeterConfigurationName - The name for Network Security Perimeter configuration
|
||||
// - options - NetworkSecurityPerimeterConfigurationsClientGetOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.Get
|
||||
// method.
|
||||
func (client *NetworkSecurityPerimeterConfigurationsClient) Get(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientGetOptions) (NetworkSecurityPerimeterConfigurationsClientGetResponse, error) {
|
||||
var err error
|
||||
const operationName = "NetworkSecurityPerimeterConfigurationsClient.Get"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options)
|
||||
if err != nil {
|
||||
return NetworkSecurityPerimeterConfigurationsClientGetResponse{}, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return NetworkSecurityPerimeterConfigurationsClientGetResponse{}, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusOK) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return NetworkSecurityPerimeterConfigurationsClientGetResponse{}, err
|
||||
}
|
||||
resp, err := client.getHandleResponse(httpResp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// getCreateRequest creates the Get request.
|
||||
func (client *NetworkSecurityPerimeterConfigurationsClient) getCreateRequest(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientGetOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if networkSecurityPerimeterConfigurationName == "" {
|
||||
return nil, errors.New("parameter networkSecurityPerimeterConfigurationName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{networkSecurityPerimeterConfigurationName}", url.PathEscape(networkSecurityPerimeterConfigurationName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// getHandleResponse handles the Get response.
|
||||
func (client *NetworkSecurityPerimeterConfigurationsClient) getHandleResponse(resp *http.Response) (NetworkSecurityPerimeterConfigurationsClientGetResponse, error) {
|
||||
result := NetworkSecurityPerimeterConfigurationsClientGetResponse{}
|
||||
if err := runtime.UnmarshalAsJSON(resp, &result.NetworkSecurityPerimeterConfiguration); err != nil {
|
||||
return NetworkSecurityPerimeterConfigurationsClientGetResponse{}, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// NewListPager - Gets list of effective NetworkSecurityPerimeterConfiguration for storage account
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - options - NetworkSecurityPerimeterConfigurationsClientListOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.NewListPager
|
||||
// method.
|
||||
func (client *NetworkSecurityPerimeterConfigurationsClient) NewListPager(resourceGroupName string, accountName string, options *NetworkSecurityPerimeterConfigurationsClientListOptions) *runtime.Pager[NetworkSecurityPerimeterConfigurationsClientListResponse] {
|
||||
return runtime.NewPager(runtime.PagingHandler[NetworkSecurityPerimeterConfigurationsClientListResponse]{
|
||||
More: func(page NetworkSecurityPerimeterConfigurationsClientListResponse) bool {
|
||||
return false
|
||||
},
|
||||
Fetcher: func(ctx context.Context, page *NetworkSecurityPerimeterConfigurationsClientListResponse) (NetworkSecurityPerimeterConfigurationsClientListResponse, error) {
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "NetworkSecurityPerimeterConfigurationsClient.NewListPager")
|
||||
req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options)
|
||||
if err != nil {
|
||||
return NetworkSecurityPerimeterConfigurationsClientListResponse{}, err
|
||||
}
|
||||
resp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return NetworkSecurityPerimeterConfigurationsClientListResponse{}, err
|
||||
}
|
||||
if !runtime.HasStatusCode(resp, http.StatusOK) {
|
||||
return NetworkSecurityPerimeterConfigurationsClientListResponse{}, runtime.NewResponseError(resp)
|
||||
}
|
||||
return client.listHandleResponse(resp)
|
||||
},
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
|
||||
// listCreateRequest creates the List request.
|
||||
func (client *NetworkSecurityPerimeterConfigurationsClient) listCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *NetworkSecurityPerimeterConfigurationsClientListOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// listHandleResponse handles the List response.
|
||||
func (client *NetworkSecurityPerimeterConfigurationsClient) listHandleResponse(resp *http.Response) (NetworkSecurityPerimeterConfigurationsClientListResponse, error) {
|
||||
result := NetworkSecurityPerimeterConfigurationsClientListResponse{}
|
||||
if err := runtime.UnmarshalAsJSON(resp, &result.NetworkSecurityPerimeterConfigurationList); err != nil {
|
||||
return NetworkSecurityPerimeterConfigurationsClientListResponse{}, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// BeginReconcile - Refreshes any information about the association.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - networkSecurityPerimeterConfigurationName - The name for Network Security Perimeter configuration
|
||||
// - options - NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.BeginReconcile
|
||||
// method.
|
||||
func (client *NetworkSecurityPerimeterConfigurationsClient) BeginReconcile(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions) (*runtime.Poller[NetworkSecurityPerimeterConfigurationsClientReconcileResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.reconcile(ctx, resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[NetworkSecurityPerimeterConfigurationsClientReconcileResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[NetworkSecurityPerimeterConfigurationsClientReconcileResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Reconcile - Refreshes any information about the association.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *NetworkSecurityPerimeterConfigurationsClient) reconcile(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "NetworkSecurityPerimeterConfigurationsClient.BeginReconcile"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.reconcileCreateRequest(ctx, resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusAccepted) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return nil, err
|
||||
}
|
||||
return httpResp, nil
|
||||
}
|
||||
|
||||
// reconcileCreateRequest creates the Reconcile request.
|
||||
func (client *NetworkSecurityPerimeterConfigurationsClient) reconcileCreateRequest(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if networkSecurityPerimeterConfigurationName == "" {
|
||||
return nil, errors.New("parameter networkSecurityPerimeterConfigurationName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{networkSecurityPerimeterConfigurationName}", url.PathEscape(networkSecurityPerimeterConfigurationName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
|
@ -46,7 +46,7 @@ func NewObjectReplicationPoliciesClient(subscriptionID string, credential azcore
|
|||
// CreateOrUpdate - Create or update the object replication policy of the storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -102,7 +102,7 @@ func (client *ObjectReplicationPoliciesClient) createOrUpdateCreateRequest(ctx c
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, properties); err != nil {
|
||||
|
|
@ -123,7 +123,7 @@ func (client *ObjectReplicationPoliciesClient) createOrUpdateHandleResponse(resp
|
|||
// Delete - Deletes the object replication policy associated with the specified storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -177,7 +177,7 @@ func (client *ObjectReplicationPoliciesClient) deleteCreateRequest(ctx context.C
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -186,7 +186,7 @@ func (client *ObjectReplicationPoliciesClient) deleteCreateRequest(ctx context.C
|
|||
// Get - Get the object replication policy of the storage account by policy ID.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -241,7 +241,7 @@ func (client *ObjectReplicationPoliciesClient) getCreateRequest(ctx context.Cont
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -258,7 +258,7 @@ func (client *ObjectReplicationPoliciesClient) getHandleResponse(resp *http.Resp
|
|||
|
||||
// NewListPager - List the object replication policies associated with the storage account.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -308,7 +308,7 @@ func (client *ObjectReplicationPoliciesClient) listCreateRequest(ctx context.Con
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO
|
|||
|
||||
// NewListPager - Lists all of the available Storage Rest API operations.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-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", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
|||
|
|
@ -392,7 +392,14 @@ type LocalUsersClientListKeysOptions struct {
|
|||
|
||||
// LocalUsersClientListOptions contains the optional parameters for the LocalUsersClient.NewListPager method.
|
||||
type LocalUsersClientListOptions struct {
|
||||
// placeholder for future optional parameters
|
||||
// Optional. When specified, only local user names starting with the filter will be listed.
|
||||
Filter *string
|
||||
|
||||
// Optional, when specified, will list local users enabled for the specific protocol. Lists all users by default.
|
||||
Include *ListLocalUserIncludeParam
|
||||
|
||||
// Optional, specifies the maximum number of local users that will be included in the list response.
|
||||
Maxpagesize *int32
|
||||
}
|
||||
|
||||
// LocalUsersClientRegeneratePasswordOptions contains the optional parameters for the LocalUsersClient.RegeneratePassword
|
||||
|
|
@ -417,6 +424,25 @@ type ManagementPoliciesClientGetOptions struct {
|
|||
// placeholder for future optional parameters
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.BeginReconcile
|
||||
// method.
|
||||
type NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationsClientGetOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.Get
|
||||
// method.
|
||||
type NetworkSecurityPerimeterConfigurationsClientGetOptions struct {
|
||||
// placeholder for future optional parameters
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationsClientListOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.NewListPager
|
||||
// method.
|
||||
type NetworkSecurityPerimeterConfigurationsClientListOptions struct {
|
||||
// placeholder for future optional parameters
|
||||
}
|
||||
|
||||
// ObjectReplicationPoliciesClientCreateOrUpdateOptions contains the optional parameters for the ObjectReplicationPoliciesClient.CreateOrUpdate
|
||||
// method.
|
||||
type ObjectReplicationPoliciesClientCreateOrUpdateOptions struct {
|
||||
|
|
@ -571,6 +597,59 @@ type TableServicesClientSetServicePropertiesOptions struct {
|
|||
// placeholder for future optional parameters
|
||||
}
|
||||
|
||||
// TaskAssignmentInstancesReportClientListOptions contains the optional parameters for the TaskAssignmentInstancesReportClient.NewListPager
|
||||
// method.
|
||||
type TaskAssignmentInstancesReportClientListOptions struct {
|
||||
// Optional. When specified, it can be used to query using reporting properties. See Constructing Filter Strings
|
||||
// [https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings] for
|
||||
// details.
|
||||
Filter *string
|
||||
|
||||
// Optional, specifies the maximum number of storage task assignment instances to be included in the list response.
|
||||
Maxpagesize *int32
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientBeginCreateOptions contains the optional parameters for the TaskAssignmentsClient.BeginCreate method.
|
||||
type TaskAssignmentsClientBeginCreateOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientBeginDeleteOptions contains the optional parameters for the TaskAssignmentsClient.BeginDelete method.
|
||||
type TaskAssignmentsClientBeginDeleteOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientBeginUpdateOptions contains the optional parameters for the TaskAssignmentsClient.BeginUpdate method.
|
||||
type TaskAssignmentsClientBeginUpdateOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientGetOptions contains the optional parameters for the TaskAssignmentsClient.Get method.
|
||||
type TaskAssignmentsClientGetOptions struct {
|
||||
// placeholder for future optional parameters
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientListOptions contains the optional parameters for the TaskAssignmentsClient.NewListPager method.
|
||||
type TaskAssignmentsClientListOptions struct {
|
||||
// Optional, specifies the maximum number of storage task assignment Ids to be included in the list response.
|
||||
Maxpagesize *int32
|
||||
}
|
||||
|
||||
// TaskAssignmentsInstancesReportClientListOptions contains the optional parameters for the TaskAssignmentsInstancesReportClient.NewListPager
|
||||
// method.
|
||||
type TaskAssignmentsInstancesReportClientListOptions struct {
|
||||
// Optional. When specified, it can be used to query using reporting properties. See Constructing Filter Strings
|
||||
// [https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings] for
|
||||
// details.
|
||||
Filter *string
|
||||
|
||||
// Optional, specifies the maximum number of storage task assignment instances to be included in the list response.
|
||||
Maxpagesize *int32
|
||||
}
|
||||
|
||||
// UsagesClientListByLocationOptions contains the optional parameters for the UsagesClient.NewListByLocationPager method.
|
||||
type UsagesClientListByLocationOptions struct {
|
||||
// placeholder for future optional parameters
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor
|
|||
// Delete - Deletes the specified private endpoint connection associated with the storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -98,7 +98,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", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -107,7 +107,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context.
|
|||
// Get - Gets the specified private endpoint connection associated with the storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -160,7 +160,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", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -177,7 +177,7 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res
|
|||
|
||||
// NewListPager - List all the private endpoint connections associated with the storage account.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -227,7 +227,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", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -245,7 +245,7 @@ func (client *PrivateEndpointConnectionsClient) listHandleResponse(resp *http.Re
|
|||
// Put - Update the state of specified private endpoint connection associated with the storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -299,7 +299,7 @@ func (client *PrivateEndpointConnectionsClient) putCreateRequest(ctx context.Con
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, properties); err != nil {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke
|
|||
// ListByStorageAccount - Gets the private link resources that need to be created for a storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -94,7 +94,7 @@ func (client *PrivateLinkResourcesClient) listByStorageAccountCreateRequest(ctx
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func NewQueueClient(subscriptionID string, credential azcore.TokenCredential, op
|
|||
// Create - Creates a new queue with the specified queue name, under the specified account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -101,7 +101,7 @@ func (client *QueueClient) createCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, queue); err != nil {
|
||||
|
|
@ -122,7 +122,7 @@ func (client *QueueClient) createHandleResponse(resp *http.Response) (QueueClien
|
|||
// Delete - Deletes the queue with the specified queue name, under the specified account if it exists.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -175,7 +175,7 @@ func (client *QueueClient) deleteCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -184,7 +184,7 @@ func (client *QueueClient) deleteCreateRequest(ctx context.Context, resourceGrou
|
|||
// Get - Gets the queue with the specified queue name, under the specified account if it exists.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -238,7 +238,7 @@ func (client *QueueClient) getCreateRequest(ctx context.Context, resourceGroupNa
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -255,7 +255,7 @@ func (client *QueueClient) getHandleResponse(resp *http.Response) (QueueClientGe
|
|||
|
||||
// NewListPager - Gets a list of all the queues under the specified storage account
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -303,13 +303,13 @@ func (client *QueueClient) listCreateRequest(ctx context.Context, resourceGroupN
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", *options.Maxpagesize)
|
||||
}
|
||||
if options != nil && options.Filter != nil {
|
||||
reqQP.Set("$filter", *options.Filter)
|
||||
}
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", *options.Maxpagesize)
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -327,7 +327,7 @@ func (client *QueueClient) listHandleResponse(resp *http.Response) (QueueClientL
|
|||
// Update - Creates a new queue with the specified queue name, under the specified account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -382,7 +382,7 @@ func (client *QueueClient) updateCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, queue); err != nil {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ func NewQueueServicesClient(subscriptionID string, credential azcore.TokenCreden
|
|||
// and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -96,7 +96,7 @@ func (client *QueueServicesClient) getServicePropertiesCreateRequest(ctx context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -114,7 +114,7 @@ func (client *QueueServicesClient) getServicePropertiesHandleResponse(resp *http
|
|||
// List - List all queue services for the storage account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -161,7 +161,7 @@ func (client *QueueServicesClient) listCreateRequest(ctx context.Context, resour
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -180,7 +180,7 @@ func (client *QueueServicesClient) listHandleResponse(resp *http.Response) (Queu
|
|||
// and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -231,7 +231,7 @@ func (client *QueueServicesClient) setServicePropertiesCreateRequest(ctx context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
|
|||
|
|
@ -369,7 +369,7 @@ type LocalUsersClientListKeysResponse struct {
|
|||
|
||||
// LocalUsersClientListResponse contains the response from method LocalUsersClient.NewListPager.
|
||||
type LocalUsersClientListResponse struct {
|
||||
// List storage account local users.
|
||||
// List of local users requested, and if paging is required, a URL to the next page of local users.
|
||||
LocalUsers
|
||||
}
|
||||
|
||||
|
|
@ -396,6 +396,23 @@ type ManagementPoliciesClientGetResponse struct {
|
|||
ManagementPolicy
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationsClientGetResponse contains the response from method NetworkSecurityPerimeterConfigurationsClient.Get.
|
||||
type NetworkSecurityPerimeterConfigurationsClientGetResponse struct {
|
||||
// The Network Security Perimeter configuration resource.
|
||||
NetworkSecurityPerimeterConfiguration
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationsClientListResponse contains the response from method NetworkSecurityPerimeterConfigurationsClient.NewListPager.
|
||||
type NetworkSecurityPerimeterConfigurationsClientListResponse struct {
|
||||
// Result of the List Network Security Perimeter configuration operation.
|
||||
NetworkSecurityPerimeterConfigurationList
|
||||
}
|
||||
|
||||
// NetworkSecurityPerimeterConfigurationsClientReconcileResponse contains the response from method NetworkSecurityPerimeterConfigurationsClient.BeginReconcile.
|
||||
type NetworkSecurityPerimeterConfigurationsClientReconcileResponse struct {
|
||||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// ObjectReplicationPoliciesClientCreateOrUpdateResponse contains the response from method ObjectReplicationPoliciesClient.CreateOrUpdate.
|
||||
type ObjectReplicationPoliciesClientCreateOrUpdateResponse struct {
|
||||
// The replication policy between two storage accounts. Multiple rules can be defined in one policy.
|
||||
|
|
@ -550,6 +567,47 @@ type TableServicesClientSetServicePropertiesResponse struct {
|
|||
TableServiceProperties
|
||||
}
|
||||
|
||||
// TaskAssignmentInstancesReportClientListResponse contains the response from method TaskAssignmentInstancesReportClient.NewListPager.
|
||||
type TaskAssignmentInstancesReportClientListResponse struct {
|
||||
// Fetch Storage Tasks Run Summary.
|
||||
TaskReportSummary
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientCreateResponse contains the response from method TaskAssignmentsClient.BeginCreate.
|
||||
type TaskAssignmentsClientCreateResponse struct {
|
||||
// The storage task assignment.
|
||||
TaskAssignment
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientDeleteResponse contains the response from method TaskAssignmentsClient.BeginDelete.
|
||||
type TaskAssignmentsClientDeleteResponse struct {
|
||||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientGetResponse contains the response from method TaskAssignmentsClient.Get.
|
||||
type TaskAssignmentsClientGetResponse struct {
|
||||
// The storage task assignment.
|
||||
TaskAssignment
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientListResponse contains the response from method TaskAssignmentsClient.NewListPager.
|
||||
type TaskAssignmentsClientListResponse struct {
|
||||
// List of storage task assignments for the storage account
|
||||
TaskAssignmentsList
|
||||
}
|
||||
|
||||
// TaskAssignmentsClientUpdateResponse contains the response from method TaskAssignmentsClient.BeginUpdate.
|
||||
type TaskAssignmentsClientUpdateResponse struct {
|
||||
// The storage task assignment.
|
||||
TaskAssignment
|
||||
}
|
||||
|
||||
// TaskAssignmentsInstancesReportClientListResponse contains the response from method TaskAssignmentsInstancesReportClient.NewListPager.
|
||||
type TaskAssignmentsInstancesReportClientListResponse struct {
|
||||
// Fetch Storage Tasks Run Summary.
|
||||
TaskReportSummary
|
||||
}
|
||||
|
||||
// UsagesClientListByLocationResponse contains the response from method UsagesClient.NewListByLocationPager.
|
||||
type UsagesClientListByLocationResponse struct {
|
||||
// The response from the List Usages operation.
|
||||
|
|
@ -45,7 +45,7 @@ func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, opt
|
|||
|
||||
// NewListPager - Lists the available SKUs supported by Microsoft.Storage for given subscription.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-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,7 +83,7 @@ func (client *SKUsClient) listCreateRequest(ctx context.Context, options *SKUsCl
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ func NewTableClient(subscriptionID string, credential azcore.TokenCredential, op
|
|||
// Create - Creates a new table with the specified table name, under the specified account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -99,7 +99,7 @@ func (client *TableClient) createCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Parameters != nil {
|
||||
|
|
@ -123,7 +123,7 @@ func (client *TableClient) createHandleResponse(resp *http.Response) (TableClien
|
|||
// Delete - Deletes the table with the specified table name, under the specified account if it exists.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -175,7 +175,7 @@ func (client *TableClient) deleteCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -184,7 +184,7 @@ func (client *TableClient) deleteCreateRequest(ctx context.Context, resourceGrou
|
|||
// Get - Gets the table with the specified table name, under the specified account if it exists.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -237,7 +237,7 @@ func (client *TableClient) getCreateRequest(ctx context.Context, resourceGroupNa
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -254,7 +254,7 @@ func (client *TableClient) getHandleResponse(resp *http.Response) (TableClientGe
|
|||
|
||||
// NewListPager - Gets a list of all the tables under the specified storage account
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -302,7 +302,7 @@ func (client *TableClient) listCreateRequest(ctx context.Context, resourceGroupN
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -320,7 +320,7 @@ func (client *TableClient) listHandleResponse(resp *http.Response) (TableClientL
|
|||
// Update - Creates a new table with the specified table name, under the specified account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -373,7 +373,7 @@ func (client *TableClient) updateCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Parameters != nil {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ func NewTableServicesClient(subscriptionID string, credential azcore.TokenCreden
|
|||
// and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -96,7 +96,7 @@ func (client *TableServicesClient) getServicePropertiesCreateRequest(ctx context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -114,7 +114,7 @@ func (client *TableServicesClient) getServicePropertiesHandleResponse(resp *http
|
|||
// List - List all table services for the storage account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -161,7 +161,7 @@ func (client *TableServicesClient) listCreateRequest(ctx context.Context, resour
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
@ -180,7 +180,7 @@ func (client *TableServicesClient) listHandleResponse(resp *http.Response) (Tabl
|
|||
// and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
|
|
@ -231,7 +231,7 @@ func (client *TableServicesClient) setServicePropertiesCreateRequest(ctx context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
|
|
|
|||
123
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentinstancesreport_client.go
generated
vendored
Normal file
123
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentinstancesreport_client.go
generated
vendored
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
package armstorage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// TaskAssignmentInstancesReportClient contains the methods for the StorageTaskAssignmentInstancesReport group.
|
||||
// Don't use this type directly, use NewTaskAssignmentInstancesReportClient() instead.
|
||||
type TaskAssignmentInstancesReportClient struct {
|
||||
internal *arm.Client
|
||||
subscriptionID string
|
||||
}
|
||||
|
||||
// NewTaskAssignmentInstancesReportClient creates a new instance of TaskAssignmentInstancesReportClient with the specified values.
|
||||
// - subscriptionID - The ID of the target subscription.
|
||||
// - credential - used to authorize requests. Usually a credential from azidentity.
|
||||
// - options - pass nil to accept the default values.
|
||||
func NewTaskAssignmentInstancesReportClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TaskAssignmentInstancesReportClient, error) {
|
||||
cl, err := arm.NewClient(moduleName, moduleVersion, credential, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client := &TaskAssignmentInstancesReportClient{
|
||||
subscriptionID: subscriptionID,
|
||||
internal: cl,
|
||||
}
|
||||
return client, nil
|
||||
}
|
||||
|
||||
// NewListPager - Fetch the report summary of a single storage task assignment's instances
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
|
||||
// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - options - TaskAssignmentInstancesReportClientListOptions contains the optional parameters for the TaskAssignmentInstancesReportClient.NewListPager
|
||||
// method.
|
||||
func (client *TaskAssignmentInstancesReportClient) NewListPager(resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentInstancesReportClientListOptions) *runtime.Pager[TaskAssignmentInstancesReportClientListResponse] {
|
||||
return runtime.NewPager(runtime.PagingHandler[TaskAssignmentInstancesReportClientListResponse]{
|
||||
More: func(page TaskAssignmentInstancesReportClientListResponse) bool {
|
||||
return page.NextLink != nil && len(*page.NextLink) > 0
|
||||
},
|
||||
Fetcher: func(ctx context.Context, page *TaskAssignmentInstancesReportClientListResponse) (TaskAssignmentInstancesReportClientListResponse, error) {
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "TaskAssignmentInstancesReportClient.NewListPager")
|
||||
nextLink := ""
|
||||
if page != nil {
|
||||
nextLink = *page.NextLink
|
||||
}
|
||||
resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) {
|
||||
return client.listCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, options)
|
||||
}, nil)
|
||||
if err != nil {
|
||||
return TaskAssignmentInstancesReportClientListResponse{}, err
|
||||
}
|
||||
return client.listHandleResponse(resp)
|
||||
},
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
|
||||
// listCreateRequest creates the List request.
|
||||
func (client *TaskAssignmentInstancesReportClient) listCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentInstancesReportClientListOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}/reports"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if storageTaskAssignmentName == "" {
|
||||
return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
if options != nil && options.Filter != nil {
|
||||
reqQP.Set("$filter", *options.Filter)
|
||||
}
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// listHandleResponse handles the List response.
|
||||
func (client *TaskAssignmentInstancesReportClient) listHandleResponse(resp *http.Response) (TaskAssignmentInstancesReportClientListResponse, error) {
|
||||
result := TaskAssignmentInstancesReportClientListResponse{}
|
||||
if err := runtime.UnmarshalAsJSON(resp, &result.TaskReportSummary); err != nil {
|
||||
return TaskAssignmentInstancesReportClientListResponse{}, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
453
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignments_client.go
generated
vendored
Normal file
453
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignments_client.go
generated
vendored
Normal file
|
|
@ -0,0 +1,453 @@
|
|||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
package armstorage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// TaskAssignmentsClient contains the methods for the StorageTaskAssignments group.
|
||||
// Don't use this type directly, use NewTaskAssignmentsClient() instead.
|
||||
type TaskAssignmentsClient struct {
|
||||
internal *arm.Client
|
||||
subscriptionID string
|
||||
}
|
||||
|
||||
// NewTaskAssignmentsClient creates a new instance of TaskAssignmentsClient with the specified values.
|
||||
// - subscriptionID - The ID of the target subscription.
|
||||
// - credential - used to authorize requests. Usually a credential from azidentity.
|
||||
// - options - pass nil to accept the default values.
|
||||
func NewTaskAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TaskAssignmentsClient, error) {
|
||||
cl, err := arm.NewClient(moduleName, moduleVersion, credential, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client := &TaskAssignmentsClient{
|
||||
subscriptionID: subscriptionID,
|
||||
internal: cl,
|
||||
}
|
||||
return client, nil
|
||||
}
|
||||
|
||||
// BeginCreate - Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage
|
||||
// task assignment is already created and a subsequent create request is issued with
|
||||
// different properties, the storage task assignment properties will be updated. If a storage task assignment is already created
|
||||
// and a subsequent create or update request is issued with the exact same
|
||||
// set of properties, the request will succeed.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
|
||||
// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - parameters - The parameters to create a Storage Task Assignment.
|
||||
// - options - TaskAssignmentsClientBeginCreateOptions contains the optional parameters for the TaskAssignmentsClient.BeginCreate
|
||||
// method.
|
||||
func (client *TaskAssignmentsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignment, options *TaskAssignmentsClientBeginCreateOptions) (*runtime.Poller[TaskAssignmentsClientCreateResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.create(ctx, resourceGroupName, accountName, storageTaskAssignmentName, parameters, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TaskAssignmentsClientCreateResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TaskAssignmentsClientCreateResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Create - Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage
|
||||
// task assignment is already created and a subsequent create request is issued with
|
||||
// different properties, the storage task assignment properties will be updated. If a storage task assignment is already created
|
||||
// and a subsequent create or update request is issued with the exact same
|
||||
// set of properties, the request will succeed.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *TaskAssignmentsClient) create(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignment, options *TaskAssignmentsClientBeginCreateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "TaskAssignmentsClient.BeginCreate"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.createCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, parameters, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated, http.StatusAccepted) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return nil, err
|
||||
}
|
||||
return httpResp, nil
|
||||
}
|
||||
|
||||
// createCreateRequest creates the Create request.
|
||||
func (client *TaskAssignmentsClient) createCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignment, options *TaskAssignmentsClientBeginCreateOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if storageTaskAssignmentName == "" {
|
||||
return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// BeginDelete - Delete the storage task assignment sub-resource
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
|
||||
// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - options - TaskAssignmentsClientBeginDeleteOptions contains the optional parameters for the TaskAssignmentsClient.BeginDelete
|
||||
// method.
|
||||
func (client *TaskAssignmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientBeginDeleteOptions) (*runtime.Poller[TaskAssignmentsClientDeleteResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, storageTaskAssignmentName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TaskAssignmentsClientDeleteResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TaskAssignmentsClientDeleteResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Delete - Delete the storage task assignment sub-resource
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *TaskAssignmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "TaskAssignmentsClient.BeginDelete"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return nil, err
|
||||
}
|
||||
return httpResp, nil
|
||||
}
|
||||
|
||||
// deleteCreateRequest creates the Delete request.
|
||||
func (client *TaskAssignmentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientBeginDeleteOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if storageTaskAssignmentName == "" {
|
||||
return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// Get - Get the storage task assignment properties
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
|
||||
// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - options - TaskAssignmentsClientGetOptions contains the optional parameters for the TaskAssignmentsClient.Get method.
|
||||
func (client *TaskAssignmentsClient) Get(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientGetOptions) (TaskAssignmentsClientGetResponse, error) {
|
||||
var err error
|
||||
const operationName = "TaskAssignmentsClient.Get"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, options)
|
||||
if err != nil {
|
||||
return TaskAssignmentsClientGetResponse{}, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return TaskAssignmentsClientGetResponse{}, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusOK) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return TaskAssignmentsClientGetResponse{}, err
|
||||
}
|
||||
resp, err := client.getHandleResponse(httpResp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// getCreateRequest creates the Get request.
|
||||
func (client *TaskAssignmentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientGetOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if storageTaskAssignmentName == "" {
|
||||
return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// getHandleResponse handles the Get response.
|
||||
func (client *TaskAssignmentsClient) getHandleResponse(resp *http.Response) (TaskAssignmentsClientGetResponse, error) {
|
||||
result := TaskAssignmentsClientGetResponse{}
|
||||
if err := runtime.UnmarshalAsJSON(resp, &result.TaskAssignment); err != nil {
|
||||
return TaskAssignmentsClientGetResponse{}, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// NewListPager - List all the storage task assignments in an account
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - options - TaskAssignmentsClientListOptions contains the optional parameters for the TaskAssignmentsClient.NewListPager
|
||||
// method.
|
||||
func (client *TaskAssignmentsClient) NewListPager(resourceGroupName string, accountName string, options *TaskAssignmentsClientListOptions) *runtime.Pager[TaskAssignmentsClientListResponse] {
|
||||
return runtime.NewPager(runtime.PagingHandler[TaskAssignmentsClientListResponse]{
|
||||
More: func(page TaskAssignmentsClientListResponse) bool {
|
||||
return page.NextLink != nil && len(*page.NextLink) > 0
|
||||
},
|
||||
Fetcher: func(ctx context.Context, page *TaskAssignmentsClientListResponse) (TaskAssignmentsClientListResponse, error) {
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "TaskAssignmentsClient.NewListPager")
|
||||
nextLink := ""
|
||||
if page != nil {
|
||||
nextLink = *page.NextLink
|
||||
}
|
||||
resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) {
|
||||
return client.listCreateRequest(ctx, resourceGroupName, accountName, options)
|
||||
}, nil)
|
||||
if err != nil {
|
||||
return TaskAssignmentsClientListResponse{}, err
|
||||
}
|
||||
return client.listHandleResponse(resp)
|
||||
},
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
|
||||
// listCreateRequest creates the List request.
|
||||
func (client *TaskAssignmentsClient) listCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *TaskAssignmentsClientListOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// listHandleResponse handles the List response.
|
||||
func (client *TaskAssignmentsClient) listHandleResponse(resp *http.Response) (TaskAssignmentsClientListResponse, error) {
|
||||
result := TaskAssignmentsClientListResponse{}
|
||||
if err := runtime.UnmarshalAsJSON(resp, &result.TaskAssignmentsList); err != nil {
|
||||
return TaskAssignmentsClientListResponse{}, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// BeginUpdate - Update storage task assignment properties
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
|
||||
// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - parameters - The parameters to update a Storage Task Assignment.
|
||||
// - options - TaskAssignmentsClientBeginUpdateOptions contains the optional parameters for the TaskAssignmentsClient.BeginUpdate
|
||||
// method.
|
||||
func (client *TaskAssignmentsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignmentUpdateParameters, options *TaskAssignmentsClientBeginUpdateOptions) (*runtime.Poller[TaskAssignmentsClientUpdateResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.update(ctx, resourceGroupName, accountName, storageTaskAssignmentName, parameters, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TaskAssignmentsClientUpdateResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TaskAssignmentsClientUpdateResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Update - Update storage task assignment properties
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
func (client *TaskAssignmentsClient) update(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignmentUpdateParameters, options *TaskAssignmentsClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "TaskAssignmentsClient.BeginUpdate"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.updateCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, parameters, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return nil, err
|
||||
}
|
||||
return httpResp, nil
|
||||
}
|
||||
|
||||
// updateCreateRequest creates the Update request.
|
||||
func (client *TaskAssignmentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignmentUpdateParameters, options *TaskAssignmentsClientBeginUpdateOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if storageTaskAssignmentName == "" {
|
||||
return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return req, nil
|
||||
}
|
||||
117
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentsinstancesreport_client.go
generated
vendored
Normal file
117
vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentsinstancesreport_client.go
generated
vendored
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
package armstorage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// TaskAssignmentsInstancesReportClient contains the methods for the StorageTaskAssignmentsInstancesReport group.
|
||||
// Don't use this type directly, use NewTaskAssignmentsInstancesReportClient() instead.
|
||||
type TaskAssignmentsInstancesReportClient struct {
|
||||
internal *arm.Client
|
||||
subscriptionID string
|
||||
}
|
||||
|
||||
// NewTaskAssignmentsInstancesReportClient creates a new instance of TaskAssignmentsInstancesReportClient with the specified values.
|
||||
// - subscriptionID - The ID of the target subscription.
|
||||
// - credential - used to authorize requests. Usually a credential from azidentity.
|
||||
// - options - pass nil to accept the default values.
|
||||
func NewTaskAssignmentsInstancesReportClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TaskAssignmentsInstancesReportClient, error) {
|
||||
cl, err := arm.NewClient(moduleName, moduleVersion, credential, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client := &TaskAssignmentsInstancesReportClient{
|
||||
subscriptionID: subscriptionID,
|
||||
internal: cl,
|
||||
}
|
||||
return client, nil
|
||||
}
|
||||
|
||||
// NewListPager - Fetch the report summary of all the storage task assignments and instances in an account
|
||||
//
|
||||
// Generated from API version 2023-05-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
|
||||
// 3 and 24 characters in length and use numbers and lower-case letters only.
|
||||
// - options - TaskAssignmentsInstancesReportClientListOptions contains the optional parameters for the TaskAssignmentsInstancesReportClient.NewListPager
|
||||
// method.
|
||||
func (client *TaskAssignmentsInstancesReportClient) NewListPager(resourceGroupName string, accountName string, options *TaskAssignmentsInstancesReportClientListOptions) *runtime.Pager[TaskAssignmentsInstancesReportClientListResponse] {
|
||||
return runtime.NewPager(runtime.PagingHandler[TaskAssignmentsInstancesReportClientListResponse]{
|
||||
More: func(page TaskAssignmentsInstancesReportClientListResponse) bool {
|
||||
return page.NextLink != nil && len(*page.NextLink) > 0
|
||||
},
|
||||
Fetcher: func(ctx context.Context, page *TaskAssignmentsInstancesReportClientListResponse) (TaskAssignmentsInstancesReportClientListResponse, error) {
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "TaskAssignmentsInstancesReportClient.NewListPager")
|
||||
nextLink := ""
|
||||
if page != nil {
|
||||
nextLink = *page.NextLink
|
||||
}
|
||||
resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) {
|
||||
return client.listCreateRequest(ctx, resourceGroupName, accountName, options)
|
||||
}, nil)
|
||||
if err != nil {
|
||||
return TaskAssignmentsInstancesReportClientListResponse{}, err
|
||||
}
|
||||
return client.listHandleResponse(resp)
|
||||
},
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
|
||||
// listCreateRequest creates the List request.
|
||||
func (client *TaskAssignmentsInstancesReportClient) listCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *TaskAssignmentsInstancesReportClientListOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/reports"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
if options != nil && options.Filter != nil {
|
||||
reqQP.Set("$filter", *options.Filter)
|
||||
}
|
||||
if options != nil && options.Maxpagesize != nil {
|
||||
reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
|
||||
}
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// listHandleResponse handles the List response.
|
||||
func (client *TaskAssignmentsInstancesReportClient) listHandleResponse(resp *http.Response) (TaskAssignmentsInstancesReportClientListResponse, error) {
|
||||
result := TaskAssignmentsInstancesReportClientListResponse{}
|
||||
if err := runtime.UnmarshalAsJSON(resp, &result.TaskReportSummary); err != nil {
|
||||
return TaskAssignmentsInstancesReportClientListResponse{}, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, o
|
|||
|
||||
// NewListByLocationPager - Gets the current usage count and the limit for the resources of the location under the subscription.
|
||||
//
|
||||
// Generated from API version 2023-01-01
|
||||
// Generated from API version 2023-05-01
|
||||
// - location - The location of the Azure Storage resource.
|
||||
// - options - UsagesClientListByLocationOptions contains the optional parameters for the UsagesClient.NewListByLocationPager
|
||||
// method.
|
||||
|
|
@ -89,7 +89,7 @@ func (client *UsagesClient) listByLocationCreateRequest(ctx context.Context, loc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2023-01-01")
|
||||
reqQP.Set("api-version", "2023-05-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue