const ( // DefaultBaseURI is the default URI used for the service Storagepool DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
ACL access Control List (ACL) for an iSCSI Target; defines LUN masking policy
type ACL struct { // InitiatorIqn - iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client". InitiatorIqn *string `json:"initiatorIqn,omitempty"` // MappedLuns - List of LUN names mapped to the ACL. MappedLuns *[]string `json:"mappedLuns,omitempty"` }
BaseClient is the base client for Storagepool.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
CreatedByType enumerates the values for created by type.
type CreatedByType string
const ( // CreatedByTypeApplication ... CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey ... CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity ... CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser ... CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
Disk azure Managed Disk to attach to the Disk Pool.
type Disk struct { // ID - Unique Azure Resource ID of the Managed Disk. ID *string `json:"id,omitempty"` }
DiskPool response for Disk Pool request.
type DiskPool struct { autorest.Response `json:"-"` // Sku - Determines the SKU of the Disk pool *Sku `json:"sku,omitempty"` // DiskPoolProperties - Properties of Disk Pool. *DiskPoolProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; Resource metadata required by ARM RPC SystemData *SystemMetadata `json:"systemData,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives. Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (dp DiskPool) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DiskPool.
func (dp *DiskPool) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DiskPool struct.
DiskPoolCreate request payload for create or update Disk Pool request.
type DiskPoolCreate struct { // Sku - Determines the SKU of the Disk Pool Sku *Sku `json:"sku,omitempty"` // DiskPoolCreateProperties - Properties for Disk Pool create request. *DiskPoolCreateProperties `json:"properties,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives. Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (dpc DiskPoolCreate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DiskPoolCreate.
func (dpc *DiskPoolCreate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DiskPoolCreate struct.
DiskPoolCreateProperties properties for Disk Pool create or update request.
type DiskPoolCreateProperties struct { // AvailabilityZones - Logical zone for Disk Pool resource; example: ["1"]. AvailabilityZones *[]string `json:"availabilityZones,omitempty"` // Disks - List of Azure Managed Disks to attach to a Disk Pool. Disks *[]Disk `json:"disks,omitempty"` // SubnetID - Azure Resource ID of a Subnet for the Disk Pool. SubnetID *string `json:"subnetId,omitempty"` // AdditionalCapabilities - List of additional capabilities for a Disk Pool. AdditionalCapabilities *[]string `json:"additionalCapabilities,omitempty"` }
DiskPoolListResult list of Disk Pools
type DiskPoolListResult struct { autorest.Response `json:"-"` // Value - An array of Disk pool objects. Value *[]DiskPool `json:"value,omitempty"` // NextLink - READ-ONLY; URI to fetch the next section of the paginated response. NextLink *string `json:"nextLink,omitempty"` }
func (dplr DiskPoolListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (dplr DiskPoolListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DiskPoolListResult.
DiskPoolListResultIterator provides access to a complete listing of DiskPool values.
type DiskPoolListResultIterator struct {
// contains filtered or unexported fields
}
func NewDiskPoolListResultIterator(page DiskPoolListResultPage) DiskPoolListResultIterator
Creates a new instance of the DiskPoolListResultIterator type.
func (iter *DiskPoolListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *DiskPoolListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter DiskPoolListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter DiskPoolListResultIterator) Response() DiskPoolListResult
Response returns the raw server response from the last page request.
func (iter DiskPoolListResultIterator) Value() DiskPool
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
DiskPoolListResultPage contains a page of DiskPool values.
type DiskPoolListResultPage struct {
// contains filtered or unexported fields
}
func NewDiskPoolListResultPage(cur DiskPoolListResult, getNextPage func(context.Context, DiskPoolListResult) (DiskPoolListResult, error)) DiskPoolListResultPage
Creates a new instance of the DiskPoolListResultPage type.
func (page *DiskPoolListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *DiskPoolListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page DiskPoolListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page DiskPoolListResultPage) Response() DiskPoolListResult
Response returns the raw server response from the last page request.
func (page DiskPoolListResultPage) Values() []DiskPool
Values returns the slice of values for the current page or nil if there are no values.
DiskPoolProperties disk Pool response properties.
type DiskPoolProperties struct { // ProvisioningState - State of the operation on the resource. Possible values include: 'ProvisioningStatesInvalid', 'ProvisioningStatesSucceeded', 'ProvisioningStatesFailed', 'ProvisioningStatesCanceled', 'ProvisioningStatesPending', 'ProvisioningStatesCreating', 'ProvisioningStatesUpdating', 'ProvisioningStatesDeleting' ProvisioningState ProvisioningStates `json:"provisioningState,omitempty"` // AvailabilityZones - Logical zone for Disk Pool resource; example: ["1"]. AvailabilityZones *[]string `json:"availabilityZones,omitempty"` // Status - Operational status of the Disk Pool. Possible values include: 'OperationalStatusInvalid', 'OperationalStatusUnknown', 'OperationalStatusHealthy', 'OperationalStatusUnhealthy', 'OperationalStatusUpdating', 'OperationalStatusRunning', 'OperationalStatusStopped', 'OperationalStatusStoppeddeallocated' Status OperationalStatus `json:"status,omitempty"` // Disks - List of Azure Managed Disks to attach to a Disk Pool. Disks *[]Disk `json:"disks,omitempty"` // SubnetID - Azure Resource ID of a Subnet for the Disk Pool. SubnetID *string `json:"subnetId,omitempty"` // AdditionalCapabilities - List of additional capabilities for Disk Pool. AdditionalCapabilities *[]string `json:"additionalCapabilities,omitempty"` }
DiskPoolTier enumerates the values for disk pool tier.
type DiskPoolTier string
const ( // DiskPoolTierBasic ... DiskPoolTierBasic DiskPoolTier = "Basic" // DiskPoolTierPremium ... DiskPoolTierPremium DiskPoolTier = "Premium" // DiskPoolTierStandard ... DiskPoolTierStandard DiskPoolTier = "Standard" )
func PossibleDiskPoolTierValues() []DiskPoolTier
PossibleDiskPoolTierValues returns an array of possible values for the DiskPoolTier const type.
DiskPoolUpdate request payload for Update Disk Pool request.
type DiskPoolUpdate struct { // DiskPoolUpdateProperties - Properties for Disk Pool update request. *DiskPoolUpdateProperties `json:"properties,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` }
func (dpu DiskPoolUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DiskPoolUpdate.
func (dpu *DiskPoolUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DiskPoolUpdate struct.
DiskPoolUpdateProperties properties for Disk Pool update request.
type DiskPoolUpdateProperties struct { // Disks - List of Azure Managed Disks to attach to a Disk Pool. Disks *[]Disk `json:"disks,omitempty"` }
DiskPoolZoneInfo disk Pool Sku Details
type DiskPoolZoneInfo struct { // AvailabilityZones - Logical zone for Disk Pool resource; example: ["1"]. AvailabilityZones *[]string `json:"availabilityZones,omitempty"` // AdditionalCapabilities - List of additional capabilities for Disk Pool. AdditionalCapabilities *[]string `json:"additionalCapabilities,omitempty"` // Sku - Determines the SKU of VM deployed for Disk Pool Sku *Sku `json:"sku,omitempty"` }
DiskPoolZoneListResult list Disk Pool skus operation response.
type DiskPoolZoneListResult struct { autorest.Response `json:"-"` // Value - The list of Disk Pool Skus. Value *[]DiskPoolZoneInfo `json:"value,omitempty"` // NextLink - URI to fetch the next section of the paginated response. NextLink *string `json:"nextLink,omitempty"` }
func (dpzlr DiskPoolZoneListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
DiskPoolZoneListResultIterator provides access to a complete listing of DiskPoolZoneInfo values.
type DiskPoolZoneListResultIterator struct {
// contains filtered or unexported fields
}
func NewDiskPoolZoneListResultIterator(page DiskPoolZoneListResultPage) DiskPoolZoneListResultIterator
Creates a new instance of the DiskPoolZoneListResultIterator type.
func (iter *DiskPoolZoneListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *DiskPoolZoneListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter DiskPoolZoneListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter DiskPoolZoneListResultIterator) Response() DiskPoolZoneListResult
Response returns the raw server response from the last page request.
func (iter DiskPoolZoneListResultIterator) Value() DiskPoolZoneInfo
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
DiskPoolZoneListResultPage contains a page of DiskPoolZoneInfo values.
type DiskPoolZoneListResultPage struct {
// contains filtered or unexported fields
}
func NewDiskPoolZoneListResultPage(cur DiskPoolZoneListResult, getNextPage func(context.Context, DiskPoolZoneListResult) (DiskPoolZoneListResult, error)) DiskPoolZoneListResultPage
Creates a new instance of the DiskPoolZoneListResultPage type.
func (page *DiskPoolZoneListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *DiskPoolZoneListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page DiskPoolZoneListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page DiskPoolZoneListResultPage) Response() DiskPoolZoneListResult
Response returns the raw server response from the last page request.
func (page DiskPoolZoneListResultPage) Values() []DiskPoolZoneInfo
Values returns the slice of values for the current page or nil if there are no values.
DiskPoolZonesClient is the client for the DiskPoolZones methods of the Storagepool service.
type DiskPoolZonesClient struct { BaseClient }
func NewDiskPoolZonesClient(subscriptionID string) DiskPoolZonesClient
NewDiskPoolZonesClient creates an instance of the DiskPoolZonesClient client.
func NewDiskPoolZonesClientWithBaseURI(baseURI string, subscriptionID string) DiskPoolZonesClient
NewDiskPoolZonesClientWithBaseURI creates an instance of the DiskPoolZonesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client DiskPoolZonesClient) List(ctx context.Context, location string) (result DiskPoolZoneListResultPage, err error)
List lists available Disk Pool Skus in an Azure location. Parameters: location - the location of the resource.
func (client DiskPoolZonesClient) ListComplete(ctx context.Context, location string) (result DiskPoolZoneListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client DiskPoolZonesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)
ListPreparer prepares the List request.
func (client DiskPoolZonesClient) ListResponder(resp *http.Response) (result DiskPoolZoneListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client DiskPoolZonesClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
DiskPoolsClient is the client for the DiskPools methods of the Storagepool service.
type DiskPoolsClient struct { BaseClient }
func NewDiskPoolsClient(subscriptionID string) DiskPoolsClient
NewDiskPoolsClient creates an instance of the DiskPoolsClient client.
func NewDiskPoolsClientWithBaseURI(baseURI string, subscriptionID string) DiskPoolsClient
NewDiskPoolsClientWithBaseURI creates an instance of the DiskPoolsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client DiskPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolCreatePayload DiskPoolCreate) (result DiskPoolsCreateOrUpdateFuture, err error)
CreateOrUpdate create or Update Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. diskPoolCreatePayload - request payload for Disk Pool create operation
func (client DiskPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolCreatePayload DiskPoolCreate) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client DiskPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result DiskPool, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client DiskPoolsClient) CreateOrUpdateSender(req *http.Request) (future DiskPoolsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client DiskPoolsClient) Deallocate(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsDeallocateFuture, err error)
Deallocate shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that this Disk Pool uses. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.
func (client DiskPoolsClient) DeallocatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
DeallocatePreparer prepares the Deallocate request.
func (client DiskPoolsClient) DeallocateResponder(resp *http.Response) (result autorest.Response, err error)
DeallocateResponder handles the response to the Deallocate request. The method always closes the http.Response Body.
func (client DiskPoolsClient) DeallocateSender(req *http.Request) (future DiskPoolsDeallocateFuture, err error)
DeallocateSender sends the Deallocate request. The method will close the http.Response Body if it receives an error.
func (client DiskPoolsClient) Delete(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsDeleteFuture, err error)
Delete delete a Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.
func (client DiskPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client DiskPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (client DiskPoolsClient) DeleteSender(req *http.Request) (future DiskPoolsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client DiskPoolsClient) Get(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPool, err error)
Get get a Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.
func (client DiskPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client DiskPoolsClient) GetResponder(resp *http.Response) (result DiskPool, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client DiskPoolsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client DiskPoolsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DiskPoolListResultPage, err error)
ListByResourceGroup gets a list of DiskPools in a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (client DiskPoolsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result DiskPoolListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client DiskPoolsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client DiskPoolsClient) ListByResourceGroupResponder(resp *http.Response) (result DiskPoolListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (client DiskPoolsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (client DiskPoolsClient) ListBySubscription(ctx context.Context) (result DiskPoolListResultPage, err error)
ListBySubscription gets a list of Disk Pools in a subscription
func (client DiskPoolsClient) ListBySubscriptionComplete(ctx context.Context) (result DiskPoolListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client DiskPoolsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (client DiskPoolsClient) ListBySubscriptionResponder(resp *http.Response) (result DiskPoolListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (client DiskPoolsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, diskPoolName string) (result OutboundEnvironmentEndpointListPage, err error)
ListOutboundNetworkDependenciesEndpoints gets the network endpoints of all outbound dependencies of a Disk Pool Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.
func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result OutboundEnvironmentEndpointListIterator, err error)
ListOutboundNetworkDependenciesEndpointsComplete enumerates all values, automatically crossing page boundaries as required.
func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
ListOutboundNetworkDependenciesEndpointsPreparer prepares the ListOutboundNetworkDependenciesEndpoints request.
func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsResponder(resp *http.Response) (result OutboundEnvironmentEndpointList, err error)
ListOutboundNetworkDependenciesEndpointsResponder handles the response to the ListOutboundNetworkDependenciesEndpoints request. The method always closes the http.Response Body.
func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsSender(req *http.Request) (*http.Response, error)
ListOutboundNetworkDependenciesEndpointsSender sends the ListOutboundNetworkDependenciesEndpoints request. The method will close the http.Response Body if it receives an error.
func (client DiskPoolsClient) Start(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsStartFuture, err error)
Start the operation to start a Disk Pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.
func (client DiskPoolsClient) StartPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
StartPreparer prepares the Start request.
func (client DiskPoolsClient) StartResponder(resp *http.Response) (result autorest.Response, err error)
StartResponder handles the response to the Start request. The method always closes the http.Response Body.
func (client DiskPoolsClient) StartSender(req *http.Request) (future DiskPoolsStartFuture, err error)
StartSender sends the Start request. The method will close the http.Response Body if it receives an error.
func (client DiskPoolsClient) Update(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolUpdatePayload DiskPoolUpdate) (result DiskPoolsUpdateFuture, err error)
Update update a Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. diskPoolUpdatePayload - request payload for Disk Pool update operation.
func (client DiskPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolUpdatePayload DiskPoolUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client DiskPoolsClient) UpdateResponder(resp *http.Response) (result DiskPool, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client DiskPoolsClient) UpdateSender(req *http.Request) (future DiskPoolsUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
DiskPoolsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DiskPoolsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DiskPoolsClient) (DiskPool, error) }
func (future *DiskPoolsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DiskPoolsDeallocateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DiskPoolsDeallocateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DiskPoolsClient) (autorest.Response, error) }
func (future *DiskPoolsDeallocateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DiskPoolsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DiskPoolsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DiskPoolsClient) (autorest.Response, error) }
func (future *DiskPoolsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DiskPoolsStartFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DiskPoolsStartFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DiskPoolsClient) (autorest.Response, error) }
func (future *DiskPoolsStartFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DiskPoolsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DiskPoolsUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DiskPoolsClient) (DiskPool, error) }
func (future *DiskPoolsUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
EndpointDependency a domain name that a service is reached at, including details of the current connection status.
type EndpointDependency struct { // DomainName - The domain name of the dependency. DomainName *string `json:"domainName,omitempty"` // EndpointDetails - The IP Addresses and Ports used when connecting to DomainName. EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"` }
EndpointDetail current TCP connectivity information from the App Service Environment to a single endpoint.
type EndpointDetail struct { // IPAddress - An IP Address that Domain Name currently resolves to. IPAddress *string `json:"ipAddress,omitempty"` // Port - The port an endpoint is connected to. Port *int32 `json:"port,omitempty"` // Latency - The time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port. Latency *float64 `json:"latency,omitempty"` // IsAccessible - Whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port. IsAccessible *bool `json:"isAccessible,omitempty"` }
Error the resource management error response.
type Error struct { // Error - RP error response. Error *ErrorResponse `json:"error,omitempty"` }
ErrorAdditionalInfo the resource management error additional info.
type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. Type *string `json:"type,omitempty"` // Info - READ-ONLY; The additional info. Info interface{} `json:"info,omitempty"` }
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
ErrorResponse the resource management error response.
type ErrorResponse struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The error target. Target *string `json:"target,omitempty"` // Details - READ-ONLY; The error details. Details *[]ErrorResponse `json:"details,omitempty"` // AdditionalInfo - READ-ONLY; The error additional info. AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` }
func (er ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorResponse.
IscsiLun LUN to expose the Azure Managed Disk.
type IscsiLun struct { // Name - User defined name for iSCSI LUN; example: "lun0" Name *string `json:"name,omitempty"` // ManagedDiskAzureResourceID - Azure Resource ID of the Managed Disk. ManagedDiskAzureResourceID *string `json:"managedDiskAzureResourceId,omitempty"` // Lun - READ-ONLY; Specifies the Logical Unit Number of the iSCSI LUN. Lun *int32 `json:"lun,omitempty"` }
func (il IscsiLun) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IscsiLun.
IscsiTarget response for iSCSI Target requests.
type IscsiTarget struct { autorest.Response `json:"-"` // IscsiTargetProperties - Properties for iSCSI Target operations. *IscsiTargetProperties `json:"properties,omitempty"` // SystemData - Resource metadata required by ARM RPC SystemData *SystemMetadata `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (it IscsiTarget) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IscsiTarget.
func (it *IscsiTarget) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for IscsiTarget struct.
IscsiTargetACLMode enumerates the values for iscsi target acl mode.
type IscsiTargetACLMode string
const ( // IscsiTargetACLModeDynamic ... IscsiTargetACLModeDynamic IscsiTargetACLMode = "Dynamic" // IscsiTargetACLModeStatic ... IscsiTargetACLModeStatic IscsiTargetACLMode = "Static" )
func PossibleIscsiTargetACLModeValues() []IscsiTargetACLMode
PossibleIscsiTargetACLModeValues returns an array of possible values for the IscsiTargetACLMode const type.
IscsiTargetCreate payload for iSCSI Target create or update requests.
type IscsiTargetCreate struct { // IscsiTargetCreateProperties - Properties for iSCSI Target create request. *IscsiTargetCreateProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (itc IscsiTargetCreate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IscsiTargetCreate.
func (itc *IscsiTargetCreate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for IscsiTargetCreate struct.
IscsiTargetCreateProperties properties for iSCSI Target create or update request.
type IscsiTargetCreateProperties struct { // ACLMode - Mode for Target connectivity. Possible values include: 'IscsiTargetACLModeDynamic', 'IscsiTargetACLModeStatic' ACLMode IscsiTargetACLMode `json:"aclMode,omitempty"` // TargetIqn - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server". TargetIqn *string `json:"targetIqn,omitempty"` // StaticAcls - Access Control List (ACL) for an iSCSI Target; defines LUN masking policy StaticAcls *[]ACL `json:"staticAcls,omitempty"` // Luns - List of LUNs to be exposed through iSCSI Target. Luns *[]IscsiLun `json:"luns,omitempty"` }
IscsiTargetList list of iSCSI Targets.
type IscsiTargetList struct { autorest.Response `json:"-"` // Value - An array of iSCSI Targets in a Disk Pool. Value *[]IscsiTarget `json:"value,omitempty"` // NextLink - READ-ONLY; URI to fetch the next section of the paginated response. NextLink *string `json:"nextLink,omitempty"` }
func (itl IscsiTargetList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (itl IscsiTargetList) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IscsiTargetList.
IscsiTargetListIterator provides access to a complete listing of IscsiTarget values.
type IscsiTargetListIterator struct {
// contains filtered or unexported fields
}
func NewIscsiTargetListIterator(page IscsiTargetListPage) IscsiTargetListIterator
Creates a new instance of the IscsiTargetListIterator type.
func (iter *IscsiTargetListIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *IscsiTargetListIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter IscsiTargetListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter IscsiTargetListIterator) Response() IscsiTargetList
Response returns the raw server response from the last page request.
func (iter IscsiTargetListIterator) Value() IscsiTarget
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
IscsiTargetListPage contains a page of IscsiTarget values.
type IscsiTargetListPage struct {
// contains filtered or unexported fields
}
func NewIscsiTargetListPage(cur IscsiTargetList, getNextPage func(context.Context, IscsiTargetList) (IscsiTargetList, error)) IscsiTargetListPage
Creates a new instance of the IscsiTargetListPage type.
func (page *IscsiTargetListPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *IscsiTargetListPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page IscsiTargetListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page IscsiTargetListPage) Response() IscsiTargetList
Response returns the raw server response from the last page request.
func (page IscsiTargetListPage) Values() []IscsiTarget
Values returns the slice of values for the current page or nil if there are no values.
IscsiTargetProperties response properties for iSCSI Target operations.
type IscsiTargetProperties struct { // ACLMode - Mode for Target connectivity. Possible values include: 'IscsiTargetACLModeDynamic', 'IscsiTargetACLModeStatic' ACLMode IscsiTargetACLMode `json:"aclMode,omitempty"` // StaticAcls - Access Control List (ACL) for an iSCSI Target; defines LUN masking policy StaticAcls *[]ACL `json:"staticAcls,omitempty"` // Luns - List of LUNs to be exposed through iSCSI Target. Luns *[]IscsiLun `json:"luns,omitempty"` // TargetIqn - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server". TargetIqn *string `json:"targetIqn,omitempty"` // ProvisioningState - State of the operation on the resource. Possible values include: 'ProvisioningStatesInvalid', 'ProvisioningStatesSucceeded', 'ProvisioningStatesFailed', 'ProvisioningStatesCanceled', 'ProvisioningStatesPending', 'ProvisioningStatesCreating', 'ProvisioningStatesUpdating', 'ProvisioningStatesDeleting' ProvisioningState ProvisioningStates `json:"provisioningState,omitempty"` // Status - Operational status of the iSCSI Target. Possible values include: 'OperationalStatusInvalid', 'OperationalStatusUnknown', 'OperationalStatusHealthy', 'OperationalStatusUnhealthy', 'OperationalStatusUpdating', 'OperationalStatusRunning', 'OperationalStatusStopped', 'OperationalStatusStoppeddeallocated' Status OperationalStatus `json:"status,omitempty"` // Endpoints - List of private IPv4 addresses to connect to the iSCSI Target. Endpoints *[]string `json:"endpoints,omitempty"` // Port - The port used by iSCSI Target portal group. Port *int32 `json:"port,omitempty"` }
IscsiTargetUpdate payload for iSCSI Target update requests.
type IscsiTargetUpdate struct { // IscsiTargetUpdateProperties - Properties for iSCSI Target update request. *IscsiTargetUpdateProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (itu IscsiTargetUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IscsiTargetUpdate.
func (itu *IscsiTargetUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for IscsiTargetUpdate struct.
IscsiTargetUpdateProperties properties for iSCSI Target update request.
type IscsiTargetUpdateProperties struct { // StaticAcls - Access Control List (ACL) for an iSCSI Target; defines LUN masking policy StaticAcls *[]ACL `json:"staticAcls,omitempty"` // Luns - List of LUNs to be exposed through iSCSI Target. Luns *[]IscsiLun `json:"luns,omitempty"` }
IscsiTargetsClient is the client for the IscsiTargets methods of the Storagepool service.
type IscsiTargetsClient struct { BaseClient }
func NewIscsiTargetsClient(subscriptionID string) IscsiTargetsClient
NewIscsiTargetsClient creates an instance of the IscsiTargetsClient client.
func NewIscsiTargetsClientWithBaseURI(baseURI string, subscriptionID string) IscsiTargetsClient
NewIscsiTargetsClientWithBaseURI creates an instance of the IscsiTargetsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client IscsiTargetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetCreatePayload IscsiTargetCreate) (result IscsiTargetsCreateOrUpdateFuture, err error)
CreateOrUpdate create or Update an iSCSI Target. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. iscsiTargetName - the name of the iSCSI Target. iscsiTargetCreatePayload - request payload for iSCSI Target create operation.
func (client IscsiTargetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetCreatePayload IscsiTargetCreate) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client IscsiTargetsClient) CreateOrUpdateResponder(resp *http.Response) (result IscsiTarget, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client IscsiTargetsClient) CreateOrUpdateSender(req *http.Request) (future IscsiTargetsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client IscsiTargetsClient) Delete(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result IscsiTargetsDeleteFuture, err error)
Delete delete an iSCSI Target. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. iscsiTargetName - the name of the iSCSI Target.
func (client IscsiTargetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client IscsiTargetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (client IscsiTargetsClient) DeleteSender(req *http.Request) (future IscsiTargetsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client IscsiTargetsClient) Get(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result IscsiTarget, err error)
Get get an iSCSI Target. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. iscsiTargetName - the name of the iSCSI Target.
func (client IscsiTargetsClient) GetPreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client IscsiTargetsClient) GetResponder(resp *http.Response) (result IscsiTarget, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client IscsiTargetsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client IscsiTargetsClient) ListByDiskPool(ctx context.Context, resourceGroupName string, diskPoolName string) (result IscsiTargetListPage, err error)
ListByDiskPool get iSCSI Targets in a Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.
func (client IscsiTargetsClient) ListByDiskPoolComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result IscsiTargetListIterator, err error)
ListByDiskPoolComplete enumerates all values, automatically crossing page boundaries as required.
func (client IscsiTargetsClient) ListByDiskPoolPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
ListByDiskPoolPreparer prepares the ListByDiskPool request.
func (client IscsiTargetsClient) ListByDiskPoolResponder(resp *http.Response) (result IscsiTargetList, err error)
ListByDiskPoolResponder handles the response to the ListByDiskPool request. The method always closes the http.Response Body.
func (client IscsiTargetsClient) ListByDiskPoolSender(req *http.Request) (*http.Response, error)
ListByDiskPoolSender sends the ListByDiskPool request. The method will close the http.Response Body if it receives an error.
func (client IscsiTargetsClient) Update(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetUpdatePayload IscsiTargetUpdate) (result IscsiTargetsUpdateFuture, err error)
Update update an iSCSI Target. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. iscsiTargetName - the name of the iSCSI Target. iscsiTargetUpdatePayload - request payload for iSCSI Target update operation.
func (client IscsiTargetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetUpdatePayload IscsiTargetUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client IscsiTargetsClient) UpdateResponder(resp *http.Response) (result IscsiTarget, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client IscsiTargetsClient) UpdateSender(req *http.Request) (future IscsiTargetsUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
IscsiTargetsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type IscsiTargetsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(IscsiTargetsClient) (IscsiTarget, error) }
func (future *IscsiTargetsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
IscsiTargetsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type IscsiTargetsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(IscsiTargetsClient) (autorest.Response, error) }
func (future *IscsiTargetsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
IscsiTargetsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type IscsiTargetsUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(IscsiTargetsClient) (IscsiTarget, error) }
func (future *IscsiTargetsUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
OperationDisplay metadata about an operation.
type OperationDisplay struct { // Provider - Localized friendly form of the resource provider name. Provider *string `json:"provider,omitempty"` // Resource - Localized friendly form of the resource type related to this action/operation. Resource *string `json:"resource,omitempty"` // Operation - Localized friendly name for the operation, as it should be shown to the user. Operation *string `json:"operation,omitempty"` // Description - Localized friendly description for the operation, as it should be shown to the user. Description *string `json:"description,omitempty"` }
OperationListResult list of operations supported by the RP.
type OperationListResult struct { autorest.Response `json:"-"` // Value - An array of operations supported by the StoragePool RP. Value *[]RPOperation `json:"value,omitempty"` // NextLink - URI to fetch the next section of the paginated response. NextLink *string `json:"nextLink,omitempty"` }
OperationalStatus enumerates the values for operational status.
type OperationalStatus string
const ( // OperationalStatusHealthy ... OperationalStatusHealthy OperationalStatus = "Healthy" // OperationalStatusInvalid ... OperationalStatusInvalid OperationalStatus = "Invalid" // OperationalStatusRunning ... OperationalStatusRunning OperationalStatus = "Running" // OperationalStatusStopped ... OperationalStatusStopped OperationalStatus = "Stopped" // OperationalStatusStoppeddeallocated ... OperationalStatusStoppeddeallocated OperationalStatus = "Stopped (deallocated)" // OperationalStatusUnhealthy ... OperationalStatusUnhealthy OperationalStatus = "Unhealthy" // OperationalStatusUnknown ... OperationalStatusUnknown OperationalStatus = "Unknown" // OperationalStatusUpdating ... OperationalStatusUpdating OperationalStatus = "Updating" )
func PossibleOperationalStatusValues() []OperationalStatus
PossibleOperationalStatusValues returns an array of possible values for the OperationalStatus const type.
OperationsClient is the client for the Operations methods of the Storagepool service.
type OperationsClient struct { BaseClient }
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
List gets a list of StoragePool operations.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
OutboundEnvironmentEndpoint endpoints accessed for a common purpose that the App Service Environment requires outbound network access to.
type OutboundEnvironmentEndpoint struct { // Category - The type of service accessed by the App Service Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active Directory. Category *string `json:"category,omitempty"` // Endpoints - The endpoints that the App Service Environment reaches the service at. Endpoints *[]EndpointDependency `json:"endpoints,omitempty"` }
OutboundEnvironmentEndpointList collection of Outbound Environment Endpoints
type OutboundEnvironmentEndpointList struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]OutboundEnvironmentEndpoint `json:"value,omitempty"` // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` }
func (oeel OutboundEnvironmentEndpointList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (oeel OutboundEnvironmentEndpointList) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OutboundEnvironmentEndpointList.
OutboundEnvironmentEndpointListIterator provides access to a complete listing of OutboundEnvironmentEndpoint values.
type OutboundEnvironmentEndpointListIterator struct {
// contains filtered or unexported fields
}
func NewOutboundEnvironmentEndpointListIterator(page OutboundEnvironmentEndpointListPage) OutboundEnvironmentEndpointListIterator
Creates a new instance of the OutboundEnvironmentEndpointListIterator type.
func (iter *OutboundEnvironmentEndpointListIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *OutboundEnvironmentEndpointListIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter OutboundEnvironmentEndpointListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OutboundEnvironmentEndpointListIterator) Response() OutboundEnvironmentEndpointList
Response returns the raw server response from the last page request.
func (iter OutboundEnvironmentEndpointListIterator) Value() OutboundEnvironmentEndpoint
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
OutboundEnvironmentEndpointListPage contains a page of OutboundEnvironmentEndpoint values.
type OutboundEnvironmentEndpointListPage struct {
// contains filtered or unexported fields
}
func NewOutboundEnvironmentEndpointListPage(cur OutboundEnvironmentEndpointList, getNextPage func(context.Context, OutboundEnvironmentEndpointList) (OutboundEnvironmentEndpointList, error)) OutboundEnvironmentEndpointListPage
Creates a new instance of the OutboundEnvironmentEndpointListPage type.
func (page *OutboundEnvironmentEndpointListPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *OutboundEnvironmentEndpointListPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page OutboundEnvironmentEndpointListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OutboundEnvironmentEndpointListPage) Response() OutboundEnvironmentEndpointList
Response returns the raw server response from the last page request.
func (page OutboundEnvironmentEndpointListPage) Values() []OutboundEnvironmentEndpoint
Values returns the slice of values for the current page or nil if there are no values.
ProvisioningStates enumerates the values for provisioning states.
type ProvisioningStates string
const ( // ProvisioningStatesCanceled ... ProvisioningStatesCanceled ProvisioningStates = "Canceled" // ProvisioningStatesCreating ... ProvisioningStatesCreating ProvisioningStates = "Creating" // ProvisioningStatesDeleting ... ProvisioningStatesDeleting ProvisioningStates = "Deleting" // ProvisioningStatesFailed ... ProvisioningStatesFailed ProvisioningStates = "Failed" // ProvisioningStatesInvalid ... ProvisioningStatesInvalid ProvisioningStates = "Invalid" // ProvisioningStatesPending ... ProvisioningStatesPending ProvisioningStates = "Pending" // ProvisioningStatesSucceeded ... ProvisioningStatesSucceeded ProvisioningStates = "Succeeded" // ProvisioningStatesUpdating ... ProvisioningStatesUpdating ProvisioningStates = "Updating" )
func PossibleProvisioningStatesValues() []ProvisioningStates
PossibleProvisioningStatesValues returns an array of possible values for the ProvisioningStates const type.
ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags
type ProxyResource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
RPOperation description of a StoragePool RP Operation
type RPOperation struct { // Name - The name of the operation being performed on this particular object Name *string `json:"name,omitempty"` // IsDataAction - Indicates whether the operation applies to data-plane. IsDataAction *bool `json:"isDataAction,omitempty"` // ActionType - Indicates the action type. ActionType *string `json:"actionType,omitempty"` // Display - Additional metadata about RP operation. Display *OperationDisplay `json:"display,omitempty"` // Origin - The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Origin *string `json:"origin,omitempty"` }
Resource ARM resource model definition.
type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
Sku sku for ARM resource
type Sku struct { // Name - Sku name Name *string `json:"name,omitempty"` // Tier - Sku tier Tier *string `json:"tier,omitempty"` }
SystemMetadata metadata pertaining to creation and last modification of the resource.
type SystemMetadata struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The type of identity that last modified the resource. LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
TrackedResource the resource model definition for a ARM tracked top level resource.
type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives. Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
Name | Synopsis |
---|---|
.. | |
storagepoolapi | Deprecated: Please note, this package has been deprecated. |