Documentation ¶
Index ¶
- type AccessPolicy
- type AccessTier
- type AccountImmutabilityPolicyProperties
- type AccountImmutabilityPolicyState
- type AccountSasParameters
- type AccountStatus
- type ActiveDirectoryProperties
- type AzureEntityResource
- type AzureFilesIdentityBasedAuthentication
- type BlobContainer
- type BlobContainersBeginObjectLevelWormOptions
- type BlobContainersClearLegalHoldOptions
- type BlobContainersClearLegalHoldResponse
- type BlobContainersClearLegalHoldResult
- type BlobContainersClient
- func (client *BlobContainersClient) BeginObjectLevelWorm(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersObjectLevelWormPollerResponse, error)
- func (client *BlobContainersClient) ClearLegalHold(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersClearLegalHoldResponse, error)
- func (client *BlobContainersClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersCreateResponse, error)
- func (client *BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersCreateOrUpdateImmutabilityPolicyResponse, error)
- func (client *BlobContainersClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersDeleteResponse, error)
- func (client *BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersDeleteImmutabilityPolicyResponse, error)
- func (client *BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersExtendImmutabilityPolicyResponse, error)
- func (client *BlobContainersClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersGetResponse, error)
- func (client *BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersGetImmutabilityPolicyResponse, error)
- func (client *BlobContainersClient) Lease(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersLeaseResponse, error)
- func (client *BlobContainersClient) List(resourceGroupName string, accountName string, ...) *BlobContainersListPager
- func (client *BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersLockImmutabilityPolicyResponse, error)
- func (client *BlobContainersClient) SetLegalHold(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersSetLegalHoldResponse, error)
- func (client *BlobContainersClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobContainersUpdateResponse, error)
- type BlobContainersCreateOptions
- type BlobContainersCreateOrUpdateImmutabilityPolicyOptions
- type BlobContainersCreateOrUpdateImmutabilityPolicyResponse
- type BlobContainersCreateOrUpdateImmutabilityPolicyResult
- type BlobContainersCreateResponse
- type BlobContainersCreateResult
- type BlobContainersDeleteImmutabilityPolicyOptions
- type BlobContainersDeleteImmutabilityPolicyResponse
- type BlobContainersDeleteImmutabilityPolicyResult
- type BlobContainersDeleteOptions
- type BlobContainersDeleteResponse
- type BlobContainersExtendImmutabilityPolicyOptions
- type BlobContainersExtendImmutabilityPolicyResponse
- type BlobContainersExtendImmutabilityPolicyResult
- type BlobContainersGetImmutabilityPolicyOptions
- type BlobContainersGetImmutabilityPolicyResponse
- type BlobContainersGetImmutabilityPolicyResult
- type BlobContainersGetOptions
- type BlobContainersGetResponse
- type BlobContainersGetResult
- type BlobContainersLeaseOptions
- type BlobContainersLeaseResponse
- type BlobContainersLeaseResult
- type BlobContainersListOptions
- type BlobContainersListPager
- type BlobContainersListResponse
- type BlobContainersListResult
- type BlobContainersLockImmutabilityPolicyOptions
- type BlobContainersLockImmutabilityPolicyResponse
- type BlobContainersLockImmutabilityPolicyResult
- type BlobContainersObjectLevelWormPoller
- func (p *BlobContainersObjectLevelWormPoller) Done() bool
- func (p *BlobContainersObjectLevelWormPoller) FinalResponse(ctx context.Context) (BlobContainersObjectLevelWormResponse, error)
- func (p *BlobContainersObjectLevelWormPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *BlobContainersObjectLevelWormPoller) ResumeToken() (string, error)
- type BlobContainersObjectLevelWormPollerResponse
- type BlobContainersObjectLevelWormResponse
- type BlobContainersSetLegalHoldOptions
- type BlobContainersSetLegalHoldResponse
- type BlobContainersSetLegalHoldResult
- type BlobContainersUpdateOptions
- type BlobContainersUpdateResponse
- type BlobContainersUpdateResult
- type BlobInventoryPoliciesClient
- func (client *BlobInventoryPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobInventoryPoliciesCreateOrUpdateResponse, error)
- func (client *BlobInventoryPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobInventoryPoliciesDeleteResponse, error)
- func (client *BlobInventoryPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobInventoryPoliciesGetResponse, error)
- func (client *BlobInventoryPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobInventoryPoliciesListResponse, error)
- type BlobInventoryPoliciesCreateOrUpdateOptions
- type BlobInventoryPoliciesCreateOrUpdateResponse
- type BlobInventoryPoliciesCreateOrUpdateResult
- type BlobInventoryPoliciesDeleteOptions
- type BlobInventoryPoliciesDeleteResponse
- type BlobInventoryPoliciesGetOptions
- type BlobInventoryPoliciesGetResponse
- type BlobInventoryPoliciesGetResult
- type BlobInventoryPoliciesListOptions
- type BlobInventoryPoliciesListResponse
- type BlobInventoryPoliciesListResult
- type BlobInventoryPolicy
- type BlobInventoryPolicyDefinition
- type BlobInventoryPolicyFilter
- type BlobInventoryPolicyName
- type BlobInventoryPolicyProperties
- type BlobInventoryPolicyRule
- type BlobInventoryPolicySchema
- type BlobRestoreParameters
- type BlobRestoreProgressStatus
- type BlobRestoreRange
- type BlobRestoreStatus
- type BlobServiceItems
- type BlobServiceProperties
- type BlobServicePropertiesProperties
- type BlobServicesClient
- func (client *BlobServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobServicesGetServicePropertiesResponse, error)
- func (client *BlobServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobServicesListResponse, error)
- func (client *BlobServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, ...) (BlobServicesSetServicePropertiesResponse, error)
- type BlobServicesGetServicePropertiesOptions
- type BlobServicesGetServicePropertiesResponse
- type BlobServicesGetServicePropertiesResult
- type BlobServicesListOptions
- type BlobServicesListResponse
- type BlobServicesListResult
- type BlobServicesSetServicePropertiesOptions
- type BlobServicesSetServicePropertiesResponse
- type BlobServicesSetServicePropertiesResult
- type Bypass
- type ChangeFeed
- type CheckNameAvailabilityResult
- type CloudError
- type CloudErrorAutoGenerated
- type CloudErrorBody
- type CloudErrorBodyAutoGenerated
- type ContainerProperties
- type CorsRule
- type CorsRuleAllowedMethodsItem
- type CorsRules
- type CreatedByType
- type CustomDomain
- type DateAfterCreation
- type DateAfterModification
- type DefaultAction
- type DefaultSharePermission
- type DeleteRetentionPolicy
- type DeletedAccount
- type DeletedAccountListResult
- type DeletedAccountProperties
- type DeletedAccountsClient
- type DeletedAccountsGetOptions
- type DeletedAccountsGetResponse
- type DeletedAccountsGetResult
- type DeletedAccountsListOptions
- type DeletedAccountsListPager
- type DeletedAccountsListResponse
- type DeletedAccountsListResult
- type DeletedShare
- type Dimension
- type DirectoryServiceOptions
- type EnabledProtocols
- type Encryption
- type EncryptionIdentity
- type EncryptionScope
- type EncryptionScopeKeyVaultProperties
- type EncryptionScopeListResult
- type EncryptionScopeProperties
- type EncryptionScopeSource
- type EncryptionScopeState
- type EncryptionScopesClient
- func (client *EncryptionScopesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (EncryptionScopesGetResponse, error)
- func (client *EncryptionScopesClient) List(resourceGroupName string, accountName string, ...) *EncryptionScopesListPager
- func (client *EncryptionScopesClient) Patch(ctx context.Context, resourceGroupName string, accountName string, ...) (EncryptionScopesPatchResponse, error)
- func (client *EncryptionScopesClient) Put(ctx context.Context, resourceGroupName string, accountName string, ...) (EncryptionScopesPutResponse, error)
- type EncryptionScopesGetOptions
- type EncryptionScopesGetResponse
- type EncryptionScopesGetResult
- type EncryptionScopesListOptions
- type EncryptionScopesListPager
- type EncryptionScopesListResponse
- type EncryptionScopesListResult
- type EncryptionScopesPatchOptions
- type EncryptionScopesPatchResponse
- type EncryptionScopesPatchResult
- type EncryptionScopesPutOptions
- type EncryptionScopesPutResponse
- type EncryptionScopesPutResult
- type EncryptionService
- type EncryptionServices
- type Endpoints
- type ErrorResponse
- type ErrorResponseBody
- type ExpirationAction
- type ExtendedLocation
- type ExtendedLocationTypes
- type FileServiceItems
- type FileServiceProperties
- type FileServicePropertiesProperties
- type FileServicesClient
- func (client *FileServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, ...) (FileServicesGetServicePropertiesResponse, error)
- func (client *FileServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, ...) (FileServicesListResponse, error)
- func (client *FileServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, ...) (FileServicesSetServicePropertiesResponse, error)
- type FileServicesGetServicePropertiesOptions
- type FileServicesGetServicePropertiesResponse
- type FileServicesGetServicePropertiesResult
- type FileServicesListOptions
- type FileServicesListResponse
- type FileServicesListResult
- type FileServicesSetServicePropertiesOptions
- type FileServicesSetServicePropertiesResponse
- type FileServicesSetServicePropertiesResult
- type FileShare
- type FileShareItem
- type FileShareItems
- type FileShareProperties
- type FileSharesClient
- func (client *FileSharesClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (FileSharesCreateResponse, error)
- func (client *FileSharesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (FileSharesDeleteResponse, error)
- func (client *FileSharesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (FileSharesGetResponse, error)
- func (client *FileSharesClient) Lease(ctx context.Context, resourceGroupName string, accountName string, ...) (FileSharesLeaseResponse, error)
- func (client *FileSharesClient) List(resourceGroupName string, accountName string, options *FileSharesListOptions) *FileSharesListPager
- func (client *FileSharesClient) Restore(ctx context.Context, resourceGroupName string, accountName string, ...) (FileSharesRestoreResponse, error)
- func (client *FileSharesClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (FileSharesUpdateResponse, error)
- type FileSharesCreateOptions
- type FileSharesCreateResponse
- type FileSharesCreateResult
- type FileSharesDeleteOptions
- type FileSharesDeleteResponse
- type FileSharesGetOptions
- type FileSharesGetResponse
- type FileSharesGetResult
- type FileSharesLeaseOptions
- type FileSharesLeaseResponse
- type FileSharesLeaseResult
- type FileSharesListOptions
- type FileSharesListPager
- type FileSharesListResponse
- type FileSharesListResult
- type FileSharesRestoreOptions
- type FileSharesRestoreResponse
- type FileSharesUpdateOptions
- type FileSharesUpdateResponse
- type FileSharesUpdateResult
- type Format
- type GeoReplicationStats
- type GeoReplicationStatus
- type HTTPProtocol
- type IPRule
- type Identity
- type IdentityType
- type ImmutabilityPolicy
- type ImmutabilityPolicyProperties
- type ImmutabilityPolicyProperty
- type ImmutabilityPolicyState
- type ImmutabilityPolicyUpdateType
- type ImmutableStorageAccount
- type ImmutableStorageWithVersioning
- type InventoryRuleType
- type KeyCreationTime
- type KeyPermission
- type KeyPolicy
- type KeySource
- type KeyType
- type KeyVaultProperties
- type Kind
- type LargeFileSharesState
- type LastAccessTimeTrackingPolicy
- type LeaseContainerRequest
- type LeaseContainerRequestAction
- type LeaseContainerResponse
- type LeaseDuration
- type LeaseShareAction
- type LeaseShareRequest
- type LeaseShareResponse
- type LeaseState
- type LeaseStatus
- type LegalHold
- type LegalHoldProperties
- type ListAccountSasResponse
- type ListBlobInventoryPolicy
- type ListContainerItem
- type ListContainerItems
- type ListContainersInclude
- type ListQueue
- type ListQueueProperties
- type ListQueueResource
- type ListQueueServices
- type ListServiceSasResponse
- type ListTableResource
- type ListTableServices
- type ManagementPoliciesClient
- func (client *ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (ManagementPoliciesCreateOrUpdateResponse, error)
- func (client *ManagementPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (ManagementPoliciesDeleteResponse, error)
- func (client *ManagementPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (ManagementPoliciesGetResponse, error)
- type ManagementPoliciesCreateOrUpdateOptions
- type ManagementPoliciesCreateOrUpdateResponse
- type ManagementPoliciesCreateOrUpdateResult
- type ManagementPoliciesDeleteOptions
- type ManagementPoliciesDeleteResponse
- type ManagementPoliciesGetOptions
- type ManagementPoliciesGetResponse
- type ManagementPoliciesGetResult
- type ManagementPolicy
- type ManagementPolicyAction
- type ManagementPolicyBaseBlob
- type ManagementPolicyDefinition
- type ManagementPolicyFilter
- type ManagementPolicyName
- type ManagementPolicyProperties
- type ManagementPolicyRule
- type ManagementPolicySchema
- type ManagementPolicySnapShot
- type ManagementPolicyVersion
- type MetricSpecification
- type MigrationState
- type MinimumTLSVersion
- type Multichannel
- type Name
- type NetworkRuleSet
- type ObjectReplicationPolicies
- type ObjectReplicationPoliciesClient
- func (client *ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectReplicationPoliciesCreateOrUpdateResponse, error)
- func (client *ObjectReplicationPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectReplicationPoliciesDeleteResponse, error)
- func (client *ObjectReplicationPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectReplicationPoliciesGetResponse, error)
- func (client *ObjectReplicationPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectReplicationPoliciesListResponse, error)
- type ObjectReplicationPoliciesCreateOrUpdateOptions
- type ObjectReplicationPoliciesCreateOrUpdateResponse
- type ObjectReplicationPoliciesCreateOrUpdateResult
- type ObjectReplicationPoliciesDeleteOptions
- type ObjectReplicationPoliciesDeleteResponse
- type ObjectReplicationPoliciesGetOptions
- type ObjectReplicationPoliciesGetResponse
- type ObjectReplicationPoliciesGetResult
- type ObjectReplicationPoliciesListOptions
- type ObjectReplicationPoliciesListResponse
- type ObjectReplicationPoliciesListResult
- type ObjectReplicationPolicy
- type ObjectReplicationPolicyFilter
- type ObjectReplicationPolicyProperties
- type ObjectReplicationPolicyRule
- type ObjectType
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationProperties
- type OperationsClient
- type OperationsListOptions
- type OperationsListResponse
- type OperationsListResult
- type Permissions
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointConnectionsClient
- func (client *PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (PrivateEndpointConnectionsDeleteResponse, error)
- func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (PrivateEndpointConnectionsGetResponse, error)
- func (client *PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, accountName string, ...) (PrivateEndpointConnectionsListResponse, error)
- func (client *PrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, accountName string, ...) (PrivateEndpointConnectionsPutResponse, error)
- type PrivateEndpointConnectionsDeleteOptions
- type PrivateEndpointConnectionsDeleteResponse
- type PrivateEndpointConnectionsGetOptions
- type PrivateEndpointConnectionsGetResponse
- type PrivateEndpointConnectionsGetResult
- type PrivateEndpointConnectionsListOptions
- type PrivateEndpointConnectionsListResponse
- type PrivateEndpointConnectionsListResult
- type PrivateEndpointConnectionsPutOptions
- type PrivateEndpointConnectionsPutResponse
- type PrivateEndpointConnectionsPutResult
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkResource
- type PrivateLinkResourceListResult
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesClient
- type PrivateLinkResourcesListByStorageAccountOptions
- type PrivateLinkResourcesListByStorageAccountResponse
- type PrivateLinkResourcesListByStorageAccountResult
- type PrivateLinkServiceConnectionState
- type ProtectedAppendWritesHistory
- type ProtocolSettings
- type ProvisioningState
- type ProxyResource
- type PublicAccess
- type PublicNetworkAccess
- type QueueClient
- func (client *QueueClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (QueueCreateResponse, error)
- func (client *QueueClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (QueueDeleteResponse, error)
- func (client *QueueClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (QueueGetResponse, error)
- func (client *QueueClient) List(resourceGroupName string, accountName string, options *QueueListOptions) *QueueListPager
- func (client *QueueClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (QueueUpdateResponse, error)
- type QueueCreateOptions
- type QueueCreateResponse
- type QueueCreateResult
- type QueueDeleteOptions
- type QueueDeleteResponse
- type QueueGetOptions
- type QueueGetResponse
- type QueueGetResult
- type QueueListOptions
- type QueueListPager
- type QueueListResponse
- type QueueListResult
- type QueueProperties
- type QueueServiceProperties
- type QueueServicePropertiesProperties
- type QueueServicesClient
- func (client *QueueServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, ...) (QueueServicesGetServicePropertiesResponse, error)
- func (client *QueueServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, ...) (QueueServicesListResponse, error)
- func (client *QueueServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, ...) (QueueServicesSetServicePropertiesResponse, error)
- type QueueServicesGetServicePropertiesOptions
- type QueueServicesGetServicePropertiesResponse
- type QueueServicesGetServicePropertiesResult
- type QueueServicesListOptions
- type QueueServicesListResponse
- type QueueServicesListResult
- type QueueServicesSetServicePropertiesOptions
- type QueueServicesSetServicePropertiesResponse
- type QueueServicesSetServicePropertiesResult
- type QueueUpdateOptions
- type QueueUpdateResponse
- type QueueUpdateResult
- type Reason
- type ReasonCode
- type Resource
- type ResourceAccessRule
- type RestorePolicyProperties
- type Restriction
- type RootSquashType
- type RoutingChoice
- type RoutingPreference
- type RuleType
- type SKU
- type SKUCapability
- type SKUInformation
- type SKUName
- type SKUTier
- type SKUsClient
- type SKUsListOptions
- type SKUsListResponse
- type SKUsListResult
- type SasPolicy
- type Schedule
- type ServiceSasParameters
- type ServiceSpecification
- type Services
- type ShareAccessTier
- type SignedIdentifier
- type SignedResource
- type SignedResourceTypes
- type SmbSetting
- type State
- type StorageAccount
- type StorageAccountCheckNameAvailabilityParameters
- type StorageAccountCreateParameters
- type StorageAccountExpand
- type StorageAccountInternetEndpoints
- type StorageAccountKey
- type StorageAccountListKeysResult
- type StorageAccountListResult
- type StorageAccountMicrosoftEndpoints
- type StorageAccountProperties
- type StorageAccountPropertiesCreateParameters
- type StorageAccountPropertiesUpdateParameters
- type StorageAccountRegenerateKeyParameters
- type StorageAccountUpdateParameters
- type StorageAccountsAbortHierarchicalNamespaceMigrationPoller
- func (p *StorageAccountsAbortHierarchicalNamespaceMigrationPoller) Done() bool
- func (p *StorageAccountsAbortHierarchicalNamespaceMigrationPoller) FinalResponse(ctx context.Context) (StorageAccountsAbortHierarchicalNamespaceMigrationResponse, error)
- func (p *StorageAccountsAbortHierarchicalNamespaceMigrationPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *StorageAccountsAbortHierarchicalNamespaceMigrationPoller) ResumeToken() (string, error)
- type StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse
- func (l StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (StorageAccountsAbortHierarchicalNamespaceMigrationResponse, error)
- func (l *StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse) Resume(ctx context.Context, client *StorageAccountsClient, token string) error
- type StorageAccountsAbortHierarchicalNamespaceMigrationResponse
- type StorageAccountsBeginAbortHierarchicalNamespaceMigrationOptions
- type StorageAccountsBeginCreateOptions
- type StorageAccountsBeginFailoverOptions
- type StorageAccountsBeginHierarchicalNamespaceMigrationOptions
- type StorageAccountsBeginRestoreBlobRangesOptions
- type StorageAccountsCheckNameAvailabilityOptions
- type StorageAccountsCheckNameAvailabilityResponse
- type StorageAccountsCheckNameAvailabilityResult
- type StorageAccountsClient
- func (client *StorageAccountsClient) BeginAbortHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse, error)
- func (client *StorageAccountsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsCreatePollerResponse, error)
- func (client *StorageAccountsClient) BeginFailover(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsFailoverPollerResponse, error)
- func (client *StorageAccountsClient) BeginHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsHierarchicalNamespaceMigrationPollerResponse, error)
- func (client *StorageAccountsClient) BeginRestoreBlobRanges(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsRestoreBlobRangesPollerResponse, error)
- func (client *StorageAccountsClient) CheckNameAvailability(ctx context.Context, accountName StorageAccountCheckNameAvailabilityParameters, ...) (StorageAccountsCheckNameAvailabilityResponse, error)
- func (client *StorageAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsDeleteResponse, error)
- func (client *StorageAccountsClient) GetProperties(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsGetPropertiesResponse, error)
- func (client *StorageAccountsClient) List(options *StorageAccountsListOptions) *StorageAccountsListPager
- func (client *StorageAccountsClient) ListAccountSAS(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsListAccountSASResponse, error)
- func (client *StorageAccountsClient) ListByResourceGroup(resourceGroupName string, options *StorageAccountsListByResourceGroupOptions) *StorageAccountsListByResourceGroupPager
- func (client *StorageAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsListKeysResponse, error)
- func (client *StorageAccountsClient) ListServiceSAS(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsListServiceSASResponse, error)
- func (client *StorageAccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsRegenerateKeyResponse, error)
- func (client *StorageAccountsClient) RevokeUserDelegationKeys(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsRevokeUserDelegationKeysResponse, error)
- func (client *StorageAccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (StorageAccountsUpdateResponse, error)
- type StorageAccountsCreatePoller
- func (p *StorageAccountsCreatePoller) Done() bool
- func (p *StorageAccountsCreatePoller) FinalResponse(ctx context.Context) (StorageAccountsCreateResponse, error)
- func (p *StorageAccountsCreatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *StorageAccountsCreatePoller) ResumeToken() (string, error)
- type StorageAccountsCreatePollerResponse
- type StorageAccountsCreateResponse
- type StorageAccountsCreateResult
- type StorageAccountsDeleteOptions
- type StorageAccountsDeleteResponse
- type StorageAccountsFailoverPoller
- func (p *StorageAccountsFailoverPoller) Done() bool
- func (p *StorageAccountsFailoverPoller) FinalResponse(ctx context.Context) (StorageAccountsFailoverResponse, error)
- func (p *StorageAccountsFailoverPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *StorageAccountsFailoverPoller) ResumeToken() (string, error)
- type StorageAccountsFailoverPollerResponse
- type StorageAccountsFailoverResponse
- type StorageAccountsGetPropertiesOptions
- type StorageAccountsGetPropertiesResponse
- type StorageAccountsGetPropertiesResult
- type StorageAccountsHierarchicalNamespaceMigrationPoller
- func (p *StorageAccountsHierarchicalNamespaceMigrationPoller) Done() bool
- func (p *StorageAccountsHierarchicalNamespaceMigrationPoller) FinalResponse(ctx context.Context) (StorageAccountsHierarchicalNamespaceMigrationResponse, error)
- func (p *StorageAccountsHierarchicalNamespaceMigrationPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *StorageAccountsHierarchicalNamespaceMigrationPoller) ResumeToken() (string, error)
- type StorageAccountsHierarchicalNamespaceMigrationPollerResponse
- func (l StorageAccountsHierarchicalNamespaceMigrationPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (StorageAccountsHierarchicalNamespaceMigrationResponse, error)
- func (l *StorageAccountsHierarchicalNamespaceMigrationPollerResponse) Resume(ctx context.Context, client *StorageAccountsClient, token string) error
- type StorageAccountsHierarchicalNamespaceMigrationResponse
- type StorageAccountsListAccountSASOptions
- type StorageAccountsListAccountSASResponse
- type StorageAccountsListAccountSASResult
- type StorageAccountsListByResourceGroupOptions
- type StorageAccountsListByResourceGroupPager
- type StorageAccountsListByResourceGroupResponse
- type StorageAccountsListByResourceGroupResult
- type StorageAccountsListKeysOptions
- type StorageAccountsListKeysResponse
- type StorageAccountsListKeysResult
- type StorageAccountsListOptions
- type StorageAccountsListPager
- type StorageAccountsListResponse
- type StorageAccountsListResult
- type StorageAccountsListServiceSASOptions
- type StorageAccountsListServiceSASResponse
- type StorageAccountsListServiceSASResult
- type StorageAccountsRegenerateKeyOptions
- type StorageAccountsRegenerateKeyResponse
- type StorageAccountsRegenerateKeyResult
- type StorageAccountsRestoreBlobRangesPoller
- func (p *StorageAccountsRestoreBlobRangesPoller) Done() bool
- func (p *StorageAccountsRestoreBlobRangesPoller) FinalResponse(ctx context.Context) (StorageAccountsRestoreBlobRangesResponse, error)
- func (p *StorageAccountsRestoreBlobRangesPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *StorageAccountsRestoreBlobRangesPoller) ResumeToken() (string, error)
- type StorageAccountsRestoreBlobRangesPollerResponse
- type StorageAccountsRestoreBlobRangesResponse
- type StorageAccountsRestoreBlobRangesResult
- type StorageAccountsRevokeUserDelegationKeysOptions
- type StorageAccountsRevokeUserDelegationKeysResponse
- type StorageAccountsUpdateOptions
- type StorageAccountsUpdateResponse
- type StorageAccountsUpdateResult
- type StorageQueue
- type StorageSKUListResult
- type SystemData
- type Table
- type TableClient
- func (client *TableClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (TableCreateResponse, error)
- func (client *TableClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (TableDeleteResponse, error)
- func (client *TableClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (TableGetResponse, error)
- func (client *TableClient) List(resourceGroupName string, accountName string, options *TableListOptions) *TableListPager
- func (client *TableClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (TableUpdateResponse, error)
- type TableCreateOptions
- type TableCreateResponse
- type TableCreateResult
- type TableDeleteOptions
- type TableDeleteResponse
- type TableGetOptions
- type TableGetResponse
- type TableGetResult
- type TableListOptions
- type TableListPager
- type TableListResponse
- type TableListResult
- type TableProperties
- type TableServiceProperties
- type TableServicePropertiesProperties
- type TableServicesClient
- func (client *TableServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, ...) (TableServicesGetServicePropertiesResponse, error)
- func (client *TableServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, ...) (TableServicesListResponse, error)
- func (client *TableServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, ...) (TableServicesSetServicePropertiesResponse, error)
- type TableServicesGetServicePropertiesOptions
- type TableServicesGetServicePropertiesResponse
- type TableServicesGetServicePropertiesResult
- type TableServicesListOptions
- type TableServicesListResponse
- type TableServicesListResult
- type TableServicesSetServicePropertiesOptions
- type TableServicesSetServicePropertiesResponse
- type TableServicesSetServicePropertiesResult
- type TableUpdateOptions
- type TableUpdateResponse
- type TableUpdateResult
- type TagFilter
- type TagProperty
- type TrackedResource
- type UpdateHistoryProperty
- type Usage
- type UsageListResult
- type UsageName
- type UsageUnit
- type UsagesClient
- type UsagesListByLocationOptions
- type UsagesListByLocationResponse
- type UsagesListByLocationResult
- type UserAssignedIdentity
- type VirtualNetworkRule
Examples ¶
- BlobContainersClient.Create
- BlobContainersClient.Delete
- BlobContainersClient.Get
- BlobContainersClient.List
- StorageAccountsClient.BeginCreate
- StorageAccountsClient.CheckNameAvailability
- StorageAccountsClient.Delete
- StorageAccountsClient.GetProperties
- StorageAccountsClient.List
- StorageAccountsClient.ListByResourceGroup
- StorageAccountsClient.ListKeys
- StorageAccountsClient.RegenerateKey
- StorageAccountsClient.Update
- UsagesClient.ListByLocation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessPolicy ¶
type AccessPolicy struct { // Expiry time of the access policy ExpiryTime *time.Time `json:"expiryTime,omitempty"` // List of abbreviated permissions. Permission *string `json:"permission,omitempty"` // Start time of the access policy StartTime *time.Time `json:"startTime,omitempty"` }
func (AccessPolicy) MarshalJSON ¶
func (a AccessPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AccessPolicy.
func (*AccessPolicy) UnmarshalJSON ¶
func (a *AccessPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AccessPolicy.
type AccessTier ¶
type AccessTier string
AccessTier - Required for storage accounts where kind = BlobStorage. The access tier used for billing.
const ( AccessTierHot AccessTier = "Hot" AccessTierCool AccessTier = "Cool" )
func PossibleAccessTierValues ¶
func PossibleAccessTierValues() []AccessTier
PossibleAccessTierValues returns the possible values for the AccessTier const type.
func (AccessTier) ToPtr ¶
func (c AccessTier) ToPtr() *AccessTier
ToPtr returns a *AccessTier pointing to the current value.
type AccountImmutabilityPolicyProperties ¶
type AccountImmutabilityPolicyProperties struct { // This property can only be changed for disabled and unlocked time-based retention policies. When enabled, new blocks can be written to an append blob // while maintaining immutability protection and // compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. AllowProtectedAppendWrites *bool `json:"allowProtectedAppendWrites,omitempty"` // The immutability period for the blobs in the container since the policy creation, in days. ImmutabilityPeriodSinceCreationInDays *int32 `json:"immutabilityPeriodSinceCreationInDays,omitempty"` // The ImmutabilityPolicy state defines the mode of the policy. Disabled state disables the policy, Unlocked state allows increase and decrease of immutability // retention time and also allows toggling // allowProtectedAppendWrites property, Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled // or Unlocked state and can be toggled between // the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. State *AccountImmutabilityPolicyState `json:"state,omitempty"` }
AccountImmutabilityPolicyProperties - This defines account-level immutability policy properties.
type AccountImmutabilityPolicyState ¶
type AccountImmutabilityPolicyState string
AccountImmutabilityPolicyState - The ImmutabilityPolicy state defines the mode of the policy. Disabled state disables the policy, Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property, Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted.
const ( AccountImmutabilityPolicyStateDisabled AccountImmutabilityPolicyState = "Disabled" AccountImmutabilityPolicyStateLocked AccountImmutabilityPolicyState = "Locked" AccountImmutabilityPolicyStateUnlocked AccountImmutabilityPolicyState = "Unlocked" )
func PossibleAccountImmutabilityPolicyStateValues ¶
func PossibleAccountImmutabilityPolicyStateValues() []AccountImmutabilityPolicyState
PossibleAccountImmutabilityPolicyStateValues returns the possible values for the AccountImmutabilityPolicyState const type.
func (AccountImmutabilityPolicyState) ToPtr ¶
func (c AccountImmutabilityPolicyState) ToPtr() *AccountImmutabilityPolicyState
ToPtr returns a *AccountImmutabilityPolicyState pointing to the current value.
type AccountSasParameters ¶
type AccountSasParameters struct { // REQUIRED; The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update // (u) and Process (p). Permissions *Permissions `json:"signedPermission,omitempty"` // REQUIRED; The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level // APIs; Object (o): Access to object-level APIs // for blobs, queue messages, table entities, and files. ResourceTypes *SignedResourceTypes `json:"signedResourceTypes,omitempty"` // REQUIRED; The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Services *Services `json:"signedServices,omitempty"` SharedAccessExpiryTime *time.Time `json:"signedExpiry,omitempty"` // An IP address or a range of IP addresses from which to accept requests. IPAddressOrRange *string `json:"signedIp,omitempty"` // The key to sign the account SAS token with. KeyToSign *string `json:"keyToSign,omitempty"` // The protocol permitted for a request made with the account SAS. Protocols *HTTPProtocol `json:"signedProtocol,omitempty"` SharedAccessStartTime *time.Time `json:"signedStart,omitempty"` }
AccountSasParameters - The parameters to list SAS credentials of a storage account.
func (AccountSasParameters) MarshalJSON ¶
func (a AccountSasParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AccountSasParameters.
func (*AccountSasParameters) UnmarshalJSON ¶
func (a *AccountSasParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AccountSasParameters.
type AccountStatus ¶
type AccountStatus string
AccountStatus - Gets the status indicating whether the primary location of the storage account is available or unavailable.
const ( AccountStatusAvailable AccountStatus = "available" )
func PossibleAccountStatusValues ¶
func PossibleAccountStatusValues() []AccountStatus
PossibleAccountStatusValues returns the possible values for the AccountStatus const type.
func (AccountStatus) ToPtr ¶
func (c AccountStatus) ToPtr() *AccountStatus
ToPtr returns a *AccountStatus pointing to the current value.
type ActiveDirectoryProperties ¶
type ActiveDirectoryProperties struct { // REQUIRED; Specifies the security identifier (SID) for Azure Storage. AzureStorageSid *string `json:"azureStorageSid,omitempty"` // REQUIRED; Specifies the domain GUID. DomainGUID *string `json:"domainGuid,omitempty"` // REQUIRED; Specifies the primary domain that the AD DNS server is authoritative for. DomainName *string `json:"domainName,omitempty"` // REQUIRED; Specifies the security identifier (SID). DomainSid *string `json:"domainSid,omitempty"` // REQUIRED; Specifies the Active Directory forest to get. ForestName *string `json:"forestName,omitempty"` // REQUIRED; Specifies the NetBIOS domain name. NetBiosDomainName *string `json:"netBiosDomainName,omitempty"` }
ActiveDirectoryProperties - Settings properties for Active Directory (AD).
type AzureEntityResource ¶
type AzureEntityResource struct { Resource // READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty" azure:"ro"` }
AzureEntityResource - The resource model definition for an Azure Resource Manager resource with an etag.
func (AzureEntityResource) MarshalJSON ¶
func (a AzureEntityResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureEntityResource.
type AzureFilesIdentityBasedAuthentication ¶
type AzureFilesIdentityBasedAuthentication struct { // REQUIRED; Indicates the directory service used. DirectoryServiceOptions *DirectoryServiceOptions `json:"directoryServiceOptions,omitempty"` // Required if choose AD. ActiveDirectoryProperties *ActiveDirectoryProperties `json:"activeDirectoryProperties,omitempty"` DefaultSharePermission *DefaultSharePermission `json:"defaultSharePermission,omitempty"` }
AzureFilesIdentityBasedAuthentication - Settings for Azure Files identity based authentication.
type BlobContainer ¶
type BlobContainer struct { AzureEntityResource // Properties of the blob container. ContainerProperties *ContainerProperties `json:"properties,omitempty"` }
BlobContainer - Properties of the blob container, including Id, resource name, resource type, Etag.
func (BlobContainer) MarshalJSON ¶
func (b BlobContainer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobContainer.
type BlobContainersBeginObjectLevelWormOptions ¶
type BlobContainersBeginObjectLevelWormOptions struct { }
BlobContainersBeginObjectLevelWormOptions contains the optional parameters for the BlobContainers.BeginObjectLevelWorm method.
type BlobContainersClearLegalHoldOptions ¶
type BlobContainersClearLegalHoldOptions struct { }
BlobContainersClearLegalHoldOptions contains the optional parameters for the BlobContainers.ClearLegalHold method.
type BlobContainersClearLegalHoldResponse ¶
type BlobContainersClearLegalHoldResponse struct { BlobContainersClearLegalHoldResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersClearLegalHoldResponse contains the response from method BlobContainers.ClearLegalHold.
type BlobContainersClearLegalHoldResult ¶
type BlobContainersClearLegalHoldResult struct {
LegalHold
}
BlobContainersClearLegalHoldResult contains the result from method BlobContainers.ClearLegalHold.
type BlobContainersClient ¶
type BlobContainersClient struct {
// contains filtered or unexported fields
}
BlobContainersClient contains the methods for the BlobContainers group. Don't use this type directly, use NewBlobContainersClient() instead.
func NewBlobContainersClient ¶
func NewBlobContainersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *BlobContainersClient
NewBlobContainersClient creates a new instance of BlobContainersClient with the specified values.
func (*BlobContainersClient) BeginObjectLevelWorm ¶
func (client *BlobContainersClient) BeginObjectLevelWorm(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersBeginObjectLevelWormOptions) (BlobContainersObjectLevelWormPollerResponse, error)
BeginObjectLevelWorm - This operation migrates a blob container from container level WORM to object level immutability enabled container. Prerequisites require a container level immutability policy either in locked or unlocked state, Account level versioning must be enabled and there should be no Legal hold on the container. If the operation fails it returns the *CloudError error type.
func (*BlobContainersClient) ClearLegalHold ¶
func (client *BlobContainersClient) ClearLegalHold(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold LegalHold, options *BlobContainersClearLegalHoldOptions) (BlobContainersClearLegalHoldResponse, error)
ClearLegalHold - Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request. If the operation fails it returns a generic error.
func (*BlobContainersClient) Create ¶
func (client *BlobContainersClient) Create(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer BlobContainer, options *BlobContainersCreateOptions) (BlobContainersCreateResponse, error)
Create - Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewBlobContainersClient("<subscription ID>", cred, nil) resp, err := client.Create( context.Background(), "<resource group name>", "<storage account name>", "<container name>", armstorage.BlobContainer{}, nil) if err != nil { log.Fatalf("failed to obtain a response: %v", err) } log.Printf("blob container ID: %v\n", *resp.BlobContainer.ID) }
Output:
func (*BlobContainersClient) CreateOrUpdateImmutabilityPolicy ¶
func (client *BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersCreateOrUpdateImmutabilityPolicyOptions) (BlobContainersCreateOrUpdateImmutabilityPolicyResponse, error)
CreateOrUpdateImmutabilityPolicy - Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. If the operation fails it returns a generic error.
func (*BlobContainersClient) Delete ¶
func (client *BlobContainersClient) Delete(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersDeleteOptions) (BlobContainersDeleteResponse, error)
Delete - Deletes specified container under its account. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewBlobContainersClient("<subscription ID>", cred, nil) _, err = client.Delete( context.Background(), "<resource group name>", "<storage account name>", "<container name>", nil) if err != nil { log.Fatalf("failed to obtain a response: %v", err) } }
Output:
func (*BlobContainersClient) DeleteImmutabilityPolicy ¶
func (client *BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string, options *BlobContainersDeleteImmutabilityPolicyOptions) (BlobContainersDeleteImmutabilityPolicyResponse, error)
DeleteImmutabilityPolicy - Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, the only way is to delete the container after deleting all expired blobs inside the policy locked container. If the operation fails it returns a generic error.
func (*BlobContainersClient) ExtendImmutabilityPolicy ¶
func (client *BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string, options *BlobContainersExtendImmutabilityPolicyOptions) (BlobContainersExtendImmutabilityPolicyResponse, error)
ExtendImmutabilityPolicy - Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation. If the operation fails it returns a generic error.
func (*BlobContainersClient) Get ¶
func (client *BlobContainersClient) Get(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersGetOptions) (BlobContainersGetResponse, error)
Get - Gets properties of a specified container. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewBlobContainersClient("<subscription ID>", cred, nil) resp, err := client.Get( context.Background(), "<resource group name>", "<storage account name>", "<container name>", nil) if err != nil { log.Fatalf("failed to obtain a response: %v", err) } log.Printf("blob container ID: %v\n", *resp.BlobContainer.ID) }
Output:
func (*BlobContainersClient) GetImmutabilityPolicy ¶
func (client *BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersGetImmutabilityPolicyOptions) (BlobContainersGetImmutabilityPolicyResponse, error)
GetImmutabilityPolicy - Gets the existing immutability policy along with the corresponding ETag in response headers and body. If the operation fails it returns a generic error.
func (*BlobContainersClient) Lease ¶
func (client *BlobContainersClient) Lease(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersLeaseOptions) (BlobContainersLeaseResponse, error)
Lease - The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite. If the operation fails it returns a generic error.
func (*BlobContainersClient) List ¶
func (client *BlobContainersClient) List(resourceGroupName string, accountName string, options *BlobContainersListOptions) *BlobContainersListPager
List - Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewBlobContainersClient("<subscription ID>", cred, nil) pager := client.List("<resource group name>", "<storage account name>", nil) for pager.NextPage(context.Background()) { resp := pager.PageResponse() if len(resp.ListContainerItems.Value) == 0 { log.Fatal("missing payload") } for _, val := range resp.ListContainerItems.Value { log.Printf("container item: %v", *val.ID) } } if err := pager.Err(); err != nil { log.Fatal(err) } }
Output:
func (*BlobContainersClient) LockImmutabilityPolicy ¶
func (client *BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string, options *BlobContainersLockImmutabilityPolicyOptions) (BlobContainersLockImmutabilityPolicyResponse, error)
LockImmutabilityPolicy - Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. If the operation fails it returns a generic error.
func (*BlobContainersClient) SetLegalHold ¶
func (client *BlobContainersClient) SetLegalHold(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold LegalHold, options *BlobContainersSetLegalHoldOptions) (BlobContainersSetLegalHoldResponse, error)
SetLegalHold - Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request. If the operation fails it returns a generic error.
func (*BlobContainersClient) Update ¶
func (client *BlobContainersClient) Update(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer BlobContainer, options *BlobContainersUpdateOptions) (BlobContainersUpdateResponse, error)
Update - Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. If the operation fails it returns a generic error.
type BlobContainersCreateOptions ¶
type BlobContainersCreateOptions struct { }
BlobContainersCreateOptions contains the optional parameters for the BlobContainers.Create method.
type BlobContainersCreateOrUpdateImmutabilityPolicyOptions ¶
type BlobContainersCreateOrUpdateImmutabilityPolicyOptions struct { // The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy // already exists. If omitted, this operation will always be applied. IfMatch *string // The ImmutabilityPolicy Properties that will be created or updated to a blob container. Parameters *ImmutabilityPolicy }
BlobContainersCreateOrUpdateImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.CreateOrUpdateImmutabilityPolicy method.
type BlobContainersCreateOrUpdateImmutabilityPolicyResponse ¶
type BlobContainersCreateOrUpdateImmutabilityPolicyResponse struct { BlobContainersCreateOrUpdateImmutabilityPolicyResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersCreateOrUpdateImmutabilityPolicyResponse contains the response from method BlobContainers.CreateOrUpdateImmutabilityPolicy.
type BlobContainersCreateOrUpdateImmutabilityPolicyResult ¶
type BlobContainersCreateOrUpdateImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string }
BlobContainersCreateOrUpdateImmutabilityPolicyResult contains the result from method BlobContainers.CreateOrUpdateImmutabilityPolicy.
type BlobContainersCreateResponse ¶
type BlobContainersCreateResponse struct { BlobContainersCreateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersCreateResponse contains the response from method BlobContainers.Create.
type BlobContainersCreateResult ¶
type BlobContainersCreateResult struct {
BlobContainer
}
BlobContainersCreateResult contains the result from method BlobContainers.Create.
type BlobContainersDeleteImmutabilityPolicyOptions ¶
type BlobContainersDeleteImmutabilityPolicyOptions struct { }
BlobContainersDeleteImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.DeleteImmutabilityPolicy method.
type BlobContainersDeleteImmutabilityPolicyResponse ¶
type BlobContainersDeleteImmutabilityPolicyResponse struct { BlobContainersDeleteImmutabilityPolicyResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersDeleteImmutabilityPolicyResponse contains the response from method BlobContainers.DeleteImmutabilityPolicy.
type BlobContainersDeleteImmutabilityPolicyResult ¶
type BlobContainersDeleteImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string }
BlobContainersDeleteImmutabilityPolicyResult contains the result from method BlobContainers.DeleteImmutabilityPolicy.
type BlobContainersDeleteOptions ¶
type BlobContainersDeleteOptions struct { }
BlobContainersDeleteOptions contains the optional parameters for the BlobContainers.Delete method.
type BlobContainersDeleteResponse ¶
type BlobContainersDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersDeleteResponse contains the response from method BlobContainers.Delete.
type BlobContainersExtendImmutabilityPolicyOptions ¶
type BlobContainersExtendImmutabilityPolicyOptions struct { // The ImmutabilityPolicy Properties that will be extended for a blob container. Parameters *ImmutabilityPolicy }
BlobContainersExtendImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.ExtendImmutabilityPolicy method.
type BlobContainersExtendImmutabilityPolicyResponse ¶
type BlobContainersExtendImmutabilityPolicyResponse struct { BlobContainersExtendImmutabilityPolicyResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersExtendImmutabilityPolicyResponse contains the response from method BlobContainers.ExtendImmutabilityPolicy.
type BlobContainersExtendImmutabilityPolicyResult ¶
type BlobContainersExtendImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string }
BlobContainersExtendImmutabilityPolicyResult contains the result from method BlobContainers.ExtendImmutabilityPolicy.
type BlobContainersGetImmutabilityPolicyOptions ¶
type BlobContainersGetImmutabilityPolicyOptions struct { // The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy // already exists. If omitted, this operation will always be applied. IfMatch *string }
BlobContainersGetImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.GetImmutabilityPolicy method.
type BlobContainersGetImmutabilityPolicyResponse ¶
type BlobContainersGetImmutabilityPolicyResponse struct { BlobContainersGetImmutabilityPolicyResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersGetImmutabilityPolicyResponse contains the response from method BlobContainers.GetImmutabilityPolicy.
type BlobContainersGetImmutabilityPolicyResult ¶
type BlobContainersGetImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string }
BlobContainersGetImmutabilityPolicyResult contains the result from method BlobContainers.GetImmutabilityPolicy.
type BlobContainersGetOptions ¶
type BlobContainersGetOptions struct { }
BlobContainersGetOptions contains the optional parameters for the BlobContainers.Get method.
type BlobContainersGetResponse ¶
type BlobContainersGetResponse struct { BlobContainersGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersGetResponse contains the response from method BlobContainers.Get.
type BlobContainersGetResult ¶
type BlobContainersGetResult struct {
BlobContainer
}
BlobContainersGetResult contains the result from method BlobContainers.Get.
type BlobContainersLeaseOptions ¶
type BlobContainersLeaseOptions struct { // Lease Container request body. Parameters *LeaseContainerRequest }
BlobContainersLeaseOptions contains the optional parameters for the BlobContainers.Lease method.
type BlobContainersLeaseResponse ¶
type BlobContainersLeaseResponse struct { BlobContainersLeaseResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersLeaseResponse contains the response from method BlobContainers.Lease.
type BlobContainersLeaseResult ¶
type BlobContainersLeaseResult struct {
LeaseContainerResponse
}
BlobContainersLeaseResult contains the result from method BlobContainers.Lease.
type BlobContainersListOptions ¶
type BlobContainersListOptions struct { // Optional. When specified, only container names starting with the filter will be listed. Filter *string // Optional, used to include the properties for soft deleted blob containers. Include *ListContainersInclude // Optional. Specified maximum number of containers that can be included in the list. Maxpagesize *string }
BlobContainersListOptions contains the optional parameters for the BlobContainers.List method.
type BlobContainersListPager ¶
type BlobContainersListPager struct {
// contains filtered or unexported fields
}
BlobContainersListPager provides operations for iterating over paged responses.
func (*BlobContainersListPager) Err ¶
func (p *BlobContainersListPager) Err() error
Err returns the last error encountered while paging.
func (*BlobContainersListPager) NextPage ¶
func (p *BlobContainersListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*BlobContainersListPager) PageResponse ¶
func (p *BlobContainersListPager) PageResponse() BlobContainersListResponse
PageResponse returns the current BlobContainersListResponse page.
type BlobContainersListResponse ¶
type BlobContainersListResponse struct { BlobContainersListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersListResponse contains the response from method BlobContainers.List.
type BlobContainersListResult ¶
type BlobContainersListResult struct {
ListContainerItems
}
BlobContainersListResult contains the result from method BlobContainers.List.
type BlobContainersLockImmutabilityPolicyOptions ¶
type BlobContainersLockImmutabilityPolicyOptions struct { }
BlobContainersLockImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.LockImmutabilityPolicy method.
type BlobContainersLockImmutabilityPolicyResponse ¶
type BlobContainersLockImmutabilityPolicyResponse struct { BlobContainersLockImmutabilityPolicyResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersLockImmutabilityPolicyResponse contains the response from method BlobContainers.LockImmutabilityPolicy.
type BlobContainersLockImmutabilityPolicyResult ¶
type BlobContainersLockImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string }
BlobContainersLockImmutabilityPolicyResult contains the result from method BlobContainers.LockImmutabilityPolicy.
type BlobContainersObjectLevelWormPoller ¶
type BlobContainersObjectLevelWormPoller struct {
// contains filtered or unexported fields
}
BlobContainersObjectLevelWormPoller provides polling facilities until the operation reaches a terminal state.
func (*BlobContainersObjectLevelWormPoller) Done ¶
func (p *BlobContainersObjectLevelWormPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*BlobContainersObjectLevelWormPoller) FinalResponse ¶
func (p *BlobContainersObjectLevelWormPoller) FinalResponse(ctx context.Context) (BlobContainersObjectLevelWormResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final BlobContainersObjectLevelWormResponse will be returned.
func (*BlobContainersObjectLevelWormPoller) Poll ¶
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*BlobContainersObjectLevelWormPoller) ResumeToken ¶
func (p *BlobContainersObjectLevelWormPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type BlobContainersObjectLevelWormPollerResponse ¶
type BlobContainersObjectLevelWormPollerResponse struct { // Poller contains an initialized poller. Poller *BlobContainersObjectLevelWormPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersObjectLevelWormPollerResponse contains the response from method BlobContainers.ObjectLevelWorm.
func (BlobContainersObjectLevelWormPollerResponse) PollUntilDone ¶
func (l BlobContainersObjectLevelWormPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BlobContainersObjectLevelWormResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*BlobContainersObjectLevelWormPollerResponse) Resume ¶
func (l *BlobContainersObjectLevelWormPollerResponse) Resume(ctx context.Context, client *BlobContainersClient, token string) error
Resume rehydrates a BlobContainersObjectLevelWormPollerResponse from the provided client and resume token.
type BlobContainersObjectLevelWormResponse ¶
type BlobContainersObjectLevelWormResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersObjectLevelWormResponse contains the response from method BlobContainers.ObjectLevelWorm.
type BlobContainersSetLegalHoldOptions ¶
type BlobContainersSetLegalHoldOptions struct { }
BlobContainersSetLegalHoldOptions contains the optional parameters for the BlobContainers.SetLegalHold method.
type BlobContainersSetLegalHoldResponse ¶
type BlobContainersSetLegalHoldResponse struct { BlobContainersSetLegalHoldResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersSetLegalHoldResponse contains the response from method BlobContainers.SetLegalHold.
type BlobContainersSetLegalHoldResult ¶
type BlobContainersSetLegalHoldResult struct {
LegalHold
}
BlobContainersSetLegalHoldResult contains the result from method BlobContainers.SetLegalHold.
type BlobContainersUpdateOptions ¶
type BlobContainersUpdateOptions struct { }
BlobContainersUpdateOptions contains the optional parameters for the BlobContainers.Update method.
type BlobContainersUpdateResponse ¶
type BlobContainersUpdateResponse struct { BlobContainersUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobContainersUpdateResponse contains the response from method BlobContainers.Update.
type BlobContainersUpdateResult ¶
type BlobContainersUpdateResult struct {
BlobContainer
}
BlobContainersUpdateResult contains the result from method BlobContainers.Update.
type BlobInventoryPoliciesClient ¶
type BlobInventoryPoliciesClient struct {
// contains filtered or unexported fields
}
BlobInventoryPoliciesClient contains the methods for the BlobInventoryPolicies group. Don't use this type directly, use NewBlobInventoryPoliciesClient() instead.
func NewBlobInventoryPoliciesClient ¶
func NewBlobInventoryPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *BlobInventoryPoliciesClient
NewBlobInventoryPoliciesClient creates a new instance of BlobInventoryPoliciesClient with the specified values.
func (*BlobInventoryPoliciesClient) CreateOrUpdate ¶
func (client *BlobInventoryPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, blobInventoryPolicyName BlobInventoryPolicyName, properties BlobInventoryPolicy, options *BlobInventoryPoliciesCreateOrUpdateOptions) (BlobInventoryPoliciesCreateOrUpdateResponse, error)
CreateOrUpdate - Sets the blob inventory policy to the specified storage account. If the operation fails it returns the *ErrorResponse error type.
func (*BlobInventoryPoliciesClient) Delete ¶
func (client *BlobInventoryPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, blobInventoryPolicyName BlobInventoryPolicyName, options *BlobInventoryPoliciesDeleteOptions) (BlobInventoryPoliciesDeleteResponse, error)
Delete - Deletes the blob inventory policy associated with the specified storage account. If the operation fails it returns the *ErrorResponse error type.
func (*BlobInventoryPoliciesClient) Get ¶
func (client *BlobInventoryPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, blobInventoryPolicyName BlobInventoryPolicyName, options *BlobInventoryPoliciesGetOptions) (BlobInventoryPoliciesGetResponse, error)
Get - Gets the blob inventory policy associated with the specified storage account. If the operation fails it returns the *ErrorResponse error type.
func (*BlobInventoryPoliciesClient) List ¶
func (client *BlobInventoryPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *BlobInventoryPoliciesListOptions) (BlobInventoryPoliciesListResponse, error)
List - Gets the blob inventory policy associated with the specified storage account. If the operation fails it returns the *ErrorResponse error type.
type BlobInventoryPoliciesCreateOrUpdateOptions ¶
type BlobInventoryPoliciesCreateOrUpdateOptions struct { }
BlobInventoryPoliciesCreateOrUpdateOptions contains the optional parameters for the BlobInventoryPolicies.CreateOrUpdate method.
type BlobInventoryPoliciesCreateOrUpdateResponse ¶
type BlobInventoryPoliciesCreateOrUpdateResponse struct { BlobInventoryPoliciesCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobInventoryPoliciesCreateOrUpdateResponse contains the response from method BlobInventoryPolicies.CreateOrUpdate.
type BlobInventoryPoliciesCreateOrUpdateResult ¶
type BlobInventoryPoliciesCreateOrUpdateResult struct {
BlobInventoryPolicy
}
BlobInventoryPoliciesCreateOrUpdateResult contains the result from method BlobInventoryPolicies.CreateOrUpdate.
type BlobInventoryPoliciesDeleteOptions ¶
type BlobInventoryPoliciesDeleteOptions struct { }
BlobInventoryPoliciesDeleteOptions contains the optional parameters for the BlobInventoryPolicies.Delete method.
type BlobInventoryPoliciesDeleteResponse ¶
type BlobInventoryPoliciesDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobInventoryPoliciesDeleteResponse contains the response from method BlobInventoryPolicies.Delete.
type BlobInventoryPoliciesGetOptions ¶
type BlobInventoryPoliciesGetOptions struct { }
BlobInventoryPoliciesGetOptions contains the optional parameters for the BlobInventoryPolicies.Get method.
type BlobInventoryPoliciesGetResponse ¶
type BlobInventoryPoliciesGetResponse struct { BlobInventoryPoliciesGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobInventoryPoliciesGetResponse contains the response from method BlobInventoryPolicies.Get.
type BlobInventoryPoliciesGetResult ¶
type BlobInventoryPoliciesGetResult struct {
BlobInventoryPolicy
}
BlobInventoryPoliciesGetResult contains the result from method BlobInventoryPolicies.Get.
type BlobInventoryPoliciesListOptions ¶
type BlobInventoryPoliciesListOptions struct { }
BlobInventoryPoliciesListOptions contains the optional parameters for the BlobInventoryPolicies.List method.
type BlobInventoryPoliciesListResponse ¶
type BlobInventoryPoliciesListResponse struct { BlobInventoryPoliciesListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobInventoryPoliciesListResponse contains the response from method BlobInventoryPolicies.List.
type BlobInventoryPoliciesListResult ¶
type BlobInventoryPoliciesListResult struct {
ListBlobInventoryPolicy
}
BlobInventoryPoliciesListResult contains the result from method BlobInventoryPolicies.List.
type BlobInventoryPolicy ¶
type BlobInventoryPolicy struct { Resource // Returns the storage account blob inventory policy rules. Properties *BlobInventoryPolicyProperties `json:"properties,omitempty"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` }
BlobInventoryPolicy - The storage account blob inventory policy.
func (BlobInventoryPolicy) MarshalJSON ¶
func (b BlobInventoryPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicy.
type BlobInventoryPolicyDefinition ¶
type BlobInventoryPolicyDefinition struct { // REQUIRED; This is a required field, it specifies the format for the inventory files. Format *Format `json:"format,omitempty"` // REQUIRED; This is a required field. This field specifies the scope of the inventory created either at the blob or container level. ObjectType *ObjectType `json:"objectType,omitempty"` // REQUIRED; This is a required field. This field is used to schedule an inventory formation. Schedule *Schedule `json:"schedule,omitempty"` // REQUIRED; This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value // 'Name' is always required. The valid values for this // field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, // AccessTierInferred, Tags, Expiry-Time, // hdiisfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime'. The valid values for 'Container' definition.objectType // include 'Name, Last-Modified, // Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold'. Schema field values 'Expiry-Time, hdiisfolder, // Owner, Group, Permissions, Acl' are valid only for // Hns enabled accounts.'Tags' field is only valid for non Hns accounts SchemaFields []*string `json:"schemaFields,omitempty"` // An object that defines the filter set. Filters *BlobInventoryPolicyFilter `json:"filters,omitempty"` }
BlobInventoryPolicyDefinition - An object that defines the blob inventory rule.
func (BlobInventoryPolicyDefinition) MarshalJSON ¶
func (b BlobInventoryPolicyDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyDefinition.
type BlobInventoryPolicyFilter ¶
type BlobInventoryPolicyFilter struct { // An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required // when definition.objectType property is set to // 'Blob'. BlobTypes []*string `json:"blobTypes,omitempty"` // Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required // if this property is set to true, else they must be // excluded. IncludeBlobVersions *bool `json:"includeBlobVersions,omitempty"` // Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set // to true, else it must be excluded. IncludeSnapshots *bool `json:"includeSnapshots,omitempty"` // An array of strings for blob prefixes to be matched. PrefixMatch []*string `json:"prefixMatch,omitempty"` }
BlobInventoryPolicyFilter - An object that defines the blob inventory rule filter conditions. For 'Blob' definition.objectType all filter properties are applicable, 'blobTypes' is required and others are optional. For 'Container' definition.objectType only prefixMatch is applicable and is optional.
func (BlobInventoryPolicyFilter) MarshalJSON ¶
func (b BlobInventoryPolicyFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyFilter.
type BlobInventoryPolicyName ¶
type BlobInventoryPolicyName string
const (
BlobInventoryPolicyNameDefault BlobInventoryPolicyName = "default"
)
func PossibleBlobInventoryPolicyNameValues ¶
func PossibleBlobInventoryPolicyNameValues() []BlobInventoryPolicyName
PossibleBlobInventoryPolicyNameValues returns the possible values for the BlobInventoryPolicyName const type.
func (BlobInventoryPolicyName) ToPtr ¶
func (c BlobInventoryPolicyName) ToPtr() *BlobInventoryPolicyName
ToPtr returns a *BlobInventoryPolicyName pointing to the current value.
type BlobInventoryPolicyProperties ¶
type BlobInventoryPolicyProperties struct { // REQUIRED; The storage account blob inventory policy object. It is composed of policy rules. Policy *BlobInventoryPolicySchema `json:"policy,omitempty"` // READ-ONLY; Returns the last modified date and time of the blob inventory policy. LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` }
BlobInventoryPolicyProperties - The storage account blob inventory policy properties.
func (BlobInventoryPolicyProperties) MarshalJSON ¶
func (b BlobInventoryPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyProperties.
func (*BlobInventoryPolicyProperties) UnmarshalJSON ¶
func (b *BlobInventoryPolicyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BlobInventoryPolicyProperties.
type BlobInventoryPolicyRule ¶
type BlobInventoryPolicyRule struct { // REQUIRED; An object that defines the blob inventory policy rule. Definition *BlobInventoryPolicyDefinition `json:"definition,omitempty"` // REQUIRED; Container name where blob inventory files are stored. Must be pre-created. Destination *string `json:"destination,omitempty"` // REQUIRED; Rule is enabled when set to true. Enabled *bool `json:"enabled,omitempty"` // REQUIRED; A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. Name *string `json:"name,omitempty"` }
BlobInventoryPolicyRule - An object that wraps the blob inventory rule. Each rule is uniquely defined by name.
type BlobInventoryPolicySchema ¶
type BlobInventoryPolicySchema struct { // REQUIRED; Policy is enabled if set to true. Enabled *bool `json:"enabled,omitempty"` // REQUIRED; The storage account blob inventory policy rules. The rule is applied when it is enabled. Rules []*BlobInventoryPolicyRule `json:"rules,omitempty"` // REQUIRED; The valid value is Inventory Type *InventoryRuleType `json:"type,omitempty"` }
BlobInventoryPolicySchema - The storage account blob inventory policy rules.
func (BlobInventoryPolicySchema) MarshalJSON ¶
func (b BlobInventoryPolicySchema) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicySchema.
type BlobRestoreParameters ¶
type BlobRestoreParameters struct { // REQUIRED; Blob ranges to restore. BlobRanges []*BlobRestoreRange `json:"blobRanges,omitempty"` // REQUIRED; Restore blob to the specified time. TimeToRestore *time.Time `json:"timeToRestore,omitempty"` }
BlobRestoreParameters - Blob restore parameters
func (BlobRestoreParameters) MarshalJSON ¶
func (b BlobRestoreParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobRestoreParameters.
func (*BlobRestoreParameters) UnmarshalJSON ¶
func (b *BlobRestoreParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BlobRestoreParameters.
type BlobRestoreProgressStatus ¶
type BlobRestoreProgressStatus string
BlobRestoreProgressStatus - The status of blob restore progress. Possible values are: - InProgress: Indicates that blob restore is ongoing. - Complete: Indicates that blob restore has been completed successfully. - Failed: Indicates that blob restore is failed.
const ( BlobRestoreProgressStatusComplete BlobRestoreProgressStatus = "Complete" BlobRestoreProgressStatusFailed BlobRestoreProgressStatus = "Failed" BlobRestoreProgressStatusInProgress BlobRestoreProgressStatus = "InProgress" )
func PossibleBlobRestoreProgressStatusValues ¶
func PossibleBlobRestoreProgressStatusValues() []BlobRestoreProgressStatus
PossibleBlobRestoreProgressStatusValues returns the possible values for the BlobRestoreProgressStatus const type.
func (BlobRestoreProgressStatus) ToPtr ¶
func (c BlobRestoreProgressStatus) ToPtr() *BlobRestoreProgressStatus
ToPtr returns a *BlobRestoreProgressStatus pointing to the current value.
type BlobRestoreRange ¶
type BlobRestoreRange struct { // REQUIRED; Blob end range. This is exclusive. Empty means account end. EndRange *string `json:"endRange,omitempty"` // REQUIRED; Blob start range. This is inclusive. Empty means account start. StartRange *string `json:"startRange,omitempty"` }
BlobRestoreRange - Blob range
type BlobRestoreStatus ¶
type BlobRestoreStatus struct { // READ-ONLY; Failure reason when blob restore is failed. FailureReason *string `json:"failureReason,omitempty" azure:"ro"` // READ-ONLY; Blob restore request parameters. Parameters *BlobRestoreParameters `json:"parameters,omitempty" azure:"ro"` // READ-ONLY; Id for tracking blob restore request. RestoreID *string `json:"restoreId,omitempty" azure:"ro"` // READ-ONLY; The status of blob restore progress. Possible values are: - InProgress: Indicates that blob restore is ongoing. - Complete: Indicates that // blob restore has been completed successfully. - Failed: // Indicates that blob restore is failed. Status *BlobRestoreProgressStatus `json:"status,omitempty" azure:"ro"` }
BlobRestoreStatus - Blob restore status.
type BlobServiceItems ¶
type BlobServiceItems struct { // READ-ONLY; List of blob services returned. Value []*BlobServiceProperties `json:"value,omitempty" azure:"ro"` }
func (BlobServiceItems) MarshalJSON ¶
func (b BlobServiceItems) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobServiceItems.
type BlobServiceProperties ¶
type BlobServiceProperties struct { Resource // The properties of a storage account’s Blob service. BlobServiceProperties *BlobServicePropertiesProperties `json:"properties,omitempty"` // READ-ONLY; Sku name and tier. SKU *SKU `json:"sku,omitempty" azure:"ro"` }
BlobServiceProperties - The properties of a storage account’s Blob service.
func (BlobServiceProperties) MarshalJSON ¶
func (b BlobServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobServiceProperties.
type BlobServicePropertiesProperties ¶
type BlobServicePropertiesProperties struct { // Deprecated in favor of isVersioningEnabled property. AutomaticSnapshotPolicyEnabled *bool `json:"automaticSnapshotPolicyEnabled,omitempty"` // The blob service properties for change feed events. ChangeFeed *ChangeFeed `json:"changeFeed,omitempty"` // The blob service properties for container soft delete. ContainerDeleteRetentionPolicy *DeleteRetentionPolicy `json:"containerDeleteRetentionPolicy,omitempty"` // Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request // body, all CORS rules will be deleted, and // CORS will be disabled for the Blob service. Cors *CorsRules `json:"cors,omitempty"` // DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible // values include version 2008-10-27 and all more // recent versions. DefaultServiceVersion *string `json:"defaultServiceVersion,omitempty"` // The blob service properties for blob soft delete. DeleteRetentionPolicy *DeleteRetentionPolicy `json:"deleteRetentionPolicy,omitempty"` // Versioning is enabled if set to true. IsVersioningEnabled *bool `json:"isVersioningEnabled,omitempty"` // The blob service property to configure last access time based tracking policy. LastAccessTimeTrackingPolicy *LastAccessTimeTrackingPolicy `json:"lastAccessTimeTrackingPolicy,omitempty"` // The blob service properties for blob restore policy. RestorePolicy *RestorePolicyProperties `json:"restorePolicy,omitempty"` }
BlobServicePropertiesProperties - The properties of a storage account’s Blob service.
type BlobServicesClient ¶
type BlobServicesClient struct {
// contains filtered or unexported fields
}
BlobServicesClient contains the methods for the BlobServices group. Don't use this type directly, use NewBlobServicesClient() instead.
func NewBlobServicesClient ¶
func NewBlobServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *BlobServicesClient
NewBlobServicesClient creates a new instance of BlobServicesClient with the specified values.
func (*BlobServicesClient) GetServiceProperties ¶
func (client *BlobServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, options *BlobServicesGetServicePropertiesOptions) (BlobServicesGetServicePropertiesResponse, error)
GetServiceProperties - Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns a generic error.
func (*BlobServicesClient) List ¶
func (client *BlobServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *BlobServicesListOptions) (BlobServicesListResponse, error)
List - List blob services of storage account. It returns a collection of one object named default. If the operation fails it returns a generic error.
func (*BlobServicesClient) SetServiceProperties ¶
func (client *BlobServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters BlobServiceProperties, options *BlobServicesSetServicePropertiesOptions) (BlobServicesSetServicePropertiesResponse, error)
SetServiceProperties - Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns a generic error.
type BlobServicesGetServicePropertiesOptions ¶
type BlobServicesGetServicePropertiesOptions struct { }
BlobServicesGetServicePropertiesOptions contains the optional parameters for the BlobServices.GetServiceProperties method.
type BlobServicesGetServicePropertiesResponse ¶
type BlobServicesGetServicePropertiesResponse struct { BlobServicesGetServicePropertiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobServicesGetServicePropertiesResponse contains the response from method BlobServices.GetServiceProperties.
type BlobServicesGetServicePropertiesResult ¶
type BlobServicesGetServicePropertiesResult struct {
BlobServiceProperties
}
BlobServicesGetServicePropertiesResult contains the result from method BlobServices.GetServiceProperties.
type BlobServicesListOptions ¶
type BlobServicesListOptions struct { }
BlobServicesListOptions contains the optional parameters for the BlobServices.List method.
type BlobServicesListResponse ¶
type BlobServicesListResponse struct { BlobServicesListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobServicesListResponse contains the response from method BlobServices.List.
type BlobServicesListResult ¶
type BlobServicesListResult struct {
BlobServiceItems
}
BlobServicesListResult contains the result from method BlobServices.List.
type BlobServicesSetServicePropertiesOptions ¶
type BlobServicesSetServicePropertiesOptions struct { }
BlobServicesSetServicePropertiesOptions contains the optional parameters for the BlobServices.SetServiceProperties method.
type BlobServicesSetServicePropertiesResponse ¶
type BlobServicesSetServicePropertiesResponse struct { BlobServicesSetServicePropertiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BlobServicesSetServicePropertiesResponse contains the response from method BlobServices.SetServiceProperties.
type BlobServicesSetServicePropertiesResult ¶
type BlobServicesSetServicePropertiesResult struct {
BlobServiceProperties
}
BlobServicesSetServicePropertiesResult contains the result from method BlobServices.SetServiceProperties.
type Bypass ¶
type Bypass string
Bypass - Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics.
func PossibleBypassValues ¶
func PossibleBypassValues() []Bypass
PossibleBypassValues returns the possible values for the Bypass const type.
type ChangeFeed ¶
type ChangeFeed struct { // Indicates whether change feed event logging is enabled for the Blob service. Enabled *bool `json:"enabled,omitempty"` // Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an // infinite retention of the change feed. RetentionInDays *int32 `json:"retentionInDays,omitempty"` }
ChangeFeed - The blob service properties for change feed events.
type CheckNameAvailabilityResult ¶
type CheckNameAvailabilityResult struct { // READ-ONLY; Gets an error message explaining the Reason value in more detail. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already // been taken or is invalid and cannot be used. NameAvailable *bool `json:"nameAvailable,omitempty" azure:"ro"` // READ-ONLY; Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Reason *Reason `json:"reason,omitempty" azure:"ro"` }
CheckNameAvailabilityResult - The CheckNameAvailability operation response.
type CloudError ¶
type CloudError struct { // An error response from the Storage service. InnerError *CloudErrorBody `json:"error,omitempty"` // contains filtered or unexported fields }
CloudError - An error response from the Storage service. Implements the error and azcore.HTTPResponse interfaces.
func (CloudError) Error ¶
func (e CloudError) Error() string
Error implements the error interface for type CloudError. The contents of the error text are not contractual and subject to change.
type CloudErrorAutoGenerated ¶
type CloudErrorAutoGenerated struct { // An error response from the Storage service. InnerError *CloudErrorBodyAutoGenerated `json:"error,omitempty"` // contains filtered or unexported fields }
CloudErrorAutoGenerated - An error response from the Storage service. Implements the error and azcore.HTTPResponse interfaces.
func (CloudErrorAutoGenerated) Error ¶
func (e CloudErrorAutoGenerated) Error() string
Error implements the error interface for type CloudErrorAutoGenerated. The contents of the error text are not contractual and subject to change.
type CloudErrorBody ¶
type CloudErrorBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A list of additional details about the error. Details []*CloudErrorBody `json:"details,omitempty"` // A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` // The target of the particular error. For example, the name of the property in error. Target *string `json:"target,omitempty"` }
CloudErrorBody - An error response from the Storage service.
func (CloudErrorBody) MarshalJSON ¶
func (c CloudErrorBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CloudErrorBody.
type CloudErrorBodyAutoGenerated ¶
type CloudErrorBodyAutoGenerated struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A list of additional details about the error. Details []*CloudErrorBodyAutoGenerated `json:"details,omitempty"` // A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` // The target of the particular error. For example, the name of the property in error. Target *string `json:"target,omitempty"` }
CloudErrorBodyAutoGenerated - An error response from the Storage service.
func (CloudErrorBodyAutoGenerated) MarshalJSON ¶
func (c CloudErrorBodyAutoGenerated) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CloudErrorBodyAutoGenerated.
type ContainerProperties ¶
type ContainerProperties struct { // Default the container to use specified encryption scope for all writes. DefaultEncryptionScope *string `json:"defaultEncryptionScope,omitempty"` // Block override of encryption scope from the container default. DenyEncryptionScopeOverride *bool `json:"denyEncryptionScopeOverride,omitempty"` // Enable NFSv3 all squash on blob container. EnableNfsV3AllSquash *bool `json:"enableNfsV3AllSquash,omitempty"` // Enable NFSv3 root squash on blob container. EnableNfsV3RootSquash *bool `json:"enableNfsV3RootSquash,omitempty"` // The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing // containers must undergo a migration process. ImmutableStorageWithVersioning *ImmutableStorageWithVersioning `json:"immutableStorageWithVersioning,omitempty"` // A name-value pair to associate with the container as metadata. Metadata map[string]*string `json:"metadata,omitempty"` // Specifies whether data in the container may be accessed publicly and the level of access. PublicAccess *PublicAccess `json:"publicAccess,omitempty"` // READ-ONLY; Indicates whether the blob container was deleted. Deleted *bool `json:"deleted,omitempty" azure:"ro"` // READ-ONLY; Blob container deletion time. DeletedTime *time.Time `json:"deletedTime,omitempty" azure:"ro"` // READ-ONLY; The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy // public property is set to false by SRP if // ImmutabilityPolicy has not been created for this container. HasImmutabilityPolicy *bool `json:"hasImmutabilityPolicy,omitempty" azure:"ro"` // READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to // false by SRP if all existing legal hold tags are cleared out. // There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. HasLegalHold *bool `json:"hasLegalHold,omitempty" azure:"ro"` // READ-ONLY; The ImmutabilityPolicy property of the container. ImmutabilityPolicy *ImmutabilityPolicyProperties `json:"immutabilityPolicy,omitempty" azure:"ro"` // READ-ONLY; Returns the date and time the container was last modified. LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` // READ-ONLY; Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. LeaseDuration *LeaseDuration `json:"leaseDuration,omitempty" azure:"ro"` // READ-ONLY; Lease state of the container. LeaseState *LeaseState `json:"leaseState,omitempty" azure:"ro"` // READ-ONLY; The lease status of the container. LeaseStatus *LeaseStatus `json:"leaseStatus,omitempty" azure:"ro"` // READ-ONLY; The LegalHold property of the container. LegalHold *LegalHoldProperties `json:"legalHold,omitempty" azure:"ro"` // READ-ONLY; Remaining retention days for soft deleted blob container. RemainingRetentionDays *int32 `json:"remainingRetentionDays,omitempty" azure:"ro"` // READ-ONLY; The version of the deleted blob container. Version *string `json:"version,omitempty" azure:"ro"` }
ContainerProperties - The properties of a container.
func (ContainerProperties) MarshalJSON ¶
func (c ContainerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerProperties.
func (*ContainerProperties) UnmarshalJSON ¶
func (c *ContainerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerProperties.
type CorsRule ¶
type CorsRule struct { // REQUIRED; Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request. AllowedHeaders []*string `json:"allowedHeaders,omitempty"` // REQUIRED; Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. AllowedMethods []*CorsRuleAllowedMethodsItem `json:"allowedMethods,omitempty"` // REQUIRED; Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains AllowedOrigins []*string `json:"allowedOrigins,omitempty"` // REQUIRED; Required if CorsRule element is present. A list of response headers to expose to CORS clients. ExposedHeaders []*string `json:"exposedHeaders,omitempty"` // REQUIRED; Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response. MaxAgeInSeconds *int32 `json:"maxAgeInSeconds,omitempty"` }
CorsRule - Specifies a CORS rule for the Blob service.
func (CorsRule) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type CorsRule.
type CorsRuleAllowedMethodsItem ¶
type CorsRuleAllowedMethodsItem string
const ( CorsRuleAllowedMethodsItemDELETE CorsRuleAllowedMethodsItem = "DELETE" CorsRuleAllowedMethodsItemGET CorsRuleAllowedMethodsItem = "GET" CorsRuleAllowedMethodsItemHEAD CorsRuleAllowedMethodsItem = "HEAD" CorsRuleAllowedMethodsItemMERGE CorsRuleAllowedMethodsItem = "MERGE" CorsRuleAllowedMethodsItemOPTIONS CorsRuleAllowedMethodsItem = "OPTIONS" CorsRuleAllowedMethodsItemPOST CorsRuleAllowedMethodsItem = "POST" CorsRuleAllowedMethodsItemPUT CorsRuleAllowedMethodsItem = "PUT" )
func PossibleCorsRuleAllowedMethodsItemValues ¶
func PossibleCorsRuleAllowedMethodsItemValues() []CorsRuleAllowedMethodsItem
PossibleCorsRuleAllowedMethodsItemValues returns the possible values for the CorsRuleAllowedMethodsItem const type.
func (CorsRuleAllowedMethodsItem) ToPtr ¶
func (c CorsRuleAllowedMethodsItem) ToPtr() *CorsRuleAllowedMethodsItem
ToPtr returns a *CorsRuleAllowedMethodsItem pointing to the current value.
type CorsRules ¶
type CorsRules struct { // The List of CORS rules. You can include up to five CorsRule elements in the request. CorsRules []*CorsRule `json:"corsRules,omitempty"` }
CorsRules - Sets the CORS rules. You can include up to five CorsRule elements in the request.
func (CorsRules) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type CorsRules.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
func (CreatedByType) ToPtr ¶
func (c CreatedByType) ToPtr() *CreatedByType
ToPtr returns a *CreatedByType pointing to the current value.
type CustomDomain ¶
type CustomDomain struct { // REQUIRED; Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. Name *string `json:"name,omitempty"` // Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. UseSubDomainName *bool `json:"useSubDomainName,omitempty"` }
CustomDomain - The custom domain assigned to this storage account. This can be set via Update.
type DateAfterCreation ¶
type DateAfterCreation struct { // REQUIRED; Value indicating the age in days after creation DaysAfterCreationGreaterThan *float32 `json:"daysAfterCreationGreaterThan,omitempty"` }
DateAfterCreation - Object to define the number of days after creation.
type DateAfterModification ¶
type DateAfterModification struct { // Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy DaysAfterLastAccessTimeGreaterThan *float32 `json:"daysAfterLastAccessTimeGreaterThan,omitempty"` // Value indicating the age in days after last modification DaysAfterModificationGreaterThan *float32 `json:"daysAfterModificationGreaterThan,omitempty"` }
DateAfterModification - Object to define the number of days after object last modification Or last access. Properties daysAfterModificationGreaterThan and daysAfterLastAccessTimeGreaterThan are mutually exclusive.
type DefaultAction ¶
type DefaultAction string
DefaultAction - Specifies the default action of allow or deny when no other rules match.
const ( DefaultActionAllow DefaultAction = "Allow" DefaultActionDeny DefaultAction = "Deny" )
func PossibleDefaultActionValues ¶
func PossibleDefaultActionValues() []DefaultAction
PossibleDefaultActionValues returns the possible values for the DefaultAction const type.
func (DefaultAction) ToPtr ¶
func (c DefaultAction) ToPtr() *DefaultAction
ToPtr returns a *DefaultAction pointing to the current value.
type DefaultSharePermission ¶
type DefaultSharePermission string
DefaultSharePermission - Default share permission for users using Kerberos authentication if RBAC role is not assigned.
const ()
func PossibleDefaultSharePermissionValues ¶
func PossibleDefaultSharePermissionValues() []DefaultSharePermission
PossibleDefaultSharePermissionValues returns the possible values for the DefaultSharePermission const type.
func (DefaultSharePermission) ToPtr ¶
func (c DefaultSharePermission) ToPtr() *DefaultSharePermission
ToPtr returns a *DefaultSharePermission pointing to the current value.
type DeleteRetentionPolicy ¶
type DeleteRetentionPolicy struct { // Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365. Days *int32 `json:"days,omitempty"` // Indicates whether DeleteRetentionPolicy is enabled. Enabled *bool `json:"enabled,omitempty"` }
DeleteRetentionPolicy - The service properties for soft delete.
type DeletedAccount ¶
type DeletedAccount struct { ProxyResource // Properties of the deleted account. Properties *DeletedAccountProperties `json:"properties,omitempty"` }
DeletedAccount - Deleted storage account
func (DeletedAccount) MarshalJSON ¶
func (d DeletedAccount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeletedAccount.
type DeletedAccountListResult ¶
type DeletedAccountListResult struct { // READ-ONLY; Request URL that can be used to query next page of deleted accounts. Returned when total number of requested deleted accounts exceed maximum // page size. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Gets the list of deleted accounts and their properties. Value []*DeletedAccount `json:"value,omitempty" azure:"ro"` }
DeletedAccountListResult - The response from the List Deleted Accounts operation.
func (DeletedAccountListResult) MarshalJSON ¶
func (d DeletedAccountListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeletedAccountListResult.
type DeletedAccountProperties ¶
type DeletedAccountProperties struct { // READ-ONLY; Creation time of the deleted account. CreationTime *string `json:"creationTime,omitempty" azure:"ro"` // READ-ONLY; Deletion time of the deleted account. DeletionTime *string `json:"deletionTime,omitempty" azure:"ro"` // READ-ONLY; Location of the deleted account. Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Can be used to attempt recovering this deleted account via PutStorageAccount API. RestoreReference *string `json:"restoreReference,omitempty" azure:"ro"` // READ-ONLY; Full resource id of the original storage account. StorageAccountResourceID *string `json:"storageAccountResourceId,omitempty" azure:"ro"` }
DeletedAccountProperties - Attributes of a deleted storage account.
type DeletedAccountsClient ¶
type DeletedAccountsClient struct {
// contains filtered or unexported fields
}
DeletedAccountsClient contains the methods for the DeletedAccounts group. Don't use this type directly, use NewDeletedAccountsClient() instead.
func NewDeletedAccountsClient ¶
func NewDeletedAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *DeletedAccountsClient
NewDeletedAccountsClient creates a new instance of DeletedAccountsClient with the specified values.
func (*DeletedAccountsClient) Get ¶
func (client *DeletedAccountsClient) Get(ctx context.Context, deletedAccountName string, location string, options *DeletedAccountsGetOptions) (DeletedAccountsGetResponse, error)
Get - Get properties of specified deleted account resource. If the operation fails it returns the *ErrorResponse error type.
func (*DeletedAccountsClient) List ¶
func (client *DeletedAccountsClient) List(options *DeletedAccountsListOptions) *DeletedAccountsListPager
List - Lists deleted accounts under the subscription. If the operation fails it returns the *ErrorResponse error type.
type DeletedAccountsGetOptions ¶
type DeletedAccountsGetOptions struct { }
DeletedAccountsGetOptions contains the optional parameters for the DeletedAccounts.Get method.
type DeletedAccountsGetResponse ¶
type DeletedAccountsGetResponse struct { DeletedAccountsGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeletedAccountsGetResponse contains the response from method DeletedAccounts.Get.
type DeletedAccountsGetResult ¶
type DeletedAccountsGetResult struct {
DeletedAccount
}
DeletedAccountsGetResult contains the result from method DeletedAccounts.Get.
type DeletedAccountsListOptions ¶
type DeletedAccountsListOptions struct { }
DeletedAccountsListOptions contains the optional parameters for the DeletedAccounts.List method.
type DeletedAccountsListPager ¶
type DeletedAccountsListPager struct {
// contains filtered or unexported fields
}
DeletedAccountsListPager provides operations for iterating over paged responses.
func (*DeletedAccountsListPager) Err ¶
func (p *DeletedAccountsListPager) Err() error
Err returns the last error encountered while paging.
func (*DeletedAccountsListPager) NextPage ¶
func (p *DeletedAccountsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*DeletedAccountsListPager) PageResponse ¶
func (p *DeletedAccountsListPager) PageResponse() DeletedAccountsListResponse
PageResponse returns the current DeletedAccountsListResponse page.
type DeletedAccountsListResponse ¶
type DeletedAccountsListResponse struct { DeletedAccountsListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
DeletedAccountsListResponse contains the response from method DeletedAccounts.List.
type DeletedAccountsListResult ¶
type DeletedAccountsListResult struct {
DeletedAccountListResult
}
DeletedAccountsListResult contains the result from method DeletedAccounts.List.
type DeletedShare ¶
type DeletedShare struct { string `json:"deletedShareName,omitempty"` DeletedShareVersion *string `json:"deletedShareVersion,omitempty"` }DeletedShareName *
DeletedShare - The deleted share to be restored.
type Dimension ¶
type Dimension struct { // Display name of dimension. DisplayName *string `json:"displayName,omitempty"` // Display name of dimension. Name *string `json:"name,omitempty"` }
Dimension of blobs, possibly be blob type or access tier.
type DirectoryServiceOptions ¶
type DirectoryServiceOptions string
DirectoryServiceOptions - Indicates the directory service used.
const ( DirectoryServiceOptionsAADDS DirectoryServiceOptions = "AADDS" DirectoryServiceOptionsAD DirectoryServiceOptions = "AD" DirectoryServiceOptionsNone DirectoryServiceOptions = "None" )
func PossibleDirectoryServiceOptionsValues ¶
func PossibleDirectoryServiceOptionsValues() []DirectoryServiceOptions
PossibleDirectoryServiceOptionsValues returns the possible values for the DirectoryServiceOptions const type.
func (DirectoryServiceOptions) ToPtr ¶
func (c DirectoryServiceOptions) ToPtr() *DirectoryServiceOptions
ToPtr returns a *DirectoryServiceOptions pointing to the current value.
type EnabledProtocols ¶
type EnabledProtocols string
EnabledProtocols - The authentication protocol that is used for the file share. Can only be specified when creating a share.
const ( EnabledProtocolsNFS EnabledProtocols = "NFS" EnabledProtocolsSMB EnabledProtocols = "SMB" )
func PossibleEnabledProtocolsValues ¶
func PossibleEnabledProtocolsValues() []EnabledProtocols
PossibleEnabledProtocolsValues returns the possible values for the EnabledProtocols const type.
func (EnabledProtocols) ToPtr ¶
func (c EnabledProtocols) ToPtr() *EnabledProtocols
ToPtr returns a *EnabledProtocols pointing to the current value.
type Encryption ¶
type Encryption struct { // REQUIRED; The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault KeySource *KeySource `json:"keySource,omitempty"` // The identity to be used with service-side encryption at rest. EncryptionIdentity *EncryptionIdentity `json:"identity,omitempty"` // Properties provided by key vault. KeyVaultProperties *KeyVaultProperties `json:"keyvaultproperties,omitempty"` // A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. RequireInfrastructureEncryption *bool `json:"requireInfrastructureEncryption,omitempty"` // List of services which support encryption. Services *EncryptionServices `json:"services,omitempty"` }
Encryption - The encryption settings on the storage account.
type EncryptionIdentity ¶
type EncryptionIdentity struct { // Resource identifier of the UserAssigned identity to be associated with server-side encryption on the storage account. EncryptionUserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` }
EncryptionIdentity - Encryption identity for the storage account.
type EncryptionScope ¶
type EncryptionScope struct { Resource // Properties of the encryption scope. EncryptionScopeProperties *EncryptionScopeProperties `json:"properties,omitempty"` }
EncryptionScope - The Encryption Scope resource.
func (EncryptionScope) MarshalJSON ¶
func (e EncryptionScope) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionScope.
type EncryptionScopeKeyVaultProperties ¶
type EncryptionScopeKeyVaultProperties struct { // The object identifier for a key vault key object. When applied, the encryption scope will use the key referenced by the identifier to enable customer-managed // key support on this encryption scope. KeyURI *string `json:"keyUri,omitempty"` // READ-ONLY; The object identifier of the current versioned Key Vault Key in use. CurrentVersionedKeyIdentifier *string `json:"currentVersionedKeyIdentifier,omitempty" azure:"ro"` // READ-ONLY; Timestamp of last rotation of the Key Vault Key. LastKeyRotationTimestamp *time.Time `json:"lastKeyRotationTimestamp,omitempty" azure:"ro"` }
EncryptionScopeKeyVaultProperties - The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'.
func (EncryptionScopeKeyVaultProperties) MarshalJSON ¶
func (e EncryptionScopeKeyVaultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionScopeKeyVaultProperties.
func (*EncryptionScopeKeyVaultProperties) UnmarshalJSON ¶
func (e *EncryptionScopeKeyVaultProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionScopeKeyVaultProperties.
type EncryptionScopeListResult ¶
type EncryptionScopeListResult struct { // READ-ONLY; Request URL that can be used to query next page of encryption scopes. Returned when total number of requested encryption scopes exceeds the // maximum page size. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of encryption scopes requested. Value []*EncryptionScope `json:"value,omitempty" azure:"ro"` }
EncryptionScopeListResult - List of encryption scopes requested, and if paging is required, a URL to the next page of encryption scopes.
func (EncryptionScopeListResult) MarshalJSON ¶
func (e EncryptionScopeListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionScopeListResult.
type EncryptionScopeProperties ¶
type EncryptionScopeProperties struct { // The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'. KeyVaultProperties *EncryptionScopeKeyVaultProperties `json:"keyVaultProperties,omitempty"` // A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. RequireInfrastructureEncryption *bool `json:"requireInfrastructureEncryption,omitempty"` // The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. Source *EncryptionScopeSource `json:"source,omitempty"` // The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled. State *EncryptionScopeState `json:"state,omitempty"` // READ-ONLY; Gets the creation date and time of the encryption scope in UTC. CreationTime *time.Time `json:"creationTime,omitempty" azure:"ro"` // READ-ONLY; Gets the last modification date and time of the encryption scope in UTC. LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` }
EncryptionScopeProperties - Properties of the encryption scope.
func (EncryptionScopeProperties) MarshalJSON ¶
func (e EncryptionScopeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionScopeProperties.
func (*EncryptionScopeProperties) UnmarshalJSON ¶
func (e *EncryptionScopeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionScopeProperties.
type EncryptionScopeSource ¶
type EncryptionScopeSource string
EncryptionScopeSource - The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault.
const ( EncryptionScopeSourceMicrosoftKeyVault EncryptionScopeSource = "Microsoft.KeyVault" EncryptionScopeSourceMicrosoftStorage EncryptionScopeSource = "Microsoft.Storage" )
func PossibleEncryptionScopeSourceValues ¶
func PossibleEncryptionScopeSourceValues() []EncryptionScopeSource
PossibleEncryptionScopeSourceValues returns the possible values for the EncryptionScopeSource const type.
func (EncryptionScopeSource) ToPtr ¶
func (c EncryptionScopeSource) ToPtr() *EncryptionScopeSource
ToPtr returns a *EncryptionScopeSource pointing to the current value.
type EncryptionScopeState ¶
type EncryptionScopeState string
EncryptionScopeState - The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled.
const ( EncryptionScopeStateDisabled EncryptionScopeState = "Disabled" EncryptionScopeStateEnabled EncryptionScopeState = "Enabled" )
func PossibleEncryptionScopeStateValues ¶
func PossibleEncryptionScopeStateValues() []EncryptionScopeState
PossibleEncryptionScopeStateValues returns the possible values for the EncryptionScopeState const type.
func (EncryptionScopeState) ToPtr ¶
func (c EncryptionScopeState) ToPtr() *EncryptionScopeState
ToPtr returns a *EncryptionScopeState pointing to the current value.
type EncryptionScopesClient ¶
type EncryptionScopesClient struct {
// contains filtered or unexported fields
}
EncryptionScopesClient contains the methods for the EncryptionScopes group. Don't use this type directly, use NewEncryptionScopesClient() instead.
func NewEncryptionScopesClient ¶
func NewEncryptionScopesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *EncryptionScopesClient
NewEncryptionScopesClient creates a new instance of EncryptionScopesClient with the specified values.
func (*EncryptionScopesClient) Get ¶
func (client *EncryptionScopesClient) Get(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, options *EncryptionScopesGetOptions) (EncryptionScopesGetResponse, error)
Get - Returns the properties for the specified encryption scope. If the operation fails it returns the *ErrorResponse error type.
func (*EncryptionScopesClient) List ¶
func (client *EncryptionScopesClient) List(resourceGroupName string, accountName string, options *EncryptionScopesListOptions) *EncryptionScopesListPager
List - Lists all the encryption scopes available under the specified storage account. If the operation fails it returns a generic error.
func (*EncryptionScopesClient) Patch ¶
func (client *EncryptionScopesClient) Patch(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope, options *EncryptionScopesPatchOptions) (EncryptionScopesPatchResponse, error)
Patch - Update encryption scope properties as specified in the request body. Update fails if the specified encryption scope does not already exist. If the operation fails it returns the *ErrorResponse error type.
func (*EncryptionScopesClient) Put ¶
func (client *EncryptionScopesClient) Put(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope, options *EncryptionScopesPutOptions) (EncryptionScopesPutResponse, error)
Put - Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already created and a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified request. If the operation fails it returns the *ErrorResponse error type.
type EncryptionScopesGetOptions ¶
type EncryptionScopesGetOptions struct { }
EncryptionScopesGetOptions contains the optional parameters for the EncryptionScopes.Get method.
type EncryptionScopesGetResponse ¶
type EncryptionScopesGetResponse struct { EncryptionScopesGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
EncryptionScopesGetResponse contains the response from method EncryptionScopes.Get.
type EncryptionScopesGetResult ¶
type EncryptionScopesGetResult struct {
EncryptionScope
}
EncryptionScopesGetResult contains the result from method EncryptionScopes.Get.
type EncryptionScopesListOptions ¶
type EncryptionScopesListOptions struct { }
EncryptionScopesListOptions contains the optional parameters for the EncryptionScopes.List method.
type EncryptionScopesListPager ¶
type EncryptionScopesListPager struct {
// contains filtered or unexported fields
}
EncryptionScopesListPager provides operations for iterating over paged responses.
func (*EncryptionScopesListPager) Err ¶
func (p *EncryptionScopesListPager) Err() error
Err returns the last error encountered while paging.
func (*EncryptionScopesListPager) NextPage ¶
func (p *EncryptionScopesListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*EncryptionScopesListPager) PageResponse ¶
func (p *EncryptionScopesListPager) PageResponse() EncryptionScopesListResponse
PageResponse returns the current EncryptionScopesListResponse page.
type EncryptionScopesListResponse ¶
type EncryptionScopesListResponse struct { EncryptionScopesListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
EncryptionScopesListResponse contains the response from method EncryptionScopes.List.
type EncryptionScopesListResult ¶
type EncryptionScopesListResult struct {
EncryptionScopeListResult
}
EncryptionScopesListResult contains the result from method EncryptionScopes.List.
type EncryptionScopesPatchOptions ¶
type EncryptionScopesPatchOptions struct { }
EncryptionScopesPatchOptions contains the optional parameters for the EncryptionScopes.Patch method.
type EncryptionScopesPatchResponse ¶
type EncryptionScopesPatchResponse struct { EncryptionScopesPatchResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
EncryptionScopesPatchResponse contains the response from method EncryptionScopes.Patch.
type EncryptionScopesPatchResult ¶
type EncryptionScopesPatchResult struct {
EncryptionScope
}
EncryptionScopesPatchResult contains the result from method EncryptionScopes.Patch.
type EncryptionScopesPutOptions ¶
type EncryptionScopesPutOptions struct { }
EncryptionScopesPutOptions contains the optional parameters for the EncryptionScopes.Put method.
type EncryptionScopesPutResponse ¶
type EncryptionScopesPutResponse struct { EncryptionScopesPutResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
EncryptionScopesPutResponse contains the response from method EncryptionScopes.Put.
type EncryptionScopesPutResult ¶
type EncryptionScopesPutResult struct {
EncryptionScope
}
EncryptionScopesPutResult contains the result from method EncryptionScopes.Put.
type EncryptionService ¶
type EncryptionService struct { // A boolean indicating whether or not the service encrypts the data as it is stored. Enabled *bool `json:"enabled,omitempty"` // Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key // type implies that a default service key is used. KeyType *KeyType `json:"keyType,omitempty"` // READ-ONLY; Gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might // be some unencrypted blobs which were written after this // time, as it is just a rough estimate. LastEnabledTime *time.Time `json:"lastEnabledTime,omitempty" azure:"ro"` }
EncryptionService - A service that allows server-side encryption to be used.
func (EncryptionService) MarshalJSON ¶
func (e EncryptionService) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionService.
func (*EncryptionService) UnmarshalJSON ¶
func (e *EncryptionService) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionService.
type EncryptionServices ¶
type EncryptionServices struct { // The encryption function of the blob storage service. Blob *EncryptionService `json:"blob,omitempty"` // The encryption function of the file storage service. File *EncryptionService `json:"file,omitempty"` // The encryption function of the queue storage service. Queue *EncryptionService `json:"queue,omitempty"` // The encryption function of the table storage service. Table *EncryptionService `json:"table,omitempty"` }
EncryptionServices - A list of services that support encryption.
type Endpoints ¶
type Endpoints struct { // Gets the internet routing storage endpoints InternetEndpoints *StorageAccountInternetEndpoints `json:"internetEndpoints,omitempty"` // Gets the microsoft routing storage endpoints. MicrosoftEndpoints *StorageAccountMicrosoftEndpoints `json:"microsoftEndpoints,omitempty"` // READ-ONLY; Gets the blob endpoint. Blob *string `json:"blob,omitempty" azure:"ro"` // READ-ONLY; Gets the dfs endpoint. Dfs *string `json:"dfs,omitempty" azure:"ro"` // READ-ONLY; Gets the file endpoint. File *string `json:"file,omitempty" azure:"ro"` // READ-ONLY; Gets the queue endpoint. Queue *string `json:"queue,omitempty" azure:"ro"` // READ-ONLY; Gets the table endpoint. Table *string `json:"table,omitempty" azure:"ro"` // READ-ONLY; Gets the web endpoint. Web *string `json:"web,omitempty" azure:"ro"` }
Endpoints - The URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object.
type ErrorResponse ¶
type ErrorResponse struct { // Azure Storage Resource Provider error response body. InnerError *ErrorResponseBody `json:"error,omitempty"` // contains filtered or unexported fields }
ErrorResponse - An error response from the storage resource provider. Implements the error and azcore.HTTPResponse interfaces.
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
Error implements the error interface for type ErrorResponse. The contents of the error text are not contractual and subject to change.
type ErrorResponseBody ¶
type ErrorResponseBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` }
ErrorResponseBody - Error response body contract.
type ExpirationAction ¶
type ExpirationAction string
ExpirationAction - The SAS expiration action. Can only be Log.
const (
ExpirationActionLog ExpirationAction = "Log"
)
func PossibleExpirationActionValues ¶
func PossibleExpirationActionValues() []ExpirationAction
PossibleExpirationActionValues returns the possible values for the ExpirationAction const type.
func (ExpirationAction) ToPtr ¶
func (c ExpirationAction) ToPtr() *ExpirationAction
ToPtr returns a *ExpirationAction pointing to the current value.
type ExtendedLocation ¶
type ExtendedLocation struct { // The name of the extended location. Name *string `json:"name,omitempty"` // The type of the extended location. Type *ExtendedLocationTypes `json:"type,omitempty"` }
ExtendedLocation - The complex type of the extended location.
type ExtendedLocationTypes ¶
type ExtendedLocationTypes string
ExtendedLocationTypes - The type of extendedLocation.
const (
ExtendedLocationTypesEdgeZone ExtendedLocationTypes = "EdgeZone"
)
func PossibleExtendedLocationTypesValues ¶
func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes
PossibleExtendedLocationTypesValues returns the possible values for the ExtendedLocationTypes const type.
func (ExtendedLocationTypes) ToPtr ¶
func (c ExtendedLocationTypes) ToPtr() *ExtendedLocationTypes
ToPtr returns a *ExtendedLocationTypes pointing to the current value.
type FileServiceItems ¶
type FileServiceItems struct { // READ-ONLY; List of file services returned. Value []*FileServiceProperties `json:"value,omitempty" azure:"ro"` }
func (FileServiceItems) MarshalJSON ¶
func (f FileServiceItems) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileServiceItems.
type FileServiceProperties ¶
type FileServiceProperties struct { Resource // The properties of File services in storage account. FileServiceProperties *FileServicePropertiesProperties `json:"properties,omitempty"` // READ-ONLY; Sku name and tier. SKU *SKU `json:"sku,omitempty" azure:"ro"` }
FileServiceProperties - The properties of File services in storage account.
func (FileServiceProperties) MarshalJSON ¶
func (f FileServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileServiceProperties.
type FileServicePropertiesProperties ¶
type FileServicePropertiesProperties struct { // Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request // body, all CORS rules will be deleted, and // CORS will be disabled for the File service. Cors *CorsRules `json:"cors,omitempty"` // Protocol settings for file service ProtocolSettings *ProtocolSettings `json:"protocolSettings,omitempty"` ShareDeleteRetentionPolicy *DeleteRetentionPolicy `json:"shareDeleteRetentionPolicy,omitempty"` }
FileServicePropertiesProperties - The properties of File services in storage account.
type FileServicesClient ¶
type FileServicesClient struct {
// contains filtered or unexported fields
}
FileServicesClient contains the methods for the FileServices group. Don't use this type directly, use NewFileServicesClient() instead.
func NewFileServicesClient ¶
func NewFileServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *FileServicesClient
NewFileServicesClient creates a new instance of FileServicesClient with the specified values.
func (*FileServicesClient) GetServiceProperties ¶
func (client *FileServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, options *FileServicesGetServicePropertiesOptions) (FileServicesGetServicePropertiesResponse, error)
GetServiceProperties - Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*FileServicesClient) List ¶
func (client *FileServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *FileServicesListOptions) (FileServicesListResponse, error)
List - List all file services in storage accounts If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*FileServicesClient) SetServiceProperties ¶
func (client *FileServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters FileServiceProperties, options *FileServicesSetServicePropertiesOptions) (FileServicesSetServicePropertiesResponse, error)
SetServiceProperties - Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.
type FileServicesGetServicePropertiesOptions ¶
type FileServicesGetServicePropertiesOptions struct { }
FileServicesGetServicePropertiesOptions contains the optional parameters for the FileServices.GetServiceProperties method.
type FileServicesGetServicePropertiesResponse ¶
type FileServicesGetServicePropertiesResponse struct { FileServicesGetServicePropertiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
FileServicesGetServicePropertiesResponse contains the response from method FileServices.GetServiceProperties.
type FileServicesGetServicePropertiesResult ¶
type FileServicesGetServicePropertiesResult struct {
FileServiceProperties
}
FileServicesGetServicePropertiesResult contains the result from method FileServices.GetServiceProperties.
type FileServicesListOptions ¶
type FileServicesListOptions struct { }
FileServicesListOptions contains the optional parameters for the FileServices.List method.
type FileServicesListResponse ¶
type FileServicesListResponse struct { FileServicesListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
FileServicesListResponse contains the response from method FileServices.List.
type FileServicesListResult ¶
type FileServicesListResult struct {
FileServiceItems
}
FileServicesListResult contains the result from method FileServices.List.
type FileServicesSetServicePropertiesOptions ¶
type FileServicesSetServicePropertiesOptions struct { }
FileServicesSetServicePropertiesOptions contains the optional parameters for the FileServices.SetServiceProperties method.
type FileServicesSetServicePropertiesResponse ¶
type FileServicesSetServicePropertiesResponse struct { FileServicesSetServicePropertiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
FileServicesSetServicePropertiesResponse contains the response from method FileServices.SetServiceProperties.
type FileServicesSetServicePropertiesResult ¶
type FileServicesSetServicePropertiesResult struct {
FileServiceProperties
}
FileServicesSetServicePropertiesResult contains the result from method FileServices.SetServiceProperties.
type FileShare ¶
type FileShare struct { FileShareProperties `json:"properties,omitempty"` }FileShareProperties *
FileShare - Properties of the file share, including Id, resource name, resource type, Etag.
func (FileShare) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type FileShare.
type FileShareItem ¶
type FileShareItem struct { FileShareProperties `json:"properties,omitempty"` }Properties *
FileShareItem - The file share properties be listed out.
func (FileShareItem) MarshalJSON ¶
func (f FileShareItem) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileShareItem.
type FileShareItems ¶
type FileShareItems struct { string `json:"nextLink,omitempty" azure:"ro"` Value []*FileShareItem `json:"value,omitempty" azure:"ro"` }NextLink *
FileShareItems - Response schema. Contains list of shares returned, and if paging is requested or required, a URL to next page of shares.
func (FileShareItems) MarshalJSON ¶
func (f FileShareItems) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileShareItems.
type FileShareProperties ¶
type FileShareProperties struct { ShareAccessTier `json:"accessTier,omitempty"` EnabledProtocols *EnabledProtocols `json:"enabledProtocols,omitempty"` Metadata map[string]*string `json:"metadata,omitempty"` RootSquash *RootSquashType `json:"rootSquash,omitempty"` // 102400. ShareQuota *int32 `json:"shareQuota,omitempty"` SignedIdentifiers []*SignedIdentifier `json:"signedIdentifiers,omitempty"` AccessTierChangeTime *time.Time `json:"accessTierChangeTime,omitempty" azure:"ro"` AccessTierStatus *string `json:"accessTierStatus,omitempty" azure:"ro"` Deleted *bool `json:"deleted,omitempty" azure:"ro"` DeletedTime *time.Time `json:"deletedTime,omitempty" azure:"ro"` LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` LeaseDuration *LeaseDuration `json:"leaseDuration,omitempty" azure:"ro"` LeaseState *LeaseState `json:"leaseState,omitempty" azure:"ro"` LeaseStatus *LeaseStatus `json:"leaseStatus,omitempty" azure:"ro"` RemainingRetentionDays *int32 `json:"remainingRetentionDays,omitempty" azure:"ro"` ShareUsageBytes *int64 `json:"shareUsageBytes,omitempty" azure:"ro"` SnapshotTime *time.Time `json:"snapshotTime,omitempty" azure:"ro"` Version *string `json:"version,omitempty" azure:"ro"` }AccessTier *
FileShareProperties - The properties of the file share.
func (FileShareProperties) MarshalJSON ¶
func (f FileShareProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileShareProperties.
func (*FileShareProperties) UnmarshalJSON ¶
func (f *FileShareProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FileShareProperties.
type FileSharesClient ¶
type FileSharesClient struct {
// contains filtered or unexported fields
}
FileSharesClient contains the methods for the FileShares group. Don't use this type directly, use NewFileSharesClient() instead.
func NewFileSharesClient ¶
func NewFileSharesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *FileSharesClient
NewFileSharesClient creates a new instance of FileSharesClient with the specified values.
func (*FileSharesClient) Create ¶
func (client *FileSharesClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare, options *FileSharesCreateOptions) (FileSharesCreateResponse, error)
Create - Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*FileSharesClient) Delete ¶
func (client *FileSharesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, options *FileSharesDeleteOptions) (FileSharesDeleteResponse, error)
Delete - Deletes specified share under its account. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*FileSharesClient) Get ¶
func (client *FileSharesClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, options *FileSharesGetOptions) (FileSharesGetResponse, error)
Get - Gets properties of a specified share. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*FileSharesClient) Lease ¶
func (client *FileSharesClient) Lease(ctx context.Context, resourceGroupName string, accountName string, shareName string, options *FileSharesLeaseOptions) (FileSharesLeaseResponse, error)
Lease - The Lease Share operation establishes and manages a lock on a share for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*FileSharesClient) List ¶
func (client *FileSharesClient) List(resourceGroupName string, accountName string, options *FileSharesListOptions) *FileSharesListPager
List - Lists all shares. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*FileSharesClient) Restore ¶
func (client *FileSharesClient) Restore(ctx context.Context, resourceGroupName string, accountName string, shareName string, deletedShare DeletedShare, options *FileSharesRestoreOptions) (FileSharesRestoreResponse, error)
Restore - Restore a file share within a valid retention days if share soft delete is enabled If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*FileSharesClient) Update ¶
func (client *FileSharesClient) Update(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare, options *FileSharesUpdateOptions) (FileSharesUpdateResponse, error)
Update - Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist. If the operation fails it returns the *CloudErrorAutoGenerated error type.
type FileSharesCreateOptions ¶
type FileSharesCreateOptions struct { string }Expand *
FileSharesCreateOptions contains the optional parameters for the FileShares.Create method.
type FileSharesCreateResponse ¶
FileSharesCreateResponse contains the response from method FileShares.Create.
type FileSharesCreateResult ¶
type FileSharesCreateResult struct {
}FileSharesCreateResult contains the result from method FileShares.Create.
type FileSharesDeleteOptions ¶
type FileSharesDeleteOptions struct { // of its file share snapshots. If the file share contains leased-snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included // all of its file share snapshots (leased/unleased). For 'none', the file share is deleted if it has no share snapshots. If the file share contains any // snapshots (leased or unleased), the deletion fails. Include *string XMSSnapshot *string }
FileSharesDeleteOptions contains the optional parameters for the FileShares.Delete method.
type FileSharesDeleteResponse ¶
FileSharesDeleteResponse contains the response from method FileShares.Delete.
type FileSharesGetOptions ¶
FileSharesGetOptions contains the optional parameters for the FileShares.Get method.
type FileSharesGetResponse ¶
FileSharesGetResponse contains the response from method FileShares.Get.
type FileSharesGetResult ¶
type FileSharesGetResult struct {
}FileSharesGetResult contains the result from method FileShares.Get.
type FileSharesLeaseOptions ¶
type FileSharesLeaseOptions struct { LeaseShareRequest XMSSnapshot *string }Parameters *
FileSharesLeaseOptions contains the optional parameters for the FileShares.Lease method.
type FileSharesLeaseResponse ¶
FileSharesLeaseResponse contains the response from method FileShares.Lease.
type FileSharesLeaseResult ¶
type FileSharesLeaseResult struct { string }ETag *
FileSharesLeaseResult contains the result from method FileShares.Lease.
type FileSharesListOptions ¶
FileSharesListOptions contains the optional parameters for the FileShares.List method.
type FileSharesListPager ¶
type FileSharesListPager struct {
// contains filtered or unexported fields
}
FileSharesListPager provides operations for iterating over paged responses.
func (*FileSharesListPager) Err ¶
func (p *FileSharesListPager) Err() error
Err returns the last error encountered while paging.
func (*FileSharesListPager) NextPage ¶
func (p *FileSharesListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*FileSharesListPager) PageResponse ¶
func (p *FileSharesListPager) PageResponse() FileSharesListResponse
PageResponse returns the current FileSharesListResponse page.
type FileSharesListResponse ¶
FileSharesListResponse contains the response from method FileShares.List.
type FileSharesListResult ¶
type FileSharesListResult struct {
}FileSharesListResult contains the result from method FileShares.List.
type FileSharesRestoreOptions ¶
type FileSharesRestoreOptions struct { }
FileSharesRestoreOptions contains the optional parameters for the FileShares.Restore method.
type FileSharesRestoreResponse ¶
FileSharesRestoreResponse contains the response from method FileShares.Restore.
type FileSharesUpdateOptions ¶
type FileSharesUpdateOptions struct { }
FileSharesUpdateOptions contains the optional parameters for the FileShares.Update method.
type FileSharesUpdateResponse ¶
FileSharesUpdateResponse contains the response from method FileShares.Update.
type FileSharesUpdateResult ¶
type FileSharesUpdateResult struct {
}FileSharesUpdateResult contains the result from method FileShares.Update.
type Format ¶
type Format string
Format - This is a required field, it specifies the format for the inventory files.
func PossibleFormatValues ¶
func PossibleFormatValues() []Format
PossibleFormatValues returns the possible values for the Format const type.
type GeoReplicationStats ¶
type GeoReplicationStats struct { // READ-ONLY; A boolean flag which indicates whether or not account failover is supported for the account. CanFailover *bool `json:"canFailover,omitempty" azure:"ro"` // READ-ONLY; All primary writes preceding this UTC date/time value are guaranteed to be available for read operations. Primary writes following this point // in time may or may not be available for reads. Element may // be default value if value of LastSyncTime is not available, this can happen if secondary is offline or we are in bootstrap. LastSyncTime *time.Time `json:"lastSyncTime,omitempty" azure:"ro"` // READ-ONLY; The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap: // Indicates initial synchronization from the primary // location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary // location is temporarily unavailable. Status *GeoReplicationStatus `json:"status,omitempty" azure:"ro"` }
GeoReplicationStats - Statistics related to replication for storage account's Blob, Table, Queue and File services. It is only available when geo-redundant replication is enabled for the storage account.
func (GeoReplicationStats) MarshalJSON ¶
func (g GeoReplicationStats) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GeoReplicationStats.
func (*GeoReplicationStats) UnmarshalJSON ¶
func (g *GeoReplicationStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GeoReplicationStats.
type GeoReplicationStatus ¶
type GeoReplicationStatus string
GeoReplicationStatus - The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap: Indicates initial synchronization from the primary location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary location is temporarily unavailable.
const ( GeoReplicationStatusBootstrap GeoReplicationStatus = "Bootstrap" GeoReplicationStatusLive GeoReplicationStatus = "Live" )
func PossibleGeoReplicationStatusValues ¶
func PossibleGeoReplicationStatusValues() []GeoReplicationStatus
PossibleGeoReplicationStatusValues returns the possible values for the GeoReplicationStatus const type.
func (GeoReplicationStatus) ToPtr ¶
func (c GeoReplicationStatus) ToPtr() *GeoReplicationStatus
ToPtr returns a *GeoReplicationStatus pointing to the current value.
type HTTPProtocol ¶
type HTTPProtocol string
HTTPProtocol - The protocol permitted for a request made with the account SAS.
const ( HTTPProtocolHTTPSHTTP HTTPProtocol = "https,http" HTTPProtocolHTTPS HTTPProtocol = "https" )
func PossibleHTTPProtocolValues ¶
func PossibleHTTPProtocolValues() []HTTPProtocol
PossibleHTTPProtocolValues returns the possible values for the HTTPProtocol const type.
func (HTTPProtocol) ToPtr ¶
func (c HTTPProtocol) ToPtr() *HTTPProtocol
ToPtr returns a *HTTPProtocol pointing to the current value.
type IPRule ¶
type IPRule struct { // REQUIRED; Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. IPAddressOrRange *string `json:"value,omitempty"` // The action of IP ACL rule. Action *string `json:"action,omitempty"` }
IPRule - IP rule with specific IP or IP range in CIDR format.
type Identity ¶
type Identity struct { // REQUIRED; The identity type. Type *IdentityType `json:"type,omitempty"` // Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this storage account. The key is the // ARM resource identifier of the identity. Only 1 // User Assigned identity is permitted here. UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` // READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
Identity for the resource.
func (Identity) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Identity.
type IdentityType ¶
type IdentityType string
IdentityType - The identity type.
const ( IdentityTypeNone IdentityType = "None" IdentityTypeSystemAssigned IdentityType = "SystemAssigned" IdentityTypeSystemAssignedUserAssigned IdentityType = "SystemAssigned,UserAssigned" IdentityTypeUserAssigned IdentityType = "UserAssigned" )
func PossibleIdentityTypeValues ¶
func PossibleIdentityTypeValues() []IdentityType
PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
func (IdentityType) ToPtr ¶
func (c IdentityType) ToPtr() *IdentityType
ToPtr returns a *IdentityType pointing to the current value.
type ImmutabilityPolicy ¶
type ImmutabilityPolicy struct { AzureEntityResource // REQUIRED; The properties of an ImmutabilityPolicy of a blob container. Properties *ImmutabilityPolicyProperty `json:"properties,omitempty"` }
ImmutabilityPolicy - The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
func (ImmutabilityPolicy) MarshalJSON ¶
func (i ImmutabilityPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImmutabilityPolicy.
type ImmutabilityPolicyProperties ¶
type ImmutabilityPolicyProperties struct { // The properties of an ImmutabilityPolicy of a blob container. Properties *ImmutabilityPolicyProperty `json:"properties,omitempty"` // READ-ONLY; ImmutabilityPolicy Etag. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The ImmutabilityPolicy update history of the blob container. UpdateHistory []*UpdateHistoryProperty `json:"updateHistory,omitempty" azure:"ro"` }
ImmutabilityPolicyProperties - The properties of an ImmutabilityPolicy of a blob container.
func (ImmutabilityPolicyProperties) MarshalJSON ¶
func (i ImmutabilityPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImmutabilityPolicyProperties.
type ImmutabilityPolicyProperty ¶
type ImmutabilityPolicyProperty struct { // This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining // immutability protection and compliance. Only // new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. AllowProtectedAppendWrites *bool `json:"allowProtectedAppendWrites,omitempty"` // This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' // while maintaining immutability protection and // compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy // API. The 'allowProtectedAppendWrites' and // 'allowProtectedAppendWritesAll' properties are mutually exclusive. AllowProtectedAppendWritesAll *bool `json:"allowProtectedAppendWritesAll,omitempty"` // The immutability period for the blobs in the container since the policy creation, in days. ImmutabilityPeriodSinceCreationInDays *int32 `json:"immutabilityPeriodSinceCreationInDays,omitempty"` // READ-ONLY; The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. State *ImmutabilityPolicyState `json:"state,omitempty" azure:"ro"` }
ImmutabilityPolicyProperty - The properties of an ImmutabilityPolicy of a blob container.
type ImmutabilityPolicyState ¶
type ImmutabilityPolicyState string
ImmutabilityPolicyState - The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
const ( ImmutabilityPolicyStateLocked ImmutabilityPolicyState = "Locked" ImmutabilityPolicyStateUnlocked ImmutabilityPolicyState = "Unlocked" )
func PossibleImmutabilityPolicyStateValues ¶
func PossibleImmutabilityPolicyStateValues() []ImmutabilityPolicyState
PossibleImmutabilityPolicyStateValues returns the possible values for the ImmutabilityPolicyState const type.
func (ImmutabilityPolicyState) ToPtr ¶
func (c ImmutabilityPolicyState) ToPtr() *ImmutabilityPolicyState
ToPtr returns a *ImmutabilityPolicyState pointing to the current value.
type ImmutabilityPolicyUpdateType ¶
type ImmutabilityPolicyUpdateType string
ImmutabilityPolicyUpdateType - The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend.
const ( ImmutabilityPolicyUpdateTypeExtend ImmutabilityPolicyUpdateType = "extend" ImmutabilityPolicyUpdateTypeLock ImmutabilityPolicyUpdateType = "lock" ImmutabilityPolicyUpdateTypePut ImmutabilityPolicyUpdateType = "put" )
func PossibleImmutabilityPolicyUpdateTypeValues ¶
func PossibleImmutabilityPolicyUpdateTypeValues() []ImmutabilityPolicyUpdateType
PossibleImmutabilityPolicyUpdateTypeValues returns the possible values for the ImmutabilityPolicyUpdateType const type.
func (ImmutabilityPolicyUpdateType) ToPtr ¶
func (c ImmutabilityPolicyUpdateType) ToPtr() *ImmutabilityPolicyUpdateType
ToPtr returns a *ImmutabilityPolicyUpdateType pointing to the current value.
type ImmutableStorageAccount ¶
type ImmutableStorageAccount struct { // A boolean flag which enables account-level immutability. All the containers under such an account have object-level immutability enabled by default. Enabled *bool `json:"enabled,omitempty"` // Specifies the default account-level immutability policy which is inherited and applied to objects that do not possess an explicit immutability policy // at the object level. The object-level immutability // policy has higher precedence than the container-level immutability policy, which has a higher precedence than the account-level immutability policy. ImmutabilityPolicy *AccountImmutabilityPolicyProperties `json:"immutabilityPolicy,omitempty"` }
ImmutableStorageAccount - This property enables and defines account-level immutability. Enabling the feature auto-enables Blob Versioning.
type ImmutableStorageWithVersioning ¶
type ImmutableStorageWithVersioning struct { // This is an immutable property, when set to true it enables object level immutability at the container level. Enabled *bool `json:"enabled,omitempty"` // READ-ONLY; This property denotes the container level immutability to object level immutability migration state. MigrationState *MigrationState `json:"migrationState,omitempty" azure:"ro"` // READ-ONLY; Returns the date and time the object level immutability was enabled. TimeStamp *time.Time `json:"timeStamp,omitempty" azure:"ro"` }
ImmutableStorageWithVersioning - Object level immutability properties of the container.
func (ImmutableStorageWithVersioning) MarshalJSON ¶
func (i ImmutableStorageWithVersioning) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImmutableStorageWithVersioning.
func (*ImmutableStorageWithVersioning) UnmarshalJSON ¶
func (i *ImmutableStorageWithVersioning) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImmutableStorageWithVersioning.
type InventoryRuleType ¶
type InventoryRuleType string
InventoryRuleType - The valid value is Inventory
const (
InventoryRuleTypeInventory InventoryRuleType = "Inventory"
)
func PossibleInventoryRuleTypeValues ¶
func PossibleInventoryRuleTypeValues() []InventoryRuleType
PossibleInventoryRuleTypeValues returns the possible values for the InventoryRuleType const type.
func (InventoryRuleType) ToPtr ¶
func (c InventoryRuleType) ToPtr() *InventoryRuleType
ToPtr returns a *InventoryRuleType pointing to the current value.
type KeyCreationTime ¶
type KeyCreationTime struct { Key1 *time.Time `json:"key1,omitempty"` Key2 *time.Time `json:"key2,omitempty"` }
KeyCreationTime - Storage account keys creation time.
func (KeyCreationTime) MarshalJSON ¶
func (k KeyCreationTime) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type KeyCreationTime.
func (*KeyCreationTime) UnmarshalJSON ¶
func (k *KeyCreationTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type KeyCreationTime.
type KeyPermission ¶
type KeyPermission string
KeyPermission - Permissions for the key -- read-only or full permissions.
const ( KeyPermissionRead KeyPermission = "Read" KeyPermissionFull KeyPermission = "Full" )
func PossibleKeyPermissionValues ¶
func PossibleKeyPermissionValues() []KeyPermission
PossibleKeyPermissionValues returns the possible values for the KeyPermission const type.
func (KeyPermission) ToPtr ¶
func (c KeyPermission) ToPtr() *KeyPermission
ToPtr returns a *KeyPermission pointing to the current value.
type KeyPolicy ¶
type KeyPolicy struct { // REQUIRED; The key expiration period in days. KeyExpirationPeriodInDays *int32 `json:"keyExpirationPeriodInDays,omitempty"` }
KeyPolicy assigned to the storage account.
type KeySource ¶
type KeySource string
KeySource - The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault
func PossibleKeySourceValues ¶
func PossibleKeySourceValues() []KeySource
PossibleKeySourceValues returns the possible values for the KeySource const type.
type KeyType ¶
type KeyType string
KeyType - Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used.
func PossibleKeyTypeValues ¶
func PossibleKeyTypeValues() []KeyType
PossibleKeyTypeValues returns the possible values for the KeyType const type.
type KeyVaultProperties ¶
type KeyVaultProperties struct { // The name of KeyVault key. KeyName *string `json:"keyname,omitempty"` // The Uri of KeyVault. KeyVaultURI *string `json:"keyvaulturi,omitempty"` // The version of KeyVault key. KeyVersion *string `json:"keyversion,omitempty"` // READ-ONLY; The object identifier of the current versioned Key Vault Key in use. CurrentVersionedKeyIdentifier *string `json:"currentVersionedKeyIdentifier,omitempty" azure:"ro"` // READ-ONLY; Timestamp of last rotation of the Key Vault Key. LastKeyRotationTimestamp *time.Time `json:"lastKeyRotationTimestamp,omitempty" azure:"ro"` }
KeyVaultProperties - Properties of key vault.
func (KeyVaultProperties) MarshalJSON ¶
func (k KeyVaultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties.
func (*KeyVaultProperties) UnmarshalJSON ¶
func (k *KeyVaultProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties.
type Kind ¶
type Kind string
Kind - Indicates the type of storage account.
func PossibleKindValues ¶
func PossibleKindValues() []Kind
PossibleKindValues returns the possible values for the Kind const type.
type LargeFileSharesState ¶
type LargeFileSharesState string
LargeFileSharesState - Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled.
const ()
func PossibleLargeFileSharesStateValues ¶
func PossibleLargeFileSharesStateValues() []LargeFileSharesState
PossibleLargeFileSharesStateValues returns the possible values for the LargeFileSharesState const type.
func (LargeFileSharesState) ToPtr ¶
func (c LargeFileSharesState) ToPtr() *LargeFileSharesState
ToPtr returns a *LargeFileSharesState pointing to the current value.
type LastAccessTimeTrackingPolicy ¶
type LastAccessTimeTrackingPolicy struct { // REQUIRED; When set to true last access time based tracking is enabled. Enable *bool `json:"enable,omitempty"` // An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only BlobType []*string `json:"blobType,omitempty"` // Name of the policy. The valid value is AccessTimeTracking. This field is currently read only Name *Name `json:"name,omitempty"` // The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only // with value as 1 TrackingGranularityInDays *int32 `json:"trackingGranularityInDays,omitempty"` }
LastAccessTimeTrackingPolicy - The blob service properties for Last access time based tracking policy.
func (LastAccessTimeTrackingPolicy) MarshalJSON ¶
func (l LastAccessTimeTrackingPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LastAccessTimeTrackingPolicy.
type LeaseContainerRequest ¶
type LeaseContainerRequest struct { // REQUIRED; Specifies the lease action. Can be one of the available actions. Action *LeaseContainerRequestAction `json:"action,omitempty"` // Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60. BreakPeriod *int32 `json:"breakPeriod,omitempty"` // Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires. LeaseDuration *int32 `json:"leaseDuration,omitempty"` // Identifies the lease. Can be specified in any valid GUID string format. LeaseID *string `json:"leaseId,omitempty"` // Optional for acquire, required for change. Proposed lease ID, in a GUID string format. ProposedLeaseID *string `json:"proposedLeaseId,omitempty"` }
LeaseContainerRequest - Lease Container request schema.
type LeaseContainerRequestAction ¶
type LeaseContainerRequestAction string
LeaseContainerRequestAction - Specifies the lease action. Can be one of the available actions.
const ( LeaseContainerRequestActionAcquire LeaseContainerRequestAction = "Acquire" LeaseContainerRequestActionBreak LeaseContainerRequestAction = "Break" LeaseContainerRequestActionChange LeaseContainerRequestAction = "Change" LeaseContainerRequestActionRelease LeaseContainerRequestAction = "Release" LeaseContainerRequestActionRenew LeaseContainerRequestAction = "Renew" )
func PossibleLeaseContainerRequestActionValues ¶
func PossibleLeaseContainerRequestActionValues() []LeaseContainerRequestAction
PossibleLeaseContainerRequestActionValues returns the possible values for the LeaseContainerRequestAction const type.
func (LeaseContainerRequestAction) ToPtr ¶
func (c LeaseContainerRequestAction) ToPtr() *LeaseContainerRequestAction
ToPtr returns a *LeaseContainerRequestAction pointing to the current value.
type LeaseContainerResponse ¶
type LeaseContainerResponse struct { // Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease. LeaseID *string `json:"leaseId,omitempty"` // Approximate time remaining in the lease period, in seconds. LeaseTimeSeconds *string `json:"leaseTimeSeconds,omitempty"` }
LeaseContainerResponse - Lease Container response schema.
type LeaseDuration ¶
type LeaseDuration string
LeaseDuration - Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased.
const ( LeaseDurationFixed LeaseDuration = "Fixed" LeaseDurationInfinite LeaseDuration = "Infinite" )
func PossibleLeaseDurationValues ¶
func PossibleLeaseDurationValues() []LeaseDuration
PossibleLeaseDurationValues returns the possible values for the LeaseDuration const type.
func (LeaseDuration) ToPtr ¶
func (c LeaseDuration) ToPtr() *LeaseDuration
ToPtr returns a *LeaseDuration pointing to the current value.
type LeaseShareAction ¶
type LeaseShareAction string
LeaseShareAction - Specifies the lease action. Can be one of the available actions.
const ()
func PossibleLeaseShareActionValues ¶
func PossibleLeaseShareActionValues() []LeaseShareAction
PossibleLeaseShareActionValues returns the possible values for the LeaseShareAction const type.
func (LeaseShareAction) ToPtr ¶
func (c LeaseShareAction) ToPtr() *LeaseShareAction
ToPtr returns a *LeaseShareAction pointing to the current value.
type LeaseShareRequest ¶
type LeaseShareRequest struct { LeaseShareAction `json:"action,omitempty"` BreakPeriod *int32 `json:"breakPeriod,omitempty"` LeaseDuration *int32 `json:"leaseDuration,omitempty"` LeaseID *string `json:"leaseId,omitempty"` ProposedLeaseID *string `json:"proposedLeaseId,omitempty"` }Action *
LeaseShareRequest - Lease Share request schema.
type LeaseShareResponse ¶
type LeaseShareResponse struct { string `json:"leaseId,omitempty"` LeaseTimeSeconds *string `json:"leaseTimeSeconds,omitempty"` }LeaseID *
LeaseShareResponse - Lease Share response schema.
type LeaseState ¶
type LeaseState string
LeaseState - Lease state of the container.
const ( LeaseStateAvailable LeaseState = "Available" LeaseStateBreaking LeaseState = "Breaking" LeaseStateBroken LeaseState = "Broken" LeaseStateExpired LeaseState = "Expired" LeaseStateLeased LeaseState = "Leased" )
func PossibleLeaseStateValues ¶
func PossibleLeaseStateValues() []LeaseState
PossibleLeaseStateValues returns the possible values for the LeaseState const type.
func (LeaseState) ToPtr ¶
func (c LeaseState) ToPtr() *LeaseState
ToPtr returns a *LeaseState pointing to the current value.
type LeaseStatus ¶
type LeaseStatus string
LeaseStatus - The lease status of the container.
const ( LeaseStatusLocked LeaseStatus = "Locked" LeaseStatusUnlocked LeaseStatus = "Unlocked" )
func PossibleLeaseStatusValues ¶
func PossibleLeaseStatusValues() []LeaseStatus
PossibleLeaseStatusValues returns the possible values for the LeaseStatus const type.
func (LeaseStatus) ToPtr ¶
func (c LeaseStatus) ToPtr() *LeaseStatus
ToPtr returns a *LeaseStatus pointing to the current value.
type LegalHold ¶
type LegalHold struct { // REQUIRED; Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. Tags []*string `json:"tags,omitempty"` // When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be // added and any existing blocks cannot be modified // or deleted. AllowProtectedAppendWritesAll *bool `json:"allowProtectedAppendWritesAll,omitempty"` // READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to // false by SRP if all existing legal hold tags are cleared out. // There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. HasLegalHold *bool `json:"hasLegalHold,omitempty" azure:"ro"` }
LegalHold - The LegalHold property of a blob container.
func (LegalHold) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type LegalHold.
type LegalHoldProperties ¶
type LegalHoldProperties struct { // Protected append blob writes history. ProtectedAppendWritesHistory *ProtectedAppendWritesHistory `json:"protectedAppendWritesHistory,omitempty"` // The list of LegalHold tags of a blob container. Tags []*TagProperty `json:"tags,omitempty"` // READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to // false by SRP if all existing legal hold tags are cleared out. // There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. HasLegalHold *bool `json:"hasLegalHold,omitempty" azure:"ro"` }
LegalHoldProperties - The LegalHold property of a blob container.
func (LegalHoldProperties) MarshalJSON ¶
func (l LegalHoldProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LegalHoldProperties.
type ListAccountSasResponse ¶
type ListAccountSasResponse struct { // READ-ONLY; List SAS credentials of storage account. AccountSasToken *string `json:"accountSasToken,omitempty" azure:"ro"` }
ListAccountSasResponse - The List SAS credentials operation response.
type ListBlobInventoryPolicy ¶
type ListBlobInventoryPolicy struct { // READ-ONLY; List of blob inventory policies. Value []*BlobInventoryPolicy `json:"value,omitempty" azure:"ro"` }
ListBlobInventoryPolicy - List of blob inventory policies returned.
func (ListBlobInventoryPolicy) MarshalJSON ¶
func (l ListBlobInventoryPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListBlobInventoryPolicy.
type ListContainerItem ¶
type ListContainerItem struct { AzureEntityResource // The blob container properties be listed out. Properties *ContainerProperties `json:"properties,omitempty"` }
ListContainerItem - The blob container properties be listed out.
func (ListContainerItem) MarshalJSON ¶
func (l ListContainerItem) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListContainerItem.
type ListContainerItems ¶
type ListContainerItems struct { // READ-ONLY; Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of blobs containers returned. Value []*ListContainerItem `json:"value,omitempty" azure:"ro"` }
ListContainerItems - Response schema. Contains list of blobs returned, and if paging is requested or required, a URL to next page of containers.
func (ListContainerItems) MarshalJSON ¶
func (l ListContainerItems) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListContainerItems.
type ListContainersInclude ¶
type ListContainersInclude string
const (
ListContainersIncludeDeleted ListContainersInclude = "deleted"
)
func PossibleListContainersIncludeValues ¶
func PossibleListContainersIncludeValues() []ListContainersInclude
PossibleListContainersIncludeValues returns the possible values for the ListContainersInclude const type.
func (ListContainersInclude) ToPtr ¶
func (c ListContainersInclude) ToPtr() *ListContainersInclude
ToPtr returns a *ListContainersInclude pointing to the current value.
type ListQueue ¶
type ListQueue struct { Resource // List Queue resource properties. QueueProperties *ListQueueProperties `json:"properties,omitempty"` }
func (ListQueue) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type ListQueue.
type ListQueueProperties ¶
type ListQueueProperties struct { // A name-value pair that represents queue metadata. Metadata map[string]*string `json:"metadata,omitempty"` }
func (ListQueueProperties) MarshalJSON ¶
func (l ListQueueProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListQueueProperties.
type ListQueueResource ¶
type ListQueueResource struct { // READ-ONLY; Request URL that can be used to list next page of queues NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of queues returned. Value []*ListQueue `json:"value,omitempty" azure:"ro"` }
ListQueueResource - Response schema. Contains list of queues returned
func (ListQueueResource) MarshalJSON ¶
func (l ListQueueResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListQueueResource.
type ListQueueServices ¶
type ListQueueServices struct { // READ-ONLY; List of queue services returned. Value []*QueueServiceProperties `json:"value,omitempty" azure:"ro"` }
func (ListQueueServices) MarshalJSON ¶
func (l ListQueueServices) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListQueueServices.
type ListServiceSasResponse ¶
type ListServiceSasResponse struct { // READ-ONLY; List service SAS credentials of specific resource. ServiceSasToken *string `json:"serviceSasToken,omitempty" azure:"ro"` }
ListServiceSasResponse - The List service SAS credentials operation response.
type ListTableResource ¶
type ListTableResource struct { // READ-ONLY; Request URL that can be used to query next page of tables NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of tables returned. Value []*Table `json:"value,omitempty" azure:"ro"` }
ListTableResource - Response schema. Contains list of tables returned
func (ListTableResource) MarshalJSON ¶
func (l ListTableResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListTableResource.
type ListTableServices ¶
type ListTableServices struct { // READ-ONLY; List of table services returned. Value []*TableServiceProperties `json:"value,omitempty" azure:"ro"` }
func (ListTableServices) MarshalJSON ¶
func (l ListTableServices) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListTableServices.
type ManagementPoliciesClient ¶
type ManagementPoliciesClient struct {
// contains filtered or unexported fields
}
ManagementPoliciesClient contains the methods for the ManagementPolicies group. Don't use this type directly, use NewManagementPoliciesClient() instead.
func NewManagementPoliciesClient ¶
func NewManagementPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ManagementPoliciesClient
NewManagementPoliciesClient creates a new instance of ManagementPoliciesClient with the specified values.
func (*ManagementPoliciesClient) CreateOrUpdate ¶
func (client *ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, managementPolicyName ManagementPolicyName, properties ManagementPolicy, options *ManagementPoliciesCreateOrUpdateOptions) (ManagementPoliciesCreateOrUpdateResponse, error)
CreateOrUpdate - Sets the managementpolicy to the specified storage account. If the operation fails it returns a generic error.
func (*ManagementPoliciesClient) Delete ¶
func (client *ManagementPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, managementPolicyName ManagementPolicyName, options *ManagementPoliciesDeleteOptions) (ManagementPoliciesDeleteResponse, error)
Delete - Deletes the managementpolicy associated with the specified storage account. If the operation fails it returns a generic error.
func (*ManagementPoliciesClient) Get ¶
func (client *ManagementPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, managementPolicyName ManagementPolicyName, options *ManagementPoliciesGetOptions) (ManagementPoliciesGetResponse, error)
Get - Gets the managementpolicy associated with the specified storage account. If the operation fails it returns a generic error.
type ManagementPoliciesCreateOrUpdateOptions ¶
type ManagementPoliciesCreateOrUpdateOptions struct { }
ManagementPoliciesCreateOrUpdateOptions contains the optional parameters for the ManagementPolicies.CreateOrUpdate method.
type ManagementPoliciesCreateOrUpdateResponse ¶
type ManagementPoliciesCreateOrUpdateResponse struct { ManagementPoliciesCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementPoliciesCreateOrUpdateResponse contains the response from method ManagementPolicies.CreateOrUpdate.
type ManagementPoliciesCreateOrUpdateResult ¶
type ManagementPoliciesCreateOrUpdateResult struct {
ManagementPolicy
}
ManagementPoliciesCreateOrUpdateResult contains the result from method ManagementPolicies.CreateOrUpdate.
type ManagementPoliciesDeleteOptions ¶
type ManagementPoliciesDeleteOptions struct { }
ManagementPoliciesDeleteOptions contains the optional parameters for the ManagementPolicies.Delete method.
type ManagementPoliciesDeleteResponse ¶
type ManagementPoliciesDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementPoliciesDeleteResponse contains the response from method ManagementPolicies.Delete.
type ManagementPoliciesGetOptions ¶
type ManagementPoliciesGetOptions struct { }
ManagementPoliciesGetOptions contains the optional parameters for the ManagementPolicies.Get method.
type ManagementPoliciesGetResponse ¶
type ManagementPoliciesGetResponse struct { ManagementPoliciesGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementPoliciesGetResponse contains the response from method ManagementPolicies.Get.
type ManagementPoliciesGetResult ¶
type ManagementPoliciesGetResult struct {
ManagementPolicy
}
ManagementPoliciesGetResult contains the result from method ManagementPolicies.Get.
type ManagementPolicy ¶
type ManagementPolicy struct { Resource // Returns the Storage Account Data Policies Rules. Properties *ManagementPolicyProperties `json:"properties,omitempty"` }
ManagementPolicy - The Get Storage Account ManagementPolicies operation response.
func (ManagementPolicy) MarshalJSON ¶
func (m ManagementPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagementPolicy.
type ManagementPolicyAction ¶
type ManagementPolicyAction struct { // The management policy action for base blob BaseBlob *ManagementPolicyBaseBlob `json:"baseBlob,omitempty"` // The management policy action for snapshot Snapshot *ManagementPolicySnapShot `json:"snapshot,omitempty"` // The management policy action for version Version *ManagementPolicyVersion `json:"version,omitempty"` }
ManagementPolicyAction - Actions are applied to the filtered blobs when the execution condition is met.
type ManagementPolicyBaseBlob ¶
type ManagementPolicyBaseBlob struct { // The function to delete the blob Delete *DateAfterModification `json:"delete,omitempty"` // This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan. EnableAutoTierToHotFromCool *bool `json:"enableAutoTierToHotFromCool,omitempty"` // The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier TierToArchive *DateAfterModification `json:"tierToArchive,omitempty"` // The function to tier blobs to cool storage. Support blobs currently at Hot tier TierToCool *DateAfterModification `json:"tierToCool,omitempty"` }
ManagementPolicyBaseBlob - Management policy action for base blob.
type ManagementPolicyDefinition ¶
type ManagementPolicyDefinition struct { // REQUIRED; An object that defines the action set. Actions *ManagementPolicyAction `json:"actions,omitempty"` // An object that defines the filter set. Filters *ManagementPolicyFilter `json:"filters,omitempty"` }
ManagementPolicyDefinition - An object that defines the Lifecycle rule. Each definition is made up with a filters set and an actions set.
type ManagementPolicyFilter ¶
type ManagementPolicyFilter struct { // REQUIRED; An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob. BlobTypes []*string `json:"blobTypes,omitempty"` // An array of blob index tag based filters, there can be at most 10 tag filters BlobIndexMatch []*TagFilter `json:"blobIndexMatch,omitempty"` // An array of strings for prefixes to be match. PrefixMatch []*string `json:"prefixMatch,omitempty"` }
ManagementPolicyFilter - Filters limit rule actions to a subset of blobs within the storage account. If multiple filters are defined, a logical AND is performed on all filters.
func (ManagementPolicyFilter) MarshalJSON ¶
func (m ManagementPolicyFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagementPolicyFilter.
type ManagementPolicyName ¶
type ManagementPolicyName string
const (
ManagementPolicyNameDefault ManagementPolicyName = "default"
)
func PossibleManagementPolicyNameValues ¶
func PossibleManagementPolicyNameValues() []ManagementPolicyName
PossibleManagementPolicyNameValues returns the possible values for the ManagementPolicyName const type.
func (ManagementPolicyName) ToPtr ¶
func (c ManagementPolicyName) ToPtr() *ManagementPolicyName
ToPtr returns a *ManagementPolicyName pointing to the current value.
type ManagementPolicyProperties ¶
type ManagementPolicyProperties struct { // REQUIRED; The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. Policy *ManagementPolicySchema `json:"policy,omitempty"` // READ-ONLY; Returns the date and time the ManagementPolicies was last modified. LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` }
ManagementPolicyProperties - The Storage Account ManagementPolicy properties.
func (ManagementPolicyProperties) MarshalJSON ¶
func (m ManagementPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagementPolicyProperties.
func (*ManagementPolicyProperties) UnmarshalJSON ¶
func (m *ManagementPolicyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagementPolicyProperties.
type ManagementPolicyRule ¶
type ManagementPolicyRule struct { // REQUIRED; An object that defines the Lifecycle rule. Definition *ManagementPolicyDefinition `json:"definition,omitempty"` // REQUIRED; A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. Name *string `json:"name,omitempty"` // REQUIRED; The valid value is Lifecycle Type *RuleType `json:"type,omitempty"` // Rule is enabled if set to true. Enabled *bool `json:"enabled,omitempty"` }
ManagementPolicyRule - An object that wraps the Lifecycle rule. Each rule is uniquely defined by name.
type ManagementPolicySchema ¶
type ManagementPolicySchema struct { // REQUIRED; The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. Rules []*ManagementPolicyRule `json:"rules,omitempty"` }
ManagementPolicySchema - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
func (ManagementPolicySchema) MarshalJSON ¶
func (m ManagementPolicySchema) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagementPolicySchema.
type ManagementPolicySnapShot ¶
type ManagementPolicySnapShot struct { // The function to delete the blob snapshot Delete *DateAfterCreation `json:"delete,omitempty"` // The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier TierToArchive *DateAfterCreation `json:"tierToArchive,omitempty"` // The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier TierToCool *DateAfterCreation `json:"tierToCool,omitempty"` }
ManagementPolicySnapShot - Management policy action for snapshot.
type ManagementPolicyVersion ¶
type ManagementPolicyVersion struct { // The function to delete the blob version Delete *DateAfterCreation `json:"delete,omitempty"` // The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier TierToArchive *DateAfterCreation `json:"tierToArchive,omitempty"` // The function to tier blob version to cool storage. Support blob version currently at Hot tier TierToCool *DateAfterCreation `json:"tierToCool,omitempty"` }
ManagementPolicyVersion - Management policy action for blob version.
type MetricSpecification ¶
type MetricSpecification struct { // Aggregation type could be Average. AggregationType *string `json:"aggregationType,omitempty"` // The category this metric specification belong to, could be Capacity. Category *string `json:"category,omitempty"` // Dimensions of blobs, including blob type and access tier. Dimensions []*Dimension `json:"dimensions,omitempty"` // Display description of metric specification. DisplayDescription *string `json:"displayDescription,omitempty"` // Display name of metric specification. DisplayName *string `json:"displayName,omitempty"` // The property to decide fill gap with zero or not. FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // Name of metric specification. Name *string `json:"name,omitempty"` // Account Resource Id. ResourceIDDimensionNameOverride *string `json:"resourceIdDimensionNameOverride,omitempty"` // Unit could be Bytes or Count. Unit *string `json:"unit,omitempty"` }
MetricSpecification - Metric specification of operation.
func (MetricSpecification) MarshalJSON ¶
func (m MetricSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MetricSpecification.
type MigrationState ¶
type MigrationState string
MigrationState - This property denotes the container level immutability to object level immutability migration state.
const ( MigrationStateCompleted MigrationState = "Completed" MigrationStateInProgress MigrationState = "InProgress" )
func PossibleMigrationStateValues ¶
func PossibleMigrationStateValues() []MigrationState
PossibleMigrationStateValues returns the possible values for the MigrationState const type.
func (MigrationState) ToPtr ¶
func (c MigrationState) ToPtr() *MigrationState
ToPtr returns a *MigrationState pointing to the current value.
type MinimumTLSVersion ¶
type MinimumTLSVersion string
MinimumTLSVersion - Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property.
const ( MinimumTLSVersionTLS10 MinimumTLSVersion = "TLS1_0" MinimumTLSVersionTLS11 MinimumTLSVersion = "TLS1_1" MinimumTLSVersionTLS12 MinimumTLSVersion = "TLS1_2" )
func PossibleMinimumTLSVersionValues ¶
func PossibleMinimumTLSVersionValues() []MinimumTLSVersion
PossibleMinimumTLSVersionValues returns the possible values for the MinimumTLSVersion const type.
func (MinimumTLSVersion) ToPtr ¶
func (c MinimumTLSVersion) ToPtr() *MinimumTLSVersion
ToPtr returns a *MinimumTLSVersion pointing to the current value.
type Multichannel ¶
type Multichannel struct { // Indicates whether multichannel is enabled Enabled *bool `json:"enabled,omitempty"` }
Multichannel setting. Applies to Premium FileStorage only.
type Name ¶
type Name string
Name - Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
const (
NameAccessTimeTracking Name = "AccessTimeTracking"
)
func PossibleNameValues ¶
func PossibleNameValues() []Name
PossibleNameValues returns the possible values for the Name const type.
type NetworkRuleSet ¶
type NetworkRuleSet struct { // REQUIRED; Specifies the default action of allow or deny when no other rules match. DefaultAction *DefaultAction `json:"defaultAction,omitempty"` // Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, // "Logging, Metrics"), or None to bypass none // of those traffics. Bypass *Bypass `json:"bypass,omitempty"` // Sets the IP ACL rules IPRules []*IPRule `json:"ipRules,omitempty"` // Sets the resource access rules ResourceAccessRules []*ResourceAccessRule `json:"resourceAccessRules,omitempty"` // Sets the virtual network rules VirtualNetworkRules []*VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` }
NetworkRuleSet - Network rule set
func (NetworkRuleSet) MarshalJSON ¶
func (n NetworkRuleSet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet.
type ObjectReplicationPolicies ¶
type ObjectReplicationPolicies struct { // The replication policy between two storage accounts. Value []*ObjectReplicationPolicy `json:"value,omitempty"` }
ObjectReplicationPolicies - List storage account object replication policies.
func (ObjectReplicationPolicies) MarshalJSON ¶
func (o ObjectReplicationPolicies) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicies.
type ObjectReplicationPoliciesClient ¶
type ObjectReplicationPoliciesClient struct {
// contains filtered or unexported fields
}
ObjectReplicationPoliciesClient contains the methods for the ObjectReplicationPolicies group. Don't use this type directly, use NewObjectReplicationPoliciesClient() instead.
func NewObjectReplicationPoliciesClient ¶
func NewObjectReplicationPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ObjectReplicationPoliciesClient
NewObjectReplicationPoliciesClient creates a new instance of ObjectReplicationPoliciesClient with the specified values.
func (*ObjectReplicationPoliciesClient) CreateOrUpdate ¶
func (client *ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, properties ObjectReplicationPolicy, options *ObjectReplicationPoliciesCreateOrUpdateOptions) (ObjectReplicationPoliciesCreateOrUpdateResponse, error)
CreateOrUpdate - Create or update the object replication policy of the storage account. If the operation fails it returns the *ErrorResponse error type.
func (*ObjectReplicationPoliciesClient) Delete ¶
func (client *ObjectReplicationPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, options *ObjectReplicationPoliciesDeleteOptions) (ObjectReplicationPoliciesDeleteResponse, error)
Delete - Deletes the object replication policy associated with the specified storage account. If the operation fails it returns the *ErrorResponse error type.
func (*ObjectReplicationPoliciesClient) Get ¶
func (client *ObjectReplicationPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, options *ObjectReplicationPoliciesGetOptions) (ObjectReplicationPoliciesGetResponse, error)
Get - Get the object replication policy of the storage account by policy ID. If the operation fails it returns the *ErrorResponse error type.
func (*ObjectReplicationPoliciesClient) List ¶
func (client *ObjectReplicationPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *ObjectReplicationPoliciesListOptions) (ObjectReplicationPoliciesListResponse, error)
List - List the object replication policies associated with the storage account. If the operation fails it returns the *ErrorResponse error type.
type ObjectReplicationPoliciesCreateOrUpdateOptions ¶
type ObjectReplicationPoliciesCreateOrUpdateOptions struct { }
ObjectReplicationPoliciesCreateOrUpdateOptions contains the optional parameters for the ObjectReplicationPolicies.CreateOrUpdate method.
type ObjectReplicationPoliciesCreateOrUpdateResponse ¶
type ObjectReplicationPoliciesCreateOrUpdateResponse struct { ObjectReplicationPoliciesCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ObjectReplicationPoliciesCreateOrUpdateResponse contains the response from method ObjectReplicationPolicies.CreateOrUpdate.
type ObjectReplicationPoliciesCreateOrUpdateResult ¶
type ObjectReplicationPoliciesCreateOrUpdateResult struct {
ObjectReplicationPolicy
}
ObjectReplicationPoliciesCreateOrUpdateResult contains the result from method ObjectReplicationPolicies.CreateOrUpdate.
type ObjectReplicationPoliciesDeleteOptions ¶
type ObjectReplicationPoliciesDeleteOptions struct { }
ObjectReplicationPoliciesDeleteOptions contains the optional parameters for the ObjectReplicationPolicies.Delete method.
type ObjectReplicationPoliciesDeleteResponse ¶
type ObjectReplicationPoliciesDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ObjectReplicationPoliciesDeleteResponse contains the response from method ObjectReplicationPolicies.Delete.
type ObjectReplicationPoliciesGetOptions ¶
type ObjectReplicationPoliciesGetOptions struct { }
ObjectReplicationPoliciesGetOptions contains the optional parameters for the ObjectReplicationPolicies.Get method.
type ObjectReplicationPoliciesGetResponse ¶
type ObjectReplicationPoliciesGetResponse struct { ObjectReplicationPoliciesGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ObjectReplicationPoliciesGetResponse contains the response from method ObjectReplicationPolicies.Get.
type ObjectReplicationPoliciesGetResult ¶
type ObjectReplicationPoliciesGetResult struct {
ObjectReplicationPolicy
}
ObjectReplicationPoliciesGetResult contains the result from method ObjectReplicationPolicies.Get.
type ObjectReplicationPoliciesListOptions ¶
type ObjectReplicationPoliciesListOptions struct { }
ObjectReplicationPoliciesListOptions contains the optional parameters for the ObjectReplicationPolicies.List method.
type ObjectReplicationPoliciesListResponse ¶
type ObjectReplicationPoliciesListResponse struct { ObjectReplicationPoliciesListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ObjectReplicationPoliciesListResponse contains the response from method ObjectReplicationPolicies.List.
type ObjectReplicationPoliciesListResult ¶
type ObjectReplicationPoliciesListResult struct {
ObjectReplicationPolicies
}
ObjectReplicationPoliciesListResult contains the result from method ObjectReplicationPolicies.List.
type ObjectReplicationPolicy ¶
type ObjectReplicationPolicy struct { Resource // Returns the Storage Account Object Replication Policy. Properties *ObjectReplicationPolicyProperties `json:"properties,omitempty"` }
ObjectReplicationPolicy - The replication policy between two storage accounts. Multiple rules can be defined in one policy.
func (ObjectReplicationPolicy) MarshalJSON ¶
func (o ObjectReplicationPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicy.
type ObjectReplicationPolicyFilter ¶
type ObjectReplicationPolicyFilter struct { // Blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z MinCreationTime *string `json:"minCreationTime,omitempty"` // Optional. Filters the results to replicate only blobs whose names begin with the specified prefix. PrefixMatch []*string `json:"prefixMatch,omitempty"` }
ObjectReplicationPolicyFilter - Filters limit replication to a subset of blobs within the storage account. A logical OR is performed on values in the filter. If multiple filters are defined, a logical AND is performed on all filters.
func (ObjectReplicationPolicyFilter) MarshalJSON ¶
func (o ObjectReplicationPolicyFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyFilter.
type ObjectReplicationPolicyProperties ¶
type ObjectReplicationPolicyProperties struct { // REQUIRED; Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false. DestinationAccount *string `json:"destinationAccount,omitempty"` // REQUIRED; Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false. SourceAccount *string `json:"sourceAccount,omitempty"` // The storage account object replication rules. Rules []*ObjectReplicationPolicyRule `json:"rules,omitempty"` // READ-ONLY; Indicates when the policy is enabled on the source account. EnabledTime *time.Time `json:"enabledTime,omitempty" azure:"ro"` // READ-ONLY; A unique id for object replication policy. PolicyID *string `json:"policyId,omitempty" azure:"ro"` }
ObjectReplicationPolicyProperties - The Storage Account ObjectReplicationPolicy properties.
func (ObjectReplicationPolicyProperties) MarshalJSON ¶
func (o ObjectReplicationPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyProperties.
func (*ObjectReplicationPolicyProperties) UnmarshalJSON ¶
func (o *ObjectReplicationPolicyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyProperties.
type ObjectReplicationPolicyRule ¶
type ObjectReplicationPolicyRule struct { // REQUIRED; Required. Destination container name. DestinationContainer *string `json:"destinationContainer,omitempty"` // REQUIRED; Required. Source container name. SourceContainer *string `json:"sourceContainer,omitempty"` // Optional. An object that defines the filter set. Filters *ObjectReplicationPolicyFilter `json:"filters,omitempty"` // Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account. RuleID *string `json:"ruleId,omitempty"` }
ObjectReplicationPolicyRule - The replication policy rule between two containers.
type ObjectType ¶
type ObjectType string
ObjectType - This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
const ( ObjectTypeBlob ObjectType = "Blob" ObjectTypeContainer ObjectType = "Container" )
func PossibleObjectTypeValues ¶
func PossibleObjectTypeValues() []ObjectType
PossibleObjectTypeValues returns the possible values for the ObjectType const type.
func (ObjectType) ToPtr ¶
func (c ObjectType) ToPtr() *ObjectType
ToPtr returns a *ObjectType pointing to the current value.
type Operation ¶
type Operation struct { // Display metadata associated with the operation. Display *OperationDisplay `json:"display,omitempty"` // Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Properties of operation, include metric specifications. OperationProperties *OperationProperties `json:"properties,omitempty"` // The origin of operations. Origin *string `json:"origin,omitempty"` }
Operation - Storage REST API operation definition.
type OperationDisplay ¶
type OperationDisplay struct { // Description of the operation. Description *string `json:"description,omitempty"` // Type of operation: get, read, delete, etc. Operation *string `json:"operation,omitempty"` // Service provider: Microsoft Storage. Provider *string `json:"provider,omitempty"` // Resource on which the operation is performed etc. Resource *string `json:"resource,omitempty"` }
OperationDisplay - Display metadata associated with the operation.
type OperationListResult ¶
type OperationListResult struct { // List of Storage operations supported by the Storage resource provider. Value []*Operation `json:"value,omitempty"` }
OperationListResult - Result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
type OperationProperties ¶
type OperationProperties struct { // One property of operation, include metric specifications. ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` }
OperationProperties - Properties of operation, include metric specifications.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient
NewOperationsClient creates a new instance of OperationsClient with the specified values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(ctx context.Context, options *OperationsListOptions) (OperationsListResponse, error)
List - Lists all of the available Storage Rest API operations. If the operation fails it returns a generic error.
type OperationsListOptions ¶
type OperationsListOptions struct { }
OperationsListOptions contains the optional parameters for the Operations.List method.
type OperationsListResponse ¶
type OperationsListResponse struct { OperationsListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
OperationsListResponse contains the response from method Operations.List.
type OperationsListResult ¶
type OperationsListResult struct {
OperationListResult
}
OperationsListResult contains the result from method Operations.List.
type Permissions ¶
type Permissions string
Permissions - The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).
const ( PermissionsA Permissions = "a" PermissionsC Permissions = "c" PermissionsD Permissions = "d" PermissionsL Permissions = "l" PermissionsP Permissions = "p" PermissionsR Permissions = "r" PermissionsU Permissions = "u" PermissionsW Permissions = "w" )
func PossiblePermissionsValues ¶
func PossiblePermissionsValues() []Permissions
PossiblePermissionsValues returns the possible values for the Permissions const type.
func (Permissions) ToPtr ¶
func (c Permissions) ToPtr() *Permissions
ToPtr returns a *Permissions pointing to the current value.
type PrivateEndpoint ¶
type PrivateEndpoint struct { // READ-ONLY; The ARM identifier for Private Endpoint ID *string `json:"id,omitempty" azure:"ro"` }
PrivateEndpoint - The Private Endpoint resource.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { Resource // Resource properties. Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` }
PrivateEndpointConnection - The Private Endpoint Connection resource.
func (PrivateEndpointConnection) MarshalJSON ¶
func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.
type PrivateEndpointConnectionListResult ¶
type PrivateEndpointConnectionListResult struct { // Array of private endpoint connections Value []*PrivateEndpointConnection `json:"value,omitempty"` }
PrivateEndpointConnectionListResult - List of private endpoint connection associated with the specified storage account
func (PrivateEndpointConnectionListResult) MarshalJSON ¶
func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { // REQUIRED; A collection of information about the state of the connection between service consumer and provider. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` // The resource of private end point. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` // READ-ONLY; The provisioning state of the private endpoint connection resource. ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties.
type PrivateEndpointConnectionProvisioningState ¶
type PrivateEndpointConnectionProvisioningState string
PrivateEndpointConnectionProvisioningState - The current provisioning state.
const ( PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func PossiblePrivateEndpointConnectionProvisioningStateValues ¶
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState
PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
func (PrivateEndpointConnectionProvisioningState) ToPtr ¶
func (c PrivateEndpointConnectionProvisioningState) ToPtr() *PrivateEndpointConnectionProvisioningState
ToPtr returns a *PrivateEndpointConnectionProvisioningState pointing to the current value.
type PrivateEndpointConnectionsClient ¶
type PrivateEndpointConnectionsClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group. Don't use this type directly, use NewPrivateEndpointConnectionsClient() instead.
func NewPrivateEndpointConnectionsClient ¶
func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values.
func (*PrivateEndpointConnectionsClient) Delete ¶
func (client *PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsDeleteOptions) (PrivateEndpointConnectionsDeleteResponse, error)
Delete - Deletes the specified private endpoint connection associated with the storage account. If the operation fails it returns the *ErrorResponse error type.
func (*PrivateEndpointConnectionsClient) Get ¶
func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsGetOptions) (PrivateEndpointConnectionsGetResponse, error)
Get - Gets the specified private endpoint connection associated with the storage account. If the operation fails it returns the *ErrorResponse error type.
func (*PrivateEndpointConnectionsClient) List ¶
func (client *PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, accountName string, options *PrivateEndpointConnectionsListOptions) (PrivateEndpointConnectionsListResponse, error)
List - List all the private endpoint connections associated with the storage account. If the operation fails it returns a generic error.
func (*PrivateEndpointConnectionsClient) Put ¶
func (client *PrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsPutOptions) (PrivateEndpointConnectionsPutResponse, error)
Put - Update the state of specified private endpoint connection associated with the storage account. If the operation fails it returns the *ErrorResponse error type.
type PrivateEndpointConnectionsDeleteOptions ¶
type PrivateEndpointConnectionsDeleteOptions struct { }
PrivateEndpointConnectionsDeleteOptions contains the optional parameters for the PrivateEndpointConnections.Delete method.
type PrivateEndpointConnectionsDeleteResponse ¶
type PrivateEndpointConnectionsDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
PrivateEndpointConnectionsDeleteResponse contains the response from method PrivateEndpointConnections.Delete.
type PrivateEndpointConnectionsGetOptions ¶
type PrivateEndpointConnectionsGetOptions struct { }
PrivateEndpointConnectionsGetOptions contains the optional parameters for the PrivateEndpointConnections.Get method.
type PrivateEndpointConnectionsGetResponse ¶
type PrivateEndpointConnectionsGetResponse struct { PrivateEndpointConnectionsGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
PrivateEndpointConnectionsGetResponse contains the response from method PrivateEndpointConnections.Get.
type PrivateEndpointConnectionsGetResult ¶
type PrivateEndpointConnectionsGetResult struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsGetResult contains the result from method PrivateEndpointConnections.Get.
type PrivateEndpointConnectionsListOptions ¶
type PrivateEndpointConnectionsListOptions struct { }
PrivateEndpointConnectionsListOptions contains the optional parameters for the PrivateEndpointConnections.List method.
type PrivateEndpointConnectionsListResponse ¶
type PrivateEndpointConnectionsListResponse struct { PrivateEndpointConnectionsListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
PrivateEndpointConnectionsListResponse contains the response from method PrivateEndpointConnections.List.
type PrivateEndpointConnectionsListResult ¶
type PrivateEndpointConnectionsListResult struct {
PrivateEndpointConnectionListResult
}
PrivateEndpointConnectionsListResult contains the result from method PrivateEndpointConnections.List.
type PrivateEndpointConnectionsPutOptions ¶
type PrivateEndpointConnectionsPutOptions struct { }
PrivateEndpointConnectionsPutOptions contains the optional parameters for the PrivateEndpointConnections.Put method.
type PrivateEndpointConnectionsPutResponse ¶
type PrivateEndpointConnectionsPutResponse struct { PrivateEndpointConnectionsPutResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
PrivateEndpointConnectionsPutResponse contains the response from method PrivateEndpointConnections.Put.
type PrivateEndpointConnectionsPutResult ¶
type PrivateEndpointConnectionsPutResult struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsPutResult contains the result from method PrivateEndpointConnections.Put.
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
const ( PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func PossiblePrivateEndpointServiceConnectionStatusValues ¶
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus
PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
func (PrivateEndpointServiceConnectionStatus) ToPtr ¶
func (c PrivateEndpointServiceConnectionStatus) ToPtr() *PrivateEndpointServiceConnectionStatus
ToPtr returns a *PrivateEndpointServiceConnectionStatus pointing to the current value.
type PrivateLinkResource ¶
type PrivateLinkResource struct { Resource // Resource properties. Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` }
PrivateLinkResource - A private link resource
func (PrivateLinkResource) MarshalJSON ¶
func (p PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.
type PrivateLinkResourceListResult ¶
type PrivateLinkResourceListResult struct { // Array of private link resources Value []*PrivateLinkResource `json:"value,omitempty"` }
PrivateLinkResourceListResult - A list of private link resources
func (PrivateLinkResourceListResult) MarshalJSON ¶
func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.
type PrivateLinkResourceProperties ¶
type PrivateLinkResourceProperties struct { // The private link resource Private link DNS zone name. RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` // READ-ONLY; The private link resource group id. GroupID *string `json:"groupId,omitempty" azure:"ro"` // READ-ONLY; The private link resource required member names. RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` }
PrivateLinkResourceProperties - Properties of a private link resource.
func (PrivateLinkResourceProperties) MarshalJSON ¶
func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
type PrivateLinkResourcesClient ¶
type PrivateLinkResourcesClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead.
func NewPrivateLinkResourcesClient ¶
func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values.
func (*PrivateLinkResourcesClient) ListByStorageAccount ¶
func (client *PrivateLinkResourcesClient) ListByStorageAccount(ctx context.Context, resourceGroupName string, accountName string, options *PrivateLinkResourcesListByStorageAccountOptions) (PrivateLinkResourcesListByStorageAccountResponse, error)
ListByStorageAccount - Gets the private link resources that need to be created for a storage account. If the operation fails it returns a generic error.
type PrivateLinkResourcesListByStorageAccountOptions ¶
type PrivateLinkResourcesListByStorageAccountOptions struct { }
PrivateLinkResourcesListByStorageAccountOptions contains the optional parameters for the PrivateLinkResources.ListByStorageAccount method.
type PrivateLinkResourcesListByStorageAccountResponse ¶
type PrivateLinkResourcesListByStorageAccountResponse struct { PrivateLinkResourcesListByStorageAccountResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
PrivateLinkResourcesListByStorageAccountResponse contains the response from method PrivateLinkResources.ListByStorageAccount.
type PrivateLinkResourcesListByStorageAccountResult ¶
type PrivateLinkResourcesListByStorageAccountResult struct {
PrivateLinkResourceListResult
}
PrivateLinkResourcesListByStorageAccountResult contains the result from method PrivateLinkResources.ListByStorageAccount.
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { // A message indicating if changes on the service provider require any updates on the consumer. ActionRequired *string `json:"actionRequired,omitempty"` // The reason for approval/rejection of the connection. Description *string `json:"description,omitempty"` // Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` }
PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
type ProtectedAppendWritesHistory ¶
type ProtectedAppendWritesHistory struct { // When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be // added and any existing blocks cannot be modified // or deleted. AllowProtectedAppendWritesAll *bool `json:"allowProtectedAppendWritesAll,omitempty"` // READ-ONLY; Returns the date and time the tag was added. Timestamp *time.Time `json:"timestamp,omitempty" azure:"ro"` }
ProtectedAppendWritesHistory - Protected append writes history setting for the blob container with Legal holds.
func (ProtectedAppendWritesHistory) MarshalJSON ¶
func (p ProtectedAppendWritesHistory) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedAppendWritesHistory.
func (*ProtectedAppendWritesHistory) UnmarshalJSON ¶
func (p *ProtectedAppendWritesHistory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedAppendWritesHistory.
type ProtocolSettings ¶
type ProtocolSettings struct { // Setting for SMB protocol Smb *SmbSetting `json:"smb,omitempty"` }
ProtocolSettings - Protocol settings for file service
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Gets the status of the storage account at the time the operation was called.
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
func (ProvisioningState) ToPtr ¶
func (c ProvisioningState) ToPtr() *ProvisioningState
ToPtr returns a *ProvisioningState pointing to the current value.
type ProxyResource ¶
type ProxyResource struct {
Resource
}
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type PublicAccess ¶
type PublicAccess string
PublicAccess - Specifies whether data in the container may be accessed publicly and the level of access.
const ( PublicAccessContainer PublicAccess = "Container" PublicAccessBlob PublicAccess = "Blob" PublicAccessNone PublicAccess = "None" )
func PossiblePublicAccessValues ¶
func PossiblePublicAccessValues() []PublicAccess
PossiblePublicAccessValues returns the possible values for the PublicAccess const type.
func (PublicAccess) ToPtr ¶
func (c PublicAccess) ToPtr() *PublicAccess
ToPtr returns a *PublicAccess pointing to the current value.
type PublicNetworkAccess ¶
type PublicNetworkAccess string
PublicNetworkAccess - Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.
const ( PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" )
func PossiblePublicNetworkAccessValues ¶
func PossiblePublicNetworkAccessValues() []PublicNetworkAccess
PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
func (PublicNetworkAccess) ToPtr ¶
func (c PublicNetworkAccess) ToPtr() *PublicNetworkAccess
ToPtr returns a *PublicNetworkAccess pointing to the current value.
type QueueClient ¶
type QueueClient struct {
// contains filtered or unexported fields
}
QueueClient contains the methods for the Queue group. Don't use this type directly, use NewQueueClient() instead.
func NewQueueClient ¶
func NewQueueClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *QueueClient
NewQueueClient creates a new instance of QueueClient with the specified values.
func (*QueueClient) Create ¶
func (client *QueueClient) Create(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue StorageQueue, options *QueueCreateOptions) (QueueCreateResponse, error)
Create - Creates a new queue with the specified queue name, under the specified account. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*QueueClient) Delete ¶
func (client *QueueClient) Delete(ctx context.Context, resourceGroupName string, accountName string, queueName string, options *QueueDeleteOptions) (QueueDeleteResponse, error)
Delete - Deletes the queue with the specified queue name, under the specified account if it exists. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*QueueClient) Get ¶
func (client *QueueClient) Get(ctx context.Context, resourceGroupName string, accountName string, queueName string, options *QueueGetOptions) (QueueGetResponse, error)
Get - Gets the queue with the specified queue name, under the specified account if it exists. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*QueueClient) List ¶
func (client *QueueClient) List(resourceGroupName string, accountName string, options *QueueListOptions) *QueueListPager
List - Gets a list of all the queues under the specified storage account If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*QueueClient) Update ¶
func (client *QueueClient) Update(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue StorageQueue, options *QueueUpdateOptions) (QueueUpdateResponse, error)
Update - Creates a new queue with the specified queue name, under the specified account. If the operation fails it returns the *CloudErrorAutoGenerated error type.
type QueueCreateOptions ¶
type QueueCreateOptions struct { }
QueueCreateOptions contains the optional parameters for the Queue.Create method.
type QueueCreateResponse ¶
type QueueCreateResponse struct { QueueCreateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
QueueCreateResponse contains the response from method Queue.Create.
type QueueCreateResult ¶
type QueueCreateResult struct {
StorageQueue
}
QueueCreateResult contains the result from method Queue.Create.
type QueueDeleteOptions ¶
type QueueDeleteOptions struct { }
QueueDeleteOptions contains the optional parameters for the Queue.Delete method.
type QueueDeleteResponse ¶
type QueueDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
QueueDeleteResponse contains the response from method Queue.Delete.
type QueueGetOptions ¶
type QueueGetOptions struct { }
QueueGetOptions contains the optional parameters for the Queue.Get method.
type QueueGetResponse ¶
type QueueGetResponse struct { QueueGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
QueueGetResponse contains the response from method Queue.Get.
type QueueGetResult ¶
type QueueGetResult struct {
StorageQueue
}
QueueGetResult contains the result from method Queue.Get.
type QueueListOptions ¶
type QueueListOptions struct { // Optional, When specified, only the queues with a name starting with the given filter will be listed. Filter *string // Optional, a maximum number of queues that should be included in a list queue response Maxpagesize *string }
QueueListOptions contains the optional parameters for the Queue.List method.
type QueueListPager ¶
type QueueListPager struct {
// contains filtered or unexported fields
}
QueueListPager provides operations for iterating over paged responses.
func (*QueueListPager) Err ¶
func (p *QueueListPager) Err() error
Err returns the last error encountered while paging.
func (*QueueListPager) NextPage ¶
func (p *QueueListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*QueueListPager) PageResponse ¶
func (p *QueueListPager) PageResponse() QueueListResponse
PageResponse returns the current QueueListResponse page.
type QueueListResponse ¶
type QueueListResponse struct { QueueListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
QueueListResponse contains the response from method Queue.List.
type QueueListResult ¶
type QueueListResult struct {
ListQueueResource
}
QueueListResult contains the result from method Queue.List.
type QueueProperties ¶
type QueueProperties struct { // A name-value pair that represents queue metadata. Metadata map[string]*string `json:"metadata,omitempty"` // READ-ONLY; Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, // but could be higher. ApproximateMessageCount *int32 `json:"approximateMessageCount,omitempty" azure:"ro"` }
func (QueueProperties) MarshalJSON ¶
func (q QueueProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QueueProperties.
type QueueServiceProperties ¶
type QueueServiceProperties struct { Resource // The properties of a storage account’s Queue service. QueueServiceProperties *QueueServicePropertiesProperties `json:"properties,omitempty"` }
QueueServiceProperties - The properties of a storage account’s Queue service.
func (QueueServiceProperties) MarshalJSON ¶
func (q QueueServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QueueServiceProperties.
type QueueServicePropertiesProperties ¶
type QueueServicePropertiesProperties struct { // Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the // request body, all CORS rules will be deleted, and // CORS will be disabled for the Queue service. Cors *CorsRules `json:"cors,omitempty"` }
QueueServicePropertiesProperties - The properties of a storage account’s Queue service.
type QueueServicesClient ¶
type QueueServicesClient struct {
// contains filtered or unexported fields
}
QueueServicesClient contains the methods for the QueueServices group. Don't use this type directly, use NewQueueServicesClient() instead.
func NewQueueServicesClient ¶
func NewQueueServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *QueueServicesClient
NewQueueServicesClient creates a new instance of QueueServicesClient with the specified values.
func (*QueueServicesClient) GetServiceProperties ¶
func (client *QueueServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, options *QueueServicesGetServicePropertiesOptions) (QueueServicesGetServicePropertiesResponse, error)
GetServiceProperties - Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*QueueServicesClient) List ¶
func (client *QueueServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *QueueServicesListOptions) (QueueServicesListResponse, error)
List - List all queue services for the storage account If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*QueueServicesClient) SetServiceProperties ¶
func (client *QueueServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters QueueServiceProperties, options *QueueServicesSetServicePropertiesOptions) (QueueServicesSetServicePropertiesResponse, error)
SetServiceProperties - Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.
type QueueServicesGetServicePropertiesOptions ¶
type QueueServicesGetServicePropertiesOptions struct { }
QueueServicesGetServicePropertiesOptions contains the optional parameters for the QueueServices.GetServiceProperties method.
type QueueServicesGetServicePropertiesResponse ¶
type QueueServicesGetServicePropertiesResponse struct { QueueServicesGetServicePropertiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
QueueServicesGetServicePropertiesResponse contains the response from method QueueServices.GetServiceProperties.
type QueueServicesGetServicePropertiesResult ¶
type QueueServicesGetServicePropertiesResult struct {
QueueServiceProperties
}
QueueServicesGetServicePropertiesResult contains the result from method QueueServices.GetServiceProperties.
type QueueServicesListOptions ¶
type QueueServicesListOptions struct { }
QueueServicesListOptions contains the optional parameters for the QueueServices.List method.
type QueueServicesListResponse ¶
type QueueServicesListResponse struct { QueueServicesListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
QueueServicesListResponse contains the response from method QueueServices.List.
type QueueServicesListResult ¶
type QueueServicesListResult struct {
ListQueueServices
}
QueueServicesListResult contains the result from method QueueServices.List.
type QueueServicesSetServicePropertiesOptions ¶
type QueueServicesSetServicePropertiesOptions struct { }
QueueServicesSetServicePropertiesOptions contains the optional parameters for the QueueServices.SetServiceProperties method.
type QueueServicesSetServicePropertiesResponse ¶
type QueueServicesSetServicePropertiesResponse struct { QueueServicesSetServicePropertiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
QueueServicesSetServicePropertiesResponse contains the response from method QueueServices.SetServiceProperties.
type QueueServicesSetServicePropertiesResult ¶
type QueueServicesSetServicePropertiesResult struct {
QueueServiceProperties
}
QueueServicesSetServicePropertiesResult contains the result from method QueueServices.SetServiceProperties.
type QueueUpdateOptions ¶
type QueueUpdateOptions struct { }
QueueUpdateOptions contains the optional parameters for the Queue.Update method.
type QueueUpdateResponse ¶
type QueueUpdateResponse struct { QueueUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
QueueUpdateResponse contains the response from method Queue.Update.
type QueueUpdateResult ¶
type QueueUpdateResult struct {
StorageQueue
}
QueueUpdateResult contains the result from method Queue.Update.
type Reason ¶
type Reason string
Reason - Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.
func PossibleReasonValues ¶
func PossibleReasonValues() []Reason
PossibleReasonValues returns the possible values for the Reason const type.
type ReasonCode ¶
type ReasonCode string
ReasonCode - The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC.
const ( ReasonCodeNotAvailableForSubscription ReasonCode = "NotAvailableForSubscription" ReasonCodeQuotaID ReasonCode = "QuotaId" )
func PossibleReasonCodeValues ¶
func PossibleReasonCodeValues() []ReasonCode
PossibleReasonCodeValues returns the possible values for the ReasonCode const type.
func (ReasonCode) ToPtr ¶
func (c ReasonCode) ToPtr() *ReasonCode
ToPtr returns a *ReasonCode pointing to the current value.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
type ResourceAccessRule ¶
type ResourceAccessRule struct { // Resource Id ResourceID *string `json:"resourceId,omitempty"` // Tenant Id TenantID *string `json:"tenantId,omitempty"` }
ResourceAccessRule - Resource Access Rule.
type RestorePolicyProperties ¶
type RestorePolicyProperties struct { // REQUIRED; Blob restore is enabled if set to true. Enabled *bool `json:"enabled,omitempty"` // how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days. Days *int32 `json:"days,omitempty"` // READ-ONLY; Deprecated in favor of minRestoreTime property. LastEnabledTime *time.Time `json:"lastEnabledTime,omitempty" azure:"ro"` // READ-ONLY; Returns the minimum date and time that the restore can be started. MinRestoreTime *time.Time `json:"minRestoreTime,omitempty" azure:"ro"` }
RestorePolicyProperties - The blob service properties for blob restore policy
func (RestorePolicyProperties) MarshalJSON ¶
func (r RestorePolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RestorePolicyProperties.
func (*RestorePolicyProperties) UnmarshalJSON ¶
func (r *RestorePolicyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RestorePolicyProperties.
type Restriction ¶
type Restriction struct { // The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter // as the subscription does not belong to that // quota. The "NotAvailableForSubscription" is related to capacity at DC. ReasonCode *ReasonCode `json:"reasonCode,omitempty"` // READ-ONLY; The type of restrictions. As of now only possible value for this is location. Type *string `json:"type,omitempty" azure:"ro"` // READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. Values []*string `json:"values,omitempty" azure:"ro"` }
Restriction - The restriction because of which SKU cannot be used.
func (Restriction) MarshalJSON ¶
func (r Restriction) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Restriction.
type RootSquashType ¶
type RootSquashType string
RootSquashType - The property is for NFS share only. The default is NoRootSquash.
const ( RootSquashTypeAllSquash RootSquashType = "AllSquash" RootSquashTypeNoRootSquash RootSquashType = "NoRootSquash" RootSquashTypeRootSquash RootSquashType = "RootSquash" )
func PossibleRootSquashTypeValues ¶
func PossibleRootSquashTypeValues() []RootSquashType
PossibleRootSquashTypeValues returns the possible values for the RootSquashType const type.
func (RootSquashType) ToPtr ¶
func (c RootSquashType) ToPtr() *RootSquashType
ToPtr returns a *RootSquashType pointing to the current value.
type RoutingChoice ¶
type RoutingChoice string
RoutingChoice - Routing Choice defines the kind of network routing opted by the user.
const ( RoutingChoiceInternetRouting RoutingChoice = "InternetRouting" RoutingChoiceMicrosoftRouting RoutingChoice = "MicrosoftRouting" )
func PossibleRoutingChoiceValues ¶
func PossibleRoutingChoiceValues() []RoutingChoice
PossibleRoutingChoiceValues returns the possible values for the RoutingChoice const type.
func (RoutingChoice) ToPtr ¶
func (c RoutingChoice) ToPtr() *RoutingChoice
ToPtr returns a *RoutingChoice pointing to the current value.
type RoutingPreference ¶
type RoutingPreference struct { // A boolean flag which indicates whether internet routing storage endpoints are to be published PublishInternetEndpoints *bool `json:"publishInternetEndpoints,omitempty"` // A boolean flag which indicates whether microsoft routing storage endpoints are to be published PublishMicrosoftEndpoints *bool `json:"publishMicrosoftEndpoints,omitempty"` // Routing Choice defines the kind of network routing opted by the user. RoutingChoice *RoutingChoice `json:"routingChoice,omitempty"` }
RoutingPreference - Routing preference defines the type of network, either microsoft or internet routing to be used to deliver the user data, the default option is microsoft routing
type RuleType ¶
type RuleType string
RuleType - The valid value is Lifecycle
const (
RuleTypeLifecycle RuleType = "Lifecycle"
)
func PossibleRuleTypeValues ¶
func PossibleRuleTypeValues() []RuleType
PossibleRuleTypeValues returns the possible values for the RuleType const type.
type SKU ¶
type SKU struct { // REQUIRED; The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. Name *SKUName `json:"name,omitempty"` // READ-ONLY; The SKU tier. This is based on the SKU name. Tier *SKUTier `json:"tier,omitempty" azure:"ro"` }
SKU - The SKU of the storage account.
type SKUCapability ¶
type SKUCapability struct { // READ-ONLY; The name of capability, The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; A string value to indicate states of given capability. Possibly 'true' or 'false'. Value *string `json:"value,omitempty" azure:"ro"` }
SKUCapability - The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc.
type SKUInformation ¶
type SKUInformation struct { // REQUIRED; The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. Name *SKUName `json:"name,omitempty"` // The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. Restrictions []*Restriction `json:"restrictions,omitempty"` // READ-ONLY; The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. Capabilities []*SKUCapability `json:"capabilities,omitempty" azure:"ro"` // READ-ONLY; Indicates the type of storage account. Kind *Kind `json:"kind,omitempty" azure:"ro"` // READ-ONLY; The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast // Asia, etc.). Locations []*string `json:"locations,omitempty" azure:"ro"` // READ-ONLY; The type of the resource, usually it is 'storageAccounts'. ResourceType *string `json:"resourceType,omitempty" azure:"ro"` // READ-ONLY; The SKU tier. This is based on the SKU name. Tier *SKUTier `json:"tier,omitempty" azure:"ro"` }
SKUInformation - Storage SKU and its properties
func (SKUInformation) MarshalJSON ¶
func (s SKUInformation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SKUInformation.
type SKUName ¶
type SKUName string
SKUName - The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType.
const ( SKUNamePremiumLRS SKUName = "Premium_LRS" SKUNamePremiumZRS SKUName = "Premium_ZRS" SKUNameStandardGRS SKUName = "Standard_GRS" SKUNameStandardGZRS SKUName = "Standard_GZRS" SKUNameStandardLRS SKUName = "Standard_LRS" SKUNameStandardRAGRS SKUName = "Standard_RAGRS" SKUNameStandardRAGZRS SKUName = "Standard_RAGZRS" SKUNameStandardZRS SKUName = "Standard_ZRS" )
func PossibleSKUNameValues ¶
func PossibleSKUNameValues() []SKUName
PossibleSKUNameValues returns the possible values for the SKUName const type.
type SKUTier ¶
type SKUTier string
SKUTier - The SKU tier. This is based on the SKU name.
func PossibleSKUTierValues ¶
func PossibleSKUTierValues() []SKUTier
PossibleSKUTierValues returns the possible values for the SKUTier const type.
type SKUsClient ¶
type SKUsClient struct {
// contains filtered or unexported fields
}
SKUsClient contains the methods for the SKUs group. Don't use this type directly, use NewSKUsClient() instead.
func NewSKUsClient ¶
func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *SKUsClient
NewSKUsClient creates a new instance of SKUsClient with the specified values.
func (*SKUsClient) List ¶
func (client *SKUsClient) List(ctx context.Context, options *SKUsListOptions) (SKUsListResponse, error)
List - Lists the available SKUs supported by Microsoft.Storage for given subscription. If the operation fails it returns a generic error.
type SKUsListOptions ¶
type SKUsListOptions struct { }
SKUsListOptions contains the optional parameters for the SKUs.List method.
type SKUsListResponse ¶
type SKUsListResponse struct { SKUsListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
SKUsListResponse contains the response from method SKUs.List.
type SKUsListResult ¶
type SKUsListResult struct {
StorageSKUListResult
}
SKUsListResult contains the result from method SKUs.List.
type SasPolicy ¶
type SasPolicy struct { // REQUIRED; The SAS expiration action. Can only be Log. ExpirationAction *ExpirationAction `json:"expirationAction,omitempty"` // REQUIRED; The SAS expiration period, DD.HH:MM:SS. SasExpirationPeriod *string `json:"sasExpirationPeriod,omitempty"` }
SasPolicy assigned to the storage account.
type Schedule ¶
type Schedule string
Schedule - This is a required field. This field is used to schedule an inventory formation.
func PossibleScheduleValues ¶
func PossibleScheduleValues() []Schedule
PossibleScheduleValues returns the possible values for the Schedule const type.
type ServiceSasParameters ¶
type ServiceSasParameters struct { // REQUIRED; The canonical path to the signed resource. CanonicalizedResource *string `json:"canonicalizedResource,omitempty"` // The response header override for cache control. CacheControl *string `json:"rscc,omitempty"` // The response header override for content disposition. ContentDisposition *string `json:"rscd,omitempty"` // The response header override for content encoding. ContentEncoding *string `json:"rsce,omitempty"` // The response header override for content language. ContentLanguage *string `json:"rscl,omitempty"` // The response header override for content type. ContentType *string `json:"rsct,omitempty"` // An IP address or a range of IP addresses from which to accept requests. IPAddressOrRange *string `json:"signedIp,omitempty"` // A unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. Identifier *string `json:"signedIdentifier,omitempty"` // The key to sign the account SAS token with. KeyToSign *string `json:"keyToSign,omitempty"` // The end of partition key. PartitionKeyEnd *string `json:"endPk,omitempty"` // The start of partition key. PartitionKeyStart *string `json:"startPk,omitempty"` // The signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process // (p). Permissions *Permissions `json:"signedPermission,omitempty"` // The protocol permitted for a request made with the account SAS. Protocols *HTTPProtocol `json:"signedProtocol,omitempty"` // The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Resource *SignedResource `json:"signedResource,omitempty"` // The end of row key. RowKeyEnd *string `json:"endRk,omitempty"` // The start of row key. RowKeyStart *string `json:"startRk,omitempty"` SharedAccessExpiryTime *time.Time `json:"signedExpiry,omitempty"` SharedAccessStartTime *time.Time `json:"signedStart,omitempty"` }
ServiceSasParameters - The parameters to list service SAS credentials of a specific resource.
func (ServiceSasParameters) MarshalJSON ¶
func (s ServiceSasParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceSasParameters.
func (*ServiceSasParameters) UnmarshalJSON ¶
func (s *ServiceSasParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSasParameters.
type ServiceSpecification ¶
type ServiceSpecification struct { // Metric specifications of operation. MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` }
ServiceSpecification - One property of operation, include metric specifications.
func (ServiceSpecification) MarshalJSON ¶
func (s ServiceSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceSpecification.
type Services ¶
type Services string
Services - The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f).
func PossibleServicesValues ¶
func PossibleServicesValues() []Services
PossibleServicesValues returns the possible values for the Services const type.
type ShareAccessTier ¶
type ShareAccessTier string
ShareAccessTier - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
const ()
func PossibleShareAccessTierValues ¶
func PossibleShareAccessTierValues() []ShareAccessTier
PossibleShareAccessTierValues returns the possible values for the ShareAccessTier const type.
func (ShareAccessTier) ToPtr ¶
func (c ShareAccessTier) ToPtr() *ShareAccessTier
ToPtr returns a *ShareAccessTier pointing to the current value.
type SignedIdentifier ¶
type SignedIdentifier struct { // Access policy AccessPolicy *AccessPolicy `json:"accessPolicy,omitempty"` // An unique identifier of the stored access policy. ID *string `json:"id,omitempty"` }
type SignedResource ¶
type SignedResource string
SignedResource - The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s).
const ( SignedResourceB SignedResource = "b" SignedResourceC SignedResource = "c" SignedResourceF SignedResource = "f" SignedResourceS SignedResource = "s" )
func PossibleSignedResourceValues ¶
func PossibleSignedResourceValues() []SignedResource
PossibleSignedResourceValues returns the possible values for the SignedResource const type.
func (SignedResource) ToPtr ¶
func (c SignedResource) ToPtr() *SignedResource
ToPtr returns a *SignedResource pointing to the current value.
type SignedResourceTypes ¶
type SignedResourceTypes string
SignedResourceTypes - The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.
const ( SignedResourceTypesC SignedResourceTypes = "c" SignedResourceTypesO SignedResourceTypes = "o" SignedResourceTypesS SignedResourceTypes = "s" )
func PossibleSignedResourceTypesValues ¶
func PossibleSignedResourceTypesValues() []SignedResourceTypes
PossibleSignedResourceTypesValues returns the possible values for the SignedResourceTypes const type.
func (SignedResourceTypes) ToPtr ¶
func (c SignedResourceTypes) ToPtr() *SignedResourceTypes
ToPtr returns a *SignedResourceTypes pointing to the current value.
type SmbSetting ¶
type SmbSetting struct { // SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. Should be passed as a string with delimiter ';'. AuthenticationMethods *string `json:"authenticationMethods,omitempty"` // SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. Should be passed as a string with delimiter ';'. ChannelEncryption *string `json:"channelEncryption,omitempty"` // Kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. Should be passed as a string with delimiter ';' KerberosTicketEncryption *string `json:"kerberosTicketEncryption,omitempty"` // Multichannel setting. Applies to Premium FileStorage only. Multichannel *Multichannel `json:"multichannel,omitempty"` // SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. Should be passed as a string with delimiter ';'. Versions *string `json:"versions,omitempty"` }
SmbSetting - Setting for SMB protocol
type State ¶
type State string
State - Gets the state of virtual network rule.
func PossibleStateValues ¶
func PossibleStateValues() []State
PossibleStateValues returns the possible values for the State const type.
type StorageAccount ¶
type StorageAccount struct { TrackedResource // The extendedLocation of the resource. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // The identity of the resource. Identity *Identity `json:"identity,omitempty"` // Properties of the storage account. Properties *StorageAccountProperties `json:"properties,omitempty"` // READ-ONLY; Gets the Kind. Kind *Kind `json:"kind,omitempty" azure:"ro"` // READ-ONLY; Gets the SKU. SKU *SKU `json:"sku,omitempty" azure:"ro"` }
StorageAccount - The storage account.
func (StorageAccount) MarshalJSON ¶
func (s StorageAccount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccount.
type StorageAccountCheckNameAvailabilityParameters ¶
type StorageAccountCheckNameAvailabilityParameters struct { // REQUIRED; The storage account name. Name *string `json:"name,omitempty"` // REQUIRED; The type of resource, Microsoft.Storage/storageAccounts Type *string `json:"type,omitempty"` }
StorageAccountCheckNameAvailabilityParameters - The parameters used to check the availability of the storage account name.
type StorageAccountCreateParameters ¶
type StorageAccountCreateParameters struct { // REQUIRED; Required. Indicates the type of storage account. Kind *Kind `json:"kind,omitempty"` // REQUIRED; Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East // US, Southeast Asia, etc.). The geo region of a resource // cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. Location *string `json:"location,omitempty"` // REQUIRED; Required. Gets or sets the SKU name. SKU *SKU `json:"sku,omitempty"` // Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created // in the specified extended location ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // The identity of the resource. Identity *Identity `json:"identity,omitempty"` // The parameters used to create the storage account. Properties *StorageAccountPropertiesCreateParameters `json:"properties,omitempty"` // Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). // A maximum of 15 tags can be provided for a // resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. Tags map[string]*string `json:"tags,omitempty"` }
StorageAccountCreateParameters - The parameters used when creating a storage account.
func (StorageAccountCreateParameters) MarshalJSON ¶
func (s StorageAccountCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccountCreateParameters.
type StorageAccountExpand ¶
type StorageAccountExpand string
const ( StorageAccountExpandGeoReplicationStats StorageAccountExpand = "geoReplicationStats" StorageAccountExpandBlobRestoreStatus StorageAccountExpand = "blobRestoreStatus" )
func PossibleStorageAccountExpandValues ¶
func PossibleStorageAccountExpandValues() []StorageAccountExpand
PossibleStorageAccountExpandValues returns the possible values for the StorageAccountExpand const type.
func (StorageAccountExpand) ToPtr ¶
func (c StorageAccountExpand) ToPtr() *StorageAccountExpand
ToPtr returns a *StorageAccountExpand pointing to the current value.
type StorageAccountInternetEndpoints ¶
type StorageAccountInternetEndpoints struct { // READ-ONLY; Gets the blob endpoint. Blob *string `json:"blob,omitempty" azure:"ro"` // READ-ONLY; Gets the dfs endpoint. Dfs *string `json:"dfs,omitempty" azure:"ro"` // READ-ONLY; Gets the file endpoint. File *string `json:"file,omitempty" azure:"ro"` // READ-ONLY; Gets the web endpoint. Web *string `json:"web,omitempty" azure:"ro"` }
StorageAccountInternetEndpoints - The URIs that are used to perform a retrieval of a public blob, file, web or dfs object via a internet routing endpoint.
type StorageAccountKey ¶
type StorageAccountKey struct { // READ-ONLY; Creation time of the key, in round trip date format. CreationTime *time.Time `json:"creationTime,omitempty" azure:"ro"` // READ-ONLY; Name of the key. KeyName *string `json:"keyName,omitempty" azure:"ro"` // READ-ONLY; Permissions for the key -- read-only or full permissions. Permissions *KeyPermission `json:"permissions,omitempty" azure:"ro"` // READ-ONLY; Base 64-encoded value of the key. Value *string `json:"value,omitempty" azure:"ro"` }
StorageAccountKey - An access key for the storage account.
func (StorageAccountKey) MarshalJSON ¶
func (s StorageAccountKey) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccountKey.
func (*StorageAccountKey) UnmarshalJSON ¶
func (s *StorageAccountKey) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccountKey.
type StorageAccountListKeysResult ¶
type StorageAccountListKeysResult struct { // READ-ONLY; Gets the list of storage account keys and their properties for the specified storage account. Keys []*StorageAccountKey `json:"keys,omitempty" azure:"ro"` }
StorageAccountListKeysResult - The response from the ListKeys operation.
func (StorageAccountListKeysResult) MarshalJSON ¶
func (s StorageAccountListKeysResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccountListKeysResult.
type StorageAccountListResult ¶
type StorageAccountListResult struct { // READ-ONLY; Request URL that can be used to query next page of storage accounts. Returned when total number of requested storage accounts exceed maximum // page size. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Gets the list of storage accounts and their properties. Value []*StorageAccount `json:"value,omitempty" azure:"ro"` }
StorageAccountListResult - The response from the List Storage Accounts operation.
func (StorageAccountListResult) MarshalJSON ¶
func (s StorageAccountListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccountListResult.
type StorageAccountMicrosoftEndpoints ¶
type StorageAccountMicrosoftEndpoints struct { // READ-ONLY; Gets the blob endpoint. Blob *string `json:"blob,omitempty" azure:"ro"` // READ-ONLY; Gets the dfs endpoint. Dfs *string `json:"dfs,omitempty" azure:"ro"` // READ-ONLY; Gets the file endpoint. File *string `json:"file,omitempty" azure:"ro"` // READ-ONLY; Gets the queue endpoint. Queue *string `json:"queue,omitempty" azure:"ro"` // READ-ONLY; Gets the table endpoint. Table *string `json:"table,omitempty" azure:"ro"` // READ-ONLY; Gets the web endpoint. Web *string `json:"web,omitempty" azure:"ro"` }
StorageAccountMicrosoftEndpoints - The URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object via a microsoft routing endpoint.
type StorageAccountProperties ¶
type StorageAccountProperties struct { // Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. AllowBlobPublicAccess *bool `json:"allowBlobPublicAccess,omitempty"` // Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. AllowCrossTenantReplication *bool `json:"allowCrossTenantReplication,omitempty"` // shared access signatures, must be authorized // with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. AllowSharedKeyAccess *bool `json:"allowSharedKeyAccess,omitempty"` // Provides the identity based authentication settings for Azure Files. AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"` // A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. DefaultToOAuthAuthentication *bool `json:"defaultToOAuthAuthentication,omitempty"` // Allows https traffic only to storage service if sets to true. EnableHTTPSTrafficOnly *bool `json:"supportsHttpsTrafficOnly,omitempty"` // NFS 3.0 protocol support enabled if set to true. EnableNfsV3 *bool `json:"isNfsV3Enabled,omitempty"` // The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the // containers in the account by default. ImmutableStorageWithVersioning *ImmutableStorageAccount `json:"immutableStorageWithVersioning,omitempty"` // Account HierarchicalNamespace enabled if sets to true. IsHnsEnabled *bool `json:"isHnsEnabled,omitempty"` LargeFileSharesState *LargeFileSharesState `json:"largeFileSharesState,omitempty"` // Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. MinimumTLSVersion *MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` // Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` // Maintains information about the network routing choice opted by the user for data transfer RoutingPreference *RoutingPreference `json:"routingPreference,omitempty"` // READ-ONLY; Required for storage accounts where kind = BlobStorage. The access tier used for billing. AccessTier *AccessTier `json:"accessTier,omitempty" azure:"ro"` // READ-ONLY; Blob restore status BlobRestoreStatus *BlobRestoreStatus `json:"blobRestoreStatus,omitempty" azure:"ro"` // READ-ONLY; Gets the creation date and time of the storage account in UTC. CreationTime *time.Time `json:"creationTime,omitempty" azure:"ro"` // READ-ONLY; Gets the custom domain the user assigned to this storage account. CustomDomain *CustomDomain `json:"customDomain,omitempty" azure:"ro"` // READ-ONLY; Gets the encryption settings on the account. If unspecified, the account is unencrypted. Encryption *Encryption `json:"encryption,omitempty" azure:"ro"` // READ-ONLY; If the failover is in progress, the value will be true, otherwise, it will be null. FailoverInProgress *bool `json:"failoverInProgress,omitempty" azure:"ro"` // READ-ONLY; Geo Replication Stats GeoReplicationStats *GeoReplicationStats `json:"geoReplicationStats,omitempty" azure:"ro"` // READ-ONLY; Storage account keys creation time. KeyCreationTime *KeyCreationTime `json:"keyCreationTime,omitempty" azure:"ro"` // READ-ONLY; KeyPolicy assigned to the storage account. KeyPolicy *KeyPolicy `json:"keyPolicy,omitempty" azure:"ro"` // READ-ONLY; Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element // is not returned if there has never been a failover // instance. Only available if the accountType is StandardGRS or StandardRAGRS. LastGeoFailoverTime *time.Time `json:"lastGeoFailoverTime,omitempty" azure:"ro"` // READ-ONLY; Network rule set NetworkRuleSet *NetworkRuleSet `json:"networkAcls,omitempty" azure:"ro"` // READ-ONLY; Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that StandardZRS and PremiumLRS accounts // only return the blob endpoint. PrimaryEndpoints *Endpoints `json:"primaryEndpoints,omitempty" azure:"ro"` // READ-ONLY; Gets the location of the primary data center for the storage account. PrimaryLocation *string `json:"primaryLocation,omitempty" azure:"ro"` // READ-ONLY; List of private endpoint connection associated with the specified storage account PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty" azure:"ro"` // READ-ONLY; Gets the status of the storage account at the time the operation was called. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; SasPolicy assigned to the storage account. SasPolicy *SasPolicy `json:"sasPolicy,omitempty" azure:"ro"` // READ-ONLY; Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. // Only available if the SKU name is Standard_RAGRS. SecondaryEndpoints *Endpoints `json:"secondaryEndpoints,omitempty" azure:"ro"` // READ-ONLY; Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. SecondaryLocation *string `json:"secondaryLocation,omitempty" azure:"ro"` // READ-ONLY; Gets the status indicating whether the primary location of the storage account is available or unavailable. StatusOfPrimary *AccountStatus `json:"statusOfPrimary,omitempty" azure:"ro"` // READ-ONLY; Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name // is StandardGRS or StandardRAGRS. StatusOfSecondary *AccountStatus `json:"statusOfSecondary,omitempty" azure:"ro"` }
StorageAccountProperties - Properties of the storage account.
func (StorageAccountProperties) MarshalJSON ¶
func (s StorageAccountProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccountProperties.
func (*StorageAccountProperties) UnmarshalJSON ¶
func (s *StorageAccountProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccountProperties.
type StorageAccountPropertiesCreateParameters ¶
type StorageAccountPropertiesCreateParameters struct { // Required for storage accounts where kind = BlobStorage. The access tier used for billing. AccessTier *AccessTier `json:"accessTier,omitempty"` // Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. AllowBlobPublicAccess *bool `json:"allowBlobPublicAccess,omitempty"` // Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. AllowCrossTenantReplication *bool `json:"allowCrossTenantReplication,omitempty"` // shared access signatures, must be authorized // with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. AllowSharedKeyAccess *bool `json:"allowSharedKeyAccess,omitempty"` // Provides the identity based authentication settings for Azure Files. AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"` // User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear // the existing custom domain, use an empty string // for the custom domain name property. CustomDomain *CustomDomain `json:"customDomain,omitempty"` // A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. DefaultToOAuthAuthentication *bool `json:"defaultToOAuthAuthentication,omitempty"` // Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01. EnableHTTPSTrafficOnly *bool `json:"supportsHttpsTrafficOnly,omitempty"` // NFS 3.0 protocol support enabled if set to true. EnableNfsV3 *bool `json:"isNfsV3Enabled,omitempty"` // Not applicable. Azure Storage encryption is enabled for all storage accounts and cannot be disabled. Encryption *Encryption `json:"encryption,omitempty"` // The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the // new containers in the account by default. ImmutableStorageWithVersioning *ImmutableStorageAccount `json:"immutableStorageWithVersioning,omitempty"` // Account HierarchicalNamespace enabled if sets to true. IsHnsEnabled *bool `json:"isHnsEnabled,omitempty"` // KeyPolicy assigned to the storage account. KeyPolicy *KeyPolicy `json:"keyPolicy,omitempty"` LargeFileSharesState *LargeFileSharesState `json:"largeFileSharesState,omitempty"` // Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. MinimumTLSVersion *MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` // Network rule set NetworkRuleSet *NetworkRuleSet `json:"networkAcls,omitempty"` // Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` // Maintains information about the network routing choice opted by the user for data transfer RoutingPreference *RoutingPreference `json:"routingPreference,omitempty"` // SasPolicy assigned to the storage account. SasPolicy *SasPolicy `json:"sasPolicy,omitempty"` }
StorageAccountPropertiesCreateParameters - The parameters used to create the storage account.
type StorageAccountPropertiesUpdateParameters ¶
type StorageAccountPropertiesUpdateParameters struct { // Required for storage accounts where kind = BlobStorage. The access tier used for billing. AccessTier *AccessTier `json:"accessTier,omitempty"` // Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. AllowBlobPublicAccess *bool `json:"allowBlobPublicAccess,omitempty"` // Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. AllowCrossTenantReplication *bool `json:"allowCrossTenantReplication,omitempty"` // shared access signatures, must be authorized // with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. AllowSharedKeyAccess *bool `json:"allowSharedKeyAccess,omitempty"` // Provides the identity based authentication settings for Azure Files. AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"` // Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this // time. To clear the existing custom domain, use an // empty string for the custom domain name property. CustomDomain *CustomDomain `json:"customDomain,omitempty"` // A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. DefaultToOAuthAuthentication *bool `json:"defaultToOAuthAuthentication,omitempty"` // Allows https traffic only to storage service if sets to true. EnableHTTPSTrafficOnly *bool `json:"supportsHttpsTrafficOnly,omitempty"` // Provides the encryption settings on the account. The default setting is unencrypted. Encryption *Encryption `json:"encryption,omitempty"` // The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the // containers in the account by default. ImmutableStorageWithVersioning *ImmutableStorageAccount `json:"immutableStorageWithVersioning,omitempty"` // KeyPolicy assigned to the storage account. KeyPolicy *KeyPolicy `json:"keyPolicy,omitempty"` LargeFileSharesState *LargeFileSharesState `json:"largeFileSharesState,omitempty"` // Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. MinimumTLSVersion *MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` // Network rule set NetworkRuleSet *NetworkRuleSet `json:"networkAcls,omitempty"` // Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` // Maintains information about the network routing choice opted by the user for data transfer RoutingPreference *RoutingPreference `json:"routingPreference,omitempty"` // SasPolicy assigned to the storage account. SasPolicy *SasPolicy `json:"sasPolicy,omitempty"` }
StorageAccountPropertiesUpdateParameters - The parameters used when updating a storage account.
type StorageAccountRegenerateKeyParameters ¶
type StorageAccountRegenerateKeyParameters struct { // REQUIRED; The name of storage keys that want to be regenerated, possible values are key1, key2, kerb1, kerb2. KeyName *string `json:"keyName,omitempty"` }
StorageAccountRegenerateKeyParameters - The parameters used to regenerate the storage account key.
type StorageAccountUpdateParameters ¶
type StorageAccountUpdateParameters struct { // The identity of the resource. Identity *Identity `json:"identity,omitempty"` // Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Kind *Kind `json:"kind,omitempty"` // The parameters used when updating a storage account. Properties *StorageAccountPropertiesUpdateParameters `json:"properties,omitempty"` // Gets or sets the SKU name. Note that the SKU name cannot be updated to StandardZRS, PremiumLRS or Premium_ZRS, nor can accounts of those SKU names be // updated to any other value. SKU *SKU `json:"sku,omitempty"` // Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). // A maximum of 15 tags can be provided for a // resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. Tags map[string]*string `json:"tags,omitempty"` }
StorageAccountUpdateParameters - The parameters that can be provided when updating the storage account properties.
func (StorageAccountUpdateParameters) MarshalJSON ¶
func (s StorageAccountUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccountUpdateParameters.
type StorageAccountsAbortHierarchicalNamespaceMigrationPoller ¶
type StorageAccountsAbortHierarchicalNamespaceMigrationPoller struct {
// contains filtered or unexported fields
}
StorageAccountsAbortHierarchicalNamespaceMigrationPoller provides polling facilities until the operation reaches a terminal state.
func (*StorageAccountsAbortHierarchicalNamespaceMigrationPoller) Done ¶
func (p *StorageAccountsAbortHierarchicalNamespaceMigrationPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*StorageAccountsAbortHierarchicalNamespaceMigrationPoller) FinalResponse ¶
func (p *StorageAccountsAbortHierarchicalNamespaceMigrationPoller) FinalResponse(ctx context.Context) (StorageAccountsAbortHierarchicalNamespaceMigrationResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final StorageAccountsAbortHierarchicalNamespaceMigrationResponse will be returned.
func (*StorageAccountsAbortHierarchicalNamespaceMigrationPoller) Poll ¶
func (p *StorageAccountsAbortHierarchicalNamespaceMigrationPoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*StorageAccountsAbortHierarchicalNamespaceMigrationPoller) ResumeToken ¶
func (p *StorageAccountsAbortHierarchicalNamespaceMigrationPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse ¶
type StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse struct { // Poller contains an initialized poller. Poller *StorageAccountsAbortHierarchicalNamespaceMigrationPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse contains the response from method StorageAccounts.AbortHierarchicalNamespaceMigration.
func (StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse) PollUntilDone ¶
func (l StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (StorageAccountsAbortHierarchicalNamespaceMigrationResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse) Resume ¶
func (l *StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse) Resume(ctx context.Context, client *StorageAccountsClient, token string) error
Resume rehydrates a StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse from the provided client and resume token.
type StorageAccountsAbortHierarchicalNamespaceMigrationResponse ¶
type StorageAccountsAbortHierarchicalNamespaceMigrationResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsAbortHierarchicalNamespaceMigrationResponse contains the response from method StorageAccounts.AbortHierarchicalNamespaceMigration.
type StorageAccountsBeginAbortHierarchicalNamespaceMigrationOptions ¶
type StorageAccountsBeginAbortHierarchicalNamespaceMigrationOptions struct { }
StorageAccountsBeginAbortHierarchicalNamespaceMigrationOptions contains the optional parameters for the StorageAccounts.BeginAbortHierarchicalNamespaceMigration method.
type StorageAccountsBeginCreateOptions ¶
type StorageAccountsBeginCreateOptions struct { }
StorageAccountsBeginCreateOptions contains the optional parameters for the StorageAccounts.BeginCreate method.
type StorageAccountsBeginFailoverOptions ¶
type StorageAccountsBeginFailoverOptions struct { }
StorageAccountsBeginFailoverOptions contains the optional parameters for the StorageAccounts.BeginFailover method.
type StorageAccountsBeginHierarchicalNamespaceMigrationOptions ¶
type StorageAccountsBeginHierarchicalNamespaceMigrationOptions struct { }
StorageAccountsBeginHierarchicalNamespaceMigrationOptions contains the optional parameters for the StorageAccounts.BeginHierarchicalNamespaceMigration method.
type StorageAccountsBeginRestoreBlobRangesOptions ¶
type StorageAccountsBeginRestoreBlobRangesOptions struct { }
StorageAccountsBeginRestoreBlobRangesOptions contains the optional parameters for the StorageAccounts.BeginRestoreBlobRanges method.
type StorageAccountsCheckNameAvailabilityOptions ¶
type StorageAccountsCheckNameAvailabilityOptions struct { }
StorageAccountsCheckNameAvailabilityOptions contains the optional parameters for the StorageAccounts.CheckNameAvailability method.
type StorageAccountsCheckNameAvailabilityResponse ¶
type StorageAccountsCheckNameAvailabilityResponse struct { StorageAccountsCheckNameAvailabilityResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsCheckNameAvailabilityResponse contains the response from method StorageAccounts.CheckNameAvailability.
type StorageAccountsCheckNameAvailabilityResult ¶
type StorageAccountsCheckNameAvailabilityResult struct {
CheckNameAvailabilityResult
}
StorageAccountsCheckNameAvailabilityResult contains the result from method StorageAccounts.CheckNameAvailability.
type StorageAccountsClient ¶
type StorageAccountsClient struct {
// contains filtered or unexported fields
}
StorageAccountsClient contains the methods for the StorageAccounts group. Don't use this type directly, use NewStorageAccountsClient() instead.
func NewStorageAccountsClient ¶
func NewStorageAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *StorageAccountsClient
NewStorageAccountsClient creates a new instance of StorageAccountsClient with the specified values.
func (*StorageAccountsClient) BeginAbortHierarchicalNamespaceMigration ¶
func (client *StorageAccountsClient) BeginAbortHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, options *StorageAccountsBeginAbortHierarchicalNamespaceMigrationOptions) (StorageAccountsAbortHierarchicalNamespaceMigrationPollerResponse, error)
BeginAbortHierarchicalNamespaceMigration - Abort live Migration of storage account to enable Hns If the operation fails it returns the *ErrorResponse error type.
func (*StorageAccountsClient) BeginCreate ¶
func (client *StorageAccountsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, parameters StorageAccountCreateParameters, options *StorageAccountsBeginCreateOptions) (StorageAccountsCreatePollerResponse, error)
BeginCreate - Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account 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 a generic error.
Example ¶
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewStorageAccountsClient("<subscription ID>", cred, nil) poller, err := client.BeginCreate( context.Background(), "<resource group name>", "<storage account name>", armstorage.StorageAccountCreateParameters{ SKU: &armstorage.SKU{ Name: armstorage.SKUNameStandardLRS.ToPtr(), Tier: armstorage.SKUTierStandard.ToPtr(), }, Kind: armstorage.KindBlobStorage.ToPtr(), Location: to.StringPtr("<Azure location>"), Properties: &armstorage.StorageAccountPropertiesCreateParameters{ AccessTier: armstorage.AccessTierCool.ToPtr(), }, }, nil) if err != nil { log.Fatalf("failed to obtain a response: %v", err) } resp, err := poller.PollUntilDone(context.Background(), 30*time.Second) if err != nil { log.Fatalf("failed to create storage account: %v", err) } log.Printf("storage account ID: %v\n", *resp.StorageAccount.ID) }
Output:
func (*StorageAccountsClient) BeginFailover ¶
func (client *StorageAccountsClient) BeginFailover(ctx context.Context, resourceGroupName string, accountName string, options *StorageAccountsBeginFailoverOptions) (StorageAccountsFailoverPollerResponse, error)
BeginFailover - Failover request can be triggered for a storage account in case of availability issues. The failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover. If the operation fails it returns a generic error.
func (*StorageAccountsClient) BeginHierarchicalNamespaceMigration ¶
func (client *StorageAccountsClient) BeginHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, requestType string, options *StorageAccountsBeginHierarchicalNamespaceMigrationOptions) (StorageAccountsHierarchicalNamespaceMigrationPollerResponse, error)
BeginHierarchicalNamespaceMigration - Live Migration of storage account to enable Hns If the operation fails it returns the *ErrorResponse error type.
func (*StorageAccountsClient) BeginRestoreBlobRanges ¶
func (client *StorageAccountsClient) BeginRestoreBlobRanges(ctx context.Context, resourceGroupName string, accountName string, parameters BlobRestoreParameters, options *StorageAccountsBeginRestoreBlobRangesOptions) (StorageAccountsRestoreBlobRangesPollerResponse, error)
BeginRestoreBlobRanges - Restore blobs in the specified blob ranges If the operation fails it returns a generic error.
func (*StorageAccountsClient) CheckNameAvailability ¶
func (client *StorageAccountsClient) CheckNameAvailability(ctx context.Context, accountName StorageAccountCheckNameAvailabilityParameters, options *StorageAccountsCheckNameAvailabilityOptions) (StorageAccountsCheckNameAvailabilityResponse, error)
CheckNameAvailability - Checks that the storage account name is valid and is not already in use. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewStorageAccountsClient("<subscription ID>", cred, nil) resp, err := client.CheckNameAvailability( context.Background(), armstorage.StorageAccountCheckNameAvailabilityParameters{ Name: to.StringPtr("<storage account name>"), Type: to.StringPtr("Microsoft.Storage/storageAccounts"), }, nil) if err != nil { log.Fatalf("failed to delete account: %v", err) } log.Printf("name availability: %v", *resp.CheckNameAvailabilityResult.NameAvailable) }
Output:
func (*StorageAccountsClient) Delete ¶
func (client *StorageAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, options *StorageAccountsDeleteOptions) (StorageAccountsDeleteResponse, error)
Delete - Deletes a storage account in Microsoft Azure. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewStorageAccountsClient("<subscription ID>", cred, nil) _, err = client.Delete(context.Background(), "<resource group name>", "<storage account name>", nil) if err != nil { log.Fatalf("failed to delete account: %v", err) } }
Output:
func (*StorageAccountsClient) GetProperties ¶
func (client *StorageAccountsClient) GetProperties(ctx context.Context, resourceGroupName string, accountName string, options *StorageAccountsGetPropertiesOptions) (StorageAccountsGetPropertiesResponse, error)
GetProperties - Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewStorageAccountsClient("<subscription ID>", cred, nil) resp, err := client.GetProperties(context.Background(), "<resource group name>", "<storage account name>", nil) if err != nil { log.Fatalf("failed to delete account: %v", err) } log.Printf("storage account properties Access Tier: %v", *resp.StorageAccount.Properties.AccessTier) }
Output:
func (*StorageAccountsClient) List ¶
func (client *StorageAccountsClient) List(options *StorageAccountsListOptions) *StorageAccountsListPager
List - Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewStorageAccountsClient("<subscription ID>", cred, nil) pager := client.List(nil) for pager.NextPage(context.Background()) { resp := pager.PageResponse() if len(resp.StorageAccountListResult.Value) == 0 { log.Fatal("missing payload") } for _, val := range resp.StorageAccountListResult.Value { log.Printf("storage account: %v", *val.ID) } } if err := pager.Err(); err != nil { log.Fatal(err) } }
Output:
func (*StorageAccountsClient) ListAccountSAS ¶
func (client *StorageAccountsClient) ListAccountSAS(ctx context.Context, resourceGroupName string, accountName string, parameters AccountSasParameters, options *StorageAccountsListAccountSASOptions) (StorageAccountsListAccountSASResponse, error)
ListAccountSAS - List SAS credentials of a storage account. If the operation fails it returns a generic error.
func (*StorageAccountsClient) ListByResourceGroup ¶
func (client *StorageAccountsClient) ListByResourceGroup(resourceGroupName string, options *StorageAccountsListByResourceGroupOptions) *StorageAccountsListByResourceGroupPager
ListByResourceGroup - Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewStorageAccountsClient("<subscription ID>", cred, nil) pager := client.ListByResourceGroup("<resource group name>", nil) for pager.NextPage(context.Background()) { resp := pager.PageResponse() if len(resp.StorageAccountListResult.Value) == 0 { log.Fatal("missing payload") } for _, val := range resp.StorageAccountListResult.Value { log.Printf("storage account: %v", *val.ID) } } if err := pager.Err(); err != nil { log.Fatal(err) } }
Output:
func (*StorageAccountsClient) ListKeys ¶
func (client *StorageAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, options *StorageAccountsListKeysOptions) (StorageAccountsListKeysResponse, error)
ListKeys - Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewStorageAccountsClient("<subscription ID>", cred, nil) resp, err := client.ListKeys(context.Background(), "<resource group name>", "<storage account name>", nil) if err != nil { log.Fatalf("failed to delete account: %v", err) } for _, k := range resp.StorageAccountListKeysResult.Keys { log.Printf("account key: %v", *k.KeyName) } }
Output:
func (*StorageAccountsClient) ListServiceSAS ¶
func (client *StorageAccountsClient) ListServiceSAS(ctx context.Context, resourceGroupName string, accountName string, parameters ServiceSasParameters, options *StorageAccountsListServiceSASOptions) (StorageAccountsListServiceSASResponse, error)
ListServiceSAS - List service SAS credentials of a specific resource. If the operation fails it returns a generic error.
func (*StorageAccountsClient) RegenerateKey ¶
func (client *StorageAccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, regenerateKey StorageAccountRegenerateKeyParameters, options *StorageAccountsRegenerateKeyOptions) (StorageAccountsRegenerateKeyResponse, error)
RegenerateKey - Regenerates one of the access keys or Kerberos keys for the specified storage account. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewStorageAccountsClient("<subscription ID>", cred, nil) resp, err := client.RegenerateKey(context.Background(), "<resource group name>", "<storage account name>", armstorage.StorageAccountRegenerateKeyParameters{KeyName: to.StringPtr("<key name>")}, nil) if err != nil { log.Fatalf("failed to delete account: %v", err) } for _, k := range resp.StorageAccountListKeysResult.Keys { log.Printf("key: %v, value: %v", *k.KeyName, *k.Value) } }
Output:
func (*StorageAccountsClient) RevokeUserDelegationKeys ¶
func (client *StorageAccountsClient) RevokeUserDelegationKeys(ctx context.Context, resourceGroupName string, accountName string, options *StorageAccountsRevokeUserDelegationKeysOptions) (StorageAccountsRevokeUserDelegationKeysResponse, error)
RevokeUserDelegationKeys - Revoke user delegation keys. If the operation fails it returns a generic error.
func (*StorageAccountsClient) Update ¶
func (client *StorageAccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, parameters StorageAccountUpdateParameters, options *StorageAccountsUpdateOptions) (StorageAccountsUpdateResponse, error)
Update - The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewStorageAccountsClient("<subscription ID>", cred, nil) resp, err := client.Update( context.Background(), "<resource group name>", "<storage account name>", armstorage.StorageAccountUpdateParameters{ Tags: map[string]*string{ "who rocks": to.StringPtr("golang"), "where": to.StringPtr("on azure")}}, nil) if err != nil { log.Fatalf("failed to delete account: %v", err) } log.Printf("storage account ID: %v", *resp.StorageAccount.ID) }
Output:
type StorageAccountsCreatePoller ¶
type StorageAccountsCreatePoller struct {
// contains filtered or unexported fields
}
StorageAccountsCreatePoller provides polling facilities until the operation reaches a terminal state.
func (*StorageAccountsCreatePoller) Done ¶
func (p *StorageAccountsCreatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*StorageAccountsCreatePoller) FinalResponse ¶
func (p *StorageAccountsCreatePoller) FinalResponse(ctx context.Context) (StorageAccountsCreateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final StorageAccountsCreateResponse will be returned.
func (*StorageAccountsCreatePoller) Poll ¶
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*StorageAccountsCreatePoller) ResumeToken ¶
func (p *StorageAccountsCreatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type StorageAccountsCreatePollerResponse ¶
type StorageAccountsCreatePollerResponse struct { // Poller contains an initialized poller. Poller *StorageAccountsCreatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsCreatePollerResponse contains the response from method StorageAccounts.Create.
func (StorageAccountsCreatePollerResponse) PollUntilDone ¶
func (l StorageAccountsCreatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (StorageAccountsCreateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*StorageAccountsCreatePollerResponse) Resume ¶
func (l *StorageAccountsCreatePollerResponse) Resume(ctx context.Context, client *StorageAccountsClient, token string) error
Resume rehydrates a StorageAccountsCreatePollerResponse from the provided client and resume token.
type StorageAccountsCreateResponse ¶
type StorageAccountsCreateResponse struct { StorageAccountsCreateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsCreateResponse contains the response from method StorageAccounts.Create.
type StorageAccountsCreateResult ¶
type StorageAccountsCreateResult struct {
StorageAccount
}
StorageAccountsCreateResult contains the result from method StorageAccounts.Create.
type StorageAccountsDeleteOptions ¶
type StorageAccountsDeleteOptions struct { }
StorageAccountsDeleteOptions contains the optional parameters for the StorageAccounts.Delete method.
type StorageAccountsDeleteResponse ¶
type StorageAccountsDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsDeleteResponse contains the response from method StorageAccounts.Delete.
type StorageAccountsFailoverPoller ¶
type StorageAccountsFailoverPoller struct {
// contains filtered or unexported fields
}
StorageAccountsFailoverPoller provides polling facilities until the operation reaches a terminal state.
func (*StorageAccountsFailoverPoller) Done ¶
func (p *StorageAccountsFailoverPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*StorageAccountsFailoverPoller) FinalResponse ¶
func (p *StorageAccountsFailoverPoller) FinalResponse(ctx context.Context) (StorageAccountsFailoverResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final StorageAccountsFailoverResponse will be returned.
func (*StorageAccountsFailoverPoller) Poll ¶
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*StorageAccountsFailoverPoller) ResumeToken ¶
func (p *StorageAccountsFailoverPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type StorageAccountsFailoverPollerResponse ¶
type StorageAccountsFailoverPollerResponse struct { // Poller contains an initialized poller. Poller *StorageAccountsFailoverPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsFailoverPollerResponse contains the response from method StorageAccounts.Failover.
func (StorageAccountsFailoverPollerResponse) PollUntilDone ¶
func (l StorageAccountsFailoverPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (StorageAccountsFailoverResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*StorageAccountsFailoverPollerResponse) Resume ¶
func (l *StorageAccountsFailoverPollerResponse) Resume(ctx context.Context, client *StorageAccountsClient, token string) error
Resume rehydrates a StorageAccountsFailoverPollerResponse from the provided client and resume token.
type StorageAccountsFailoverResponse ¶
type StorageAccountsFailoverResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsFailoverResponse contains the response from method StorageAccounts.Failover.
type StorageAccountsGetPropertiesOptions ¶
type StorageAccountsGetPropertiesOptions struct { // May be used to expand the properties within account's properties. By default, data is not included when fetching properties. Currently we only support // geoReplicationStats and blobRestoreStatus. Expand *StorageAccountExpand }
StorageAccountsGetPropertiesOptions contains the optional parameters for the StorageAccounts.GetProperties method.
type StorageAccountsGetPropertiesResponse ¶
type StorageAccountsGetPropertiesResponse struct { StorageAccountsGetPropertiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsGetPropertiesResponse contains the response from method StorageAccounts.GetProperties.
type StorageAccountsGetPropertiesResult ¶
type StorageAccountsGetPropertiesResult struct {
StorageAccount
}
StorageAccountsGetPropertiesResult contains the result from method StorageAccounts.GetProperties.
type StorageAccountsHierarchicalNamespaceMigrationPoller ¶
type StorageAccountsHierarchicalNamespaceMigrationPoller struct {
// contains filtered or unexported fields
}
StorageAccountsHierarchicalNamespaceMigrationPoller provides polling facilities until the operation reaches a terminal state.
func (*StorageAccountsHierarchicalNamespaceMigrationPoller) Done ¶
func (p *StorageAccountsHierarchicalNamespaceMigrationPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*StorageAccountsHierarchicalNamespaceMigrationPoller) FinalResponse ¶
func (p *StorageAccountsHierarchicalNamespaceMigrationPoller) FinalResponse(ctx context.Context) (StorageAccountsHierarchicalNamespaceMigrationResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final StorageAccountsHierarchicalNamespaceMigrationResponse will be returned.
func (*StorageAccountsHierarchicalNamespaceMigrationPoller) Poll ¶
func (p *StorageAccountsHierarchicalNamespaceMigrationPoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*StorageAccountsHierarchicalNamespaceMigrationPoller) ResumeToken ¶
func (p *StorageAccountsHierarchicalNamespaceMigrationPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type StorageAccountsHierarchicalNamespaceMigrationPollerResponse ¶
type StorageAccountsHierarchicalNamespaceMigrationPollerResponse struct { // Poller contains an initialized poller. Poller *StorageAccountsHierarchicalNamespaceMigrationPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsHierarchicalNamespaceMigrationPollerResponse contains the response from method StorageAccounts.HierarchicalNamespaceMigration.
func (StorageAccountsHierarchicalNamespaceMigrationPollerResponse) PollUntilDone ¶
func (l StorageAccountsHierarchicalNamespaceMigrationPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (StorageAccountsHierarchicalNamespaceMigrationResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*StorageAccountsHierarchicalNamespaceMigrationPollerResponse) Resume ¶
func (l *StorageAccountsHierarchicalNamespaceMigrationPollerResponse) Resume(ctx context.Context, client *StorageAccountsClient, token string) error
Resume rehydrates a StorageAccountsHierarchicalNamespaceMigrationPollerResponse from the provided client and resume token.
type StorageAccountsHierarchicalNamespaceMigrationResponse ¶
type StorageAccountsHierarchicalNamespaceMigrationResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsHierarchicalNamespaceMigrationResponse contains the response from method StorageAccounts.HierarchicalNamespaceMigration.
type StorageAccountsListAccountSASOptions ¶
type StorageAccountsListAccountSASOptions struct { }
StorageAccountsListAccountSASOptions contains the optional parameters for the StorageAccounts.ListAccountSAS method.
type StorageAccountsListAccountSASResponse ¶
type StorageAccountsListAccountSASResponse struct { StorageAccountsListAccountSASResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsListAccountSASResponse contains the response from method StorageAccounts.ListAccountSAS.
type StorageAccountsListAccountSASResult ¶
type StorageAccountsListAccountSASResult struct {
ListAccountSasResponse
}
StorageAccountsListAccountSASResult contains the result from method StorageAccounts.ListAccountSAS.
type StorageAccountsListByResourceGroupOptions ¶
type StorageAccountsListByResourceGroupOptions struct { }
StorageAccountsListByResourceGroupOptions contains the optional parameters for the StorageAccounts.ListByResourceGroup method.
type StorageAccountsListByResourceGroupPager ¶
type StorageAccountsListByResourceGroupPager struct {
// contains filtered or unexported fields
}
StorageAccountsListByResourceGroupPager provides operations for iterating over paged responses.
func (*StorageAccountsListByResourceGroupPager) Err ¶
func (p *StorageAccountsListByResourceGroupPager) Err() error
Err returns the last error encountered while paging.
func (*StorageAccountsListByResourceGroupPager) NextPage ¶
func (p *StorageAccountsListByResourceGroupPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*StorageAccountsListByResourceGroupPager) PageResponse ¶
func (p *StorageAccountsListByResourceGroupPager) PageResponse() StorageAccountsListByResourceGroupResponse
PageResponse returns the current StorageAccountsListByResourceGroupResponse page.
type StorageAccountsListByResourceGroupResponse ¶
type StorageAccountsListByResourceGroupResponse struct { StorageAccountsListByResourceGroupResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsListByResourceGroupResponse contains the response from method StorageAccounts.ListByResourceGroup.
type StorageAccountsListByResourceGroupResult ¶
type StorageAccountsListByResourceGroupResult struct {
StorageAccountListResult
}
StorageAccountsListByResourceGroupResult contains the result from method StorageAccounts.ListByResourceGroup.
type StorageAccountsListKeysOptions ¶
type StorageAccountsListKeysOptions struct { // Specifies type of the key to be listed. Possible value is kerb. Expand *string }
StorageAccountsListKeysOptions contains the optional parameters for the StorageAccounts.ListKeys method.
type StorageAccountsListKeysResponse ¶
type StorageAccountsListKeysResponse struct { StorageAccountsListKeysResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsListKeysResponse contains the response from method StorageAccounts.ListKeys.
type StorageAccountsListKeysResult ¶
type StorageAccountsListKeysResult struct {
StorageAccountListKeysResult
}
StorageAccountsListKeysResult contains the result from method StorageAccounts.ListKeys.
type StorageAccountsListOptions ¶
type StorageAccountsListOptions struct { }
StorageAccountsListOptions contains the optional parameters for the StorageAccounts.List method.
type StorageAccountsListPager ¶
type StorageAccountsListPager struct {
// contains filtered or unexported fields
}
StorageAccountsListPager provides operations for iterating over paged responses.
func (*StorageAccountsListPager) Err ¶
func (p *StorageAccountsListPager) Err() error
Err returns the last error encountered while paging.
func (*StorageAccountsListPager) NextPage ¶
func (p *StorageAccountsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*StorageAccountsListPager) PageResponse ¶
func (p *StorageAccountsListPager) PageResponse() StorageAccountsListResponse
PageResponse returns the current StorageAccountsListResponse page.
type StorageAccountsListResponse ¶
type StorageAccountsListResponse struct { StorageAccountsListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsListResponse contains the response from method StorageAccounts.List.
type StorageAccountsListResult ¶
type StorageAccountsListResult struct {
StorageAccountListResult
}
StorageAccountsListResult contains the result from method StorageAccounts.List.
type StorageAccountsListServiceSASOptions ¶
type StorageAccountsListServiceSASOptions struct { }
StorageAccountsListServiceSASOptions contains the optional parameters for the StorageAccounts.ListServiceSAS method.
type StorageAccountsListServiceSASResponse ¶
type StorageAccountsListServiceSASResponse struct { StorageAccountsListServiceSASResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsListServiceSASResponse contains the response from method StorageAccounts.ListServiceSAS.
type StorageAccountsListServiceSASResult ¶
type StorageAccountsListServiceSASResult struct {
ListServiceSasResponse
}
StorageAccountsListServiceSASResult contains the result from method StorageAccounts.ListServiceSAS.
type StorageAccountsRegenerateKeyOptions ¶
type StorageAccountsRegenerateKeyOptions struct { }
StorageAccountsRegenerateKeyOptions contains the optional parameters for the StorageAccounts.RegenerateKey method.
type StorageAccountsRegenerateKeyResponse ¶
type StorageAccountsRegenerateKeyResponse struct { StorageAccountsRegenerateKeyResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsRegenerateKeyResponse contains the response from method StorageAccounts.RegenerateKey.
type StorageAccountsRegenerateKeyResult ¶
type StorageAccountsRegenerateKeyResult struct {
StorageAccountListKeysResult
}
StorageAccountsRegenerateKeyResult contains the result from method StorageAccounts.RegenerateKey.
type StorageAccountsRestoreBlobRangesPoller ¶
type StorageAccountsRestoreBlobRangesPoller struct {
// contains filtered or unexported fields
}
StorageAccountsRestoreBlobRangesPoller provides polling facilities until the operation reaches a terminal state.
func (*StorageAccountsRestoreBlobRangesPoller) Done ¶
func (p *StorageAccountsRestoreBlobRangesPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*StorageAccountsRestoreBlobRangesPoller) FinalResponse ¶
func (p *StorageAccountsRestoreBlobRangesPoller) FinalResponse(ctx context.Context) (StorageAccountsRestoreBlobRangesResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final StorageAccountsRestoreBlobRangesResponse will be returned.
func (*StorageAccountsRestoreBlobRangesPoller) Poll ¶
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*StorageAccountsRestoreBlobRangesPoller) ResumeToken ¶
func (p *StorageAccountsRestoreBlobRangesPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type StorageAccountsRestoreBlobRangesPollerResponse ¶
type StorageAccountsRestoreBlobRangesPollerResponse struct { // Poller contains an initialized poller. Poller *StorageAccountsRestoreBlobRangesPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsRestoreBlobRangesPollerResponse contains the response from method StorageAccounts.RestoreBlobRanges.
func (StorageAccountsRestoreBlobRangesPollerResponse) PollUntilDone ¶
func (l StorageAccountsRestoreBlobRangesPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (StorageAccountsRestoreBlobRangesResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*StorageAccountsRestoreBlobRangesPollerResponse) Resume ¶
func (l *StorageAccountsRestoreBlobRangesPollerResponse) Resume(ctx context.Context, client *StorageAccountsClient, token string) error
Resume rehydrates a StorageAccountsRestoreBlobRangesPollerResponse from the provided client and resume token.
type StorageAccountsRestoreBlobRangesResponse ¶
type StorageAccountsRestoreBlobRangesResponse struct { StorageAccountsRestoreBlobRangesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsRestoreBlobRangesResponse contains the response from method StorageAccounts.RestoreBlobRanges.
type StorageAccountsRestoreBlobRangesResult ¶
type StorageAccountsRestoreBlobRangesResult struct {
BlobRestoreStatus
}
StorageAccountsRestoreBlobRangesResult contains the result from method StorageAccounts.RestoreBlobRanges.
type StorageAccountsRevokeUserDelegationKeysOptions ¶
type StorageAccountsRevokeUserDelegationKeysOptions struct { }
StorageAccountsRevokeUserDelegationKeysOptions contains the optional parameters for the StorageAccounts.RevokeUserDelegationKeys method.
type StorageAccountsRevokeUserDelegationKeysResponse ¶
type StorageAccountsRevokeUserDelegationKeysResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsRevokeUserDelegationKeysResponse contains the response from method StorageAccounts.RevokeUserDelegationKeys.
type StorageAccountsUpdateOptions ¶
type StorageAccountsUpdateOptions struct { }
StorageAccountsUpdateOptions contains the optional parameters for the StorageAccounts.Update method.
type StorageAccountsUpdateResponse ¶
type StorageAccountsUpdateResponse struct { StorageAccountsUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
StorageAccountsUpdateResponse contains the response from method StorageAccounts.Update.
type StorageAccountsUpdateResult ¶
type StorageAccountsUpdateResult struct {
StorageAccount
}
StorageAccountsUpdateResult contains the result from method StorageAccounts.Update.
type StorageQueue ¶
type StorageQueue struct { Resource // Queue resource properties. QueueProperties *QueueProperties `json:"properties,omitempty"` }
func (StorageQueue) MarshalJSON ¶
func (s StorageQueue) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageQueue.
type StorageSKUListResult ¶
type StorageSKUListResult struct { // READ-ONLY; Get the list result of storage SKUs and their properties. Value []*SKUInformation `json:"value,omitempty" azure:"ro"` }
StorageSKUListResult - The response from the List Storage SKUs operation.
func (StorageSKUListResult) MarshalJSON ¶
func (s StorageSKUListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageSKUListResult.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type Table ¶
type Table struct { Resource // Table resource properties. TableProperties *TableProperties `json:"properties,omitempty"` }
Table - Properties of the table, including Id, resource name, resource type.
func (Table) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Table.
type TableClient ¶
type TableClient struct {
// contains filtered or unexported fields
}
TableClient contains the methods for the Table group. Don't use this type directly, use NewTableClient() instead.
func NewTableClient ¶
func NewTableClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *TableClient
NewTableClient creates a new instance of TableClient with the specified values.
func (*TableClient) Create ¶
func (client *TableClient) Create(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableCreateOptions) (TableCreateResponse, error)
Create - Creates a new table with the specified table name, under the specified account. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*TableClient) Delete ¶
func (client *TableClient) Delete(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableDeleteOptions) (TableDeleteResponse, error)
Delete - Deletes the table with the specified table name, under the specified account if it exists. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*TableClient) Get ¶
func (client *TableClient) Get(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableGetOptions) (TableGetResponse, error)
Get - Gets the table with the specified table name, under the specified account if it exists. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*TableClient) List ¶
func (client *TableClient) List(resourceGroupName string, accountName string, options *TableListOptions) *TableListPager
List - Gets a list of all the tables under the specified storage account If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*TableClient) Update ¶
func (client *TableClient) Update(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableUpdateOptions) (TableUpdateResponse, error)
Update - Creates a new table with the specified table name, under the specified account. If the operation fails it returns the *CloudErrorAutoGenerated error type.
type TableCreateOptions ¶
type TableCreateOptions struct { }
TableCreateOptions contains the optional parameters for the Table.Create method.
type TableCreateResponse ¶
type TableCreateResponse struct { TableCreateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TableCreateResponse contains the response from method Table.Create.
type TableCreateResult ¶
type TableCreateResult struct {
Table
}
TableCreateResult contains the result from method Table.Create.
type TableDeleteOptions ¶
type TableDeleteOptions struct { }
TableDeleteOptions contains the optional parameters for the Table.Delete method.
type TableDeleteResponse ¶
type TableDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TableDeleteResponse contains the response from method Table.Delete.
type TableGetOptions ¶
type TableGetOptions struct { }
TableGetOptions contains the optional parameters for the Table.Get method.
type TableGetResponse ¶
type TableGetResponse struct { TableGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TableGetResponse contains the response from method Table.Get.
type TableGetResult ¶
type TableGetResult struct {
Table
}
TableGetResult contains the result from method Table.Get.
type TableListOptions ¶
type TableListOptions struct { }
TableListOptions contains the optional parameters for the Table.List method.
type TableListPager ¶
type TableListPager struct {
// contains filtered or unexported fields
}
TableListPager provides operations for iterating over paged responses.
func (*TableListPager) Err ¶
func (p *TableListPager) Err() error
Err returns the last error encountered while paging.
func (*TableListPager) NextPage ¶
func (p *TableListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*TableListPager) PageResponse ¶
func (p *TableListPager) PageResponse() TableListResponse
PageResponse returns the current TableListResponse page.
type TableListResponse ¶
type TableListResponse struct { TableListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TableListResponse contains the response from method Table.List.
type TableListResult ¶
type TableListResult struct {
ListTableResource
}
TableListResult contains the result from method Table.List.
type TableProperties ¶
type TableProperties struct { // READ-ONLY; Table name under the specified account TableName *string `json:"tableName,omitempty" azure:"ro"` }
type TableServiceProperties ¶
type TableServiceProperties struct { Resource // The properties of a storage account’s Table service. TableServiceProperties *TableServicePropertiesProperties `json:"properties,omitempty"` }
TableServiceProperties - The properties of a storage account’s Table service.
func (TableServiceProperties) MarshalJSON ¶
func (t TableServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TableServiceProperties.
type TableServicePropertiesProperties ¶
type TableServicePropertiesProperties struct { // Specifies CORS rules for the Table service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the // request body, all CORS rules will be deleted, and // CORS will be disabled for the Table service. Cors *CorsRules `json:"cors,omitempty"` }
TableServicePropertiesProperties - The properties of a storage account’s Table service.
type TableServicesClient ¶
type TableServicesClient struct {
// contains filtered or unexported fields
}
TableServicesClient contains the methods for the TableServices group. Don't use this type directly, use NewTableServicesClient() instead.
func NewTableServicesClient ¶
func NewTableServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *TableServicesClient
NewTableServicesClient creates a new instance of TableServicesClient with the specified values.
func (*TableServicesClient) GetServiceProperties ¶
func (client *TableServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, options *TableServicesGetServicePropertiesOptions) (TableServicesGetServicePropertiesResponse, error)
GetServiceProperties - Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*TableServicesClient) List ¶
func (client *TableServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *TableServicesListOptions) (TableServicesListResponse, error)
List - List all table services for the storage account. If the operation fails it returns the *CloudErrorAutoGenerated error type.
func (*TableServicesClient) SetServiceProperties ¶
func (client *TableServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters TableServiceProperties, options *TableServicesSetServicePropertiesOptions) (TableServicesSetServicePropertiesResponse, error)
SetServiceProperties - Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.
type TableServicesGetServicePropertiesOptions ¶
type TableServicesGetServicePropertiesOptions struct { }
TableServicesGetServicePropertiesOptions contains the optional parameters for the TableServices.GetServiceProperties method.
type TableServicesGetServicePropertiesResponse ¶
type TableServicesGetServicePropertiesResponse struct { TableServicesGetServicePropertiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TableServicesGetServicePropertiesResponse contains the response from method TableServices.GetServiceProperties.
type TableServicesGetServicePropertiesResult ¶
type TableServicesGetServicePropertiesResult struct {
TableServiceProperties
}
TableServicesGetServicePropertiesResult contains the result from method TableServices.GetServiceProperties.
type TableServicesListOptions ¶
type TableServicesListOptions struct { }
TableServicesListOptions contains the optional parameters for the TableServices.List method.
type TableServicesListResponse ¶
type TableServicesListResponse struct { TableServicesListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TableServicesListResponse contains the response from method TableServices.List.
type TableServicesListResult ¶
type TableServicesListResult struct {
ListTableServices
}
TableServicesListResult contains the result from method TableServices.List.
type TableServicesSetServicePropertiesOptions ¶
type TableServicesSetServicePropertiesOptions struct { }
TableServicesSetServicePropertiesOptions contains the optional parameters for the TableServices.SetServiceProperties method.
type TableServicesSetServicePropertiesResponse ¶
type TableServicesSetServicePropertiesResponse struct { TableServicesSetServicePropertiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TableServicesSetServicePropertiesResponse contains the response from method TableServices.SetServiceProperties.
type TableServicesSetServicePropertiesResult ¶
type TableServicesSetServicePropertiesResult struct {
TableServiceProperties
}
TableServicesSetServicePropertiesResult contains the result from method TableServices.SetServiceProperties.
type TableUpdateOptions ¶
type TableUpdateOptions struct { }
TableUpdateOptions contains the optional parameters for the Table.Update method.
type TableUpdateResponse ¶
type TableUpdateResponse struct { TableUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TableUpdateResponse contains the response from method Table.Update.
type TableUpdateResult ¶
type TableUpdateResult struct {
Table
}
TableUpdateResult contains the result from method Table.Update.
type TagFilter ¶
type TagFilter struct { // REQUIRED; This is the filter tag name, it can have 1 - 128 characters Name *string `json:"name,omitempty"` // REQUIRED; This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported Op *string `json:"op,omitempty"` // REQUIRED; This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters Value *string `json:"value,omitempty"` }
TagFilter - Blob index tag based filtering for blob objects
type TagProperty ¶
type TagProperty struct { // READ-ONLY; Returns the Object ID of the user who added the tag. ObjectIdentifier *string `json:"objectIdentifier,omitempty" azure:"ro"` // READ-ONLY; The tag value. Tag *string `json:"tag,omitempty" azure:"ro"` // READ-ONLY; Returns the Tenant ID that issued the token for the user who added the tag. TenantID *string `json:"tenantId,omitempty" azure:"ro"` // READ-ONLY; Returns the date and time the tag was added. Timestamp *time.Time `json:"timestamp,omitempty" azure:"ro"` // READ-ONLY; Returns the User Principal Name of the user who added the tag. Upn *string `json:"upn,omitempty" azure:"ro"` }
TagProperty - A tag of the LegalHold of a blob container.
func (TagProperty) MarshalJSON ¶
func (t TagProperty) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TagProperty.
func (*TagProperty) UnmarshalJSON ¶
func (t *TagProperty) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TagProperty.
type TrackedResource ¶
type TrackedResource struct { Resource // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
type UpdateHistoryProperty ¶
type UpdateHistoryProperty struct { // This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining // immutability protection and compliance. Only // new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. AllowProtectedAppendWrites *bool `json:"allowProtectedAppendWrites,omitempty"` // This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' // while maintaining immutability protection and // compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy // API. The 'allowProtectedAppendWrites' and // 'allowProtectedAppendWritesAll' properties are mutually exclusive. AllowProtectedAppendWritesAll *bool `json:"allowProtectedAppendWritesAll,omitempty"` // READ-ONLY; The immutability period for the blobs in the container since the policy creation, in days. ImmutabilityPeriodSinceCreationInDays *int32 `json:"immutabilityPeriodSinceCreationInDays,omitempty" azure:"ro"` // READ-ONLY; Returns the Object ID of the user who updated the ImmutabilityPolicy. ObjectIdentifier *string `json:"objectIdentifier,omitempty" azure:"ro"` // READ-ONLY; Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy. TenantID *string `json:"tenantId,omitempty" azure:"ro"` // READ-ONLY; Returns the date and time the ImmutabilityPolicy was updated. Timestamp *time.Time `json:"timestamp,omitempty" azure:"ro"` // READ-ONLY; The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. Update *ImmutabilityPolicyUpdateType `json:"update,omitempty" azure:"ro"` // READ-ONLY; Returns the User Principal Name of the user who updated the ImmutabilityPolicy. Upn *string `json:"upn,omitempty" azure:"ro"` }
UpdateHistoryProperty - An update history of the ImmutabilityPolicy of a blob container.
func (UpdateHistoryProperty) MarshalJSON ¶
func (u UpdateHistoryProperty) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateHistoryProperty.
func (*UpdateHistoryProperty) UnmarshalJSON ¶
func (u *UpdateHistoryProperty) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UpdateHistoryProperty.
type Usage ¶
type Usage struct { // READ-ONLY; Gets the current count of the allocated resources in the subscription. CurrentValue *int32 `json:"currentValue,omitempty" azure:"ro"` // READ-ONLY; Gets the maximum count of the resources that can be allocated in the subscription. Limit *int32 `json:"limit,omitempty" azure:"ro"` // READ-ONLY; Gets the name of the type of usage. Name *UsageName `json:"name,omitempty" azure:"ro"` // READ-ONLY; Gets the unit of measurement. Unit *UsageUnit `json:"unit,omitempty" azure:"ro"` }
Usage - Describes Storage Resource Usage.
type UsageListResult ¶
type UsageListResult struct { // Gets or sets the list of Storage Resource Usages. Value []*Usage `json:"value,omitempty"` }
UsageListResult - The response from the List Usages operation.
func (UsageListResult) MarshalJSON ¶
func (u UsageListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UsageListResult.
type UsageName ¶
type UsageName struct { // READ-ONLY; Gets a localized string describing the resource name. LocalizedValue *string `json:"localizedValue,omitempty" azure:"ro"` // READ-ONLY; Gets a string describing the resource name. Value *string `json:"value,omitempty" azure:"ro"` }
UsageName - The usage names that can be used; currently limited to StorageAccount.
type UsageUnit ¶
type UsageUnit string
UsageUnit - Gets the unit of measurement.
func PossibleUsageUnitValues ¶
func PossibleUsageUnitValues() []UsageUnit
PossibleUsageUnitValues returns the possible values for the UsageUnit const type.
type UsagesClient ¶
type UsagesClient struct {
// contains filtered or unexported fields
}
UsagesClient contains the methods for the Usages group. Don't use this type directly, use NewUsagesClient() instead.
func NewUsagesClient ¶
func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *UsagesClient
NewUsagesClient creates a new instance of UsagesClient with the specified values.
func (*UsagesClient) ListByLocation ¶
func (client *UsagesClient) ListByLocation(ctx context.Context, location string, options *UsagesListByLocationOptions) (UsagesListByLocationResponse, error)
ListByLocation - Gets the current usage count and the limit for the resources of the location under the subscription. If the operation fails it returns a generic error.
Example ¶
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } client := armstorage.NewUsagesClient("<subscription ID>", cred, nil) resp, err := client.ListByLocation(context.Background(), "<Azure location>", nil) if err != nil { log.Fatalf("failed to delete account: %v", err) } for _, u := range resp.UsageListResult.Value { log.Printf("usage: %v, limit: %v, current value: %v", *u.Name.Value, *u.Limit, *u.CurrentValue) } }
Output:
type UsagesListByLocationOptions ¶
type UsagesListByLocationOptions struct { }
UsagesListByLocationOptions contains the optional parameters for the Usages.ListByLocation method.
type UsagesListByLocationResponse ¶
type UsagesListByLocationResponse struct { UsagesListByLocationResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
UsagesListByLocationResponse contains the response from method Usages.ListByLocation.
type UsagesListByLocationResult ¶
type UsagesListByLocationResult struct {
UsageListResult
}
UsagesListByLocationResult contains the result from method Usages.ListByLocation.
type UserAssignedIdentity ¶
type UserAssignedIdentity struct { // READ-ONLY; The client ID of the identity. ClientID *string `json:"clientId,omitempty" azure:"ro"` // READ-ONLY; The principal ID of the identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` }
UserAssignedIdentity for the resource.
type VirtualNetworkRule ¶
type VirtualNetworkRule struct { // REQUIRED; Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. VirtualNetworkResourceID *string `json:"id,omitempty"` // The action of virtual network rule. Action *string `json:"action,omitempty"` // Gets the state of virtual network rule. State *State `json:"state,omitempty"` }
VirtualNetworkRule - Virtual Network rule.
Source Files ¶
- build.go
- zz_generated_blobcontainers_client.go
- zz_generated_blobinventorypolicies_client.go
- zz_generated_blobservices_client.go
- zz_generated_constants.go
- zz_generated_deletedaccounts_client.go
- zz_generated_encryptionscopes_client.go
- zz_generated_fileservices_client.go
- zz_generated_fileshares_client.go
- zz_generated_managementpolicies_client.go
- zz_generated_models.go
- zz_generated_objectreplicationpolicies_client.go
- zz_generated_operations_client.go
- zz_generated_pagers.go
- zz_generated_pollers.go
- zz_generated_privateendpointconnections_client.go
- zz_generated_privatelinkresources_client.go
- zz_generated_queue_client.go
- zz_generated_queueservices_client.go
- zz_generated_response_types.go
- zz_generated_skus_client.go
- zz_generated_storageaccounts_client.go
- zz_generated_table_client.go
- zz_generated_tableservices_client.go
- zz_generated_time_rfc3339.go
- zz_generated_usages_client.go