openapi_M1_ContentHostingProvisioning

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

README

Go API client for openapi_M1_ContentHostingProvisioning

5GMS AF M1 Content Hosting Provisioning API © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 2.1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi_M1_ContentHostingProvisioning "github.com/GIT_USER_ID/GIT_REPO_ID/openapi_M1_ContentHostingProvisioning"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi_M1_ContentHostingProvisioning.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi_M1_ContentHostingProvisioning.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi_M1_ContentHostingProvisioning.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi_M1_ContentHostingProvisioning.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://example.com/3gpp-m1/v2

Class Method HTTP request Description
DefaultApi CreateContentHostingConfiguration Post /provisioning-sessions/{provisioningSessionId}/content-hosting-configuration Create (and optionally upload) the Content Hosting Configuration for the specified Provisioning Session
DefaultApi DestroyContentHostingConfiguration Delete /provisioning-sessions/{provisioningSessionId}/content-hosting-configuration Destroy the current Content Hosting Configuration of the specified Provisioning Session
DefaultApi PatchContentHostingConfiguration Patch /provisioning-sessions/{provisioningSessionId}/content-hosting-configuration Patch the Content Hosting Configuration for the specified Provisioning Session
DefaultApi PurgeContentHostingCache Post /provisioning-sessions/{provisioningSessionId}/content-hosting-configuration/purge Purge the content of the cache for the Content Hosting Configuration of the specified Provisioning Session
DefaultApi RetrieveContentHostingConfiguration Get /provisioning-sessions/{provisioningSessionId}/content-hosting-configuration Retrieve the Content Hosting Configuration of the specified Provisioning Session
DefaultApi UpdateContentHostingConfiguration Put /provisioning-sessions/{provisioningSessionId}/content-hosting-configuration Update the Content Hosting Configuration for the specified Provisioning Session

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	DefaultApi *DefaultApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the M1_ContentHostingProvisioning API v2.1.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiCreateContentHostingConfigurationRequest

type ApiCreateContentHostingConfigurationRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiCreateContentHostingConfigurationRequest) ContentHostingConfiguration

A JSON representation of a Content Hosting Configuration

func (ApiCreateContentHostingConfigurationRequest) Execute

type ApiDestroyContentHostingConfigurationRequest

type ApiDestroyContentHostingConfigurationRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiDestroyContentHostingConfigurationRequest) Execute

type ApiPatchContentHostingConfigurationRequest

type ApiPatchContentHostingConfigurationRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiPatchContentHostingConfigurationRequest) ContentHostingConfiguration

A JSON representation of a Content Hosting Configuration

func (ApiPatchContentHostingConfigurationRequest) Execute

type ApiPurgeContentHostingCacheRequest

type ApiPurgeContentHostingCacheRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiPurgeContentHostingCacheRequest) Execute

func (ApiPurgeContentHostingCacheRequest) Pattern

Keyword

func (ApiPurgeContentHostingCacheRequest) Value

The regular expression

type ApiRetrieveContentHostingConfigurationRequest

type ApiRetrieveContentHostingConfigurationRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveContentHostingConfigurationRequest) Execute

type ApiUpdateContentHostingConfigurationRequest

type ApiUpdateContentHostingConfigurationRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiUpdateContentHostingConfigurationRequest) ContentHostingConfiguration

A JSON representation of a Content Hosting Configuration

func (ApiUpdateContentHostingConfigurationRequest) Execute

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type CachingConfiguration

type CachingConfiguration struct {
	UrlPatternFilter  string                                 `json:"urlPatternFilter"`
	CachingDirectives *CachingConfigurationCachingDirectives `json:"cachingDirectives,omitempty"`
}

CachingConfiguration A content caching configuration.

func NewCachingConfiguration

func NewCachingConfiguration(urlPatternFilter string) *CachingConfiguration

NewCachingConfiguration instantiates a new CachingConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCachingConfigurationWithDefaults

func NewCachingConfigurationWithDefaults() *CachingConfiguration

NewCachingConfigurationWithDefaults instantiates a new CachingConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CachingConfiguration) GetCachingDirectives

GetCachingDirectives returns the CachingDirectives field value if set, zero value otherwise.

func (*CachingConfiguration) GetCachingDirectivesOk

func (o *CachingConfiguration) GetCachingDirectivesOk() (*CachingConfigurationCachingDirectives, bool)

GetCachingDirectivesOk returns a tuple with the CachingDirectives field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CachingConfiguration) GetUrlPatternFilter

func (o *CachingConfiguration) GetUrlPatternFilter() string

GetUrlPatternFilter returns the UrlPatternFilter field value

func (*CachingConfiguration) GetUrlPatternFilterOk

func (o *CachingConfiguration) GetUrlPatternFilterOk() (*string, bool)

GetUrlPatternFilterOk returns a tuple with the UrlPatternFilter field value and a boolean to check if the value has been set.

func (*CachingConfiguration) HasCachingDirectives

func (o *CachingConfiguration) HasCachingDirectives() bool

HasCachingDirectives returns a boolean if a field has been set.

func (CachingConfiguration) MarshalJSON

func (o CachingConfiguration) MarshalJSON() ([]byte, error)

func (*CachingConfiguration) SetCachingDirectives

SetCachingDirectives gets a reference to the given CachingConfigurationCachingDirectives and assigns it to the CachingDirectives field.

func (*CachingConfiguration) SetUrlPatternFilter

func (o *CachingConfiguration) SetUrlPatternFilter(v string)

SetUrlPatternFilter sets field value

func (CachingConfiguration) ToMap

func (o CachingConfiguration) ToMap() (map[string]interface{}, error)

type CachingConfigurationCachingDirectives

type CachingConfigurationCachingDirectives struct {
	StatusCodeFilters []int32 `json:"statusCodeFilters,omitempty"`
	NoCache           bool    `json:"noCache"`
	MaxAge            *int32  `json:"maxAge,omitempty"`
}

CachingConfigurationCachingDirectives struct for CachingConfigurationCachingDirectives

func NewCachingConfigurationCachingDirectives

func NewCachingConfigurationCachingDirectives(noCache bool) *CachingConfigurationCachingDirectives

