managedservices

package
v55.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 10 Imported by: 196

Documentation

Overview

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

Specification for ManagedServices.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Managedservices
	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 Authorization

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"`
}

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

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI string
}

BaseClient is the base client for Managedservices.

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

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"`
}

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

type ErrorResponse

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

ErrorResponse error response.

type 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"`
}

Operation object that describes a single Microsoft.ManagedServices operation.

func (Operation) MarshalJSON

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

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

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"`
}

OperationDisplay the object that represents the operation.

type OperationList

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

OperationList list of the operations.

func (OperationList) MarshalJSON

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

MarshalJSON is the custom marshaler for OperationList.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the specification for ManagedServices.

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

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"`
}

Plan plan details for the managed services.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

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

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"`
}

RegistrationAssignment registration assignment.

func (RegistrationAssignment) MarshalJSON

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

MarshalJSON is the custom marshaler for RegistrationAssignment.

type RegistrationAssignmentList

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"`
}

RegistrationAssignmentList list of registration assignments.

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

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

RegistrationAssignmentListIterator provides access to a complete listing of RegistrationAssignment values.

func NewRegistrationAssignmentListIterator

func NewRegistrationAssignmentListIterator(page RegistrationAssignmentListPage) RegistrationAssignmentListIterator

Creates a new instance of the RegistrationAssignmentListIterator type.

func (*RegistrationAssignmentListIterator) Next

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

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

func (RegistrationAssignmentListIterator) Response

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

func (RegistrationAssignmentListIterator) Value

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

type RegistrationAssignmentListPage

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

RegistrationAssignmentListPage contains a page of RegistrationAssignment values.

func NewRegistrationAssignmentListPage

Creates a new instance of the RegistrationAssignmentListPage type.

func (*RegistrationAssignmentListPage) Next

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

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

func (RegistrationAssignmentListPage) Values

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

type RegistrationAssignmentProperties

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"`
}

RegistrationAssignmentProperties properties of a registration assignment.

func (RegistrationAssignmentProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for RegistrationAssignmentProperties.

type RegistrationAssignmentPropertiesRegistrationDefinition

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"`
}

RegistrationAssignmentPropertiesRegistrationDefinition registration definition inside registration assignment.

func (RegistrationAssignmentPropertiesRegistrationDefinition) MarshalJSON

MarshalJSON is the custom marshaler for RegistrationAssignmentPropertiesRegistrationDefinition.

type RegistrationAssignmentPropertiesRegistrationDefinitionProperties

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"`
}

RegistrationAssignmentPropertiesRegistrationDefinitionProperties properties of registration definition inside registration assignment.

type RegistrationAssignmentsClient

type RegistrationAssignmentsClient struct {
	BaseClient
}

RegistrationAssignmentsClient is the specification for ManagedServices.

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

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

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

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

func (*RegistrationAssignmentsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistrationAssignmentsDeleteFuture

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

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

func (*RegistrationAssignmentsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistrationDefinition

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"`
}

RegistrationDefinition registration definition.

func (RegistrationDefinition) MarshalJSON

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

MarshalJSON is the custom marshaler for RegistrationDefinition.

type RegistrationDefinitionList

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"`
}

RegistrationDefinitionList list of registration definitions.

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

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

RegistrationDefinitionListIterator provides access to a complete listing of RegistrationDefinition values.

func NewRegistrationDefinitionListIterator

func NewRegistrationDefinitionListIterator(page RegistrationDefinitionListPage) RegistrationDefinitionListIterator

Creates a new instance of the RegistrationDefinitionListIterator type.

func (*RegistrationDefinitionListIterator) Next

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

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

func (RegistrationDefinitionListIterator) Response

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

func (RegistrationDefinitionListIterator) Value

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

type RegistrationDefinitionListPage

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

RegistrationDefinitionListPage contains a page of RegistrationDefinition values.

func NewRegistrationDefinitionListPage

Creates a new instance of the RegistrationDefinitionListPage type.

func (*RegistrationDefinitionListPage) Next

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

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

func (RegistrationDefinitionListPage) Values

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

type RegistrationDefinitionProperties

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"`
}

RegistrationDefinitionProperties properties of a registration definition.

func (RegistrationDefinitionProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for RegistrationDefinitionProperties.

type RegistrationDefinitionsClient

type RegistrationDefinitionsClient struct {
	BaseClient
}

RegistrationDefinitionsClient is the specification for ManagedServices.

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

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

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

func (*RegistrationDefinitionsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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