adp

package
v48.2.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package adp implements the Azure ARM Adp service API version 2020-07-01-preview.

Microsoft Autonomous Development Platform

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Adp
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type Account

type Account struct {
	autorest.Response `json:"-"`
	// AccountProperties - List of account properties
	*AccountProperties `json:"properties,omitempty"`
	// SystemData - READ-ONLY; The system meta data relating to this resource.
	SystemData *SystemData `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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Account an ADP account.

func (Account) MarshalJSON

func (a Account) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Account.

func (*Account) UnmarshalJSON

func (a *Account) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Account struct.

type AccountList

type AccountList struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of accounts and their properties.
	Value *[]Account `json:"value,omitempty"`
	// NextLink - URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

AccountList the list operation response, that contains the data pools and their properties.

func (AccountList) IsEmpty

func (al AccountList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (AccountList) MarshalJSON

func (al AccountList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountList.

type AccountListIterator

type AccountListIterator struct {
	// contains filtered or unexported fields
}

AccountListIterator provides access to a complete listing of Account values.

func NewAccountListIterator

func NewAccountListIterator(page AccountListPage) AccountListIterator

Creates a new instance of the AccountListIterator type.

func (*AccountListIterator) Next

func (iter *AccountListIterator) 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 (*AccountListIterator) NextWithContext

func (iter *AccountListIterator) 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 (AccountListIterator) NotDone

func (iter AccountListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AccountListIterator) Response

func (iter AccountListIterator) Response() AccountList

Response returns the raw server response from the last page request.

func (AccountListIterator) Value

func (iter AccountListIterator) Value() Account

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AccountListPage

type AccountListPage struct {
	// contains filtered or unexported fields
}

AccountListPage contains a page of Account values.

func NewAccountListPage

func NewAccountListPage(cur AccountList, getNextPage func(context.Context, AccountList) (AccountList, error)) AccountListPage

Creates a new instance of the AccountListPage type.

func (*AccountListPage) Next

func (page *AccountListPage) 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 (*AccountListPage) NextWithContext

func (page *AccountListPage) 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 (AccountListPage) NotDone

func (page AccountListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AccountListPage) Response

func (page AccountListPage) Response() AccountList

Response returns the raw server response from the last page request.

func (AccountListPage) Values

func (page AccountListPage) Values() []Account

Values returns the slice of values for the current page or nil if there are no values.

type AccountPatch

type AccountPatch struct {
	// AccountProperties - List of account properties
	*AccountProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

AccountPatch an ADP account.

func (AccountPatch) MarshalJSON

func (ap AccountPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountPatch.

func (*AccountPatch) UnmarshalJSON

func (ap *AccountPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccountPatch struct.

type AccountProperties

type AccountProperties struct {
	// AccountID - READ-ONLY; The account's data-plane ID
	AccountID *string `json:"accountId,omitempty"`
	// ProvisioningState - READ-ONLY; Gets the status of the account at the time the operation was called. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Accepted', 'Provisioning', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

AccountProperties ADP account properties

type AccountsClient

type AccountsClient struct {
	BaseClient
}

AccountsClient is the microsoft Autonomous Development Platform

func NewAccountsClient

func NewAccountsClient(subscriptionID string) AccountsClient

NewAccountsClient creates an instance of the AccountsClient client.

func NewAccountsClientWithBaseURI

func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient

NewAccountsClientWithBaseURI creates an instance of the AccountsClient 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 (AccountsClient) CreateOrUpdate

func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, parameters *Account) (result AccountsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an ADP account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of the ADP account. parameters - the parameters to provide for the ADP account.

func (AccountsClient) CreateOrUpdatePreparer

func (client AccountsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, parameters *Account) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AccountsClient) CreateOrUpdateResponder

func (client AccountsClient) CreateOrUpdateResponder(resp *http.Response) (result Account, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (AccountsClient) CreateOrUpdateSender

func (client AccountsClient) CreateOrUpdateSender(req *http.Request) (future AccountsCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (AccountsClient) Delete

func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result AccountsDeleteFuture, err error)

Delete deletes an ADP account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of the ADP account.

func (AccountsClient) DeletePreparer

func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AccountsClient) DeleteResponder

func (client AccountsClient) 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 (AccountsClient) DeleteSender

func (client AccountsClient) DeleteSender(req *http.Request) (future AccountsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AccountsClient) Get

func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result Account, err error)

Get gets the properties of an ADP account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of the ADP account.

func (AccountsClient) GetPreparer

func (client AccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AccountsClient) GetResponder

func (client AccountsClient) GetResponder(resp *http.Response) (result Account, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AccountsClient) GetSender

func (client AccountsClient) 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 (AccountsClient) List

func (client AccountsClient) List(ctx context.Context) (result AccountListPage, err error)

List list all ADP accounts available under the subscription

func (AccountsClient) ListByResourceGroup

func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListPage, err error)

ListByResourceGroup list all ADP accounts available under the resource group Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (AccountsClient) ListByResourceGroupComplete

func (client AccountsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AccountListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (AccountsClient) ListByResourceGroupPreparer

func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AccountsClient) ListByResourceGroupResponder

func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (AccountsClient) ListByResourceGroupSender

func (client AccountsClient) 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 (AccountsClient) ListComplete

func (client AccountsClient) ListComplete(ctx context.Context) (result AccountListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AccountsClient) ListPreparer

func (client AccountsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (AccountsClient) ListResponder

func (client AccountsClient) ListResponder(resp *http.Response) (result AccountList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AccountsClient) ListSender

func (client AccountsClient) 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.

func (AccountsClient) Update

func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, parameters *AccountPatch) (result AccountsUpdateFuture, err error)

Update updates the properties of an existing ADP account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of the ADP account. parameters - the parameters to provide for the current ADP account.

func (AccountsClient) UpdatePreparer

func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, parameters *AccountPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AccountsClient) UpdateResponder

func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AccountsClient) UpdateSender

func (client AccountsClient) UpdateSender(req *http.Request) (future AccountsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type AccountsCreateOrUpdateFuture

type AccountsCreateOrUpdateFuture struct {
	azure.Future
}

AccountsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AccountsCreateOrUpdateFuture) Result

func (future *AccountsCreateOrUpdateFuture) Result(client AccountsClient) (a Account, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type AccountsDeleteFuture

type AccountsDeleteFuture struct {
	azure.Future
}

AccountsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AccountsDeleteFuture) Result

func (future *AccountsDeleteFuture) Result(client AccountsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type AccountsUpdateFuture

type AccountsUpdateFuture struct {
	azure.Future
}

AccountsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AccountsUpdateFuture) Result

func (future *AccountsUpdateFuture) Result(client AccountsClient) (a Account, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type AzureEntityResource

type AzureEntityResource struct {
	// Etag - READ-ONLY; Resource Etag.
	Etag *string `json:"etag,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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Adp.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

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).

