cdn

package
v10.3.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cdn implements the Azure ARM Cdn service API version 2016-10-02.

Use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type CheckNameAvailabilityInput

type CheckNameAvailabilityInput struct {
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

CheckNameAvailabilityInput is input of CheckNameAvailability API.

type CheckNameAvailabilityOutput

type CheckNameAvailabilityOutput struct {
	autorest.Response `json:"-"`
	NameAvailable     *bool   `json:"nameAvailable,omitempty"`
	Reason            *string `json:"reason,omitempty"`
	Message           *string `json:"message,omitempty"`
}

CheckNameAvailabilityOutput is output of check name availability API.

type CidrIPAddress

type CidrIPAddress struct {
	BaseIPAddress *string `json:"baseIpAddress,omitempty"`
	PrefixLength  *int32  `json:"prefixLength,omitempty"`
}

CidrIPAddress is cIDR Ip address

type CustomDomain

type CustomDomain struct {
	autorest.Response       `json:"-"`
	ID                      *string             `json:"id,omitempty"`
	Name                    *string             `json:"name,omitempty"`
	Type                    *string             `json:"type,omitempty"`
	Location                *string             `json:"location,omitempty"`
	Tags                    *map[string]*string `json:"tags,omitempty"`
	*CustomDomainProperties `json:"properties,omitempty"`
}

CustomDomain is customer provided domain for branding purposes, e.g. www.consoto.com.

type CustomDomainListResult

type CustomDomainListResult struct {
	autorest.Response `json:"-"`
	Value             *[]CustomDomain `json:"value,omitempty"`
	NextLink          *string         `json:"nextLink,omitempty"`
}

CustomDomainListResult is result of the request to list custom domains. It contains a list of custom domain objects and a URL link to get the next set of results.

func (CustomDomainListResult) CustomDomainListResultPreparer

func (client CustomDomainListResult) CustomDomainListResultPreparer() (*http.Request, error)

CustomDomainListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type CustomDomainParameters

type CustomDomainParameters struct {
	*CustomDomainPropertiesParameters `json:"properties,omitempty"`
}

CustomDomainParameters is the customDomain JSON object required for custom domain creation or update.

type CustomDomainProperties

type CustomDomainProperties struct {
	HostName                     *string                      `json:"hostName,omitempty"`
	ResourceState                CustomDomainResourceState    `json:"resourceState,omitempty"`
	CustomHTTPSProvisioningState CustomHTTPSProvisioningState `json:"customHttpsProvisioningState,omitempty"`
	ValidationData               *string                      `json:"validationData,omitempty"`
	ProvisioningState            *string                      `json:"provisioningState,omitempty"`
}

CustomDomainProperties is the JSON object that contains the properties of the custom domain to create.

type CustomDomainPropertiesParameters

type CustomDomainPropertiesParameters struct {
	HostName *string `json:"hostName,omitempty"`
}

CustomDomainPropertiesParameters is the JSON object that contains the properties of the custom domain to create.

type CustomDomainResourceState

type CustomDomainResourceState string

CustomDomainResourceState enumerates the values for custom domain resource state.

const (
	// Active specifies the active state for custom domain resource state.
	Active CustomDomainResourceState = "Active"
	// Creating specifies the creating state for custom domain resource state.
	Creating CustomDomainResourceState = "Creating"
	// Deleting specifies the deleting state for custom domain resource state.
	Deleting CustomDomainResourceState = "Deleting"
)

type CustomDomainsClient

type CustomDomainsClient struct {
	ManagementClient
}

CustomDomainsClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.

func NewCustomDomainsClient

func NewCustomDomainsClient(subscriptionID string) CustomDomainsClient

NewCustomDomainsClient creates an instance of the CustomDomainsClient client.

func NewCustomDomainsClientWithBaseURI

func NewCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string) CustomDomainsClient

NewCustomDomainsClientWithBaseURI creates an instance of the CustomDomainsClient client.

func (CustomDomainsClient) Create

func (client CustomDomainsClient) Create(resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainProperties CustomDomainParameters, cancel <-chan struct{}) (<-chan CustomDomain, <-chan error)

Create creates a new custom domain within an endpoint. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainName is name of the custom domain within an endpoint. customDomainProperties is properties required to create a new custom domain.

func (CustomDomainsClient) CreatePreparer

func (client CustomDomainsClient) CreatePreparer(resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainProperties CustomDomainParameters, cancel <-chan struct{}) (*http.Request, error)

CreatePreparer prepares the Create request.

func (CustomDomainsClient) CreateResponder

func (client CustomDomainsClient) CreateResponder(resp *http.Response) (result CustomDomain, err error)

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

func (CustomDomainsClient) CreateSender

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

func (client CustomDomainsClient) Delete(resourceGroupName string, profileName string, endpointName string, customDomainName string, cancel <-chan struct{}) (<-chan CustomDomain, <-chan error)

Delete deletes an existing custom domain within an endpoint. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainName is name of the custom domain within an endpoint.

func (CustomDomainsClient) DeletePreparer

