Documentation
¶
Index ¶
- type ActionType
- type Capacity
- type ClientFactory
- type CreatedByType
- type EncryptionIdentityProperties
- type EncryptionIdentityType
- type EncryptionIdentityUpdateProperties
- type EncryptionProperties
- type EncryptionUpdateProperties
- type FileSystemResource
- type FileSystemResourceListResult
- type FileSystemResourceProperties
- type FileSystemResourceUpdate
- type FileSystemResourceUpdateProperties
- type FileSystemsClient
- func (client *FileSystemsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, filesystemName string, ...) (*runtime.Poller[FileSystemsClientCreateOrUpdateResponse], error)
- func (client *FileSystemsClient) BeginDelete(ctx context.Context, resourceGroupName string, filesystemName string, ...) (*runtime.Poller[FileSystemsClientDeleteResponse], error)
- func (client *FileSystemsClient) Get(ctx context.Context, resourceGroupName string, filesystemName string, ...) (FileSystemsClientGetResponse, error)
- func (client *FileSystemsClient) NewListByResourceGroupPager(resourceGroupName string, options *FileSystemsClientListByResourceGroupOptions) *runtime.Pager[FileSystemsClientListByResourceGroupResponse]
- func (client *FileSystemsClient) NewListBySubscriptionPager(options *FileSystemsClientListBySubscriptionOptions) *runtime.Pager[FileSystemsClientListBySubscriptionResponse]
- func (client *FileSystemsClient) Update(ctx context.Context, resourceGroupName string, filesystemName string, ...) (FileSystemsClientUpdateResponse, error)
- type FileSystemsClientBeginCreateOrUpdateOptions
- type FileSystemsClientBeginDeleteOptions
- type FileSystemsClientCreateOrUpdateResponse
- type FileSystemsClientDeleteResponse
- type FileSystemsClientGetOptions
- type FileSystemsClientGetResponse
- type FileSystemsClientListByResourceGroupOptions
- type FileSystemsClientListByResourceGroupResponse
- type FileSystemsClientListBySubscriptionOptions
- type FileSystemsClientListBySubscriptionResponse
- type FileSystemsClientUpdateOptions
- type FileSystemsClientUpdateResponse
- type ManagedServiceIdentity
- type ManagedServiceIdentityType
- type ManagedServiceIdentityUpdate
- type MarketplaceDetails
- type MarketplaceSubscriptionStatus
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type ProvisioningState
- type ResourceEncryptionType
- type SystemData
- type UserAssignedIdentity
- type UserDetails
Examples ¶
- FileSystemsClient.BeginCreateOrUpdate (FileSystemsCreateOrUpdateMaximumSetGen)
- FileSystemsClient.BeginCreateOrUpdate (FileSystemsCreateOrUpdateMinimumSetGen)
- FileSystemsClient.BeginDelete (FileSystemsDeleteMaximumSetGen)
- FileSystemsClient.BeginDelete (FileSystemsDeleteMinimumSetGen)
- FileSystemsClient.Get (FileSystemsGetMaximumSetGen)
- FileSystemsClient.Get (FileSystemsGetMinimumSetGen)
- FileSystemsClient.NewListByResourceGroupPager (FileSystemsListByResourceGroupMaximumSetGen)
- FileSystemsClient.NewListByResourceGroupPager (FileSystemsListByResourceGroupMinimumSetGen)
- FileSystemsClient.NewListBySubscriptionPager (FileSystemsListBySubscriptionMaximumSetGen)
- FileSystemsClient.NewListBySubscriptionPager (FileSystemsListBySubscriptionMinimumSetGen)
- FileSystemsClient.Update (FileSystemsUpdateMaximumSetGen)
- FileSystemsClient.Update (FileSystemsUpdateMinimumSetGen)
- OperationsClient.NewListPager (OperationsListMaximumSetGen)
- OperationsClient.NewListPager (OperationsListMinimumSetGen)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType string
ActionType - Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const ( // ActionTypeInternal - Actions are for internal-only APIs. ActionTypeInternal ActionType = "Internal" )
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type Capacity ¶
type Capacity struct {
// Current Capacity of the resource
Current *string
// Units to be increased
Incremental *string
// Maximum Capacity
Max *string
// Minimum Capacity
Min *string
}
Capacity for a Resource
func (Capacity) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Capacity.
func (*Capacity) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Capacity.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewFileSystemsClient ¶
func (c *ClientFactory) NewFileSystemsClient() *FileSystemsClient
NewFileSystemsClient creates a new instance of FileSystemsClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The kind of entity that created the resource.
const ( // CreatedByTypeApplication - The entity was created by an application. CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey - The entity was created by a key. CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity - The entity was created by a managed identity. CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser - The entity was created by a user. CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type EncryptionIdentityProperties ¶
type EncryptionIdentityProperties struct {
// User-assigned identity resource id - Only when user opts for UserAssigned identity and hence optional
IdentityResourceID *string
// Identity type - SystemAssigned/UserAssigned - Only UserAssigned is supported now
IdentityType *EncryptionIdentityType
}
EncryptionIdentityProperties of Dell FileSystem resource
func (EncryptionIdentityProperties) MarshalJSON ¶
func (e EncryptionIdentityProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionIdentityProperties.
func (*EncryptionIdentityProperties) UnmarshalJSON ¶
func (e *EncryptionIdentityProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionIdentityProperties.
type EncryptionIdentityType ¶
type EncryptionIdentityType string
EncryptionIdentityType - Identity type of ManagedIdentity Associated with Dell FileSystem resource
const ( // EncryptionIdentityTypeSystemAssigned - System Assigned Managed identity EncryptionIdentityTypeSystemAssigned EncryptionIdentityType = "SystemAssigned" // EncryptionIdentityTypeUserAssigned - User Assigned managed identity EncryptionIdentityTypeUserAssigned EncryptionIdentityType = "UserAssigned" )
func PossibleEncryptionIdentityTypeValues ¶
func PossibleEncryptionIdentityTypeValues() []EncryptionIdentityType
PossibleEncryptionIdentityTypeValues returns the possible values for the EncryptionIdentityType const type.
type EncryptionIdentityUpdateProperties ¶
type EncryptionIdentityUpdateProperties struct {
// User-assigned identity resource id - Only when user opts for UserAssigned identity and hence optional
IdentityResourceID *string
// Identity type - SystemAssigned/UserAssigned - Only UserAssigned is supported now
IdentityType *EncryptionIdentityType
}
EncryptionIdentityUpdateProperties of Dell FileSystem resource
func (EncryptionIdentityUpdateProperties) MarshalJSON ¶
func (e EncryptionIdentityUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionIdentityUpdateProperties.
func (*EncryptionIdentityUpdateProperties) UnmarshalJSON ¶
func (e *EncryptionIdentityUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionIdentityUpdateProperties.
type EncryptionProperties ¶
type EncryptionProperties struct {
// REQUIRED; Encryption Type - MMK/CMK
EncryptionType *ResourceEncryptionType
// Identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault -
// Only when user opts for CMK and hence optional
EncryptionIdentityProperties *EncryptionIdentityProperties
// Versioned Encryption Key Url - Only when user opts for CMK and hence optional
KeyURL *string
}
EncryptionProperties of Dell FileSystem resource
func (EncryptionProperties) MarshalJSON ¶
func (e EncryptionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionProperties.
func (*EncryptionProperties) UnmarshalJSON ¶
func (e *EncryptionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionProperties.
type EncryptionUpdateProperties ¶
type EncryptionUpdateProperties struct {
// Identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault -
// Only when user opts for CMK and hence optional
EncryptionIdentityProperties *EncryptionIdentityUpdateProperties
// Encryption Type - MMK/CMK
EncryptionType *ResourceEncryptionType
// Versioned Encryption Key Url - Only when user opts for CMK and hence optional
KeyURL *string
}
EncryptionUpdateProperties of Dell FileSystem resource
func (EncryptionUpdateProperties) MarshalJSON ¶
func (e EncryptionUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionUpdateProperties.
func (*EncryptionUpdateProperties) UnmarshalJSON ¶
func (e *EncryptionUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionUpdateProperties.
type FileSystemResource ¶
type FileSystemResource struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The managed service identities assigned to this resource.
Identity *ManagedServiceIdentity
// The resource-specific properties for this resource.
Properties *FileSystemResourceProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
FileSystemResource - Concrete tracked resource types can be created by aliasing this type using a specific property type.
func (FileSystemResource) MarshalJSON ¶
func (f FileSystemResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileSystemResource.
func (*FileSystemResource) UnmarshalJSON ¶
func (f *FileSystemResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResource.
type FileSystemResourceListResult ¶
type FileSystemResourceListResult struct {
// REQUIRED; The FileSystemResource items on this page
Value []*FileSystemResource
// The link to the next page of items
NextLink *string
}
FileSystemResourceListResult - The response of a FileSystemResource list operation.
func (FileSystemResourceListResult) MarshalJSON ¶
func (f FileSystemResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileSystemResourceListResult.
func (*FileSystemResourceListResult) UnmarshalJSON ¶
func (f *FileSystemResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResourceListResult.
type FileSystemResourceProperties ¶
type FileSystemResourceProperties struct {
// REQUIRED; Domain range for the delegated subnet
DelegatedSubnetCidr *string
// REQUIRED; Delegated subnet id for Vnet injection
DelegatedSubnetID *string
// REQUIRED; DellReferenceNumber of the resource
DellReferenceNumber *string
// REQUIRED; EncryptionProperties of the resource
Encryption *EncryptionProperties
// REQUIRED; Marketplace details
Marketplace *MarketplaceDetails
// REQUIRED; User Details
User *UserDetails
// Capacity for Dell Filesystem, Will be received as part of Job Status
Capacity *Capacity
// File system Id of the resource
FileSystemID *string
// OneFS url
OneFsURL *string
// Smart Connect FQDN of the resource
SmartConnectFqdn *string
// READ-ONLY; Provisioning State of the resource
ProvisioningState *ProvisioningState
}
FileSystemResourceProperties - Properties specific to the Dell File System resource
func (FileSystemResourceProperties) MarshalJSON ¶
func (f FileSystemResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileSystemResourceProperties.
func (*FileSystemResourceProperties) UnmarshalJSON ¶
func (f *FileSystemResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResourceProperties.
type FileSystemResourceUpdate ¶
type FileSystemResourceUpdate struct {
// The managed service identities assigned to this resource.
Identity *ManagedServiceIdentityUpdate
// The updatable properties of the FileSystemResource.
Properties *FileSystemResourceUpdateProperties
// Resource tags.
Tags map[string]*string
}
FileSystemResourceUpdate - The type used for update operations of the FileSystemResource.
func (FileSystemResourceUpdate) MarshalJSON ¶
func (f FileSystemResourceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileSystemResourceUpdate.
func (*FileSystemResourceUpdate) UnmarshalJSON ¶
func (f *FileSystemResourceUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResourceUpdate.
type FileSystemResourceUpdateProperties ¶
type FileSystemResourceUpdateProperties struct {
// Capacity for Dell Filesystem
Capacity *Capacity
// Delegated subnet id for Vnet injection
DelegatedSubnetID *string
// Encryption Details of the resource
Encryption *EncryptionUpdateProperties
}
FileSystemResourceUpdateProperties - The updatable properties of the FileSystemResource.
func (FileSystemResourceUpdateProperties) MarshalJSON ¶
func (f FileSystemResourceUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileSystemResourceUpdateProperties.
func (*FileSystemResourceUpdateProperties) UnmarshalJSON ¶
func (f *FileSystemResourceUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResourceUpdateProperties.
type FileSystemsClient ¶
type FileSystemsClient struct {
// contains filtered or unexported fields
}
FileSystemsClient contains the methods for the FileSystems group. Don't use this type directly, use NewFileSystemsClient() instead.
func NewFileSystemsClient ¶
func NewFileSystemsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FileSystemsClient, error)
NewFileSystemsClient creates a new instance of FileSystemsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*FileSystemsClient) BeginCreateOrUpdate ¶
func (client *FileSystemsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, filesystemName string, resource FileSystemResource, options *FileSystemsClientBeginCreateOrUpdateOptions) (*runtime.Poller[FileSystemsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a FileSystemResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-03-21
- resourceGroupName - The name of the resource group. The name is case insensitive.
- filesystemName - Name of the filesystem resource
- resource - Resource create parameters.
- options - FileSystemsClientBeginCreateOrUpdateOptions contains the optional parameters for the FileSystemsClient.BeginCreateOrUpdate method.
Example (FileSystemsCreateOrUpdateMaximumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_CreateOrUpdate_MaximumSet_Gen.json
package main
import (
"context"
"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/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("4B6E265D-57CF-4A9D-8B35-3CC68ED9D208", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFileSystemsClient().BeginCreateOrUpdate(ctx, "rgDell", "abcd", armdellstorage.FileSystemResource{
Properties: &armdellstorage.FileSystemResourceProperties{
Marketplace: &armdellstorage.MarketplaceDetails{
MarketplaceSubscriptionID: to.Ptr("mvjcxwndudbylynme"),
PlanID: to.Ptr("eekvwfndjoxijeasksnt"),
OfferID: to.Ptr("bcganbkmvznyqfnvhjuag"),
PublisherID: to.Ptr("trdzykoeskmcwpo"),
MarketplaceSubscriptionStatus: to.Ptr(armdellstorage.MarketplaceSubscriptionStatusPendingFulfillmentStart),
PrivateOfferID: to.Ptr("privateOfferId"),
PlanName: to.Ptr("planeName"),
},
DelegatedSubnetID: to.Ptr("rqkpvczbtqcxiaivtbuixblb"),
DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
User: &armdellstorage.UserDetails{
Email: to.Ptr("jwogfgznmjabdbcjcljjlkxdpc"),
},
SmartConnectFqdn: to.Ptr("fqdn"),
OneFsURL: to.Ptr("oneFsUrl"),
DellReferenceNumber: to.Ptr("fhewkj"),
Encryption: &armdellstorage.EncryptionProperties{
EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeCustomerManagedKeysCMK),
KeyURL: to.Ptr("https://contoso.com/keyurl/keyVersion"),
EncryptionIdentityProperties: &armdellstorage.EncryptionIdentityProperties{
IdentityType: to.Ptr(armdellstorage.EncryptionIdentityTypeUserAssigned),
IdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}"),
},
},
},
Identity: &armdellstorage.ManagedServiceIdentity{
Type: to.Ptr(armdellstorage.ManagedServiceIdentityTypeUserAssigned),
UserAssignedIdentities: map[string]*armdellstorage.UserAssignedIdentity{
"key7644": {},
},
},
Tags: map[string]*string{
"key7594": to.Ptr("sfkwapubiurgedzveido"),
},
Location: to.Ptr("cvbmsqftppe"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdellstorage.FileSystemsClientCreateOrUpdateResponse{
// FileSystemResource: &armdellstorage.FileSystemResource{
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// MarketplaceSubscriptionID: to.Ptr("mvjcxwndudbylynme"),
// PlanID: to.Ptr("eekvwfndjoxijeasksnt"),
// OfferID: to.Ptr("bcganbkmvznyqfnvhjuag"),
// PublisherID: to.Ptr("trdzykoeskmcwpo"),
// MarketplaceSubscriptionStatus: to.Ptr(armdellstorage.MarketplaceSubscriptionStatusPendingFulfillmentStart),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planeName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// TermUnit: to.Ptr("P1Y"),
// },
// ProvisioningState: to.Ptr(armdellstorage.ProvisioningStateAccepted),
// DelegatedSubnetID: to.Ptr("rqkpvczbtqcxiaivtbquixblb"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// SmartConnectFqdn: to.Ptr("fqdn"),
// OneFsURL: to.Ptr("oneFsUrl"),
// DellReferenceNumber: to.Ptr("fhewkj"),
// FileSystemID: to.Ptr("filesystemId"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeCustomerManagedKeysCMK),
// KeyURL: to.Ptr("https://contoso.com/keyurl/keyVersion"),
// EncryptionIdentityProperties: &armdellstorage.EncryptionIdentityProperties{
// IdentityType: to.Ptr(armdellstorage.EncryptionIdentityTypeUserAssigned),
// IdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}"),
// },
// },
// },
// Identity: &armdellstorage.ManagedServiceIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// Type: to.Ptr(armdellstorage.ManagedServiceIdentityTypeSystemAssignedUserAssigned),
// UserAssignedIdentities: map[string]*armdellstorage.UserAssignedIdentity{
// "key7644": &armdellstorage.UserAssignedIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// },
// },
// },
// Tags: map[string]*string{
// "key7594": to.Ptr("sfkwapubiurgedzveido"),
// },
// Location: to.Ptr("cvbmsqftppe"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// Name: to.Ptr("hyjt"),
// Type: to.Ptr("mzfepehqauauepqojtnobuyiegj"),
// SystemData: &armdellstorage.SystemData{
// CreatedBy: to.Ptr("xfvccbyptfzz"),
// CreatedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// LastModifiedBy: to.Ptr("uojozqmijcudlqxmvwckofopoori"),
// LastModifiedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// },
// },
// }
}
Output:
Example (FileSystemsCreateOrUpdateMinimumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_CreateOrUpdate_MinimumSet_Gen.json
package main
import (
"context"
"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/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("BF7E7352-2FE4-4163-9CF7-5FF8EC2E9B92", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFileSystemsClient().BeginCreateOrUpdate(ctx, "rgDell", "abcd", armdellstorage.FileSystemResource{
Properties: &armdellstorage.FileSystemResourceProperties{
Marketplace: &armdellstorage.MarketplaceDetails{
PlanID: to.Ptr("lgozf"),
OfferID: to.Ptr("pzhjvibxqgeqkndqnjlduwnxqbr"),
PrivateOfferID: to.Ptr("privateOfferId"),
PlanName: to.Ptr("planeName"),
},
DelegatedSubnetID: to.Ptr("yp"),
DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
User: &armdellstorage.UserDetails{
Email: to.Ptr("hoznewwtzmyjzctzosfuh"),
},
DellReferenceNumber: to.Ptr("fhewkj"),
Encryption: &armdellstorage.EncryptionProperties{
EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeMicrosoftManagedKeysMMK),
},
},
Location: to.Ptr("tbcvhxzpgrijtdygkttnfswwtacs"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdellstorage.FileSystemsClientCreateOrUpdateResponse{
// FileSystemResource: &armdellstorage.FileSystemResource{
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// PlanID: to.Ptr("lgozf"),
// OfferID: to.Ptr("pzhjvibxqgeqkndqnjlduwnxqbr"),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planeName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// TermUnit: to.Ptr("P1Y"),
// },
// FileSystemID: to.Ptr("filesystemId"),
// DelegatedSubnetID: to.Ptr("yp"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// DellReferenceNumber: to.Ptr("fhewkj"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeMicrosoftManagedKeysMMK),
// },
// },
// Location: to.Ptr("tbcvhxzpgrijtdygkttnfswwtacs"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// },
// }
}
Output:
func (*FileSystemsClient) BeginDelete ¶
func (client *FileSystemsClient) BeginDelete(ctx context.Context, resourceGroupName string, filesystemName string, options *FileSystemsClientBeginDeleteOptions) (*runtime.Poller[FileSystemsClientDeleteResponse], error)
BeginDelete - Delete a FileSystemResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-03-21
- resourceGroupName - The name of the resource group. The name is case insensitive.
- filesystemName - Name of the filesystem resource
- options - FileSystemsClientBeginDeleteOptions contains the optional parameters for the FileSystemsClient.BeginDelete method.
Example (FileSystemsDeleteMaximumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_Delete_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("4B6E265D-57CF-4A9D-8B35-3CC68ED9D208", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFileSystemsClient().BeginDelete(ctx, "rgDell", "abcd", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
Output:
Example (FileSystemsDeleteMinimumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_Delete_MinimumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("BF7E7352-2FE4-4163-9CF7-5FF8EC2E9B92", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFileSystemsClient().BeginDelete(ctx, "rgDell", "abcd", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
Output:
func (*FileSystemsClient) Get ¶
func (client *FileSystemsClient) Get(ctx context.Context, resourceGroupName string, filesystemName string, options *FileSystemsClientGetOptions) (FileSystemsClientGetResponse, error)
Get - Get a FileSystemResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-03-21
- resourceGroupName - The name of the resource group. The name is case insensitive.
- filesystemName - Name of the filesystem resource
- options - FileSystemsClientGetOptions contains the optional parameters for the FileSystemsClient.Get method.
Example (FileSystemsGetMaximumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_Get_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("4B6E265D-57CF-4A9D-8B35-3CC68ED9D208", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFileSystemsClient().Get(ctx, "rgDell", "abcd", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdellstorage.FileSystemsClientGetResponse{
// FileSystemResource: &armdellstorage.FileSystemResource{
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// MarketplaceSubscriptionID: to.Ptr("mvjcxwndudbylynme"),
// PlanID: to.Ptr("eekvwfndjoxijeasksnt"),
// OfferID: to.Ptr("bcganbkmvznyqfnvhjuag"),
// PublisherID: to.Ptr("trdzykoeskmcwpo"),
// MarketplaceSubscriptionStatus: to.Ptr(armdellstorage.MarketplaceSubscriptionStatusPendingFulfillmentStart),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planeName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// },
// ProvisioningState: to.Ptr(armdellstorage.ProvisioningStateAccepted),
// DelegatedSubnetID: to.Ptr("rqkpvczbtqcxiaivtbquixblb"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// FileSystemID: to.Ptr("filesystemId"),
// SmartConnectFqdn: to.Ptr("fqdn"),
// DellReferenceNumber: to.Ptr("fhewkj"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeCustomerManagedKeysCMK),
// KeyURL: to.Ptr("https://contoso.com/keyurl/keyVersion"),
// EncryptionIdentityProperties: &armdellstorage.EncryptionIdentityProperties{
// IdentityType: to.Ptr(armdellstorage.EncryptionIdentityTypeUserAssigned),
// IdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}"),
// },
// },
// },
// Identity: &armdellstorage.ManagedServiceIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// Type: to.Ptr(armdellstorage.ManagedServiceIdentityTypeSystemAssignedUserAssigned),
// UserAssignedIdentities: map[string]*armdellstorage.UserAssignedIdentity{
// "key7644": &armdellstorage.UserAssignedIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// },
// },
// },
// Tags: map[string]*string{
// "key7594": to.Ptr("sfkwapubiurgedzveido"),
// },
// Location: to.Ptr("cvbmsqftppe"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// Name: to.Ptr("hyjt"),
// Type: to.Ptr("mzfepehqauauepqojtnobuyiegj"),
// SystemData: &armdellstorage.SystemData{
// CreatedBy: to.Ptr("xfvccbyptfzz"),
// CreatedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// LastModifiedBy: to.Ptr("uojozqmijcudlqxmvwckofopoori"),
// LastModifiedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// },
// },
// }
}
Output:
Example (FileSystemsGetMinimumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_Get_MinimumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("BF7E7352-2FE4-4163-9CF7-5FF8EC2E9B92", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFileSystemsClient().Get(ctx, "rgDell", "abcd", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdellstorage.FileSystemsClientGetResponse{
// FileSystemResource: &armdellstorage.FileSystemResource{
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// PlanID: to.Ptr("lgozf"),
// OfferID: to.Ptr("pzhjvibxqgeqkndqnjlduwnxqbr"),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// },
// DelegatedSubnetID: to.Ptr("yp"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// FileSystemID: to.Ptr("filesystemId"),
// DellReferenceNumber: to.Ptr("fhewkj"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeMicrosoftManagedKeysMMK),
// },
// },
// Location: to.Ptr("tbcvhxzpgrijtdygkttnfswwtacs"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// },
// }
}
Output:
func (*FileSystemsClient) NewListByResourceGroupPager ¶
func (client *FileSystemsClient) NewListByResourceGroupPager(resourceGroupName string, options *FileSystemsClientListByResourceGroupOptions) *runtime.Pager[FileSystemsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List FileSystemResource resources by resource group
Generated from API version 2025-03-21
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - FileSystemsClientListByResourceGroupOptions contains the optional parameters for the FileSystemsClient.NewListByResourceGroupPager method.
Example (FileSystemsListByResourceGroupMaximumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_ListByResourceGroup_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("4B6E265D-57CF-4A9D-8B35-3CC68ED9D208", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewFileSystemsClient().NewListByResourceGroupPager("rgDell", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdellstorage.FileSystemsClientListByResourceGroupResponse{
// FileSystemResourceListResult: armdellstorage.FileSystemResourceListResult{
// Value: []*armdellstorage.FileSystemResource{
// {
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// MarketplaceSubscriptionID: to.Ptr("mvjcxwndudbylynme"),
// PlanID: to.Ptr("eekvwfndjoxijeasksnt"),
// OfferID: to.Ptr("bcganbkmvznyqfnvhjuag"),
// PublisherID: to.Ptr("trdzykoeskmcwpo"),
// MarketplaceSubscriptionStatus: to.Ptr(armdellstorage.MarketplaceSubscriptionStatusPendingFulfillmentStart),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planeName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// },
// ProvisioningState: to.Ptr(armdellstorage.ProvisioningStateAccepted),
// DelegatedSubnetID: to.Ptr("rqkpvczbtqcxiaivtbquixblb"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// FileSystemID: to.Ptr("filesystemId"),
// SmartConnectFqdn: to.Ptr("fqdn"),
// DellReferenceNumber: to.Ptr("fhewkj"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeCustomerManagedKeysCMK),
// KeyURL: to.Ptr("https://contoso.com/keyurl/keyVersion"),
// EncryptionIdentityProperties: &armdellstorage.EncryptionIdentityProperties{
// IdentityType: to.Ptr(armdellstorage.EncryptionIdentityTypeUserAssigned),
// IdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}"),
// },
// },
// },
// Identity: &armdellstorage.ManagedServiceIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// Type: to.Ptr(armdellstorage.ManagedServiceIdentityTypeSystemAssignedUserAssigned),
// UserAssignedIdentities: map[string]*armdellstorage.UserAssignedIdentity{
// "key7644": &armdellstorage.UserAssignedIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// },
// },
// },
// Tags: map[string]*string{
// "key7594": to.Ptr("sfkwapubiurgedzveido"),
// },
// Location: to.Ptr("cvbmsqftppe"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// Name: to.Ptr("hyjt"),
// Type: to.Ptr("mzfepehqauauepqojtnobuyiegj"),
// SystemData: &armdellstorage.SystemData{
// CreatedBy: to.Ptr("xfvccbyptfzz"),
// CreatedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// LastModifiedBy: to.Ptr("uojozqmijcudlqxmvwckofopoori"),
// LastModifiedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// },
// },
// },
// NextLink: to.Ptr("https://microsoft.com/a"),
// },
// }
}
}
Output:
Example (FileSystemsListByResourceGroupMinimumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_ListByResourceGroup_MinimumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("BF7E7352-2FE4-4163-9CF7-5FF8EC2E9B92", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewFileSystemsClient().NewListByResourceGroupPager("rgDell", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdellstorage.FileSystemsClientListByResourceGroupResponse{
// FileSystemResourceListResult: armdellstorage.FileSystemResourceListResult{
// Value: []*armdellstorage.FileSystemResource{
// {
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// PlanID: to.Ptr("lgozf"),
// OfferID: to.Ptr("pzhjvibxqgeqkndqnjlduwnxqbr"),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planeName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// },
// DelegatedSubnetID: to.Ptr("yp"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// FileSystemID: to.Ptr("filesystemId"),
// DellReferenceNumber: to.Ptr("fhewkj"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeMicrosoftManagedKeysMMK),
// },
// },
// Location: to.Ptr("tbcvhxzpgrijtdygkttnfswwtacs"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// },
// },
// },
// }
}
}
Output:
func (*FileSystemsClient) NewListBySubscriptionPager ¶
func (client *FileSystemsClient) NewListBySubscriptionPager(options *FileSystemsClientListBySubscriptionOptions) *runtime.Pager[FileSystemsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List FileSystemResource resources by subscription ID
Generated from API version 2025-03-21
- options - FileSystemsClientListBySubscriptionOptions contains the optional parameters for the FileSystemsClient.NewListBySubscriptionPager method.
Example (FileSystemsListBySubscriptionMaximumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_ListBySubscription_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("4B6E265D-57CF-4A9D-8B35-3CC68ED9D208", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewFileSystemsClient().NewListBySubscriptionPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdellstorage.FileSystemsClientListBySubscriptionResponse{
// FileSystemResourceListResult: armdellstorage.FileSystemResourceListResult{
// Value: []*armdellstorage.FileSystemResource{
// {
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// MarketplaceSubscriptionID: to.Ptr("mvjcxwndudbylynme"),
// PlanID: to.Ptr("eekvwfndjoxijeasksnt"),
// OfferID: to.Ptr("bcganbkmvznyqfnvhjuag"),
// PublisherID: to.Ptr("trdzykoeskmcwpo"),
// MarketplaceSubscriptionStatus: to.Ptr(armdellstorage.MarketplaceSubscriptionStatusPendingFulfillmentStart),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planeName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// },
// ProvisioningState: to.Ptr(armdellstorage.ProvisioningStateAccepted),
// DelegatedSubnetID: to.Ptr("rqkpvczbtqcxiaivtbquixblb"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// FileSystemID: to.Ptr("filesystemId"),
// SmartConnectFqdn: to.Ptr("fqdn"),
// DellReferenceNumber: to.Ptr("fhewkj"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeCustomerManagedKeysCMK),
// KeyURL: to.Ptr("https://contoso.com/keyurl/keyVersion"),
// EncryptionIdentityProperties: &armdellstorage.EncryptionIdentityProperties{
// IdentityType: to.Ptr(armdellstorage.EncryptionIdentityTypeUserAssigned),
// IdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}"),
// },
// },
// },
// Identity: &armdellstorage.ManagedServiceIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// Type: to.Ptr(armdellstorage.ManagedServiceIdentityTypeSystemAssignedUserAssigned),
// UserAssignedIdentities: map[string]*armdellstorage.UserAssignedIdentity{
// "key7644": &armdellstorage.UserAssignedIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// },
// },
// },
// Tags: map[string]*string{
// "key7594": to.Ptr("sfkwapubiurgedzveido"),
// },
// Location: to.Ptr("cvbmsqftppe"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// Name: to.Ptr("hyjt"),
// Type: to.Ptr("mzfepehqauauepqojtnobuyiegj"),
// SystemData: &armdellstorage.SystemData{
// CreatedBy: to.Ptr("xfvccbyptfzz"),
// CreatedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// LastModifiedBy: to.Ptr("uojozqmijcudlqxmvwckofopoori"),
// LastModifiedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// },
// },
// },
// NextLink: to.Ptr("https://microsoft.com/a"),
// },
// }
}
}
Output:
Example (FileSystemsListBySubscriptionMinimumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_ListBySubscription_MinimumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("BF7E7352-2FE4-4163-9CF7-5FF8EC2E9B92", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewFileSystemsClient().NewListBySubscriptionPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdellstorage.FileSystemsClientListBySubscriptionResponse{
// FileSystemResourceListResult: armdellstorage.FileSystemResourceListResult{
// Value: []*armdellstorage.FileSystemResource{
// {
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// PlanID: to.Ptr("lgozf"),
// OfferID: to.Ptr("pzhjvibxqgeqkndqnjlduwnxqbr"),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planeName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// },
// DelegatedSubnetID: to.Ptr("yp"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// FileSystemID: to.Ptr("filesystemId"),
// DellReferenceNumber: to.Ptr("fhewkj"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeMicrosoftManagedKeysMMK),
// },
// },
// Location: to.Ptr("tbcvhxzpgrijtdygkttnfswwtacs"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// },
// },
// },
// }
}
}
Output:
func (*FileSystemsClient) Update ¶
func (client *FileSystemsClient) Update(ctx context.Context, resourceGroupName string, filesystemName string, properties FileSystemResourceUpdate, options *FileSystemsClientUpdateOptions) (FileSystemsClientUpdateResponse, error)
Update - Update a FileSystemResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-03-21
- resourceGroupName - The name of the resource group. The name is case insensitive.
- filesystemName - Name of the filesystem resource
- properties - The resource properties to be updated.
- options - FileSystemsClientUpdateOptions contains the optional parameters for the FileSystemsClient.Update method.
Example (FileSystemsUpdateMaximumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_Update_MaximumSet_Gen.json
package main
import (
"context"
"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/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("4B6E265D-57CF-4A9D-8B35-3CC68ED9D208", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFileSystemsClient().Update(ctx, "rgDell", "abcd", armdellstorage.FileSystemResourceUpdate{
Identity: &armdellstorage.ManagedServiceIdentityUpdate{
Type: to.Ptr(armdellstorage.ManagedServiceIdentityTypeSystemAssignedUserAssigned),
UserAssignedIdentities: map[string]*armdellstorage.UserAssignedIdentity{
"key7645": {},
},
},
Tags: map[string]*string{
"key6099": to.Ptr("ursbxlphfcguvntuevleacwq"),
},
Properties: &armdellstorage.FileSystemResourceUpdateProperties{
DelegatedSubnetID: to.Ptr("bfpuabdz"),
Capacity: &armdellstorage.Capacity{
Current: to.Ptr("5"),
},
Encryption: &armdellstorage.EncryptionUpdateProperties{
EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeCustomerManagedKeysCMK),
KeyURL: to.Ptr("https://contoso.com/keyurl/keyVersion"),
EncryptionIdentityProperties: &armdellstorage.EncryptionIdentityUpdateProperties{
IdentityType: to.Ptr(armdellstorage.EncryptionIdentityTypeUserAssigned),
IdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}"),
},
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdellstorage.FileSystemsClientUpdateResponse{
// FileSystemResource: &armdellstorage.FileSystemResource{
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// MarketplaceSubscriptionID: to.Ptr("mvjcxwndudbylynme"),
// PlanID: to.Ptr("eekvwfndjoxijeasksnt"),
// OfferID: to.Ptr("bcganbkmvznyqfnvhjuag"),
// PublisherID: to.Ptr("trdzykoeskmcwpo"),
// MarketplaceSubscriptionStatus: to.Ptr(armdellstorage.MarketplaceSubscriptionStatusPendingFulfillmentStart),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planeName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// },
// ProvisioningState: to.Ptr(armdellstorage.ProvisioningStateAccepted),
// DelegatedSubnetID: to.Ptr("rqkpvczbtqcxiaivtbquixblb"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// FileSystemID: to.Ptr("filesystemId"),
// SmartConnectFqdn: to.Ptr("fqdn"),
// DellReferenceNumber: to.Ptr("fhewkj"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeCustomerManagedKeysCMK),
// KeyURL: to.Ptr("https://contoso.com/keyurl/keyVersion"),
// EncryptionIdentityProperties: &armdellstorage.EncryptionIdentityProperties{
// IdentityType: to.Ptr(armdellstorage.EncryptionIdentityTypeUserAssigned),
// IdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}"),
// },
// },
// },
// Identity: &armdellstorage.ManagedServiceIdentity{
// PrincipalID: to.Ptr("22222222-2222-2222-2222-222222222222"),
// TenantID: to.Ptr("22222222-2222-2222-2222-222222222222"),
// Type: to.Ptr(armdellstorage.ManagedServiceIdentityTypeSystemAssignedUserAssigned),
// UserAssignedIdentities: map[string]*armdellstorage.UserAssignedIdentity{
// "key7645": &armdellstorage.UserAssignedIdentity{
// PrincipalID: to.Ptr("22222222-2222-2222-2222-222222222222"),
// ClientID: to.Ptr("22222222-2222-2222-2222-222222222222"),
// },
// },
// },
// Tags: map[string]*string{
// "key7594": to.Ptr("sfkwapubiurgedzveido"),
// },
// Location: to.Ptr("cvbmsqftppe"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// Name: to.Ptr("hyjt"),
// Type: to.Ptr("mzfepehqauauepqojtnobuyiegj"),
// SystemData: &armdellstorage.SystemData{
// CreatedBy: to.Ptr("xfvccbyptfzz"),
// CreatedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// LastModifiedBy: to.Ptr("uojozqmijcudlqxmvwckofopoori"),
// LastModifiedByType: to.Ptr(armdellstorage.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-08-28T09:20:01.255Z"); return t}()),
// },
// },
// }
}
Output:
Example (FileSystemsUpdateMinimumSetGen) ¶
Generated from example definition: 2025-03-21/FileSystems_Update_MinimumSet_Gen.json
package main
import (
"context"
"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/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("BF7E7352-2FE4-4163-9CF7-5FF8EC2E9B92", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFileSystemsClient().Update(ctx, "rgDell", "abcd", armdellstorage.FileSystemResourceUpdate{
Properties: &armdellstorage.FileSystemResourceUpdateProperties{
DelegatedSubnetID: to.Ptr("uqfvajvyltgmqvdnxhbrfqbpuey"),
Capacity: &armdellstorage.Capacity{
Current: to.Ptr("5"),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armdellstorage.FileSystemsClientUpdateResponse{
// FileSystemResource: &armdellstorage.FileSystemResource{
// Identity: &armdellstorage.ManagedServiceIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// Type: to.Ptr(armdellstorage.ManagedServiceIdentityTypeSystemAssignedUserAssigned),
// UserAssignedIdentities: map[string]*armdellstorage.UserAssignedIdentity{
// "key7644": &armdellstorage.UserAssignedIdentity{
// PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"),
// },
// },
// },
// Properties: &armdellstorage.FileSystemResourceProperties{
// Capacity: &armdellstorage.Capacity{
// Min: to.Ptr("1"),
// Max: to.Ptr("10"),
// Incremental: to.Ptr("1"),
// Current: to.Ptr("5"),
// },
// Marketplace: &armdellstorage.MarketplaceDetails{
// PlanID: to.Ptr("lgozf"),
// OfferID: to.Ptr("pzhjvibxqgeqkndqnjlduwnxqbr"),
// PrivateOfferID: to.Ptr("privateOfferId"),
// PlanName: to.Ptr("planeName"),
// EndDate: to.Ptr("2023-05-27T17:00:00-07:00"),
// },
// ProvisioningState: to.Ptr(armdellstorage.ProvisioningStateAccepted),
// DelegatedSubnetID: to.Ptr("yp"),
// DelegatedSubnetCidr: to.Ptr("10.0.0.1/24"),
// User: &armdellstorage.UserDetails{
// },
// FileSystemID: to.Ptr("filesystemId"),
// DellReferenceNumber: to.Ptr("fhewkj"),
// Encryption: &armdellstorage.EncryptionProperties{
// EncryptionType: to.Ptr(armdellstorage.ResourceEncryptionTypeCustomerManagedKeysCMK),
// KeyURL: to.Ptr("https://contoso.com/keyurl/keyVersion"),
// EncryptionIdentityProperties: &armdellstorage.EncryptionIdentityProperties{
// IdentityType: to.Ptr(armdellstorage.EncryptionIdentityTypeUserAssigned),
// IdentityResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}"),
// },
// },
// },
// Location: to.Ptr("tbcvhxzpgrijtdygkttnfswwtacs"),
// ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"),
// },
// }
}
Output:
type FileSystemsClientBeginCreateOrUpdateOptions ¶
type FileSystemsClientBeginCreateOrUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
FileSystemsClientBeginCreateOrUpdateOptions contains the optional parameters for the FileSystemsClient.BeginCreateOrUpdate method.
type FileSystemsClientBeginDeleteOptions ¶
type FileSystemsClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
FileSystemsClientBeginDeleteOptions contains the optional parameters for the FileSystemsClient.BeginDelete method.
type FileSystemsClientCreateOrUpdateResponse ¶
type FileSystemsClientCreateOrUpdateResponse struct {
// Concrete tracked resource types can be created by aliasing this type using a specific property type.
FileSystemResource
}
FileSystemsClientCreateOrUpdateResponse contains the response from method FileSystemsClient.BeginCreateOrUpdate.
type FileSystemsClientDeleteResponse ¶
type FileSystemsClientDeleteResponse struct {
}
FileSystemsClientDeleteResponse contains the response from method FileSystemsClient.BeginDelete.
type FileSystemsClientGetOptions ¶
type FileSystemsClientGetOptions struct {
}
FileSystemsClientGetOptions contains the optional parameters for the FileSystemsClient.Get method.
type FileSystemsClientGetResponse ¶
type FileSystemsClientGetResponse struct {
// Concrete tracked resource types can be created by aliasing this type using a specific property type.
FileSystemResource
}
FileSystemsClientGetResponse contains the response from method FileSystemsClient.Get.
type FileSystemsClientListByResourceGroupOptions ¶
type FileSystemsClientListByResourceGroupOptions struct {
}
FileSystemsClientListByResourceGroupOptions contains the optional parameters for the FileSystemsClient.NewListByResourceGroupPager method.
type FileSystemsClientListByResourceGroupResponse ¶
type FileSystemsClientListByResourceGroupResponse struct {
// The response of a FileSystemResource list operation.
FileSystemResourceListResult
}
FileSystemsClientListByResourceGroupResponse contains the response from method FileSystemsClient.NewListByResourceGroupPager.
type FileSystemsClientListBySubscriptionOptions ¶
type FileSystemsClientListBySubscriptionOptions struct {
}
FileSystemsClientListBySubscriptionOptions contains the optional parameters for the FileSystemsClient.NewListBySubscriptionPager method.
type FileSystemsClientListBySubscriptionResponse ¶
type FileSystemsClientListBySubscriptionResponse struct {
// The response of a FileSystemResource list operation.
FileSystemResourceListResult
}
FileSystemsClientListBySubscriptionResponse contains the response from method FileSystemsClient.NewListBySubscriptionPager.
type FileSystemsClientUpdateOptions ¶
type FileSystemsClientUpdateOptions struct {
}
FileSystemsClientUpdateOptions contains the optional parameters for the FileSystemsClient.Update method.
type FileSystemsClientUpdateResponse ¶
type FileSystemsClientUpdateResponse struct {
// Concrete tracked resource types can be created by aliasing this type using a specific property type.
FileSystemResource
}
FileSystemsClientUpdateResponse contains the response from method FileSystemsClient.Update.
type ManagedServiceIdentity ¶
type ManagedServiceIdentity struct {
// REQUIRED; The type of managed identity assigned to this resource.
Type *ManagedServiceIdentityType
// The identities assigned to this resource by the user.
UserAssignedIdentities map[string]*UserAssignedIdentity
// READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned
// identity.
PrincipalID *string
// READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
TenantID *string
}
ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities)
func (ManagedServiceIdentity) MarshalJSON ¶
func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity.
func (*ManagedServiceIdentity) UnmarshalJSON ¶
func (m *ManagedServiceIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentity.
type ManagedServiceIdentityType ¶
type ManagedServiceIdentityType string
ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
const ( // ManagedServiceIdentityTypeNone - No managed identity. ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" // ManagedServiceIdentityTypeSystemAssigned - System assigned managed identity. ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" // ManagedServiceIdentityTypeSystemAssignedUserAssigned - System and user assigned managed identity. ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" // ManagedServiceIdentityTypeUserAssigned - User assigned managed identity. ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" )
func PossibleManagedServiceIdentityTypeValues ¶
func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
type ManagedServiceIdentityUpdate ¶
type ManagedServiceIdentityUpdate struct {
// The type of managed identity assigned to this resource.
Type *ManagedServiceIdentityType
// The identities assigned to this resource by the user.
UserAssignedIdentities map[string]*UserAssignedIdentity
}
ManagedServiceIdentityUpdate - Managed service identity (system assigned and/or user assigned identities)
func (ManagedServiceIdentityUpdate) MarshalJSON ¶
func (m ManagedServiceIdentityUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentityUpdate.
func (*ManagedServiceIdentityUpdate) UnmarshalJSON ¶
func (m *ManagedServiceIdentityUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentityUpdate.
type MarketplaceDetails ¶
type MarketplaceDetails struct {
// REQUIRED; Offer Id
OfferID *string
// REQUIRED; Plan Id
PlanID *string
// REQUIRED; Plan Name
PlanName *string
// End Date of the subscription
EndDate *string
// Marketplace Subscription Id
MarketplaceSubscriptionID *string
// Private Offer Id
PrivateOfferID *string
// Publisher Id
PublisherID *string
// Term Unit
TermUnit *string
// READ-ONLY; Marketplace subscription status
MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus
}
MarketplaceDetails of Dell FileSystem resource
func (MarketplaceDetails) MarshalJSON ¶
func (m MarketplaceDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MarketplaceDetails.
func (*MarketplaceDetails) UnmarshalJSON ¶
func (m *MarketplaceDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MarketplaceDetails.
type MarketplaceSubscriptionStatus ¶
type MarketplaceSubscriptionStatus string
MarketplaceSubscriptionStatus - Marketplace subscription status of the file system resource
const ( // MarketplaceSubscriptionStatusPendingFulfillmentStart - Fulfillment has not started MarketplaceSubscriptionStatusPendingFulfillmentStart MarketplaceSubscriptionStatus = "PendingFulfillmentStart" // MarketplaceSubscriptionStatusSubscribed - Marketplace offer is subscribed MarketplaceSubscriptionStatusSubscribed MarketplaceSubscriptionStatus = "Subscribed" // MarketplaceSubscriptionStatusSuspended - Marketplace offer is suspended because of non payment MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = "Suspended" // MarketplaceSubscriptionStatusUnsubscribed - Marketplace offer is unsubscribed MarketplaceSubscriptionStatusUnsubscribed MarketplaceSubscriptionStatus = "Unsubscribed" )
func PossibleMarketplaceSubscriptionStatusValues ¶
func PossibleMarketplaceSubscriptionStatusValues() []MarketplaceSubscriptionStatus
PossibleMarketplaceSubscriptionStatusValues returns the possible values for the MarketplaceSubscriptionStatus const type.
type Operation ¶
type Operation struct {
// Localized display information for this particular operation.
Display *OperationDisplay
// READ-ONLY; Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
ActionType *ActionType
// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
// Resource Manager/control-plane operations.
IsDataAction *bool
// READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
// "Microsoft.Compute/virtualMachines/capture/action"
Name *string
// READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
// value is "user,system"
Origin *Origin
}
Operation - REST API Operation
Details of a REST API operation, returned from the Resource Provider Operations API
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct {
// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
Description *string
// READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
// Machine", "Restart Virtual Machine".
Operation *string
// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
// Compute".
Provider *string
// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
// Schedule Collections".
Resource *string
}
OperationDisplay - Localized display information for and operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct {
// REQUIRED; The Operation items on this page
Value []*Operation
// The link to the next page of items
NextLink *string
}
OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an 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.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
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, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List the operations for the provider
Generated from API version 2025-03-21
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example (OperationsListMaximumSetGen) ¶
Generated from example definition: 2025-03-21/Operations_List_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("<subscriptionID>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdellstorage.OperationsClientListResponse{
// OperationListResult: armdellstorage.OperationListResult{
// Value: []*armdellstorage.Operation{
// {
// Name: to.Ptr("rndmegxufrfrypvgt"),
// IsDataAction: to.Ptr(true),
// Display: &armdellstorage.OperationDisplay{
// Provider: to.Ptr("bo"),
// Resource: to.Ptr("mlvmbnno"),
// Operation: to.Ptr("welhqbqmwwzytgtskhmxurcwhpsndg"),
// Description: to.Ptr("gfcmuplcdhodralpafiiwxytg"),
// },
// Origin: to.Ptr(armdellstorage.OriginUser),
// ActionType: to.Ptr(armdellstorage.ActionTypeInternal),
// },
// },
// NextLink: to.Ptr("https://microsoft.com/a"),
// },
// }
}
}
Output:
Example (OperationsListMinimumSetGen) ¶
Generated from example definition: 2025-03-21/Operations_List_MinimumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dell/armdellstorage"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armdellstorage.NewClientFactory("<subscriptionID>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armdellstorage.OperationsClientListResponse{
// OperationListResult: armdellstorage.OperationListResult{
// },
// }
}
}
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct {
}
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type Origin ¶
type Origin string
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
const ( // OriginSystem - Indicates the operation is initiated by a system. OriginSystem Origin = "system" // OriginUser - Indicates the operation is initiated by a user. OriginUser Origin = "user" // OriginUserSystem - Indicates the operation is initiated by a user or system. OriginUserSystem Origin = "user,system" )
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Provisioning State of the File system resource
const ( // ProvisioningStateAccepted - File system resource creation request accepted ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled - File system resource creation canceled ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateCreating - File system resource creation started ProvisioningStateCreating ProvisioningState = "Creating" // ProvisioningStateDeleted - File system resource is deleted ProvisioningStateDeleted ProvisioningState = "Deleted" // ProvisioningStateDeleting - File system resource deletion started ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed - File system resource creation failed ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateNotSpecified - File system resource state is unknown ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" // ProvisioningStateSucceeded - File system resource creation successful ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating - File system resource is being updated ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type ResourceEncryptionType ¶
type ResourceEncryptionType string
ResourceEncryptionType - Identity type of ManagedIdentity Associated with Dell FileSystem resource
const ( // ResourceEncryptionTypeCustomerManagedKeysCMK - Customer managed keys // (CMK) - Only UserAssigned identity is supported ResourceEncryptionTypeCustomerManagedKeysCMK ResourceEncryptionType = "Customer-managed keys (CMK)" // ResourceEncryptionTypeMicrosoftManagedKeysMMK - Microsoft managed keys (Default) ResourceEncryptionTypeMicrosoftManagedKeysMMK ResourceEncryptionType = "Microsoft-managed keys (MMK)" )
func PossibleResourceEncryptionTypeValues ¶
func PossibleResourceEncryptionTypeValues() []ResourceEncryptionType
PossibleResourceEncryptionTypeValues returns the possible values for the ResourceEncryptionType const type.
type SystemData ¶
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time
// The identity that created the resource.
CreatedBy *string
// The type of identity that created the resource.
CreatedByType *CreatedByType
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time
// The identity that last modified the resource.
LastModifiedBy *string
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType
}
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 UserAssignedIdentity ¶
type UserAssignedIdentity struct {
// READ-ONLY; The client ID of the assigned identity.
ClientID *string
// READ-ONLY; The principal ID of the assigned identity.
PrincipalID *string
}
UserAssignedIdentity - User assigned identity properties
func (UserAssignedIdentity) MarshalJSON ¶
func (u UserAssignedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity.
func (*UserAssignedIdentity) UnmarshalJSON ¶
func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity.
type UserDetails ¶
type UserDetails struct {
// REQUIRED; User Email
Email *string
}
UserDetails - User Details of Dell FileSystem resource
func (UserDetails) MarshalJSON ¶
func (u UserDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserDetails.
func (*UserDetails) UnmarshalJSON ¶
func (u *UserDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserDetails.