Versions in this module Expand all Collapse all v0 v0.1.0 Sep 29, 2026 Changes in this version + var JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + var XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + func CacheExpires(r *http.Response) time.Time + func IsNil(i interface{}) bool + func NewConfiguration() *config.Configuration + func PtrBool(v bool) *bool + func PtrFloat32(v float32) *float32 + func PtrFloat64(v float64) *float64 + func PtrInt(v int) *int + func PtrInt32(v int32) *int32 + func PtrInt64(v int64) *int64 + func PtrString(v string) *string + func PtrTime(v time.Time) *time.Time + type APIClient struct + DefaultAPI DefaultAPI + func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) + func (c *APIClient) GetConfig() *config.Configuration + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type ApiDeleteIPListRequest struct + ApiService DefaultAPI + func (r ApiDeleteIPListRequest) Execute() (map[string]interface{}, error) + type ApiGetIPListRequest struct + ApiService DefaultAPI + func (r ApiGetIPListRequest) Execute() (*GetIPListResponse, error) + type ApiGetQuotaRequest struct + ApiService DefaultAPI + func (r ApiGetQuotaRequest) Execute() (*GetQuotaResponse, error) + type ApiListIPListsRequest struct + ApiService DefaultAPI + func (r ApiListIPListsRequest) Execute() (*ListIPListsResponse, error) + type ApiUploadIPListRequest struct + ApiService DefaultAPI + func (r ApiUploadIPListRequest) Execute() (*GetIPListResponse, error) + func (r ApiUploadIPListRequest) UploadIPListPayload(uploadIPListPayload UploadIPListPayload) ApiUploadIPListRequest + type DefaultAPI interface + DeleteIPList func(ctx context.Context, projectId string, region string, name string) ApiDeleteIPListRequest + DeleteIPListExecute func(r ApiDeleteIPListRequest) (map[string]interface{}, error) + GetIPList func(ctx context.Context, projectId string, region string, name string) ApiGetIPListRequest + GetIPListExecute func(r ApiGetIPListRequest) (*GetIPListResponse, error) + GetQuota func(ctx context.Context, projectId string, region string) ApiGetQuotaRequest + GetQuotaExecute func(r ApiGetQuotaRequest) (*GetQuotaResponse, error) + ListIPLists func(ctx context.Context, projectId string, region string) ApiListIPListsRequest + ListIPListsExecute func(r ApiListIPListsRequest) (*ListIPListsResponse, error) + UploadIPList func(ctx context.Context, projectId string, region string, name string) ApiUploadIPListRequest + UploadIPListExecute func(r ApiUploadIPListRequest) (*GetIPListResponse, error) + type DefaultAPIService service + func (a *DefaultAPIService) DeleteIPList(ctx context.Context, projectId string, region string, name string) ApiDeleteIPListRequest + func (a *DefaultAPIService) DeleteIPListExecute(r ApiDeleteIPListRequest) (map[string]interface{}, error) + func (a *DefaultAPIService) GetIPList(ctx context.Context, projectId string, region string, name string) ApiGetIPListRequest + func (a *DefaultAPIService) GetIPListExecute(r ApiGetIPListRequest) (*GetIPListResponse, error) + func (a *DefaultAPIService) GetQuota(ctx context.Context, projectId string, region string) ApiGetQuotaRequest + func (a *DefaultAPIService) GetQuotaExecute(r ApiGetQuotaRequest) (*GetQuotaResponse, error) + func (a *DefaultAPIService) ListIPLists(ctx context.Context, projectId string, region string) ApiListIPListsRequest + func (a *DefaultAPIService) ListIPListsExecute(r ApiListIPListsRequest) (*ListIPListsResponse, error) + func (a *DefaultAPIService) UploadIPList(ctx context.Context, projectId string, region string, name string) ApiUploadIPListRequest + func (a *DefaultAPIService) UploadIPListExecute(r ApiUploadIPListRequest) (*GetIPListResponse, error) + type DefaultAPIServiceMock struct + DeleteIPListExecuteMock *func(r ApiDeleteIPListRequest) (map[string]interface{}, error) + GetIPListExecuteMock *func(r ApiGetIPListRequest) (*GetIPListResponse, error) + GetQuotaExecuteMock *func(r ApiGetQuotaRequest) (*GetQuotaResponse, error) + ListIPListsExecuteMock *func(r ApiListIPListsRequest) (*ListIPListsResponse, error) + UploadIPListExecuteMock *func(r ApiUploadIPListRequest) (*GetIPListResponse, error) + func (a DefaultAPIServiceMock) DeleteIPList(ctx context.Context, projectId string, region string, name string) ApiDeleteIPListRequest + func (a DefaultAPIServiceMock) DeleteIPListExecute(r ApiDeleteIPListRequest) (map[string]interface{}, error) + func (a DefaultAPIServiceMock) GetIPList(ctx context.Context, projectId string, region string, name string) ApiGetIPListRequest + func (a DefaultAPIServiceMock) GetIPListExecute(r ApiGetIPListRequest) (*GetIPListResponse, error) + func (a DefaultAPIServiceMock) GetQuota(ctx context.Context, projectId string, region string) ApiGetQuotaRequest + func (a DefaultAPIServiceMock) GetQuotaExecute(r ApiGetQuotaRequest) (*GetQuotaResponse, error) + func (a DefaultAPIServiceMock) ListIPLists(ctx context.Context, projectId string, region string) ApiListIPListsRequest + func (a DefaultAPIServiceMock) ListIPListsExecute(r ApiListIPListsRequest) (*ListIPListsResponse, error) + func (a DefaultAPIServiceMock) UploadIPList(ctx context.Context, projectId string, region string, name string) ApiUploadIPListRequest + func (a DefaultAPIServiceMock) UploadIPListExecute(r ApiUploadIPListRequest) (*GetIPListResponse, error) + type GetIPListResponse struct + AdditionalProperties map[string]interface{} + ContentHash *string + Labels *map[string]string + Name string + NumberOfIps *int32 + Usage *IPListUsage + func NewGetIPListResponse(name string) *GetIPListResponse + func NewGetIPListResponseWithDefaults() *GetIPListResponse + func (o *GetIPListResponse) GetContentHash() string + func (o *GetIPListResponse) GetContentHashOk() (*string, bool) + func (o *GetIPListResponse) GetLabels() map[string]string + func (o *GetIPListResponse) GetLabelsOk() (*map[string]string, bool) + func (o *GetIPListResponse) GetName() string + func (o *GetIPListResponse) GetNameOk() (*string, bool) + func (o *GetIPListResponse) GetNumberOfIps() int32 + func (o *GetIPListResponse) GetNumberOfIpsOk() (*int32, bool) + func (o *GetIPListResponse) GetUsage() IPListUsage + func (o *GetIPListResponse) GetUsageOk() (*IPListUsage, bool) + func (o *GetIPListResponse) HasContentHash() bool + func (o *GetIPListResponse) HasLabels() bool + func (o *GetIPListResponse) HasNumberOfIps() bool + func (o *GetIPListResponse) HasUsage() bool + func (o *GetIPListResponse) SetContentHash(v string) + func (o *GetIPListResponse) SetLabels(v map[string]string) + func (o *GetIPListResponse) SetName(v string) + func (o *GetIPListResponse) SetNumberOfIps(v int32) + func (o *GetIPListResponse) SetUsage(v IPListUsage) + func (o *GetIPListResponse) UnmarshalJSON(data []byte) (err error) + func (o GetIPListResponse) MarshalJSON() ([]byte, error) + func (o GetIPListResponse) ToMap() (map[string]interface{}, error) + type GetQuotaResponse struct + AdditionalProperties map[string]interface{} + ProjectId *string + Quotas *Quotas + Region *string + func NewGetQuotaResponse() *GetQuotaResponse + func NewGetQuotaResponseWithDefaults() *GetQuotaResponse + func (o *GetQuotaResponse) GetProjectId() string + func (o *GetQuotaResponse) GetProjectIdOk() (*string, bool) + func (o *GetQuotaResponse) GetQuotas() Quotas + func (o *GetQuotaResponse) GetQuotasOk() (*Quotas, bool) + func (o *GetQuotaResponse) GetRegion() string + func (o *GetQuotaResponse) GetRegionOk() (*string, bool) + func (o *GetQuotaResponse) HasProjectId() bool + func (o *GetQuotaResponse) HasQuotas() bool + func (o *GetQuotaResponse) HasRegion() bool + func (o *GetQuotaResponse) SetProjectId(v string) + func (o *GetQuotaResponse) SetQuotas(v Quotas) + func (o *GetQuotaResponse) SetRegion(v string) + func (o *GetQuotaResponse) UnmarshalJSON(data []byte) (err error) + func (o GetQuotaResponse) MarshalJSON() ([]byte, error) + func (o GetQuotaResponse) ToMap() (map[string]interface{}, error) + type GoogleProtobufAny struct + AdditionalProperties map[string]interface{} + Type *string + func NewGoogleProtobufAny() *GoogleProtobufAny + func NewGoogleProtobufAnyWithDefaults() *GoogleProtobufAny + func (o *GoogleProtobufAny) GetType() string + func (o *GoogleProtobufAny) GetTypeOk() (*string, bool) + func (o *GoogleProtobufAny) HasType() bool + func (o *GoogleProtobufAny) SetType(v string) + func (o *GoogleProtobufAny) UnmarshalJSON(data []byte) (err error) + func (o GoogleProtobufAny) MarshalJSON() ([]byte, error) + func (o GoogleProtobufAny) ToMap() (map[string]interface{}, error) + type IPListUsage struct + AdditionalProperties map[string]interface{} + Count *int32 + Items []string + func NewIPListUsage() *IPListUsage + func NewIPListUsageWithDefaults() *IPListUsage + func (o *IPListUsage) GetCount() int32 + func (o *IPListUsage) GetCountOk() (*int32, bool) + func (o *IPListUsage) GetItems() []string + func (o *IPListUsage) GetItemsOk() ([]string, bool) + func (o *IPListUsage) HasCount() bool + func (o *IPListUsage) HasItems() bool + func (o *IPListUsage) SetCount(v int32) + func (o *IPListUsage) SetItems(v []string) + func (o *IPListUsage) UnmarshalJSON(data []byte) (err error) + func (o IPListUsage) MarshalJSON() ([]byte, error) + func (o IPListUsage) ToMap() (map[string]interface{}, error) + type IPListsQuota struct + AdditionalProperties map[string]interface{} + Limit *int32 + Usage *int32 + func NewIPListsQuota() *IPListsQuota + func NewIPListsQuotaWithDefaults() *IPListsQuota + func (o *IPListsQuota) GetLimit() int32 + func (o *IPListsQuota) GetLimitOk() (*int32, bool) + func (o *IPListsQuota) GetUsage() int32 + func (o *IPListsQuota) GetUsageOk() (*int32, bool) + func (o *IPListsQuota) HasLimit() bool + func (o *IPListsQuota) HasUsage() bool + func (o *IPListsQuota) SetLimit(v int32) + func (o *IPListsQuota) SetUsage(v int32) + func (o *IPListsQuota) UnmarshalJSON(data []byte) (err error) + func (o IPListsQuota) MarshalJSON() ([]byte, error) + func (o IPListsQuota) ToMap() (map[string]interface{}, error) + type ListIPListsResponse struct + AdditionalProperties map[string]interface{} + Items []GetIPListResponse + func NewListIPListsResponse() *ListIPListsResponse + func NewListIPListsResponseWithDefaults() *ListIPListsResponse + func (o *ListIPListsResponse) GetItems() []GetIPListResponse + func (o *ListIPListsResponse) GetItemsOk() ([]GetIPListResponse, bool) + func (o *ListIPListsResponse) HasItems() bool + func (o *ListIPListsResponse) SetItems(v []GetIPListResponse) + func (o *ListIPListsResponse) UnmarshalJSON(data []byte) (err error) + func (o ListIPListsResponse) MarshalJSON() ([]byte, error) + func (o ListIPListsResponse) ToMap() (map[string]interface{}, error) + type MappedNullable interface + ToMap func() (map[string]interface{}, error) + type NullableBool struct + func NewNullableBool(val *bool) *NullableBool + func (v *NullableBool) Set(val *bool) + func (v *NullableBool) UnmarshalJSON(src []byte) error + func (v *NullableBool) Unset() + func (v NullableBool) Get() *bool + func (v NullableBool) IsSet() bool + func (v NullableBool) MarshalJSON() ([]byte, error) + type NullableFloat32 struct + func NewNullableFloat32(val *float32) *NullableFloat32 + func (v *NullableFloat32) Set(val *float32) + func (v *NullableFloat32) UnmarshalJSON(src []byte) error + func (v *NullableFloat32) Unset() + func (v NullableFloat32) Get() *float32 + func (v NullableFloat32) IsSet() bool + func (v NullableFloat32) MarshalJSON() ([]byte, error) + type NullableFloat64 struct + func NewNullableFloat64(val *float64) *NullableFloat64 + func (v *NullableFloat64) Set(val *float64) + func (v *NullableFloat64) UnmarshalJSON(src []byte) error + func (v *NullableFloat64) Unset() + func (v NullableFloat64) Get() *float64 + func (v NullableFloat64) IsSet() bool + func (v NullableFloat64) MarshalJSON() ([]byte, error) + type NullableGetIPListResponse struct + func NewNullableGetIPListResponse(val *GetIPListResponse) *NullableGetIPListResponse + func (v *NullableGetIPListResponse) Set(val *GetIPListResponse) + func (v *NullableGetIPListResponse) UnmarshalJSON(src []byte) error + func (v *NullableGetIPListResponse) Unset() + func (v NullableGetIPListResponse) Get() *GetIPListResponse + func (v NullableGetIPListResponse) IsSet() bool + func (v NullableGetIPListResponse) MarshalJSON() ([]byte, error) + type NullableGetQuotaResponse struct + func NewNullableGetQuotaResponse(val *GetQuotaResponse) *NullableGetQuotaResponse + func (v *NullableGetQuotaResponse) Set(val *GetQuotaResponse) + func (v *NullableGetQuotaResponse) UnmarshalJSON(src []byte) error + func (v *NullableGetQuotaResponse) Unset() + func (v NullableGetQuotaResponse) Get() *GetQuotaResponse + func (v NullableGetQuotaResponse) IsSet() bool + func (v NullableGetQuotaResponse) MarshalJSON() ([]byte, error) + type NullableGoogleProtobufAny struct + func NewNullableGoogleProtobufAny(val *GoogleProtobufAny) *NullableGoogleProtobufAny + func (v *NullableGoogleProtobufAny) Set(val *GoogleProtobufAny) + func (v *NullableGoogleProtobufAny) UnmarshalJSON(src []byte) error + func (v *NullableGoogleProtobufAny) Unset() + func (v NullableGoogleProtobufAny) Get() *GoogleProtobufAny + func (v NullableGoogleProtobufAny) IsSet() bool + func (v NullableGoogleProtobufAny) MarshalJSON() ([]byte, error) + type NullableIPListUsage struct + func NewNullableIPListUsage(val *IPListUsage) *NullableIPListUsage + func (v *NullableIPListUsage) Set(val *IPListUsage) + func (v *NullableIPListUsage) UnmarshalJSON(src []byte) error + func (v *NullableIPListUsage) Unset() + func (v NullableIPListUsage) Get() *IPListUsage + func (v NullableIPListUsage) IsSet() bool + func (v NullableIPListUsage) MarshalJSON() ([]byte, error) + type NullableIPListsQuota struct + func NewNullableIPListsQuota(val *IPListsQuota) *NullableIPListsQuota + func (v *NullableIPListsQuota) Set(val *IPListsQuota) + func (v *NullableIPListsQuota) UnmarshalJSON(src []byte) error + func (v *NullableIPListsQuota) Unset() + func (v NullableIPListsQuota) Get() *IPListsQuota + func (v NullableIPListsQuota) IsSet() bool + func (v NullableIPListsQuota) MarshalJSON() ([]byte, error) + type NullableInt struct + func NewNullableInt(val *int) *NullableInt + func (v *NullableInt) Set(val *int) + func (v *NullableInt) UnmarshalJSON(src []byte) error + func (v *NullableInt) Unset() + func (v NullableInt) Get() *int + func (v NullableInt) IsSet() bool + func (v NullableInt) MarshalJSON() ([]byte, error) + type NullableInt32 struct + func NewNullableInt32(val *int32) *NullableInt32 + func (v *NullableInt32) Set(val *int32) + func (v *NullableInt32) UnmarshalJSON(src []byte) error + func (v *NullableInt32) Unset() + func (v NullableInt32) Get() *int32 + func (v NullableInt32) IsSet() bool + func (v NullableInt32) MarshalJSON() ([]byte, error) + type NullableInt64 struct + func NewNullableInt64(val *int64) *NullableInt64 + func (v *NullableInt64) Set(val *int64) + func (v *NullableInt64) UnmarshalJSON(src []byte) error + func (v *NullableInt64) Unset() + func (v NullableInt64) Get() *int64 + func (v NullableInt64) IsSet() bool + func (v NullableInt64) MarshalJSON() ([]byte, error) + type NullableListIPListsResponse struct + func NewNullableListIPListsResponse(val *ListIPListsResponse) *NullableListIPListsResponse + func (v *NullableListIPListsResponse) Set(val *ListIPListsResponse) + func (v *NullableListIPListsResponse) UnmarshalJSON(src []byte) error + func (v *NullableListIPListsResponse) Unset() + func (v NullableListIPListsResponse) Get() *ListIPListsResponse + func (v NullableListIPListsResponse) IsSet() bool + func (v NullableListIPListsResponse) MarshalJSON() ([]byte, error) + type NullableQuotas struct + func NewNullableQuotas(val *Quotas) *NullableQuotas + func (v *NullableQuotas) Set(val *Quotas) + func (v *NullableQuotas) UnmarshalJSON(src []byte) error + func (v *NullableQuotas) Unset() + func (v NullableQuotas) Get() *Quotas + func (v NullableQuotas) IsSet() bool + func (v NullableQuotas) MarshalJSON() ([]byte, error) + type NullableStatus struct + func NewNullableStatus(val *Status) *NullableStatus + func (v *NullableStatus) Set(val *Status) + func (v *NullableStatus) UnmarshalJSON(src []byte) error + func (v *NullableStatus) Unset() + func (v NullableStatus) Get() *Status + func (v NullableStatus) IsSet() bool + func (v NullableStatus) MarshalJSON() ([]byte, error) + type NullableString struct + func NewNullableString(val *string) *NullableString + func (v *NullableString) Set(val *string) + func (v *NullableString) UnmarshalJSON(src []byte) error + func (v *NullableString) Unset() + func (v NullableString) Get() *string + func (v NullableString) IsSet() bool + func (v NullableString) MarshalJSON() ([]byte, error) + type NullableTime struct + func NewNullableTime(val *time.Time) *NullableTime + func (v *NullableTime) Set(val *time.Time) + func (v *NullableTime) UnmarshalJSON(src []byte) error + func (v *NullableTime) Unset() + func (v NullableTime) Get() *time.Time + func (v NullableTime) IsSet() bool + func (v NullableTime) MarshalJSON() ([]byte, error) + type NullableUploadIPListPayload struct + func NewNullableUploadIPListPayload(val *UploadIPListPayload) *NullableUploadIPListPayload + func (v *NullableUploadIPListPayload) Set(val *UploadIPListPayload) + func (v *NullableUploadIPListPayload) UnmarshalJSON(src []byte) error + func (v *NullableUploadIPListPayload) Unset() + func (v NullableUploadIPListPayload) Get() *UploadIPListPayload + func (v NullableUploadIPListPayload) IsSet() bool + func (v NullableUploadIPListPayload) MarshalJSON() ([]byte, error) + type Quotas struct + AdditionalProperties map[string]interface{} + IpLists *IPListsQuota + func NewQuotas() *Quotas + func NewQuotasWithDefaults() *Quotas + func (o *Quotas) GetIpLists() IPListsQuota + func (o *Quotas) GetIpListsOk() (*IPListsQuota, bool) + func (o *Quotas) HasIpLists() bool + func (o *Quotas) SetIpLists(v IPListsQuota) + func (o *Quotas) UnmarshalJSON(data []byte) (err error) + func (o Quotas) MarshalJSON() ([]byte, error) + func (o Quotas) ToMap() (map[string]interface{}, error) + type Status struct + AdditionalProperties map[string]interface{} + Code *int32 + Details []GoogleProtobufAny + Message *string + func NewStatus() *Status + func NewStatusWithDefaults() *Status + func (o *Status) GetCode() int32 + func (o *Status) GetCodeOk() (*int32, bool) + func (o *Status) GetDetails() []GoogleProtobufAny + func (o *Status) GetDetailsOk() ([]GoogleProtobufAny, bool) + func (o *Status) GetMessage() string + func (o *Status) GetMessageOk() (*string, bool) + func (o *Status) HasCode() bool + func (o *Status) HasDetails() bool + func (o *Status) HasMessage() bool + func (o *Status) SetCode(v int32) + func (o *Status) SetDetails(v []GoogleProtobufAny) + func (o *Status) SetMessage(v string) + func (o *Status) UnmarshalJSON(data []byte) (err error) + func (o Status) MarshalJSON() ([]byte, error) + func (o Status) ToMap() (map[string]interface{}, error) + type UploadIPListPayload struct + AdditionalProperties map[string]interface{} + FileContent string + Labels *map[string]string + Name string + ProjectId *string + Region *string + func NewUploadIPListPayload(fileContent string, name string) *UploadIPListPayload + func NewUploadIPListPayloadWithDefaults() *UploadIPListPayload + func (o *UploadIPListPayload) GetFileContent() string + func (o *UploadIPListPayload) GetFileContentOk() (*string, bool) + func (o *UploadIPListPayload) GetLabels() map[string]string + func (o *UploadIPListPayload) GetLabelsOk() (*map[string]string, bool) + func (o *UploadIPListPayload) GetName() string + func (o *UploadIPListPayload) GetNameOk() (*string, bool) + func (o *UploadIPListPayload) GetProjectId() string + func (o *UploadIPListPayload) GetProjectIdOk() (*string, bool) + func (o *UploadIPListPayload) GetRegion() string + func (o *UploadIPListPayload) GetRegionOk() (*string, bool) + func (o *UploadIPListPayload) HasLabels() bool + func (o *UploadIPListPayload) HasProjectId() bool + func (o *UploadIPListPayload) HasRegion() bool + func (o *UploadIPListPayload) SetFileContent(v string) + func (o *UploadIPListPayload) SetLabels(v map[string]string) + func (o *UploadIPListPayload) SetName(v string) + func (o *UploadIPListPayload) SetProjectId(v string) + func (o *UploadIPListPayload) SetRegion(v string) + func (o *UploadIPListPayload) UnmarshalJSON(data []byte) (err error) + func (o UploadIPListPayload) MarshalJSON() ([]byte, error) + func (o UploadIPListPayload) ToMap() (map[string]interface{}, error)