NewCachingConfigurationCachingDirectives instantiates a new CachingConfigurationCachingDirectives object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCachingConfigurationCachingDirectivesWithDefaults

func NewCachingConfigurationCachingDirectivesWithDefaults() *CachingConfigurationCachingDirectives

NewCachingConfigurationCachingDirectivesWithDefaults instantiates a new CachingConfigurationCachingDirectives object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CachingConfigurationCachingDirectives) GetMaxAge

GetMaxAge returns the MaxAge field value if set, zero value otherwise.

func (*CachingConfigurationCachingDirectives) GetMaxAgeOk

func (o *CachingConfigurationCachingDirectives) GetMaxAgeOk() (*int32, bool)

GetMaxAgeOk returns a tuple with the MaxAge field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CachingConfigurationCachingDirectives) GetNoCache

GetNoCache returns the NoCache field value

func (*CachingConfigurationCachingDirectives) GetNoCacheOk

func (o *CachingConfigurationCachingDirectives) GetNoCacheOk() (*bool, bool)

GetNoCacheOk returns a tuple with the NoCache field value and a boolean to check if the value has been set.

func (*CachingConfigurationCachingDirectives) GetStatusCodeFilters

func (o *CachingConfigurationCachingDirectives) GetStatusCodeFilters() []int32

GetStatusCodeFilters returns the StatusCodeFilters field value if set, zero value otherwise.

func (*CachingConfigurationCachingDirectives) GetStatusCodeFiltersOk

func (o *CachingConfigurationCachingDirectives) GetStatusCodeFiltersOk() ([]int32, bool)

GetStatusCodeFiltersOk returns a tuple with the StatusCodeFilters field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CachingConfigurationCachingDirectives) HasMaxAge

HasMaxAge returns a boolean if a field has been set.

func (*CachingConfigurationCachingDirectives) HasStatusCodeFilters

func (o *CachingConfigurationCachingDirectives) HasStatusCodeFilters() bool

HasStatusCodeFilters returns a boolean if a field has been set.

func (CachingConfigurationCachingDirectives) MarshalJSON

func (o CachingConfigurationCachingDirectives) MarshalJSON() ([]byte, error)

func (*CachingConfigurationCachingDirectives) SetMaxAge

SetMaxAge gets a reference to the given int32 and assigns it to the MaxAge field.

func (*CachingConfigurationCachingDirectives) SetNoCache

SetNoCache sets field value

func (*CachingConfigurationCachingDirectives) SetStatusCodeFilters

func (o *CachingConfigurationCachingDirectives) SetStatusCodeFilters(v []int32)

SetStatusCodeFilters gets a reference to the given []int32 and assigns it to the StatusCodeFilters field.

func (CachingConfigurationCachingDirectives) ToMap

func (o CachingConfigurationCachingDirectives) ToMap() (map[string]interface{}, error)

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type ContentHostingConfiguration

type ContentHostingConfiguration struct {
	Name string `json:"name"`
	// Uniform Resource Locator, comforming with the URI Generic Syntax specified in IETF RFC 3986.
	EntryPointPath             *string                     `json:"entryPointPath,omitempty"`
	IngestConfiguration        IngestConfiguration         `json:"ingestConfiguration"`
	DistributionConfigurations []DistributionConfiguration `json:"distributionConfigurations"`
}

ContentHostingConfiguration A representation of a Content Hosting Configuration resource.

func NewContentHostingConfiguration

func NewContentHostingConfiguration(name string, ingestConfiguration IngestConfiguration, distributionConfigurations []DistributionConfiguration) *ContentHostingConfiguration

NewContentHostingConfiguration instantiates a new ContentHostingConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewContentHostingConfigurationWithDefaults

func NewContentHostingConfigurationWithDefaults() *ContentHostingConfiguration

NewContentHostingConfigurationWithDefaults instantiates a new ContentHostingConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ContentHostingConfiguration) GetDistributionConfigurations

func (o *ContentHostingConfiguration) GetDistributionConfigurations() []DistributionConfiguration

GetDistributionConfigurations returns the DistributionConfigurations field value

func (*ContentHostingConfiguration) GetDistributionConfigurationsOk

func (o *ContentHostingConfiguration) GetDistributionConfigurationsOk() ([]DistributionConfiguration, bool)

GetDistributionConfigurationsOk returns a tuple with the DistributionConfigurations field value and a boolean to check if the value has been set.

func (*ContentHostingConfiguration) GetEntryPointPath

func (o *ContentHostingConfiguration) GetEntryPointPath() string

GetEntryPointPath returns the EntryPointPath field value if set, zero value otherwise.

func (*ContentHostingConfiguration) GetEntryPointPathOk

func (o *ContentHostingConfiguration) GetEntryPointPathOk() (*string, bool)

GetEntryPointPathOk returns a tuple with the EntryPointPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ContentHostingConfiguration) GetIngestConfiguration

func (o *ContentHostingConfiguration) GetIngestConfiguration() IngestConfiguration

GetIngestConfiguration returns the IngestConfiguration field value

func (*ContentHostingConfiguration) GetIngestConfigurationOk

func (o *ContentHostingConfiguration) GetIngestConfigurationOk() (*IngestConfiguration, bool)

GetIngestConfigurationOk returns a tuple with the IngestConfiguration field value and a boolean to check if the value has been set.

func (*ContentHostingConfiguration) GetName

func (o *ContentHostingConfiguration) GetName() string

GetName returns the Name field value

func (*ContentHostingConfiguration) GetNameOk

func (o *ContentHostingConfiguration) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ContentHostingConfiguration) HasEntryPointPath

func (o *ContentHostingConfiguration) HasEntryPointPath() bool

HasEntryPointPath returns a boolean if a field has been set.

func (ContentHostingConfiguration) MarshalJSON

func (o ContentHostingConfiguration) MarshalJSON() ([]byte, error)

func (*ContentHostingConfiguration) SetDistributionConfigurations

func (o *ContentHostingConfiguration) SetDistributionConfigurations(v []DistributionConfiguration)

SetDistributionConfigurations sets field value

func (*ContentHostingConfiguration) SetEntryPointPath

func (o *ContentHostingConfiguration) SetEntryPointPath(v string)

SetEntryPointPath gets a reference to the given string and assigns it to the EntryPointPath field.

func (*ContentHostingConfiguration) SetIngestConfiguration

func (o *ContentHostingConfiguration) SetIngestConfiguration(v IngestConfiguration)

SetIngestConfiguration sets field value

func (*ContentHostingConfiguration) SetName

func (o *ContentHostingConfiguration) SetName(v string)

SetName sets field value

func (ContentHostingConfiguration) ToMap

func (o ContentHostingConfiguration) ToMap() (map[string]interface{}, error)

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

func (*DefaultApiService) CreateContentHostingConfiguration

func (a *DefaultApiService) CreateContentHostingConfiguration(ctx context.Context, provisioningSessionId string) ApiCreateContentHostingConfigurationRequest

CreateContentHostingConfiguration Create (and optionally upload) the Content Hosting Configuration for the specified Provisioning Session

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provisioningSessionId The resource identifier of an existing Provisioning Session.
@return ApiCreateContentHostingConfigurationRequest

func (*DefaultApiService) CreateContentHostingConfigurationExecute

func (a *DefaultApiService) CreateContentHostingConfigurationExecute(r ApiCreateContentHostingConfigurationRequest) (*http.Response, error)

Execute executes the request

func (*DefaultApiService) DestroyContentHostingConfiguration

func (a *DefaultApiService) DestroyContentHostingConfiguration(ctx context.Context, provisioningSessionId string) ApiDestroyContentHostingConfigurationRequest

DestroyContentHostingConfiguration Destroy the current Content Hosting Configuration of the specified Provisioning Session

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provisioningSessionId The resource identifier of an existing Provisioning Session.
@return ApiDestroyContentHostingConfigurationRequest

func (*DefaultApiService) DestroyContentHostingConfigurationExecute

func (a *DefaultApiService) DestroyContentHostingConfigurationExecute(r ApiDestroyContentHostingConfigurationRequest) (*http.Response, error)

Execute executes the request

func (*DefaultApiService) PatchContentHostingConfiguration

func (a *DefaultApiService) PatchContentHostingConfiguration(ctx context.Context, provisioningSessionId string) ApiPatchContentHostingConfigurationRequest

PatchContentHostingConfiguration Patch the Content Hosting Configuration for the specified Provisioning Session

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provisioningSessionId The resource identifier of an existing Provisioning Session.
@return ApiPatchContentHostingConfigurationRequest

func (*DefaultApiService) PatchContentHostingConfigurationExecute

Execute executes the request

@return ContentHostingConfiguration

func (*DefaultApiService) PurgeContentHostingCache

func (a *DefaultApiService) PurgeContentHostingCache(ctx context.Context, provisioningSessionId string) ApiPurgeContentHostingCacheRequest

PurgeContentHostingCache Purge the content of the cache for the Content Hosting Configuration of the specified Provisioning Session

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provisioningSessionId A unique identifier of the Provisioning
@return ApiPurgeContentHostingCacheRequest

func (*DefaultApiService) PurgeContentHostingCacheExecute

func (a *DefaultApiService) PurgeContentHostingCacheExecute(r ApiPurgeContentHostingCacheRequest) (*http.Response, error)

Execute executes the request

func (*DefaultApiService) RetrieveContentHostingConfiguration

func (a *DefaultApiService) RetrieveContentHostingConfiguration(ctx context.Context, provisioningSessionId string) ApiRetrieveContentHostingConfigurationRequest

RetrieveContentHostingConfiguration Retrieve the Content Hosting Configuration of the specified Provisioning Session

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provisioningSessionId The resource identifier of an existing Provisioning Session.
@return ApiRetrieveContentHostingConfigurationRequest

func (*DefaultApiService) RetrieveContentHostingConfigurationExecute

Execute executes the request

@return ContentHostingConfiguration

func (*DefaultApiService) UpdateContentHostingConfiguration

func (a *DefaultApiService) UpdateContentHostingConfiguration(ctx context.Context, provisioningSessionId string) ApiUpdateContentHostingConfigurationRequest

UpdateContentHostingConfiguration Update the Content Hosting Configuration for the specified Provisioning Session

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provisioningSessionId The resource identifier of an existing Provisioning Session.
@return ApiUpdateContentHostingConfigurationRequest

func (*DefaultApiService) UpdateContentHostingConfigurationExecute

func (a *DefaultApiService) UpdateContentHostingConfigurationExecute(r ApiUpdateContentHostingConfigurationRequest) (*http.Response, error)

Execute executes the request

type DistributionConfiguration

type DistributionConfiguration struct {
	// String chosen by the 5GMS AF to serve as an identifier in a resource URI.
	ContentPreparationTemplateId *string `json:"contentPreparationTemplateId,omitempty"`
	CanonicalDomainName          *string `json:"canonicalDomainName,omitempty"`
	DomainNameAlias              *string `json:"domainNameAlias,omitempty"`
	// Uniform Resource Locator, comforming with the URI Generic Syntax specified in IETF RFC 3986.
	BaseURL               *string                                `json:"baseURL,omitempty"`
	PathRewriteRules      []PathRewriteRule                      `json:"pathRewriteRules,omitempty"`
	CachingConfigurations []CachingConfiguration                 `json:"cachingConfigurations,omitempty"`
	GeoFencing            *DistributionConfigurationGeoFencing   `json:"geoFencing,omitempty"`
	UrlSignature          *DistributionConfigurationUrlSignature `json:"urlSignature,omitempty"`
	// String chosen by the 5GMS AF to serve as an identifier in a resource URI.
	CertificateId                     *string                                                           `json:"certificateId,omitempty"`
	SupplementaryDistributionNetworks []DistributionConfigurationSupplementaryDistributionNetworksInner `json:"supplementaryDistributionNetworks,omitempty"`
}

DistributionConfiguration A content distribution configuration.

func NewDistributionConfiguration

func NewDistributionConfiguration() *DistributionConfiguration

NewDistributionConfiguration instantiates a new DistributionConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDistributionConfigurationWithDefaults

func NewDistributionConfigurationWithDefaults() *DistributionConfiguration

NewDistributionConfigurationWithDefaults instantiates a new DistributionConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DistributionConfiguration) GetBaseURL

func (o *DistributionConfiguration) GetBaseURL() string

GetBaseURL returns the BaseURL field value if set, zero value otherwise.

func (*DistributionConfiguration) GetBaseURLOk

func (o *DistributionConfiguration) GetBaseURLOk() (*string, bool)

GetBaseURLOk returns a tuple with the BaseURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) GetCachingConfigurations

func (o *DistributionConfiguration) GetCachingConfigurations() []CachingConfiguration

GetCachingConfigurations returns the CachingConfigurations field value if set, zero value otherwise.

func (*DistributionConfiguration) GetCachingConfigurationsOk

func (o *DistributionConfiguration) GetCachingConfigurationsOk() ([]CachingConfiguration, bool)

GetCachingConfigurationsOk returns a tuple with the CachingConfigurations field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) GetCanonicalDomainName

func (o *DistributionConfiguration) GetCanonicalDomainName() string

GetCanonicalDomainName returns the CanonicalDomainName field value if set, zero value otherwise.

func (*DistributionConfiguration) GetCanonicalDomainNameOk

func (o *DistributionConfiguration) GetCanonicalDomainNameOk() (*string, bool)

GetCanonicalDomainNameOk returns a tuple with the CanonicalDomainName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) GetCertificateId

func (o *DistributionConfiguration) GetCertificateId() string

GetCertificateId returns the CertificateId field value if set, zero value otherwise.

func (*DistributionConfiguration) GetCertificateIdOk

func (o *DistributionConfiguration) GetCertificateIdOk() (*string, bool)

GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) GetContentPreparationTemplateId

func (o *DistributionConfiguration) GetContentPreparationTemplateId() string

GetContentPreparationTemplateId returns the ContentPreparationTemplateId field value if set, zero value otherwise.

func (*DistributionConfiguration) GetContentPreparationTemplateIdOk

func (o *DistributionConfiguration) GetContentPreparationTemplateIdOk() (*string, bool)

GetContentPreparationTemplateIdOk returns a tuple with the ContentPreparationTemplateId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) GetDomainNameAlias

func (o *DistributionConfiguration) GetDomainNameAlias() string

GetDomainNameAlias returns the DomainNameAlias field value if set, zero value otherwise.

func (*DistributionConfiguration) GetDomainNameAliasOk

func (o *DistributionConfiguration) GetDomainNameAliasOk() (*string, bool)

GetDomainNameAliasOk returns a tuple with the DomainNameAlias field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) GetGeoFencing

GetGeoFencing returns the GeoFencing field value if set, zero value otherwise.

func (*DistributionConfiguration) GetGeoFencingOk

GetGeoFencingOk returns a tuple with the GeoFencing field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) GetPathRewriteRules

func (o *DistributionConfiguration) GetPathRewriteRules() []PathRewriteRule

GetPathRewriteRules returns the PathRewriteRules field value if set, zero value otherwise.

func (*DistributionConfiguration) GetPathRewriteRulesOk

func (o *DistributionConfiguration) GetPathRewriteRulesOk() ([]PathRewriteRule, bool)

GetPathRewriteRulesOk returns a tuple with the PathRewriteRules field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) GetSupplementaryDistributionNetworks

GetSupplementaryDistributionNetworks returns the SupplementaryDistributionNetworks field value if set, zero value otherwise.

func (*DistributionConfiguration) GetSupplementaryDistributionNetworksOk

GetSupplementaryDistributionNetworksOk returns a tuple with the SupplementaryDistributionNetworks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) GetUrlSignature

GetUrlSignature returns the UrlSignature field value if set, zero value otherwise.

func (*DistributionConfiguration) GetUrlSignatureOk

GetUrlSignatureOk returns a tuple with the UrlSignature field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfiguration) HasBaseURL

func (o *DistributionConfiguration) HasBaseURL() bool

HasBaseURL returns a boolean if a field has been set.

func (*DistributionConfiguration) HasCachingConfigurations

func (o *DistributionConfiguration) HasCachingConfigurations() bool

HasCachingConfigurations returns a boolean if a field has been set.

func (*DistributionConfiguration) HasCanonicalDomainName

func (o *DistributionConfiguration) HasCanonicalDomainName() bool

HasCanonicalDomainName returns a boolean if a field has been set.

func (*DistributionConfiguration) HasCertificateId

func (o *DistributionConfiguration) HasCertificateId() bool

HasCertificateId returns a boolean if a field has been set.

func (*DistributionConfiguration) HasContentPreparationTemplateId

func (o *DistributionConfiguration) HasContentPreparationTemplateId() bool

HasContentPreparationTemplateId returns a boolean if a field has been set.

func (*DistributionConfiguration) HasDomainNameAlias

func (o *DistributionConfiguration) HasDomainNameAlias() bool

HasDomainNameAlias returns a boolean if a field has been set.

func (*DistributionConfiguration) HasGeoFencing

func (o *DistributionConfiguration) HasGeoFencing() bool

HasGeoFencing returns a boolean if a field has been set.

func (*DistributionConfiguration) HasPathRewriteRules

func (o *DistributionConfiguration) HasPathRewriteRules() bool

HasPathRewriteRules returns a boolean if a field has been set.

func (*DistributionConfiguration) HasSupplementaryDistributionNetworks

func (o *DistributionConfiguration) HasSupplementaryDistributionNetworks() bool

HasSupplementaryDistributionNetworks returns a boolean if a field has been set.

func (*DistributionConfiguration) HasUrlSignature

func (o *DistributionConfiguration) HasUrlSignature() bool

HasUrlSignature returns a boolean if a field has been set.

func (DistributionConfiguration) MarshalJSON

func (o DistributionConfiguration) MarshalJSON() ([]byte, error)

func (*DistributionConfiguration) SetBaseURL

func (o *DistributionConfiguration) SetBaseURL(v string)

SetBaseURL gets a reference to the given string and assigns it to the BaseURL field.

func (*DistributionConfiguration) SetCachingConfigurations

func (o *DistributionConfiguration) SetCachingConfigurations(v []CachingConfiguration)

SetCachingConfigurations gets a reference to the given []CachingConfiguration and assigns it to the CachingConfigurations field.

func (*DistributionConfiguration) SetCanonicalDomainName

func (o *DistributionConfiguration) SetCanonicalDomainName(v string)

SetCanonicalDomainName gets a reference to the given string and assigns it to the CanonicalDomainName field.

func (*DistributionConfiguration) SetCertificateId

func (o *DistributionConfiguration) SetCertificateId(v string)

SetCertificateId gets a reference to the given string and assigns it to the CertificateId field.

func (*DistributionConfiguration) SetContentPreparationTemplateId

func (o *DistributionConfiguration) SetContentPreparationTemplateId(v string)

SetContentPreparationTemplateId gets a reference to the given string and assigns it to the ContentPreparationTemplateId field.

func (*DistributionConfiguration) SetDomainNameAlias

func (o *DistributionConfiguration) SetDomainNameAlias(v string)

SetDomainNameAlias gets a reference to the given string and assigns it to the DomainNameAlias field.

func (*DistributionConfiguration) SetGeoFencing

SetGeoFencing gets a reference to the given DistributionConfigurationGeoFencing and assigns it to the GeoFencing field.

func (*DistributionConfiguration) SetPathRewriteRules

func (o *DistributionConfiguration) SetPathRewriteRules(v []PathRewriteRule)

SetPathRewriteRules gets a reference to the given []PathRewriteRule and assigns it to the PathRewriteRules field.

func (*DistributionConfiguration) SetSupplementaryDistributionNetworks

SetSupplementaryDistributionNetworks gets a reference to the given []DistributionConfigurationSupplementaryDistributionNetworksInner and assigns it to the SupplementaryDistributionNetworks field.

func (*DistributionConfiguration) SetUrlSignature

SetUrlSignature gets a reference to the given DistributionConfigurationUrlSignature and assigns it to the UrlSignature field.

func (DistributionConfiguration) ToMap

func (o DistributionConfiguration) ToMap() (map[string]interface{}, error)

type DistributionConfigurationGeoFencing

type DistributionConfigurationGeoFencing struct {
	// String providing an URI formatted according to RFC 3986.
	LocatorType string   `json:"locatorType"`
	Locators    []string `json:"locators"`
}

DistributionConfigurationGeoFencing struct for DistributionConfigurationGeoFencing

func NewDistributionConfigurationGeoFencing

func NewDistributionConfigurationGeoFencing(locatorType string, locators []string) *DistributionConfigurationGeoFencing

NewDistributionConfigurationGeoFencing instantiates a new DistributionConfigurationGeoFencing object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDistributionConfigurationGeoFencingWithDefaults

func NewDistributionConfigurationGeoFencingWithDefaults() *DistributionConfigurationGeoFencing

NewDistributionConfigurationGeoFencingWithDefaults instantiates a new DistributionConfigurationGeoFencing object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DistributionConfigurationGeoFencing) GetLocatorType

func (o *DistributionConfigurationGeoFencing) GetLocatorType() string

GetLocatorType returns the LocatorType field value

func (*DistributionConfigurationGeoFencing) GetLocatorTypeOk

func (o *DistributionConfigurationGeoFencing) GetLocatorTypeOk() (*string, bool)

GetLocatorTypeOk returns a tuple with the LocatorType field value and a boolean to check if the value has been set.

func (*DistributionConfigurationGeoFencing) GetLocators

func (o *DistributionConfigurationGeoFencing) GetLocators() []string

GetLocators returns the Locators field value

func (*DistributionConfigurationGeoFencing) GetLocatorsOk

func (o *DistributionConfigurationGeoFencing) GetLocatorsOk() ([]string, bool)

GetLocatorsOk returns a tuple with the Locators field value and a boolean to check if the value has been set.

func (DistributionConfigurationGeoFencing) MarshalJSON

func (o DistributionConfigurationGeoFencing) MarshalJSON() ([]byte, error)

func (*DistributionConfigurationGeoFencing) SetLocatorType

func (o *DistributionConfigurationGeoFencing) SetLocatorType(v string)

SetLocatorType sets field value

func (*DistributionConfigurationGeoFencing) SetLocators

func (o *DistributionConfigurationGeoFencing) SetLocators(v []string)

SetLocators sets field value

func (DistributionConfigurationGeoFencing) ToMap

func (o DistributionConfigurationGeoFencing) ToMap() (map[string]interface{}, error)

type DistributionConfigurationSupplementaryDistributionNetworksInner

type DistributionConfigurationSupplementaryDistributionNetworksInner struct {
	DistributionNetworkType DistributionNetworkType `json:"distributionNetworkType"`
	DistributionMode        DistributionMode        `json:"distributionMode"`
}

DistributionConfigurationSupplementaryDistributionNetworksInner A duple tying a type of supplementary distribution network to its distribution mode.

func NewDistributionConfigurationSupplementaryDistributionNetworksInner

func NewDistributionConfigurationSupplementaryDistributionNetworksInner(distributionNetworkType DistributionNetworkType, distributionMode DistributionMode) *DistributionConfigurationSupplementaryDistributionNetworksInner

NewDistributionConfigurationSupplementaryDistributionNetworksInner instantiates a new DistributionConfigurationSupplementaryDistributionNetworksInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDistributionConfigurationSupplementaryDistributionNetworksInnerWithDefaults

func NewDistributionConfigurationSupplementaryDistributionNetworksInnerWithDefaults() *DistributionConfigurationSupplementaryDistributionNetworksInner

NewDistributionConfigurationSupplementaryDistributionNetworksInnerWithDefaults instantiates a new DistributionConfigurationSupplementaryDistributionNetworksInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DistributionConfigurationSupplementaryDistributionNetworksInner) GetDistributionMode

GetDistributionMode returns the DistributionMode field value

func (*DistributionConfigurationSupplementaryDistributionNetworksInner) GetDistributionModeOk

GetDistributionModeOk returns a tuple with the DistributionMode field value and a boolean to check if the value has been set.

func (*DistributionConfigurationSupplementaryDistributionNetworksInner) GetDistributionNetworkType

GetDistributionNetworkType returns the DistributionNetworkType field value

func (*DistributionConfigurationSupplementaryDistributionNetworksInner) GetDistributionNetworkTypeOk

GetDistributionNetworkTypeOk returns a tuple with the DistributionNetworkType field value and a boolean to check if the value has been set.

func (DistributionConfigurationSupplementaryDistributionNetworksInner) MarshalJSON

func (*DistributionConfigurationSupplementaryDistributionNetworksInner) SetDistributionMode

SetDistributionMode sets field value

func (*DistributionConfigurationSupplementaryDistributionNetworksInner) SetDistributionNetworkType

SetDistributionNetworkType sets field value

func (DistributionConfigurationSupplementaryDistributionNetworksInner) ToMap

type DistributionConfigurationUrlSignature

type DistributionConfigurationUrlSignature struct {
	UrlPattern      string  `json:"urlPattern"`
	TokenName       string  `json:"tokenName"`
	PassphraseName  string  `json:"passphraseName"`
	Passphrase      string  `json:"passphrase"`
	TokenExpiryName string  `json:"tokenExpiryName"`
	UseIPAddress    bool    `json:"useIPAddress"`
	IpAddressName   *string `json:"ipAddressName,omitempty"`
}

DistributionConfigurationUrlSignature struct for DistributionConfigurationUrlSignature

func NewDistributionConfigurationUrlSignature

func NewDistributionConfigurationUrlSignature(urlPattern string, tokenName string, passphraseName string, passphrase string, tokenExpiryName string, useIPAddress bool) *DistributionConfigurationUrlSignature

NewDistributionConfigurationUrlSignature instantiates a new DistributionConfigurationUrlSignature object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDistributionConfigurationUrlSignatureWithDefaults

func NewDistributionConfigurationUrlSignatureWithDefaults() *DistributionConfigurationUrlSignature

NewDistributionConfigurationUrlSignatureWithDefaults instantiates a new DistributionConfigurationUrlSignature object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DistributionConfigurationUrlSignature) GetIpAddressName

func (o *DistributionConfigurationUrlSignature) GetIpAddressName() string

GetIpAddressName returns the IpAddressName field value if set, zero value otherwise.

func (*DistributionConfigurationUrlSignature) GetIpAddressNameOk

func (o *DistributionConfigurationUrlSignature) GetIpAddressNameOk() (*string, bool)

GetIpAddressNameOk returns a tuple with the IpAddressName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DistributionConfigurationUrlSignature) GetPassphrase

func (o *DistributionConfigurationUrlSignature) GetPassphrase() string

GetPassphrase returns the Passphrase field value

func (*DistributionConfigurationUrlSignature) GetPassphraseName

func (o *DistributionConfigurationUrlSignature) GetPassphraseName() string

GetPassphraseName returns the PassphraseName field value

func (*DistributionConfigurationUrlSignature) GetPassphraseNameOk

func (o *DistributionConfigurationUrlSignature) GetPassphraseNameOk() (*string, bool)

GetPassphraseNameOk returns a tuple with the PassphraseName field value and a boolean to check if the value has been set.

func (*DistributionConfigurationUrlSignature) GetPassphraseOk

func (o *DistributionConfigurationUrlSignature) GetPassphraseOk() (*string, bool)

GetPassphraseOk returns a tuple with the Passphrase field value and a boolean to check if the value has been set.

func (*DistributionConfigurationUrlSignature) GetTokenExpiryName

func (o *DistributionConfigurationUrlSignature) GetTokenExpiryName() string

GetTokenExpiryName returns the TokenExpiryName field value

func (*DistributionConfigurationUrlSignature) GetTokenExpiryNameOk

func (o *DistributionConfigurationUrlSignature) GetTokenExpiryNameOk() (*string, bool)

GetTokenExpiryNameOk returns a tuple with the TokenExpiryName field value and a boolean to check if the value has been set.

func (*DistributionConfigurationUrlSignature) GetTokenName

GetTokenName returns the TokenName field value

func (*DistributionConfigurationUrlSignature) GetTokenNameOk

func (o *DistributionConfigurationUrlSignature) GetTokenNameOk() (*string, bool)

GetTokenNameOk returns a tuple with the TokenName field value and a boolean to check if the value has been set.

func (*DistributionConfigurationUrlSignature) GetUrlPattern

func (o *DistributionConfigurationUrlSignature) GetUrlPattern() string

GetUrlPattern returns the UrlPattern field value

func (*DistributionConfigurationUrlSignature) GetUrlPatternOk

func (o *DistributionConfigurationUrlSignature) GetUrlPatternOk() (*string, bool)

GetUrlPatternOk returns a tuple with the UrlPattern field value and a boolean to check if the value has been set.

func (*DistributionConfigurationUrlSignature) GetUseIPAddress

func (o *DistributionConfigurationUrlSignature) GetUseIPAddress() bool

GetUseIPAddress returns the UseIPAddress field value

func (*DistributionConfigurationUrlSignature) GetUseIPAddressOk

func (o *DistributionConfigurationUrlSignature) GetUseIPAddressOk() (*bool, bool)

GetUseIPAddressOk returns a tuple with the UseIPAddress field value and a boolean to check if the value has been set.

func (*DistributionConfigurationUrlSignature) HasIpAddressName

func (o *DistributionConfigurationUrlSignature) HasIpAddressName() bool

HasIpAddressName returns a boolean if a field has been set.

func (DistributionConfigurationUrlSignature) MarshalJSON

func (o DistributionConfigurationUrlSignature) MarshalJSON() ([]byte, error)

func (*DistributionConfigurationUrlSignature) SetIpAddressName

func (o *DistributionConfigurationUrlSignature) SetIpAddressName(v string)

SetIpAddressName gets a reference to the given string and assigns it to the IpAddressName field.

func (*DistributionConfigurationUrlSignature) SetPassphrase

func (o *DistributionConfigurationUrlSignature) SetPassphrase(v string)

SetPassphrase sets field value

func (*DistributionConfigurationUrlSignature) SetPassphraseName

func (o *DistributionConfigurationUrlSignature) SetPassphraseName(v string)

SetPassphraseName sets field value

func (*DistributionConfigurationUrlSignature) SetTokenExpiryName

func (o *DistributionConfigurationUrlSignature) SetTokenExpiryName(v string)

SetTokenExpiryName sets field value

func (*DistributionConfigurationUrlSignature) SetTokenName

func (o *DistributionConfigurationUrlSignature) SetTokenName(v string)

SetTokenName sets field value