type CreatedByType

type CreatedByType string

CreatedByType enumerates the values for created by type.

const (
	// Application ...
	Application CreatedByType = "Application"
	// Key ...
	Key CreatedByType = "Key"
	// ManagedIdentity ...
	ManagedIdentity CreatedByType = "ManagedIdentity"
	// User ...
	User CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.

type DataPool

type DataPool struct {
	autorest.Response `json:"-"`
	// DataPoolProperties - List of data pool properties
	*DataPoolProperties `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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

DataPool an ADP Data Pool.

func (DataPool) MarshalJSON

func (dp DataPool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataPool.

func (*DataPool) UnmarshalJSON

func (dp *DataPool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DataPool struct.

type DataPoolBaseProperties

type DataPoolBaseProperties struct {
	// DataPoolID - READ-ONLY; The Data Pool's data-plane ID
	DataPoolID *string `json:"dataPoolId,omitempty"`
	// ProvisioningState - READ-ONLY; Gets the status of the data pool at the time the operation was called. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Accepted', 'Provisioning', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// Locations - Gets or sets the collection of locations where Data Pool resources should be created.
	Locations *[]DataPoolLocation `json:"locations,omitempty"`
}

DataPoolBaseProperties data Pool properties

func (DataPoolBaseProperties) MarshalJSON

func (dpbp DataPoolBaseProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataPoolBaseProperties.

type DataPoolList

type DataPoolList struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of data pools and their properties.
	Value *[]DataPool `json:"value,omitempty"`
	// NextLink - URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

DataPoolList the list operation response, that contains the data pools and their properties.

func (DataPoolList) IsEmpty

func (dpl DataPoolList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DataPoolList) MarshalJSON

func (dpl DataPoolList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataPoolList.

type DataPoolListIterator

type DataPoolListIterator struct {
	// contains filtered or unexported fields
}

DataPoolListIterator provides access to a complete listing of DataPool values.

func NewDataPoolListIterator

func NewDataPoolListIterator(page DataPoolListPage) DataPoolListIterator

Creates a new instance of the DataPoolListIterator type.

func (*DataPoolListIterator) Next

func (iter *DataPoolListIterator) 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 (*DataPoolListIterator) NextWithContext

func (iter *DataPoolListIterator) 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 (DataPoolListIterator) NotDone

func (iter DataPoolListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DataPoolListIterator) Response

func (iter DataPoolListIterator) Response() DataPoolList

Response returns the raw server response from the last page request.

func (DataPoolListIterator) Value

func (iter DataPoolListIterator) Value() DataPool

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DataPoolListPage

type DataPoolListPage struct {
	// contains filtered or unexported fields
}

DataPoolListPage contains a page of DataPool values.

func NewDataPoolListPage

func NewDataPoolListPage(cur DataPoolList, getNextPage func(context.Context, DataPoolList) (DataPoolList, error)) DataPoolListPage

Creates a new instance of the DataPoolListPage type.

func (*DataPoolListPage) Next

func (page *DataPoolListPage) 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 (*DataPoolListPage) NextWithContext

func (page *DataPoolListPage) 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 (DataPoolListPage) NotDone

func (page DataPoolListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DataPoolListPage) Response

func (page DataPoolListPage) Response() DataPoolList

Response returns the raw server response from the last page request.

func (DataPoolListPage) Values

func (page DataPoolListPage) Values() []DataPool

Values returns the slice of values for the current page or nil if there are no values.

type DataPoolLocation

type DataPoolLocation struct {
	// Name - The location name
	Name *string `json:"name,omitempty"`
}

DataPoolLocation location of a Data Pool

type DataPoolPatch

type DataPoolPatch struct {
	// DataPoolBaseProperties - List of data pool properties
	*DataPoolBaseProperties `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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

DataPoolPatch an ADP Data Pool.

func (DataPoolPatch) MarshalJSON

func (dpp DataPoolPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataPoolPatch.

func (*DataPoolPatch) UnmarshalJSON

func (dpp *DataPoolPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DataPoolPatch struct.

type DataPoolProperties

type DataPoolProperties struct {
	// DataPoolID - READ-ONLY; The Data Pool's data-plane ID
	DataPoolID *string `json:"dataPoolId,omitempty"`
	// ProvisioningState - READ-ONLY; Gets the status of the data pool at the time the operation was called. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Accepted', 'Provisioning', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// Locations - Gets or sets the collection of locations where Data Pool resources should be created.
	Locations *[]DataPoolLocation `json:"locations,omitempty"`
}

DataPoolProperties data Pool properties

func (DataPoolProperties) MarshalJSON

func (dpp DataPoolProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataPoolProperties.

type DataPoolsClient

type DataPoolsClient struct {
	BaseClient
}

DataPoolsClient is the microsoft Autonomous Development Platform

func NewDataPoolsClient

func NewDataPoolsClient(subscriptionID string) DataPoolsClient

NewDataPoolsClient creates an instance of the DataPoolsClient client.

func NewDataPoolsClientWithBaseURI

func NewDataPoolsClientWithBaseURI(baseURI string, subscriptionID string) DataPoolsClient

NewDataPoolsClientWithBaseURI creates an instance of the DataPoolsClient 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 (DataPoolsClient) CreateOrUpdate

func (client DataPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, dataPoolName string, parameters *DataPool) (result DataPoolsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a Data Pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of the ADP account. dataPoolName - the name of the Data Pool. parameters - the parameters to provide for the Data Pool.

func (DataPoolsClient) CreateOrUpdatePreparer

func (client DataPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, dataPoolName string, parameters *DataPool) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DataPoolsClient) CreateOrUpdateResponder

func (client DataPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result DataPool, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DataPoolsClient) CreateOrUpdateSender

func (client DataPoolsClient) CreateOrUpdateSender(req *http.Request) (future DataPoolsCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (DataPoolsClient) Delete

func (client DataPoolsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, dataPoolName string) (result DataPoolsDeleteFuture, err error)

Delete deletes a Data Pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of the ADP account. dataPoolName - the name of the Data Pool.

func (DataPoolsClient) DeletePreparer

func (client DataPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, dataPoolName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DataPoolsClient) DeleteResponder

func (client DataPoolsClient) 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 (DataPoolsClient) DeleteSender

func (client DataPoolsClient) DeleteSender(req *http.Request) (future DataPoolsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (DataPoolsClient) Get

func (client DataPoolsClient) Get(ctx context.Context, resourceGroupName string, accountName string, dataPoolName string) (result DataPool, err error)

Get gets the properties of a Data Pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of the ADP account. dataPoolName - the name of the Data Pool.

func (DataPoolsClient) GetPreparer

func (client DataPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, dataPoolName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DataPoolsClient) GetResponder

func (client DataPoolsClient) GetResponder(resp *http.Response) (result DataPool, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DataPoolsClient) GetSender

func (client DataPoolsClient) 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 (DataPoolsClient) List

func (client DataPoolsClient) List(ctx context.Context, resourceGroupName string, accountName string) (result DataPoolListPage, err error)

List lists the data pools under the ADP account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of the ADP account.

func (DataPoolsClient) ListComplete

func (client DataPoolsClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result DataPoolListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (DataPoolsClient) ListPreparer

func (client DataPoolsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

ListPreparer prepares the List request.

func (DataPoolsClient) ListResponder

func (client DataPoolsClient) ListResponder(resp *http.Response) (result DataPoolList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DataPoolsClient) ListSender

func (client DataPoolsClient) 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.

func (DataPoolsClient) Update

func (client DataPoolsClient) Update(ctx context.Context, resourceGroupName string, accountName string, dataPoolName string, parameters *DataPoolPatch) (result DataPoolsUpdateFuture, err error)

Update updates the properties of an existing Data Pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of the ADP account. dataPoolName - the name of the Data Pool. parameters - the parameters to provide for the Data Pool.

func (DataPoolsClient) UpdatePreparer

func (client DataPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, dataPoolName string, parameters *DataPoolPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DataPoolsClient) UpdateResponder

func (client DataPoolsClient) UpdateResponder(resp *http.Response) (result DataPool, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (DataPoolsClient) UpdateSender

func (client DataPoolsClient) UpdateSender(req *http.Request) (future DataPoolsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type DataPoolsCreateOrUpdateFuture

type DataPoolsCreateOrUpdateFuture struct {
	azure.Future
}

DataPoolsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DataPoolsCreateOrUpdateFuture) Result

func (future *DataPoolsCreateOrUpdateFuture) Result(client DataPoolsClient) (dp DataPool, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DataPoolsDeleteFuture

type DataPoolsDeleteFuture struct {
	azure.Future
}

DataPoolsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DataPoolsDeleteFuture) Result

func (future *DataPoolsDeleteFuture) Result(client DataPoolsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DataPoolsUpdateFuture

type DataPoolsUpdateFuture struct {
	azure.Future
}

DataPoolsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DataPoolsUpdateFuture) Result

func (future *DataPoolsUpdateFuture) Result(client DataPoolsClient) (dp DataPool, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ErrorDefinition

type ErrorDefinition struct {
	// Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; Description of the error.
	Message *string `json:"message,omitempty"`
	// Details - READ-ONLY; Internal error details.
	Details *[]ErrorDefinition `json:"details,omitempty"`
}

ErrorDefinition error definition.

type ErrorResponse

type ErrorResponse struct {
	// Error - The error details.
	Error *ErrorDefinition `json:"error,omitempty"`
}

ErrorResponse error response.

type Operation

type Operation struct {
	// Name - Name of the operation
	Name *string `json:"name,omitempty"`
	// IsDataAction - Indicates whether the operation is a data action
	IsDataAction *bool `json:"isDataAction,omitempty"`
	// Display - Display of the operation
	Display *OperationDisplay `json:"display,omitempty"`
	// Origin - Origin of the operation
	Origin *string `json:"origin,omitempty"`
	// OperationProperties - Properties of the operation
	*OperationProperties `json:"properties,omitempty"`
}

Operation operation detail payload

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

func (*Operation) UnmarshalJSON

func (o *Operation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Operation struct.

type OperationDisplay

type OperationDisplay struct {
	// Provider - Resource provider of the operation
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource of the operation
	Resource *string `json:"resource,omitempty"`
	// Operation - Localized friendly name for the operation
	Operation *string `json:"operation,omitempty"`
	// Description - Localized friendly description for the operation
	Description *string `json:"description,omitempty"`
}

OperationDisplay operation display payload

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - List of operations supported by the Resource Provider.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult available operations of the service.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) 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 (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) 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 (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) 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 (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) 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 (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationLogSpecification

type OperationLogSpecification struct {
	// Name - The name of the log category.
	Name *string `json:"name,omitempty"`
	// DisplayName - Localized display name.
	DisplayName *string `json:"displayName,omitempty"`
	// BlobDuration - Blobs created in the customer storage account, per hour.
	BlobDuration *string `json:"blobDuration,omitempty"`
}

OperationLogSpecification details about an operation related to logs.

type OperationMetricAvailability

type OperationMetricAvailability struct {
	// TimeGrain - The granularity for the metric.
	TimeGrain *string `json:"timeGrain,omitempty"`
	// BlobDuration - Blob created in the customer storage account, per hour.
	BlobDuration *string `json:"blobDuration,omitempty"`
}

OperationMetricAvailability defines how often data for a metric becomes available.

type OperationMetricSpecification

type OperationMetricSpecification struct {
	// Name - The name of the metric.
	Name *string `json:"name,omitempty"`
	// DisplayName - Localized display name of the metric.
	DisplayName *string `json:"displayName,omitempty"`
	// DisplayDescription - The description of the metric.
	DisplayDescription *string `json:"displayDescription,omitempty"`
	// Unit - The unit that the metric is measured in.
	Unit *string `json:"unit,omitempty"`
	// AggregationType - The type of metric aggregation.
	AggregationType *string `json:"aggregationType,omitempty"`
	// EnableRegionalMdmAccount - Whether or not the service is using regional MDM accounts.
	EnableRegionalMdmAccount *string `json:"enableRegionalMdmAccount,omitempty"`
	// SourceMdmAccount - The name of the MDM account.
	SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"`
	// SourceMdmNamespace - The name of the MDM namespace.
	SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"`
	// Availabilities - Defines how often data for metrics becomes available.
	Availabilities *[]OperationMetricAvailability `json:"availabilities,omitempty"`
}

OperationMetricSpecification details about an operation related to metrics.

type OperationProperties

type OperationProperties struct {
	// ServiceSpecification - Details about a service operation.
	ServiceSpecification *OperationServiceSpecification `json:"serviceSpecification,omitempty"`
}

OperationProperties additional details about an operation.

type OperationServiceSpecification

type OperationServiceSpecification struct {
	// LogSpecifications - Details about operations related to logs.
	LogSpecifications *[]OperationLogSpecification `json:"logSpecifications,omitempty"`
	// MetricSpecifications - Details about operations related to metrics.
	MetricSpecifications *[]OperationMetricSpecification `json:"metricSpecifications,omitempty"`
}

OperationServiceSpecification details about a service operation.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the microsoft Autonomous Development Platform

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

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 (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available Autonomous Development Platform provider operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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 (OperationsClient) ListSender

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.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Accepted ...
	Accepted ProvisioningState = "Accepted"
	// Canceled ...
	Canceled ProvisioningState = "Canceled"
	// Deleting ...
	Deleting ProvisioningState = "Deleting"
	// Failed ...
	Failed ProvisioningState = "Failed"
	// Provisioning ...
	Provisioning ProvisioningState = "Provisioning"
	// Succeeded ...
	Succeeded ProvisioningState = "Succeeded"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ProxyResource

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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

type Resource

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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Resource common fields that are returned in the response for all Azure Resource Manager resources

type SystemData

type SystemData 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: 'User', 'Application', 'ManagedIdentity', 'Key'
	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: 'User', 'Application', 'ManagedIdentity', 'Key'
	LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"`
	// LastModifiedAt - The type of identity that last modified the resource.
	LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}

SystemData metadata pertaining to creation and last modification of the resource.

type Tags

type Tags struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

Tags resource tags

func (Tags) MarshalJSON

func (t Tags) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Tags.

type TrackedResource

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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL