azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner Index | Files | Directories

package managementpartner

import "github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner"

Package managementpartner implements the Azure ARM Managementpartner service API version 2018-02-01.

This API describe ACE Provisioning ManagementPartner

Index

Package Files

client.go models.go operation.go partner.go partners.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI string
}

BaseClient is the base client for Managementpartner.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Code Uses

type Code string

Code enumerates the values for code.

const (
    // BadRequest ...
    BadRequest Code = "BadRequest"
    // Conflict ...
    Conflict Code = "Conflict"
    // NotFound ...
    NotFound Code = "NotFound"
)

func PossibleCodeValues Uses

func PossibleCodeValues() []Code

PossibleCodeValues returns an array of possible values for the Code const type.

type Error Uses

type Error struct {
    // Error - this is the ExtendedErrorInfo property
    Error *ExtendedErrorInfo `json:"error,omitempty"`
}

Error this is the management partner operations error

type ExtendedErrorInfo Uses

type ExtendedErrorInfo struct {
    // Code - this is the error response code. Possible values include: 'NotFound', 'Conflict', 'BadRequest'
    Code Code `json:"code,omitempty"`
    // Message - this is the extended error info message
    Message *string `json:"message,omitempty"`
}

ExtendedErrorInfo this is the extended error info

type OperationClient Uses

type OperationClient struct {
    BaseClient
}

OperationClient is the this API describe ACE Provisioning ManagementPartner

func NewOperationClient Uses

func NewOperationClient() OperationClient

NewOperationClient creates an instance of the OperationClient client.

func NewOperationClientWithBaseURI Uses

func NewOperationClientWithBaseURI(baseURI string) OperationClient

NewOperationClientWithBaseURI creates an instance of the OperationClient client.

func (OperationClient) List Uses

func (client OperationClient) List(ctx context.Context) (result OperationListPage, err error)

List list all the operations.

func (OperationClient) ListComplete Uses

func (client OperationClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)

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

func (OperationClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationClient) ListResponder Uses

func (client OperationClient) 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 (OperationClient) ListSender Uses

func (client OperationClient) 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 OperationDisplay Uses

type OperationDisplay struct {
    // Provider - the is management partner provider
    Provider *string `json:"provider,omitempty"`
    // Resource - the is management partner resource
    Resource *string `json:"resource,omitempty"`
    // Operation - the is management partner operation
    Operation *string `json:"operation,omitempty"`
    // Description - the is management partner operation description
    Description *string `json:"description,omitempty"`
}

OperationDisplay this is the management partner operation

type OperationList Uses

