iaas

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 22 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 NewConfiguration

func NewConfiguration() *config.Configuration

NewConfiguration returns a new Configuration object

func ParameterValueToString

func ParameterValueToString(obj interface{}, key string) string

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 {
	// contains filtered or unexported fields
}

APIClient manages communication with the IaaS-API API v1beta1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)

NewAPIClient creates a new API client. Optionally receives configuration options

func (*APIClient) CreateNetwork

func (a *APIClient) CreateNetwork(ctx context.Context, projectId string) ApiCreateNetworkRequest

CreateNetwork Create new network.

Create a new network in a project. `nameservers` will be filled from `defaultNameservers` of the respective area if not specified. If the project has `internetAccess` enabled and this is the first network in the project this might incur cost.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT Project ID.
@return ApiCreateNetworkRequest

func (*APIClient) CreateNetworkArea

func (a *APIClient) CreateNetworkArea(ctx context.Context, organizationId string) ApiCreateNetworkAreaRequest

CreateNetworkArea Create new network area in an organization.

Create a new network area in an organization.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@return ApiCreateNetworkAreaRequest

func (*APIClient) CreateNetworkAreaExecute

func (a *APIClient) CreateNetworkAreaExecute(ctx context.Context, organizationId string) (*NetworkArea, error)

func (*APIClient) CreateNetworkAreaRange

func (a *APIClient) CreateNetworkAreaRange(ctx context.Context, organizationId string, areaId string) ApiCreateNetworkAreaRangeRequest

CreateNetworkAreaRange Create new network range in a network area.

Create a new network range in an existing network area.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@return ApiCreateNetworkAreaRangeRequest

func (*APIClient) CreateNetworkAreaRangeExecute

func (a *APIClient) CreateNetworkAreaRangeExecute(ctx context.Context, organizationId string, areaId string) (*NetworkRangeListResponse, error)

func (*APIClient) CreateNetworkAreaRoute

func (a *APIClient) CreateNetworkAreaRoute(ctx context.Context, organizationId string, areaId string) ApiCreateNetworkAreaRouteRequest

CreateNetworkAreaRoute Create new network routes.

Create one or several new network routes in a network area.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@return ApiCreateNetworkAreaRouteRequest

func (*APIClient) CreateNetworkAreaRouteExecute

func (a *APIClient) CreateNetworkAreaRouteExecute(ctx context.Context, organizationId string, areaId string) (*RouteListResponse, error)

func (*APIClient) CreateNetworkExecute

func (a *APIClient) CreateNetworkExecute(ctx context.Context, projectId string) (*Network, error)

func (*APIClient) DeleteNetwork

func (a *APIClient) DeleteNetwork(ctx context.Context, projectId string, networkId string) ApiDeleteNetworkRequest

DeleteNetwork Delete network.

Delete a network.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT Project ID.
@param networkId STACKIT Network ID.
@return ApiDeleteNetworkRequest

func (*APIClient) DeleteNetworkArea

func (a *APIClient) DeleteNetworkArea(ctx context.Context, organizationId string, areaId string) ApiDeleteNetworkAreaRequest

DeleteNetworkArea Delete a network area.

Delete an existing network area in an organization. This is only possible if no projects are using the area anymore.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@return ApiDeleteNetworkAreaRequest

func (*APIClient) DeleteNetworkAreaExecute

func (a *APIClient) DeleteNetworkAreaExecute(ctx context.Context, organizationId string, areaId string) error

func (*APIClient) DeleteNetworkAreaRange

func (a *APIClient) DeleteNetworkAreaRange(ctx context.Context, organizationId string, areaId string, networkRangeId string) ApiDeleteNetworkAreaRangeRequest

DeleteNetworkAreaRange Delete a network range.

Delete a network range of a network area.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@param networkRangeId STACKIT Network Range ID.
@return ApiDeleteNetworkAreaRangeRequest

func (*APIClient) DeleteNetworkAreaRangeExecute

func (a *APIClient) DeleteNetworkAreaRangeExecute(ctx context.Context, organizationId string, areaId string, networkRangeId string) error

func (*APIClient) DeleteNetworkAreaRoute

func (a *APIClient) DeleteNetworkAreaRoute(ctx context.Context, organizationId string, areaId string, routeId string) ApiDeleteNetworkAreaRouteRequest

DeleteNetworkAreaRoute Delete a network route.

Delete a network route of a network area.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@param routeId STACKI Route ID.
@return ApiDeleteNetworkAreaRouteRequest

