azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2015-01-01/locks Index | Files | Directories

package locks

import "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2015-01-01/locks"

Package locks implements the Azure ARM Locks service API version 2015-01-01.

Index

Package Files

client.go managementlocks.go models.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type BaseClient Uses

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

BaseClient is the base client for Locks.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type LockLevel Uses

type LockLevel string

LockLevel enumerates the values for lock level.

const (
    // CanNotDelete ...
    CanNotDelete LockLevel = "CanNotDelete"
    // NotSpecified ...
    NotSpecified LockLevel = "NotSpecified"
    // ReadOnly ...
    ReadOnly LockLevel = "ReadOnly"
)

func PossibleLockLevelValues Uses

func PossibleLockLevelValues() []LockLevel

PossibleLockLevelValues returns an array of possible values for the LockLevel const type.

type ManagementLockListResult Uses

type ManagementLockListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of locks.
    Value *[]ManagementLockObject `json:"value,omitempty"`
    // NextLink - The URL to get the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

ManagementLockListResult list of management locks.

func (ManagementLockListResult) IsEmpty Uses

func (mllr ManagementLockListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagementLockListResultIterator Uses

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

ManagementLockListResultIterator provides access to a complete listing of ManagementLockObject values.

func NewManagementLockListResultIterator Uses

func NewManagementLockListResultIterator(page ManagementLockListResultPage) ManagementLockListResultIterator

Creates a new instance of the ManagementLockListResultIterator type.

func (*ManagementLockListResultIterator) Next Uses

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

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

func (iter ManagementLockListResultIterator) NotDone() bool

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

func (ManagementLockListResultIterator) Response Uses

func (iter ManagementLockListResultIterator) Response() ManagementLockListResult

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

func (ManagementLockListResultIterator) Value Uses

func (iter ManagementLockListResultIterator) Value() ManagementLockObject

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

type ManagementLockListResultPage Uses

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

ManagementLockListResultPage contains a page of ManagementLockObject values.

func NewManagementLockListResultPage Uses

func NewManagementLockListResultPage(getNextPage func(context.Context, ManagementLockListResult) (ManagementLockListResult, error)) ManagementLockListResultPage

Creates a new instance of the ManagementLockListResultPage type.

func (*ManagementLockListResultPage) Next Uses

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

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

func (page ManagementLockListResultPage) NotDone() bool

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

func (ManagementLockListResultPage) Response Uses

func (page ManagementLockListResultPage) Response() ManagementLockListResult

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

func (ManagementLockListResultPage) Values Uses

func (page ManagementLockListResultPage) Values() []ManagementLockObject

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

type ManagementLockObject Uses

type ManagementLockObject struct {
    autorest.Response `json:"-"`
    // ManagementLockProperties - The properties of the lock.
    *ManagementLockProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The Id of the lock.
    ID  *string `json:"id,omitempty"`
    // Type - READ-ONLY; The type of the lock.
    Type *string `json:"type,omitempty"`
    // Name - The name of the lock.
    Name *string `json:"name,omitempty"`
}

ManagementLockObject management lock information.

func (ManagementLockObject) MarshalJSON Uses

func (mlo ManagementLockObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagementLockObject.

func (*ManagementLockObject) UnmarshalJSON Uses

func (mlo *ManagementLockObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagementLockObject struct.

type ManagementLockProperties Uses

type ManagementLockProperties struct {
    // Level - The lock level of the management lock. Possible values include: 'NotSpecified', 'CanNotDelete', 'ReadOnly'
    Level LockLevel `json:"level,omitempty"`
    // Notes - The notes of the management lock.
    Notes *string `json:"notes,omitempty"`
}

ManagementLockProperties the management lock properties.

type ManagementLocksClient Uses

type ManagementLocksClient struct {
    BaseClient
}

ManagementLocksClient is the client for the ManagementLocks methods of the Locks service.

func NewManagementLocksClient Uses

func NewManagementLocksClient(subscriptionID string) ManagementLocksClient

NewManagementLocksClient creates an instance of the ManagementLocksClient client.

func NewManagementLocksClientWithBaseURI Uses

func NewManagementLocksClientWithBaseURI(baseURI string, subscriptionID string) ManagementLocksClient

NewManagementLocksClientWithBaseURI creates an instance of the ManagementLocksClient client.

func (ManagementLocksClient) CreateOrUpdateAtResourceGroupLevel Uses

func (client ManagementLocksClient) CreateOrUpdateAtResourceGroupLevel(ctx context.Context, resourceGroupName string, lockName string, parameters ManagementLockObject) (result ManagementLockObject, err error)

CreateOrUpdateAtResourceGroupLevel create or update a management lock at the resource group level. Parameters: resourceGroupName - the resource group name. lockName - the lock name. parameters - the management lock parameters.

func (ManagementLocksClient) CreateOrUpdateAtResourceGroupLevelPreparer Uses

func (client ManagementLocksClient) CreateOrUpdateAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, lockName string, parameters ManagementLockObject) (*http.Request, error)

CreateOrUpdateAtResourceGroupLevelPreparer prepares the CreateOrUpdateAtResourceGroupLevel request.

func (ManagementLocksClient) CreateOrUpdateAtResourceGroupLevelResponder Uses

func (client ManagementLocksClient) CreateOrUpdateAtResourceGroupLevelResponder(resp *http.Response) (result ManagementLockObject, err error)

CreateOrUpdateAtResourceGroupLevelResponder handles the response to the CreateOrUpdateAtResourceGroupLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) CreateOrUpdateAtResourceGroupLevelSender Uses

func (client ManagementLocksClient) CreateOrUpdateAtResourceGroupLevelSender(req *http.Request) (*http.Response, error)

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

func (ManagementLocksClient) CreateOrUpdateAtResourceLevel Uses

func (client ManagementLocksClient) CreateOrUpdateAtResourceLevel(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, lockName string, parameters ManagementLockObject) (result ManagementLockObject, err error)

CreateOrUpdateAtResourceLevel create or update a management lock at the resource level or any level below resource. Parameters: resourceGroupName - the name of the resource group. resourceProviderNamespace - resource identity. parentResourcePath - resource identity. resourceType - resource identity. resourceName - resource identity. lockName - the name of lock. parameters - create or update management lock parameters.

func (ManagementLocksClient) CreateOrUpdateAtResourceLevelPreparer Uses

func (client ManagementLocksClient) CreateOrUpdateAtResourceLevelPreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, lockName string, parameters ManagementLockObject) (*http.Request, error)