func (client CustomDomainsClient) DeletePreparer(resourceGroupName string, profileName string, endpointName string, customDomainName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (CustomDomainsClient) DeleteResponder

func (client CustomDomainsClient) DeleteResponder(resp *http.Response) (result CustomDomain, err error)

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

func (CustomDomainsClient) DeleteSender

func (client CustomDomainsClient) 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 (CustomDomainsClient) DisableCustomHTTPS

func (client CustomDomainsClient) DisableCustomHTTPS(resourceGroupName string, profileName string, endpointName string, customDomainName string) (result CustomDomain, err error)

DisableCustomHTTPS disable https delivery of the custom domain.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainName is name of the custom domain within an endpoint.

func (CustomDomainsClient) DisableCustomHTTPSPreparer

func (client CustomDomainsClient) DisableCustomHTTPSPreparer(resourceGroupName string, profileName string, endpointName string, customDomainName string) (*http.Request, error)

DisableCustomHTTPSPreparer prepares the DisableCustomHTTPS request.

func (CustomDomainsClient) DisableCustomHTTPSResponder

func (client CustomDomainsClient) DisableCustomHTTPSResponder(resp *http.Response) (result CustomDomain, err error)

DisableCustomHTTPSResponder handles the response to the DisableCustomHTTPS request. The method always closes the http.Response Body.

func (CustomDomainsClient) DisableCustomHTTPSSender

func (client CustomDomainsClient) DisableCustomHTTPSSender(req *http.Request) (*http.Response, error)

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

func (CustomDomainsClient) EnableCustomHTTPS

func (client CustomDomainsClient) EnableCustomHTTPS(resourceGroupName string, profileName string, endpointName string, customDomainName string) (result CustomDomain, err error)

EnableCustomHTTPS enable https delivery of the custom domain.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainName is name of the custom domain within an endpoint.

func (CustomDomainsClient) EnableCustomHTTPSPreparer

func (client CustomDomainsClient) EnableCustomHTTPSPreparer(resourceGroupName string, profileName string, endpointName string, customDomainName string) (*http.Request, error)

EnableCustomHTTPSPreparer prepares the EnableCustomHTTPS request.

func (CustomDomainsClient) EnableCustomHTTPSResponder

func (client CustomDomainsClient) EnableCustomHTTPSResponder(resp *http.Response) (result CustomDomain, err error)

EnableCustomHTTPSResponder handles the response to the EnableCustomHTTPS request. The method always closes the http.Response Body.

func (CustomDomainsClient) EnableCustomHTTPSSender

func (client CustomDomainsClient) EnableCustomHTTPSSender(req *http.Request) (*http.Response, error)

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

func (CustomDomainsClient) Get

func (client CustomDomainsClient) Get(resourceGroupName string, profileName string, endpointName string, customDomainName string) (result CustomDomain, err error)

Get gets an exisitng custom domain within an endpoint.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainName is name of the custom domain within an endpoint.

func (CustomDomainsClient) GetPreparer

func (client CustomDomainsClient) GetPreparer(resourceGroupName string, profileName string, endpointName string, customDomainName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CustomDomainsClient) GetResponder

func (client CustomDomainsClient) GetResponder(resp *http.Response) (result CustomDomain, err error)

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

func (CustomDomainsClient) GetSender

func (client CustomDomainsClient) 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 (CustomDomainsClient) ListByEndpoint

func (client CustomDomainsClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string) (result CustomDomainListResult, err error)

ListByEndpoint lists all of the existing custom domains within an endpoint.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.

func (CustomDomainsClient) ListByEndpointNextResults

func (client CustomDomainsClient) ListByEndpointNextResults(lastResults CustomDomainListResult) (result CustomDomainListResult, err error)

ListByEndpointNextResults retrieves the next set of results, if any.

func (CustomDomainsClient) ListByEndpointPreparer

func (client CustomDomainsClient) ListByEndpointPreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)

ListByEndpointPreparer prepares the ListByEndpoint request.

func (CustomDomainsClient) ListByEndpointResponder

func (client CustomDomainsClient) ListByEndpointResponder(resp *http.Response) (result CustomDomainListResult, err error)

ListByEndpointResponder handles the response to the ListByEndpoint request. The method always closes the http.Response Body.

func (CustomDomainsClient) ListByEndpointSender

func (client CustomDomainsClient) ListByEndpointSender(req *http.Request) (*http.Response, error)

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

type CustomHTTPSProvisioningState

type CustomHTTPSProvisioningState string

CustomHTTPSProvisioningState enumerates the values for custom https provisioning state.

const (
	// Disabled specifies the disabled state for custom https provisioning
	// state.
	Disabled CustomHTTPSProvisioningState = "Disabled"
	// Disabling specifies the disabling state for custom https provisioning
	// state.
	Disabling CustomHTTPSProvisioningState = "Disabling"
	// Enabled specifies the enabled state for custom https provisioning state.
	Enabled CustomHTTPSProvisioningState = "Enabled"
	// Enabling specifies the enabling state for custom https provisioning
	// state.
	Enabling CustomHTTPSProvisioningState = "Enabling"
	// Failed specifies the failed state for custom https provisioning state.
	Failed CustomHTTPSProvisioningState = "Failed"
)

type DeepCreatedOrigin

type DeepCreatedOrigin struct {
	Name                         *string `json:"name,omitempty"`
	*DeepCreatedOriginProperties `json:"properties,omitempty"`
}

DeepCreatedOrigin is origin to be added when creating a CDN endpoint.

type DeepCreatedOriginProperties

type DeepCreatedOriginProperties struct {
	HostName  *string `json:"hostName,omitempty"`
	HTTPPort  *int32  `json:"httpPort,omitempty"`
	HTTPSPort *int32  `json:"httpsPort,omitempty"`
}

DeepCreatedOriginProperties is properties of origin Properties of the origin created on the CDN endpoint.

type EdgeNode

type EdgeNode struct {
	ID                  *string             `json:"id,omitempty"`
	Name                *string             `json:"name,omitempty"`
	Type                *string             `json:"type,omitempty"`
	Location            *string             `json:"location,omitempty"`
	Tags                *map[string]*string `json:"tags,omitempty"`
	*EdgeNodeProperties `json:"properties,omitempty"`
}

EdgeNode is edge node of CDN service.

type EdgeNodeProperties

type EdgeNodeProperties struct {
	IPAddressGroups *[]IPAddressGroup `json:"ipAddressGroups,omitempty"`
}

EdgeNodeProperties is the JSON object that contains the properties required to create an edgenode.

type EdgeNodesClient

type EdgeNodesClient struct {
	ManagementClient
}

EdgeNodesClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.

func NewEdgeNodesClient

func NewEdgeNodesClient(subscriptionID string) EdgeNodesClient

NewEdgeNodesClient creates an instance of the EdgeNodesClient client.

func NewEdgeNodesClientWithBaseURI

func NewEdgeNodesClientWithBaseURI(baseURI string, subscriptionID string) EdgeNodesClient

NewEdgeNodesClientWithBaseURI creates an instance of the EdgeNodesClient client.

func (EdgeNodesClient) List

func (client EdgeNodesClient) List() (result EdgenodeResult, err error)