func (*APIClient) DeleteNetworkAreaRouteExecute

func (a *APIClient) DeleteNetworkAreaRouteExecute(ctx context.Context, organizationId string, areaId string, routeId string) error

func (*APIClient) DeleteNetworkExecute

func (a *APIClient) DeleteNetworkExecute(ctx context.Context, projectId string, networkId string) error

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *config.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

func (*APIClient) GetNetwork

func (a *APIClient) GetNetwork(ctx context.Context, projectId string, networkId string) ApiGetNetworkRequest

GetNetwork Get network details.

Get details about a network.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT Project ID.
@param networkId STACKIT Network ID.
@return ApiGetNetworkRequest

func (*APIClient) GetNetworkArea

func (a *APIClient) GetNetworkArea(ctx context.Context, organizationId string, areaId string) ApiGetNetworkAreaRequest

GetNetworkArea Get details about a network area.

Get details about a network area in an organization.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@return ApiGetNetworkAreaRequest

func (*APIClient) GetNetworkAreaExecute

func (a *APIClient) GetNetworkAreaExecute(ctx context.Context, organizationId string, areaId string) (*NetworkArea, error)

func (*APIClient) GetNetworkAreaRange

func (a *APIClient) GetNetworkAreaRange(ctx context.Context, organizationId string, areaId string, networkRangeId string) ApiGetNetworkAreaRangeRequest

GetNetworkAreaRange Get details about a network range.

Get details about a network range in a network area.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@param networkRangeId STACKIT Network Range ID.
@return ApiGetNetworkAreaRangeRequest

func (*APIClient) GetNetworkAreaRangeExecute

func (a *APIClient) GetNetworkAreaRangeExecute(ctx context.Context, organizationId string, areaId string, networkRangeId string) (*NetworkRange, error)

func (*APIClient) GetNetworkAreaRoute

func (a *APIClient) GetNetworkAreaRoute(ctx context.Context, organizationId string, areaId string, routeId string) ApiGetNetworkAreaRouteRequest

GetNetworkAreaRoute Get details about a network route.

Get details about a network route defined in a network area.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@param routeId STACKI Route ID.
@return ApiGetNetworkAreaRouteRequest

func (*APIClient) GetNetworkAreaRouteExecute

func (a *APIClient) GetNetworkAreaRouteExecute(ctx context.Context, organizationId string, areaId string, routeId string) (*Route, error)

func (*APIClient) GetNetworkExecute

func (a *APIClient) GetNetworkExecute(ctx context.Context, projectId string, networkId string) (*Network, error)

func (*APIClient) GetOrganizationRequest

func (a *APIClient) GetOrganizationRequest(ctx context.Context, organizationId string, requestId string) ApiGetOrganizationRequestRequest

GetOrganizationRequest Lookup an organization request ID.

Lookup an organization request ID from a previous request. This allows to find resource IDs of resources generated during a organization request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param requestId STACKIT Request ID.
@return ApiGetOrganizationRequestRequest

func (*APIClient) GetOrganizationRequestExecute

func (a *APIClient) GetOrganizationRequestExecute(ctx context.Context, organizationId string, requestId string) (*Request, error)

func (*APIClient) GetProjectRequest

func (a *APIClient) GetProjectRequest(ctx context.Context, projectId string, requestId string) ApiGetProjectRequestRequest

GetProjectRequest Lookup a project request ID.

Lookup a project request ID from a previous request. This allows to find resource IDs of resources generated during a projects request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT Project ID.
@param requestId STACKIT Request ID.
@return ApiGetProjectRequestRequest

func (*APIClient) GetProjectRequestExecute

func (a *APIClient) GetProjectRequestExecute(ctx context.Context, projectId string, requestId string) (*Request, error)

func (*APIClient) ListNetworkAreaProjects

func (a *APIClient) ListNetworkAreaProjects(ctx context.Context, organizationId string, areaId string) ApiListNetworkAreaProjectsRequest

ListNetworkAreaProjects List all projects using a network area.

Get a list of all projects using a network area.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@return ApiListNetworkAreaProjectsRequest

func (*APIClient) ListNetworkAreaProjectsExecute

func (a *APIClient) ListNetworkAreaProjectsExecute(ctx context.Context, organizationId string, areaId string) (*ProjectListResponse, error)

func (*APIClient) ListNetworkAreaRanges

func (a *APIClient) ListNetworkAreaRanges(ctx context.Context, organizationId string, areaId string) ApiListNetworkAreaRangesRequest

