iaas

package module
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 22 Imported by: 10

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 The identifier (ID) of a STACKIT Project.
@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 The identifier (ID) of a STACKIT Organization.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@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. If the network is still in use, the deletion will fail.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The identifier (ID) of a STACKIT Project.
@param networkId The identifier (ID) of a STACKIT Network.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@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. The deletion will fail if the network range is still used.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@param networkRangeId The identifier (ID) of a STACKIT Network Range.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@param routeId The identifier (ID) of a STACKIT Route.
@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 of a project.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The identifier (ID) of a STACKIT Project.
@param networkId The identifier (ID) of a STACKIT Network.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@param networkRangeId The identifier (ID) of a STACKIT Network Range.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@param routeId The identifier (ID) of a STACKIT Route.
@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 The identifier (ID) of a STACKIT Organization.
@param requestId The identifier (ID) of a STACKIT Request.
@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 The identifier (ID) of a STACKIT Project.
@param requestId The identifier (ID) of a STACKIT Request.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@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 The identifier (ID) of a STACKIT Organization.
@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 The identifier (ID) of a STACKIT Project.
@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 inside a project.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The identifier (ID) of a STACKIT Project.
@param networkId The identifier (ID) of a STACKIT Network.
@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 The identifier (ID) of a STACKIT Organization.
@param areaId The identifier (ID) of a STACKIT Network Area.
@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 {
	// A list containing DNS Servers/Nameservers for IPv4.
	DefaultNameservers *[]string `json:"defaultNameservers,omitempty"`
	// A list of network ranges.
	NetworkRanges *[]NetworkRange `json:"networkRanges,omitempty"`
	// A list of routes.
	Routes *[]Route `json:"routes,omitempty"`
	// Classless Inter-Domain Routing (CIDR).
	TransferNetwork *string `json:"transferNetwork,omitempty"`
}

Area The basic properties of a network area.

type AreaConfig

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

AreaConfig The basic network area object.

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

AreaPrefixConfigIPv4 The IPv4 prefix config for a network area.

type CreateAreaAddressFamily

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

CreateAreaAddressFamily The addressFamily object for a area create request.

type CreateAreaIPv4

type CreateAreaIPv4 struct {
	DefaultNameservers *[]string `json:"defaultNameservers,omitempty"`
	// A list of network ranges.
	// REQUIRED
	NetworkRanges *[]NetworkRange `json:"networkRanges"`
	// A 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"`
}

CreateAreaIPv4 The config object for a IPv4 network area.

type CreateNetworkAddressFamily

type CreateNetworkAddressFamily struct {
	Ipv4 *CreateNetworkIPv4Body `json:"ipv4,omitempty"`
	Ipv6 *CreateNetworkIPv6Body `json:"ipv6,omitempty"`
}

CreateNetworkAddressFamily The addressFamily object for a network create request.

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

CreateNetworkAreaPayload struct for CreateNetworkAreaPayload

type CreateNetworkAreaRangePayload

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

CreateNetworkAreaRangePayload struct for CreateNetworkAreaRangePayload

type CreateNetworkAreaRoutePayload

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

CreateNetworkAreaRoutePayload struct for CreateNetworkAreaRoutePayload

type CreateNetworkIPv4Body added in v0.7.0

type CreateNetworkIPv4Body struct {
	// A list containing DNS Servers/Nameservers for IPv4.
	Nameservers *[]string `json:"nameservers,omitempty"`
	// Classless Inter-Domain Routing (CIDR).
	Prefix       *string `json:"prefix,omitempty"`
	PrefixLength *int64  `json:"prefixLength,omitempty"`
}

CreateNetworkIPv4Body The config object for an IPv4 network.

type CreateNetworkIPv6Body added in v0.7.0

type CreateNetworkIPv6Body struct {
	// A list containing DNS Servers/Nameservers for IPv6.
	Nameservers *[]string `json:"nameservers,omitempty"`
	// Classless Inter-Domain Routing (CIDR) for IPv6.
	Prefix       *string `json:"prefix,omitempty"`
	PrefixLength *int64  `json:"prefixLength,omitempty"`
}