CreateOrUpdateAtResourceLevelPreparer prepares the CreateOrUpdateAtResourceLevel request.

func (ManagementLocksClient) CreateOrUpdateAtResourceLevelResponder Uses

func (client ManagementLocksClient) CreateOrUpdateAtResourceLevelResponder(resp *http.Response) (result ManagementLockObject, err error)

CreateOrUpdateAtResourceLevelResponder handles the response to the CreateOrUpdateAtResourceLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) CreateOrUpdateAtResourceLevelSender Uses

func (client ManagementLocksClient) CreateOrUpdateAtResourceLevelSender(req *http.Request) (*http.Response, error)

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

func (ManagementLocksClient) CreateOrUpdateAtSubscriptionLevel Uses

func (client ManagementLocksClient) CreateOrUpdateAtSubscriptionLevel(ctx context.Context, lockName string, parameters ManagementLockObject) (result ManagementLockObject, err error)

CreateOrUpdateAtSubscriptionLevel create or update a management lock at the subscription level. Parameters: lockName - the name of lock. parameters - the management lock parameters.

func (ManagementLocksClient) CreateOrUpdateAtSubscriptionLevelPreparer Uses

func (client ManagementLocksClient) CreateOrUpdateAtSubscriptionLevelPreparer(ctx context.Context, lockName string, parameters ManagementLockObject) (*http.Request, error)

CreateOrUpdateAtSubscriptionLevelPreparer prepares the CreateOrUpdateAtSubscriptionLevel request.

func (ManagementLocksClient) CreateOrUpdateAtSubscriptionLevelResponder Uses

func (client ManagementLocksClient) CreateOrUpdateAtSubscriptionLevelResponder(resp *http.Response) (result ManagementLockObject, err error)

CreateOrUpdateAtSubscriptionLevelResponder handles the response to the CreateOrUpdateAtSubscriptionLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) CreateOrUpdateAtSubscriptionLevelSender Uses

func (client ManagementLocksClient) CreateOrUpdateAtSubscriptionLevelSender(req *http.Request) (*http.Response, error)

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

func (ManagementLocksClient) DeleteAtResourceGroupLevel Uses

func (client ManagementLocksClient) DeleteAtResourceGroupLevel(ctx context.Context, resourceGroupName string, lockName string) (result autorest.Response, err error)

DeleteAtResourceGroupLevel deletes the management lock of a resource group. Parameters: resourceGroupName - the resource group name. lockName - the name of lock.