ListNetworkAreaRanges List all network ranges in a network area.

Get a list of all network ranges in a network area.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@return ApiListNetworkAreaRangesRequest

func (*APIClient) ListNetworkAreaRangesExecute

func (a *APIClient) ListNetworkAreaRangesExecute(ctx context.Context, organizationId string, areaId string) (*NetworkRangeListResponse, error)

func (*APIClient) ListNetworkAreaRoutes

func (a *APIClient) ListNetworkAreaRoutes(ctx context.Context, organizationId string, areaId string) ApiListNetworkAreaRoutesRequest

ListNetworkAreaRoutes List all network routes in a network area.

Get a list of all network routes defined in a network area.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@return ApiListNetworkAreaRoutesRequest

func (*APIClient) ListNetworkAreaRoutesExecute

func (a *APIClient) ListNetworkAreaRoutesExecute(ctx context.Context, organizationId string, areaId string) (*RouteListResponse, error)

func (*APIClient) ListNetworkAreas

func (a *APIClient) ListNetworkAreas(ctx context.Context, organizationId string) ApiListNetworkAreasRequest

ListNetworkAreas List all network areas in an organization.

Get a list of all visible network areas defined in an organization.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@return ApiListNetworkAreasRequest

func (*APIClient) ListNetworkAreasExecute

func (a *APIClient) ListNetworkAreasExecute(ctx context.Context, organizationId string) (*NetworkAreaListResponse, error)

func (*APIClient) ListNetworks

func (a *APIClient) ListNetworks(ctx context.Context, projectId string) ApiListNetworksRequest

ListNetworks List all networks inside a project.

Get a list of all networks inside a project.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT Project ID.
@return ApiListNetworksRequest

func (*APIClient) ListNetworksExecute

func (a *APIClient) ListNetworksExecute(ctx context.Context, projectId string) (*NetworkListResponse, error)

func (*APIClient) PartialUpdateNetwork

func (a *APIClient) PartialUpdateNetwork(ctx context.Context, projectId string, networkId string) ApiPartialUpdateNetworkRequest

PartialUpdateNetwork Update network settings.

Update the settings of a network.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT Project ID.
@param networkId STACKIT Network ID.
@return ApiPartialUpdateNetworkRequest

func (*APIClient) PartialUpdateNetworkArea

func (a *APIClient) PartialUpdateNetworkArea(ctx context.Context, organizationId string, areaId string) ApiPartialUpdateNetworkAreaRequest

PartialUpdateNetworkArea Update network area settings.

Update the settings of a network area in an organization.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId STACKIT Organization ID.
@param areaId STACKIT Network Area ID.
@return ApiPartialUpdateNetworkAreaRequest

func (*APIClient) PartialUpdateNetworkAreaExecute

func (a *APIClient) PartialUpdateNetworkAreaExecute(ctx context.Context, organizationId string, areaId string) (*NetworkArea, error)

func (*APIClient) PartialUpdateNetworkExecute

func (a *APIClient) PartialUpdateNetworkExecute(ctx context.Context, projectId string, networkId string) error

type ApiCreateNetworkAreaRangeRequest

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

func (ApiCreateNetworkAreaRangeRequest) CreateNetworkAreaRangePayload

func (r ApiCreateNetworkAreaRangeRequest) CreateNetworkAreaRangePayload(createNetworkAreaRangePayload CreateNetworkAreaRangePayload) ApiCreateNetworkAreaRangeRequest

func (ApiCreateNetworkAreaRangeRequest) Execute

type ApiCreateNetworkAreaRequest

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

func (ApiCreateNetworkAreaRequest) CreateNetworkAreaPayload

func (r ApiCreateNetworkAreaRequest) CreateNetworkAreaPayload(createNetworkAreaPayload CreateNetworkAreaPayload) ApiCreateNetworkAreaRequest

func (ApiCreateNetworkAreaRequest) Execute

type ApiCreateNetworkAreaRouteRequest

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

func (ApiCreateNetworkAreaRouteRequest) CreateNetworkAreaRoutePayload

func (r ApiCreateNetworkAreaRouteRequest) CreateNetworkAreaRoutePayload(createNetworkAreaRoutePayload CreateNetworkAreaRoutePayload) ApiCreateNetworkAreaRouteRequest

func (ApiCreateNetworkAreaRouteRequest) Execute

type ApiCreateNetworkRequest

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

