v1alphaapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)

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

APIClient manages communication with the STACKIT Load Balancer IP Lists API API v1alpha.0.0 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. 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() *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

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 ApiDeleteIPListRequest

type ApiDeleteIPListRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiDeleteIPListRequest) Execute

func (r ApiDeleteIPListRequest) Execute() (map[string]interface{}, error)

type ApiGetIPListRequest

type ApiGetIPListRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiGetIPListRequest) Execute

type ApiGetQuotaRequest

type ApiGetQuotaRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiGetQuotaRequest) Execute

func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error)

type ApiListIPListsRequest

type ApiListIPListsRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListIPListsRequest) Execute

type ApiUploadIPListRequest

type ApiUploadIPListRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiUploadIPListRequest) Execute

func (ApiUploadIPListRequest) UploadIPListPayload

func (r ApiUploadIPListRequest) UploadIPListPayload(uploadIPListPayload UploadIPListPayload) ApiUploadIPListRequest

type DefaultAPI

type DefaultAPI interface {

	/*
			DeleteIPList Delete an IP List configuration

			Removes the IP list configuration from the project. If the IP list is referenced by load balancers,
		 clear or replace the reference first.

			@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			@param projectId
			@param region
			@param name
			@return ApiDeleteIPListRequest
	*/
	DeleteIPList(ctx context.Context, projectId string, region string, name string) ApiDeleteIPListRequest

	// DeleteIPListExecute executes the request
	//  @return map[string]interface{}
	DeleteIPListExecute(r ApiDeleteIPListRequest) (map[string]interface{}, error)

	/*
		GetIPList Retrieve metadata of an existing IP list configuration in a project.

		GetIPList returns metadata of a single IP list by name, without CIDR entries.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param projectId
		@param region
		@param name
		@return ApiGetIPListRequest
	*/
	GetIPList(ctx context.Context, projectId string, region string, name string) ApiGetIPListRequest

	// GetIPListExecute executes the request
	//  @return GetIPListResponse
	GetIPListExecute(r ApiGetIPListRequest) (*GetIPListResponse, error)

	/*
		GetQuota Get the quota for IP lists in a project

		Retrieves the IP List resource quota for the project.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param projectId
		@param region
		@return ApiGetQuotaRequest
	*/
	GetQuota(ctx context.Context, projectId string, region string) ApiGetQuotaRequest

	// GetQuotaExecute executes the request
	//  @return GetQuotaResponse
	GetQuotaExecute(r ApiGetQuotaRequest) (*GetQuotaResponse, error)

	/*
			ListIPLists List metadata of all IP lists in a project

			ListIPLists returns every IP list in the project without CIDR entries.
		 No pagination while the per-project limit is 3.

			@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			@param projectId
			@param region
			@return ApiListIPListsRequest
	*/
	ListIPLists(ctx context.Context, projectId string, region string) ApiListIPListsRequest

	// ListIPListsExecute executes the request
	//  @return ListIPListsResponse
	ListIPListsExecute(r ApiListIPListsRequest) (*ListIPListsResponse, error)

	/*
		UploadIPList Create/Replace an IP list

		UploadIPList creates the IP list or replaces its content. Raw upload is in `file_content`.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param projectId
		@param region
		@param name
		@return ApiUploadIPListRequest
	*/
	UploadIPList(ctx context.Context, projectId string, region string, name string) ApiUploadIPListRequest

	// UploadIPListExecute executes the request
	//  @return GetIPListResponse
	UploadIPListExecute(r ApiUploadIPListRequest) (*GetIPListResponse, error)
}

type DefaultAPIService

type DefaultAPIService service

DefaultAPIService DefaultAPI service

func (*DefaultAPIService) DeleteIPList

func (a *DefaultAPIService) DeleteIPList(ctx context.Context, projectId string, region string, name string) ApiDeleteIPListRequest

DeleteIPList Delete an IP List configuration

Removes the IP list configuration from the project. If the IP list is referenced by load balancers,

clear or replace the reference first.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId
@param region
@param name
@return ApiDeleteIPListRequest

func (*DefaultAPIService) DeleteIPListExecute

func (a *DefaultAPIService) DeleteIPListExecute(r ApiDeleteIPListRequest) (map[string]interface{}, error)

Execute executes the request

@return map[string]interface{}

func (*DefaultAPIService) GetIPList

func (a *DefaultAPIService) GetIPList(ctx context.Context, projectId string, region string, name string) ApiGetIPListRequest

GetIPList Retrieve metadata of an existing IP list configuration in a project.

GetIPList returns metadata of a single IP list by name, without CIDR entries.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId
@param region
@param name
@return ApiGetIPListRequest

func (*DefaultAPIService) GetIPListExecute

func (a *DefaultAPIService) GetIPListExecute(r ApiGetIPListRequest) (*GetIPListResponse, error)

Execute executes the request

@return GetIPListResponse

func (*DefaultAPIService) GetQuota

func (a *DefaultAPIService) GetQuota(ctx context.Context, projectId string, region string) ApiGetQuotaRequest

GetQuota Get the quota for IP lists in a project

Retrieves the IP List resource quota for the project.

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

func (*DefaultAPIService) GetQuotaExecute

func (a *DefaultAPIService) GetQuotaExecute(r ApiGetQuotaRequest) (*GetQuotaResponse, error)

Execute executes the request

@return GetQuotaResponse

func (*DefaultAPIService) ListIPLists

func (a *DefaultAPIService) ListIPLists(ctx context.Context, projectId string, region string) ApiListIPListsRequest

ListIPLists List metadata of all IP lists in a project

ListIPLists returns every IP list in the project without CIDR entries.

No pagination while the per-project limit is 3.

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

func (*DefaultAPIService) ListIPListsExecute

Execute executes the request

@return ListIPListsResponse

func (*DefaultAPIService) UploadIPList

func (a *DefaultAPIService) UploadIPList(ctx context.Context, projectId string, region string, name string) ApiUploadIPListRequest

UploadIPList Create/Replace an IP list

UploadIPList creates the IP list or replaces its content. Raw upload is in `file_content`.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId
@param region
@param name
@return ApiUploadIPListRequest

func (*DefaultAPIService) UploadIPListExecute

func (a *DefaultAPIService) UploadIPListExecute(r ApiUploadIPListRequest) (*GetIPListResponse, error)

Execute executes the request

@return GetIPListResponse

type DefaultAPIServiceMock

type DefaultAPIServiceMock struct {
	// DeleteIPListExecuteMock can be populated to implement the behavior of the DeleteIPListExecute function of this mock
	DeleteIPListExecuteMock *func(r ApiDeleteIPListRequest) (map[string]interface{}, error)
	// GetIPListExecuteMock can be populated to implement the behavior of the GetIPListExecute function of this mock
	GetIPListExecuteMock *func(r ApiGetIPListRequest) (*GetIPListResponse, error)
	// GetQuotaExecuteMock can be populated to implement the behavior of the GetQuotaExecute function of this mock
	GetQuotaExecuteMock *func(r ApiGetQuotaRequest) (*GetQuotaResponse, error)
	// ListIPListsExecuteMock can be populated to implement the behavior of the ListIPListsExecute function of this mock
	ListIPListsExecuteMock *func(r ApiListIPListsRequest) (*ListIPListsResponse, error)
	// UploadIPListExecuteMock can be populated to implement the behavior of the UploadIPListExecute function of this mock
	UploadIPListExecuteMock *func(r ApiUploadIPListRequest) (*GetIPListResponse, error)
}

DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct.

func (DefaultAPIServiceMock) DeleteIPList

func (a DefaultAPIServiceMock) DeleteIPList(ctx context.Context, projectId string, region string, name string) ApiDeleteIPListRequest

func (DefaultAPIServiceMock) DeleteIPListExecute

func (a DefaultAPIServiceMock) DeleteIPListExecute(r ApiDeleteIPListRequest) (map[string]interface{}, error)

DeleteIPListExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteIPListExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) GetIPList

func (a DefaultAPIServiceMock) GetIPList(ctx context.Context, projectId string, region string, name string) ApiGetIPListRequest

func (DefaultAPIServiceMock) GetIPListExecute

GetIPListExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetIPListExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) GetQuota

func (a DefaultAPIServiceMock) GetQuota(ctx context.Context, projectId string, region string) ApiGetQuotaRequest

func (DefaultAPIServiceMock) GetQuotaExecute

GetQuotaExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetQuotaExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) ListIPLists

func (a DefaultAPIServiceMock) ListIPLists(ctx context.Context, projectId string, region string) ApiListIPListsRequest

func (DefaultAPIServiceMock) ListIPListsExecute

ListIPListsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListIPListsExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) UploadIPList

func (a DefaultAPIServiceMock) UploadIPList(ctx context.Context, projectId string, region string, name string) ApiUploadIPListRequest

func (DefaultAPIServiceMock) UploadIPListExecute

UploadIPListExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UploadIPListExecuteMock field in the DefaultAPIServiceMock struct.

type GetIPListResponse