func (ManagementLocksClient) DeleteAtResourceGroupLevelPreparer Uses

func (client ManagementLocksClient) DeleteAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, lockName string) (*http.Request, error)

DeleteAtResourceGroupLevelPreparer prepares the DeleteAtResourceGroupLevel request.

func (ManagementLocksClient) DeleteAtResourceGroupLevelResponder Uses

func (client ManagementLocksClient) DeleteAtResourceGroupLevelResponder(resp *http.Response) (result autorest.Response, err error)

DeleteAtResourceGroupLevelResponder handles the response to the DeleteAtResourceGroupLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) DeleteAtResourceGroupLevelSender Uses

func (client ManagementLocksClient) DeleteAtResourceGroupLevelSender(req *http.Request) (*http.Response, error)

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

func (ManagementLocksClient) DeleteAtResourceLevel Uses

func (client ManagementLocksClient) DeleteAtResourceLevel(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, lockName string) (result autorest.Response, err error)

DeleteAtResourceLevel deletes the management lock of a resource or any level below resource. Parameters: resourceGroupName - the name of the resource group. resourceProviderNamespace - resource identity. parentResourcePath - resource identity. resourceType - resource identity. resourceName - resource identity. lockName - the name of lock.

func (ManagementLocksClient) DeleteAtResourceLevelPreparer Uses

func (client ManagementLocksClient) DeleteAtResourceLevelPreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, lockName string) (*http.Request, error)

DeleteAtResourceLevelPreparer prepares the DeleteAtResourceLevel request.

func (ManagementLocksClient) DeleteAtResourceLevelResponder Uses

func (client ManagementLocksClient) DeleteAtResourceLevelResponder(resp *http.Response) (result autorest.Response, err error)

DeleteAtResourceLevelResponder handles the response to the DeleteAtResourceLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) DeleteAtResourceLevelSender Uses

func (client ManagementLocksClient) DeleteAtResourceLevelSender(req *http.Request) (*http.Response, error)

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

func (ManagementLocksClient) DeleteAtSubscriptionLevel Uses

func (client ManagementLocksClient) DeleteAtSubscriptionLevel(ctx context.Context, lockName string) (result autorest.Response, err error)

DeleteAtSubscriptionLevel deletes the management lock of a subscription. Parameters: lockName - the name of lock.

func (ManagementLocksClient) DeleteAtSubscriptionLevelPreparer Uses

func (client ManagementLocksClient) DeleteAtSubscriptionLevelPreparer(ctx context.Context, lockName string) (*http.Request, error)

DeleteAtSubscriptionLevelPreparer prepares the DeleteAtSubscriptionLevel request.

func (ManagementLocksClient) DeleteAtSubscriptionLevelResponder Uses

func (client ManagementLocksClient) DeleteAtSubscriptionLevelResponder(resp *http.Response) (result autorest.Response, err error)

DeleteAtSubscriptionLevelResponder handles the response to the DeleteAtSubscriptionLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) DeleteAtSubscriptionLevelSender Uses

func (client ManagementLocksClient) DeleteAtSubscriptionLevelSender(req *http.Request) (*http.Response, error)

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

func (ManagementLocksClient) Get Uses

func (client ManagementLocksClient) Get(ctx context.Context, lockName string) (result ManagementLockObject, err error)

Get gets the management lock of a scope. Parameters: lockName - name of the management lock.

func (ManagementLocksClient) GetAtResourceGroupLevel Uses

func (client ManagementLocksClient) GetAtResourceGroupLevel(ctx context.Context, resourceGroupName string, lockName string) (result ManagementLockObject, err error)

GetAtResourceGroupLevel gets a management lock at the resource group level. Parameters: resourceGroupName - the resource group name. lockName - the lock name.

func (ManagementLocksClient) GetAtResourceGroupLevelPreparer Uses

func (client ManagementLocksClient) GetAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, lockName string) (*http.Request, error)

GetAtResourceGroupLevelPreparer prepares the GetAtResourceGroupLevel request.

func (ManagementLocksClient) GetAtResourceGroupLevelResponder Uses

func (client ManagementLocksClient) GetAtResourceGroupLevelResponder(resp *http.Response) (result ManagementLockObject, err error)

GetAtResourceGroupLevelResponder handles the response to the GetAtResourceGroupLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) GetAtResourceGroupLevelSender Uses

func (client ManagementLocksClient) GetAtResourceGroupLevelSender(req *http.Request) (*http.Response, error)

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

func (ManagementLocksClient) GetPreparer Uses

