...

Package managedservices

import "github.com/Azure/azure-sdk-for-go/services/preview/managedservices/mgmt/2019-04-01/managedservices"
Overview
Index
Subdirectories

Overview ▾

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managedservices/armmanagedservices(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managedservices/armmanagedservices). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package managedservices implements the Azure ARM Managedservices service API version 2019-04-01-preview.

Specification for ManagedServices.

Index ▾

Constants
func UserAgent() string
func Version() string
type Authorization
type BaseClient
    func New() BaseClient
    func NewWithBaseURI(baseURI string) BaseClient
type ErrorDefinition
type ErrorResponse
type Operation
    func (o Operation) MarshalJSON() ([]byte, error)
type OperationDisplay
type OperationList
    func (ol OperationList) MarshalJSON() ([]byte, error)
type OperationsClient
    func NewOperationsClient() OperationsClient
    func NewOperationsClientWithBaseURI(baseURI string) OperationsClient
    func (client OperationsClient) List(ctx context.Context, APIVersion string) (result OperationList, err error)
    func (client OperationsClient) ListPreparer(ctx context.Context, APIVersion string) (*http.Request, error)
    func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, err error)
    func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
type Plan
type ProvisioningState
    func PossibleProvisioningStateValues() []ProvisioningState
type RegistrationAssignment
    func (ra RegistrationAssignment) MarshalJSON() ([]byte, error)
type RegistrationAssignmentList
    func (ral RegistrationAssignmentList) IsEmpty() bool
    func (ral RegistrationAssignmentList) MarshalJSON() ([]byte, error)
type RegistrationAssignmentListIterator
    func NewRegistrationAssignmentListIterator(page RegistrationAssignmentListPage) RegistrationAssignmentListIterator
    func (iter *RegistrationAssignmentListIterator) Next() error
    func (iter *RegistrationAssignmentListIterator) NextWithContext(ctx context.Context) (err error)
    func (iter RegistrationAssignmentListIterator) NotDone() bool
    func (iter RegistrationAssignmentListIterator) Response() RegistrationAssignmentList
    func (iter RegistrationAssignmentListIterator) Value() RegistrationAssignment
type RegistrationAssignmentListPage
    func NewRegistrationAssignmentListPage(cur RegistrationAssignmentList, getNextPage func(context.Context, RegistrationAssignmentList) (RegistrationAssignmentList, error)) RegistrationAssignmentListPage
    func (page *RegistrationAssignmentListPage) Next() error
    func (page *RegistrationAssignmentListPage) NextWithContext(ctx context.Context) (err error)
    func (page RegistrationAssignmentListPage) NotDone() bool
    func (page RegistrationAssignmentListPage) Response() RegistrationAssignmentList
    func (page RegistrationAssignmentListPage) Values() []RegistrationAssignment
type RegistrationAssignmentProperties
    func (rap RegistrationAssignmentProperties) MarshalJSON() ([]byte, error)
type RegistrationAssignmentPropertiesRegistrationDefinition
    func (rapD RegistrationAssignmentPropertiesRegistrationDefinition) MarshalJSON() ([]byte, error)
type RegistrationAssignmentPropertiesRegistrationDefinitionProperties
type RegistrationAssignmentsClient
    func NewRegistrationAssignmentsClient() RegistrationAssignmentsClient
    func NewRegistrationAssignmentsClientWithBaseURI(baseURI string) RegistrationAssignmentsClient
    func (client RegistrationAssignmentsClient) CreateOrUpdate(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string, requestBody RegistrationAssignment) (result RegistrationAssignmentsCreateOrUpdateFuture, err error)
    func (client RegistrationAssignmentsClient) CreateOrUpdatePreparer(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string, requestBody RegistrationAssignment) (*http.Request, error)
    func (client RegistrationAssignmentsClient) CreateOrUpdateResponder(resp *http.Response) (result RegistrationAssignment, err error)
    func (client RegistrationAssignmentsClient) CreateOrUpdateSender(req *http.Request) (future RegistrationAssignmentsCreateOrUpdateFuture, err error)
    func (client RegistrationAssignmentsClient) Delete(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string) (result RegistrationAssignmentsDeleteFuture, err error)
    func (client RegistrationAssignmentsClient) DeletePreparer(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string) (*http.Request, error)
    func (client RegistrationAssignmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client RegistrationAssignmentsClient) DeleteSender(req *http.Request) (future RegistrationAssignmentsDeleteFuture, err error)
    func (client RegistrationAssignmentsClient) Get(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string, expandRegistrationDefinition *bool) (result RegistrationAssignment, err error)
    func (client RegistrationAssignmentsClient) GetPreparer(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string, expandRegistrationDefinition *bool) (*http.Request, error)
    func (client RegistrationAssignmentsClient) GetResponder(resp *http.Response) (result RegistrationAssignment, err error)
    func (client RegistrationAssignmentsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client RegistrationAssignmentsClient) List(ctx context.Context, scope string, APIVersion string, expandRegistrationDefinition *bool) (result RegistrationAssignmentListPage, err error)
    func (client RegistrationAssignmentsClient) ListComplete(ctx context.Context, scope string, APIVersion string, expandRegistrationDefinition *bool) (result RegistrationAssignmentListIterator, err error)
    func (client RegistrationAssignmentsClient) ListPreparer(ctx context.Context, scope string, APIVersion string, expandRegistrationDefinition *bool) (*http.Request, error)
    func (client RegistrationAssignmentsClient) ListResponder(resp *http.Response) (result RegistrationAssignmentList, err error)
    func (client RegistrationAssignmentsClient) ListSender(req *http.Request) (*http.Response, error)
type RegistrationAssignmentsCreateOrUpdateFuture
    func (future *RegistrationAssignmentsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
type RegistrationAssignmentsDeleteFuture
    func (future *RegistrationAssignmentsDeleteFuture) UnmarshalJSON(body []byte) error
type RegistrationDefinition
    func (rd RegistrationDefinition) MarshalJSON() ([]byte, error)
type RegistrationDefinitionList
    func (rdl RegistrationDefinitionList) IsEmpty() bool
    func (rdl RegistrationDefinitionList) MarshalJSON() ([]byte, error)
type RegistrationDefinitionListIterator
    func NewRegistrationDefinitionListIterator(page RegistrationDefinitionListPage) RegistrationDefinitionListIterator
    func (iter *RegistrationDefinitionListIterator) Next() error
    func (iter *RegistrationDefinitionListIterator) NextWithContext(ctx context.Context) (err error)
    func (iter RegistrationDefinitionListIterator) NotDone() bool
    func (iter RegistrationDefinitionListIterator) Response() RegistrationDefinitionList
    func (iter RegistrationDefinitionListIterator) Value() RegistrationDefinition
type RegistrationDefinitionListPage
    func NewRegistrationDefinitionListPage(cur RegistrationDefinitionList, getNextPage func(context.Context, RegistrationDefinitionList) (RegistrationDefinitionList, error)) RegistrationDefinitionListPage
    func (page *RegistrationDefinitionListPage) Next() error
    func (page *RegistrationDefinitionListPage) NextWithContext(ctx context.Context) (err error)
    func (page RegistrationDefinitionListPage) NotDone() bool
    func (page RegistrationDefinitionListPage) Response() RegistrationDefinitionList
    func (page RegistrationDefinitionListPage) Values() []RegistrationDefinition
type RegistrationDefinitionProperties
    func (rdp RegistrationDefinitionProperties) MarshalJSON() ([]byte, error)
type RegistrationDefinitionsClient
    func NewRegistrationDefinitionsClient() RegistrationDefinitionsClient
    func NewRegistrationDefinitionsClientWithBaseURI(baseURI string) RegistrationDefinitionsClient
    func (client RegistrationDefinitionsClient) CreateOrUpdate(ctx context.Context, registrationDefinitionID string, APIVersion string, scope string, requestBody RegistrationDefinition) (result RegistrationDefinitionsCreateOrUpdateFuture, err error)
    func (client RegistrationDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, registrationDefinitionID string, APIVersion string, scope string, requestBody RegistrationDefinition) (*http.Request, error)
    func (client RegistrationDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result RegistrationDefinition, err error)
    func (client RegistrationDefinitionsClient) CreateOrUpdateSender(req *http.Request) (future RegistrationDefinitionsCreateOrUpdateFuture, err error)
    func (client RegistrationDefinitionsClient) Delete(ctx context.Context, registrationDefinitionID string, APIVersion string, scope string) (result autorest.Response, err error)
    func (client RegistrationDefinitionsClient) DeletePreparer(ctx context.Context, registrationDefinitionID string, APIVersion string, scope string) (*http.Request, error)
    func (client RegistrationDefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client RegistrationDefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error)
    func (client RegistrationDefinitionsClient) Get(ctx context.Context, scope string, registrationDefinitionID string, APIVersion string) (result RegistrationDefinition, err error)
    func (client RegistrationDefinitionsClient) GetPreparer(ctx context.Context, scope string, registrationDefinitionID string, APIVersion string) (*http.Request, error)
    func (client RegistrationDefinitionsClient) GetResponder(resp *http.Response) (result RegistrationDefinition, err error)
    func (client RegistrationDefinitionsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client RegistrationDefinitionsClient) List(ctx context.Context, scope string, APIVersion string) (result RegistrationDefinitionListPage, err error)
    func (client RegistrationDefinitionsClient) ListComplete(ctx context.Context, scope string, APIVersion string) (result RegistrationDefinitionListIterator, err error)
    func (client RegistrationDefinitionsClient) ListPreparer(ctx context.Context, scope string, APIVersion string) (*http.Request, error)
    func (client RegistrationDefinitionsClient) ListResponder(resp *http.Response) (result RegistrationDefinitionList, err error)
    func (client RegistrationDefinitionsClient) ListSender(req *http.Request) (*http.Response, error)
type RegistrationDefinitionsCreateOrUpdateFuture
    func (future *RegistrationDefinitionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

Package files

client.go enums.go models.go operations.go registrationassignments.go registrationdefinitions.go version.go

Constants

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

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.

type Authorization

Authorization authorization tuple containing principal Id (of user/service principal/security group) and role definition id.

type Authorization struct {
    // PrincipalID - Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
    PrincipalID *string `json:"principalId,omitempty"`
    // PrincipalIDDisplayName - Display name of the principal Id.
    PrincipalIDDisplayName *string `json:"principalIdDisplayName,omitempty"`
    // RoleDefinitionID - The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role.
    RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
    // DelegatedRoleDefinitionIds - The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users.
    DelegatedRoleDefinitionIds *[]uuid.UUID `json:"delegatedRoleDefinitionIds,omitempty"`
}

type BaseClient

BaseClient is the base client for Managedservices.

type BaseClient struct {
    autorest.Client
    BaseURI string
}

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI 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 ErrorDefinition

ErrorDefinition error response indicates Azure Resource Manager is not able to process the incoming request. The reason is provided in the error message.

type ErrorDefinition struct {
    // Code - Error code.
    Code *string `json:"code,omitempty"`
    // Message - Error message indicating why the operation failed.
    Message *string `json:"message,omitempty"`
    // Details - Internal error details.
    Details *[]ErrorDefinition `json:"details,omitempty"`
}

type ErrorResponse

ErrorResponse error response.

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

type Operation

Operation object that describes a single Microsoft.ManagedServices operation.

type Operation struct {
    // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
    // Display - READ-ONLY; The object that represents the operation.
    Display *OperationDisplay `json:"display,omitempty"`
}

func (Operation) MarshalJSON

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

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

OperationDisplay the object that represents the operation.

type OperationDisplay struct {
    // Provider - Service provider: Microsoft.ManagedServices
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource on which the operation is performed: Registration definition, registration assignment etc.
    Resource *string `json:"resource,omitempty"`
    // Operation - Operation type: Read, write, delete, etc.
    Operation *string `json:"operation,omitempty"`
    // Description - Description of the operation.
    Description *string `json:"description,omitempty"`
}

type OperationList

OperationList list of the operations.

type OperationList struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of Microsoft.ManagedServices operations.
    Value *[]Operation `json:"value,omitempty"`
}

func (OperationList) MarshalJSON

func (ol OperationList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationList.

type OperationsClient

OperationsClient is the specification for ManagedServices.

type OperationsClient struct {
    BaseClient
}

func NewOperationsClient

func NewOperationsClient() OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI 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, APIVersion string) (result OperationList, err error)

List gets a list of the operations. Parameters: APIVersion - the API version to use for this operation.

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, 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 Plan

Plan plan details for the managed services.

type Plan struct {
    // Name - The plan name.
    Name *string `json:"name,omitempty"`
    // Publisher - The publisher ID.
    Publisher *string `json:"publisher,omitempty"`
    // Product - The product code.
    Product *string `json:"product,omitempty"`
    // Version - The plan's version.
    Version *string `json:"version,omitempty"`
}

type ProvisioningState

ProvisioningState enumerates the values for provisioning state.

type ProvisioningState string
const (
    // Accepted ...
    Accepted ProvisioningState = "Accepted"
    // Canceled ...
    Canceled ProvisioningState = "Canceled"
    // Created ...
    Created ProvisioningState = "Created"
    // Creating ...
    Creating ProvisioningState = "Creating"
    // Deleted ...
    Deleted ProvisioningState = "Deleted"
    // Deleting ...
    Deleting ProvisioningState = "Deleting"
    // Failed ...
    Failed ProvisioningState = "Failed"
    // NotSpecified ...
    NotSpecified ProvisioningState = "NotSpecified"
    // Ready ...
    Ready ProvisioningState = "Ready"
    // Running ...
    Running ProvisioningState = "Running"
    // Succeeded ...
    Succeeded ProvisioningState = "Succeeded"
    // Updating ...
    Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

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

type RegistrationAssignment

RegistrationAssignment registration assignment.

type RegistrationAssignment struct {
    autorest.Response `json:"-"`
    // Properties - Properties of a registration assignment.
    Properties *RegistrationAssignmentProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The fully qualified path of the registration assignment.
    ID *string `json:"id,omitempty"`
    // Type - READ-ONLY; Type of the resource.
    Type *string `json:"type,omitempty"`
    // Name - READ-ONLY; Name of the registration assignment.
    Name *string `json:"name,omitempty"`
}

func (RegistrationAssignment) MarshalJSON

func (ra RegistrationAssignment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistrationAssignment.

type RegistrationAssignmentList

RegistrationAssignmentList list of registration assignments.

type RegistrationAssignmentList struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of registration assignments.
    Value *[]RegistrationAssignment `json:"value,omitempty"`
    // NextLink - READ-ONLY; Link to next page of registration assignments.
    NextLink *string `json:"nextLink,omitempty"`
}

func (RegistrationAssignmentList) IsEmpty

func (ral RegistrationAssignmentList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (RegistrationAssignmentList) MarshalJSON

func (ral RegistrationAssignmentList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistrationAssignmentList.

type RegistrationAssignmentListIterator

RegistrationAssignmentListIterator provides access to a complete listing of RegistrationAssignment values.

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

func NewRegistrationAssignmentListIterator

func NewRegistrationAssignmentListIterator(page RegistrationAssignmentListPage) RegistrationAssignmentListIterator

Creates a new instance of the RegistrationAssignmentListIterator type.

func (*RegistrationAssignmentListIterator) Next

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

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

func (iter RegistrationAssignmentListIterator) NotDone() bool

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

func (RegistrationAssignmentListIterator) Response

func (iter RegistrationAssignmentListIterator) Response() RegistrationAssignmentList

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

func (RegistrationAssignmentListIterator) Value

func (iter RegistrationAssignmentListIterator) Value() RegistrationAssignment

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

type RegistrationAssignmentListPage

RegistrationAssignmentListPage contains a page of RegistrationAssignment values.

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

func NewRegistrationAssignmentListPage

func NewRegistrationAssignmentListPage(cur RegistrationAssignmentList, getNextPage func(context.Context, RegistrationAssignmentList) (RegistrationAssignmentList, error)) RegistrationAssignmentListPage

Creates a new instance of the RegistrationAssignmentListPage type.

func (*RegistrationAssignmentListPage) Next

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

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

func (page RegistrationAssignmentListPage) NotDone() bool

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

func (RegistrationAssignmentListPage) Response

func (page RegistrationAssignmentListPage) Response() RegistrationAssignmentList

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

func (RegistrationAssignmentListPage) Values

func (page RegistrationAssignmentListPage) Values() []RegistrationAssignment

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

type RegistrationAssignmentProperties

RegistrationAssignmentProperties properties of a registration assignment.

type RegistrationAssignmentProperties struct {
    // RegistrationDefinitionID - Fully qualified path of the registration definition.
    RegistrationDefinitionID *string `json:"registrationDefinitionId,omitempty"`
    // ProvisioningState - READ-ONLY; Current state of the registration assignment. Possible values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // RegistrationDefinition - READ-ONLY; Registration definition inside registration assignment.
    RegistrationDefinition *RegistrationAssignmentPropertiesRegistrationDefinition `json:"registrationDefinition,omitempty"`
}

func (RegistrationAssignmentProperties) MarshalJSON

func (rap RegistrationAssignmentProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistrationAssignmentProperties.

type RegistrationAssignmentPropertiesRegistrationDefinition

RegistrationAssignmentPropertiesRegistrationDefinition registration definition inside registration assignment.

type RegistrationAssignmentPropertiesRegistrationDefinition struct {
    // Properties - Properties of registration definition inside registration assignment.
    Properties *RegistrationAssignmentPropertiesRegistrationDefinitionProperties `json:"properties,omitempty"`
    // Plan - Plan details for the managed services.
    Plan *Plan `json:"plan,omitempty"`
    // ID - READ-ONLY; Fully qualified path of the registration definition.
    ID *string `json:"id,omitempty"`
    // Type - READ-ONLY; Type of the resource (Microsoft.ManagedServices/registrationDefinitions).
    Type *string `json:"type,omitempty"`
    // Name - READ-ONLY; Name of the registration definition.
    Name *string `json:"name,omitempty"`
}

func (RegistrationAssignmentPropertiesRegistrationDefinition) MarshalJSON

func (rapD RegistrationAssignmentPropertiesRegistrationDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistrationAssignmentPropertiesRegistrationDefinition.

type RegistrationAssignmentPropertiesRegistrationDefinitionProperties

RegistrationAssignmentPropertiesRegistrationDefinitionProperties properties of registration definition inside registration assignment.

type RegistrationAssignmentPropertiesRegistrationDefinitionProperties struct {
    // Description - Description of the registration definition.
    Description *string `json:"description,omitempty"`
    // Authorizations - Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role.
    Authorizations *[]Authorization `json:"authorizations,omitempty"`
    // RegistrationDefinitionName - Name of the registration definition.
    RegistrationDefinitionName *string `json:"registrationDefinitionName,omitempty"`
    // ProvisioningState - Current state of the registration definition. Possible values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // ManageeTenantID - Id of the home tenant.
    ManageeTenantID *string `json:"manageeTenantId,omitempty"`
    // ManageeTenantName - Name of the home tenant.
    ManageeTenantName *string `json:"manageeTenantName,omitempty"`
    // ManagedByTenantID - Id of the managedBy tenant.
    ManagedByTenantID *string `json:"managedByTenantId,omitempty"`
    // ManagedByTenantName - Name of the managedBy tenant.
    ManagedByTenantName *string `json:"managedByTenantName,omitempty"`
}

type RegistrationAssignmentsClient

RegistrationAssignmentsClient is the specification for ManagedServices.

type RegistrationAssignmentsClient struct {
    BaseClient
}

func NewRegistrationAssignmentsClient

func NewRegistrationAssignmentsClient() RegistrationAssignmentsClient

NewRegistrationAssignmentsClient creates an instance of the RegistrationAssignmentsClient client.

func NewRegistrationAssignmentsClientWithBaseURI

func NewRegistrationAssignmentsClientWithBaseURI(baseURI string) RegistrationAssignmentsClient

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

func (client RegistrationAssignmentsClient) CreateOrUpdate(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string, requestBody RegistrationAssignment) (result RegistrationAssignmentsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a registration assignment. Parameters: scope - scope of the resource. registrationAssignmentID - guid of the registration assignment. APIVersion - the API version to use for this operation. requestBody - the parameters required to create new registration assignment.

func (RegistrationAssignmentsClient) CreateOrUpdatePreparer

func (client RegistrationAssignmentsClient) CreateOrUpdatePreparer(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string, requestBody RegistrationAssignment) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (RegistrationAssignmentsClient) CreateOrUpdateResponder

func (client RegistrationAssignmentsClient) CreateOrUpdateResponder(resp *http.Response) (result RegistrationAssignment, err error)

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

func (RegistrationAssignmentsClient) CreateOrUpdateSender

func (client RegistrationAssignmentsClient) CreateOrUpdateSender(req *http.Request) (future RegistrationAssignmentsCreateOrUpdateFuture, err error)

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

func (RegistrationAssignmentsClient) Delete

func (client RegistrationAssignmentsClient) Delete(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string) (result RegistrationAssignmentsDeleteFuture, err error)

Delete deletes the specified registration assignment. Parameters: scope - scope of the resource. registrationAssignmentID - guid of the registration assignment. APIVersion - the API version to use for this operation.

func (RegistrationAssignmentsClient) DeletePreparer

func (client RegistrationAssignmentsClient) DeletePreparer(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (RegistrationAssignmentsClient) DeleteResponder

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

func (client RegistrationAssignmentsClient) DeleteSender(req *http.Request) (future RegistrationAssignmentsDeleteFuture, err error)

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

func (RegistrationAssignmentsClient) Get

func (client RegistrationAssignmentsClient) Get(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string, expandRegistrationDefinition *bool) (result RegistrationAssignment, err error)

Get gets the details of specified registration assignment. Parameters: scope - scope of the resource. registrationAssignmentID - guid of the registration assignment. APIVersion - the API version to use for this operation. expandRegistrationDefinition - tells whether to return registration definition details also along with registration assignment details.

func (RegistrationAssignmentsClient) GetPreparer

func (client RegistrationAssignmentsClient) GetPreparer(ctx context.Context, scope string, registrationAssignmentID string, APIVersion string, expandRegistrationDefinition *bool) (*http.Request, error)

GetPreparer prepares the Get request.

func (RegistrationAssignmentsClient) GetResponder

func (client RegistrationAssignmentsClient) GetResponder(resp *http.Response) (result RegistrationAssignment, err error)

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

func (RegistrationAssignmentsClient) GetSender

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

func (client RegistrationAssignmentsClient) List(ctx context.Context, scope string, APIVersion string, expandRegistrationDefinition *bool) (result RegistrationAssignmentListPage, err error)

List gets a list of the registration assignments. Parameters: scope - scope of the resource. APIVersion - the API version to use for this operation. expandRegistrationDefinition - tells whether to return registration definition details also along with registration assignment details.

func (RegistrationAssignmentsClient) ListComplete

func (client RegistrationAssignmentsClient) ListComplete(ctx context.Context, scope string, APIVersion string, expandRegistrationDefinition *bool) (result RegistrationAssignmentListIterator, err error)

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

func (RegistrationAssignmentsClient) ListPreparer

func (client RegistrationAssignmentsClient) ListPreparer(ctx context.Context, scope string, APIVersion string, expandRegistrationDefinition *bool) (*http.Request, error)

ListPreparer prepares the List request.

func (RegistrationAssignmentsClient) ListResponder

func (client RegistrationAssignmentsClient) ListResponder(resp *http.Response) (result RegistrationAssignmentList, err error)

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

func (RegistrationAssignmentsClient) ListSender

func (client RegistrationAssignmentsClient) 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 RegistrationAssignmentsCreateOrUpdateFuture

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

type RegistrationAssignmentsCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegistrationAssignmentsClient) (RegistrationAssignment, error)
}

func (*RegistrationAssignmentsCreateOrUpdateFuture) UnmarshalJSON

func (future *RegistrationAssignmentsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistrationAssignmentsDeleteFuture

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

type RegistrationAssignmentsDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegistrationAssignmentsClient) (autorest.Response, error)
}

func (*RegistrationAssignmentsDeleteFuture) UnmarshalJSON

func (future *RegistrationAssignmentsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistrationDefinition

RegistrationDefinition registration definition.

type RegistrationDefinition struct {
    autorest.Response `json:"-"`
    // Properties - Properties of a registration definition.
    Properties *RegistrationDefinitionProperties `json:"properties,omitempty"`
    // Plan - Plan details for the managed services.
    Plan *Plan `json:"plan,omitempty"`
    // ID - READ-ONLY; Fully qualified path of the registration definition.
    ID *string `json:"id,omitempty"`
    // Type - READ-ONLY; Type of the resource.
    Type *string `json:"type,omitempty"`
    // Name - READ-ONLY; Name of the registration definition.
    Name *string `json:"name,omitempty"`
}

func (RegistrationDefinition) MarshalJSON

func (rd RegistrationDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistrationDefinition.

type RegistrationDefinitionList

RegistrationDefinitionList list of registration definitions.

type RegistrationDefinitionList struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of registration definitions.
    Value *[]RegistrationDefinition `json:"value,omitempty"`
    // NextLink - READ-ONLY; Link to next page of registration definitions.
    NextLink *string `json:"nextLink,omitempty"`
}

func (RegistrationDefinitionList) IsEmpty

func (rdl RegistrationDefinitionList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (RegistrationDefinitionList) MarshalJSON

func (rdl RegistrationDefinitionList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistrationDefinitionList.

type RegistrationDefinitionListIterator

RegistrationDefinitionListIterator provides access to a complete listing of RegistrationDefinition values.

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

func NewRegistrationDefinitionListIterator

func NewRegistrationDefinitionListIterator(page RegistrationDefinitionListPage) RegistrationDefinitionListIterator

Creates a new instance of the RegistrationDefinitionListIterator type.

func (*RegistrationDefinitionListIterator) Next

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

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

func (iter RegistrationDefinitionListIterator) NotDone() bool

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

func (RegistrationDefinitionListIterator) Response

func (iter RegistrationDefinitionListIterator) Response() RegistrationDefinitionList

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

func (RegistrationDefinitionListIterator) Value

func (iter RegistrationDefinitionListIterator) Value() RegistrationDefinition

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

type RegistrationDefinitionListPage

RegistrationDefinitionListPage contains a page of RegistrationDefinition values.

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

func NewRegistrationDefinitionListPage

func NewRegistrationDefinitionListPage(cur RegistrationDefinitionList, getNextPage func(context.Context, RegistrationDefinitionList) (RegistrationDefinitionList, error)) RegistrationDefinitionListPage

Creates a new instance of the RegistrationDefinitionListPage type.

func (*RegistrationDefinitionListPage) Next

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

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

func (page RegistrationDefinitionListPage) NotDone() bool

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

func (RegistrationDefinitionListPage) Response

func (page RegistrationDefinitionListPage) Response() RegistrationDefinitionList

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

func (RegistrationDefinitionListPage) Values

func (page RegistrationDefinitionListPage) Values() []RegistrationDefinition

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

type RegistrationDefinitionProperties

RegistrationDefinitionProperties properties of a registration definition.

type RegistrationDefinitionProperties struct {
    // Description - Description of the registration definition.
    Description *string `json:"description,omitempty"`
    // Authorizations - Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role.
    Authorizations *[]Authorization `json:"authorizations,omitempty"`
    // RegistrationDefinitionName - Name of the registration definition.
    RegistrationDefinitionName *string `json:"registrationDefinitionName,omitempty"`
    // ManagedByTenantID - Id of the managedBy tenant.
    ManagedByTenantID *string `json:"managedByTenantId,omitempty"`
    // ProvisioningState - READ-ONLY; Current state of the registration definition. Possible values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // ManagedByTenantName - READ-ONLY; Name of the managedBy tenant.
    ManagedByTenantName *string `json:"managedByTenantName,omitempty"`
}

func (RegistrationDefinitionProperties) MarshalJSON

func (rdp RegistrationDefinitionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistrationDefinitionProperties.

type RegistrationDefinitionsClient

RegistrationDefinitionsClient is the specification for ManagedServices.

type RegistrationDefinitionsClient struct {
    BaseClient
}

func NewRegistrationDefinitionsClient

func NewRegistrationDefinitionsClient() RegistrationDefinitionsClient

NewRegistrationDefinitionsClient creates an instance of the RegistrationDefinitionsClient client.

func NewRegistrationDefinitionsClientWithBaseURI

func NewRegistrationDefinitionsClientWithBaseURI(baseURI string) RegistrationDefinitionsClient

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

func (client RegistrationDefinitionsClient) CreateOrUpdate(ctx context.Context, registrationDefinitionID string, APIVersion string, scope string, requestBody RegistrationDefinition) (result RegistrationDefinitionsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a registration definition. Parameters: registrationDefinitionID - guid of the registration definition. APIVersion - the API version to use for this operation. scope - scope of the resource. requestBody - the parameters required to create new registration definition.

func (RegistrationDefinitionsClient) CreateOrUpdatePreparer

func (client RegistrationDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, registrationDefinitionID string, APIVersion string, scope string, requestBody RegistrationDefinition) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (RegistrationDefinitionsClient) CreateOrUpdateResponder

func (client RegistrationDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result RegistrationDefinition, err error)

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

func (RegistrationDefinitionsClient) CreateOrUpdateSender

func (client RegistrationDefinitionsClient) CreateOrUpdateSender(req *http.Request) (future RegistrationDefinitionsCreateOrUpdateFuture, err error)

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

func (RegistrationDefinitionsClient) Delete

func (client RegistrationDefinitionsClient) Delete(ctx context.Context, registrationDefinitionID string, APIVersion string, scope string) (result autorest.Response, err error)

Delete deletes the registration definition. Parameters: registrationDefinitionID - guid of the registration definition. APIVersion - the API version to use for this operation. scope - scope of the resource.

func (RegistrationDefinitionsClient) DeletePreparer

func (client RegistrationDefinitionsClient) DeletePreparer(ctx context.Context, registrationDefinitionID string, APIVersion string, scope string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (RegistrationDefinitionsClient) DeleteResponder

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

func (client RegistrationDefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (RegistrationDefinitionsClient) Get

func (client RegistrationDefinitionsClient) Get(ctx context.Context, scope string, registrationDefinitionID string, APIVersion string) (result RegistrationDefinition, err error)

Get gets the registration definition details. Parameters: scope - scope of the resource. registrationDefinitionID - guid of the registration definition. APIVersion - the API version to use for this operation.

func (RegistrationDefinitionsClient) GetPreparer

func (client RegistrationDefinitionsClient) GetPreparer(ctx context.Context, scope string, registrationDefinitionID string, APIVersion string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RegistrationDefinitionsClient) GetResponder

func (client RegistrationDefinitionsClient) GetResponder(resp *http.Response) (result RegistrationDefinition, err error)

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

func (RegistrationDefinitionsClient) GetSender

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

func (client RegistrationDefinitionsClient) List(ctx context.Context, scope string, APIVersion string) (result RegistrationDefinitionListPage, err error)

List gets a list of the registration definitions. Parameters: scope - scope of the resource. APIVersion - the API version to use for this operation.

func (RegistrationDefinitionsClient) ListComplete

func (client RegistrationDefinitionsClient) ListComplete(ctx context.Context, scope string, APIVersion string) (result RegistrationDefinitionListIterator, err error)

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

func (RegistrationDefinitionsClient) ListPreparer

func (client RegistrationDefinitionsClient) ListPreparer(ctx context.Context, scope string, APIVersion string) (*http.Request, error)

ListPreparer prepares the List request.

func (RegistrationDefinitionsClient) ListResponder

func (client RegistrationDefinitionsClient) ListResponder(resp *http.Response) (result RegistrationDefinitionList, err error)

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

func (RegistrationDefinitionsClient) ListSender

func (client RegistrationDefinitionsClient) 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 RegistrationDefinitionsCreateOrUpdateFuture

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

type RegistrationDefinitionsCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegistrationDefinitionsClient) (RegistrationDefinition, error)
}

func (*RegistrationDefinitionsCreateOrUpdateFuture) UnmarshalJSON

func (future *RegistrationDefinitionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

Subdirectories

Name Synopsis
..
managedservicesapi Deprecated: Please note, this package has been deprecated.