func (ApiCreateNetworkRequest) CreateNetworkPayload

func (r ApiCreateNetworkRequest) CreateNetworkPayload(createNetworkPayload CreateNetworkPayload) ApiCreateNetworkRequest

func (ApiCreateNetworkRequest) Execute

func (r ApiCreateNetworkRequest) Execute() (*Network, error)

type ApiDeleteNetworkAreaRangeRequest

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

func (ApiDeleteNetworkAreaRangeRequest) Execute

type ApiDeleteNetworkAreaRequest

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

func (ApiDeleteNetworkAreaRequest) Execute

func (r ApiDeleteNetworkAreaRequest) Execute() error

type ApiDeleteNetworkAreaRouteRequest

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

func (ApiDeleteNetworkAreaRouteRequest) Execute

type ApiDeleteNetworkRequest

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

func (ApiDeleteNetworkRequest) Execute

func (r ApiDeleteNetworkRequest) Execute() error

type ApiGetNetworkAreaRangeRequest

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

func (ApiGetNetworkAreaRangeRequest) Execute

type ApiGetNetworkAreaRequest

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

func (ApiGetNetworkAreaRequest) Execute

func (r ApiGetNetworkAreaRequest) Execute() (*NetworkArea, error)

type ApiGetNetworkAreaRouteRequest

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

func (ApiGetNetworkAreaRouteRequest) Execute

func (r ApiGetNetworkAreaRouteRequest) Execute() (*Route, error)

type ApiGetNetworkRequest

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

func (ApiGetNetworkRequest) Execute

func (r ApiGetNetworkRequest) Execute() (*Network, error)

type ApiGetOrganizationRequestRequest

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

func (ApiGetOrganizationRequestRequest) Execute

type ApiGetProjectRequestRequest

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

func (ApiGetProjectRequestRequest) Execute

func (r ApiGetProjectRequestRequest) Execute() (*Request, error)

type ApiListNetworkAreaProjectsRequest

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

func (ApiListNetworkAreaProjectsRequest) Execute

type ApiListNetworkAreaRangesRequest

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

func (ApiListNetworkAreaRangesRequest) Execute

type ApiListNetworkAreaRoutesRequest

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

func (ApiListNetworkAreaRoutesRequest) Execute

type ApiListNetworkAreasRequest

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

func (ApiListNetworkAreasRequest) Execute

type ApiListNetworksRequest

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

func (ApiListNetworksRequest) Execute

type ApiPartialUpdateNetworkAreaRequest

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

func (ApiPartialUpdateNetworkAreaRequest) Execute

func (ApiPartialUpdateNetworkAreaRequest) PartialUpdateNetworkAreaPayload

func (r ApiPartialUpdateNetworkAreaRequest) PartialUpdateNetworkAreaPayload(partialUpdateNetworkAreaPayload PartialUpdateNetworkAreaPayload) ApiPartialUpdateNetworkAreaRequest

type ApiPartialUpdateNetworkRequest

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

func (ApiPartialUpdateNetworkRequest) Execute

func (ApiPartialUpdateNetworkRequest) PartialUpdateNetworkPayload

func (r ApiPartialUpdateNetworkRequest) PartialUpdateNetworkPayload(partialUpdateNetworkPayload PartialUpdateNetworkPayload) ApiPartialUpdateNetworkRequest

type Area

type Area struct {
	// List of DNS Servers/Nameservers.
	DefaultNameservers *[]string `json:"defaultNameservers,omitempty"`
	// A list of Network ranges.
	NetworkRanges *[]NetworkRange `json:"networkRanges,omitempty"`
	// List of routes.
	Routes *[]Route `json:"routes,omitempty"`
	// Classless Inter-Domain Routing (CIDR).
	TransferNetwork *string `json:"transferNetwork,omitempty"`
}

type AreaConfig

type AreaConfig struct {
	DefaultNameservers *[]string `json:"defaultNameservers,omitempty"`
	// A list of Network ranges.
	// REQUIRED
	NetworkRanges *[]NetworkRange `json:"networkRanges"`
	// List of routes.
	Routes *[]Route `json:"routes,omitempty"`
	// Classless Inter-Domain Routing (CIDR).
	// REQUIRED
	TransferNetwork *string `json:"transferNetwork"`
}

type AreaPrefixConfigIPv4

