openapi_M1_PolicyTemplatesProvisioning

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_PolicyTemplatesProvisioning

5GMS AF M1 Policy Templates 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.0.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_PolicyTemplatesProvisioning "github.com/GIT_USER_ID/GIT_REPO_ID/openapi_M1_PolicyTemplatesProvisioning"

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_PolicyTemplatesProvisioning.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_PolicyTemplatesProvisioning.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_PolicyTemplatesProvisioning.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi_M1_PolicyTemplatesProvisioning.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 CreatePolicyTemplate Post /provisioning-sessions/{provisioningSessionId}/policy-templates Create (and optionally upload) a new Policy Template
DefaultApi DestroyPolicyTemplate Delete /provisioning-sessions/{provisioningSessionId}/policy-templates/{policyTemplateId}
DefaultApi PatchPolicyTemplate Patch /provisioning-sessions/{provisioningSessionId}/policy-templates/{policyTemplateId} Patch the Policy Template for the specified Provisioning Session
DefaultApi RetrievePolicyTemplate Get /provisioning-sessions/{provisioningSessionId}/policy-templates/{policyTemplateId} Retrieve a representation of an existing Policy Template in the specified Provisioning Session
DefaultApi UpdatePolicyTemplate Put /provisioning-sessions/{provisioningSessionId}/policy-templates/{policyTemplateId} Update a Policy Template 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_PolicyTemplatesProvisioning API v2.0.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 ApiCreatePolicyTemplateRequest

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

func (ApiCreatePolicyTemplateRequest) Execute

func (ApiCreatePolicyTemplateRequest) PolicyTemplate

A JSON representation of a Policy Template

type ApiDestroyPolicyTemplateRequest

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

func (ApiDestroyPolicyTemplateRequest) Execute

type ApiPatchPolicyTemplateRequest

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

func (ApiPatchPolicyTemplateRequest) Execute

func (ApiPatchPolicyTemplateRequest) PolicyTemplate

A JSON representation of a Policy Template

type ApiRetrievePolicyTemplateRequest

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

func (ApiRetrievePolicyTemplateRequest) Execute

type ApiUpdatePolicyTemplateRequest

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

func (ApiUpdatePolicyTemplateRequest) Execute

func (ApiUpdatePolicyTemplateRequest) PolicyTemplate

A JSON representation of a Policy Template

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 ChargingSpecification

type ChargingSpecification struct {
	SponId     *string           `json:"sponId,omitempty"`
	SponStatus *SponsoringStatus `json:"sponStatus,omitempty"`
	Gpsi       []string          `json:"gpsi,omitempty"`
}

ChargingSpecification struct for ChargingSpecification

func NewChargingSpecification

func NewChargingSpecification() *ChargingSpecification

NewChargingSpecification instantiates a new ChargingSpecification 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 NewChargingSpecificationWithDefaults

func NewChargingSpecificationWithDefaults() *ChargingSpecification

NewChargingSpecificationWithDefaults instantiates a new ChargingSpecification 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 (*ChargingSpecification) GetGpsi

func (o *ChargingSpecification) GetGpsi() []string

GetGpsi returns the Gpsi field value if set, zero value otherwise.

func (*ChargingSpecification) GetGpsiOk

func (o *ChargingSpecification) GetGpsiOk() ([]string, bool)

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

func (*ChargingSpecification) GetSponId

func (o *ChargingSpecification) GetSponId() string

GetSponId returns the SponId field value if set, zero value otherwise.

func (*ChargingSpecification) GetSponIdOk

func (o *ChargingSpecification) GetSponIdOk() (*string, bool)

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

func (*ChargingSpecification) GetSponStatus

func (o *ChargingSpecification) GetSponStatus() SponsoringStatus

GetSponStatus returns the SponStatus field value if set, zero value otherwise.

func (*ChargingSpecification) GetSponStatusOk

func (o *ChargingSpecification) GetSponStatusOk() (*SponsoringStatus, bool)

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

func (*ChargingSpecification) HasGpsi

func (o *ChargingSpecification) HasGpsi() bool

HasGpsi returns a boolean if a field has been set.

func (*ChargingSpecification) HasSponId

func (o *ChargingSpecification) HasSponId() bool

HasSponId returns a boolean if a field has been set.

func (*ChargingSpecification) HasSponStatus

func (o *ChargingSpecification) HasSponStatus() bool

HasSponStatus returns a boolean if a field has been set.

func (ChargingSpecification) MarshalJSON

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

func (*ChargingSpecification) SetGpsi

func (o *ChargingSpecification) SetGpsi(v []string)

SetGpsi gets a reference to the given []string and assigns it to the Gpsi field.

func (*ChargingSpecification) SetSponId

func (o *ChargingSpecification) SetSponId(v string)

SetSponId gets a reference to the given string and assigns it to the SponId field.

func (*ChargingSpecification) SetSponStatus

func (o *ChargingSpecification) SetSponStatus(v SponsoringStatus)

SetSponStatus gets a reference to the given SponsoringStatus and assigns it to the SponStatus field.

func (ChargingSpecification) ToMap

func (o ChargingSpecification) 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 DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

func (*DefaultApiService) CreatePolicyTemplate

func (a *DefaultApiService) CreatePolicyTemplate(ctx context.Context, provisioningSessionId string) ApiCreatePolicyTemplateRequest

CreatePolicyTemplate Create (and optionally upload) a new Policy Template

@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 ApiCreatePolicyTemplateRequest

func (*DefaultApiService) CreatePolicyTemplateExecute

func (a *DefaultApiService) CreatePolicyTemplateExecute(r ApiCreatePolicyTemplateRequest) (*http.Response, error)

Execute executes the request

func (*DefaultApiService) DestroyPolicyTemplate

func (a *DefaultApiService) DestroyPolicyTemplate(ctx context.Context, provisioningSessionId string, policyTemplateId string) ApiDestroyPolicyTemplateRequest

DestroyPolicyTemplate Method for DestroyPolicyTemplate

@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 Session.
@param policyTemplateId A resource identifier of a Policy Template.
@return ApiDestroyPolicyTemplateRequest

func (*DefaultApiService) DestroyPolicyTemplateExecute

func (a *DefaultApiService) DestroyPolicyTemplateExecute(r ApiDestroyPolicyTemplateRequest) (*http.Response, error)

Execute executes the request

func (*DefaultApiService) PatchPolicyTemplate

func (a *DefaultApiService) PatchPolicyTemplate(ctx context.Context, provisioningSessionId string, policyTemplateId string) ApiPatchPolicyTemplateRequest

PatchPolicyTemplate Patch the Policy Template 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 A unique identifier of the Provisioning Session.
@param policyTemplateId A resource identifier of a Policy Template.
@return ApiPatchPolicyTemplateRequest

func (*DefaultApiService) PatchPolicyTemplateExecute

func (a *DefaultApiService) PatchPolicyTemplateExecute(r ApiPatchPolicyTemplateRequest) (*PolicyTemplate, *http.Response, error)

Execute executes the request

@return PolicyTemplate

func (*DefaultApiService) RetrievePolicyTemplate

func (a *DefaultApiService) RetrievePolicyTemplate(ctx context.Context, provisioningSessionId string, policyTemplateId string) ApiRetrievePolicyTemplateRequest

RetrievePolicyTemplate Retrieve a representation of an existing Policy Template in 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 Session.
@param policyTemplateId A resource identifier of a Policy Template.
@return ApiRetrievePolicyTemplateRequest

func (*DefaultApiService) RetrievePolicyTemplateExecute

func (a *DefaultApiService) RetrievePolicyTemplateExecute(r ApiRetrievePolicyTemplateRequest) (*PolicyTemplate, *http.Response, error)

Execute executes the request

@return PolicyTemplate

func (*DefaultApiService) UpdatePolicyTemplate

func (a *DefaultApiService) UpdatePolicyTemplate(ctx context.Context, provisioningSessionId string, policyTemplateId string) ApiUpdatePolicyTemplateRequest

UpdatePolicyTemplate Update a Policy Template 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 A unique identifier of the Provisioning Session.
@param policyTemplateId A resource identifier of a Policy Template.
@return ApiUpdatePolicyTemplateRequest

func (*DefaultApiService) UpdatePolicyTemplateExecute

func (a *DefaultApiService) UpdatePolicyTemplateExecute(r ApiUpdatePolicyTemplateRequest) (*http.Response, error)

Execute executes the request

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 M1QoSSpecification

type M1QoSSpecification struct {
	QosReference *string `json:"qosReference,omitempty"`
	// String representing a bit rate; the prefixes follow the standard symbols from The International System of Units, and represent x1000 multipliers, with the exception that prefix \"K\" is used to represent the standard symbol \"k\".
	MaxBtrUl *string `json:"maxBtrUl,omitempty"`
	// String representing a bit rate; the prefixes follow the standard symbols from The International System of Units, and represent x1000 multipliers, with the exception that prefix \"K\" is used to represent the standard symbol \"k\".
	MaxBtrDl *string `json:"maxBtrDl,omitempty"`
	// String representing a bit rate; the prefixes follow the standard symbols from The International System of Units, and represent x1000 multipliers, with the exception that prefix \"K\" is used to represent the standard symbol \"k\".
	MaxAuthBtrUl *string `json:"maxAuthBtrUl,omitempty"`
	// String representing a bit rate; the prefixes follow the standard symbols from The International System of Units, and represent x1000 multipliers, with the exception that prefix \"K\" is used to represent the standard symbol \"k\".
	MaxAuthBtrDl        *string `json:"maxAuthBtrDl,omitempty"`
	DefPacketLossRateDl *int32  `json:"defPacketLossRateDl,omitempty"`
	DefPacketLossRateUl *int32  `json:"defPacketLossRateUl,omitempty"`
}

M1QoSSpecification struct for M1QoSSpecification

func NewM1QoSSpecification

func NewM1QoSSpecification() *M1QoSSpecification

NewM1QoSSpecification instantiates a new M1QoSSpecification 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 NewM1QoSSpecificationWithDefaults

func NewM1QoSSpecificationWithDefaults() *M1QoSSpecification

NewM1QoSSpecificationWithDefaults instantiates a new M1QoSSpecification 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 (*M1QoSSpecification) GetDefPacketLossRateDl

func (o *M1QoSSpecification) GetDefPacketLossRateDl() int32

GetDefPacketLossRateDl returns the DefPacketLossRateDl field value if set, zero value otherwise.

func (*M1QoSSpecification) GetDefPacketLossRateDlOk

func (o *M1QoSSpecification) GetDefPacketLossRateDlOk() (*int32, bool)

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

func (*M1QoSSpecification) GetDefPacketLossRateUl

func (o *M1QoSSpecification) GetDefPacketLossRateUl() int32

GetDefPacketLossRateUl returns the DefPacketLossRateUl field value if set, zero value otherwise.

func (*M1QoSSpecification) GetDefPacketLossRateUlOk

func (o *M1QoSSpecification) GetDefPacketLossRateUlOk() (*int32, bool)

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

func (*M1QoSSpecification) GetMaxAuthBtrDl

func (o *M1QoSSpecification) GetMaxAuthBtrDl() string

GetMaxAuthBtrDl returns the MaxAuthBtrDl field value if set, zero value otherwise.

func (*M1QoSSpecification) GetMaxAuthBtrDlOk

func (o *M1QoSSpecification) GetMaxAuthBtrDlOk() (*string, bool)

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

func (*M1QoSSpecification) GetMaxAuthBtrUl

func (o *M1QoSSpecification) GetMaxAuthBtrUl() string

GetMaxAuthBtrUl returns the MaxAuthBtrUl field value if set, zero value otherwise.

func (*M1QoSSpecification) GetMaxAuthBtrUlOk

func (o *M1QoSSpecification) GetMaxAuthBtrUlOk() (*string, bool)

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

func (*M1QoSSpecification) GetMaxBtrDl

func (o *M1QoSSpecification) GetMaxBtrDl() string

GetMaxBtrDl returns the MaxBtrDl field value if set, zero value otherwise.

func (*M1QoSSpecification) GetMaxBtrDlOk

func (o *M1QoSSpecification) GetMaxBtrDlOk() (*string, bool)

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

func (*M1QoSSpecification) GetMaxBtrUl

func (o *M1QoSSpecification) GetMaxBtrUl() string

GetMaxBtrUl returns the MaxBtrUl field value if set, zero value otherwise.

func (*M1QoSSpecification) GetMaxBtrUlOk

func (o *M1QoSSpecification) GetMaxBtrUlOk() (*string, bool)

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

func (*M1QoSSpecification) GetQosReference

func (o *M1QoSSpecification) GetQosReference() string

GetQosReference returns the QosReference field value if set, zero value otherwise.

func (*M1QoSSpecification) GetQosReferenceOk

func (o *M1QoSSpecification) GetQosReferenceOk() (*string, bool)

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

func (*M1QoSSpecification) HasDefPacketLossRateDl

func (o *M1QoSSpecification) HasDefPacketLossRateDl() bool

HasDefPacketLossRateDl returns a boolean if a field has been set.

func (*M1QoSSpecification) HasDefPacketLossRateUl

func (o *M1QoSSpecification) HasDefPacketLossRateUl() bool

HasDefPacketLossRateUl returns a boolean if a field has been set.

func (*M1QoSSpecification) HasMaxAuthBtrDl

func (o *M1QoSSpecification) HasMaxAuthBtrDl() bool

HasMaxAuthBtrDl returns a boolean if a field has been set.

func (*M1QoSSpecification) HasMaxAuthBtrUl

func (o *M1QoSSpecification) HasMaxAuthBtrUl() bool

HasMaxAuthBtrUl returns a boolean if a field has been set.

func (*M1QoSSpecification) HasMaxBtrDl

func (o *M1QoSSpecification) HasMaxBtrDl() bool

HasMaxBtrDl returns a boolean if a field has been set.

func (*M1QoSSpecification) HasMaxBtrUl

func (o *M1QoSSpecification) HasMaxBtrUl() bool

HasMaxBtrUl returns a boolean if a field has been set.

func (*M1QoSSpecification) HasQosReference

func (o *M1QoSSpecification) HasQosReference() bool

HasQosReference returns a boolean if a field has been set.

func (M1QoSSpecification) MarshalJSON

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

func (*M1QoSSpecification) SetDefPacketLossRateDl

func (o *M1QoSSpecification) SetDefPacketLossRateDl(v int32)

SetDefPacketLossRateDl gets a reference to the given int32 and assigns it to the DefPacketLossRateDl field.

func (*M1QoSSpecification) SetDefPacketLossRateUl

func (o *M1QoSSpecification) SetDefPacketLossRateUl(v int32)

SetDefPacketLossRateUl gets a reference to the given int32 and assigns it to the DefPacketLossRateUl field.

func (*M1QoSSpecification) SetMaxAuthBtrDl

func (o *M1QoSSpecification) SetMaxAuthBtrDl(v string)

SetMaxAuthBtrDl gets a reference to the given string and assigns it to the MaxAuthBtrDl field.

func (*M1QoSSpecification) SetMaxAuthBtrUl

func (o *M1QoSSpecification) SetMaxAuthBtrUl(v string)

SetMaxAuthBtrUl gets a reference to the given string and assigns it to the MaxAuthBtrUl field.

func (*M1QoSSpecification) SetMaxBtrDl

func (o *M1QoSSpecification) SetMaxBtrDl(v string)

SetMaxBtrDl gets a reference to the given string and assigns it to the MaxBtrDl field.

func (*M1QoSSpecification) SetMaxBtrUl

func (o *M1QoSSpecification) SetMaxBtrUl(v string)

SetMaxBtrUl gets a reference to the given string and assigns it to the MaxBtrUl field.

func (*M1QoSSpecification) SetQosReference

func (o *M1QoSSpecification) SetQosReference(v string)

SetQosReference gets a reference to the given string and assigns it to the QosReference field.

func (M1QoSSpecification) ToMap

func (o M1QoSSpecification) 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 NullableChargingSpecification

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

func (NullableChargingSpecification) Get

func (NullableChargingSpecification) IsSet

func (NullableChargingSpecification) MarshalJSON

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

func (*NullableChargingSpecification) Set

func (*NullableChargingSpecification) UnmarshalJSON

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

func (*NullableChargingSpecification) Unset

func (v *NullableChargingSpecification) 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 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 NullableM1QoSSpecification

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

func NewNullableM1QoSSpecification

func NewNullableM1QoSSpecification(val *M1QoSSpecification) *NullableM1QoSSpecification

func (NullableM1QoSSpecification) Get

func (NullableM1QoSSpecification) IsSet

func (v NullableM1QoSSpecification) IsSet() bool

func (NullableM1QoSSpecification) MarshalJSON

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

func (*NullableM1QoSSpecification) Set

func (*NullableM1QoSSpecification) UnmarshalJSON

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

func (*NullableM1QoSSpecification) Unset

func (v *NullableM1QoSSpecification) Unset()

type NullablePolicyTemplate

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

func NewNullablePolicyTemplate

func NewNullablePolicyTemplate(val *PolicyTemplate) *NullablePolicyTemplate

func (NullablePolicyTemplate) Get

func (NullablePolicyTemplate) IsSet

func (v NullablePolicyTemplate) IsSet() bool

func (NullablePolicyTemplate) MarshalJSON

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

func (*NullablePolicyTemplate) Set

func (*NullablePolicyTemplate) UnmarshalJSON

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

func (*NullablePolicyTemplate) Unset

func (v *NullablePolicyTemplate) Unset()

type NullablePolicyTemplateApiType

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

func (NullablePolicyTemplateApiType) Get

func (NullablePolicyTemplateApiType) IsSet

func (NullablePolicyTemplateApiType) MarshalJSON

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

func (*NullablePolicyTemplateApiType) Set

func (*NullablePolicyTemplateApiType) UnmarshalJSON

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

func (*NullablePolicyTemplateApiType) Unset

func (v *NullablePolicyTemplateApiType) Unset()

type NullablePolicyTemplateApplicationSessionContext

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

func (NullablePolicyTemplateApplicationSessionContext) Get

func (NullablePolicyTemplateApplicationSessionContext) IsSet

func (NullablePolicyTemplateApplicationSessionContext) MarshalJSON

func (*NullablePolicyTemplateApplicationSessionContext) Set

func (*NullablePolicyTemplateApplicationSessionContext) UnmarshalJSON

func (*NullablePolicyTemplateApplicationSessionContext) Unset

type NullablePolicyTemplateState

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

func NewNullablePolicyTemplateState

func NewNullablePolicyTemplateState(val *PolicyTemplateState) *NullablePolicyTemplateState

func (NullablePolicyTemplateState) Get

func (NullablePolicyTemplateState) IsSet

func (NullablePolicyTemplateState) MarshalJSON

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

func (*NullablePolicyTemplateState) Set

func (*NullablePolicyTemplateState) UnmarshalJSON

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

func (*NullablePolicyTemplateState) Unset

func (v *NullablePolicyTemplateState) Unset()

type NullableSnssai

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

func NewNullableSnssai

func NewNullableSnssai(val *Snssai) *NullableSnssai

func (NullableSnssai) Get

func (v NullableSnssai) Get() *Snssai

func (NullableSnssai) IsSet

func (v NullableSnssai) IsSet() bool

func (NullableSnssai) MarshalJSON

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

func (*NullableSnssai) Set

func (v *NullableSnssai) Set(val *Snssai)

func (*NullableSnssai) UnmarshalJSON

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

func (*NullableSnssai) Unset

func (v *NullableSnssai) Unset()

type NullableSponsoringStatus

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

func NewNullableSponsoringStatus

func NewNullableSponsoringStatus(val *SponsoringStatus) *NullableSponsoringStatus

func (NullableSponsoringStatus) Get

func (NullableSponsoringStatus) IsSet

func (v NullableSponsoringStatus) IsSet() bool

func (NullableSponsoringStatus) MarshalJSON

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

func (*NullableSponsoringStatus) Set

func (*NullableSponsoringStatus) UnmarshalJSON

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

func (*NullableSponsoringStatus) Unset

func (v *NullableSponsoringStatus) 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 PolicyTemplate

type PolicyTemplate struct {
	// String chosen by the 5GMS AF to serve as an identifier in a resource URI.
	PolicyTemplateId          string                                  `json:"policyTemplateId"`
	State                     PolicyTemplateState                     `json:"state"`
	ApiEndPoint               string                                  `json:"apiEndPoint"`
	ApiType                   PolicyTemplateApiType                   `json:"apiType"`
	ExternalReference         string                                  `json:"externalReference"`
	QoSSpecification          *M1QoSSpecification                     `json:"qoSSpecification,omitempty"`
	ApplicationSessionContext PolicyTemplateApplicationSessionContext `json:"applicationSessionContext"`
	ChargingSpecification     *ChargingSpecification                  `json:"chargingSpecification,omitempty"`
}

PolicyTemplate A representation of a Policy Template resource.

func NewPolicyTemplate

func NewPolicyTemplate(policyTemplateId string, state PolicyTemplateState, apiEndPoint string, apiType PolicyTemplateApiType, externalReference string, applicationSessionContext PolicyTemplateApplicationSessionContext) *PolicyTemplate

NewPolicyTemplate instantiates a new PolicyTemplate 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 NewPolicyTemplateWithDefaults

func NewPolicyTemplateWithDefaults() *PolicyTemplate

NewPolicyTemplateWithDefaults instantiates a new PolicyTemplate 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 (*PolicyTemplate) GetApiEndPoint

func (o *PolicyTemplate) GetApiEndPoint() string

GetApiEndPoint returns the ApiEndPoint field value

func (*PolicyTemplate) GetApiEndPointOk

func (o *PolicyTemplate) GetApiEndPointOk() (*string, bool)

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

func (*PolicyTemplate) GetApiType

func (o *PolicyTemplate) GetApiType() PolicyTemplateApiType

GetApiType returns the ApiType field value

func (*PolicyTemplate) GetApiTypeOk

func (o *PolicyTemplate) GetApiTypeOk() (*PolicyTemplateApiType, bool)

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

func (*PolicyTemplate) GetApplicationSessionContext

func (o *PolicyTemplate) GetApplicationSessionContext() PolicyTemplateApplicationSessionContext

GetApplicationSessionContext returns the ApplicationSessionContext field value

func (*PolicyTemplate) GetApplicationSessionContextOk

func (o *PolicyTemplate) GetApplicationSessionContextOk() (*PolicyTemplateApplicationSessionContext, bool)

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

func (*PolicyTemplate) GetChargingSpecification

func (o *PolicyTemplate) GetChargingSpecification() ChargingSpecification

GetChargingSpecification returns the ChargingSpecification field value if set, zero value otherwise.

func (*PolicyTemplate) GetChargingSpecificationOk

func (o *PolicyTemplate) GetChargingSpecificationOk() (*ChargingSpecification, bool)

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

func (*PolicyTemplate) GetExternalReference

func (o *PolicyTemplate) GetExternalReference() string

GetExternalReference returns the ExternalReference field value

func (*PolicyTemplate) GetExternalReferenceOk

func (o *PolicyTemplate) GetExternalReferenceOk() (*string, bool)

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

func (*PolicyTemplate) GetPolicyTemplateId

func (o *PolicyTemplate) GetPolicyTemplateId() string

GetPolicyTemplateId returns the PolicyTemplateId field value

func (*PolicyTemplate) GetPolicyTemplateIdOk

func (o *PolicyTemplate) GetPolicyTemplateIdOk() (*string, bool)

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

func (*PolicyTemplate) GetQoSSpecification

func (o *PolicyTemplate) GetQoSSpecification() M1QoSSpecification

GetQoSSpecification returns the QoSSpecification field value if set, zero value otherwise.

func (*PolicyTemplate) GetQoSSpecificationOk

func (o *PolicyTemplate) GetQoSSpecificationOk() (*M1QoSSpecification, bool)

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

func (*PolicyTemplate) GetState

func (o *PolicyTemplate) GetState() PolicyTemplateState

GetState returns the State field value

func (*PolicyTemplate) GetStateOk

func (o *PolicyTemplate) GetStateOk() (*PolicyTemplateState, bool)

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

func (*PolicyTemplate) HasChargingSpecification

func (o *PolicyTemplate) HasChargingSpecification() bool

HasChargingSpecification returns a boolean if a field has been set.

func (*PolicyTemplate) HasQoSSpecification

func (o *PolicyTemplate) HasQoSSpecification() bool

HasQoSSpecification returns a boolean if a field has been set.

func (PolicyTemplate) MarshalJSON

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

func (*PolicyTemplate) SetApiEndPoint

func (o *PolicyTemplate) SetApiEndPoint(v string)

SetApiEndPoint sets field value

func (*PolicyTemplate) SetApiType