func (*DistributionConfigurationUrlSignature) SetUrlPattern

func (o *DistributionConfigurationUrlSignature) SetUrlPattern(v string)

SetUrlPattern sets field value

func (*DistributionConfigurationUrlSignature) SetUseIPAddress

func (o *DistributionConfigurationUrlSignature) SetUseIPAddress(v bool)

SetUseIPAddress sets field value

func (DistributionConfigurationUrlSignature) ToMap

func (o DistributionConfigurationUrlSignature) ToMap() (map[string]interface{}, error)

type DistributionMode

type DistributionMode struct {
	String *string
}

DistributionMode Mode of content distribution.

func (*DistributionMode) MarshalJSON

func (src *DistributionMode) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*DistributionMode) UnmarshalJSON

func (dst *DistributionMode) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type DistributionNetworkType

type DistributionNetworkType struct {
	String *string
}

DistributionNetworkType Type of distribution network.

func (*DistributionNetworkType) MarshalJSON

func (src *DistributionNetworkType) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*DistributionNetworkType) UnmarshalJSON

func (dst *DistributionNetworkType) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type IngestConfiguration

type IngestConfiguration struct {
	Pull *bool `json:"pull,omitempty"`
	// String providing an URI formatted according to RFC 3986.
	Protocol *string `json:"protocol,omitempty"`
	// Uniform Resource Locator, comforming with the URI Generic Syntax specified in IETF RFC 3986.
	BaseURL *string `json:"baseURL,omitempty"`
}

IngestConfiguration A configuration for content ingest.

func NewIngestConfiguration

func NewIngestConfiguration() *IngestConfiguration

NewIngestConfiguration instantiates a new IngestConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewIngestConfigurationWithDefaults

func NewIngestConfigurationWithDefaults() *IngestConfiguration

NewIngestConfigurationWithDefaults instantiates a new IngestConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*IngestConfiguration) GetBaseURL

func (o *IngestConfiguration) GetBaseURL() string

GetBaseURL returns the BaseURL field value if set, zero value otherwise.

func (*IngestConfiguration) GetBaseURLOk

func (o *IngestConfiguration) GetBaseURLOk() (*string, bool)

GetBaseURLOk returns a tuple with the BaseURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IngestConfiguration) GetProtocol

func (o *IngestConfiguration) GetProtocol() string

GetProtocol returns the Protocol field value if set, zero value otherwise.

func (*IngestConfiguration) GetProtocolOk

func (o *IngestConfiguration) GetProtocolOk() (*string, bool)

GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IngestConfiguration) GetPull

func (o *IngestConfiguration) GetPull() bool

GetPull returns the Pull field value if set, zero value otherwise.

func (*IngestConfiguration) GetPullOk

func (o *IngestConfiguration) GetPullOk() (*bool, bool)

GetPullOk returns a tuple with the Pull field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IngestConfiguration) HasBaseURL

func (o *IngestConfiguration) HasBaseURL() bool

HasBaseURL returns a boolean if a field has been set.

func (*IngestConfiguration) HasProtocol

func (o *IngestConfiguration) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

func (*IngestConfiguration) HasPull

func (o *IngestConfiguration) HasPull() bool

HasPull returns a boolean if a field has been set.

func (IngestConfiguration) MarshalJSON

func (o IngestConfiguration) MarshalJSON() ([]byte, error)

func (*IngestConfiguration) SetBaseURL

func (o *IngestConfiguration) SetBaseURL(v string)

SetBaseURL gets a reference to the given string and assigns it to the BaseURL field.

func (*IngestConfiguration) SetProtocol

func (o *IngestConfiguration) SetProtocol(v string)

SetProtocol gets a reference to the given string and assigns it to the Protocol field.

func (*IngestConfiguration) SetPull

func (o *IngestConfiguration) SetPull(v bool)

SetPull gets a reference to the given bool and assigns it to the Pull field.

func (IngestConfiguration) ToMap