type AreaPrefixConfigIPv4 struct {
	// The default prefix length for networks in the network area.
	DefaultPrefixLen *int64 `json:"defaultPrefixLen,omitempty"`
	// The maximal prefix length for networks in the network area.
	MaxPrefixLen *int64 `json:"maxPrefixLen,omitempty"`
	// The minimal prefix length for networks in the network area.
	MinPrefixLen *int64 `json:"minPrefixLen,omitempty"`
}

type CreateAreaAddressFamily

type CreateAreaAddressFamily struct {
	Ipv4 *CreateAreaIPv4 `json:"ipv4,omitempty"`
}

type CreateAreaIPv4

type CreateAreaIPv4 struct {
	DefaultNameservers *[]string `json:"defaultNameservers,omitempty"`
	// A list of Network ranges.
	// REQUIRED
	NetworkRanges *[]NetworkRange `json:"networkRanges"`
	// List of routes.
	Routes *[]Route `json:"routes,omitempty"`
	// Classless Inter-Domain Routing (CIDR).
	// REQUIRED
	TransferNetwork *string `json:"transferNetwork"`
	// The default prefix length for networks in the network area.
	DefaultPrefixLen *int64 `json:"defaultPrefixLen,omitempty"`
	// The maximal prefix length for networks in the network area.
	MaxPrefixLen *int64 `json:"maxPrefixLen,omitempty"`
	// The minimal prefix length for networks in the network area.
	MinPrefixLen *int64 `json:"minPrefixLen,omitempty"`
}

type CreateNetworkAddressFamily

type CreateNetworkAddressFamily struct {
	Ipv4 *CreateNetworkIPv4 `json:"ipv4,omitempty"`
}

type CreateNetworkAreaPayload

type CreateNetworkAreaPayload struct {
	// REQUIRED
	AddressFamily *CreateAreaAddressFamily `json:"addressFamily"`
	// The name for a General Object. Matches Names and also UUIDs.
	// REQUIRED
	Name *string `json:"name"`
}

type CreateNetworkAreaRangePayload

type CreateNetworkAreaRangePayload struct {
	// A list of Network ranges.
	Ipv4 *[]NetworkRange `json:"ipv4,omitempty"`
}

type CreateNetworkAreaRoutePayload

type CreateNetworkAreaRoutePayload struct {
	// List of routes.
	Ipv4 *[]Route `json:"ipv4,omitempty"`
}

type CreateNetworkIPv4

type CreateNetworkIPv4 struct {
	// List of DNS Servers/Nameservers.
	Nameservers  *[]string `json:"nameservers,omitempty"`
	PrefixLength *int64    `json:"prefixLength,omitempty"`
}

type CreateNetworkPayload

type CreateNetworkPayload struct {
	AddressFamily *CreateNetworkAddressFamily `json:"addressFamily,omitempty"`
	// The name for a General Object. Matches Names and also UUIDs.
	// REQUIRED
	Name *string `json:"name"`
}

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

type Error

type Error struct {
	// REQUIRED
	Code *int64 `json:"code"`
	// REQUIRED
	Msg *string `json:"msg"`
}

type MappedNullable

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

type Network

type Network struct {
	// REQUIRED
	Name *string `json:"name"`
	// List of DNS Servers/Nameservers.
	Nameservers *[]string `json:"nameservers,omitempty"`
	// Universally Unique Identifier (UUID).
	// REQUIRED
	NetworkId *string   `json:"networkId"`
	Prefixes  *[]string `json:"prefixes,omitempty"`
	// An IP address.
	PublicIp *string `json:"publicIp,omitempty"`
	// The state of a resource object.
	// REQUIRED
	State *string `json:"state"`
}

type NetworkArea

type NetworkArea struct {
	// Universally Unique Identifier (UUID).
	// REQUIRED
	AreaId *string          `json:"areaId"`
	Ipv4   *NetworkAreaIPv4 `json:"ipv4,omitempty"`
	// REQUIRED
	Name *string `json:"name"`
	// The amount of projects currently referencing this area.
	// REQUIRED
	ProjectCount *int64 `json:"projectCount"`
	// The state of a resource object.
	// REQUIRED
	State *string `json:"state"`
}

type NetworkAreaIPv4

