azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2016-10-10/apimanagement Index | Files | Directories

package apimanagement

import "github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2016-10-10/apimanagement"

Package apimanagement implements the Azure ARM Apimanagement service API version 2016-10-10.

ApiManagement Client

Index

Package Files

apiexport.go apioperations.go apioperationspolicy.go apipolicy.go apiproducts.go apis.go authorizationservers.go backends.go certificates.go client.go groups.go groupusers.go identityproviders.go loggers.go models.go networkstatus.go openidconnectproviders.go operations.go policysnippets.go productapis.go productgroups.go productpolicy.go products.go productsubscriptions.go properties.go property.go quotabycounterkeys.go quotabyperiodkeys.go regions.go reports.go services.go subscriptions.go tenantaccess.go tenantaccessgit.go tenantconfiguration.go tenantconfigurationsyncstate.go tenantpolicy.go usergroups.go useridentities.go users.go usersubscriptions.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Apimanagement
    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 APICollection Uses

type APICollection struct {
    autorest.Response `json:"-"`
    // Value - Page values.
    Value *[]APIContract `json:"value,omitempty"`
    // Count - Total record count number across all pages.
    Count *int64 `json:"count,omitempty"`
    // NextLink - Next page link if any.
    NextLink *string `json:"nextLink,omitempty"`
}

APICollection paged Api list representation.

func (APICollection) IsEmpty Uses

func (ac APICollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type APICollectionIterator Uses

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

APICollectionIterator provides access to a complete listing of APIContract values.

func NewAPICollectionIterator Uses

func NewAPICollectionIterator(page APICollectionPage) APICollectionIterator

Creates a new instance of the APICollectionIterator type.

func (*APICollectionIterator) Next Uses

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

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

func (iter APICollectionIterator) NotDone() bool

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

func (APICollectionIterator) Response Uses

func (iter APICollectionIterator) Response() APICollection

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

func (APICollectionIterator) Value Uses

func (iter APICollectionIterator) Value() APIContract

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

type APICollectionPage Uses

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

APICollectionPage contains a page of APIContract values.

func NewAPICollectionPage Uses

func NewAPICollectionPage(getNextPage func(context.Context, APICollection) (APICollection, error)) APICollectionPage

Creates a new instance of the APICollectionPage type.

func (*APICollectionPage) Next Uses

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

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

func (page APICollectionPage) NotDone() bool

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

func (APICollectionPage) Response Uses

func (page APICollectionPage) Response() APICollection

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

func (APICollectionPage) Values Uses

func (page APICollectionPage) Values() []APIContract

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

type APIContract Uses

type APIContract struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; API identifier path: /apis/{apiId}
    ID  *string `json:"id,omitempty"`
    // Name - API name.
    Name *string `json:"name,omitempty"`
    // ServiceURL - Absolute URL of the backend service implementing this API.
    ServiceURL *string `json:"serviceUrl,omitempty"`
    // Path - Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
    Path *string `json:"path,omitempty"`
    // Protocols - Describes on which protocols the operations in this API can be invoked.
    Protocols *[]APIProtocolContract `json:"protocols,omitempty"`
    // Description - Description of the API. May include HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // AuthenticationSettings - Collection of authentication settings included into this API.
    AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"`
    // SubscriptionKeyParameterNames - Protocols over which API is made available.
    SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"`
    // Type - Type of API. Possible values include: 'APITypeContractHTTP', 'APITypeContractSoap'
    Type APITypeContract `json:"type,omitempty"`
}

APIContract API details.

type APIEntityBaseContract Uses

type APIEntityBaseContract struct {
    // Description - Description of the API. May include HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // AuthenticationSettings - Collection of authentication settings included into this API.
    AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"`
    // SubscriptionKeyParameterNames - Protocols over which API is made available.
    SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"`
    // Type - Type of API. Possible values include: 'APITypeContractHTTP', 'APITypeContractSoap'
    Type APITypeContract `json:"type,omitempty"`
}

APIEntityBaseContract API base contract details.

type APIExportClient Uses

type APIExportClient struct {
    BaseClient
}

APIExportClient is the apiManagement Client

func NewAPIExportClient Uses

func NewAPIExportClient(subscriptionID string) APIExportClient

NewAPIExportClient creates an instance of the APIExportClient client.

func NewAPIExportClientWithBaseURI Uses

func NewAPIExportClientWithBaseURI(baseURI string, subscriptionID string) APIExportClient

NewAPIExportClientWithBaseURI creates an instance of the APIExportClient client.

func (APIExportClient) Get Uses

func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result APIExportResult, err error)

Get gets the details of the API specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance.

func (APIExportClient) GetPreparer Uses

func (client APIExportClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error)

GetPreparer prepares the Get request.

func (APIExportClient) GetResponder Uses

func (client APIExportClient) GetResponder(resp *http.Response) (result APIExportResult, err error)

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

func (APIExportClient) GetSender Uses

func (client APIExportClient) 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 APIExportResult Uses

type APIExportResult struct {
    autorest.Response `json:"-"`
    // Content - Response content bytes.
    Content *[]byte `json:"content,omitempty"`
    // StatusCode - Possible values include: 'Continue', 'OK', 'Created', 'Accepted', 'NotFound', 'Conflict'
    StatusCode HTTPStatusCode `json:"statusCode,omitempty"`
    RequestID  *string        `json:"requestId,omitempty"`
}

APIExportResult the response model for the export API output operation.

type APIOperationsClient Uses

type APIOperationsClient struct {
    BaseClient
}

APIOperationsClient is the apiManagement Client

func NewAPIOperationsClient Uses

func NewAPIOperationsClient(subscriptionID string) APIOperationsClient

NewAPIOperationsClient creates an instance of the APIOperationsClient client.

func NewAPIOperationsClientWithBaseURI Uses

func NewAPIOperationsClientWithBaseURI(baseURI string, subscriptionID string) APIOperationsClient

NewAPIOperationsClientWithBaseURI creates an instance of the APIOperationsClient client.

func (APIOperationsClient) CreateOrUpdate Uses

func (client APIOperationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationContract) (result autorest.Response, err error)

CreateOrUpdate creates a new API operation or updates an existing one. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. operationID - operation identifier within an API. Must be unique in the current API Management service instance. parameters - create parameters.

func (APIOperationsClient) CreateOrUpdatePreparer Uses

func (client APIOperationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationContract) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (APIOperationsClient) CreateOrUpdateResponder Uses