func (o IngestConfiguration) ToMap() (map[string]interface{}, error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCachingConfiguration

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

func NewNullableCachingConfiguration

func NewNullableCachingConfiguration(val *CachingConfiguration) *NullableCachingConfiguration

func (NullableCachingConfiguration) Get

func (NullableCachingConfiguration) IsSet

func (NullableCachingConfiguration) MarshalJSON

func (v NullableCachingConfiguration) MarshalJSON() ([]byte, error)

func (*NullableCachingConfiguration) Set

func (*NullableCachingConfiguration) UnmarshalJSON

func (v *NullableCachingConfiguration) UnmarshalJSON(src []byte) error

func (*NullableCachingConfiguration) Unset

func (v *NullableCachingConfiguration) Unset()

type NullableCachingConfigurationCachingDirectives

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

func (NullableCachingConfigurationCachingDirectives) Get

func (NullableCachingConfigurationCachingDirectives) IsSet

func (NullableCachingConfigurationCachingDirectives) MarshalJSON

func (*NullableCachingConfigurationCachingDirectives) Set

func (*NullableCachingConfigurationCachingDirectives) UnmarshalJSON

func (*NullableCachingConfigurationCachingDirectives) Unset

type NullableContentHostingConfiguration

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

func (NullableContentHostingConfiguration) Get

func (NullableContentHostingConfiguration) IsSet

func (NullableContentHostingConfiguration) MarshalJSON

func (v NullableContentHostingConfiguration) MarshalJSON() ([]byte, error)

func (*NullableContentHostingConfiguration) Set

func (*NullableContentHostingConfiguration) UnmarshalJSON

func (v *NullableContentHostingConfiguration) UnmarshalJSON(src []byte) error

func (*NullableContentHostingConfiguration) Unset

type NullableDistributionConfiguration

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

func (NullableDistributionConfiguration) Get

func (NullableDistributionConfiguration) IsSet

func (NullableDistributionConfiguration) MarshalJSON

func (v NullableDistributionConfiguration) MarshalJSON() ([]byte, error)

func (*NullableDistributionConfiguration) Set

func (*NullableDistributionConfiguration) UnmarshalJSON

func (v *NullableDistributionConfiguration) UnmarshalJSON(src []byte) error

func (*NullableDistributionConfiguration) Unset

type NullableDistributionConfigurationGeoFencing

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

func (NullableDistributionConfigurationGeoFencing) Get

func (NullableDistributionConfigurationGeoFencing) IsSet

func (NullableDistributionConfigurationGeoFencing) MarshalJSON

func (*NullableDistributionConfigurationGeoFencing) Set

func (*NullableDistributionConfigurationGeoFencing) UnmarshalJSON

func (v *NullableDistributionConfigurationGeoFencing) UnmarshalJSON(src []byte) error

func (*NullableDistributionConfigurationGeoFencing) Unset

type NullableDistributionConfigurationSupplementaryDistributionNetworksInner

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

func (NullableDistributionConfigurationSupplementaryDistributionNetworksInner) Get

func (NullableDistributionConfigurationSupplementaryDistributionNetworksInner) IsSet

func (NullableDistributionConfigurationSupplementaryDistributionNetworksInner) MarshalJSON

func (*NullableDistributionConfigurationSupplementaryDistributionNetworksInner) Set

func (*NullableDistributionConfigurationSupplementaryDistributionNetworksInner) UnmarshalJSON

func (*NullableDistributionConfigurationSupplementaryDistributionNetworksInner) Unset

type NullableDistributionConfigurationUrlSignature

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

func (NullableDistributionConfigurationUrlSignature) Get

func (NullableDistributionConfigurationUrlSignature) IsSet

func (NullableDistributionConfigurationUrlSignature) MarshalJSON

func (*NullableDistributionConfigurationUrlSignature) Set

func (*NullableDistributionConfigurationUrlSignature) UnmarshalJSON

func (*NullableDistributionConfigurationUrlSignature) Unset

type NullableDistributionMode

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

func NewNullableDistributionMode

func NewNullableDistributionMode(val *DistributionMode) *NullableDistributionMode

func (NullableDistributionMode) Get

func (NullableDistributionMode) IsSet

func (v NullableDistributionMode) IsSet() bool

func (NullableDistributionMode) MarshalJSON

func (v NullableDistributionMode) MarshalJSON() ([]byte, error)

func (*NullableDistributionMode) Set

func (*NullableDistributionMode) UnmarshalJSON

func (v *NullableDistributionMode) UnmarshalJSON(src []byte) error

func (*NullableDistributionMode) Unset

func (v *NullableDistributionMode) Unset()

type NullableDistributionNetworkType

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

func (NullableDistributionNetworkType) Get

func (NullableDistributionNetworkType) IsSet

func (NullableDistributionNetworkType) MarshalJSON

func (v NullableDistributionNetworkType) MarshalJSON() ([]byte, error)

func (*NullableDistributionNetworkType) Set

func (*NullableDistributionNetworkType) UnmarshalJSON

func (v *NullableDistributionNetworkType) UnmarshalJSON(src []byte) error

func (*NullableDistributionNetworkType) Unset

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableIngestConfiguration

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

func NewNullableIngestConfiguration

func NewNullableIngestConfiguration(val *IngestConfiguration) *NullableIngestConfiguration

func (NullableIngestConfiguration) Get

func (NullableIngestConfiguration) IsSet

func (NullableIngestConfiguration) MarshalJSON

func (v NullableIngestConfiguration) MarshalJSON() ([]byte, error)

func (*NullableIngestConfiguration) Set

func (*NullableIngestConfiguration) UnmarshalJSON

func (v *NullableIngestConfiguration) UnmarshalJSON(src []byte) error

func (*NullableIngestConfiguration) Unset

func (v *NullableIngestConfiguration) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullablePathRewriteRule

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

func NewNullablePathRewriteRule

func NewNullablePathRewriteRule(val *PathRewriteRule) *NullablePathRewriteRule

func (NullablePathRewriteRule) Get

func (NullablePathRewriteRule) IsSet

func (v NullablePathRewriteRule) IsSet() bool

func (NullablePathRewriteRule) MarshalJSON

func (v NullablePathRewriteRule) MarshalJSON() ([]byte, error)

func (*NullablePathRewriteRule) Set

func (*NullablePathRewriteRule) UnmarshalJSON

func (v *NullablePathRewriteRule) UnmarshalJSON(src []byte) error

func (*NullablePathRewriteRule) Unset

func (v *NullablePathRewriteRule) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type PathRewriteRule

type PathRewriteRule struct {
	RequestPathPattern string `json:"requestPathPattern"`
	MappedPath         string `json:"mappedPath"`
}

PathRewriteRule A rule to manipulate URL paths.

func NewPathRewriteRule

func NewPathRewriteRule(requestPathPattern string, mappedPath string) *PathRewriteRule

NewPathRewriteRule instantiates a new PathRewriteRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPathRewriteRuleWithDefaults

func NewPathRewriteRuleWithDefaults() *PathRewriteRule

NewPathRewriteRuleWithDefaults instantiates a new PathRewriteRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PathRewriteRule) GetMappedPath

func (o *PathRewriteRule) GetMappedPath() string

GetMappedPath returns the MappedPath field value

func (*PathRewriteRule) GetMappedPathOk

func (o *PathRewriteRule) GetMappedPathOk() (*string, bool)

GetMappedPathOk returns a tuple with the MappedPath field value and a boolean to check if the value has been set.

func (*PathRewriteRule) GetRequestPathPattern

func (o *PathRewriteRule) GetRequestPathPattern() string

GetRequestPathPattern returns the RequestPathPattern field value

func (*PathRewriteRule) GetRequestPathPatternOk

func (o *PathRewriteRule) GetRequestPathPatternOk() (*string, bool)

GetRequestPathPatternOk returns a tuple with the RequestPathPattern field value and a boolean to check if the value has been set.

func (PathRewriteRule) MarshalJSON

func (o PathRewriteRule) MarshalJSON() ([]byte, error)

func (*PathRewriteRule) SetMappedPath

func (o *PathRewriteRule) SetMappedPath(v string)

SetMappedPath sets field value

func (*PathRewriteRule) SetRequestPathPattern

func (o *PathRewriteRule) SetRequestPathPattern(v string)

SetRequestPathPattern sets field value

func (PathRewriteRule) ToMap

func (o PathRewriteRule) ToMap() (map[string]interface{}, error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

Jump to

Keyboard shortcuts

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