type GetIPListResponse struct {
	// Unique SHA-256 hex fingerprint used to verify the stored IP list content.
	ContentHash *string `json:"contentHash,omitempty" validate:"regexp=^[a-f0-9]{64}$"`
	// Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per IP list.  **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them.  **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between.
	Labels *map[string]string `json:"labels,omitempty"`
	// IP list name.
	Name string `json:"name" validate:"regexp=^[0-9a-z](?:(?:[0-9a-z]|-){0\\,49}[0-9a-z])?$"`
	// Number of IPv4 CIDR entries stored in the list.
	NumberOfIps *int32 `json:"numberOfIps,omitempty"`
	// Current use of this IP list in load balancers.
	Usage                *IPListUsage `json:"usage,omitempty"`
	AdditionalProperties map[string]interface{}
}

GetIPListResponse GetIPListResponse returns IP list configuration without CIDR entries.

func NewGetIPListResponse

func NewGetIPListResponse(name string) *GetIPListResponse

NewGetIPListResponse instantiates a new GetIPListResponse 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 NewGetIPListResponseWithDefaults

func NewGetIPListResponseWithDefaults() *GetIPListResponse

NewGetIPListResponseWithDefaults instantiates a new GetIPListResponse 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 (*GetIPListResponse) GetContentHash

func (o *GetIPListResponse) GetContentHash() string

GetContentHash returns the ContentHash field value if set, zero value otherwise.

func (*GetIPListResponse) GetContentHashOk

func (o *GetIPListResponse) GetContentHashOk() (*string, bool)

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

func (*GetIPListResponse) GetLabels

func (o *GetIPListResponse) GetLabels() map[string]string

GetLabels returns the Labels field value if set, zero value otherwise.

func (*GetIPListResponse) GetLabelsOk

func (o *GetIPListResponse) GetLabelsOk() (*map[string]string, bool)

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

func (*GetIPListResponse) GetName

func (o *GetIPListResponse) GetName() string

GetName returns the Name field value

func (*GetIPListResponse) GetNameOk

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

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

func (*GetIPListResponse) GetNumberOfIps

func (o *GetIPListResponse) GetNumberOfIps() int32

GetNumberOfIps returns the NumberOfIps field value if set, zero value otherwise.

func (*GetIPListResponse) GetNumberOfIpsOk

func (o *GetIPListResponse) GetNumberOfIpsOk() (*int32, bool)

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

func (*GetIPListResponse) GetUsage

func (o *GetIPListResponse) GetUsage() IPListUsage

GetUsage returns the Usage field value if set, zero value otherwise.

func (*GetIPListResponse) GetUsageOk

func (o *GetIPListResponse) GetUsageOk() (*IPListUsage, bool)

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

func (*GetIPListResponse) HasContentHash

func (o *GetIPListResponse) HasContentHash() bool

HasContentHash returns a boolean if a field has been set.

func (*GetIPListResponse) HasLabels

func (o *GetIPListResponse) HasLabels() bool

HasLabels returns a boolean if a field has been set.

func (*GetIPListResponse) HasNumberOfIps

func (o *GetIPListResponse) HasNumberOfIps() bool

HasNumberOfIps returns a boolean if a field has been set.

func (*GetIPListResponse) HasUsage

func (o *GetIPListResponse) HasUsage() bool

HasUsage returns a boolean if a field has been set.

func (GetIPListResponse) MarshalJSON

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

func (*GetIPListResponse) SetContentHash

func (o *GetIPListResponse) SetContentHash(v string)

SetContentHash gets a reference to the given string and assigns it to the ContentHash field.

func (*GetIPListResponse) SetLabels

func (o *GetIPListResponse) SetLabels(v map[string]string)

SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.

func (*GetIPListResponse) SetName

func (o *GetIPListResponse) SetName(v string)

SetName sets field value

func (*GetIPListResponse) SetNumberOfIps

func (o *GetIPListResponse) SetNumberOfIps(v int32)

SetNumberOfIps gets a reference to the given int32 and assigns it to the NumberOfIps field.

func (*GetIPListResponse) SetUsage

func (o *GetIPListResponse) SetUsage(v IPListUsage)

SetUsage gets a reference to the given IPListUsage and assigns it to the Usage field.

func (GetIPListResponse) ToMap

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

func (*GetIPListResponse) UnmarshalJSON

func (o *GetIPListResponse) UnmarshalJSON(data []byte) (err error)

type GetQuotaResponse