CreateNetworkIPv6Body The config object for an IPv6 network.

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"`
	// Shows if the network is routed and therefore accessible from other networks.
	Routed *bool `json:"routed,omitempty"`
}

CreateNetworkPayload Object that represents the request body for a network create.

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

type Error

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

Error Error with HTTP error code and an error message.

type MappedNullable

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

type Network

type Network struct {
	// REQUIRED
	Name *string `json:"name"`
	// A list containing DNS Servers/Nameservers for IPv4.
	Nameservers *[]string `json:"nameservers,omitempty"`
	// A list containing DNS Servers/Nameservers for IPv6.
	NameserversV6 *[]string `json:"nameserversV6,omitempty"`
	// Universally Unique Identifier (UUID).
	// REQUIRED
	NetworkId  *string   `json:"networkId"`
	Prefixes   *[]string `json:"prefixes,omitempty"`
	PrefixesV6 *[]string `json:"prefixesV6,omitempty"`
	// Object that represents an IP address.
	PublicIp *string `json:"publicIp,omitempty"`
	// Shows if the network is routed and therefore accessible from other networks.
	Routed *bool `json:"routed,omitempty"`
	// The state of a resource object.
	// REQUIRED
	State *string `json:"state"`
}

Network Object that represents a network.

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 a specific area.
	// REQUIRED
	ProjectCount *int64 `json:"projectCount"`
	// The state of a resource object.
	// REQUIRED
	State *string `json:"state"`
}

NetworkArea Object that represents a network area.

type NetworkAreaIPv4

type NetworkAreaIPv4 struct {
	// A list containing DNS Servers/Nameservers for IPv4.
	DefaultNameservers *[]string `json:"defaultNameservers,omitempty"`
	// A list of network ranges.
	NetworkRanges *[]NetworkRange `json:"networkRanges,omitempty"`
	// A 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"`
}

NetworkAreaIPv4 The IPv4 properties of a network area.

type NetworkAreaListResponse

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

NetworkAreaListResponse Network area list response.

type NetworkListResponse

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

NetworkListResponse Network list response.

type NetworkRange

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

NetworkRange Object that represents a network range.

type NetworkRangeListResponse

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

NetworkRangeListResponse Network Range list response.

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

PartialUpdateNetworkAreaPayload struct for PartialUpdateNetworkAreaPayload

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"`
	// Shows if the network is routed and therefore accessible from other networks.
	Routed *bool `json:"routed,omitempty"`
}

PartialUpdateNetworkPayload Object that represents the request body for a network update.

type ProjectListResponse

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

ProjectListResponse Project list response.

type Request

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

Request Object that represents a request.

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"`
	// Object that represents a resource type.
	// REQUIRED
	Type *string `json:"type"`
}

RequestResource Object that represents a resource as part of a request.

type Route

type Route struct {
	// Object that represents 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"`
}

Route Object represents a network route.

type RouteListResponse

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

RouteListResponse Route list response.

type UpdateAreaAddressFamily

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

UpdateAreaAddressFamily The addressFamily object for a area update request.

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

UpdateAreaIPv4 The update object for a IPv4 network area.

type UpdateNetworkAddressFamily

type UpdateNetworkAddressFamily struct {
	Ipv4 *UpdateNetworkIPv4Body `json:"ipv4,omitempty"`
	Ipv6 *UpdateNetworkIPv6Body `json:"ipv6,omitempty"`
}

UpdateNetworkAddressFamily The addressFamily object for a network update request.

type UpdateNetworkIPv4Body added in v0.7.0

type UpdateNetworkIPv4Body struct {
	// A list containing DNS Servers/Nameservers for IPv4.
	Nameservers *[]string `json:"nameservers,omitempty"`
}

UpdateNetworkIPv4Body The config object for a IPv4 network update.

type UpdateNetworkIPv6Body added in v0.7.0

type UpdateNetworkIPv6Body struct {
	// A list containing DNS Servers/Nameservers for IPv6.
	Nameservers *[]string `json:"nameservers,omitempty"`
}

UpdateNetworkIPv6Body The config object for a IPv6 network update.

type V1NetworkGateway added in v0.7.0

type V1NetworkGateway struct {
}

V1NetworkGateway The gateway of a network. If not specified the first ip of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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