azuresdkhacks

package
v1.44.1-0...-2cd6497 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AFDOriginGroupUpdateParameters

type AFDOriginGroupUpdateParameters struct {
	*AFDOriginGroupUpdatePropertiesParameters `json:"properties,omitempty"`
}

OriginGroupUpdateParameters origin group properties needed for origin group creation or update.

func (AFDOriginGroupUpdateParameters) MarshalJSON

func (ogup AFDOriginGroupUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OriginGroupUpdateParameters.

func (*AFDOriginGroupUpdateParameters) UnmarshalJSON

func (ogup *AFDOriginGroupUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AFDOriginGroupUpdateParameters struct.

type AFDOriginGroupUpdatePropertiesParameters

type AFDOriginGroupUpdatePropertiesParameters struct {
	// ProfileName - READ-ONLY; The name of the profile which holds the origin group.
	ProfileName *string `json:"profileName,omitempty"`
	// LoadBalancingSettings - Load balancing settings for a backend pool
	LoadBalancingSettings *cdn.LoadBalancingSettingsParameters `json:"loadBalancingSettings,omitempty"`
	// HealthProbeSettings - Health probe settings to the origin that is used to determine the health of the origin.
	HealthProbeSettings *cdn.HealthProbeParameters `json:"healthProbeSettings,omitempty"`
	// TrafficRestorationTimeToHealedOrNewEndpointsInMinutes - Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.
	TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"`
	// SessionAffinityState - Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled'
	SessionAffinityState cdn.EnabledState `json:"sessionAffinityState,omitempty"`
}

AFDOriginGroupUpdatePropertiesParameters the JSON object that contains the properties of the origin group.

func (AFDOriginGroupUpdatePropertiesParameters) MarshalJSON

func (ogupp AFDOriginGroupUpdatePropertiesParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AFDOriginGroupUpdatePropertiesParameters.

type AFDOriginUpdateParameters

type AFDOriginUpdateParameters struct {
	*AFDOriginUpdatePropertiesParameters `json:"properties,omitempty"`
}

AFDOriginUpdateParameters afdOrigin properties needed for origin update.

func (AFDOriginUpdateParameters) MarshalJSON

func (aoup AFDOriginUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AFDOriginUpdateParameters.

func (*AFDOriginUpdateParameters) UnmarshalJSON

func (aoup *AFDOriginUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AFDOriginUpdateParameters struct.

type AFDOriginUpdatePropertiesParameters

type AFDOriginUpdatePropertiesParameters struct {
	// OriginGroupName - READ-ONLY; The name of the origin group which contains this origin.
	OriginGroupName *string `json:"originGroupName,omitempty"`
	// AzureOrigin - Resource reference to the Azure origin resource.
	AzureOrigin *cdn.ResourceReference `json:"azureOrigin,omitempty"`
	// HostName - The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.
	HostName *string `json:"hostName,omitempty"`
	// HTTPPort - The value of the HTTP port. Must be between 1 and 65535.
	HTTPPort *int32 `json:"httpPort,omitempty"`
	// HTTPSPort - The value of the HTTPS port. Must be between 1 and 65535.
	HTTPSPort *int32 `json:"httpsPort,omitempty"`
	// OriginHostHeader - The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint
	OriginHostHeader *string `json:"originHostHeader,omitempty"`
	// Priority - Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5
	Priority *int32 `json:"priority,omitempty"`
	// Weight - Weight of the origin in given origin group for load balancing. Must be between 1 and 1000
	Weight *int32 `json:"weight,omitempty"`
	// SharedPrivateLinkResource - The properties of the private link resource for private origin.
	SharedPrivateLinkResource *cdn.SharedPrivateLinkResourceProperties `json:"sharedPrivateLinkResource,omitempty"`
	// EnabledState - Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled'
	EnabledState cdn.EnabledState `json:"enabledState,omitempty"`
	// EnforceCertificateNameCheck - Whether to enable certificate name check at origin level
	EnforceCertificateNameCheck *bool `json:"enforceCertificateNameCheck,omitempty"`
}

AFDOriginUpdatePropertiesParameters the JSON object that contains the properties of the origin.

func (AFDOriginUpdatePropertiesParameters) MarshalJSON

func (aoupp AFDOriginUpdatePropertiesParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AFDOriginUpdatePropertiesParameters.

type CdnFrontDoorOriginGroupsWorkaroundClient

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

func (*CdnFrontDoorOriginGroupsWorkaroundClient) Update

func (c *CdnFrontDoorOriginGroupsWorkaroundClient) Update(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, afdOriginGroupUpdateProperties AFDOriginGroupUpdateParameters) (result cdn.AFDOriginGroupsUpdateFuture, err error)

func (CdnFrontDoorOriginGroupsWorkaroundClient) UpdatePreparer

func (client CdnFrontDoorOriginGroupsWorkaroundClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, afdOriginGroupUpdateProperties AFDOriginGroupUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

type CdnFrontDoorOriginWorkaroundClient

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

func NewCdnFrontDoorOriginsWorkaroundClient

func NewCdnFrontDoorOriginsWorkaroundClient(client *cdn.AFDOriginsClient) CdnFrontDoorOriginWorkaroundClient

func (*CdnFrontDoorOriginWorkaroundClient) Update

func (c *CdnFrontDoorOriginWorkaroundClient) Update(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string, originUpdateProperties AFDOriginUpdateParameters) (result cdn.AFDOriginsUpdateFuture, err error)

func (CdnFrontDoorOriginWorkaroundClient) UpdatePreparer

func (client CdnFrontDoorOriginWorkaroundClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, originGroupName string, originName string, originUpdateProperties AFDOriginUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

type CdnFrontDoorRoutesWorkaroundClient

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

NOTE: this workaround client exists to allow the removal of 'cacheConfiguration' items during update

func NewCdnFrontDoorRoutesWorkaroundClient

func NewCdnFrontDoorRoutesWorkaroundClient(client *cdn.RoutesClient) CdnFrontDoorRoutesWorkaroundClient

func (*CdnFrontDoorRoutesWorkaroundClient) Update

func (c *CdnFrontDoorRoutesWorkaroundClient) Update(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string, routeUpdateProperties RouteUpdateParameters) (result cdn.RoutesUpdateFuture, err error)

func (CdnFrontDoorRoutesWorkaroundClient) UpdatePreparer

func (client CdnFrontDoorRoutesWorkaroundClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, routeName string, routeUpdateProperties RouteUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

type RouteUpdateParameters

type RouteUpdateParameters struct {
	*RouteUpdatePropertiesParameters `json:"properties,omitempty"`
}

RouteUpdateParameters the domain JSON object required for domain creation or update.

func (RouteUpdateParameters) MarshalJSON

func (rup RouteUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RouteUpdateParameters.

func (*RouteUpdateParameters) UnmarshalJSON

func (rup *RouteUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RouteUpdateParameters struct.

type RouteUpdatePropertiesParameters

type RouteUpdatePropertiesParameters struct {
	// EndpointName - READ-ONLY; The name of the endpoint which holds the route.
	EndpointName *string `json:"endpointName,omitempty"`
	// CustomDomains - Domains referenced by this endpoint.
	CustomDomains *[]cdn.ActivatedResourceReference `json:"customDomains,omitempty"`
	// OriginGroup - A reference to the origin group.
	OriginGroup *cdn.ResourceReference `json:"originGroup,omitempty"`
	// OriginPath - A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
	OriginPath *string `json:"originPath,omitempty"`
	// RuleSets - rule sets referenced by this endpoint.
	RuleSets *[]cdn.ResourceReference `json:"ruleSets,omitempty"`
	// SupportedProtocols - List of supported protocols for this route.
	SupportedProtocols *[]cdn.AFDEndpointProtocols `json:"supportedProtocols,omitempty"`
	// PatternsToMatch - The route patterns of the rule.
	PatternsToMatch *[]string `json:"patternsToMatch,omitempty"`
	// CacheConfiguration - The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object.
	CacheConfiguration *cdn.AfdRouteCacheConfiguration `json:"cacheConfiguration,omitempty"`
	// ForwardingProtocol - Protocol this rule will use when forwarding traffic to backends. Possible values include: 'ForwardingProtocolHTTPOnly', 'ForwardingProtocolHTTPSOnly', 'ForwardingProtocolMatchRequest'
	ForwardingProtocol cdn.ForwardingProtocol `json:"forwardingProtocol,omitempty"`
	// LinkToDefaultDomain - whether this route will be linked to the default endpoint domain. Possible values include: 'LinkToDefaultDomainEnabled', 'LinkToDefaultDomainDisabled'
	LinkToDefaultDomain cdn.LinkToDefaultDomain `json:"linkToDefaultDomain,omitempty"`
	// HTTPSRedirect - Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Possible values include: 'HTTPSRedirectEnabled', 'HTTPSRedirectDisabled'
	HTTPSRedirect cdn.HTTPSRedirect `json:"httpsRedirect,omitempty"`
	// EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled'
	EnabledState cdn.EnabledState `json:"enabledState,omitempty"`
}

RouteUpdatePropertiesParameters the JSON object that contains the properties of the domain to create.

func (RouteUpdatePropertiesParameters) MarshalJSON

func (rupp RouteUpdatePropertiesParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RouteUpdatePropertiesParameters.

Jump to

Keyboard shortcuts

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