List lists all the edge nodes of a CDN service.

func (EdgeNodesClient) ListNextResults

func (client EdgeNodesClient) ListNextResults(lastResults EdgenodeResult) (result EdgenodeResult, err error)

ListNextResults retrieves the next set of results, if any.

func (EdgeNodesClient) ListPreparer

func (client EdgeNodesClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (EdgeNodesClient) ListResponder

func (client EdgeNodesClient) ListResponder(resp *http.Response) (result EdgenodeResult, err error)

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

func (EdgeNodesClient) ListSender

func (client EdgeNodesClient) 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 EdgenodeResult

type EdgenodeResult struct {
	autorest.Response `json:"-"`
	Value             *[]EdgeNode `json:"value,omitempty"`
	NextLink          *string     `json:"nextLink,omitempty"`
}

EdgenodeResult is result of the request to list CDN edgenodes. It contains a list of ip address group and a URL link to get the next set of results.

func (EdgenodeResult) EdgenodeResultPreparer

func (client EdgenodeResult) EdgenodeResultPreparer() (*http.Request, error)

EdgenodeResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type Endpoint

type Endpoint struct {
	autorest.Response   `json:"-"`
	ID                  *string             `json:"id,omitempty"`
	Name                *string             `json:"name,omitempty"`
	Type                *string             `json:"type,omitempty"`
	Location            *string             `json:"location,omitempty"`
	Tags                *map[string]*string `json:"tags,omitempty"`
	*EndpointProperties `json:"properties,omitempty"`
}

Endpoint is cDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The CDN endpoint uses the URL format <endpointname>.azureedge.net.

type EndpointListResult

type EndpointListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Endpoint `json:"value,omitempty"`
	NextLink          *string     `json:"nextLink,omitempty"`
}

EndpointListResult is result of the request to list endpoints. It contains a list of endpoint objects and a URL link to get the the next set of results.

func (EndpointListResult) EndpointListResultPreparer

func (client EndpointListResult) EndpointListResultPreparer() (*http.Request, error)

EndpointListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type EndpointProperties

type EndpointProperties struct {
	OriginHostHeader           *string                    `json:"originHostHeader,omitempty"`
	OriginPath                 *string                    `json:"originPath,omitempty"`
	ContentTypesToCompress     *[]string                  `json:"contentTypesToCompress,omitempty"`
	IsCompressionEnabled       *bool                      `json:"isCompressionEnabled,omitempty"`
	IsHTTPAllowed              *bool                      `json:"isHttpAllowed,omitempty"`
	IsHTTPSAllowed             *bool                      `json:"isHttpsAllowed,omitempty"`
	QueryStringCachingBehavior QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"`
	OptimizationType           *string                    `json:"optimizationType,omitempty"`
	GeoFilters                 *[]GeoFilter               `json:"geoFilters,omitempty"`
	HostName                   *string                    `json:"hostName,omitempty"`
	Origins                    *[]DeepCreatedOrigin       `json:"origins,omitempty"`
	ResourceState              EndpointResourceState      `json:"resourceState,omitempty"`
	ProvisioningState          *string                    `json:"provisioningState,omitempty"`
}

EndpointProperties is the JSON object that contains the properties required to create an endpoint.

type EndpointPropertiesUpdateParameters

type EndpointPropertiesUpdateParameters struct {
	OriginHostHeader           *string                    `json:"originHostHeader,omitempty"`
	OriginPath                 *string                    `json:"originPath,omitempty"`
	ContentTypesToCompress     *[]string                  `json:"contentTypesToCompress,omitempty"`
	IsCompressionEnabled       *bool                      `json:"isCompressionEnabled,omitempty"`
	IsHTTPAllowed              *bool                      `json:"isHttpAllowed,omitempty"`
	IsHTTPSAllowed             *bool                      `json:"isHttpsAllowed,omitempty"`
	QueryStringCachingBehavior QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"`
	OptimizationType           *string                    `json:"optimizationType,omitempty"`
	GeoFilters                 *[]GeoFilter               `json:"geoFilters,omitempty"`
}

EndpointPropertiesUpdateParameters is result of the request to list endpoints. It contains a list of endpoints and a URL link to get the next set of results.

type EndpointResourceState

type EndpointResourceState string

EndpointResourceState enumerates the values for endpoint resource state.

const (
	// EndpointResourceStateCreating specifies the endpoint resource state
	// creating state for endpoint resource state.
	EndpointResourceStateCreating EndpointResourceState = "Creating"
	// EndpointResourceStateDeleting specifies the endpoint resource state
	// deleting state for endpoint resource state.
	EndpointResourceStateDeleting EndpointResourceState = "Deleting"
	// EndpointResourceStateRunning specifies the endpoint resource state
	// running state for endpoint resource state.
	EndpointResourceStateRunning EndpointResourceState = "Running"
	// EndpointResourceStateStarting specifies the endpoint resource state
	// starting state for endpoint resource state.
	EndpointResourceStateStarting EndpointResourceState = "Starting"
	// EndpointResourceStateStopped specifies the endpoint resource state
	// stopped state for endpoint resource state.
	EndpointResourceStateStopped EndpointResourceState = "Stopped"
	// EndpointResourceStateStopping specifies the endpoint resource state
	// stopping state for endpoint resource state.
	EndpointResourceStateStopping EndpointResourceState = "Stopping"
)

type EndpointUpdateParameters

type EndpointUpdateParameters struct {
	Tags                                *map[string]*string `json:"tags,omitempty"`
	*EndpointPropertiesUpdateParameters `json:"properties,omitempty"`
}

EndpointUpdateParameters is properties required to create a new endpoint.

type EndpointsClient

type EndpointsClient struct {
	ManagementClient
}

EndpointsClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.

func NewEndpointsClient

func NewEndpointsClient(subscriptionID string) EndpointsClient

NewEndpointsClient creates an instance of the EndpointsClient client.

func NewEndpointsClientWithBaseURI

func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient

NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client.

func (EndpointsClient) Create

func (client EndpointsClient) Create(resourceGroupName string, profileName string, endpointName string, endpoint Endpoint, cancel <-chan struct{}) (<-chan Endpoint, <-chan error)

