cdn

package
v11.3.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cdn implements the Azure ARM Cdn service API version 2016-04-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. For more information, see https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.

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 CustomDomain

type CustomDomain struct {
	autorest.Response       `json:"-"`
	ID                      *string `json:"id,omitempty"`
	Name                    *string `json:"name,omitempty"`
	Type                    *string `json:"type,omitempty"`
	*CustomDomainProperties `json:"properties,omitempty"`
}

CustomDomain is CDN CustomDomain represents a mapping between a user specified domain name and a CDN endpoint. This is to use custom domain names to represent the URLs for branding purposes.

type CustomDomainListResult

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

CustomDomainListResult is

type CustomDomainParameters

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

CustomDomainParameters is customDomain properties required for custom domain creation or update.

type CustomDomainProperties

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

CustomDomainProperties is

type CustomDomainPropertiesParameters

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

CustomDomainPropertiesParameters is

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. For more information, see https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.

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(customDomainName string, customDomainProperties CustomDomainParameters, endpointName string, profileName string, resourceGroupName string, cancel <-chan struct{}) (<-chan CustomDomain, <-chan error)

Create sends the create request. 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.

customDomainName is name of the custom domain within an endpoint. customDomainProperties is custom domain properties required for creation. endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (CustomDomainsClient) CreatePreparer

func (client CustomDomainsClient) CreatePreparer(customDomainName string, customDomainProperties CustomDomainParameters, endpointName string, profileName string, resourceGroupName string, 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) DeleteIfExists

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

DeleteIfExists sends the delete if exists request. 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.

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

func (CustomDomainsClient) DeleteIfExistsPreparer

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

DeleteIfExistsPreparer prepares the DeleteIfExists request.

func (CustomDomainsClient) DeleteIfExistsResponder

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

DeleteIfExistsResponder handles the response to the DeleteIfExists request. The method always closes the http.Response Body.

func (CustomDomainsClient) DeleteIfExistsSender

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

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

func (CustomDomainsClient) Get

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

Get sends the get request.

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

func (CustomDomainsClient) GetPreparer