func (client ManagementLocksClient) GetPreparer(ctx context.Context, lockName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagementLocksClient) GetResponder Uses

func (client ManagementLocksClient) GetResponder(resp *http.Response) (result ManagementLockObject, err error)

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

func (ManagementLocksClient) GetSender Uses

func (client ManagementLocksClient) 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 (ManagementLocksClient) ListAtResourceGroupLevel Uses

func (client ManagementLocksClient) ListAtResourceGroupLevel(ctx context.Context, resourceGroupName string, filter string) (result ManagementLockListResultPage, err error)

ListAtResourceGroupLevel gets all the management locks of a resource group. Parameters: resourceGroupName - resource group name. filter - the filter to apply on the operation.

func (ManagementLocksClient) ListAtResourceGroupLevelComplete Uses

func (client ManagementLocksClient) ListAtResourceGroupLevelComplete(ctx context.Context, resourceGroupName string, filter string) (result ManagementLockListResultIterator, err error)

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

func (ManagementLocksClient) ListAtResourceGroupLevelPreparer Uses

func (client ManagementLocksClient) ListAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error)

ListAtResourceGroupLevelPreparer prepares the ListAtResourceGroupLevel request.

func (ManagementLocksClient) ListAtResourceGroupLevelResponder Uses

func (client ManagementLocksClient) ListAtResourceGroupLevelResponder(resp *http.Response) (result ManagementLockListResult, err error)

ListAtResourceGroupLevelResponder handles the response to the ListAtResourceGroupLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) ListAtResourceGroupLevelSender Uses

func (client ManagementLocksClient) ListAtResourceGroupLevelSender(req *http.Request) (*http.Response, error)

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

func (ManagementLocksClient) ListAtResourceLevel Uses

func (client ManagementLocksClient) ListAtResourceLevel(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result ManagementLockListResultPage, err error)

ListAtResourceLevel gets all the management locks of a resource or any level below resource. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceProviderNamespace - resource identity. parentResourcePath - resource identity. resourceType - resource identity. resourceName - resource identity. filter - the filter to apply on the operation.

func (ManagementLocksClient) ListAtResourceLevelComplete Uses

func (client ManagementLocksClient) ListAtResourceLevelComplete(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result ManagementLockListResultIterator, err error)

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

func (ManagementLocksClient) ListAtResourceLevelPreparer Uses

func (client ManagementLocksClient) ListAtResourceLevelPreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (*http.Request, error)

ListAtResourceLevelPreparer prepares the ListAtResourceLevel request.

func (ManagementLocksClient) ListAtResourceLevelResponder Uses

func (client ManagementLocksClient) ListAtResourceLevelResponder(resp *http.Response) (result ManagementLockListResult, err error)

ListAtResourceLevelResponder handles the response to the ListAtResourceLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) ListAtResourceLevelSender Uses

func (client ManagementLocksClient) ListAtResourceLevelSender(req *http.Request) (*http.Response, error)

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

func (ManagementLocksClient) ListAtSubscriptionLevel Uses

func (client ManagementLocksClient) ListAtSubscriptionLevel(ctx context.Context, filter string) (result ManagementLockListResultPage, err error)

ListAtSubscriptionLevel gets all the management locks of a subscription. Parameters: filter - the filter to apply on the operation.

func (ManagementLocksClient) ListAtSubscriptionLevelComplete Uses

func (client ManagementLocksClient) ListAtSubscriptionLevelComplete(ctx context.Context, filter string) (result ManagementLockListResultIterator, err error)

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

func (ManagementLocksClient) ListAtSubscriptionLevelPreparer Uses

func (client ManagementLocksClient) ListAtSubscriptionLevelPreparer(ctx context.Context, filter string) (*http.Request, error)

ListAtSubscriptionLevelPreparer prepares the ListAtSubscriptionLevel request.

func (ManagementLocksClient) ListAtSubscriptionLevelResponder Uses

func (client ManagementLocksClient) ListAtSubscriptionLevelResponder(resp *http.Response) (result ManagementLockListResult, err error)

ListAtSubscriptionLevelResponder handles the response to the ListAtSubscriptionLevel request. The method always closes the http.Response Body.

func (ManagementLocksClient) ListAtSubscriptionLevelSender Uses

func (client ManagementLocksClient) ListAtSubscriptionLevelSender(req *http.Request) (*http.Response, error)

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

Directories

PathSynopsis
locksapi

Package locks imports 9 packages (graph) and is imported by 4 packages. Updated 2019-08-10. Refresh now. Tools for package owners.