Documentation ¶
Index ¶
- type ActionType
- type ClientFactory
- type CreatedByType
- 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 MarketplaceDetails
- type MarketplaceSubscriptionStatus
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type ProvisioningState
- type SystemData
- type UserAssignedIdentity
- type UserDetails
Examples ¶
- FileSystemsClient.BeginCreateOrUpdate (FileSystemsCreateOrUpdate)
- FileSystemsClient.BeginCreateOrUpdate (FileSystemsCreateOrUpdateMinimumSetGen)
- FileSystemsClient.BeginDelete (FileSystemsDelete)
- FileSystemsClient.BeginDelete (FileSystemsDeleteMinimumSetGen)
- FileSystemsClient.Get (FileSystemsGet)
- FileSystemsClient.Get (FileSystemsGetMinimumSetGen)
- FileSystemsClient.NewListByResourceGroupPager (FileSystemsListByResourceGroup)
- FileSystemsClient.NewListByResourceGroupPager (FileSystemsListByResourceGroupMinimumSetGen)
- FileSystemsClient.NewListBySubscriptionPager (FileSystemsListBySubscription)
- FileSystemsClient.NewListBySubscriptionPager (FileSystemsListBySubscriptionMinimumSetGen)
- FileSystemsClient.Update (FileSystemsUpdate)
- FileSystemsClient.Update (FileSystemsUpdateMinimumSetGen)
- OperationsClient.NewListPager (OperationsList)
- 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 - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const (
ActionTypeInternal ActionType = "Internal"
)
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
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.
- 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 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.
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; Initial administrator password of the resource AdminPassword *string // REQUIRED; Delegated subnet id for Vnet injection DelegatedSubnetID *string // REQUIRED; Marketplace details MarketplaceDetails *MarketplaceDetails // REQUIRED; Storage Sku StorageSKU *string // REQUIRED; User Details UserDetails *UserDetails // Availability zone AvailabilityZone *string // File system Id of the resource ClusterLoginURL *string // Private IPs of the resource PrivateIPs []*string // READ-ONLY; Provisioning State of the resource ProvisioningState *ProvisioningState }
FileSystemResourceProperties - Properties specific to the Qumulo 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 *ManagedServiceIdentity // 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 { // Delegated subnet id for Vnet injection DelegatedSubnetID *string // Marketplace details MarketplaceDetails *MarketplaceDetails // User Details UserDetails *UserDetails }
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.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - 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 2024-06-19
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fileSystemName - Name of the File System resource
- resource - Resource create parameters.
- options - FileSystemsClientBeginCreateOrUpdateOptions contains the optional parameters for the FileSystemsClient.BeginCreateOrUpdate method.
Example (FileSystemsCreateOrUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MaximumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFileSystemsClient().BeginCreateOrUpdate(ctx, "rgQumulo", "hfcmtgaes", armqumulo.FileSystemResource{ Location: to.Ptr("pnb"), Tags: map[string]*string{ "key7090": to.Ptr("rurrdiaqp"), }, Identity: &armqumulo.ManagedServiceIdentity{ Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ "key7679": {}, }, }, Properties: &armqumulo.FileSystemResourceProperties{ AdminPassword: to.Ptr("fakeTestSecretPlaceholder"), AvailabilityZone: to.Ptr("eqdvbdiuwmhhzqzmksmwllpddqquwt"), ClusterLoginURL: to.Ptr("ykaynsjvhihdthkkvvodjrgc"), DelegatedSubnetID: to.Ptr("jykmxrf"), MarketplaceDetails: &armqumulo.MarketplaceDetails{ MarketplaceSubscriptionID: to.Ptr("xaqtkloiyovmexqhn"), MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), OfferID: to.Ptr("s"), PlanID: to.Ptr("fwtpz"), PublisherID: to.Ptr("czxcfrwodazyaft"), TermUnit: to.Ptr("cfwwczmygsimcyvoclcw"), }, PrivateIPs: []*string{ to.Ptr("gzken")}, StorageSKU: to.Ptr("yhyzby"), UserDetails: &armqumulo.UserDetails{ Email: to.Ptr("aqsnzyroo"), }, }, }, 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.FileSystemResource = armqumulo.FileSystemResource{ // Name: to.Ptr("stftolw"), // Type: to.Ptr("wj"), // ID: to.Ptr("rfta"), // SystemData: &armqumulo.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // CreatedBy: to.Ptr("usnkckwkizihezb"), // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // LastModifiedBy: to.Ptr("yjsiqdgtsmycxlncjceemlucn"), // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), // }, // Location: to.Ptr("pnb"), // Tags: map[string]*string{ // "key7090": to.Ptr("rurrdiaqp"), // }, // Identity: &armqumulo.ManagedServiceIdentity{ // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ // "key7679": &armqumulo.UserAssignedIdentity{ // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // }, // }, // }, // Properties: &armqumulo.FileSystemResourceProperties{ // AvailabilityZone: to.Ptr("eqdvbdiuwmhhzqzmksmwllpddqquwt"), // ClusterLoginURL: to.Ptr("ykaynsjvhihdthkkvvodjrgc"), // DelegatedSubnetID: to.Ptr("jykmxrf"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("xaqtkloiyovmexqhn"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("s"), // PlanID: to.Ptr("fwtpz"), // PublisherID: to.Ptr("czxcfrwodazyaft"), // TermUnit: to.Ptr("cfwwczmygsimcyvoclcw"), // }, // PrivateIPs: []*string{ // to.Ptr("gzken")}, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("yhyzby"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }
Output:
Example (FileSystemsCreateOrUpdateMinimumSetGen) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MinimumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFileSystemsClient().BeginCreateOrUpdate(ctx, "rgopenapi", "aaaaaaaa", armqumulo.FileSystemResource{ Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"), Properties: &armqumulo.FileSystemResourceProperties{ AdminPassword: to.Ptr("fakeTestSecretPlaceholder"), DelegatedSubnetID: to.Ptr("aaaaaaaaaa"), MarketplaceDetails: &armqumulo.MarketplaceDetails{ MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaa"), MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"), PlanID: to.Ptr("aaaaaa"), }, StorageSKU: to.Ptr("Standard"), UserDetails: &armqumulo.UserDetails{ Email: to.Ptr("viptslwulnpaupfljvnjeq"), }, }, }, 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.FileSystemResource = armqumulo.FileSystemResource{ // ID: to.Ptr("aaaaaaaaaaaaaaaaa"), // Location: to.Ptr("aaaaaaaaa"), // Properties: &armqumulo.FileSystemResourceProperties{ // DelegatedSubnetID: to.Ptr("aaaaaaaaaa"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaa"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"), // PlanID: to.Ptr("aaaaaa"), // PublisherID: to.Ptr("aa"), // }, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("Standard"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }
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 2024-06-19
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fileSystemName - Name of the File System resource
- options - FileSystemsClientBeginDeleteOptions contains the optional parameters for the FileSystemsClient.BeginDelete method.
Example (FileSystemsDelete) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MaximumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFileSystemsClient().BeginDelete(ctx, "rgQumulo", "xoschzkccroahrykedlvbbnsddq", 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: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MinimumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFileSystemsClient().BeginDelete(ctx, "rgQumulo", "jgtskkiplquyrlkaxvhdg", 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 2024-06-19
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fileSystemName - Name of the File System resource
- options - FileSystemsClientGetOptions contains the optional parameters for the FileSystemsClient.Get method.
Example (FileSystemsGet) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MaximumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewFileSystemsClient().Get(ctx, "rgQumulo", "sihbehcisdqtqqyfiewiiaphgh", 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.FileSystemResource = armqumulo.FileSystemResource{ // Name: to.Ptr("stftolw"), // Type: to.Ptr("wj"), // ID: to.Ptr("rfta"), // SystemData: &armqumulo.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // CreatedBy: to.Ptr("usnkckwkizihezb"), // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // LastModifiedBy: to.Ptr("yjsiqdgtsmycxlncjceemlucn"), // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), // }, // Location: to.Ptr("pnb"), // Tags: map[string]*string{ // "key7090": to.Ptr("rurrdiaqp"), // }, // Identity: &armqumulo.ManagedServiceIdentity{ // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ // "key7679": &armqumulo.UserAssignedIdentity{ // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // }, // }, // }, // Properties: &armqumulo.FileSystemResourceProperties{ // AvailabilityZone: to.Ptr("eqdvbdiuwmhhzqzmksmwllpddqquwt"), // ClusterLoginURL: to.Ptr("ykaynsjvhihdthkkvvodjrgc"), // DelegatedSubnetID: to.Ptr("jykmxrf"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("xaqtkloiyovmexqhn"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("s"), // PlanID: to.Ptr("fwtpz"), // PublisherID: to.Ptr("czxcfrwodazyaft"), // TermUnit: to.Ptr("cfwwczmygsimcyvoclcw"), // }, // PrivateIPs: []*string{ // to.Ptr("gzken")}, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("yhyzby"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }
Output:
Example (FileSystemsGetMinimumSetGen) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MinimumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewFileSystemsClient().Get(ctx, "rgQumulo", "aaaaaaaaaaaaaaaaa", 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.FileSystemResource = armqumulo.FileSystemResource{ // Name: to.Ptr("aaaaa"), // ID: to.Ptr("aaaaaaaaaaaaaaaaa"), // Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // Properties: &armqumulo.FileSystemResourceProperties{ // DelegatedSubnetID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaaaaaa"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("aaaaaaaaa"), // PlanID: to.Ptr("aaaaaaa"), // TermUnit: to.Ptr("zxv"), // }, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("Standard"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }
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 2024-06-19
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - FileSystemsClientListByResourceGroupOptions contains the optional parameters for the FileSystemsClient.NewListByResourceGroupPager method.
Example (FileSystemsListByResourceGroup) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MaximumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewFileSystemsClient().NewListByResourceGroupPager("rgQumulo", 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.FileSystemResourceListResult = armqumulo.FileSystemResourceListResult{ // Value: []*armqumulo.FileSystemResource{ // { // Name: to.Ptr("stftolw"), // Type: to.Ptr("wj"), // ID: to.Ptr("rfta"), // SystemData: &armqumulo.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // CreatedBy: to.Ptr("usnkckwkizihezb"), // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // LastModifiedBy: to.Ptr("yjsiqdgtsmycxlncjceemlucn"), // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), // }, // Location: to.Ptr("pnb"), // Tags: map[string]*string{ // "key7090": to.Ptr("rurrdiaqp"), // }, // Identity: &armqumulo.ManagedServiceIdentity{ // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ // "key7679": &armqumulo.UserAssignedIdentity{ // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // }, // }, // }, // Properties: &armqumulo.FileSystemResourceProperties{ // AvailabilityZone: to.Ptr("eqdvbdiuwmhhzqzmksmwllpddqquwt"), // ClusterLoginURL: to.Ptr("ykaynsjvhihdthkkvvodjrgc"), // DelegatedSubnetID: to.Ptr("jykmxrf"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("xaqtkloiyovmexqhn"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("s"), // PlanID: to.Ptr("fwtpz"), // PublisherID: to.Ptr("czxcfrwodazyaft"), // TermUnit: to.Ptr("cfwwczmygsimcyvoclcw"), // }, // PrivateIPs: []*string{ // to.Ptr("gzken")}, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("yhyzby"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }}, // } }
Output:
Example (FileSystemsListByResourceGroupMinimumSetGen) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MinimumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewFileSystemsClient().NewListByResourceGroupPager("rgQumulo", 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.FileSystemResourceListResult = armqumulo.FileSystemResourceListResult{ // Value: []*armqumulo.FileSystemResource{ // { // Name: to.Ptr("aaaaa"), // ID: to.Ptr("aaaaaaaaaaaaaaaaa"), // Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // Properties: &armqumulo.FileSystemResourceProperties{ // DelegatedSubnetID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaaaaaa"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("aaaaaaaaa"), // PlanID: to.Ptr("aaaaaaa"), // }, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("Standard"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }}, // } }
Output:
func (*FileSystemsClient) NewListBySubscriptionPager ¶
func (client *FileSystemsClient) NewListBySubscriptionPager(options *FileSystemsClientListBySubscriptionOptions) *runtime.Pager[FileSystemsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List FileSystemResource resources by subscription ID
Generated from API version 2024-06-19
- options - FileSystemsClientListBySubscriptionOptions contains the optional parameters for the FileSystemsClient.NewListBySubscriptionPager method.
Example (FileSystemsListBySubscription) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MaximumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", 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.FileSystemResourceListResult = armqumulo.FileSystemResourceListResult{ // Value: []*armqumulo.FileSystemResource{ // { // Name: to.Ptr("stftolw"), // Type: to.Ptr("wj"), // ID: to.Ptr("rfta"), // SystemData: &armqumulo.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // CreatedBy: to.Ptr("usnkckwkizihezb"), // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // LastModifiedBy: to.Ptr("yjsiqdgtsmycxlncjceemlucn"), // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), // }, // Location: to.Ptr("pnb"), // Tags: map[string]*string{ // "key7090": to.Ptr("rurrdiaqp"), // }, // Identity: &armqumulo.ManagedServiceIdentity{ // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ // "key7679": &armqumulo.UserAssignedIdentity{ // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // }, // }, // }, // Properties: &armqumulo.FileSystemResourceProperties{ // AvailabilityZone: to.Ptr("eqdvbdiuwmhhzqzmksmwllpddqquwt"), // ClusterLoginURL: to.Ptr("ykaynsjvhihdthkkvvodjrgc"), // DelegatedSubnetID: to.Ptr("jykmxrf"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("xaqtkloiyovmexqhn"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("s"), // PlanID: to.Ptr("fwtpz"), // PublisherID: to.Ptr("czxcfrwodazyaft"), // TermUnit: to.Ptr("cfwwczmygsimcyvoclcw"), // }, // PrivateIPs: []*string{ // to.Ptr("gzken")}, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("yhyzby"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }}, // } }
Output:
Example (FileSystemsListBySubscriptionMinimumSetGen) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MinimumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", 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.FileSystemResourceListResult = armqumulo.FileSystemResourceListResult{ // Value: []*armqumulo.FileSystemResource{ // { // Name: to.Ptr("aaaaa"), // ID: to.Ptr("aaaaaaaaaaaaaaaaa"), // Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // Properties: &armqumulo.FileSystemResourceProperties{ // DelegatedSubnetID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaaaaaa"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("aaaaaaaaa"), // PlanID: to.Ptr("aaaaaaa"), // }, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("Standard"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }}, // } }
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 2024-06-19
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fileSystemName - Name of the File System resource
- properties - The resource properties to be updated.
- options - FileSystemsClientUpdateOptions contains the optional parameters for the FileSystemsClient.Update method.
Example (FileSystemsUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MaximumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewFileSystemsClient().Update(ctx, "rgQumulo", "ahpixnvykleksjlr", armqumulo.FileSystemResourceUpdate{ Identity: &armqumulo.ManagedServiceIdentity{ Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ "key7679": {}, }, }, Properties: &armqumulo.FileSystemResourceUpdateProperties{ DelegatedSubnetID: to.Ptr("bqaryqsjlackxphpmzffgoqsvm"), MarketplaceDetails: &armqumulo.MarketplaceDetails{ MarketplaceSubscriptionID: to.Ptr("xaqtkloiyovmexqhn"), MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), OfferID: to.Ptr("s"), PlanID: to.Ptr("fwtpz"), PublisherID: to.Ptr("czxcfrwodazyaft"), TermUnit: to.Ptr("cfwwczmygsimcyvoclcw"), }, UserDetails: &armqumulo.UserDetails{ Email: to.Ptr("aqsnzyroo"), }, }, Tags: map[string]*string{ "key357": to.Ptr("ztkkvhfia"), }, }, 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.FileSystemResource = armqumulo.FileSystemResource{ // Name: to.Ptr("stftolw"), // Type: to.Ptr("wj"), // ID: to.Ptr("rfta"), // SystemData: &armqumulo.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // CreatedBy: to.Ptr("usnkckwkizihezb"), // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-03-21T08:11:54.895Z"); return t}()), // LastModifiedBy: to.Ptr("yjsiqdgtsmycxlncjceemlucn"), // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), // }, // Location: to.Ptr("pnb"), // Tags: map[string]*string{ // "key7090": to.Ptr("rurrdiaqp"), // }, // Identity: &armqumulo.ManagedServiceIdentity{ // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ // "key7679": &armqumulo.UserAssignedIdentity{ // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), // }, // }, // }, // Properties: &armqumulo.FileSystemResourceProperties{ // AvailabilityZone: to.Ptr("eqdvbdiuwmhhzqzmksmwllpddqquwt"), // ClusterLoginURL: to.Ptr("ykaynsjvhihdthkkvvodjrgc"), // DelegatedSubnetID: to.Ptr("jykmxrf"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("xaqtkloiyovmexqhn"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("s"), // PlanID: to.Ptr("fwtpz"), // PublisherID: to.Ptr("czxcfrwodazyaft"), // TermUnit: to.Ptr("cfwwczmygsimcyvoclcw"), // }, // PrivateIPs: []*string{ // to.Ptr("gzken")}, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("yhyzby"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }
Output:
Example (FileSystemsUpdateMinimumSetGen) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MinimumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewFileSystemsClient().Update(ctx, "rgQumulo", "aaaaaaaaaaaaaaaaa", armqumulo.FileSystemResourceUpdate{}, 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.FileSystemResource = armqumulo.FileSystemResource{ // Name: to.Ptr("aaaaa"), // Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // Properties: &armqumulo.FileSystemResourceProperties{ // DelegatedSubnetID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), // MarketplaceDetails: &armqumulo.MarketplaceDetails{ // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaaaaaa"), // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), // OfferID: to.Ptr("aaaaaaaaa"), // PlanID: to.Ptr("aaaaaaa"), // }, // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), // StorageSKU: to.Ptr("Standard"), // UserDetails: &armqumulo.UserDetails{ // }, // }, // }
Output:
type FileSystemsClientBeginCreateOrUpdateOptions ¶
type FileSystemsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FileSystemsClientBeginCreateOrUpdateOptions contains the optional parameters for the FileSystemsClient.BeginCreateOrUpdate method.
type FileSystemsClientBeginDeleteOptions ¶
type FileSystemsClientBeginDeleteOptions struct { // Resumes the LRO 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; Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). Type *ManagedServiceIdentityType // The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM // resource ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. // The dictionary values can be empty objects ({}) in // requests. 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 ManagedServiceIdentityType = "None" ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" )
func PossibleManagedServiceIdentityTypeValues ¶
func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
type MarketplaceDetails ¶
type MarketplaceDetails struct { // REQUIRED; Offer Id OfferID *string // REQUIRED; Plan Id PlanID *string // Marketplace Subscription Id MarketplaceSubscriptionID *string // Publisher Id PublisherID *string // Term Unit TermUnit *string // READ-ONLY; Marketplace subscription status MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus }
MarketplaceDetails of Qumulo 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; 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 ARM/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 - 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 this particular 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 { // READ-ONLY; URL to get the next set of operation list results (if there are any). NextLink *string // READ-ONLY; List of operations supported by the resource provider Value []*Operation }
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 - 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 2024-06-19
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example (OperationsList) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MaximumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", 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.OperationListResult = armqumulo.OperationListResult{ // Value: []*armqumulo.Operation{ // { // Name: to.Ptr("melhpzamnyx"), // ActionType: to.Ptr(armqumulo.ActionTypeInternal), // Display: &armqumulo.OperationDisplay{ // Description: to.Ptr("vodhl"), // Operation: to.Ptr("ayfoeuuyhtwjafroqzimyujr"), // Provider: to.Ptr("ilyrhd"), // Resource: to.Ptr("vjz"), // }, // IsDataAction: to.Ptr(true), // Origin: to.Ptr(armqumulo.OriginUser), // }}, // } }
Output:
Example (OperationsListMinimumSetGen) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/72de08114673a547de8a017c85ed89a2017a86f7/specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MinimumSet_Gen.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armqumulo.NewClientFactory("<subscription-id>", 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.OperationListResult = armqumulo.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"
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" // 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 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 Qumulo 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.