func (o *PolicyTemplate) SetApiType(v PolicyTemplateApiType)

SetApiType sets field value

func (*PolicyTemplate) SetApplicationSessionContext

func (o *PolicyTemplate) SetApplicationSessionContext(v PolicyTemplateApplicationSessionContext)

SetApplicationSessionContext sets field value

func (*PolicyTemplate) SetChargingSpecification

func (o *PolicyTemplate) SetChargingSpecification(v ChargingSpecification)

SetChargingSpecification gets a reference to the given ChargingSpecification and assigns it to the ChargingSpecification field.

func (*PolicyTemplate) SetExternalReference

func (o *PolicyTemplate) SetExternalReference(v string)

SetExternalReference sets field value

func (*PolicyTemplate) SetPolicyTemplateId

func (o *PolicyTemplate) SetPolicyTemplateId(v string)

SetPolicyTemplateId sets field value

func (*PolicyTemplate) SetQoSSpecification

func (o *PolicyTemplate) SetQoSSpecification(v M1QoSSpecification)

SetQoSSpecification gets a reference to the given M1QoSSpecification and assigns it to the QoSSpecification field.

func (*PolicyTemplate) SetState

func (o *PolicyTemplate) SetState(v PolicyTemplateState)

SetState sets field value

func (PolicyTemplate) ToMap

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

type PolicyTemplateApiType

type PolicyTemplateApiType struct {
	String *string
}

PolicyTemplateApiType struct for PolicyTemplateApiType

func (*PolicyTemplateApiType) MarshalJSON

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

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

func (*PolicyTemplateApiType) UnmarshalJSON

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

Unmarshal JSON data into any of the pointers in the struct

type PolicyTemplateApplicationSessionContext

type PolicyTemplateApplicationSessionContext struct {
	// Contains an AF application identifier.
	AfAppId   *string `json:"afAppId,omitempty"`
	SliceInfo *Snssai `json:"sliceInfo,omitempty"`
	// String representing a Data Network as defined in clause 9A of 3GPP TS 23.003;  it shall contain either a DNN Network Identifier, or a full DNN with both the Network  Identifier and Operator Identifier, as specified in 3GPP TS 23.003 clause 9.1.1 and 9.1.2. It shall be coded as string in which the labels are separated by dots  (e.g. \"Label1.Label2.Label3\").
	Dnn *string `json:"dnn,omitempty"`
	// Contains an identity of an application service provider.
	AspId *string `json:"aspId,omitempty"`
}

PolicyTemplateApplicationSessionContext struct for PolicyTemplateApplicationSessionContext

func NewPolicyTemplateApplicationSessionContext

func NewPolicyTemplateApplicationSessionContext() *PolicyTemplateApplicationSessionContext

NewPolicyTemplateApplicationSessionContext instantiates a new PolicyTemplateApplicationSessionContext 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 NewPolicyTemplateApplicationSessionContextWithDefaults

func NewPolicyTemplateApplicationSessionContextWithDefaults() *PolicyTemplateApplicationSessionContext

NewPolicyTemplateApplicationSessionContextWithDefaults instantiates a new PolicyTemplateApplicationSessionContext 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 (*PolicyTemplateApplicationSessionContext) GetAfAppId

GetAfAppId returns the AfAppId field value if set, zero value otherwise.

func (*PolicyTemplateApplicationSessionContext) GetAfAppIdOk

func (o *PolicyTemplateApplicationSessionContext) GetAfAppIdOk() (*string, bool)

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

func (*PolicyTemplateApplicationSessionContext) GetAspId

GetAspId returns the AspId field value if set, zero value otherwise.

func (*PolicyTemplateApplicationSessionContext) GetAspIdOk

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

func (*PolicyTemplateApplicationSessionContext) GetDnn

GetDnn returns the Dnn field value if set, zero value otherwise.

func (*PolicyTemplateApplicationSessionContext) GetDnnOk

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

func (*PolicyTemplateApplicationSessionContext) GetSliceInfo

GetSliceInfo returns the SliceInfo field value if set, zero value otherwise.

func (*PolicyTemplateApplicationSessionContext) GetSliceInfoOk

func (o *PolicyTemplateApplicationSessionContext) GetSliceInfoOk() (*Snssai, bool)

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