func (client CustomDomainsClient) GetPreparer(customDomainName string, endpointName string, profileName string, resourceGroupName 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(endpointName string, profileName string, resourceGroupName string) (result CustomDomainListResult, err error)

ListByEndpoint sends the list by endpoint request.

endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (CustomDomainsClient) ListByEndpointPreparer

func (client CustomDomainsClient) ListByEndpointPreparer(endpointName string, profileName string, resourceGroupName 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.

func (CustomDomainsClient) Update

func (client CustomDomainsClient) Update(customDomainName string, customDomainProperties CustomDomainParameters, endpointName string, profileName string, resourceGroupName string) (result ErrorResponse, err error)

Update sends the update request.

customDomainName is name of the custom domain within an endpoint. customDomainProperties is custom domain properties to update. endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (CustomDomainsClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (CustomDomainsClient) UpdateResponder

func (client CustomDomainsClient) UpdateResponder(resp *http.Response) (result ErrorResponse, err error)

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

func (CustomDomainsClient) UpdateSender

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

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

DeepCreatedOrigin is deep created origins within 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 deep created origin on a CDN endpoint.

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 regarding caching behaviors and origins. The CDN endpoint is exposed using the URL format <endpointname>.azureedge.net by default, but custom domains can also be created.

type EndpointCreateParameters

type EndpointCreateParameters struct {
	Location                            *string             `json:"location,omitempty"`
	Tags                                *map[string]*string `json:"tags,omitempty"`
	*EndpointPropertiesCreateParameters `json:"properties,omitempty"`
}

EndpointCreateParameters is endpoint properties required for new endpoint creation.

type EndpointListResult

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

EndpointListResult is

type EndpointProperties

type EndpointProperties struct {
	HostName                   *string                    `json:"hostName,omitempty"`
	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"`
	Origins                    *[]DeepCreatedOrigin       `json:"origins,omitempty"`
	ResourceState              EndpointResourceState      `json:"resourceState,omitempty"`
	ProvisioningState          ProvisioningState          `json:"provisioningState,omitempty"`
}

EndpointProperties is

type EndpointPropertiesCreateParameters

type EndpointPropertiesCreateParameters 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"`
	Origins                    *[]DeepCreatedOrigin       `json:"origins,omitempty"`
}

EndpointPropertiesCreateParameters is

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"`
}

EndpointPropertiesUpdateParameters is

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 endpoint properties required for new endpoint creation.

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. For more information, see https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.

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(endpointName string, endpointProperties EndpointCreateParameters, profileName string, resourceGroupName string, cancel <-chan struct{}) (<-chan Endpoint, <-chan error)

Create sends the create request. 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.

endpointName is name of the endpoint within the CDN profile. endpointProperties is endpoint properties profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (EndpointsClient) CreatePreparer

func (client EndpointsClient) CreatePreparer(endpointName string, endpointProperties EndpointCreateParameters, profileName string, resourceGroupName string, 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) DeleteIfExists

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

DeleteIfExists sends the delete if exists request. 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.

endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (EndpointsClient) DeleteIfExistsPreparer

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

DeleteIfExistsPreparer prepares the DeleteIfExists request.

func (EndpointsClient) DeleteIfExistsResponder

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

DeleteIfExistsResponder handles the response to the DeleteIfExists request. The method always closes the http.Response Body.

func (EndpointsClient) DeleteIfExistsSender

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

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

func (EndpointsClient) Get

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

Get sends the get request.

endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (EndpointsClient) GetPreparer

func (client EndpointsClient) GetPreparer(endpointName string, profileName string, resourceGroupName 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(profileName string, resourceGroupName string) (result EndpointListResult, err error)

ListByProfile sends the list by profile request.

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

func (EndpointsClient) ListByProfilePreparer

func (client EndpointsClient) ListByProfilePreparer(profileName string, resourceGroupName 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) LoadContent

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

LoadContent sends the load content request. 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.

endpointName is name of the endpoint within the CDN profile. contentFilePaths is the path to the content to be loaded. Path should describe a file. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (EndpointsClient) LoadContentPreparer

func (client EndpointsClient) LoadContentPreparer(endpointName string, contentFilePaths LoadParameters, profileName string, resourceGroupName string, 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(endpointName string, contentFilePaths PurgeParameters, profileName string, resourceGroupName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

PurgeContent sends the purge content request. 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.

endpointName is name of the endpoint within the CDN profile. contentFilePaths is the path to the content to be purged. Path can describe a file or directory. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (EndpointsClient) PurgeContentPreparer

func (client EndpointsClient) PurgeContentPreparer(endpointName string, contentFilePaths PurgeParameters, profileName string, resourceGroupName string, 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(endpointName string, profileName string, resourceGroupName string, cancel <-chan struct{}) (<-chan Endpoint, <-chan error)

Start sends the start request. 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.

endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (EndpointsClient) StartPreparer

func (client EndpointsClient) StartPreparer(endpointName string, profileName string, resourceGroupName 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(endpointName string, profileName string, resourceGroupName string, cancel <-chan struct{}) (<-chan Endpoint, <-chan error)

Stop sends the stop request. 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.

endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (EndpointsClient) StopPreparer

func (client EndpointsClient) StopPreparer(endpointName string, profileName string, resourceGroupName 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(endpointName string, endpointProperties EndpointUpdateParameters, profileName string, resourceGroupName string, cancel <-chan struct{}) (<-chan Endpoint, <-chan error)

Update sends the update request. 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.

endpointName is name of the endpoint within the CDN profile. endpointProperties is endpoint properties profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (EndpointsClient) UpdatePreparer

func (client EndpointsClient) UpdatePreparer(endpointName string, endpointProperties EndpointUpdateParameters, profileName string, resourceGroupName string, 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(endpointName string, customDomainProperties ValidateCustomDomainInput, profileName string, resourceGroupName string) (result ValidateCustomDomainOutput, err error)

ValidateCustomDomain sends the validate custom domain request.

endpointName is name of the endpoint within the CDN profile. customDomainProperties is custom domain to validate. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (EndpointsClient) ValidateCustomDomainPreparer

func (client EndpointsClient) ValidateCustomDomainPreparer(endpointName string, customDomainProperties ValidateCustomDomainInput, profileName string, resourceGroupName string) (*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 {
	autorest.Response `json:"-"`
	Code              *string `json:"code,omitempty"`
	Message           *string `json:"message,omitempty"`
}

ErrorResponse is

type LoadParameters

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

LoadParameters is parameters required for endpoint 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.

type NameAvailabilityClient

type NameAvailabilityClient struct {
	ManagementClient
}

NameAvailabilityClient 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. For more information, see https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.

func NewNameAvailabilityClient

func NewNameAvailabilityClient(subscriptionID string) NameAvailabilityClient

NewNameAvailabilityClient creates an instance of the NameAvailabilityClient client.

func NewNameAvailabilityClientWithBaseURI

func NewNameAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) NameAvailabilityClient

NewNameAvailabilityClientWithBaseURI creates an instance of the NameAvailabilityClient client.

func (NameAvailabilityClient) CheckNameAvailability

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

CheckNameAvailability sends the check name availability request.

checkNameAvailabilityInput is input to check.

func (NameAvailabilityClient) CheckNameAvailabilityPreparer

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

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (NameAvailabilityClient) CheckNameAvailabilityResponder

func (client NameAvailabilityClient) 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 (NameAvailabilityClient) CheckNameAvailabilitySender

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

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

type OperationListResult

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

OperationListResult is

type OperationsClient

type OperationsClient struct {
	ManagementClient
}

OperationsClient 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. For more information, see https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List() (result OperationListResult, err error)

List sends the list request.

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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 Origin

type Origin struct {
	autorest.Response `json:"-"`
	ID                *string `json:"id,omitempty"`
	Name              *string `json:"name,omitempty"`
	Type              *string `json:"type,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"`
}

OriginListResult is

type OriginParameters

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

OriginParameters is origin properties needed for origin creation or update.

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 ProvisioningState   `json:"provisioningState,omitempty"`
}

OriginProperties is

type OriginPropertiesParameters

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

OriginPropertiesParameters is

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 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. For more information, see https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.

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) Create

func (client OriginsClient) Create(originName string, originProperties OriginParameters, endpointName string, profileName string, resourceGroupName string, cancel <-chan struct{}) (<-chan Origin, <-chan error)

Create sends the create request. 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.

originName is name of the origin, an arbitrary value but it needs to be unique under endpoint originProperties is origin properties endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (OriginsClient) CreatePreparer

func (client OriginsClient) CreatePreparer(originName string, originProperties OriginParameters, endpointName string, profileName string, resourceGroupName string, cancel <-chan struct{}) (*http.Request, error)

CreatePreparer prepares the Create request.

func (OriginsClient) CreateResponder

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

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

func (OriginsClient) CreateSender

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

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

DeleteIfExists sends the delete if exists request. 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.

originName is name of the origin. Must be unique within endpoint. endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (OriginsClient) DeleteIfExistsPreparer

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

DeleteIfExistsPreparer prepares the DeleteIfExists request.

func (OriginsClient) DeleteIfExistsResponder

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

DeleteIfExistsResponder handles the response to the DeleteIfExists request. The method always closes the http.Response Body.

func (OriginsClient) DeleteIfExistsSender

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

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

func (OriginsClient) Get

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

Get sends the get request.

originName is name of the origin, an arbitrary value but it needs to be unique under endpoint endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (OriginsClient) GetPreparer

func (client OriginsClient) GetPreparer(originName string, endpointName string, profileName string, resourceGroupName 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(endpointName string, profileName string, resourceGroupName string) (result OriginListResult, err error)

ListByEndpoint sends the list by endpoint request.

endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (OriginsClient) ListByEndpointPreparer

func (client OriginsClient) ListByEndpointPreparer(endpointName string, profileName string, resourceGroupName 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(originName string, originProperties OriginParameters, endpointName string, profileName string, resourceGroupName string, cancel <-chan struct{}) (<-chan Origin, <-chan error)

Update sends the update request. 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.

originName is name of the origin. Must be unique within endpoint. originProperties is origin properties endpointName is name of the endpoint within the CDN profile. profileName is name of the CDN profile within the resource group. resourceGroupName is name of the resource group within the Azure subscription.

func (OriginsClient) UpdatePreparer

func (client OriginsClient) UpdatePreparer(originName string, originProperties OriginParameters, endpointName string, profileName string, resourceGroupName string, 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 ProfileCreateParameters

type ProfileCreateParameters struct {
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
	Sku      *Sku                `json:"sku,omitempty"`
}

ProfileCreateParameters is profile properties required for profile creation.

type ProfileListResult

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

ProfileListResult is

type ProfileProperties

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

ProfileProperties is

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 profile properties required for profile update.

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. For more information, see https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.

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(profileName string, profileProperties ProfileCreateParameters, resourceGroupName string, cancel <-chan struct{}) (<-chan Profile, <-chan error)

Create sends the create request. 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.

profileName is name of the CDN profile within the resource group. profileProperties is profile properties needed for creation. resourceGroupName is name of the resource group within the Azure subscription.

func (ProfilesClient) CreatePreparer

func (client ProfilesClient) CreatePreparer(profileName string, profileProperties ProfileCreateParameters, resourceGroupName string, 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) DeleteIfExists

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

DeleteIfExists sends the delete if exists request. 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.

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

func (ProfilesClient) DeleteIfExistsPreparer

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

DeleteIfExistsPreparer prepares the DeleteIfExists request.

func (ProfilesClient) DeleteIfExistsResponder

func (client ProfilesClient) DeleteIfExistsResponder(resp *http.Response) (result autorest.Response, err error)

DeleteIfExistsResponder handles the response to the DeleteIfExists request. The method always closes the http.Response Body.

func (ProfilesClient) DeleteIfExistsSender

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

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

func (ProfilesClient) GenerateSsoURI

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

GenerateSsoURI sends the generate sso uri request.

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

func (ProfilesClient) GenerateSsoURIPreparer

func (client ProfilesClient) GenerateSsoURIPreparer(profileName string, resourceGroupName 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(profileName string, resourceGroupName string) (result Profile, err error)

Get sends the get request.

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

func (ProfilesClient) GetPreparer

func (client ProfilesClient) GetPreparer(profileName string, resourceGroupName 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) ListByResourceGroup

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

ListByResourceGroup sends the list by resource group request.

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

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) ListBySubscriptionID

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

ListBySubscriptionID sends the list by subscription id request.

func (ProfilesClient) ListBySubscriptionIDPreparer

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

ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.

func (ProfilesClient) ListBySubscriptionIDResponder

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

ListBySubscriptionIDResponder handles the response to the ListBySubscriptionID request. The method always closes the http.Response Body.

func (ProfilesClient) ListBySubscriptionIDSender

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

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

func (ProfilesClient) Update

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

Update sends the update request. 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.

profileName is name of the CDN profile within the resource group. profileProperties is profile properties needed for update. resourceGroupName is name of the resource group within the Azure subscription.

func (ProfilesClient) UpdatePreparer

func (client ProfilesClient) UpdatePreparer(profileName string, profileProperties ProfileUpdateParameters, resourceGroupName string, 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 ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// ProvisioningStateCreating specifies the provisioning state creating state for provisioning state.
	ProvisioningStateCreating ProvisioningState = "Creating"
	// ProvisioningStateFailed specifies the provisioning state failed state for provisioning state.
	ProvisioningStateFailed ProvisioningState = "Failed"
	// ProvisioningStateSucceeded specifies the provisioning state succeeded state for provisioning state.
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

type PurgeParameters

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

PurgeParameters is parameters required for endpoint 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"`
}

Resource is

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 Sku

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

Sku is the SKU (pricing tier) 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"
	// 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 third party web portal.

type TrackedResource

type TrackedResource 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"`
}

TrackedResource is ARM tracked resource

type ValidateCustomDomainInput

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

ValidateCustomDomainInput is input of the custom domain to be validated.

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