type OperationList struct {
    autorest.Response `json:"-"`
    // Value - this is the operation response list
    Value *[]OperationResponse `json:"value,omitempty"`
    // NextLink - Url to get the next page of items.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationList this is the management partner operations list

func (OperationList) IsEmpty Uses

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator Uses

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

OperationListIterator provides access to a complete listing of OperationResponse values.

func NewOperationListIterator Uses

func NewOperationListIterator(page OperationListPage) OperationListIterator

Creates a new instance of the OperationListIterator type.

func (*OperationListIterator) Next Uses

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

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

func (iter OperationListIterator) NotDone() bool

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

func (OperationListIterator) Response Uses

func (iter OperationListIterator) Response() OperationList

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

func (OperationListIterator) Value Uses

func (iter OperationListIterator) Value() OperationResponse

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

type OperationListPage Uses

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

OperationListPage contains a page of OperationResponse values.

func NewOperationListPage Uses

func NewOperationListPage(getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage

Creates a new instance of the OperationListPage type.

func (*OperationListPage) Next Uses

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

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

func (page OperationListPage) NotDone() bool

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

func (OperationListPage) Response Uses

func (page OperationListPage) Response() OperationList

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

func (OperationListPage) Values Uses

func (page OperationListPage) Values() []OperationResponse

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

type OperationResponse Uses

type OperationResponse struct {
    // Name - this is the operation response name
    Name *string `json:"name,omitempty"`
    // Display - this is the operation display
    Display *OperationDisplay `json:"display,omitempty"`
    // Origin - the is operation response origin information
    Origin *string `json:"origin,omitempty"`
}

OperationResponse this is the management partner operations response

type PartnerClient Uses

type PartnerClient struct {
    BaseClient
}

PartnerClient is the this API describe ACE Provisioning ManagementPartner

func NewPartnerClient Uses

func NewPartnerClient() PartnerClient

NewPartnerClient creates an instance of the PartnerClient client.

func NewPartnerClientWithBaseURI Uses

func NewPartnerClientWithBaseURI(baseURI string) PartnerClient

NewPartnerClientWithBaseURI creates an instance of the PartnerClient client.

func (PartnerClient) Create Uses

func (client PartnerClient) Create(ctx context.Context, partnerID string) (result PartnerResponse, err error)

Create create a management partner for the objectId and tenantId. Parameters: partnerID - id of the Partner

func (PartnerClient) CreatePreparer Uses

func (client PartnerClient) CreatePreparer(ctx context.Context, partnerID string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (PartnerClient) CreateResponder Uses

func (client PartnerClient) CreateResponder(resp *http.Response) (result PartnerResponse, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (PartnerClient) CreateSender Uses

func (client PartnerClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (PartnerClient) Delete Uses

func (client PartnerClient) Delete(ctx context.Context, partnerID string) (result autorest.Response, err error)

Delete delete the management partner for the objectId and tenantId. Parameters: partnerID - id of the Partner

func (PartnerClient) DeletePreparer Uses

func (client PartnerClient) DeletePreparer(ctx context.Context, partnerID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (PartnerClient) DeleteResponder Uses

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

func (client PartnerClient) 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 (PartnerClient) Get Uses

func (client PartnerClient) Get(ctx context.Context, partnerID string) (result PartnerResponse, err error)

Get get the management partner using the partnerId, objectId and tenantId. Parameters: partnerID - id of the Partner

func (PartnerClient) GetPreparer Uses

func (client PartnerClient) GetPreparer(ctx context.Context, partnerID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PartnerClient) GetResponder Uses

func (client PartnerClient) GetResponder(resp *http.Response) (result PartnerResponse, err error)

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

func (PartnerClient) GetSender Uses

func (client PartnerClient) 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 (PartnerClient) Update Uses

func (client PartnerClient) Update(ctx context.Context, partnerID string) (result PartnerResponse, err error)

Update update the management partner for the objectId and tenantId. Parameters: partnerID - id of the Partner

func (PartnerClient) UpdatePreparer Uses

func (client PartnerClient) UpdatePreparer(ctx context.Context, partnerID string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (PartnerClient) UpdateResponder Uses

func (client PartnerClient) UpdateResponder(resp *http.Response) (result PartnerResponse, err error)

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

func (PartnerClient) UpdateSender Uses

func (client PartnerClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type PartnerProperties Uses

type PartnerProperties struct {
    // PartnerID - This is the partner id
    PartnerID *string `json:"partnerId,omitempty"`
    // PartnerName - This is the partner name
    PartnerName *string `json:"partnerName,omitempty"`
    // TenantID - This is the tenant id.
    TenantID *string `json:"tenantId,omitempty"`
    // ObjectID - This is the object id.
    ObjectID *string `json:"objectId,omitempty"`
    // Version - This is the version.
    Version *string `json:"version,omitempty"`
    // UpdatedTime - This is the DateTime when the partner was updated.
    UpdatedTime *date.Time `json:"updatedTime,omitempty"`
    // CreatedTime - This is the DateTime when the partner was created.
    CreatedTime *date.Time `json:"createdTime,omitempty"`
    // State - This is the partner state. Possible values include: 'Active', 'Deleted'
    State State `json:"state,omitempty"`
}

PartnerProperties this is the management partner properties

type PartnerResponse Uses

type PartnerResponse struct {
    autorest.Response `json:"-"`
    // Etag - Type of the partner
    Etag *int32 `json:"etag,omitempty"`
    // ID - READ-ONLY; Identifier of the partner
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Name of the partner
    Name *string `json:"name,omitempty"`
    // PartnerProperties - Properties of the partner
    *PartnerProperties `json:"properties,omitempty"`
    // Type - READ-ONLY; Type of resource. "Microsoft.ManagementPartner/partners"
    Type *string `json:"type,omitempty"`
}

PartnerResponse this is the management partner operations response

func (PartnerResponse) MarshalJSON Uses

func (pr PartnerResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PartnerResponse.

func (*PartnerResponse) UnmarshalJSON Uses

func (pr *PartnerResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PartnerResponse struct.

type PartnersClient Uses

type PartnersClient struct {
    BaseClient
}

PartnersClient is the this API describe ACE Provisioning ManagementPartner

func NewPartnersClient Uses

func NewPartnersClient() PartnersClient

NewPartnersClient creates an instance of the PartnersClient client.

func NewPartnersClientWithBaseURI Uses

func NewPartnersClientWithBaseURI(baseURI string) PartnersClient

NewPartnersClientWithBaseURI creates an instance of the PartnersClient client.

func (PartnersClient) Get Uses

func (client PartnersClient) Get(ctx context.Context) (result PartnerResponse, err error)

Get get the management partner using the objectId and tenantId.

func (PartnersClient) GetPreparer Uses

func (client PartnersClient) GetPreparer(ctx context.Context) (*http.Request, error)

GetPreparer prepares the Get request.

func (PartnersClient) GetResponder Uses

func (client PartnersClient) GetResponder(resp *http.Response) (result PartnerResponse, err error)

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

func (PartnersClient) GetSender Uses

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

type State Uses

type State string

State enumerates the values for state.

const (
    // Active ...
    Active State = "Active"
    // Deleted ...
    Deleted State = "Deleted"
)

func PossibleStateValues Uses

func PossibleStateValues() []State

PossibleStateValues returns an array of possible values for the State const type.

Directories

PathSynopsis
managementpartnerapi

Package managementpartner imports 9 packages (graph) and is imported by 4 packages. Updated 2019-07-30. Refresh now. Tools for package owners.