type GetQuotaResponse struct {
	// Project identifier
	ProjectId *string `json:"projectId,omitempty" validate:"regexp=^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"`
	Quotas    *Quotas `json:"quotas,omitempty"`
	// Region
	Region               *string `json:"region,omitempty" validate:"regexp=^[a-z]{2\\,4}[0-9]{2}$"`
	AdditionalProperties map[string]interface{}
}

GetQuotaResponse GetQuotaResponse returns the configured IP list quota for the project and region.

func NewGetQuotaResponse

func NewGetQuotaResponse() *GetQuotaResponse

NewGetQuotaResponse instantiates a new GetQuotaResponse 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 NewGetQuotaResponseWithDefaults

func NewGetQuotaResponseWithDefaults() *GetQuotaResponse

NewGetQuotaResponseWithDefaults instantiates a new GetQuotaResponse 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 (*GetQuotaResponse) GetProjectId

func (o *GetQuotaResponse) GetProjectId() string

GetProjectId returns the ProjectId field value if set, zero value otherwise.

func (*GetQuotaResponse) GetProjectIdOk

func (o *GetQuotaResponse) GetProjectIdOk() (*string, bool)

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

func (*GetQuotaResponse) GetQuotas

func (o *GetQuotaResponse) GetQuotas() Quotas

GetQuotas returns the Quotas field value if set, zero value otherwise.

func (*GetQuotaResponse) GetQuotasOk

func (o *GetQuotaResponse) GetQuotasOk() (*Quotas, bool)

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

func (*GetQuotaResponse) GetRegion

func (o *GetQuotaResponse) GetRegion() string

GetRegion returns the Region field value if set, zero value otherwise.

func (*GetQuotaResponse) GetRegionOk

func (o *GetQuotaResponse) GetRegionOk() (*string, bool)

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

func (*GetQuotaResponse) HasProjectId

func (o *GetQuotaResponse) HasProjectId() bool

HasProjectId returns a boolean if a field has been set.

func (*GetQuotaResponse) HasQuotas

func (o *GetQuotaResponse) HasQuotas() bool

HasQuotas returns a boolean if a field has been set.

func (*GetQuotaResponse) HasRegion

func (o *GetQuotaResponse) HasRegion() bool

HasRegion returns a boolean if a field has been set.

func (GetQuotaResponse) MarshalJSON

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

func (*GetQuotaResponse) SetProjectId

func (o *GetQuotaResponse) SetProjectId(v string)

SetProjectId gets a reference to the given string and assigns it to the ProjectId field.

func (*GetQuotaResponse) SetQuotas

func (o *GetQuotaResponse) SetQuotas(v Quotas)

SetQuotas gets a reference to the given Quotas and assigns it to the Quotas field.

func (*GetQuotaResponse) SetRegion

func (o *GetQuotaResponse) SetRegion(v string)

SetRegion gets a reference to the given string and assigns it to the Region field.

func (GetQuotaResponse) ToMap

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

func (*GetQuotaResponse) UnmarshalJSON

func (o *GetQuotaResponse) UnmarshalJSON(data []byte) (err error)

type GoogleProtobufAny

type GoogleProtobufAny struct {
	// The type of the serialized message.
	Type                 *string `json:"@type,omitempty"`
	AdditionalProperties map[string]interface{}
}

GoogleProtobufAny Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

func NewGoogleProtobufAny

func NewGoogleProtobufAny() *GoogleProtobufAny

NewGoogleProtobufAny instantiates a new GoogleProtobufAny 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 NewGoogleProtobufAnyWithDefaults

func NewGoogleProtobufAnyWithDefaults() *GoogleProtobufAny

NewGoogleProtobufAnyWithDefaults instantiates a new GoogleProtobufAny 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 (*GoogleProtobufAny) GetType

func (o *GoogleProtobufAny) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*GoogleProtobufAny) GetTypeOk

func (o *GoogleProtobufAny) GetTypeOk() (*string, bool)

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

func (*GoogleProtobufAny) HasType

func (o *GoogleProtobufAny) HasType() bool

HasType returns a boolean if a field has been set.

func (GoogleProtobufAny) MarshalJSON

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

func (*GoogleProtobufAny) SetType

func (o *GoogleProtobufAny) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (GoogleProtobufAny) ToMap

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

func (*GoogleProtobufAny) UnmarshalJSON

func (o *GoogleProtobufAny) UnmarshalJSON(data []byte) (err error)

type IPListUsage

type IPListUsage struct {
	// Number of load balancers currently using this IP list.
	Count *int32 `json:"count,omitempty"`
	// List of load balancers that reference this IP list.
	Items                []string `json:"items,omitempty"`
	AdditionalProperties map[string]interface{}
}