Create creates a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. endpoint is endpoint properties

func (EndpointsClient) CreatePreparer

func (client EndpointsClient) CreatePreparer(resourceGroupName string, profileName string, endpointName string, endpoint Endpoint, cancel <-chan struct{}) (*http.Request, error)

CreatePreparer prepares the Create request.

func (EndpointsClient) CreateResponder

func (client EndpointsClient) CreateResponder(resp *http.Response) (result Endpoint, err error)

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

func (EndpointsClient) CreateSender

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

func (client EndpointsClient) Delete(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.

func (EndpointsClient) DeletePreparer

func (client EndpointsClient) DeletePreparer(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (EndpointsClient) DeleteResponder

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

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

func (client EndpointsClient) Get(resourceGroupName string, profileName string, endpointName string) (result Endpoint, err error)

Get gets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.

func (EndpointsClient) GetPreparer

func (client EndpointsClient) GetPreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EndpointsClient) GetResponder

func (client EndpointsClient) GetResponder(resp *http.Response) (result Endpoint, err error)

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

func (EndpointsClient) GetSender

func (client EndpointsClient) 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 (EndpointsClient) ListByProfile

func (client EndpointsClient) ListByProfile(resourceGroupName string, profileName string) (result EndpointListResult, err error)

ListByProfile lists existing CDN endpoints.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group.

func (EndpointsClient) ListByProfileNextResults

func (client EndpointsClient) ListByProfileNextResults(lastResults EndpointListResult) (result EndpointListResult, err error)

ListByProfileNextResults retrieves the next set of results, if any.

func (EndpointsClient) ListByProfilePreparer

func (client EndpointsClient) ListByProfilePreparer(resourceGroupName string, profileName string) (*http.Request, error)

ListByProfilePreparer prepares the ListByProfile request.

func (EndpointsClient) ListByProfileResponder

func (client EndpointsClient) ListByProfileResponder(resp *http.Response) (result EndpointListResult, err error)

ListByProfileResponder handles the response to the ListByProfile request. The method always closes the http.Response Body.

func (EndpointsClient) ListByProfileSender

func (client EndpointsClient) ListByProfileSender(req *http.Request) (*http.Response, error)

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

func (EndpointsClient) ListResourceUsage

func (client EndpointsClient) ListResourceUsage(resourceGroupName string, profileName string, endpointName string) (result ResourceUsageListResult, err error)

ListResourceUsage checks the quota and usage of geo filters and custom domains under the given endpoint.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.

func (EndpointsClient) ListResourceUsageNextResults

func (client EndpointsClient) ListResourceUsageNextResults(lastResults ResourceUsageListResult) (result ResourceUsageListResult, err error)

ListResourceUsageNextResults retrieves the next set of results, if any.

func (EndpointsClient) ListResourceUsagePreparer

func (client EndpointsClient) ListResourceUsagePreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)

ListResourceUsagePreparer prepares the ListResourceUsage request.

func (EndpointsClient) ListResourceUsageResponder

func (client EndpointsClient) ListResourceUsageResponder(resp *http.Response) (result ResourceUsageListResult, err error)

ListResourceUsageResponder handles the response to the ListResourceUsage request. The method always closes the http.Response Body.

func (EndpointsClient) ListResourceUsageSender

func (client EndpointsClient) ListResourceUsageSender(req *http.Request) (*http.Response, error)

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

func (EndpointsClient) LoadContent