func (client APIOperationsClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (APIOperationsClient) CreateOrUpdateSender Uses

func (client APIOperationsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (APIOperationsClient) Delete Uses

func (client APIOperationsClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (result autorest.Response, err error)

Delete deletes the specified operation. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. operationID - operation identifier within an API. Must be unique in the current API Management service instance. ifMatch - eTag of the API Operation Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

func (APIOperationsClient) DeletePreparer Uses

func (client APIOperationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (APIOperationsClient) DeleteResponder Uses

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

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

func (client APIOperationsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (result OperationContract, err error)

Get gets the details of the API Operation specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. operationID - operation identifier within an API. Must be unique in the current API Management service instance.

func (APIOperationsClient) GetPreparer Uses

func (client APIOperationsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (APIOperationsClient) GetResponder Uses

func (client APIOperationsClient) GetResponder(resp *http.Response) (result OperationContract, err error)

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

func (APIOperationsClient) GetSender Uses

func (client APIOperationsClient) 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 (APIOperationsClient) ListByApis Uses

func (client APIOperationsClient) ListByApis(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result OperationCollectionPage, err error)

ListByApis lists a collection of the operations for the specified API. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. filter - | Field | Supported operators | Supported functions | |-------------|------------------------|-----------------------------------| | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | top - number of records to return. skip - number of records to skip.

func (APIOperationsClient) ListByApisComplete Uses

func (client APIOperationsClient) ListByApisComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result OperationCollectionIterator, err error)

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

func (APIOperationsClient) ListByApisPreparer Uses

func (client APIOperationsClient) ListByApisPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByApisPreparer prepares the ListByApis request.

func (APIOperationsClient) ListByApisResponder Uses

func (client APIOperationsClient) ListByApisResponder(resp *http.Response) (result OperationCollection, err error)

ListByApisResponder handles the response to the ListByApis request. The method always closes the http.Response Body.

func (APIOperationsClient) ListByApisSender Uses

func (client APIOperationsClient) ListByApisSender(req *http.Request) (*http.Response, error)

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

func (APIOperationsClient) Update Uses

func (client APIOperationsClient) Update(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationUpdateContract, ifMatch string) (result autorest.Response, err error)

Update updates the details of the operation specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. operationID - operation identifier within an API. Must be unique in the current API Management service instance. parameters - API Operation Update parameters. ifMatch - eTag of the API Operation Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

func (APIOperationsClient) UpdatePreparer Uses

func (client APIOperationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationUpdateContract, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (APIOperationsClient) UpdateResponder Uses

func (client APIOperationsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (APIOperationsClient) UpdateSender Uses

func (client APIOperationsClient) 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 APIOperationsPolicyClient Uses

type APIOperationsPolicyClient struct {
    BaseClient
}

APIOperationsPolicyClient is the apiManagement Client

func NewAPIOperationsPolicyClient Uses

func NewAPIOperationsPolicyClient(subscriptionID string) APIOperationsPolicyClient

NewAPIOperationsPolicyClient creates an instance of the APIOperationsPolicyClient client.

func NewAPIOperationsPolicyClientWithBaseURI Uses

func NewAPIOperationsPolicyClientWithBaseURI(baseURI string, subscriptionID string) APIOperationsPolicyClient

NewAPIOperationsPolicyClientWithBaseURI creates an instance of the APIOperationsPolicyClient client.

func (APIOperationsPolicyClient) CreateOrUpdate Uses

func (client APIOperationsPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters io.ReadCloser, ifMatch string) (result autorest.Response, err error)

CreateOrUpdate creates or updates policy configuration for the API Operation level. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. operationID - operation identifier within an API. Must be unique in the current API Management service instance. parameters - the policy contents to apply. ifMatch - the entity state (Etag) version of the Api Operation policy to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (APIOperationsPolicyClient) CreateOrUpdatePreparer Uses

func (client APIOperationsPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters io.ReadCloser, ifMatch string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (APIOperationsPolicyClient) CreateOrUpdateResponder Uses

func (client APIOperationsPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (APIOperationsPolicyClient) CreateOrUpdateSender Uses

func (client APIOperationsPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (APIOperationsPolicyClient) Delete Uses

func (client APIOperationsPolicyClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (result autorest.Response, err error)

Delete deletes the policy configuration at the Api Operation. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. operationID - operation identifier within an API. Must be unique in the current API Management service instance. ifMatch - the entity state (Etag) version of the Api operation policy to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (APIOperationsPolicyClient) DeletePreparer Uses

func (client APIOperationsPolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (APIOperationsPolicyClient) DeleteResponder Uses

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

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

func (client APIOperationsPolicyClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (result ReadCloser, err error)

Get get the policy configuration at the API Operation level. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. operationID - operation identifier within an API. Must be unique in the current API Management service instance.

func (APIOperationsPolicyClient) GetPreparer Uses

func (client APIOperationsPolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (APIOperationsPolicyClient) GetResponder Uses

func (client APIOperationsPolicyClient) GetResponder(resp *http.Response) (result ReadCloser, err error)

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

func (APIOperationsPolicyClient) GetSender Uses

func (client APIOperationsPolicyClient) 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 APIPolicyClient Uses

type APIPolicyClient struct {
    BaseClient
}

APIPolicyClient is the apiManagement Client

func NewAPIPolicyClient Uses

func NewAPIPolicyClient(subscriptionID string) APIPolicyClient

NewAPIPolicyClient creates an instance of the APIPolicyClient client.

func NewAPIPolicyClientWithBaseURI Uses

func NewAPIPolicyClientWithBaseURI(baseURI string, subscriptionID string) APIPolicyClient

NewAPIPolicyClientWithBaseURI creates an instance of the APIPolicyClient client.

func (APIPolicyClient) CreateOrUpdate Uses

func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters io.ReadCloser, ifMatch string) (result autorest.Response, err error)

CreateOrUpdate creates or updates policy configuration for the API. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. parameters - the policy contents to apply. ifMatch - the entity state (Etag) version of the Api Policy to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (APIPolicyClient) CreateOrUpdatePreparer Uses

func (client APIPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters io.ReadCloser, ifMatch string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (APIPolicyClient) CreateOrUpdateResponder Uses

func (client APIPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (APIPolicyClient) CreateOrUpdateSender Uses

func (client APIPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (APIPolicyClient) Delete Uses

func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string) (result autorest.Response, err error)

Delete deletes the policy configuration at the Api. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. ifMatch - the entity state (Etag) version of the Api policy to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (APIPolicyClient) DeletePreparer Uses

func (client APIPolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (APIPolicyClient) DeleteResponder Uses

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

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

func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result ReadCloser, err error)

Get get the policy configuration at the API level. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance.

func (APIPolicyClient) GetPreparer Uses

func (client APIPolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error)

GetPreparer prepares the Get request.

func (APIPolicyClient) GetResponder Uses

func (client APIPolicyClient) GetResponder(resp *http.Response) (result ReadCloser, err error)

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

func (APIPolicyClient) GetSender Uses

func (client APIPolicyClient) 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 APIProductsClient Uses

type APIProductsClient struct {
    BaseClient
}

APIProductsClient is the apiManagement Client

func NewAPIProductsClient Uses

func NewAPIProductsClient(subscriptionID string) APIProductsClient

NewAPIProductsClient creates an instance of the APIProductsClient client.

func NewAPIProductsClientWithBaseURI Uses

func NewAPIProductsClientWithBaseURI(baseURI string, subscriptionID string) APIProductsClient

NewAPIProductsClientWithBaseURI creates an instance of the APIProductsClient client.

func (APIProductsClient) ListByApis Uses

func (client APIProductsClient) ListByApis(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result ProductCollectionPage, err error)

ListByApis lists all API associated products. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. filter - | Field | Supported operators | Supported functions | |-------|------------------------|---------------------------------------------| | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | top - number of records to return. skip - number of records to skip.

func (APIProductsClient) ListByApisComplete Uses

func (client APIProductsClient) ListByApisComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result ProductCollectionIterator, err error)

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

func (APIProductsClient) ListByApisPreparer Uses

func (client APIProductsClient) ListByApisPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByApisPreparer prepares the ListByApis request.

func (APIProductsClient) ListByApisResponder Uses

func (client APIProductsClient) ListByApisResponder(resp *http.Response) (result ProductCollection, err error)

ListByApisResponder handles the response to the ListByApis request. The method always closes the http.Response Body.

func (APIProductsClient) ListByApisSender Uses

func (client APIProductsClient) ListByApisSender(req *http.Request) (*http.Response, error)

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

type APIProtocolContract Uses

type APIProtocolContract string

APIProtocolContract enumerates the values for api protocol contract.

const (
    // HTTP ...
    HTTP APIProtocolContract = "Http"
    // HTTPS ...
    HTTPS APIProtocolContract = "Https"
)

func PossibleAPIProtocolContractValues Uses

func PossibleAPIProtocolContractValues() []APIProtocolContract

PossibleAPIProtocolContractValues returns an array of possible values for the APIProtocolContract const type.

type APITypeContract Uses

type APITypeContract string

APITypeContract enumerates the values for api type contract.

const (
    // APITypeContractHTTP ...
    APITypeContractHTTP APITypeContract = "Http"
    // APITypeContractSoap ...
    APITypeContractSoap APITypeContract = "Soap"
)

func PossibleAPITypeContractValues Uses

func PossibleAPITypeContractValues() []APITypeContract

PossibleAPITypeContractValues returns an array of possible values for the APITypeContract const type.

type APIUpdateContract Uses

type APIUpdateContract struct {
    // ID - READ-ONLY; API identifier path: /apis/{apiId}
    ID  *string `json:"id,omitempty"`
    // Name - API name.
    Name *string `json:"name,omitempty"`
    // ServiceURL - Absolute URL of the backend service implementing this API.
    ServiceURL *string `json:"serviceUrl,omitempty"`
    // Path - Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
    Path *string `json:"path,omitempty"`
    // Protocols - Describes on which protocols the operations in this API can be invoked.
    Protocols *[]APIProtocolContract `json:"protocols,omitempty"`
    // Description - Description of the API. May include HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // AuthenticationSettings - Collection of authentication settings included into this API.
    AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"`
    // SubscriptionKeyParameterNames - Protocols over which API is made available.
    SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"`
    // Type - Type of API. Possible values include: 'APITypeContractHTTP', 'APITypeContractSoap'
    Type APITypeContract `json:"type,omitempty"`
}

APIUpdateContract API Update Contract details.

type AccessInformationContract Uses

type AccessInformationContract struct {
    autorest.Response `json:"-"`
    // ID - Identifier.
    ID  *string `json:"id,omitempty"`
    // PrimaryKey - Primary access key.
    PrimaryKey *string `json:"primaryKey,omitempty"`
    // SecondaryKey - Secondary access key.
    SecondaryKey *string `json:"secondaryKey,omitempty"`
    // Enabled - Tenant access information of the API Management service.
    Enabled *bool `json:"enabled,omitempty"`
}

AccessInformationContract tenant access information contract of the API Management service.

type AccessInformationUpdateParameters Uses

type AccessInformationUpdateParameters struct {
    // Enabled - Tenant access information of the API Management service.
    Enabled *bool `json:"enabled,omitempty"`
}

AccessInformationUpdateParameters tenant access information update parameters of the API Management service.

type AdditionalRegion Uses

type AdditionalRegion struct {
    // Location - The location name of the additional region among Azure Data center regions.
    Location *string `json:"location,omitempty"`
    // SkuType - The SKU type in the location. Possible values include: 'Developer', 'Standard', 'Premium'
    SkuType SkuType `json:"skuType,omitempty"`
    // SkuUnitCount - The SKU Unit count at the location. The maximum SKU Unit count depends on the SkuType. Maximum allowed for Developer SKU is 1, for Standard SKU is 4, and for Premium SKU is 10, at a location.
    SkuUnitCount *int32 `json:"skuUnitCount,omitempty"`
    // StaticIPs - READ-ONLY; Static IP addresses of the location's virtual machines.
    StaticIPs *[]string `json:"staticIPs,omitempty"`
    // Vpnconfiguration - Virtual network configuration for the location.
    Vpnconfiguration *VirtualNetworkConfiguration `json:"vpnconfiguration,omitempty"`
}

AdditionalRegion description of an additional API Management resource location.

type ApisClient Uses

type ApisClient struct {
    BaseClient
}

ApisClient is the apiManagement Client

func NewApisClient Uses

func NewApisClient(subscriptionID string) ApisClient

NewApisClient creates an instance of the ApisClient client.

func NewApisClientWithBaseURI Uses

func NewApisClientWithBaseURI(baseURI string, subscriptionID string) ApisClient

NewApisClientWithBaseURI creates an instance of the ApisClient client.

func (ApisClient) CreateOrUpdate Uses

func (client ApisClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APIContract, ifMatch string) (result autorest.Response, err error)

CreateOrUpdate creates new or updates existing specified API of the API Management service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. parameters - create or update parameters. ifMatch - eTag of the Api Entity. For Create Api Etag should not be specified. For Update Etag should match the existing Entity or it can be * for unconditional update.

func (ApisClient) CreateOrUpdatePreparer Uses

func (client ApisClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APIContract, ifMatch string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ApisClient) CreateOrUpdateResponder Uses

func (client ApisClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (ApisClient) CreateOrUpdateSender Uses

func (client ApisClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (ApisClient) Delete Uses

func (client ApisClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string) (result autorest.Response, err error)

Delete deletes the specified API of the API Management service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. ifMatch - eTag of the API Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

func (ApisClient) DeletePreparer Uses

func (client ApisClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ApisClient) DeleteResponder Uses

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

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

func (client ApisClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result APIContract, err error)

Get gets the details of the API specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance.

func (ApisClient) GetPreparer Uses

func (client ApisClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ApisClient) GetResponder Uses

func (client ApisClient) GetResponder(resp *http.Response) (result APIContract, err error)

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

func (ApisClient) GetSender Uses

func (client ApisClient) 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 (ApisClient) ListByService Uses

func (client ApisClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result APICollectionPage, err error)

ListByService lists all APIs of the API Management service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. filter - | Field | Supported operators | Supported functions | |-------------|------------------------|-----------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | top - number of records to return. skip - number of records to skip.

func (ApisClient) ListByServiceComplete Uses

func (client ApisClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result APICollectionIterator, err error)

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

func (ApisClient) ListByServicePreparer Uses

func (client ApisClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByServicePreparer prepares the ListByService request.

func (ApisClient) ListByServiceResponder Uses

func (client ApisClient) ListByServiceResponder(resp *http.Response) (result APICollection, err error)

ListByServiceResponder handles the response to the ListByService request. The method always closes the http.Response Body.

func (ApisClient) ListByServiceSender Uses

func (client ApisClient) ListByServiceSender(req *http.Request) (*http.Response, error)

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

func (ApisClient) Update Uses

func (client ApisClient) Update(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APIUpdateContract, ifMatch string) (result autorest.Response, err error)

Update updates the specified API of the API Management service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. apiid - API identifier. Must be unique in the current API Management service instance. parameters - API Update Contract parameters. ifMatch - eTag of the API entity. ETag should match the current entity state in the header response of the GET request or it should be * for unconditional update.

func (ApisClient) UpdatePreparer Uses

func (client ApisClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APIUpdateContract, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ApisClient) UpdateResponder Uses

func (client ApisClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (ApisClient) UpdateSender Uses

func (client ApisClient) 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 AsyncOperationState Uses

type AsyncOperationState string

AsyncOperationState enumerates the values for async operation state.

const (
    // Failed ...
    Failed AsyncOperationState = "Failed"
    // InProgress ...
    InProgress AsyncOperationState = "InProgress"
    // Started ...
    Started AsyncOperationState = "Started"
    // Succeeded ...
    Succeeded AsyncOperationState = "Succeeded"
)

func PossibleAsyncOperationStateValues Uses

func PossibleAsyncOperationStateValues() []AsyncOperationState

PossibleAsyncOperationStateValues returns an array of possible values for the AsyncOperationState const type.

type AuthenticationSettingsContract Uses

type AuthenticationSettingsContract struct {
    OAuth2 *OAuth2AuthenticationSettingsContract `json:"oAuth2,omitempty"`
}

AuthenticationSettingsContract API Authentication Settings.

type AuthorizationServerCollection Uses

type AuthorizationServerCollection struct {
    autorest.Response `json:"-"`
    // Value - Page values.
    Value *[]OAuth2AuthorizationServerContract `json:"value,omitempty"`
    // Count - Total record count number across all pages.
    Count *int64 `json:"count,omitempty"`
    // NextLink - Next page link if any.
    NextLink *string `json:"nextLink,omitempty"`
}

AuthorizationServerCollection paged OAuth2 Authorization Servers list representation.

func (AuthorizationServerCollection) IsEmpty Uses

func (asc AuthorizationServerCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AuthorizationServerCollectionIterator Uses

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

AuthorizationServerCollectionIterator provides access to a complete listing of OAuth2AuthorizationServerContract values.

func NewAuthorizationServerCollectionIterator Uses

func NewAuthorizationServerCollectionIterator(page AuthorizationServerCollectionPage) AuthorizationServerCollectionIterator

Creates a new instance of the AuthorizationServerCollectionIterator type.

func (*AuthorizationServerCollectionIterator) Next Uses

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

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

func (iter AuthorizationServerCollectionIterator) NotDone() bool

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

func (AuthorizationServerCollectionIterator) Response Uses

func (iter AuthorizationServerCollectionIterator) Response() AuthorizationServerCollection

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

func (AuthorizationServerCollectionIterator) Value Uses

func (iter AuthorizationServerCollectionIterator) Value() OAuth2AuthorizationServerContract

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

type AuthorizationServerCollectionPage Uses

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

AuthorizationServerCollectionPage contains a page of OAuth2AuthorizationServerContract values.

func NewAuthorizationServerCollectionPage Uses

func NewAuthorizationServerCollectionPage(getNextPage func(context.Context, AuthorizationServerCollection) (AuthorizationServerCollection, error)) AuthorizationServerCollectionPage

Creates a new instance of the AuthorizationServerCollectionPage type.

func (*AuthorizationServerCollectionPage) Next Uses

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

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

func (page AuthorizationServerCollectionPage) NotDone() bool

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

func (AuthorizationServerCollectionPage) Response Uses

func (page AuthorizationServerCollectionPage) Response() AuthorizationServerCollection

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

func (AuthorizationServerCollectionPage) Values Uses

func (page AuthorizationServerCollectionPage) Values() []OAuth2AuthorizationServerContract

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

type AuthorizationServersClient Uses

type AuthorizationServersClient struct {
    BaseClient
}

AuthorizationServersClient is the apiManagement Client

func NewAuthorizationServersClient Uses

func NewAuthorizationServersClient(subscriptionID string) AuthorizationServersClient

NewAuthorizationServersClient creates an instance of the AuthorizationServersClient client.

func NewAuthorizationServersClientWithBaseURI Uses

func NewAuthorizationServersClientWithBaseURI(baseURI string, subscriptionID string) AuthorizationServersClient

NewAuthorizationServersClientWithBaseURI creates an instance of the AuthorizationServersClient client.

func (AuthorizationServersClient) CreateOrUpdate Uses

func (client AuthorizationServersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters OAuth2AuthorizationServerContract) (result autorest.Response, err error)

CreateOrUpdate creates new authorization server or updates an existing authorization server. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. authsid - identifier of the authorization server. parameters - create or update parameters.

func (AuthorizationServersClient) CreateOrUpdatePreparer Uses

func (client AuthorizationServersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters OAuth2AuthorizationServerContract) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AuthorizationServersClient) CreateOrUpdateResponder Uses

func (client AuthorizationServersClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (AuthorizationServersClient) CreateOrUpdateSender Uses

func (client AuthorizationServersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (AuthorizationServersClient) Delete Uses

func (client AuthorizationServersClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, authsid string, ifMatch string) (result autorest.Response, err error)

Delete deletes specific authorization server instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. authsid - identifier of the authorization server. ifMatch - the entity state (Etag) version of the authentication server to delete. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (AuthorizationServersClient) DeletePreparer Uses

func (client AuthorizationServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AuthorizationServersClient) DeleteResponder Uses

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

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

func (client AuthorizationServersClient) Get(ctx context.Context, resourceGroupName string, serviceName string, authsid string) (result OAuth2AuthorizationServerContract, err error)

Get gets the details of the authorization server specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. authsid - identifier of the authorization server.

func (AuthorizationServersClient) GetPreparer Uses

func (client AuthorizationServersClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AuthorizationServersClient) GetResponder Uses

func (client AuthorizationServersClient) GetResponder(resp *http.Response) (result OAuth2AuthorizationServerContract, err error)

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

func (AuthorizationServersClient) GetSender Uses

func (client AuthorizationServersClient) 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 (AuthorizationServersClient) ListByService Uses

func (client AuthorizationServersClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result AuthorizationServerCollectionPage, err error)

ListByService lists a collection of authorization servers defined within a service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. filter - | Field | Supported operators | Supported functions | |-------|------------------------|---------------------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | top - number of records to return. skip - number of records to skip.

func (AuthorizationServersClient) ListByServiceComplete Uses

func (client AuthorizationServersClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result AuthorizationServerCollectionIterator, err error)

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

func (AuthorizationServersClient) ListByServicePreparer Uses

func (client AuthorizationServersClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByServicePreparer prepares the ListByService request.

func (AuthorizationServersClient) ListByServiceResponder Uses

func (client AuthorizationServersClient) ListByServiceResponder(resp *http.Response) (result AuthorizationServerCollection, err error)

ListByServiceResponder handles the response to the ListByService request. The method always closes the http.Response Body.

func (AuthorizationServersClient) ListByServiceSender Uses

func (client AuthorizationServersClient) ListByServiceSender(req *http.Request) (*http.Response, error)

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

func (AuthorizationServersClient) Update Uses

func (client AuthorizationServersClient) Update(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters OAuth2AuthorizationServerUpdateContract, ifMatch string) (result autorest.Response, err error)

Update updates the details of the authorization server specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. authsid - identifier of the authorization server. parameters - oAuth2 Server settings Update parameters. ifMatch - the entity state (Etag) version of the authorization server to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (AuthorizationServersClient) UpdatePreparer Uses

func (client AuthorizationServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters OAuth2AuthorizationServerUpdateContract, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AuthorizationServersClient) UpdateResponder Uses

func (client AuthorizationServersClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (AuthorizationServersClient) UpdateSender Uses

func (client AuthorizationServersClient) 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 BackendAuthorizationHeaderCredentials Uses

type BackendAuthorizationHeaderCredentials struct {
    // Scheme - Authentication Scheme name.
    Scheme *string `json:"scheme,omitempty"`
    // Parameter - Authentication Parameter value.
    Parameter *string `json:"parameter,omitempty"`
}

BackendAuthorizationHeaderCredentials authorization header information.

type BackendBaseParameters Uses

type BackendBaseParameters struct {
    // Certificate - List of Client Certificate Thumbprint.
    Certificate *[]string `json:"certificate,omitempty"`
    // Query - Query Parameter description.
    Query map[string][]string `json:"query"`
    // Header - Header Parameter description.
    Header map[string][]string `json:"header"`
    // URL - WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
    URL *string `json:"url,omitempty"`
    // Username - Username to connect to the WebProxy server
    Username *string `json:"username,omitempty"`
    // Password - Password to connect to the WebProxy Server
    Password *string `json:"password,omitempty"`
    // Title - Backend Title.
    Title *string `json:"title,omitempty"`
    // Description - Backend Description.
    Description *string `json:"description,omitempty"`
    // ResourceID - Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps.
    ResourceID         *string `json:"resourceId,omitempty"`
    *BackendProperties `json:"properties,omitempty"`
}

BackendBaseParameters backend entity base Parameter set.

func (BackendBaseParameters) MarshalJSON Uses

func (bbp BackendBaseParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackendBaseParameters.

func (*BackendBaseParameters) UnmarshalJSON Uses

func (bbp *BackendBaseParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BackendBaseParameters struct.

type BackendCollection Uses

type BackendCollection struct {
    autorest.Response `json:"-"`
    // Value - Backend values.
    Value *[]BackendResponse `json:"value,omitempty"`
    // Count - Total record count number across all pages.
    Count *int64 `json:"count,omitempty"`
    // NextLink - Next page link if any.
    NextLink *string `json:"nextLink,omitempty"`
}

BackendCollection paged Backend list representation.

func (BackendCollection) IsEmpty Uses

func (bc BackendCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BackendCollectionIterator Uses

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

BackendCollectionIterator provides access to a complete listing of BackendResponse values.

func NewBackendCollectionIterator Uses

func NewBackendCollectionIterator(page BackendCollectionPage) BackendCollectionIterator

Creates a new instance of the BackendCollectionIterator type.

func (*BackendCollectionIterator) Next Uses

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

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

func (iter BackendCollectionIterator) NotDone() bool

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

func (BackendCollectionIterator) Response Uses

func (iter BackendCollectionIterator) Response() BackendCollection

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

func (BackendCollectionIterator) Value Uses

func (iter BackendCollectionIterator) Value() BackendResponse

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

type BackendCollectionPage Uses

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

BackendCollectionPage contains a page of BackendResponse values.

func NewBackendCollectionPage Uses

func NewBackendCollectionPage(getNextPage func(context.Context, BackendCollection) (BackendCollection, error)) BackendCollectionPage

Creates a new instance of the BackendCollectionPage type.

func (*BackendCollectionPage) Next Uses

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

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

func (page BackendCollectionPage) NotDone() bool

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

func (BackendCollectionPage) Response Uses

func (page BackendCollectionPage) Response() BackendCollection

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

func (BackendCollectionPage) Values Uses

func (page BackendCollectionPage) Values() []BackendResponse

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

type BackendContract Uses

type BackendContract struct {
    // ID - READ-ONLY; Uniquely identifies the backend within the current API Management service instance. The value is a valid relative URL in the format of /backends/{backendId} where {backendId} is a backend identifier.
    ID  *string `json:"id,omitempty"`
    // Protocol - Backend communication protocol. Possible values include: 'BackendProtocolHTTP', 'BackendProtocolSoap'
    Protocol BackendProtocol `json:"protocol,omitempty"`
    // Certificate - List of Client Certificate Thumbprint.
    Certificate *[]string `json:"certificate,omitempty"`
    // Query - Query Parameter description.
    Query map[string][]string `json:"query"`
    // Header - Header Parameter description.
    Header map[string][]string `json:"header"`
    // URL - WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
    URL *string `json:"url,omitempty"`
    // Username - Username to connect to the WebProxy server
    Username *string `json:"username,omitempty"`
    // Password - Password to connect to the WebProxy Server
    Password *string `json:"password,omitempty"`
    // Title - Backend Title.
    Title *string `json:"title,omitempty"`
    // Description - Backend Description.
    Description *string `json:"description,omitempty"`
    // ResourceID - Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps.
    ResourceID         *string `json:"resourceId,omitempty"`
    *BackendProperties `json:"properties,omitempty"`
}

BackendContract parameters supplied to the Create Backend operation.

func (BackendContract) MarshalJSON Uses

func (bc BackendContract) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackendContract.

type BackendCredentialsContract Uses

type BackendCredentialsContract struct {
    // Certificate - List of Client Certificate Thumbprint.
    Certificate *[]string `json:"certificate,omitempty"`
    // Query - Query Parameter description.
    Query map[string][]string `json:"query"`
    // Header - Header Parameter description.
    Header map[string][]string `json:"header"`
    // Scheme - Authentication Scheme name.
    Scheme *string `json:"scheme,omitempty"`
    // Parameter - Authentication Parameter value.
    Parameter *string `json:"parameter,omitempty"`
}

BackendCredentialsContract details of the Credentials used to connect to Backend.

func (BackendCredentialsContract) MarshalJSON Uses

func (bcc BackendCredentialsContract) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackendCredentialsContract.

type BackendProperties Uses

type BackendProperties struct {
    // SkipCertificateChainValidation - Flag indicating whether SSL certificate chain validation should be skipped when using self-signed certificates for this backend host.
    SkipCertificateChainValidation *bool `json:"skipCertificateChainValidation,omitempty"`
    // SkipCertificateNameValidation - Flag indicating whether SSL certificate name validation should be skipped when using self-signed certificates for this backend host.
    SkipCertificateNameValidation *bool `json:"skipCertificateNameValidation,omitempty"`
}

BackendProperties properties specific to a Backend.

type BackendProtocol Uses

type BackendProtocol string

BackendProtocol enumerates the values for backend protocol.

const (
    // BackendProtocolHTTP ...
    BackendProtocolHTTP BackendProtocol = "http"
    // BackendProtocolSoap ...
    BackendProtocolSoap BackendProtocol = "soap"
)

func PossibleBackendProtocolValues Uses

func PossibleBackendProtocolValues() []BackendProtocol

PossibleBackendProtocolValues returns an array of possible values for the BackendProtocol const type.

type BackendProxyContract Uses

type BackendProxyContract struct {
    // URL - WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
    URL *string `json:"url,omitempty"`
    // Username - Username to connect to the WebProxy server
    Username *string `json:"username,omitempty"`
    // Password - Password to connect to the WebProxy Server
    Password *string `json:"password,omitempty"`
}

BackendProxyContract details of the Backend WebProxy Server to use in the Request to Backend.

type BackendResponse Uses

type BackendResponse struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Uniquely identifies the backend within the current API Management service instance. The value is a valid relative URL in the format of /backends/{backendId} where {backendId} is a backend identifier.
    ID  *string `json:"id,omitempty"`
    // Protocol - Backend communication protocol. Possible values include: 'BackendProtocolHTTP', 'BackendProtocolSoap'
    Protocol BackendProtocol `json:"protocol,omitempty"`
    // Certificate - List of Client Certificate Thumbprint.
    Certificate *[]string `json:"certificate,omitempty"`
    // Query - Query Parameter description.
    Query map[string][]string `json:"query"`
    // Header - Header Parameter description.
    Header map[string][]string `json:"header"`
    // URL - WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
    URL *string `json:"url,omitempty"`
    // Username - Username to connect to the WebProxy server
    Username *string `json:"username,omitempty"`
    // Password - Password to connect to the WebProxy Server
    Password *string `json:"password,omitempty"`
    // Title - Backend Title.
    Title *string `json:"title,omitempty"`
    // Description - Backend Description.
    Description *string `json:"description,omitempty"`
    // ResourceID - Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps.
    ResourceID         *string `json:"resourceId,omitempty"`
    *BackendProperties `json:"properties,omitempty"`
}

BackendResponse the Backend entity in API Management represents a backend service that is configured to skip certification chain validation when using a self-signed certificate to test mutual certificate authentication.

func (BackendResponse) MarshalJSON Uses

func (br BackendResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackendResponse.

type BackendUpdateParameters Uses

type BackendUpdateParameters struct {
    // Protocol - Backend communication protocol. Possible values include: 'BackendProtocolHTTP', 'BackendProtocolSoap'
    Protocol BackendProtocol `json:"protocol,omitempty"`
    // Certificate - List of Client Certificate Thumbprint.
    Certificate *[]string `json:"certificate,omitempty"`
    // Query - Query Parameter description.
    Query map[string][]string `json:"query"`
    // Header - Header Parameter description.
    Header map[string][]string `json:"header"`
    // URL - WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
    URL *string `json:"url,omitempty"`
    // Username - Username to connect to the WebProxy server
    Username *string `json:"username,omitempty"`
    // Password - Password to connect to the WebProxy Server
    Password *string `json:"password,omitempty"`
    // Title - Backend Title.
    Title *string `json:"title,omitempty"`
    // Description - Backend Description.
    Description *string `json:"description,omitempty"`
    // ResourceID - Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps.
    ResourceID         *string `json:"resourceId,omitempty"`
    *BackendProperties `json:"properties,omitempty"`
}

BackendUpdateParameters parameters supplied to the Update Backend operation.

func (BackendUpdateParameters) MarshalJSON Uses

func (bup BackendUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackendUpdateParameters.

type BackendsClient Uses

type BackendsClient struct {
    BaseClient
}

BackendsClient is the apiManagement Client

func NewBackendsClient Uses

func NewBackendsClient(subscriptionID string) BackendsClient

NewBackendsClient creates an instance of the BackendsClient client.

func NewBackendsClientWithBaseURI Uses

func NewBackendsClientWithBaseURI(baseURI string, subscriptionID string) BackendsClient

NewBackendsClientWithBaseURI creates an instance of the BackendsClient client.

func (BackendsClient) CreateOrUpdate Uses

func (client BackendsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendContract) (result autorest.Response, err error)

CreateOrUpdate creates or Updates a backend. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. backendid - identifier of the Backend entity. Must be unique in the current API Management service instance. parameters - create parameters.

func (BackendsClient) CreateOrUpdatePreparer Uses

func (client BackendsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendContract) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackendsClient) CreateOrUpdateResponder Uses

func (client BackendsClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (BackendsClient) CreateOrUpdateSender Uses

func (client BackendsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (BackendsClient) Delete Uses

func (client BackendsClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, backendid string, ifMatch string) (result autorest.Response, err error)

Delete deletes the specified backend. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. backendid - identifier of the Backend entity. Must be unique in the current API Management service instance. ifMatch - the entity state (Etag) version of the backend to delete. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (BackendsClient) DeletePreparer Uses

func (client BackendsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (BackendsClient) DeleteResponder Uses

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

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

func (client BackendsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, backendid string) (result BackendResponse, err error)

Get gets the details of the backend specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. backendid - identifier of the Backend entity. Must be unique in the current API Management service instance.

func (BackendsClient) GetPreparer Uses

func (client BackendsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string) (*http.Request, error)

GetPreparer prepares the Get request.

func (BackendsClient) GetResponder Uses

func (client BackendsClient) GetResponder(resp *http.Response) (result BackendResponse, err error)

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

func (BackendsClient) GetSender Uses

func (client BackendsClient) 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 (BackendsClient) ListByService Uses

func (client BackendsClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result BackendCollectionPage, err error)

ListByService lists a collection of backends in the specified service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. filter - | Field | Supported operators | Supported functions | |-------|------------------------|---------------------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | top - number of records to return. skip - number of records to skip.

func (BackendsClient) ListByServiceComplete Uses

func (client BackendsClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result BackendCollectionIterator, err error)

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

func (BackendsClient) ListByServicePreparer Uses

func (client BackendsClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByServicePreparer prepares the ListByService request.

func (BackendsClient) ListByServiceResponder Uses

func (client BackendsClient) ListByServiceResponder(resp *http.Response) (result BackendCollection, err error)

ListByServiceResponder handles the response to the ListByService request. The method always closes the http.Response Body.

func (BackendsClient) ListByServiceSender Uses

func (client BackendsClient) ListByServiceSender(req *http.Request) (*http.Response, error)

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

func (BackendsClient) Update Uses

func (client BackendsClient) Update(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendUpdateParameters, ifMatch string) (result autorest.Response, err error)

Update updates an existing backend. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. backendid - identifier of the Backend entity. Must be unique in the current API Management service instance. parameters - update parameters. ifMatch - the entity state (Etag) version of the backend to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (BackendsClient) UpdatePreparer Uses

func (client BackendsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendUpdateParameters, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (BackendsClient) UpdateResponder Uses

func (client BackendsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (BackendsClient) UpdateSender Uses

func (client BackendsClient) 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 BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Apimanagement.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BearerTokenSendingMethodsContract Uses

type BearerTokenSendingMethodsContract string

BearerTokenSendingMethodsContract enumerates the values for bearer token sending methods contract.

const (
    // AuthorizationHeader ...
    AuthorizationHeader BearerTokenSendingMethodsContract = "authorizationHeader"
    // Query ...
    Query BearerTokenSendingMethodsContract = "query"
)

func PossibleBearerTokenSendingMethodsContractValues Uses

func PossibleBearerTokenSendingMethodsContractValues() []BearerTokenSendingMethodsContract

PossibleBearerTokenSendingMethodsContractValues returns an array of possible values for the BearerTokenSendingMethodsContract const type.

type CertificateCollection Uses

type CertificateCollection struct {
    autorest.Response `json:"-"`
    // Value - Page values.
    Value *[]CertificateContract `json:"value,omitempty"`
    // Count - Total record count number across all pages.
    Count *int64 `json:"count,omitempty"`
    // NextLink - Next page link if any.
    NextLink *string `json:"nextLink,omitempty"`
}

CertificateCollection paged Certificates list representation.

func (CertificateCollection) IsEmpty Uses

func (cc CertificateCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type CertificateCollectionIterator Uses

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

CertificateCollectionIterator provides access to a complete listing of CertificateContract values.

func NewCertificateCollectionIterator Uses

func NewCertificateCollectionIterator(page CertificateCollectionPage) CertificateCollectionIterator

Creates a new instance of the CertificateCollectionIterator type.

func (*CertificateCollectionIterator) Next Uses

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

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

func (iter CertificateCollectionIterator) NotDone() bool

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

func (CertificateCollectionIterator) Response Uses

func (iter CertificateCollectionIterator) Response() CertificateCollection

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

func (CertificateCollectionIterator) Value Uses

func (iter CertificateCollectionIterator) Value() CertificateContract

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

type CertificateCollectionPage Uses

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

CertificateCollectionPage contains a page of CertificateContract values.

func NewCertificateCollectionPage Uses

func NewCertificateCollectionPage(getNextPage func(context.Context, CertificateCollection) (CertificateCollection, error)) CertificateCollectionPage

Creates a new instance of the CertificateCollectionPage type.

func (*CertificateCollectionPage) Next Uses

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

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

func (page CertificateCollectionPage) NotDone() bool

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

func (CertificateCollectionPage) Response Uses

func (page CertificateCollectionPage) Response() CertificateCollection

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

func (CertificateCollectionPage) Values Uses

func (page CertificateCollectionPage) Values() []CertificateContract

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

type CertificateContract Uses

type CertificateContract struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Certificate identifier path: /certificates/{certificateId}
    ID  *string `json:"id,omitempty"`
    // Subject - Subject attribute of the certificate.
    Subject *string `json:"subject,omitempty"`
    // Thumbprint - Thumbprint of the certificate.
    Thumbprint *string `json:"thumbprint,omitempty"`
    // ExpirationDate - Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
    ExpirationDate *date.Time `json:"expirationDate,omitempty"`
}

CertificateContract certificate details.

type CertificateCreateOrUpdateParameters Uses

type CertificateCreateOrUpdateParameters struct {
    // Data - Base 64 encoded certificate using the application/x-pkcs12 representation.
    Data *string `json:"data,omitempty"`
    // Password - Password for the Certificate
    Password *string `json:"password,omitempty"`
}

CertificateCreateOrUpdateParameters parameters supplied to the CreateOrUpdate certificate operation.

type CertificateInformation Uses

type CertificateInformation struct {
    autorest.Response `json:"-"`
    // Expiry - Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
    Expiry *date.Time `json:"expiry,omitempty"`
    // Thumbprint - Thumbprint of the certificate.
    Thumbprint *string `json:"thumbprint,omitempty"`
    // Subject - Subject of the certificate.
    Subject *string `json:"subject,omitempty"`
}

CertificateInformation SSL certificate information.

type CertificatesClient Uses

type CertificatesClient struct {
    BaseClient
}

CertificatesClient is the apiManagement Client

func NewCertificatesClient Uses

func NewCertificatesClient(subscriptionID string) CertificatesClient

NewCertificatesClient creates an instance of the CertificatesClient client.

func NewCertificatesClientWithBaseURI Uses

func NewCertificatesClientWithBaseURI(baseURI string, subscriptionID string) CertificatesClient

NewCertificatesClientWithBaseURI creates an instance of the CertificatesClient client.

func (CertificatesClient) CreateOrUpdate Uses

func (client CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, parameters CertificateCreateOrUpdateParameters, ifMatch string) (result autorest.Response, err error)

CreateOrUpdate creates or updates the certificate being used for authentication with the backend. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. certificateID - identifier of the certificate entity. Must be unique in the current API Management service instance. parameters - create parameters. ifMatch - the entity state (Etag) version of the certificate to update. A value of "*" can be used for If-Match to unconditionally apply the operation..

func (CertificatesClient) CreateOrUpdatePreparer Uses

func (client CertificatesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, parameters CertificateCreateOrUpdateParameters, ifMatch string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (CertificatesClient) CreateOrUpdateResponder Uses

func (client CertificatesClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (CertificatesClient) CreateOrUpdateSender Uses

func (client CertificatesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (CertificatesClient) Delete Uses

func (client CertificatesClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, ifMatch string) (result autorest.Response, err error)

Delete deletes specific certificate. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. certificateID - identifier of the certificate entity. Must be unique in the current API Management service instance. ifMatch - the entity state (Etag) version of the certificate to delete. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (CertificatesClient) DeletePreparer Uses

func (client CertificatesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (CertificatesClient) DeleteResponder Uses

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

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

func (client CertificatesClient) Get(ctx context.Context, resourceGroupName string, serviceName string, certificateID string) (result CertificateContract, err error)

Get gets the details of the certificate specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. certificateID - identifier of the certificate entity. Must be unique in the current API Management service instance.

func (CertificatesClient) GetPreparer Uses

func (client CertificatesClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CertificatesClient) GetResponder Uses

func (client CertificatesClient) GetResponder(resp *http.Response) (result CertificateContract, err error)

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

func (CertificatesClient) GetSender Uses

func (client CertificatesClient) 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 (CertificatesClient) ListByService Uses

func (client CertificatesClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result CertificateCollectionPage, err error)

ListByService lists a collection of all certificates in the specified service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. filter - | Field | Supported operators | Supported functions | |----------------|------------------------|---------------------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | subject | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | thumbprint | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | expirationDate | ge, le, eq, ne, gt, lt | N/A | top - number of records to return. skip - number of records to skip.

func (CertificatesClient) ListByServiceComplete Uses

func (client CertificatesClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result CertificateCollectionIterator, err error)

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

func (CertificatesClient) ListByServicePreparer Uses

func (client CertificatesClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByServicePreparer prepares the ListByService request.

func (CertificatesClient) ListByServiceResponder Uses

func (client CertificatesClient) ListByServiceResponder(resp *http.Response) (result CertificateCollection, err error)

ListByServiceResponder handles the response to the ListByService request. The method always closes the http.Response Body.

func (CertificatesClient) ListByServiceSender Uses

func (client CertificatesClient) ListByServiceSender(req *http.Request) (*http.Response, error)

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

type ClientAuthenticationMethodContract Uses

type ClientAuthenticationMethodContract string

ClientAuthenticationMethodContract enumerates the values for client authentication method contract.

const (
    // Basic ...
    Basic ClientAuthenticationMethodContract = "Basic"
    // Body ...
    Body ClientAuthenticationMethodContract = "Body"
)

func PossibleClientAuthenticationMethodContractValues Uses

func PossibleClientAuthenticationMethodContractValues() []ClientAuthenticationMethodContract

PossibleClientAuthenticationMethodContractValues returns an array of possible values for the ClientAuthenticationMethodContract const type.

type ConnectivityStatusContract Uses

type ConnectivityStatusContract struct {
    // Name - The hostname of the resource which the service depends on. This can be the database, storage or any other azure resource on which the service depends upon.
    Name *string `json:"name,omitempty"`
    // Status - Resource Connectivity Status Type identifier. Possible values include: 'Initializing', 'Success', 'Failure'
    Status ConnectivityStatusType `json:"status,omitempty"`
    // Error - Error details of the connectivity to the resource.
    Error *string `json:"error,omitempty"`
    // LastUpdated - The date when the resource connectivity status was last updated. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
    LastUpdated *date.Time `json:"lastUpdated,omitempty"`
    // LastStatusChange - The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
    LastStatusChange *date.Time `json:"lastStatusChange,omitempty"`
}

ConnectivityStatusContract details about connectivity to a resource.

type ConnectivityStatusType Uses

type ConnectivityStatusType string

ConnectivityStatusType enumerates the values for connectivity status type.

const (
    // Failure ...
    Failure ConnectivityStatusType = "failure"
    // Initializing ...
    Initializing ConnectivityStatusType = "initializing"
    // Success ...
    Success ConnectivityStatusType = "success"
)

func PossibleConnectivityStatusTypeValues Uses

func PossibleConnectivityStatusTypeValues() []ConnectivityStatusType

PossibleConnectivityStatusTypeValues returns an array of possible values for the ConnectivityStatusType const type.

type DeployConfigurationParameters Uses

type DeployConfigurationParameters struct {
    // Branch - The name of the Git branch from which the configuration is to be deployed to the configuration database.
    Branch *string `json:"branch,omitempty"`
    // Force - The value enforcing deleting subscriptions to products that are deleted in this update.
    Force *bool `json:"force,omitempty"`
}

DeployConfigurationParameters parameters supplied to the Deploy Configuration operation.

type ErrorBodyContract Uses

type ErrorBodyContract struct {
    autorest.Response `json:"-"`
    // Code - Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.
    Code *string `json:"code,omitempty"`
    // Message - Human-readable representation of the error.
    Message *string `json:"message,omitempty"`
    // Details - The list of invalid fields send in request, in case of validation error.
    Details *[]ErrorFieldContract `json:"details,omitempty"`
}

ErrorBodyContract error Body contract.

type ErrorFieldContract Uses

type ErrorFieldContract struct {
    // Code - Property level error code.
    Code *string `json:"code,omitempty"`
    // Message - Human-readable representation of property-level error.
    Message *string `json:"message,omitempty"`
    // Target - Property name.
    Target *string `json:"target,omitempty"`
}

ErrorFieldContract error Field contract.

type ErrorResponse Uses

type ErrorResponse struct {
    // Code - Error code.
    Code *string `json:"code,omitempty"`
    // Message - Error message indicating why the operation failed.
    Message *string `json:"message,omitempty"`
}

ErrorResponse error Response.

type GenerateSsoURLResult Uses

type GenerateSsoURLResult struct {
    autorest.Response `json:"-"`
    // Value - Redirect Url containing the SSO URL value.
    Value *string `json:"value,omitempty"`
}

GenerateSsoURLResult generate SSO Url operations response details.

type GrantTypesContract Uses

type GrantTypesContract string

GrantTypesContract enumerates the values for grant types contract.

const (
    // AuthorizationCode ...
    AuthorizationCode GrantTypesContract = "authorizationCode"
    // ClientCredentials ...
    ClientCredentials GrantTypesContract = "clientCredentials"
    // Implicit ...
    Implicit GrantTypesContract = "implicit"
    // ResourceOwnerPassword ...
    ResourceOwnerPassword GrantTypesContract = "resourceOwnerPassword"
)

func PossibleGrantTypesContractValues Uses

func PossibleGrantTypesContractValues() []GrantTypesContract

PossibleGrantTypesContractValues returns an array of possible values for the GrantTypesContract const type.

type GroupCollection Uses

type GroupCollection struct {
    autorest.Response `json:"-"`
    // Value - Page values.
    Value *[]GroupContract `json:"value,omitempty"`
    // Count - Total record count number across all pages.
    Count *int64 `json:"count,omitempty"`
    // NextLink - Next page link if any.
    NextLink *string `json:"nextLink,omitempty"`
}

GroupCollection paged Group list representation.

func (GroupCollection) IsEmpty Uses

func (gc GroupCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type GroupCollectionIterator Uses

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

GroupCollectionIterator provides access to a complete listing of GroupContract values.

func NewGroupCollectionIterator Uses

func NewGroupCollectionIterator(page GroupCollectionPage) GroupCollectionIterator

Creates a new instance of the GroupCollectionIterator type.

func (*GroupCollectionIterator) Next Uses

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

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

func (iter GroupCollectionIterator) NotDone() bool

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

func (GroupCollectionIterator) Response Uses

func (iter GroupCollectionIterator) Response() GroupCollection

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

func (GroupCollectionIterator) Value Uses

func (iter GroupCollectionIterator) Value() GroupContract

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

type GroupCollectionPage Uses

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

GroupCollectionPage contains a page of GroupContract values.

func NewGroupCollectionPage Uses

func NewGroupCollectionPage(getNextPage func(context.Context, GroupCollection) (GroupCollection, error)) GroupCollectionPage

Creates a new instance of the GroupCollectionPage type.

func (*GroupCollectionPage) Next Uses

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

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

func (page GroupCollectionPage) NotDone() bool

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

func (GroupCollectionPage) Response Uses

func (page GroupCollectionPage) Response() GroupCollection

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

func (GroupCollectionPage) Values Uses

func (page GroupCollectionPage) Values() []GroupContract

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

type GroupContract Uses

type GroupContract struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Uniquely identifies the group within the current API Management service instance. The value is a valid relative URL in the format of /groups/{groupId} where {groupId} is a group identifier.
    ID  *string `json:"id,omitempty"`
    // Name - Group name.
    Name *string `json:"name,omitempty"`
    // Description - Group description. Can contain HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // BuiltIn - READ-ONLY; true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false.
    BuiltIn *bool `json:"builtIn,omitempty"`
    // Type - READ-ONLY; Group type. Possible values include: 'Custom', 'System', 'External'
    Type GroupTypeContract `json:"type,omitempty"`
    // ExternalID - READ-ONLY; For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory aad://<tenant>.onmicrosoft.com/groups/<group object id>; otherwise the value is null.
    ExternalID *string `json:"externalId,omitempty"`
}

GroupContract developer group.

type GroupCreateParameters Uses

type GroupCreateParameters struct {
    // Name - Group name.
    Name *string `json:"name,omitempty"`
    // Description - Group description.
    Description *string `json:"description,omitempty"`
    // Type - Group type. Possible values include: 'Custom', 'System', 'External'
    Type GroupTypeContract `json:"type,omitempty"`
    // ExternalID - Identifier of the external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory aad://<tenant>.onmicrosoft.com/groups/<group object id>; otherwise the value is null.
    ExternalID *string `json:"externalId,omitempty"`
}

GroupCreateParameters parameters supplied to the Create Group operation.

type GroupTypeContract Uses

type GroupTypeContract string

GroupTypeContract enumerates the values for group type contract.

const (
    // Custom ...
    Custom GroupTypeContract = "Custom"
    // External ...
    External GroupTypeContract = "External"
    // System ...
    System GroupTypeContract = "System"
)

func PossibleGroupTypeContractValues Uses

func PossibleGroupTypeContractValues() []GroupTypeContract

PossibleGroupTypeContractValues returns an array of possible values for the GroupTypeContract const type.

type GroupUpdateParameters Uses

type GroupUpdateParameters struct {
    // Name - Group name.
    Name *string `json:"name,omitempty"`
    // Description - Group description.
    Description *string `json:"description,omitempty"`
    // Type - Group type. Possible values include: 'Custom', 'System', 'External'
    Type GroupTypeContract `json:"type,omitempty"`
    // ExternalID - Identifier of the external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory aad://<tenant>.onmicrosoft.com/groups/<group object id>; otherwise the value is null.
    ExternalID *string `json:"externalId,omitempty"`
}

GroupUpdateParameters parameters supplied to the Update Group operation.

type GroupUsersClient Uses

type GroupUsersClient struct {
    BaseClient
}

GroupUsersClient is the apiManagement Client

func NewGroupUsersClient Uses

func NewGroupUsersClient(subscriptionID string) GroupUsersClient

NewGroupUsersClient creates an instance of the GroupUsersClient client.

func NewGroupUsersClientWithBaseURI Uses

func NewGroupUsersClientWithBaseURI(baseURI string, subscriptionID string) GroupUsersClient

NewGroupUsersClientWithBaseURI creates an instance of the GroupUsersClient client.

func (GroupUsersClient) Create Uses

func (client GroupUsersClient) Create(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (result ErrorBodyContract, err error)

Create adds a user to the specified group. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. groupID - group identifier. Must be unique in the current API Management service instance. UID - user identifier. Must be unique in the current API Management service instance.

func (GroupUsersClient) CreatePreparer Uses

func (client GroupUsersClient) CreatePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (GroupUsersClient) CreateResponder Uses

func (client GroupUsersClient) CreateResponder(resp *http.Response) (result ErrorBodyContract, err error)

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

func (GroupUsersClient) CreateSender Uses

func (client GroupUsersClient) 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 (GroupUsersClient) Delete Uses

func (client GroupUsersClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (result ErrorBodyContract, err error)

Delete remove existing user from existing group. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. groupID - group identifier. Must be unique in the current API Management service instance. UID - user identifier. Must be unique in the current API Management service instance.

func (GroupUsersClient) DeletePreparer Uses

func (client GroupUsersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GroupUsersClient) DeleteResponder Uses

func (client GroupUsersClient) DeleteResponder(resp *http.Response) (result ErrorBodyContract, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (GroupUsersClient) DeleteSender Uses

func (client GroupUsersClient) 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 (GroupUsersClient) ListByGroups Uses

func (client GroupUsersClient) ListByGroups(ctx context.Context, resourceGroupName string, serviceName string, groupID string, filter string, top *int32, skip *int32) (result UserCollectionPage, err error)

ListByGroups lists a collection of the members of the group, specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. groupID - group identifier. Must be unique in the current API Management service instance. filter - | Field | Supported operators | Supported functions | |------------------|------------------------|-----------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | firstName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | lastName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | email | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | state | eq | N/A | | registrationDate | ge, le, eq, ne, gt, lt | N/A | | note | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | top - number of records to return. skip - number of records to skip.

func (GroupUsersClient) ListByGroupsComplete Uses

func (client GroupUsersClient) ListByGroupsComplete(ctx context.Context, resourceGroupName string, serviceName string, groupID string, filter string, top *int32, skip *int32) (result UserCollectionIterator, err error)

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

func (GroupUsersClient) ListByGroupsPreparer Uses

func (client GroupUsersClient) ListByGroupsPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByGroupsPreparer prepares the ListByGroups request.

func (GroupUsersClient) ListByGroupsResponder Uses

func (client GroupUsersClient) ListByGroupsResponder(resp *http.Response) (result UserCollection, err error)

ListByGroupsResponder handles the response to the ListByGroups request. The method always closes the http.Response Body.

func (GroupUsersClient) ListByGroupsSender Uses

func (client GroupUsersClient) ListByGroupsSender(req *http.Request) (*http.Response, error)

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

type GroupsClient Uses

type GroupsClient struct {
    BaseClient
}

GroupsClient is the apiManagement Client

func NewGroupsClient Uses

func NewGroupsClient(subscriptionID string) GroupsClient

NewGroupsClient creates an instance of the GroupsClient client.

func NewGroupsClientWithBaseURI Uses

func NewGroupsClientWithBaseURI(baseURI string, subscriptionID string) GroupsClient

NewGroupsClientWithBaseURI creates an instance of the GroupsClient client.

func (GroupsClient) CreateOrUpdate Uses

func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupCreateParameters) (result autorest.Response, err error)

CreateOrUpdate creates or Updates a group. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. groupID - group identifier. Must be unique in the current API Management service instance. parameters - create parameters.

func (GroupsClient) CreateOrUpdatePreparer Uses

func (client GroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupCreateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (GroupsClient) CreateOrUpdateResponder Uses

func (client GroupsClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (GroupsClient) CreateOrUpdateSender Uses

func (client GroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (GroupsClient) Delete Uses

func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, groupID string, ifMatch string) (result ErrorBodyContract, err error)

Delete deletes specific group of the API Management service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. groupID - group identifier. Must be unique in the current API Management service instance. ifMatch - eTag of the Group Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

func (GroupsClient) DeletePreparer Uses

func (client GroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GroupsClient) DeleteResponder Uses

func (client GroupsClient) DeleteResponder(resp *http.Response) (result ErrorBodyContract, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (GroupsClient) DeleteSender Uses

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

func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, serviceName string, groupID string) (result GroupContract, err error)

Get gets the details of the group specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. groupID - group identifier. Must be unique in the current API Management service instance.

func (GroupsClient) GetPreparer Uses

func (client GroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (GroupsClient) GetResponder Uses

func (client GroupsClient) GetResponder(resp *http.Response) (result GroupContract, err error)

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

func (GroupsClient) GetSender Uses

func (client GroupsClient) 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 (GroupsClient) ListByService Uses

func (client GroupsClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result GroupCollectionPage, err error)

ListByService lists a collection of groups defined within a service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. filter - | Field | Supported operators | Supported functions | |-------------|------------------------|---------------------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | type | eq, ne | N/A | top - number of records to return. skip - number of records to skip.

func (GroupsClient) ListByServiceComplete Uses

func (client GroupsClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result GroupCollectionIterator, err error)

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

func (GroupsClient) ListByServicePreparer Uses

func (client GroupsClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByServicePreparer prepares the ListByService request.

func (GroupsClient) ListByServiceResponder Uses

func (client GroupsClient) ListByServiceResponder(resp *http.Response) (result GroupCollection, err error)

ListByServiceResponder handles the response to the ListByService request. The method always closes the http.Response Body.

func (GroupsClient) ListByServiceSender Uses

func (client GroupsClient) ListByServiceSender(req *http.Request) (*http.Response, error)

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

func (GroupsClient) Update Uses

func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupUpdateParameters, ifMatch string) (result ErrorBodyContract, err error)

Update updates the details of the group specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. groupID - group identifier. Must be unique in the current API Management service instance. parameters - update parameters. ifMatch - eTag of the Group Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

func (GroupsClient) UpdatePreparer Uses

func (client GroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupUpdateParameters, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (GroupsClient) UpdateResponder Uses

func (client GroupsClient) UpdateResponder(resp *http.Response) (result ErrorBodyContract, err error)

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

func (GroupsClient) UpdateSender Uses

func (client GroupsClient) 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 HTTPStatusCode Uses

type HTTPStatusCode string

HTTPStatusCode enumerates the values for http status code.

const (
    // Accepted ...
    Accepted HTTPStatusCode = "Accepted"
    // Conflict ...
    Conflict HTTPStatusCode = "Conflict"
    // Continue ...
    Continue HTTPStatusCode = "Continue"
    // Created ...
    Created HTTPStatusCode = "Created"
    // NotFound ...
    NotFound HTTPStatusCode = "NotFound"
    // OK ...
    OK  HTTPStatusCode = "OK"
)

func PossibleHTTPStatusCodeValues Uses

func PossibleHTTPStatusCodeValues() []HTTPStatusCode

PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type.

type HostnameConfiguration Uses

type HostnameConfiguration struct {
    // Type - Hostname type. Possible values include: 'Proxy', 'Portal', 'Management', 'Scm'
    Type HostnameType `json:"type,omitempty"`
    // Hostname - Hostname.
    Hostname *string `json:"hostname,omitempty"`
    // Certificate - Certificate information.
    Certificate *CertificateInformation `json:"certificate,omitempty"`
}

HostnameConfiguration custom hostname configuration.

type HostnameType Uses

type HostnameType string

HostnameType enumerates the values for hostname type.

const (
    // Management ...
    Management HostnameType = "Management"
    // Portal ...
    Portal HostnameType = "Portal"
    // Proxy ...
    Proxy HostnameType = "Proxy"
    // Scm ...
    Scm HostnameType = "Scm"
)

func PossibleHostnameTypeValues Uses

func PossibleHostnameTypeValues() []HostnameType

PossibleHostnameTypeValues returns an array of possible values for the HostnameType const type.

type IdentityProviderContract Uses

type IdentityProviderContract struct {
    autorest.Response `json:"-"`
    // ClientID - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
    ClientID *string `json:"clientId,omitempty"`
    // ClientSecret - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft.
    ClientSecret *string `json:"clientSecret,omitempty"`
    // Type - Identity Provider Type identifier. Possible values include: 'Facebook', 'Google', 'Microsoft', 'Twitter', 'Aad', 'AadB2C'
    Type IdentityProviderNameType `json:"type,omitempty"`
    // AllowedTenants - List of Allowed Tenants when configuring Azure Active Directory login.
    AllowedTenants *[]string `json:"allowedTenants,omitempty"`
}

IdentityProviderContract the external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users.

type IdentityProviderList Uses

type IdentityProviderList struct {
    autorest.Response `json:"-"`
    // Value - Identity Provider configuration values.
    Value *[]IdentityProviderContract `json:"value,omitempty"`
}

IdentityProviderList list of all the Identity Providers configured on the service instance.

type IdentityProviderNameType Uses

type IdentityProviderNameType string

IdentityProviderNameType enumerates the values for identity provider name type.

const (
    // Aad ...
    Aad IdentityProviderNameType = "aad"
    // AadB2C ...
    AadB2C IdentityProviderNameType = "aadB2C"
    // Facebook ...
    Facebook IdentityProviderNameType = "facebook"
    // Google ...
    Google IdentityProviderNameType = "google"
    // Microsoft ...
    Microsoft IdentityProviderNameType = "microsoft"
    // Twitter ...
    Twitter IdentityProviderNameType = "twitter"
)

func PossibleIdentityProviderNameTypeValues Uses

func PossibleIdentityProviderNameTypeValues() []IdentityProviderNameType

PossibleIdentityProviderNameTypeValues returns an array of possible values for the IdentityProviderNameType const type.

type IdentityProviderUpdateParameters Uses

type IdentityProviderUpdateParameters struct {
    // ClientID - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
    ClientID *string `json:"clientId,omitempty"`
    // ClientSecret - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft.
    ClientSecret *string `json:"clientSecret,omitempty"`
    // AllowedTenants - List of Allowed Tenants when configuring Azure Active Directory login.
    AllowedTenants *[]string `json:"allowedTenants,omitempty"`
}

IdentityProviderUpdateParameters parameters supplied to the Update Identity Provider operation.

type IdentityProvidersClient Uses

type IdentityProvidersClient struct {
    BaseClient
}

IdentityProvidersClient is the apiManagement Client

func NewIdentityProvidersClient Uses

func NewIdentityProvidersClient(subscriptionID string) IdentityProvidersClient

NewIdentityProvidersClient creates an instance of the IdentityProvidersClient client.

func NewIdentityProvidersClientWithBaseURI Uses

func NewIdentityProvidersClientWithBaseURI(baseURI string, subscriptionID string) IdentityProvidersClient

NewIdentityProvidersClientWithBaseURI creates an instance of the IdentityProvidersClient client.

func (IdentityProvidersClient) CreateOrUpdate Uses

func (client IdentityProvidersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderNameType, parameters IdentityProviderContract) (result autorest.Response, err error)

CreateOrUpdate creates or Updates the IdentityProvider configuration. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. identityProviderName - identity Provider Type identifier. parameters - create parameters.

func (IdentityProvidersClient) CreateOrUpdatePreparer Uses

func (client IdentityProvidersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderNameType, parameters IdentityProviderContract) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (IdentityProvidersClient) CreateOrUpdateResponder Uses

func (client IdentityProvidersClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (IdentityProvidersClient) CreateOrUpdateSender Uses

func (client IdentityProvidersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (IdentityProvidersClient) Delete Uses

func (client IdentityProvidersClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderNameType, ifMatch string) (result autorest.Response, err error)

Delete deletes the specified identity provider configuration. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. identityProviderName - identity Provider Type identifier. ifMatch - the entity state (Etag) version of the backend to delete. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (IdentityProvidersClient) DeletePreparer Uses

func (client IdentityProvidersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderNameType, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (IdentityProvidersClient) DeleteResponder Uses

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

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

func (client IdentityProvidersClient) Get(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderNameType) (result IdentityProviderContract, err error)

Get gets the configuration details of the identity Provider configured in specified service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. identityProviderName - identity Provider Type identifier.

func (IdentityProvidersClient) GetPreparer Uses

func (client IdentityProvidersClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderNameType) (*http.Request, error)

GetPreparer prepares the Get request.

func (IdentityProvidersClient) GetResponder Uses

func (client IdentityProvidersClient) GetResponder(resp *http.Response) (result IdentityProviderContract, err error)

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

func (IdentityProvidersClient) GetSender Uses

func (client IdentityProvidersClient) 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 (IdentityProvidersClient) ListByService Uses

func (client IdentityProvidersClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string) (result IdentityProviderList, err error)

ListByService lists a collection of Identity Provider configured in the specified service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service.

func (IdentityProvidersClient) ListByServicePreparer Uses

func (client IdentityProvidersClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error)

ListByServicePreparer prepares the ListByService request.

func (IdentityProvidersClient) ListByServiceResponder Uses

func (client IdentityProvidersClient) ListByServiceResponder(resp *http.Response) (result IdentityProviderList, err error)

ListByServiceResponder handles the response to the ListByService request. The method always closes the http.Response Body.

func (IdentityProvidersClient) ListByServiceSender Uses

func (client IdentityProvidersClient) ListByServiceSender(req *http.Request) (*http.Response, error)

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

func (IdentityProvidersClient) Update Uses

func (client IdentityProvidersClient) Update(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderNameType, parameters IdentityProviderUpdateParameters, ifMatch string) (result autorest.Response, err error)

Update updates an existing IdentityProvider configuration. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. identityProviderName - identity Provider Type identifier. parameters - update parameters. ifMatch - the entity state (Etag) version of the identity provider configuration to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (IdentityProvidersClient) UpdatePreparer Uses

func (client IdentityProvidersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderNameType, parameters IdentityProviderUpdateParameters, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (IdentityProvidersClient) UpdateResponder Uses

func (client IdentityProvidersClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (IdentityProvidersClient) UpdateSender Uses

func (client IdentityProvidersClient) 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 KeyTypeContract Uses

type KeyTypeContract string

KeyTypeContract enumerates the values for key type contract.

const (
    // Primary ...
    Primary KeyTypeContract = "primary"
    // Secondary ...
    Secondary KeyTypeContract = "secondary"
)

func PossibleKeyTypeContractValues Uses

func PossibleKeyTypeContractValues() []KeyTypeContract

PossibleKeyTypeContractValues returns an array of possible values for the KeyTypeContract const type.

type LoggerCollection Uses

type LoggerCollection struct {
    autorest.Response `json:"-"`
    // Value - Logger values.
    Value *[]LoggerResponse `json:"value,omitempty"`
    // Count - Total record count number across all pages.
    Count *int64 `json:"count,omitempty"`
    // NextLink - Next page link if any.
    NextLink *string `json:"nextLink,omitempty"`
}

LoggerCollection paged Logger list representation.

func (LoggerCollection) IsEmpty Uses

func (lc LoggerCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type LoggerCollectionIterator Uses

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

LoggerCollectionIterator provides access to a complete listing of LoggerResponse values.

func NewLoggerCollectionIterator Uses

func NewLoggerCollectionIterator(page LoggerCollectionPage) LoggerCollectionIterator

Creates a new instance of the LoggerCollectionIterator type.

func (*LoggerCollectionIterator) Next Uses

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

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

func (iter LoggerCollectionIterator) NotDone() bool

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

func (LoggerCollectionIterator) Response Uses

func (iter LoggerCollectionIterator) Response() LoggerCollection

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

func (LoggerCollectionIterator) Value Uses

func (iter LoggerCollectionIterator) Value() LoggerResponse

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

type LoggerCollectionPage Uses

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

LoggerCollectionPage contains a page of LoggerResponse values.

func NewLoggerCollectionPage Uses

func NewLoggerCollectionPage(getNextPage func(context.Context, LoggerCollection) (LoggerCollection, error)) LoggerCollectionPage

Creates a new instance of the LoggerCollectionPage type.

func (*LoggerCollectionPage) Next Uses

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

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

func (page LoggerCollectionPage) NotDone() bool

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

func (LoggerCollectionPage) Response Uses

func (page LoggerCollectionPage) Response() LoggerCollection

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

func (LoggerCollectionPage) Values Uses

func (page LoggerCollectionPage) Values() []LoggerResponse

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

type LoggerCreateParameters Uses

type LoggerCreateParameters struct {
    // Type - Logger type.
    Type *string `json:"type,omitempty"`
    // Description - Logger description.
    Description *string `json:"description,omitempty"`
    // Credentials - The name and SendRule connection string of the event hub.
    Credentials map[string]*string `json:"credentials"`
    // IsBuffered - Whether records are buffered in the logger before publishing. Default is assumed to be true.
    IsBuffered *bool `json:"isBuffered,omitempty"`
}

LoggerCreateParameters parameters supplied to the Create Logger operation.

func (LoggerCreateParameters) MarshalJSON Uses

func (lcp LoggerCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LoggerCreateParameters.

type LoggerResponse Uses

type LoggerResponse struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Uniquely identifies the logger within the current API Management service instance. The value is a valid relative URL in the format of /loggers/{loggerId} where {loggerId} is a logger identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Logger type.
    Type *string `json:"type,omitempty"`
    // Description - Logger description.
    Description *string `json:"description,omitempty"`
    // Credentials - The name and SendRule connection string of the event hub.
    Credentials map[string]*string `json:"credentials"`
    // IsBuffered - Whether records are buffered in the logger before publishing. Default is assumed to be true.
    IsBuffered *bool `json:"isBuffered,omitempty"`
}

LoggerResponse the Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs.

func (LoggerResponse) MarshalJSON Uses

func (lr LoggerResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LoggerResponse.

type LoggerUpdateParameters Uses

type LoggerUpdateParameters struct {
    // Type - Logger type.
    Type *string `json:"type,omitempty"`
    // Description - Logger description.
    Description *string `json:"description,omitempty"`
    // Credentials - Logger credentials.
    Credentials map[string]*string `json:"credentials"`
    // IsBuffered - whether records are buffered in the logger before publishing. Default is assumed to be true.
    IsBuffered *bool `json:"isBuffered,omitempty"`
}

LoggerUpdateParameters parameters supplied to the Update Logger operation.

func (LoggerUpdateParameters) MarshalJSON Uses

func (lup LoggerUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LoggerUpdateParameters.

type LoggersClient Uses

type LoggersClient struct {
    BaseClient
}

LoggersClient is the apiManagement Client

func NewLoggersClient Uses

func NewLoggersClient(subscriptionID string) LoggersClient

NewLoggersClient creates an instance of the LoggersClient client.

func NewLoggersClientWithBaseURI Uses

func NewLoggersClientWithBaseURI(baseURI string, subscriptionID string) LoggersClient

NewLoggersClientWithBaseURI creates an instance of the LoggersClient client.

func (LoggersClient) CreateOrUpdate Uses

func (client LoggersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerCreateParameters) (result autorest.Response, err error)

CreateOrUpdate creates or Updates a logger. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. loggerid - logger identifier. Must be unique in the API Management service instance. parameters - create parameters.

func (LoggersClient) CreateOrUpdatePreparer Uses

func (client LoggersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerCreateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LoggersClient) CreateOrUpdateResponder Uses

func (client LoggersClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (LoggersClient) CreateOrUpdateSender Uses

func (client LoggersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (LoggersClient) Delete Uses

func (client LoggersClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, ifMatch string) (result autorest.Response, err error)

Delete deletes the specified logger. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. loggerid - logger identifier. Must be unique in the API Management service instance. ifMatch - the entity state (Etag) version of the logger to delete. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (LoggersClient) DeletePreparer Uses

func (client LoggersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (LoggersClient) DeleteResponder Uses

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

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

func (client LoggersClient) Get(ctx context.Context, resourceGroupName string, serviceName string, loggerid string) (result LoggerResponse, err error)

Get gets the details of the logger specified by its identifier. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. loggerid - logger identifier. Must be unique in the API Management service instance.

func (LoggersClient) GetPreparer Uses

func (client LoggersClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string) (*http.Request, error)

GetPreparer prepares the Get request.

func (LoggersClient) GetResponder Uses

func (client LoggersClient) GetResponder(resp *http.Response) (result LoggerResponse, err error)

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

func (LoggersClient) GetSender Uses

func (client LoggersClient) 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 (LoggersClient) ListByService Uses

func (client LoggersClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result LoggerCollectionPage, err error)

ListByService lists a collection of loggers in the specified service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. filter - | Field | Supported operators | Supported functions | |-------|------------------------|---------------------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | type | eq | | top - number of records to return. skip - number of records to skip.

func (LoggersClient) ListByServiceComplete Uses

func (client LoggersClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result LoggerCollectionIterator, err error)

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

func (LoggersClient) ListByServicePreparer Uses

func (client LoggersClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByServicePreparer prepares the ListByService request.

func (LoggersClient) ListByServiceResponder Uses

func (client LoggersClient) ListByServiceResponder(resp *http.Response) (result LoggerCollection, err error)

ListByServiceResponder handles the response to the ListByService request. The method always closes the http.Response Body.

func (LoggersClient) ListByServiceSender Uses

func (client LoggersClient) ListByServiceSender(req *http.Request) (*http.Response, error)

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

func (LoggersClient) Update Uses

func (client LoggersClient) Update(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerUpdateParameters, ifMatch string) (result autorest.Response, err error)

Update updates an existing logger. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. loggerid - logger identifier. Must be unique in the API Management service instance. parameters - update parameters. ifMatch - the entity state (Etag) version of the logger to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (LoggersClient) UpdatePreparer Uses

func (client LoggersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerUpdateParameters, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (LoggersClient) UpdateResponder Uses

func (client LoggersClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (LoggersClient) UpdateSender Uses

func (client LoggersClient) 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 MethodContract Uses

type MethodContract string

MethodContract enumerates the values for method contract.

const (
    // DELETE ...
    DELETE MethodContract = "DELETE"
    // GET ...
    GET MethodContract = "GET"
    // HEAD ...
    HEAD MethodContract = "HEAD"
    // OPTIONS ...
    OPTIONS MethodContract = "OPTIONS"
    // PATCH ...
    PATCH MethodContract = "PATCH"
    // POST ...
    POST MethodContract = "POST"
    // PUT ...
    PUT MethodContract = "PUT"
    // TRACE ...
    TRACE MethodContract = "TRACE"
)

func PossibleMethodContractValues Uses

func PossibleMethodContractValues() []MethodContract

PossibleMethodContractValues returns an array of possible values for the MethodContract const type.

type NameAvailabilityReason Uses

type NameAvailabilityReason string

NameAvailabilityReason enumerates the values for name availability reason.

const (
    // AlreadyExists ...
    AlreadyExists NameAvailabilityReason = "AlreadyExists"
    // Invalid ...
    Invalid NameAvailabilityReason = "Invalid"
    // Valid ...
    Valid NameAvailabilityReason = "Valid"
)

func PossibleNameAvailabilityReasonValues Uses

func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason

PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.

type NetworkStatusClient Uses

type NetworkStatusClient struct {
    BaseClient
}

NetworkStatusClient is the apiManagement Client

func NewNetworkStatusClient Uses

func NewNetworkStatusClient(subscriptionID string) NetworkStatusClient

NewNetworkStatusClient creates an instance of the NetworkStatusClient client.

func NewNetworkStatusClientWithBaseURI Uses

func NewNetworkStatusClientWithBaseURI(baseURI string, subscriptionID string) NetworkStatusClient

NewNetworkStatusClientWithBaseURI creates an instance of the NetworkStatusClient client.

func (NetworkStatusClient) GetByService Uses

func (client NetworkStatusClient) GetByService(ctx context.Context, resourceGroupName string, serviceName string) (result NetworkStatusContract, err error)

GetByService gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service.

func (NetworkStatusClient) GetByServicePreparer Uses

func (client NetworkStatusClient) GetByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error)

GetByServicePreparer prepares the GetByService request.

func (NetworkStatusClient) GetByServiceResponder Uses

func (client NetworkStatusClient) GetByServiceResponder(resp *http.Response) (result NetworkStatusContract, err error)

GetByServiceResponder handles the response to the GetByService request. The method always closes the http.Response Body.

func (NetworkStatusClient) GetByServiceSender Uses

func (client NetworkStatusClient) GetByServiceSender(req *http.Request) (*http.Response, error)

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

type NetworkStatusContract Uses

type NetworkStatusContract struct {
    autorest.Response `json:"-"`
    // DNSServers - Gets the list of DNS servers IPV4 addresses.
    DNSServers *[]string `json:"dnsServers,omitempty"`
    // ConnectivityStatus - Gets the list of Connectivity Status to the Resources.
    ConnectivityStatus *[]ConnectivityStatusContract `json:"connectivityStatus,omitempty"`
}

NetworkStatusContract network Status details.

type OAuth2AuthenticationSettingsContract Uses

type OAuth2AuthenticationSettingsContract struct {
    // AuthorizationServerID - OAuth authorization server identifier.
    AuthorizationServerID *string `json:"authorizationServerId,omitempty"`
    // Scope - operations scope.
    Scope *string `json:"scope,omitempty"`
}

OAuth2AuthenticationSettingsContract API OAuth2 Authentication settings details.

type OAuth2AuthorizationServerContract Uses

type OAuth2AuthorizationServerContract struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Uniquely identifies the authorization server within the current API Management service instance. The value is a valid relative URL in the format of /authorizationServers/{authsid} where {authsid} is an authorization server identifier.
    ID  *string `json:"id,omitempty"`
    // Name - User-friendly authorization server name.
    Name *string `json:"name,omitempty"`
    // Description - Description of the authorization server. Can contain HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // ClientRegistrationEndpoint - Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced.
    ClientRegistrationEndpoint *string `json:"clientRegistrationEndpoint,omitempty"`
    // AuthorizationEndpoint - OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2.
    AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty"`
    // AuthorizationMethods - HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional.
    AuthorizationMethods *[]MethodContract `json:"authorizationMethods,omitempty"`
    // ClientAuthenticationMethod - Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format.
    ClientAuthenticationMethod *[]ClientAuthenticationMethodContract `json:"clientAuthenticationMethod,omitempty"`
    // TokenBodyParameters - Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}.
    TokenBodyParameters *[]TokenBodyParameterContract `json:"tokenBodyParameters,omitempty"`
    // TokenEndpoint - OAuth token endpoint. Contains absolute URI to entity being referenced.
    TokenEndpoint *string `json:"tokenEndpoint,omitempty"`
    // SupportState - If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security.
    SupportState *bool `json:"supportState,omitempty"`
    // DefaultScope - Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values.
    DefaultScope *string `json:"defaultScope,omitempty"`
    // GrantTypes - Form of an authorization grant, which the client uses to request the access token.
    GrantTypes *[]GrantTypesContract `json:"grantTypes,omitempty"`
    // BearerTokenSendingMethods - Specifies the mechanism by which access token is passed to the API.
    BearerTokenSendingMethods *[]BearerTokenSendingMethodsContract `json:"bearerTokenSendingMethods,omitempty"`
    // ClientID - Client or app id registered with this authorization server.
    ClientID *string `json:"clientId,omitempty"`
    // ClientSecret - Client or app secret registered with this authorization server.
    ClientSecret *string `json:"clientSecret,omitempty"`
    // ResourceOwnerUsername - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.
    ResourceOwnerUsername *string `json:"resourceOwnerUsername,omitempty"`
    // ResourceOwnerPassword - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
    ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"`
}

OAuth2AuthorizationServerContract external OAuth authorization server settings.

type OAuth2AuthorizationServerUpdateContract Uses

type OAuth2AuthorizationServerUpdateContract struct {
    // Name - User-friendly authorization server name.
    Name *string `json:"name,omitempty"`
    // Description - Description of the authorization server. Can contain HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // ClientRegistrationEndpoint - Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced.
    ClientRegistrationEndpoint *string `json:"clientRegistrationEndpoint,omitempty"`
    // AuthorizationEndpoint - OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2.
    AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty"`
    // AuthorizationMethods - HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional.
    AuthorizationMethods *[]MethodContract `json:"authorizationMethods,omitempty"`
    // ClientAuthenticationMethod - Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format.
    ClientAuthenticationMethod *[]ClientAuthenticationMethodContract `json:"clientAuthenticationMethod,omitempty"`
    // TokenBodyParameters - Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}.
    TokenBodyParameters *[]TokenBodyParameterContract `json:"tokenBodyParameters,omitempty"`
    // TokenEndpoint - OAuth token endpoint. Contains absolute URI to entity being referenced.
    TokenEndpoint *string `json:"tokenEndpoint,omitempty"`
    // SupportState - If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security.
    SupportState *bool `json:"supportState,omitempty"`
    // DefaultScope - Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values.
    DefaultScope *string `json:"defaultScope,omitempty"`
    // GrantTypes - Form of an authorization grant, which the client uses to request the access token.
    GrantTypes *[]GrantTypesContract `json:"grantTypes,omitempty"`
    // BearerTokenSendingMethods - Specifies the mechanism by which access token is passed to the API.
    BearerTokenSendingMethods *[]BearerTokenSendingMethodsContract `json:"bearerTokenSendingMethods,omitempty"`
    // ClientID - Client or app id registered with this authorization server.
    ClientID *string `json:"clientId,omitempty"`
    // ClientSecret - Client or app secret registered with this authorization server.
    ClientSecret *string `json:"clientSecret,omitempty"`
    // ResourceOwnerUsername - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.
    ResourceOwnerUsername *string `json:"resourceOwnerUsername,omitempty"`
    // ResourceOwnerPassword - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
    ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"`
}

OAuth2AuthorizationServerUpdateContract external OAuth authorization server Update settings contract.

type OpenIDConnectProviderCollection Uses

type OpenIDConnectProviderCollection struct {
    autorest.Response `json:"-"`
    // Value - Page values.
    Value *[]OpenidConnectProviderContract `json:"value,omitempty"`
    // Count - Total record count number across all pages.
    Count *int64 `json:"count,omitempty"`
    // NextLink - Next page link if any.
    NextLink *string `json:"nextLink,omitempty"`
}

OpenIDConnectProviderCollection paged OpenIdProviders list representation.

func (OpenIDConnectProviderCollection) IsEmpty Uses

func (oicpc OpenIDConnectProviderCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OpenIDConnectProviderCollectionIterator Uses

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

OpenIDConnectProviderCollectionIterator provides access to a complete listing of OpenidConnectProviderContract values.

func NewOpenIDConnectProviderCollectionIterator Uses

func NewOpenIDConnectProviderCollectionIterator(page OpenIDConnectProviderCollectionPage) OpenIDConnectProviderCollectionIterator

Creates a new instance of the OpenIDConnectProviderCollectionIterator type.

func (*OpenIDConnectProviderCollectionIterator) Next Uses

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

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

func (iter OpenIDConnectProviderCollectionIterator) NotDone() bool

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

func (OpenIDConnectProviderCollectionIterator) Response Uses

func (iter OpenIDConnectProviderCollectionIterator) Response() OpenIDConnectProviderCollection

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

func (OpenIDConnectProviderCollectionIterator) Value Uses

func (iter OpenIDConnectProviderCollectionIterator) Value() OpenidConnectProviderContract

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

type OpenIDConnectProviderCollectionPage Uses

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

OpenIDConnectProviderCollectionPage contains a page of OpenidConnectProviderContract values.

func NewOpenIDConnectProviderCollectionPage Uses

func NewOpenIDConnectProviderCollectionPage(getNextPage func(context.Context, OpenIDConnectProviderCollection) (OpenIDConnectProviderCollection, error)) OpenIDConnectProviderCollectionPage

Creates a new instance of the OpenIDConnectProviderCollectionPage type.

func (*OpenIDConnectProviderCollectionPage) Next Uses

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

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

func (page OpenIDConnectProviderCollectionPage) NotDone() bool

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

func (OpenIDConnectProviderCollectionPage) Response Uses

func (page OpenIDConnectProviderCollectionPage) Response() OpenIDConnectProviderCollection

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

func (OpenIDConnectProviderCollectionPage) Values Uses

func (page OpenIDConnectProviderCollectionPage) Values() []OpenidConnectProviderContract

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

type OpenIDConnectProvidersClient Uses

type OpenIDConnectProvidersClient struct {
    BaseClient
}

OpenIDConnectProvidersClient is the apiManagement Client

func NewOpenIDConnectProvidersClient Uses

func NewOpenIDConnectProvidersClient(subscriptionID string) OpenIDConnectProvidersClient

NewOpenIDConnectProvidersClient creates an instance of the OpenIDConnectProvidersClient client.

func NewOpenIDConnectProvidersClientWithBaseURI Uses

func NewOpenIDConnectProvidersClientWithBaseURI(baseURI string, subscriptionID string) OpenIDConnectProvidersClient

NewOpenIDConnectProvidersClientWithBaseURI creates an instance of the OpenIDConnectProvidersClient client.

func (OpenIDConnectProvidersClient) CreateOrUpdate Uses

func (client OpenIDConnectProvidersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderCreateContract) (result autorest.Response, err error)

CreateOrUpdate creates or updates the OpenID Connect Provider. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. opid - identifier of the OpenID Connect Provider. parameters - create parameters.

func (OpenIDConnectProvidersClient) CreateOrUpdatePreparer Uses

func (client OpenIDConnectProvidersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderCreateContract) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (OpenIDConnectProvidersClient) CreateOrUpdateResponder Uses

func (client OpenIDConnectProvidersClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (OpenIDConnectProvidersClient) CreateOrUpdateSender Uses

func (client OpenIDConnectProvidersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (OpenIDConnectProvidersClient) Delete Uses

func (client OpenIDConnectProvidersClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, opid string, ifMatch string) (result ErrorBodyContract, err error)

Delete deletes specific OpenID Connect Provider of the API Management service instance. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. opid - identifier of the OpenID Connect Provider. ifMatch - the entity state (Etag) version of the OpenID Connect Provider to delete. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (OpenIDConnectProvidersClient) DeletePreparer Uses

func (client OpenIDConnectProvidersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (OpenIDConnectProvidersClient) DeleteResponder Uses

func (client OpenIDConnectProvidersClient) DeleteResponder(resp *http.Response) (result ErrorBodyContract, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (OpenIDConnectProvidersClient) DeleteSender Uses

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

func (client OpenIDConnectProvidersClient) Get(ctx context.Context, resourceGroupName string, serviceName string, opid string) (result OpenidConnectProviderContract, err error)

Get gets specific OpenID Connect Provider. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. opid - identifier of the OpenID Connect Provider.

func (OpenIDConnectProvidersClient) GetPreparer Uses

func (client OpenIDConnectProvidersClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OpenIDConnectProvidersClient) GetResponder Uses

func (client OpenIDConnectProvidersClient) GetResponder(resp *http.Response) (result OpenidConnectProviderContract, err error)

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

func (OpenIDConnectProvidersClient) GetSender Uses

func (client OpenIDConnectProvidersClient) 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 (OpenIDConnectProvidersClient) ListByService Uses

func (client OpenIDConnectProvidersClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result OpenIDConnectProviderCollectionPage, err error)

ListByService lists all OpenID Connect Providers. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. filter - | Field | Supported operators | Supported functions | |-------|------------------------|---------------------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | top - number of records to return. skip - number of records to skip.

func (OpenIDConnectProvidersClient) ListByServiceComplete Uses

func (client OpenIDConnectProvidersClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result OpenIDConnectProviderCollectionIterator, err error)

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

func (OpenIDConnectProvidersClient) ListByServicePreparer Uses

func (client OpenIDConnectProvidersClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByServicePreparer prepares the ListByService request.

func (OpenIDConnectProvidersClient) ListByServiceResponder Uses

func (client OpenIDConnectProvidersClient) ListByServiceResponder(resp *http.Response) (result OpenIDConnectProviderCollection, err error)

ListByServiceResponder handles the response to the ListByService request. The method always closes the http.Response Body.

func (OpenIDConnectProvidersClient) ListByServiceSender Uses

func (client OpenIDConnectProvidersClient) ListByServiceSender(req *http.Request) (*http.Response, error)

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

func (OpenIDConnectProvidersClient) Update Uses

func (client OpenIDConnectProvidersClient) Update(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderUpdateContract, ifMatch string) (result autorest.Response, err error)

Update updates the specific OpenID Connect Provider. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. opid - identifier of the OpenID Connect Provider. parameters - update parameters. ifMatch - the entity state (Etag) version of the OpenID Connect Provider to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (OpenIDConnectProvidersClient) UpdatePreparer Uses

func (client OpenIDConnectProvidersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderUpdateContract, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (OpenIDConnectProvidersClient) UpdateResponder Uses

func (client OpenIDConnectProvidersClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (OpenIDConnectProvidersClient) UpdateSender Uses

func (client OpenIDConnectProvidersClient) 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 OpenidConnectProviderContract Uses

type OpenidConnectProviderContract struct {
    autorest.Response `json:"-"`
    // ID - OpenID Connect Provider identifier.
    ID  *string `json:"id,omitempty"`
    // Name - User-friendly OpenID Connect Provider name.
    Name *string `json:"name,omitempty"`
    // Description - User-friendly description of OpenID Connect Provider.
    Description *string `json:"description,omitempty"`
    // MetadataEndpoint - Metadata endpoint URI.
    MetadataEndpoint *string `json:"metadataEndpoint,omitempty"`
    // ClientID - Client ID of developer console which is the client application.
    ClientID *string `json:"clientId,omitempty"`
    // ClientSecret - Client Secret of developer console which is the client application.
    ClientSecret *string `json:"clientSecret,omitempty"`
}

OpenidConnectProviderContract openID Connect Providers Contract.

type OpenidConnectProviderCreateContract Uses

type OpenidConnectProviderCreateContract struct {
    // Name - User-friendly OpenID Connect Provider name.
    Name *string `json:"name,omitempty"`
    // Description - User-friendly description of OpenID Connect Provider.
    Description *string `json:"description,omitempty"`
    // MetadataEndpoint - Metadata endpoint URI.
    MetadataEndpoint *string `json:"metadataEndpoint,omitempty"`
    // ClientID - Client ID of developer console which is the client application.
    ClientID *string `json:"clientId,omitempty"`
    // ClientSecret - Client Secret of developer console which is the client application.
    ClientSecret *string `json:"clientSecret,omitempty"`
}

OpenidConnectProviderCreateContract parameters supplied to the Create OpenID Connect Provider operation.

type OpenidConnectProviderUpdateContract Uses

type OpenidConnectProviderUpdateContract struct {
    // Name - User-friendly OpenID Connect Provider name.
    Name *string `json:"name,omitempty"`
    // Description - User-friendly description of OpenID Connect Provider.
    Description *string `json:"description,omitempty"`
    // MetadataEndpoint - Metadata endpoint URI.
    MetadataEndpoint *string `json:"metadataEndpoint,omitempty"`
    // ClientID - Client ID of developer console which is the client application.
    ClientID *string `json:"clientId,omitempty"`
    // ClientSecret - Client Secret of developer console which is the client application.
    ClientSecret *string `json:"clientSecret,omitempty"`
}

OpenidConnectProviderUpdateContract parameters supplied to the Update OpenID Connect Provider operation.

type Operation Uses

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

Operation REST API operation

type OperationCollection Uses

type OperationCollection struct {
    autorest.Response `json:"-"`
    // Value - Page values.
    Value *[]OperationContract `json:"value,omitempty"`
    // Count - Total record count number across all pages.
    Count *int64 `json:"count,omitempty"`
    // NextLink - Next page link if any.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationCollection paged Operation list representation.

func (OperationCollection) IsEmpty Uses

func (oc OperationCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationCollectionIterator Uses

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

OperationCollectionIterator provides access to a complete listing of OperationContract values.

func NewOperationCollectionIterator Uses

func NewOperationCollectionIterator(page OperationCollectionPage) OperationCollectionIterator

Creates a new instance of the OperationCollectionIterator type.

func (*OperationCollectionIterator) Next Uses

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

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

func (iter OperationCollectionIterator) NotDone() bool

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

func (OperationCollectionIterator) Response Uses

func (iter OperationCollectionIterator) Response() OperationCollection

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

func (OperationCollectionIterator) Value Uses

func (iter OperationCollectionIterator) Value() OperationContract

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

type OperationCollectionPage Uses

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

OperationCollectionPage contains a page of OperationContract values.

func NewOperationCollectionPage Uses

func NewOperationCollectionPage(getNextPage func(context.Context, OperationCollection) (OperationCollection, error)) OperationCollectionPage

Creates a new instance of the OperationCollectionPage type.

func (*OperationCollectionPage) Next Uses

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

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

func (page OperationCollectionPage) NotDone() bool

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

func (OperationCollectionPage) Response Uses

func (page OperationCollectionPage) Response() OperationCollection

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

func (OperationCollectionPage) Values Uses

func (page OperationCollectionPage) Values() []OperationContract

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

type OperationContract Uses

type OperationContract struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Uniquely identifies the operation within the current API Management service instance. The value is a valid relative URL in the format of /apis/{aid}/operations/{id} where {aid} is an API identifier and {id} is an operation identifier.
    ID  *string `json:"id,omitempty"`
    // Name - Operation Name.
    Name *string `json:"name,omitempty"`
    // Method - A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
    Method *string `json:"method,omitempty"`
    // URLTemplate - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
    URLTemplate *string `json:"urlTemplate,omitempty"`
    // TemplateParameters - Collection of URL template parameters.
    TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"`
    // Description - Description of the operation. May include HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // Request - An entity containing request details.
    Request *RequestContract `json:"request,omitempty"`
    // Responses - Array of Operation responses.
    Responses *[]ResultContract `json:"responses,omitempty"`
}

OperationContract api Operation details.

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - Friendly name of the resource provider
    Provider *string `json:"provider,omitempty"`
    // Operation - Operation type: read, write, delete, listKeys/action, etc.
    Operation *string `json:"operation,omitempty"`
    // Resource - Resource type on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
    // Description - Friendly name of the operation
    Description *string `json:"description,omitempty"`
}

OperationDisplay the object that describes the operation.

type OperationEntityBaseContract Uses

type OperationEntityBaseContract struct {
    // TemplateParameters - Collection of URL template parameters.
    TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"`
    // Description - Description of the operation. May include HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // Request - An entity containing request details.
    Request *RequestContract `json:"request,omitempty"`
    // Responses - Array of Operation responses.
    Responses *[]ResultContract `json:"responses,omitempty"`
}

OperationEntityBaseContract api Operation Entity Base Contract details.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - List of operations supported by the resource provider.
    Value *[]Operation `json:"value,omitempty"`
    // NextLink - URL to get the next set of operation list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.

func (OperationListResult) IsEmpty Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

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

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

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

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

type OperationListResultPage Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

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

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

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

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

type OperationResultContract Uses

type OperationResultContract struct {
    autorest.Response `json:"-"`
    // ID - Operation result identifier.
    ID  *string `json:"id,omitempty"`
    // Status - Status of an async operation. Possible values include: 'Started', 'InProgress', 'Succeeded', 'Failed'
    Status AsyncOperationState `json:"status,omitempty"`
    // Started - Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
    Started *date.Time `json:"started,omitempty"`
    // Updated - Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
    Updated *date.Time `json:"updated,omitempty"`
    // ResultInfo - Optional result info.
    ResultInfo *string            `json:"resultInfo,omitempty"`
    Error      *ErrorBodyContract `json:"error,omitempty"`
}

OperationResultContract operation Result.

type OperationUpdateContract Uses

type OperationUpdateContract struct {
    // ID - READ-ONLY; Uniquely identifies the operation within the current API Management service instance. The value is a valid relative URL in the format of /apis/{aid}/operations/{id} where {aid} is an API identifier and {id} is an operation identifier.
    ID  *string `json:"id,omitempty"`
    // Name - Operation Name.
    Name *string `json:"name,omitempty"`
    // Method - A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
    Method *string `json:"method,omitempty"`
    // URLTemplate - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
    URLTemplate *string `json:"urlTemplate,omitempty"`
    // TemplateParameters - Collection of URL template parameters.
    TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"`
    // Description - Description of the operation. May include HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // Request - An entity containing request details.
    Request *RequestContract `json:"request,omitempty"`
    // Responses - Array of Operation responses.
    Responses *[]ResultContract `json:"responses,omitempty"`
}

OperationUpdateContract api Operation Update Contract details.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the apiManagement Client

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available REST API operations of the Microsoft.ApiManagement provider.

func (OperationsClient) ListComplete Uses

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

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

func (OperationsClient) ListSender Uses

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 ParameterContract Uses

type ParameterContract struct {
    // Name - Parameter name.
    Name *string `json:"name,omitempty"`
    // Description - Parameter description.
    Description *string `json:"description,omitempty"`
    // Type - Parameter type.
    Type *string `json:"type,omitempty"`
    // DefaultValue - Default parameter value.
    DefaultValue *string `json:"defaultValue,omitempty"`
    // Required - whether parameter is required or not.
    Required *bool `json:"required,omitempty"`
    // Values - Parameter values.
    Values *[]string `json:"values,omitempty"`
}

ParameterContract operation parameters details.

type PolicyScopeContract Uses

type PolicyScopeContract string

PolicyScopeContract enumerates the values for policy scope contract.

const (
    // PolicyScopeContractAll ...
    PolicyScopeContractAll PolicyScopeContract = "All"
    // PolicyScopeContractAPI ...
    PolicyScopeContractAPI PolicyScopeContract = "Api"
    // PolicyScopeContractOperation ...
    PolicyScopeContractOperation PolicyScopeContract = "Operation"
    // PolicyScopeContractProduct ...
    PolicyScopeContractProduct PolicyScopeContract = "Product"
    // PolicyScopeContractTenant ...
    PolicyScopeContractTenant PolicyScopeContract = "Tenant"
)

func PossiblePolicyScopeContractValues Uses

func PossiblePolicyScopeContractValues() []PolicyScopeContract

PossiblePolicyScopeContractValues returns an array of possible values for the PolicyScopeContract const type.

type PolicySnippetContract Uses

type PolicySnippetContract struct {
    // Name - READ-ONLY; Snippet name.
    Name *string `json:"name,omitempty"`
    // Content - READ-ONLY; Snippet content.
    Content *string `json:"content,omitempty"`
    // ToolTip - READ-ONLY; Snippet toolTip.
    ToolTip *string `json:"toolTip,omitempty"`
    // Scope - READ-ONLY; Snippet scope. Possible values include: 'PolicyScopeContractTenant', 'PolicyScopeContractProduct', 'PolicyScopeContractAPI', 'PolicyScopeContractOperation', 'PolicyScopeContractAll'
    Scope PolicyScopeContract `json:"scope,omitempty"`
}

PolicySnippetContract policy snippet.

type PolicySnippetsClient Uses

type PolicySnippetsClient struct {
    BaseClient
}

PolicySnippetsClient is the apiManagement Client

func NewPolicySnippetsClient Uses

func NewPolicySnippetsClient(subscriptionID string) PolicySnippetsClient

NewPolicySnippetsClient creates an instance of the PolicySnippetsClient client.

func NewPolicySnippetsClientWithBaseURI Uses

func NewPolicySnippetsClientWithBaseURI(baseURI string, subscriptionID string) PolicySnippetsClient

NewPolicySnippetsClientWithBaseURI creates an instance of the PolicySnippetsClient client.

func (PolicySnippetsClient) ListByService Uses

func (client PolicySnippetsClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, scope PolicyScopeContract) (result PolicySnippetsCollection, err error)

ListByService lists all policy snippets. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. scope - policy scope.

func (PolicySnippetsClient) ListByServicePreparer Uses

func (client PolicySnippetsClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, scope PolicyScopeContract) (*http.Request, error)

ListByServicePreparer prepares the ListByService request.

func (PolicySnippetsClient) ListByServiceResponder Uses

func (client PolicySnippetsClient) ListByServiceResponder(resp *http.Response) (result PolicySnippetsCollection, err error)

ListByServiceResponder handles the response to the ListByService request. The method always closes the http.Response Body.

func (PolicySnippetsClient) ListByServiceSender Uses

func (client PolicySnippetsClient) ListByServiceSender(req *http.Request) (*http.Response, error)

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

type PolicySnippetsCollection Uses

type PolicySnippetsCollection struct {
    autorest.Response `json:"-"`
    // Value - Policy snippet value.
    Value *[]PolicySnippetContract `json:"value,omitempty"`
}

PolicySnippetsCollection the response of the list policy snippets operation.

type ProductApisClient Uses

type ProductApisClient struct {
    BaseClient
}

ProductApisClient is the apiManagement Client

func NewProductApisClient Uses

func NewProductApisClient(subscriptionID string) ProductApisClient

NewProductApisClient creates an instance of the ProductApisClient client.

func NewProductApisClientWithBaseURI Uses

func NewProductApisClientWithBaseURI(baseURI string, subscriptionID string) ProductApisClient

NewProductApisClientWithBaseURI creates an instance of the ProductApisClient client.

func (ProductApisClient) Create Uses

func (client ProductApisClient) Create(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (result autorest.Response, err error)

Create adds an API to the specified product. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. productID - product identifier. Must be unique in the current API Management service instance. apiid - API identifier. Must be unique in the current API Management service instance.

func (ProductApisClient) CreatePreparer Uses

func (client ProductApisClient) CreatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ProductApisClient) CreateResponder Uses

func (client ProductApisClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (ProductApisClient) CreateSender Uses

func (client ProductApisClient) 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 (ProductApisClient) Delete Uses

func (client ProductApisClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (result autorest.Response, err error)

Delete deletes the specified API from the specified product. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. productID - product identifier. Must be unique in the current API Management service instance. apiid - API identifier. Must be unique in the current API Management service instance.

func (ProductApisClient) DeletePreparer Uses

func (client ProductApisClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ProductApisClient) DeleteResponder Uses

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

func (client ProductApisClient) 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 (ProductApisClient) ListByProducts Uses

func (client ProductApisClient) ListByProducts(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result APICollectionPage, err error)

ListByProducts lists a collection of the APIs associated with a product. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. productID - product identifier. Must be unique in the current API Management service instance. filter - | Field | Supported operators | Supported functions | |-------------|------------------------|---------------------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | top - number of records to return. skip - number of records to skip.

func (ProductApisClient) ListByProductsComplete Uses

func (client ProductApisClient) ListByProductsComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result APICollectionIterator, err error)

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

func (ProductApisClient) ListByProductsPreparer Uses

func (client ProductApisClient) ListByProductsPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByProductsPreparer prepares the ListByProducts request.

func (ProductApisClient) ListByProductsResponder Uses

func (client ProductApisClient) ListByProductsResponder(resp *http.Response) (result APICollection, err error)

ListByProductsResponder handles the response to the ListByProducts request. The method always closes the http.Response Body.

func (ProductApisClient) ListByProductsSender Uses

func (client ProductApisClient) ListByProductsSender(req *http.Request) (*http.Response, error)

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

type ProductCollection Uses

type ProductCollection struct {
    autorest.Response `json:"-"`
    // Value - Page values.
    Value *[]ProductContract `json:"value,omitempty"`
    // Count - Total record count number across all pages.
    Count *int64 `json:"count,omitempty"`
    // NextLink - Next page link if any.
    NextLink *string `json:"nextLink,omitempty"`
}

ProductCollection paged Products list representation.

func (ProductCollection) IsEmpty Uses

func (pc ProductCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProductCollectionIterator Uses

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

ProductCollectionIterator provides access to a complete listing of ProductContract values.

func NewProductCollectionIterator Uses

func NewProductCollectionIterator(page ProductCollectionPage) ProductCollectionIterator

Creates a new instance of the ProductCollectionIterator type.

func (*ProductCollectionIterator) Next Uses

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

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

func (iter ProductCollectionIterator) NotDone() bool

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

func (ProductCollectionIterator) Response Uses

func (iter ProductCollectionIterator) Response() ProductCollection

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

func (ProductCollectionIterator) Value Uses

func (iter ProductCollectionIterator) Value() ProductContract

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

type ProductCollectionPage Uses

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

ProductCollectionPage contains a page of ProductContract values.

func NewProductCollectionPage Uses

func NewProductCollectionPage(getNextPage func(context.Context, ProductCollection) (ProductCollection, error)) ProductCollectionPage

Creates a new instance of the ProductCollectionPage type.

func (*ProductCollectionPage) Next Uses

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

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

func (page ProductCollectionPage) NotDone() bool

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

func (ProductCollectionPage) Response Uses

func (page ProductCollectionPage) Response() ProductCollection

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

func (ProductCollectionPage) Values Uses

func (page ProductCollectionPage) Values() []ProductContract

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

type ProductContract Uses

type ProductContract struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Uniquely identifies the product within the current API Management service instance. The value is a valid relative URL in the format of /products/{productId} where {productId} is a product identifier.
    ID  *string `json:"id,omitempty"`
    // Name - Product name.
    Name *string `json:"name,omitempty"`
    // Description - Product description. May include HTML formatting tags.
    Description *string `json:"description,omitempty"`
    // Terms - Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process.
    Terms *string `json:"terms,omitempty"`
    // SubscriptionRequired - Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true.
    SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"`
    // ApprovalRequired - whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false.
    ApprovalRequired *bool `json:"approvalRequired,omitempty"`
    // SubscriptionsLimit - Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false.
    SubscriptionsLimit *int32 `json:"subscriptionsLimit,omitempty"`
    // State - whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is NotPublished. Possible values include: 'NotPublished', 'Published'
    State ProductStateContract `json:"state,omitempty"`
}

ProductContract product profile.

type ProductGroupsClient Uses

type ProductGroupsClient struct {
    BaseClient
}

ProductGroupsClient is the apiManagement Client

func NewProductGroupsClient Uses

func NewProductGroupsClient(subscriptionID string) ProductGroupsClient

NewProductGroupsClient creates an instance of the ProductGroupsClient client.

func NewProductGroupsClientWithBaseURI Uses

func NewProductGroupsClientWithBaseURI(baseURI string, subscriptionID string) ProductGroupsClient

NewProductGroupsClientWithBaseURI creates an instance of the ProductGroupsClient client.

func (ProductGroupsClient) Create Uses

func (client ProductGroupsClient) Create(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (result autorest.Response, err error)

Create adds the association between the specified developer group with the specified product. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. productID - product identifier. Must be unique in the current API Management service instance. groupID - group identifier. Must be unique in the current API Management service instance.

func (ProductGroupsClient) CreatePreparer Uses

func (client ProductGroupsClient) CreatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ProductGroupsClient) CreateResponder Uses

func (client ProductGroupsClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (ProductGroupsClient) CreateSender Uses

func (client ProductGroupsClient) 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 (ProductGroupsClient) Delete Uses

func (client ProductGroupsClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (result ErrorBodyContract, err error)

Delete deletes the association between the specified group and product. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. productID - product identifier. Must be unique in the current API Management service instance. groupID - group identifier. Must be unique in the current API Management service instance.

func (ProductGroupsClient) DeletePreparer Uses

func (client ProductGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ProductGroupsClient) DeleteResponder Uses

func (client ProductGroupsClient) DeleteResponder(resp *http.Response) (result ErrorBodyContract, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ProductGroupsClient) DeleteSender Uses

func (client ProductGroupsClient) 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 (ProductGroupsClient) ListByProducts Uses

func (client ProductGroupsClient) ListByProducts(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result GroupCollectionPage, err error)

ListByProducts lists the collection of developer groups associated with the specified product. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. productID - product identifier. Must be unique in the current API Management service instance. filter - | Field | Supported operators | Supported functions | |-------------|------------------------|---------------------------------------------| | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | type | eq, ne | N/A | top - number of records to return. skip - number of records to skip.

func (ProductGroupsClient) ListByProductsComplete Uses

func (client ProductGroupsClient) ListByProductsComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result GroupCollectionIterator, err error)

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

func (ProductGroupsClient) ListByProductsPreparer Uses

func (client ProductGroupsClient) ListByProductsPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error)

ListByProductsPreparer prepares the ListByProducts request.

func (ProductGroupsClient) ListByProductsResponder Uses

func (client ProductGroupsClient) ListByProductsResponder(resp *http.Response) (result GroupCollection, err error)

ListByProductsResponder handles the response to the ListByProducts request. The method always closes the http.Response Body.

func (ProductGroupsClient) ListByProductsSender Uses

func (client ProductGroupsClient) ListByProductsSender(req *http.Request) (*http.Response, error)

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

type ProductPolicyClient Uses

type ProductPolicyClient struct {
    BaseClient
}

ProductPolicyClient is the apiManagement Client

func NewProductPolicyClient Uses

func NewProductPolicyClient(subscriptionID string) ProductPolicyClient

NewProductPolicyClient creates an instance of the ProductPolicyClient client.

func NewProductPolicyClientWithBaseURI Uses

func NewProductPolicyClientWithBaseURI(baseURI string, subscriptionID string) ProductPolicyClient

NewProductPolicyClientWithBaseURI creates an instance of the ProductPolicyClient client.

func (ProductPolicyClient) CreateOrUpdate Uses

func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters io.ReadCloser, ifMatch string) (result autorest.Response, err error)

CreateOrUpdate creates or updates policy configuration for the Product. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. productID - product identifier. Must be unique in the current API Management service instance. parameters - the policy contents to apply. ifMatch - the entity state (Etag) version of the product policy to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (ProductPolicyClient) CreateOrUpdatePreparer Uses

func (client ProductPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters io.ReadCloser, ifMatch string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ProductPolicyClient) CreateOrUpdateResponder Uses

func (client ProductPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (ProductPolicyClient) CreateOrUpdateSender Uses

func (client ProductPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (ProductPolicyClient) Delete Uses

func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, productID string, ifMatch string) (result autorest.Response, err error)

Delete deletes the policy configuration at the Product. Parameters: resourceGroupName - the name of the resource group. serviceName - the name of the API Management service. productID - product identifier. Must be unique in the current API Management service instance. ifMatch - the entity state (Etag) version of the product policy to update. A value of "*" can be used for If-Match to unconditionally apply the operation.

func (ProductPolicyClient) DeletePreparer Uses

func (client ProductPolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ProductPolicyClient) DeleteResponder Uses

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

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

func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName string, serviceName string, productID string) (result <