Documentation ¶
Overview ¶
Package managementpartner implements the Azure ARM Managementpartner service API version 2018-02-01.
This API describe ACE Provisioning ManagementPartner
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type Code
- type Error
- type ExtendedErrorInfo
- type OperationClient
- func (client OperationClient) List(ctx context.Context) (result OperationListPage, err error)
- func (client OperationClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)
- func (client OperationClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationClient) ListResponder(resp *http.Response) (result OperationList, err error)
- func (client OperationClient) ListSender(req *http.Request) (*http.Response, error)
- type OperationDisplay
- type OperationList
- type OperationListIterator
- type OperationListPage
- type OperationResponse
- type PartnerClient
- func (client PartnerClient) Create(ctx context.Context, partnerID string) (result PartnerResponse, err error)
- func (client PartnerClient) CreatePreparer(ctx context.Context, partnerID string) (*http.Request, error)
- func (client PartnerClient) CreateResponder(resp *http.Response) (result PartnerResponse, err error)
- func (client PartnerClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client PartnerClient) Delete(ctx context.Context, partnerID string) (result autorest.Response, err error)
- func (client PartnerClient) DeletePreparer(ctx context.Context, partnerID string) (*http.Request, error)
- func (client PartnerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client PartnerClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client PartnerClient) Get(ctx context.Context, partnerID string) (result PartnerResponse, err error)
- func (client PartnerClient) GetPreparer(ctx context.Context, partnerID string) (*http.Request, error)
- func (client PartnerClient) GetResponder(resp *http.Response) (result PartnerResponse, err error)
- func (client PartnerClient) GetSender(req *http.Request) (*http.Response, error)
- func (client PartnerClient) Update(ctx context.Context, partnerID string) (result PartnerResponse, err error)
- func (client PartnerClient) UpdatePreparer(ctx context.Context, partnerID string) (*http.Request, error)
- func (client PartnerClient) UpdateResponder(resp *http.Response) (result PartnerResponse, err error)
- func (client PartnerClient) UpdateSender(req *http.Request) (*http.Response, error)
- type PartnerProperties
- type PartnerResponse
- type State
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Managementpartner
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 BaseClient ¶
BaseClient is the base client for Managementpartner.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client.
type Error ¶
type Error struct { // Error - this is the ExtendedErrorInfo property Error *ExtendedErrorInfo `json:"error,omitempty"` }
Error this is the management partner operations error
type ExtendedErrorInfo ¶
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 ¶
type OperationClient struct {
BaseClient
}
OperationClient is the this API describe ACE Provisioning ManagementPartner
func NewOperationClient ¶
func NewOperationClient() OperationClient
NewOperationClient creates an instance of the OperationClient client.
func NewOperationClientWithBaseURI ¶
func NewOperationClientWithBaseURI(baseURI string) OperationClient
NewOperationClientWithBaseURI creates an instance of the OperationClient client.
func (OperationClient) List ¶
func (client OperationClient) List(ctx context.Context) (result OperationListPage, err error)
List list all the operations.
func (OperationClient) ListComplete ¶
func (client OperationClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationClient) ListResponder ¶
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 ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type OperationDisplay ¶
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 ¶
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 ¶
func (ol OperationList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type OperationListIterator ¶
type OperationListIterator struct {
// contains filtered or unexported fields
}
OperationListIterator provides access to a complete listing of OperationResponse values.
func (*OperationListIterator) Next ¶
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.
func (OperationListIterator) NotDone ¶
func (iter OperationListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListIterator) Response ¶
func (iter OperationListIterator) Response() OperationList
Response returns the raw server response from the last page request.
func (OperationListIterator) Value ¶
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 ¶
type OperationListPage struct {
// contains filtered or unexported fields
}
OperationListPage contains a page of OperationResponse values.
func (*OperationListPage) Next ¶
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.
func (OperationListPage) NotDone ¶
func (page OperationListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListPage) Response ¶
func (page OperationListPage) Response() OperationList
Response returns the raw server response from the last page request.
func (OperationListPage) Values ¶
func (page OperationListPage) Values() []OperationResponse
Values returns the slice of values for the current page or nil if there are no values.
type OperationResponse ¶
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 ¶
type PartnerClient struct {
BaseClient
}
PartnerClient is the this API describe ACE Provisioning ManagementPartner
func NewPartnerClient ¶
func NewPartnerClient() PartnerClient
NewPartnerClient creates an instance of the PartnerClient client.
func NewPartnerClientWithBaseURI ¶
func NewPartnerClientWithBaseURI(baseURI string) PartnerClient
NewPartnerClientWithBaseURI creates an instance of the PartnerClient client.
func (PartnerClient) Create ¶
func (client PartnerClient) Create(ctx context.Context, partnerID string) (result PartnerResponse, err error)
Create create a management partner for the objectId and tenantId.
partnerID is id of the Partner
func (PartnerClient) CreatePreparer ¶
func (client PartnerClient) CreatePreparer(ctx context.Context, partnerID string) (*http.Request, error)
CreatePreparer prepares the Create request.
func (PartnerClient) CreateResponder ¶
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 ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (PartnerClient) Delete ¶
func (client PartnerClient) Delete(ctx context.Context, partnerID string) (result autorest.Response, err error)
Delete delete the management partner for the objectId and tenantId.
partnerID is id of the Partner
func (PartnerClient) DeletePreparer ¶
func (client PartnerClient) DeletePreparer(ctx context.Context, partnerID string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (PartnerClient) DeleteResponder ¶
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 ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (PartnerClient) Get ¶
func (client PartnerClient) Get(ctx context.Context, partnerID string) (result PartnerResponse, err error)
Get get the management partner using the partnerId, objectId and tenantId.
partnerID is id of the Partner
func (PartnerClient) GetPreparer ¶
func (client PartnerClient) GetPreparer(ctx context.Context, partnerID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PartnerClient) GetResponder ¶
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 ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (PartnerClient) Update ¶
func (client PartnerClient) Update(ctx context.Context, partnerID string) (result PartnerResponse, err error)
Update update the management partner for the objectId and tenantId.
partnerID is id of the Partner
func (PartnerClient) UpdatePreparer ¶
func (client PartnerClient) UpdatePreparer(ctx context.Context, partnerID string) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (PartnerClient) UpdateResponder ¶
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 ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type PartnerProperties ¶
type PartnerProperties struct { // PartnerID - This is the partner id PartnerID *string `json:"partnerId,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 ¶
type PartnerResponse struct { autorest.Response `json:"-"` // Etag - Type of the partner Etag *int32 `json:"etag,omitempty"` // ID - Identifier of the partner ID *string `json:"id,omitempty"` // Name - Name of the partner Name *string `json:"name,omitempty"` // PartnerProperties - Properties of the partner *PartnerProperties `json:"properties,omitempty"` // Type - Type of resource. "Microsoft.ManagementPartner/partners" Type *string `json:"type,omitempty"` }
PartnerResponse this is the management partner operations response
func (*PartnerResponse) UnmarshalJSON ¶
func (pr *PartnerResponse) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PartnerResponse struct.