Documentation ¶
Overview ¶
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
- type ErrorResponse
- type ErrorResponseError
- type Operation
- type OperationDisplay
- type OperationList
- type 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
- type RegistrationAssignment
- type RegistrationAssignmentList
- type 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 (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
- type RegistrationAssignmentPropertiesRegistrationDefinition
- type RegistrationAssignmentPropertiesRegistrationDefinitionProperties
- type RegistrationAssignmentsClient
- func (client RegistrationAssignmentsClient) CreateOrUpdate(ctx context.Context, scope string, registrationAssignmentID string, ...) (result RegistrationAssignmentsCreateOrUpdateFuture, err error)
- func (client RegistrationAssignmentsClient) CreateOrUpdatePreparer(ctx context.Context, scope string, registrationAssignmentID string, ...) (*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, ...) (result RegistrationAssignmentsDeleteFuture, err error)
- func (client RegistrationAssignmentsClient) DeletePreparer(ctx context.Context, scope string, registrationAssignmentID 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, ...) (result RegistrationAssignment, err error)
- func (client RegistrationAssignmentsClient) GetPreparer(ctx context.Context, scope string, registrationAssignmentID string, ...) (*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, ...) (result RegistrationAssignmentListPage, err error)
- func (client RegistrationAssignmentsClient) ListComplete(ctx context.Context, scope string, APIVersion string, ...) (result RegistrationAssignmentListIterator, err error)
- func (client RegistrationAssignmentsClient) ListPreparer(ctx context.Context, scope string, APIVersion string, ...) (*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
- type RegistrationAssignmentsDeleteFuture
- type RegistrationDefinition
- type RegistrationDefinitionList
- type 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 (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
- type RegistrationDefinitionsClient
- func (client RegistrationDefinitionsClient) CreateOrUpdate(ctx context.Context, registrationDefinitionID string, APIVersion string, ...) (result RegistrationDefinitionsCreateOrUpdateFuture, err error)
- func (client RegistrationDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, registrationDefinitionID string, APIVersion string, ...) (*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, ...) (result autorest.Response, err error)
- func (client RegistrationDefinitionsClient) DeletePreparer(ctx context.Context, registrationDefinitionID string, APIVersion 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, ...) (result RegistrationDefinition, err error)
- func (client RegistrationDefinitionsClient) GetPreparer(ctx context.Context, scope string, registrationDefinitionID 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
Constants ¶
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"` // 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"` }
Authorization authorization tuple containing principal Id (of user/service principal/security group) and role definition id.
type BaseClient ¶
BaseClient is the base client for Managedservices.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client.
type ErrorResponse ¶
type ErrorResponse struct { // Error - READ-ONLY; Error response indicates Azure Resource Manager is not able to process the incoming request. The reason is provided in the error message. Error *ErrorResponseError `json:"error,omitempty"` }
ErrorResponse error response.
type ErrorResponseError ¶
type ErrorResponseError struct { // Code - Error code. Code *string `json:"code,omitempty"` // Message - Error message indicating why the operation failed. Message *string `json:"message,omitempty"` }
ErrorResponseError error response indicates Azure Resource Manager is not able to process the incoming request. The reason is provided in the error message.
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.
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.
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.
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 ¶
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.
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.
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 ¶
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 ¶
type RegistrationAssignmentListPage struct {
// contains filtered or unexported fields
}
RegistrationAssignmentListPage contains a page of RegistrationAssignment values.
func NewRegistrationAssignmentListPage ¶
func NewRegistrationAssignmentListPage(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 ¶
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.
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.
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.
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 ¶
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 ¶
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.
func (*RegistrationAssignmentsCreateOrUpdateFuture) Result ¶
func (future *RegistrationAssignmentsCreateOrUpdateFuture) Result(client RegistrationAssignmentsClient) (ra RegistrationAssignment, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type RegistrationAssignmentsDeleteFuture ¶
RegistrationAssignmentsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*RegistrationAssignmentsDeleteFuture) Result ¶
func (future *RegistrationAssignmentsDeleteFuture) Result(client RegistrationAssignmentsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type 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.
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.
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 ¶
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 ¶
type RegistrationDefinitionListPage struct {
// contains filtered or unexported fields
}
RegistrationDefinitionListPage contains a page of RegistrationDefinition values.
func NewRegistrationDefinitionListPage ¶
func NewRegistrationDefinitionListPage(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 ¶
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.
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.
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 ¶
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 ¶
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 ¶
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.
func (*RegistrationDefinitionsCreateOrUpdateFuture) Result ¶
func (future *RegistrationDefinitionsCreateOrUpdateFuture) Result(client RegistrationDefinitionsClient) (rd RegistrationDefinition, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.