IPListUsage IPListUsage describes which NLB/ALB currently reference an IP list.

func NewIPListUsage

func NewIPListUsage() *IPListUsage

NewIPListUsage instantiates a new IPListUsage 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 NewIPListUsageWithDefaults

func NewIPListUsageWithDefaults() *IPListUsage

NewIPListUsageWithDefaults instantiates a new IPListUsage 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 (*IPListUsage) GetCount

func (o *IPListUsage) GetCount() int32

GetCount returns the Count field value if set, zero value otherwise.

func (*IPListUsage) GetCountOk

func (o *IPListUsage) GetCountOk() (*int32, bool)

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

func (*IPListUsage) GetItems

func (o *IPListUsage) GetItems() []string

GetItems returns the Items field value if set, zero value otherwise.

func (*IPListUsage) GetItemsOk

func (o *IPListUsage) GetItemsOk() ([]string, bool)

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

func (*IPListUsage) HasCount

func (o *IPListUsage) HasCount() bool

HasCount returns a boolean if a field has been set.

func (*IPListUsage) HasItems

func (o *IPListUsage) HasItems() bool

HasItems returns a boolean if a field has been set.

func (IPListUsage) MarshalJSON

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

func (*IPListUsage) SetCount

func (o *IPListUsage) SetCount(v int32)

SetCount gets a reference to the given int32 and assigns it to the Count field.

func (*IPListUsage) SetItems

func (o *IPListUsage) SetItems(v []string)

SetItems gets a reference to the given []string and assigns it to the Items field.

func (IPListUsage) ToMap

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

func (*IPListUsage) UnmarshalJSON

func (o *IPListUsage) UnmarshalJSON(data []byte) (err error)

type IPListsQuota

type IPListsQuota struct {
	// The maximum number of IP lists allowed in this project. Defaults to 3. Use -1 to indicate unlimited.
	Limit *int32 `json:"limit,omitempty"`
	// The number of IP lists that currently exist in this project.
	Usage                *int32 `json:"usage,omitempty"`
	AdditionalProperties map[string]interface{}
}

IPListsQuota IPListsQuota holds the limits and current usage for IP list resources. Defaults: limit=3 per project, max_entries_per_list=50000.

func NewIPListsQuota

func NewIPListsQuota() *IPListsQuota

NewIPListsQuota instantiates a new IPListsQuota 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 NewIPListsQuotaWithDefaults

func NewIPListsQuotaWithDefaults() *IPListsQuota

NewIPListsQuotaWithDefaults instantiates a new IPListsQuota 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 (*IPListsQuota) GetLimit

func (o *IPListsQuota) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*IPListsQuota) GetLimitOk

func (o *IPListsQuota) GetLimitOk() (*int32, bool)

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

func (*IPListsQuota) GetUsage

func (o *IPListsQuota) GetUsage() int32

GetUsage returns the Usage field value if set, zero value otherwise.

func (*IPListsQuota) GetUsageOk

func (o *IPListsQuota) GetUsageOk() (*int32, bool)

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

func (*IPListsQuota) HasLimit

func (o *IPListsQuota) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (*IPListsQuota) HasUsage

func (o *IPListsQuota) HasUsage() bool

HasUsage returns a boolean if a field has been set.

func (IPListsQuota) MarshalJSON

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

func (*IPListsQuota) SetLimit

func (o *IPListsQuota) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (*IPListsQuota) SetUsage

func (o *IPListsQuota) SetUsage(v int32)

SetUsage gets a reference to the given int32 and assigns it to the Usage field.

func (IPListsQuota) ToMap

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

func (*IPListsQuota) UnmarshalJSON

func (o *IPListsQuota) UnmarshalJSON(data []byte) (err error)

type ListIPListsResponse