func (client EndpointsClient) LoadContent(resourceGroupName string, profileName string, endpointName string, contentFilePaths LoadParameters, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

LoadContent pre-loads a content to CDN. Available for Verizon Profiles. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. contentFilePaths is the path to the content to be loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a single file

func (EndpointsClient) LoadContentPreparer

func (client EndpointsClient) LoadContentPreparer(resourceGroupName string, profileName string, endpointName string, contentFilePaths LoadParameters, cancel <-chan struct{}) (*http.Request, error)

LoadContentPreparer prepares the LoadContent request.

func (EndpointsClient) LoadContentResponder

func (client EndpointsClient) LoadContentResponder(resp *http.Response) (result autorest.Response, err error)

LoadContentResponder handles the response to the LoadContent request. The method always closes the http.Response Body.

func (EndpointsClient) LoadContentSender

func (client EndpointsClient) LoadContentSender(req *http.Request) (*http.Response, error)

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

func (EndpointsClient) PurgeContent

func (client EndpointsClient) PurgeContent(resourceGroupName string, profileName string, endpointName string, contentFilePaths PurgeParameters, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

PurgeContent removes a content from CDN. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. contentFilePaths is the path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory.

func (EndpointsClient) PurgeContentPreparer

func (client EndpointsClient) PurgeContentPreparer(resourceGroupName string, profileName string, endpointName string, contentFilePaths PurgeParameters, cancel <-chan struct{}) (*http.Request, error)

PurgeContentPreparer prepares the PurgeContent request.

func (EndpointsClient) PurgeContentResponder

func (client EndpointsClient) PurgeContentResponder(resp *http.Response) (result autorest.Response, err error)

PurgeContentResponder handles the response to the PurgeContent request. The method always closes the http.Response Body.

func (EndpointsClient) PurgeContentSender

func (client EndpointsClient) PurgeContentSender(req *http.Request) (*http.Response, error)

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

func (EndpointsClient) Start

func (client EndpointsClient) Start(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (<-chan Endpoint, <-chan error)

Start starts an existing CDN endpoint that is on a stopped state. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.

func (EndpointsClient) StartPreparer

func (client EndpointsClient) StartPreparer(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (*http.Request, error)

StartPreparer prepares the Start request.

func (EndpointsClient) StartResponder

func (client EndpointsClient) StartResponder(resp *http.Response) (result Endpoint, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (EndpointsClient) StartSender

func (client EndpointsClient) StartSender(req *http.Request) (*http.Response, error)

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

func (EndpointsClient) Stop

func (client EndpointsClient) Stop(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (<-chan Endpoint, <-chan error)

Stop stops an existing running CDN endpoint. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.

func (EndpointsClient) StopPreparer

func (client EndpointsClient) StopPreparer(resourceGroupName string, profileName string, endpointName string, cancel <-chan struct{}) (*http.Request, error)

StopPreparer prepares the Stop request.

func (EndpointsClient) StopResponder

func (client EndpointsClient) StopResponder(resp *http.Response) (result Endpoint, err error)

StopResponder handles the response to the Stop request. The method always closes the http.Response Body.

func (EndpointsClient) StopSender

func (client EndpointsClient) StopSender(req *http.Request) (*http.Response, error)

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

func (EndpointsClient) Update

func (client EndpointsClient) Update(resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties EndpointUpdateParameters, cancel <-chan struct{}) (<-chan Endpoint, <-chan error)

Update updates an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags and Origin HostHeader can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update custom domains, use the Update Custom Domain operation. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. endpointUpdateProperties is endpoint update properties

func (EndpointsClient) UpdatePreparer

func (client EndpointsClient) UpdatePreparer(resourceGroupName string, profileName string, endpointName string, endpointUpdateProperties EndpointUpdateParameters, cancel <-chan struct{}) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (EndpointsClient) UpdateResponder

func (client EndpointsClient) UpdateResponder(resp *http.Response) (result Endpoint, err error)

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

func (EndpointsClient) UpdateSender

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

func (EndpointsClient) ValidateCustomDomain

func (client EndpointsClient) ValidateCustomDomain(resourceGroupName string, profileName string, endpointName string, customDomainProperties ValidateCustomDomainInput) (result ValidateCustomDomainOutput, err error)

ValidateCustomDomain validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. customDomainProperties is custom domain to be validated.

func (EndpointsClient) ValidateCustomDomainPreparer

func (client EndpointsClient) ValidateCustomDomainPreparer(resourceGroupName string, profileName string, endpointName string, customDomainProperties ValidateCustomDomainInput) (*http.Request, error)

ValidateCustomDomainPreparer prepares the ValidateCustomDomain request.

func (EndpointsClient) ValidateCustomDomainResponder

func (client EndpointsClient) ValidateCustomDomainResponder(resp *http.Response) (result ValidateCustomDomainOutput, err error)

ValidateCustomDomainResponder handles the response to the ValidateCustomDomain request. The method always closes the http.Response Body.

func (EndpointsClient) ValidateCustomDomainSender

func (client EndpointsClient) ValidateCustomDomainSender(req *http.Request) (*http.Response, error)

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

type ErrorResponse

type ErrorResponse struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

ErrorResponse is error reponse indicates CDN service is not able to process the incoming request. The reason is provided in the error message.

type GeoFilter

type GeoFilter struct {
	RelativePath *string          `json:"relativePath,omitempty"`
	Action       GeoFilterActions `json:"action,omitempty"`
	CountryCodes *[]string        `json:"countryCodes,omitempty"`
}

GeoFilter is rules defining user geo access within a CDN endpoint.

type GeoFilterActions

type GeoFilterActions string

GeoFilterActions enumerates the values for geo filter actions.

const (
	// Allow specifies the allow state for geo filter actions.
	Allow GeoFilterActions = "Allow"
	// Block specifies the block state for geo filter actions.
	Block GeoFilterActions = "Block"
)

type IPAddressGroup

type IPAddressGroup struct {
	DeliveryRegion *string          `json:"deliveryRegion,omitempty"`
	Ipv4Addresses  *[]CidrIPAddress `json:"ipv4Addresses,omitempty"`
	Ipv6Addresses  *[]CidrIPAddress `json:"ipv6Addresses,omitempty"`
}

IPAddressGroup is cDN Ip address group

type LoadParameters

type LoadParameters struct {
	ContentPaths *[]string `json:"contentPaths,omitempty"`
}

LoadParameters is parameters required for content load.

type ManagementClient

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

ManagementClient is the base client for Cdn.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

func (ManagementClient) CheckNameAvailability

func (client ManagementClient) CheckNameAvailability(checkNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error)

CheckNameAvailability check the availability of a resource name. This is needed for resources where name is globally unique, such as a CDN endpoint.

checkNameAvailabilityInput is input to check.

func (ManagementClient) CheckNameAvailabilityPreparer

func (client ManagementClient) CheckNameAvailabilityPreparer(checkNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (ManagementClient) CheckNameAvailabilityResponder

func (client ManagementClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (ManagementClient) CheckNameAvailabilitySender

func (client ManagementClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

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

func (ManagementClient) ListOperations

func (client ManagementClient) ListOperations() (result OperationListResult, err error)

ListOperations lists all of the available CDN REST API operations.

func (ManagementClient) ListOperationsNextResults

func (client ManagementClient) ListOperationsNextResults(lastResults OperationListResult) (result OperationListResult, err error)

ListOperationsNextResults retrieves the next set of results, if any.

func (ManagementClient) ListOperationsPreparer

func (client ManagementClient) ListOperationsPreparer() (*http.Request, error)

ListOperationsPreparer prepares the ListOperations request.

func (ManagementClient) ListOperationsResponder

func (client ManagementClient) ListOperationsResponder(resp *http.Response) (result OperationListResult, err error)

ListOperationsResponder handles the response to the ListOperations request. The method always closes the http.Response Body.

func (ManagementClient) ListOperationsSender

func (client ManagementClient) ListOperationsSender(req *http.Request) (*http.Response, error)

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

func (ManagementClient) ListResourceUsage

func (client ManagementClient) ListResourceUsage() (result ResourceUsageListResult, err error)

ListResourceUsage check the quota and actual usage of the CDN profiles under the given subscription.

func (ManagementClient) ListResourceUsageNextResults

func (client ManagementClient) ListResourceUsageNextResults(lastResults ResourceUsageListResult) (result ResourceUsageListResult, err error)

ListResourceUsageNextResults retrieves the next set of results, if any.

func (ManagementClient) ListResourceUsagePreparer

func (client ManagementClient) ListResourceUsagePreparer() (*http.Request, error)

ListResourceUsagePreparer prepares the ListResourceUsage request.

func (ManagementClient) ListResourceUsageResponder

func (client ManagementClient) ListResourceUsageResponder(resp *http.Response) (result ResourceUsageListResult, err error)

ListResourceUsageResponder handles the response to the ListResourceUsage request. The method always closes the http.Response Body.

func (ManagementClient) ListResourceUsageSender

func (client ManagementClient) ListResourceUsageSender(req *http.Request) (*http.Response, error)

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

type Operation

type Operation struct {
	Name    *string           `json:"name,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation is cDN REST API operation

type OperationDisplay

type OperationDisplay struct {
	Provider  *string `json:"provider,omitempty"`
	Resource  *string `json:"resource,omitempty"`
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay is the object that represents the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

OperationListResult is result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) OperationListResultPreparer

func (client OperationListResult) OperationListResultPreparer() (*http.Request, error)

OperationListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type Origin

type Origin struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*OriginProperties `json:"properties,omitempty"`
}

Origin is cDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins.

type OriginListResult

type OriginListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Origin `json:"value,omitempty"`
	NextLink          *string   `json:"nextLink,omitempty"`
}

OriginListResult is result of the request to list origins. It contains a list of origin objects and a URL link to get the next set of results.

func (OriginListResult) OriginListResultPreparer

func (client OriginListResult) OriginListResultPreparer() (*http.Request, error)

OriginListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type OriginProperties

type OriginProperties struct {
	HostName          *string             `json:"hostName,omitempty"`
	HTTPPort          *int32              `json:"httpPort,omitempty"`
	HTTPSPort         *int32              `json:"httpsPort,omitempty"`
	ResourceState     OriginResourceState `json:"resourceState,omitempty"`
	ProvisioningState *string             `json:"provisioningState,omitempty"`
}

OriginProperties is the JSON object that contains the properties of the origin to create.

type OriginPropertiesParameters

type OriginPropertiesParameters struct {
	HostName  *string `json:"hostName,omitempty"`
	HTTPPort  *int32  `json:"httpPort,omitempty"`
	HTTPSPort *int32  `json:"httpsPort,omitempty"`
}

OriginPropertiesParameters is the JSON object that contains the properties of the origin to create.

type OriginResourceState

type OriginResourceState string

OriginResourceState enumerates the values for origin resource state.

const (
	// OriginResourceStateActive specifies the origin resource state active
	// state for origin resource state.
	OriginResourceStateActive OriginResourceState = "Active"
	// OriginResourceStateCreating specifies the origin resource state creating
	// state for origin resource state.
	OriginResourceStateCreating OriginResourceState = "Creating"
	// OriginResourceStateDeleting specifies the origin resource state deleting
	// state for origin resource state.
	OriginResourceStateDeleting OriginResourceState = "Deleting"
)

type OriginUpdateParameters

type OriginUpdateParameters struct {
	*OriginPropertiesParameters `json:"properties,omitempty"`
}

OriginUpdateParameters is origin properties needed for origin creation or update.

type OriginsClient

type OriginsClient struct {
	ManagementClient
}

OriginsClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.

func NewOriginsClient

func NewOriginsClient(subscriptionID string) OriginsClient

NewOriginsClient creates an instance of the OriginsClient client.

func NewOriginsClientWithBaseURI

func NewOriginsClientWithBaseURI(baseURI string, subscriptionID string) OriginsClient

NewOriginsClientWithBaseURI creates an instance of the OriginsClient client.

func (OriginsClient) Get

func (client OriginsClient) Get(resourceGroupName string, profileName string, endpointName string, originName string) (result Origin, err error)

Get gets an existing origin within an endpoint.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. originName is name of the origin which is unique within the endpoint.

func (OriginsClient) GetPreparer

func (client OriginsClient) GetPreparer(resourceGroupName string, profileName string, endpointName string, originName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OriginsClient) GetResponder

func (client OriginsClient) GetResponder(resp *http.Response) (result Origin, err error)

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

func (OriginsClient) GetSender

func (client OriginsClient) 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 (OriginsClient) ListByEndpoint

func (client OriginsClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string) (result OriginListResult, err error)

ListByEndpoint lists all of the existing origins within an endpoint.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally.

func (OriginsClient) ListByEndpointNextResults

func (client OriginsClient) ListByEndpointNextResults(lastResults OriginListResult) (result OriginListResult, err error)

ListByEndpointNextResults retrieves the next set of results, if any.

func (OriginsClient) ListByEndpointPreparer

func (client OriginsClient) ListByEndpointPreparer(resourceGroupName string, profileName string, endpointName string) (*http.Request, error)

ListByEndpointPreparer prepares the ListByEndpoint request.

func (OriginsClient) ListByEndpointResponder

func (client OriginsClient) ListByEndpointResponder(resp *http.Response) (result OriginListResult, err error)

ListByEndpointResponder handles the response to the ListByEndpoint request. The method always closes the http.Response Body.

func (OriginsClient) ListByEndpointSender

func (client OriginsClient) ListByEndpointSender(req *http.Request) (*http.Response, error)

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

func (OriginsClient) Update

func (client OriginsClient) Update(resourceGroupName string, profileName string, endpointName string, originName string, originUpdateProperties OriginUpdateParameters, cancel <-chan struct{}) (<-chan Origin, <-chan error)

Update updates an existing origin within an endpoint. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. endpointName is name of the endpoint under the profile which is unique globally. originName is name of the origin which is unique within the endpoint. originUpdateProperties is origin properties

func (OriginsClient) UpdatePreparer

func (client OriginsClient) UpdatePreparer(resourceGroupName string, profileName string, endpointName string, originName string, originUpdateProperties OriginUpdateParameters, cancel <-chan struct{}) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (OriginsClient) UpdateResponder

func (client OriginsClient) UpdateResponder(resp *http.Response) (result Origin, err error)

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

func (OriginsClient) UpdateSender

func (client OriginsClient) 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 Profile

type Profile struct {
	autorest.Response  `json:"-"`
	ID                 *string             `json:"id,omitempty"`
	Name               *string             `json:"name,omitempty"`
	Type               *string             `json:"type,omitempty"`
	Location           *string             `json:"location,omitempty"`
	Tags               *map[string]*string `json:"tags,omitempty"`
	Sku                *Sku                `json:"sku,omitempty"`
	*ProfileProperties `json:"properties,omitempty"`
}

Profile is cDN profile represents the top level resource and the entry point into the CDN API. This allows users to set up a logical grouping of endpoints in addition to creating shared configuration settings and selecting pricing tiers and providers.

type ProfileListResult

type ProfileListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Profile `json:"value,omitempty"`
	NextLink          *string    `json:"nextLink,omitempty"`
}

ProfileListResult is result of the request to list profiles. It contains a list of profile objects and a URL link to get the the next set of results.

func (ProfileListResult) ProfileListResultPreparer

func (client ProfileListResult) ProfileListResultPreparer() (*http.Request, error)

ProfileListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ProfileProperties

type ProfileProperties struct {
	ResourceState     ProfileResourceState `json:"resourceState,omitempty"`
	ProvisioningState *string              `json:"provisioningState,omitempty"`
}

ProfileProperties is the JSON object that contains the properties required to create a profile.

type ProfileResourceState

type ProfileResourceState string

ProfileResourceState enumerates the values for profile resource state.

const (
	// ProfileResourceStateActive specifies the profile resource state active
	// state for profile resource state.
	ProfileResourceStateActive ProfileResourceState = "Active"
	// ProfileResourceStateCreating specifies the profile resource state
	// creating state for profile resource state.
	ProfileResourceStateCreating ProfileResourceState = "Creating"
	// ProfileResourceStateDeleting specifies the profile resource state
	// deleting state for profile resource state.
	ProfileResourceStateDeleting ProfileResourceState = "Deleting"
	// ProfileResourceStateDisabled specifies the profile resource state
	// disabled state for profile resource state.
	ProfileResourceStateDisabled ProfileResourceState = "Disabled"
)

type ProfileUpdateParameters

type ProfileUpdateParameters struct {
	Tags *map[string]*string `json:"tags,omitempty"`
}

ProfileUpdateParameters is properties required to update a profile.

type ProfilesClient

type ProfilesClient struct {
	ManagementClient
}

ProfilesClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.

func NewProfilesClient

func NewProfilesClient(subscriptionID string) ProfilesClient

NewProfilesClient creates an instance of the ProfilesClient client.

func NewProfilesClientWithBaseURI

func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient

NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.

func (ProfilesClient) Create

func (client ProfilesClient) Create(resourceGroupName string, profileName string, profile Profile, cancel <-chan struct{}) (<-chan Profile, <-chan error)

Create creates a new CDN profile with a profile name under the specified subscription and resource group. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. profile is profile properties needed to create a new profile.

func (ProfilesClient) CreatePreparer

func (client ProfilesClient) CreatePreparer(resourceGroupName string, profileName string, profile Profile, cancel <-chan struct{}) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ProfilesClient) CreateResponder

func (client ProfilesClient) CreateResponder(resp *http.Response) (result Profile, err error)

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

func (ProfilesClient) CreateSender

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

func (client ProfilesClient) Delete(resourceGroupName string, profileName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes an existing CDN profile with the specified parameters. Deleting a profile will result in the deletion of all of the sub-resources including endpoints, origins and custom domains. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group.

func (ProfilesClient) DeletePreparer

func (client ProfilesClient) DeletePreparer(resourceGroupName string, profileName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ProfilesClient) DeleteResponder

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

func (client ProfilesClient) 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 (ProfilesClient) GenerateSsoURI

func (client ProfilesClient) GenerateSsoURI(resourceGroupName string, profileName string) (result SsoURI, err error)

GenerateSsoURI generates a dynamic SSO URI used to sign in to the CDN supplemental portal. Supplemnetal portal is used to configure advanced feature capabilities that are not yet available in the Azure portal, such as core reports in a standard profile; rules engine, advanced HTTP reports, and real-time stats and alerts in a premium profile. The SSO URI changes approximately every 10 minutes.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group.

func (ProfilesClient) GenerateSsoURIPreparer

func (client ProfilesClient) GenerateSsoURIPreparer(resourceGroupName string, profileName string) (*http.Request, error)

GenerateSsoURIPreparer prepares the GenerateSsoURI request.

func (ProfilesClient) GenerateSsoURIResponder

func (client ProfilesClient) GenerateSsoURIResponder(resp *http.Response) (result SsoURI, err error)

GenerateSsoURIResponder handles the response to the GenerateSsoURI request. The method always closes the http.Response Body.

func (ProfilesClient) GenerateSsoURISender

func (client ProfilesClient) GenerateSsoURISender(req *http.Request) (*http.Response, error)

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

func (ProfilesClient) Get

func (client ProfilesClient) Get(resourceGroupName string, profileName string) (result Profile, err error)

Get gets a CDN profile with the specified profile name under the specified subscription and resource group.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group.

func (ProfilesClient) GetPreparer

func (client ProfilesClient) GetPreparer(resourceGroupName string, profileName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProfilesClient) GetResponder

func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error)

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

func (ProfilesClient) GetSender

func (client ProfilesClient) 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 (ProfilesClient) List

func (client ProfilesClient) List() (result ProfileListResult, err error)

List lists all of the CDN profiles within an Azure subscription.

func (ProfilesClient) ListByResourceGroup

func (client ProfilesClient) ListByResourceGroup(resourceGroupName string) (result ProfileListResult, err error)

ListByResourceGroup lists all of the CDN profiles within a resource group.

resourceGroupName is name of the Resource group within the Azure subscription.

func (ProfilesClient) ListByResourceGroupNextResults

func (client ProfilesClient) ListByResourceGroupNextResults(lastResults ProfileListResult) (result ProfileListResult, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (ProfilesClient) ListByResourceGroupPreparer

func (client ProfilesClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ProfilesClient) ListByResourceGroupResponder

func (client ProfilesClient) ListByResourceGroupResponder(resp *http.Response) (result ProfileListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ProfilesClient) ListByResourceGroupSender

func (client ProfilesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (ProfilesClient) ListNextResults

func (client ProfilesClient) ListNextResults(lastResults ProfileListResult) (result ProfileListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (ProfilesClient) ListPreparer

func (client ProfilesClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (ProfilesClient) ListResourceUsage

func (client ProfilesClient) ListResourceUsage(resourceGroupName string, profileName string) (result ResourceUsageListResult, err error)

ListResourceUsage checks the quota and actual usage of endpoints under the given CDN profile.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group.

func (ProfilesClient) ListResourceUsageNextResults

func (client ProfilesClient) ListResourceUsageNextResults(lastResults ResourceUsageListResult) (result ResourceUsageListResult, err error)

ListResourceUsageNextResults retrieves the next set of results, if any.

func (ProfilesClient) ListResourceUsagePreparer

func (client ProfilesClient) ListResourceUsagePreparer(resourceGroupName string, profileName string) (*http.Request, error)

ListResourceUsagePreparer prepares the ListResourceUsage request.

func (ProfilesClient) ListResourceUsageResponder

func (client ProfilesClient) ListResourceUsageResponder(resp *http.Response) (result ResourceUsageListResult, err error)

ListResourceUsageResponder handles the response to the ListResourceUsage request. The method always closes the http.Response Body.

func (ProfilesClient) ListResourceUsageSender

func (client ProfilesClient) ListResourceUsageSender(req *http.Request) (*http.Response, error)

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

func (ProfilesClient) ListResponder

func (client ProfilesClient) ListResponder(resp *http.Response) (result ProfileListResult, err error)

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

func (ProfilesClient) ListSender

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

func (ProfilesClient) Update

func (client ProfilesClient) Update(resourceGroupName string, profileName string, profileUpdateParameters ProfileUpdateParameters, cancel <-chan struct{}) (<-chan Profile, <-chan error)

Update updates an existing CDN profile with the specified profile name under the specified subscription and resource group. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is name of the Resource group within the Azure subscription. profileName is name of the CDN profile which is unique within the resource group. profileUpdateParameters is profile properties needed to update an existing profile.

func (ProfilesClient) UpdatePreparer

func (client ProfilesClient) UpdatePreparer(resourceGroupName string, profileName string, profileUpdateParameters ProfileUpdateParameters, cancel <-chan struct{}) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ProfilesClient) UpdateResponder

func (client ProfilesClient) UpdateResponder(resp *http.Response) (result Profile, err error)

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

func (ProfilesClient) UpdateSender

func (client ProfilesClient) 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 PurgeParameters

type PurgeParameters struct {
	ContentPaths *[]string `json:"contentPaths,omitempty"`
}

PurgeParameters is parameters required for content purge.

type QueryStringCachingBehavior

type QueryStringCachingBehavior string

QueryStringCachingBehavior enumerates the values for query string caching behavior.

const (
	// BypassCaching specifies the bypass caching state for query string
	// caching behavior.
	BypassCaching QueryStringCachingBehavior = "BypassCaching"
	// IgnoreQueryString specifies the ignore query string state for query
	// string caching behavior.
	IgnoreQueryString QueryStringCachingBehavior = "IgnoreQueryString"
	// NotSet specifies the not set state for query string caching behavior.
	NotSet QueryStringCachingBehavior = "NotSet"
	// UseQueryString specifies the use query string state for query string
	// caching behavior.
	UseQueryString QueryStringCachingBehavior = "UseQueryString"
)

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is the Resource definition.

type ResourceType

type ResourceType string

ResourceType enumerates the values for resource type.

const (
	// MicrosoftCdnProfilesEndpoints specifies the microsoft cdn profiles
	// endpoints state for resource type.
	MicrosoftCdnProfilesEndpoints ResourceType = "Microsoft.Cdn/Profiles/Endpoints"
)

type ResourceUsage

type ResourceUsage struct {
	ResourceType *string `json:"resourceType,omitempty"`
	Unit         *string `json:"unit,omitempty"`
	CurrentValue *int32  `json:"currentValue,omitempty"`
	Limit        *int32  `json:"limit,omitempty"`
}

ResourceUsage is output of check resource usage API.

type ResourceUsageListResult

type ResourceUsageListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ResourceUsage `json:"value,omitempty"`
	NextLink          *string          `json:"nextLink,omitempty"`
}

ResourceUsageListResult is output of check resource usage API.

func (ResourceUsageListResult) ResourceUsageListResultPreparer

func (client ResourceUsageListResult) ResourceUsageListResultPreparer() (*http.Request, error)

ResourceUsageListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type Sku

type Sku struct {
	Name SkuName `json:"name,omitempty"`
}

Sku is the pricing tier (defines a CDN provider, feature list and rate) of the CDN profile.

type SkuName

type SkuName string

SkuName enumerates the values for sku name.

const (
	// CustomVerizon specifies the custom verizon state for sku name.
	CustomVerizon SkuName = "Custom_Verizon"
	// PremiumVerizon specifies the premium verizon state for sku name.
	PremiumVerizon SkuName = "Premium_Verizon"
	// StandardAkamai specifies the standard akamai state for sku name.
	StandardAkamai SkuName = "Standard_Akamai"
	// StandardChinaCdn specifies the standard china cdn state for sku name.
	StandardChinaCdn SkuName = "Standard_ChinaCdn"
	// StandardVerizon specifies the standard verizon state for sku name.
	StandardVerizon SkuName = "Standard_Verizon"
)

type SsoURI

type SsoURI struct {
	autorest.Response `json:"-"`
	SsoURIValue       *string `json:"ssoUriValue,omitempty"`
}

SsoURI is sSO URI required to login to the supplemental portal.

type ValidateCustomDomainInput

type ValidateCustomDomainInput struct {
	HostName *string `json:"hostName,omitempty"`
}

ValidateCustomDomainInput is input of the custom domain to be validated for DNS mapping.

type ValidateCustomDomainOutput

type ValidateCustomDomainOutput struct {
	autorest.Response     `json:"-"`
	CustomDomainValidated *bool   `json:"customDomainValidated,omitempty"`
	Reason                *string `json:"reason,omitempty"`
	Message               *string `json:"message,omitempty"`
}

ValidateCustomDomainOutput is output of custom domain validation.

Jump to

Keyboard shortcuts

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