func (*PolicyTemplateApplicationSessionContext) HasAfAppId

HasAfAppId returns a boolean if a field has been set.

func (*PolicyTemplateApplicationSessionContext) HasAspId

HasAspId returns a boolean if a field has been set.

func (*PolicyTemplateApplicationSessionContext) HasDnn

HasDnn returns a boolean if a field has been set.

func (*PolicyTemplateApplicationSessionContext) HasSliceInfo

HasSliceInfo returns a boolean if a field has been set.

func (PolicyTemplateApplicationSessionContext) MarshalJSON

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

func (*PolicyTemplateApplicationSessionContext) SetAfAppId

SetAfAppId gets a reference to the given string and assigns it to the AfAppId field.

func (*PolicyTemplateApplicationSessionContext) SetAspId

SetAspId gets a reference to the given string and assigns it to the AspId field.

func (*PolicyTemplateApplicationSessionContext) SetDnn

SetDnn gets a reference to the given string and assigns it to the Dnn field.

func (*PolicyTemplateApplicationSessionContext) SetSliceInfo

SetSliceInfo gets a reference to the given Snssai and assigns it to the SliceInfo field.

func (PolicyTemplateApplicationSessionContext) ToMap

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

type PolicyTemplateState

type PolicyTemplateState struct {
	String *string
}

PolicyTemplateState struct for PolicyTemplateState

func (*PolicyTemplateState) MarshalJSON

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

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

func (*PolicyTemplateState) UnmarshalJSON

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

Unmarshal JSON data into any of the pointers in the struct

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

type Snssai

type Snssai struct {
	// Unsigned integer, within the range 0 to 255, representing the Slice/Service Type.  It indicates the expected Network Slice behaviour in terms of features and services. Values 0 to 127 correspond to the standardized SST range. Values 128 to 255 correspond  to the Operator-specific range. See clause 28.4.2 of 3GPP TS 23.003. Standardized values are defined in clause 5.15.2.2 of 3GPP TS 23.501.
	Sst int32 `json:"sst"`
	// 3-octet string, representing the Slice Differentiator, in hexadecimal representation. Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent 4 bits. The most significant character representing the 4 most significant bits of the SD shall appear first in the string, and the character representing the 4 least significant bit of the SD shall appear last in the string. This is an optional parameter that complements the Slice/Service type(s) to allow to  differentiate amongst multiple Network Slices of the same Slice/Service type. This IE shall be absent if no SD value is associated with the SST.
	Sd *string `json:"sd,omitempty"`
}

Snssai When Snssai needs to be converted to string (e.g. when used in maps as key), the string shall be composed of one to three digits \"sst\" optionally followed by \"-\" and 6 hexadecimal digits \"sd\".

func NewSnssai

func NewSnssai(sst int32) *Snssai

NewSnssai instantiates a new Snssai 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 NewSnssaiWithDefaults

func NewSnssaiWithDefaults() *Snssai

NewSnssaiWithDefaults instantiates a new Snssai 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 (*Snssai) GetSd

func (o *Snssai) GetSd() string

GetSd returns the Sd field value if set, zero value otherwise.

func (*Snssai) GetSdOk

func (o *Snssai) GetSdOk() (*string, bool)

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

func (*Snssai) GetSst

func (o *Snssai) GetSst() int32

GetSst returns the Sst field value

func (*Snssai) GetSstOk

func (o *Snssai) GetSstOk() (*int32, bool)

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

func (*Snssai) HasSd

func (o *Snssai) HasSd() bool

HasSd returns a boolean if a field has been set.

func (Snssai) MarshalJSON

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

func (*Snssai) SetSd

func (o *Snssai) SetSd(v string)

SetSd gets a reference to the given string and assigns it to the Sd field.

func (*Snssai) SetSst

func (o *Snssai) SetSst(v int32)

SetSst sets field value

func (Snssai) ToMap

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

type SponsoringStatus

type SponsoringStatus struct {
	String *string
}

SponsoringStatus Indicates whether sponsored data connectivity is enabled or disabled/not enabled.

func (*SponsoringStatus) MarshalJSON

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

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

func (*SponsoringStatus) UnmarshalJSON

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

Unmarshal JSON data into any of the pointers in the struct

Jump to

Keyboard shortcuts

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