type ListIPListsResponse struct {
	// Every IP list in the project and region. Never includes the CIDR entries themselves.
	Items                []GetIPListResponse `json:"items,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListIPListsResponse ListIPListsResponse returns metadata for all IP lists in a project and region. The CIDR entries themselves are never returned.

func NewListIPListsResponse

func NewListIPListsResponse() *ListIPListsResponse

NewListIPListsResponse instantiates a new ListIPListsResponse 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 NewListIPListsResponseWithDefaults

func NewListIPListsResponseWithDefaults() *ListIPListsResponse

NewListIPListsResponseWithDefaults instantiates a new ListIPListsResponse 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 (*ListIPListsResponse) GetItems

func (o *ListIPListsResponse) GetItems() []GetIPListResponse

GetItems returns the Items field value if set, zero value otherwise.

func (*ListIPListsResponse) GetItemsOk

func (o *ListIPListsResponse) GetItemsOk() ([]GetIPListResponse, bool)

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

func (*ListIPListsResponse) HasItems

func (o *ListIPListsResponse) HasItems() bool

HasItems returns a boolean if a field has been set.

func (ListIPListsResponse) MarshalJSON

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

func (*ListIPListsResponse) SetItems

func (o *ListIPListsResponse) SetItems(v []GetIPListResponse)

SetItems gets a reference to the given []GetIPListResponse and assigns it to the Items field.

func (ListIPListsResponse) ToMap

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

func (*ListIPListsResponse) UnmarshalJSON

func (o *ListIPListsResponse) UnmarshalJSON(data []byte) (err 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 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 NullableGetIPListResponse

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

func NewNullableGetIPListResponse

func NewNullableGetIPListResponse(val *GetIPListResponse) *NullableGetIPListResponse

func (NullableGetIPListResponse) Get

func (NullableGetIPListResponse) IsSet

func (v NullableGetIPListResponse) IsSet() bool

func (NullableGetIPListResponse) MarshalJSON

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

func (*NullableGetIPListResponse) Set

func (*NullableGetIPListResponse) UnmarshalJSON

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

func (*NullableGetIPListResponse) Unset

func (v *NullableGetIPListResponse) Unset()

type NullableGetQuotaResponse

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

func NewNullableGetQuotaResponse

func NewNullableGetQuotaResponse(val *GetQuotaResponse) *NullableGetQuotaResponse

func (NullableGetQuotaResponse) Get

func (NullableGetQuotaResponse) IsSet

func (v NullableGetQuotaResponse) IsSet() bool

func (NullableGetQuotaResponse) MarshalJSON

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

func (*NullableGetQuotaResponse) Set

func (*NullableGetQuotaResponse) UnmarshalJSON

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

func (*NullableGetQuotaResponse) Unset

func (v *NullableGetQuotaResponse) Unset()

type NullableGoogleProtobufAny

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

func NewNullableGoogleProtobufAny

func NewNullableGoogleProtobufAny(val *GoogleProtobufAny) *NullableGoogleProtobufAny

func (NullableGoogleProtobufAny) Get

func (NullableGoogleProtobufAny) IsSet

func (v NullableGoogleProtobufAny) IsSet() bool

func (NullableGoogleProtobufAny) MarshalJSON

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

func (*NullableGoogleProtobufAny) Set

func (*NullableGoogleProtobufAny) UnmarshalJSON

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

func (*NullableGoogleProtobufAny) Unset

func (v *NullableGoogleProtobufAny) Unset()

type NullableIPListUsage

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

func NewNullableIPListUsage

func NewNullableIPListUsage(val *IPListUsage) *NullableIPListUsage

func (NullableIPListUsage) Get

func (NullableIPListUsage) IsSet

func (v NullableIPListUsage) IsSet() bool

func (NullableIPListUsage) MarshalJSON

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

func (*NullableIPListUsage) Set

func (v *NullableIPListUsage) Set(val *IPListUsage)

func (*NullableIPListUsage) UnmarshalJSON

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

func (*NullableIPListUsage) Unset

func (v *NullableIPListUsage) Unset()

type NullableIPListsQuota

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

func NewNullableIPListsQuota

func NewNullableIPListsQuota(val *IPListsQuota) *NullableIPListsQuota

func (NullableIPListsQuota) Get

func (NullableIPListsQuota) IsSet

func (v NullableIPListsQuota) IsSet() bool

func (NullableIPListsQuota) MarshalJSON

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

func (*NullableIPListsQuota) Set

func (v *NullableIPListsQuota) Set(val *IPListsQuota)

func (*NullableIPListsQuota) UnmarshalJSON

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

func (*NullableIPListsQuota) Unset

func (v *NullableIPListsQuota) 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 NullableListIPListsResponse

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

func NewNullableListIPListsResponse

func NewNullableListIPListsResponse(val *ListIPListsResponse) *NullableListIPListsResponse

func (NullableListIPListsResponse) Get

func (NullableListIPListsResponse) IsSet

func (NullableListIPListsResponse) MarshalJSON

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

func (*NullableListIPListsResponse) Set

func (*NullableListIPListsResponse) UnmarshalJSON

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

func (*NullableListIPListsResponse) Unset

func (v *NullableListIPListsResponse) Unset()

type NullableQuotas

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

func NewNullableQuotas

func NewNullableQuotas(val *Quotas) *NullableQuotas

func (NullableQuotas) Get

func (v NullableQuotas) Get() *Quotas

func (NullableQuotas) IsSet

func (v NullableQuotas) IsSet() bool

func (NullableQuotas) MarshalJSON

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

func (*NullableQuotas) Set

func (v *NullableQuotas) Set(val *Quotas)

func (*NullableQuotas) UnmarshalJSON

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

func (*NullableQuotas) Unset

func (v *NullableQuotas) Unset()

type NullableStatus

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

func NewNullableStatus

func NewNullableStatus(val *Status) *NullableStatus

func (NullableStatus) Get

func (v NullableStatus) Get() *Status

func (NullableStatus) IsSet

func (v NullableStatus) IsSet() bool

func (NullableStatus) MarshalJSON

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

func (*NullableStatus) Set

func (v *NullableStatus) Set(val *Status)

func (*NullableStatus) UnmarshalJSON

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

func (*NullableStatus) Unset

func (v *NullableStatus) 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 NullableUploadIPListPayload

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

func NewNullableUploadIPListPayload

func NewNullableUploadIPListPayload(val *UploadIPListPayload) *NullableUploadIPListPayload

func (NullableUploadIPListPayload) Get

func (NullableUploadIPListPayload) IsSet

func (NullableUploadIPListPayload) MarshalJSON

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

func (*NullableUploadIPListPayload) Set

func (*NullableUploadIPListPayload) UnmarshalJSON

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

func (*NullableUploadIPListPayload) Unset

func (v *NullableUploadIPListPayload) Unset()

type Quotas

type Quotas struct {
	IpLists              *IPListsQuota `json:"ipLists,omitempty"`
	AdditionalProperties map[string]interface{}
}

Quotas Quotas holds the specific quota elements for resources managed by this API.

func NewQuotas

func NewQuotas() *Quotas

NewQuotas instantiates a new Quotas 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 NewQuotasWithDefaults

func NewQuotasWithDefaults() *Quotas

NewQuotasWithDefaults instantiates a new Quotas 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 (*Quotas) GetIpLists

func (o *Quotas) GetIpLists() IPListsQuota

GetIpLists returns the IpLists field value if set, zero value otherwise.

func (*Quotas) GetIpListsOk

func (o *Quotas) GetIpListsOk() (*IPListsQuota, bool)

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

func (*Quotas) HasIpLists

func (o *Quotas) HasIpLists() bool

HasIpLists returns a boolean if a field has been set.

func (Quotas) MarshalJSON

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

func (*Quotas) SetIpLists

func (o *Quotas) SetIpLists(v IPListsQuota)

SetIpLists gets a reference to the given IPListsQuota and assigns it to the IpLists field.

func (Quotas) ToMap

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

func (*Quotas) UnmarshalJSON

func (o *Quotas) UnmarshalJSON(data []byte) (err error)

type Status

type Status struct {
	// The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
	Code *int32 `json:"code,omitempty"`
	// A list of messages that carry the error details.  There is a common set of message types for APIs to use.
	Details []GoogleProtobufAny `json:"details,omitempty"`
	// A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

Status The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).

func NewStatus

func NewStatus() *Status

NewStatus instantiates a new Status 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 NewStatusWithDefaults

func NewStatusWithDefaults() *Status

NewStatusWithDefaults instantiates a new Status 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 (*Status) GetCode

func (o *Status) GetCode() int32

GetCode returns the Code field value if set, zero value otherwise.

func (*Status) GetCodeOk

func (o *Status) GetCodeOk() (*int32, bool)

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

func (*Status) GetDetails

func (o *Status) GetDetails() []GoogleProtobufAny

GetDetails returns the Details field value if set, zero value otherwise.

func (*Status) GetDetailsOk

func (o *Status) GetDetailsOk() ([]GoogleProtobufAny, bool)

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

func (*Status) GetMessage

func (o *Status) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*Status) GetMessageOk

func (o *Status) GetMessageOk() (*string, bool)

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

func (*Status) HasCode

func (o *Status) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*Status) HasDetails

func (o *Status) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*Status) HasMessage

func (o *Status) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (Status) MarshalJSON

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

func (*Status) SetCode

func (o *Status) SetCode(v int32)

SetCode gets a reference to the given int32 and assigns it to the Code field.

func (*Status) SetDetails

func (o *Status) SetDetails(v []GoogleProtobufAny)

SetDetails gets a reference to the given []GoogleProtobufAny and assigns it to the Details field.

func (*Status) SetMessage

func (o *Status) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (Status) ToMap

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

func (*Status) UnmarshalJSON

func (o *Status) UnmarshalJSON(data []byte) (err error)

type UploadIPListPayload

type UploadIPListPayload struct {
	// Raw upload payload as a plain UTF-8 string. Newline-separated `.txt` list of IPv4 CIDR entries, or CSV with `cidr,labels` columns (any other columns are ignored).
	FileContent string `json:"fileContent"`
	// Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per IP list.  **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them.  **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between.
	Labels *map[string]string `json:"labels,omitempty"`
	// IP list name
	Name string `json:"name" validate:"regexp=^[0-9a-z](?:(?:[0-9a-z]|-){0\\,49}[0-9a-z])?$"`
	// Project identifier
	ProjectId *string `json:"projectId,omitempty" validate:"regexp=^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"`
	// Region
	Region               *string `json:"region,omitempty" validate:"regexp=^[a-z]{2\\,4}[0-9]{2}$"`
	AdditionalProperties map[string]interface{}
}

UploadIPListPayload Request payload for creating or replacing an IP list. **Limits & Restrictions:** - **Project Quota:** Maximum of 3 IP lists allowed per project. - **Payload Size:** The entire HTTP request body JSON payload is restricted to a maximum size of 2 MB. This limit applies to the full JSON structure, including all fields (`name`, `projectId`, `region`, `fileContent`) and all `labels` keys and values. - **Rate Limit:** 1 request per minute.

func NewUploadIPListPayload

func NewUploadIPListPayload(fileContent string, name string) *UploadIPListPayload

NewUploadIPListPayload instantiates a new UploadIPListPayload 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 NewUploadIPListPayloadWithDefaults

func NewUploadIPListPayloadWithDefaults() *UploadIPListPayload

NewUploadIPListPayloadWithDefaults instantiates a new UploadIPListPayload 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 (*UploadIPListPayload) GetFileContent

func (o *UploadIPListPayload) GetFileContent() string

GetFileContent returns the FileContent field value

func (*UploadIPListPayload) GetFileContentOk

func (o *UploadIPListPayload) GetFileContentOk() (*string, bool)

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

func (*UploadIPListPayload) GetLabels

func (o *UploadIPListPayload) GetLabels() map[string]string

GetLabels returns the Labels field value if set, zero value otherwise.

func (*UploadIPListPayload) GetLabelsOk

func (o *UploadIPListPayload) GetLabelsOk() (*map[string]string, bool)

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

func (*UploadIPListPayload) GetName

func (o *UploadIPListPayload) GetName() string

GetName returns the Name field value

func (*UploadIPListPayload) GetNameOk

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

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

func (*UploadIPListPayload) GetProjectId

func (o *UploadIPListPayload) GetProjectId() string

GetProjectId returns the ProjectId field value if set, zero value otherwise.

func (*UploadIPListPayload) GetProjectIdOk

func (o *UploadIPListPayload) GetProjectIdOk() (*string, bool)

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

func (*UploadIPListPayload) GetRegion

func (o *UploadIPListPayload) GetRegion() string

GetRegion returns the Region field value if set, zero value otherwise.

func (*UploadIPListPayload) GetRegionOk

func (o *UploadIPListPayload) GetRegionOk() (*string, bool)

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

func (*UploadIPListPayload) HasLabels

func (o *UploadIPListPayload) HasLabels() bool

HasLabels returns a boolean if a field has been set.

func (*UploadIPListPayload) HasProjectId

func (o *UploadIPListPayload) HasProjectId() bool

HasProjectId returns a boolean if a field has been set.

func (*UploadIPListPayload) HasRegion

func (o *UploadIPListPayload) HasRegion() bool

HasRegion returns a boolean if a field has been set.

func (UploadIPListPayload) MarshalJSON

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

func (*UploadIPListPayload) SetFileContent

func (o *UploadIPListPayload) SetFileContent(v string)

SetFileContent sets field value

func (*UploadIPListPayload) SetLabels

func (o *UploadIPListPayload) SetLabels(v map[string]string)

SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.

func (*UploadIPListPayload) SetName

func (o *UploadIPListPayload) SetName(v string)

SetName sets field value

func (*UploadIPListPayload) SetProjectId

func (o *UploadIPListPayload) SetProjectId(v string)

SetProjectId gets a reference to the given string and assigns it to the ProjectId field.

func (*UploadIPListPayload) SetRegion

func (o *UploadIPListPayload) SetRegion(v string)

SetRegion gets a reference to the given string and assigns it to the Region field.

func (UploadIPListPayload) ToMap

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

func (*UploadIPListPayload) UnmarshalJSON

func (o *UploadIPListPayload) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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