type NetworkAreaIPv4 struct {
	// List of DNS Servers/Nameservers.
	DefaultNameservers *[]string `json:"defaultNameservers,omitempty"`
	// A list of Network ranges.
	NetworkRanges *[]NetworkRange `json:"networkRanges,omitempty"`
	// List of routes.
	Routes *[]Route `json:"routes,omitempty"`
	// Classless Inter-Domain Routing (CIDR).
	TransferNetwork *string `json:"transferNetwork,omitempty"`
	// The default prefix length for networks in the network area.
	DefaultPrefixLen *int64 `json:"defaultPrefixLen,omitempty"`
	// The maximal prefix length for networks in the network area.
	MaxPrefixLen *int64 `json:"maxPrefixLen,omitempty"`
	// The minimal prefix length for networks in the network area.
	MinPrefixLen *int64 `json:"minPrefixLen,omitempty"`
}

type NetworkAreaListResponse

type NetworkAreaListResponse struct {
	// A list of Network areas.
	// REQUIRED
	Items *[]NetworkArea `json:"items"`
}

type NetworkListResponse

type NetworkListResponse struct {
	// List of Networks.
	// REQUIRED
	Items *[]Network `json:"items"`
}

type NetworkRange

type NetworkRange struct {
	// Universally Unique Identifier (UUID).
	NetworkRangeId *string `json:"networkRangeId,omitempty"`
	// Classless Inter-Domain Routing (CIDR).
	// REQUIRED
	Prefix *string `json:"prefix"`
}

type NetworkRangeListResponse

type NetworkRangeListResponse struct {
	// A list of Network ranges.
	// REQUIRED
	Items *[]NetworkRange `json:"items"`
}

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 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 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 PartialUpdateNetworkAreaPayload

type PartialUpdateNetworkAreaPayload struct {
	AddressFamily *UpdateAreaAddressFamily `json:"addressFamily,omitempty"`
	// The name for a General Object. Matches Names and also UUIDs.
	Name *string `json:"name,omitempty"`
}

type PartialUpdateNetworkPayload

type PartialUpdateNetworkPayload struct {
	AddressFamily *UpdateNetworkAddressFamily `json:"addressFamily,omitempty"`
	// The name for a General Object. Matches Names and also UUIDs.
	Name *string `json:"name,omitempty"`
}

type ProjectListResponse

type ProjectListResponse struct {
	// List of STACKIT projects.
	// REQUIRED
	Items *[]string `json:"items"`
}

type Request

type Request struct {
	Details *string `json:"details,omitempty"`
	// Resource action.
	// REQUIRED
	RequestAction *string `json:"requestAction"`
	// ID representing a single API request.
	// REQUIRED
	RequestId *string `json:"requestId"`
	// Resource type.
	// REQUIRED
	RequestType *string `json:"requestType"`
	// REQUIRED
	Resources *[]RequestResource `json:"resources"`
	// The state of a resource object.
	// REQUIRED
	Status *string `json:"status"`
}

type RequestResource

type RequestResource struct {
	// Universally Unique Identifier (UUID).
	// REQUIRED
	Id *string `json:"id"`
	// The state of a resource object.
	// REQUIRED
	Status *string `json:"status"`
	// Resource type.
	// REQUIRED
	Type *string `json:"type"`
}

type Route

type Route struct {
	// An IP address.
	// REQUIRED
	Nexthop *string `json:"nexthop"`
	// Classless Inter-Domain Routing (CIDR).
	// REQUIRED
	Prefix *string `json:"prefix"`
	// Universally Unique Identifier (UUID).
	RouteId *string `json:"routeId,omitempty"`
}

type RouteListResponse

type RouteListResponse struct {
	// List of routes.
	// REQUIRED
	Items *[]Route `json:"items"`
}

type UpdateAreaAddressFamily

type UpdateAreaAddressFamily struct {
	Ipv4 *UpdateAreaIPv4 `json:"ipv4,omitempty"`
}

type UpdateAreaIPv4

type UpdateAreaIPv4 struct {
	DefaultNameservers *[]string `json:"defaultNameservers,omitempty"`
	// The default prefix length for networks in the network area.
	DefaultPrefixLen *int64 `json:"defaultPrefixLen,omitempty"`
	// The maximal prefix length for networks in the network area.
	MaxPrefixLen *int64 `json:"maxPrefixLen,omitempty"`
	// The minimal prefix length for networks in the network area.
	MinPrefixLen *int64 `json:"minPrefixLen,omitempty"`
}

type UpdateNetworkAddressFamily

type UpdateNetworkAddressFamily struct {
	Ipv4 *UpdateNetworkIPv4 `json:"ipv4,omitempty"`
}

type UpdateNetworkIPv4

type UpdateNetworkIPv4 struct {
	// List of DNS Servers/Nameservers.
	Nameservers *[]string `json:"nameservers,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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