Versions in this module Expand all Collapse all v1 v1.3.0 Mar 6, 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 ApiCreateCertificateRequest struct + ApiService DefaultAPI + func (r ApiCreateCertificateRequest) CreateCertificatePayload(createCertificatePayload CreateCertificatePayload) ApiCreateCertificateRequest + func (r ApiCreateCertificateRequest) Execute() (*CreateCertificateResponse, error) + type ApiDeleteCertificateRequest struct + ApiService DefaultAPI + func (r ApiDeleteCertificateRequest) Execute() (map[string]interface{}, error) + type ApiGetCertificateRequest struct + ApiService DefaultAPI + func (r ApiGetCertificateRequest) Execute() (*GetCertificateResponse, error) + type ApiListCertificatesRequest struct + ApiService DefaultAPI + func (r ApiListCertificatesRequest) Execute() (*ListCertificatesResponse, error) + func (r ApiListCertificatesRequest) PageId(pageId string) ApiListCertificatesRequest + func (r ApiListCertificatesRequest) PageSize(pageSize string) ApiListCertificatesRequest + type CreateCertificatePayload struct + Name *string + PrivateKey *string + ProjectId *string + PublicKey *string + Region *string + func NewCreateCertificatePayload() *CreateCertificatePayload + func NewCreateCertificatePayloadWithDefaults() *CreateCertificatePayload + func (o *CreateCertificatePayload) GetName() string + func (o *CreateCertificatePayload) GetNameOk() (*string, bool) + func (o *CreateCertificatePayload) GetPrivateKey() string + func (o *CreateCertificatePayload) GetPrivateKeyOk() (*string, bool) + func (o *CreateCertificatePayload) GetProjectId() string + func (o *CreateCertificatePayload) GetProjectIdOk() (*string, bool) + func (o *CreateCertificatePayload) GetPublicKey() string + func (o *CreateCertificatePayload) GetPublicKeyOk() (*string, bool) + func (o *CreateCertificatePayload) GetRegion() string + func (o *CreateCertificatePayload) GetRegionOk() (*string, bool) + func (o *CreateCertificatePayload) HasName() bool + func (o *CreateCertificatePayload) HasPrivateKey() bool + func (o *CreateCertificatePayload) HasProjectId() bool + func (o *CreateCertificatePayload) HasPublicKey() bool + func (o *CreateCertificatePayload) HasRegion() bool + func (o *CreateCertificatePayload) SetName(v string) + func (o *CreateCertificatePayload) SetPrivateKey(v string) + func (o *CreateCertificatePayload) SetProjectId(v string) + func (o *CreateCertificatePayload) SetPublicKey(v string) + func (o *CreateCertificatePayload) SetRegion(v string) + func (o CreateCertificatePayload) MarshalJSON() ([]byte, error) + func (o CreateCertificatePayload) ToMap() (map[string]interface{}, error) + type CreateCertificateResponse struct + Id *string + Region *string + func NewCreateCertificateResponse() *CreateCertificateResponse + func NewCreateCertificateResponseWithDefaults() *CreateCertificateResponse + func (o *CreateCertificateResponse) GetId() string + func (o *CreateCertificateResponse) GetIdOk() (*string, bool) + func (o *CreateCertificateResponse) GetRegion() string + func (o *CreateCertificateResponse) GetRegionOk() (*string, bool) + func (o *CreateCertificateResponse) HasId() bool + func (o *CreateCertificateResponse) HasRegion() bool + func (o *CreateCertificateResponse) SetId(v string) + func (o *CreateCertificateResponse) SetRegion(v string) + func (o CreateCertificateResponse) MarshalJSON() ([]byte, error) + func (o CreateCertificateResponse) ToMap() (map[string]interface{}, error) + type DefaultAPI interface + CreateCertificate func(ctx context.Context, projectId string, region string) ApiCreateCertificateRequest + CreateCertificateExecute func(r ApiCreateCertificateRequest) (*CreateCertificateResponse, error) + DeleteCertificate func(ctx context.Context, projectId string, region string, id string) ApiDeleteCertificateRequest + DeleteCertificateExecute func(r ApiDeleteCertificateRequest) (map[string]interface{}, error) + GetCertificate func(ctx context.Context, projectId string, region string, id string) ApiGetCertificateRequest + GetCertificateExecute func(r ApiGetCertificateRequest) (*GetCertificateResponse, error) + ListCertificates func(ctx context.Context, projectId string, region string) ApiListCertificatesRequest + ListCertificatesExecute func(r ApiListCertificatesRequest) (*ListCertificatesResponse, error) + type DefaultAPIService service + func (a *DefaultAPIService) CreateCertificate(ctx context.Context, projectId string, region string) ApiCreateCertificateRequest + func (a *DefaultAPIService) CreateCertificateExecute(r ApiCreateCertificateRequest) (*CreateCertificateResponse, error) + func (a *DefaultAPIService) DeleteCertificate(ctx context.Context, projectId string, region string, id string) ApiDeleteCertificateRequest + func (a *DefaultAPIService) DeleteCertificateExecute(r ApiDeleteCertificateRequest) (map[string]interface{}, error) + func (a *DefaultAPIService) GetCertificate(ctx context.Context, projectId string, region string, id string) ApiGetCertificateRequest + func (a *DefaultAPIService) GetCertificateExecute(r ApiGetCertificateRequest) (*GetCertificateResponse, error) + func (a *DefaultAPIService) ListCertificates(ctx context.Context, projectId string, region string) ApiListCertificatesRequest + func (a *DefaultAPIService) ListCertificatesExecute(r ApiListCertificatesRequest) (*ListCertificatesResponse, error) + type DefaultAPIServiceMock struct + CreateCertificateExecuteMock *func(r ApiCreateCertificateRequest) (*CreateCertificateResponse, error) + DeleteCertificateExecuteMock *func(r ApiDeleteCertificateRequest) (map[string]interface{}, error) + GetCertificateExecuteMock *func(r ApiGetCertificateRequest) (*GetCertificateResponse, error) + ListCertificatesExecuteMock *func(r ApiListCertificatesRequest) (*ListCertificatesResponse, error) + func (a DefaultAPIServiceMock) CreateCertificate(ctx context.Context, projectId string, region string) ApiCreateCertificateRequest + func (a DefaultAPIServiceMock) CreateCertificateExecute(r ApiCreateCertificateRequest) (*CreateCertificateResponse, error) + func (a DefaultAPIServiceMock) DeleteCertificate(ctx context.Context, projectId string, region string, id string) ApiDeleteCertificateRequest + func (a DefaultAPIServiceMock) DeleteCertificateExecute(r ApiDeleteCertificateRequest) (map[string]interface{}, error) + func (a DefaultAPIServiceMock) GetCertificate(ctx context.Context, projectId string, region string, id string) ApiGetCertificateRequest + func (a DefaultAPIServiceMock) GetCertificateExecute(r ApiGetCertificateRequest) (*GetCertificateResponse, error) + func (a DefaultAPIServiceMock) ListCertificates(ctx context.Context, projectId string, region string) ApiListCertificatesRequest + func (a DefaultAPIServiceMock) ListCertificatesExecute(r ApiListCertificatesRequest) (*ListCertificatesResponse, error) + type GetCertificateResponse struct + Id *string + Name *string + PublicKey *string + Region *string + func NewGetCertificateResponse() *GetCertificateResponse + func NewGetCertificateResponseWithDefaults() *GetCertificateResponse + func (o *GetCertificateResponse) GetId() string + func (o *GetCertificateResponse) GetIdOk() (*string, bool) + func (o *GetCertificateResponse) GetName() string + func (o *GetCertificateResponse) GetNameOk() (*string, bool) + func (o *GetCertificateResponse) GetPublicKey() string + func (o *GetCertificateResponse) GetPublicKeyOk() (*string, bool) + func (o *GetCertificateResponse) GetRegion() string + func (o *GetCertificateResponse) GetRegionOk() (*string, bool) + func (o *GetCertificateResponse) HasId() bool + func (o *GetCertificateResponse) HasName() bool + func (o *GetCertificateResponse) HasPublicKey() bool + func (o *GetCertificateResponse) HasRegion() bool + func (o *GetCertificateResponse) SetId(v string) + func (o *GetCertificateResponse) SetName(v string) + func (o *GetCertificateResponse) SetPublicKey(v string) + func (o *GetCertificateResponse) SetRegion(v string) + func (o GetCertificateResponse) MarshalJSON() ([]byte, error) + func (o GetCertificateResponse) 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 ListCertificatesResponse struct + Items []GetCertificateResponse + NextPageId *string + func NewListCertificatesResponse() *ListCertificatesResponse + func NewListCertificatesResponseWithDefaults() *ListCertificatesResponse + func (o *ListCertificatesResponse) GetItems() []GetCertificateResponse + func (o *ListCertificatesResponse) GetItemsOk() ([]GetCertificateResponse, bool) + func (o *ListCertificatesResponse) GetNextPageId() string + func (o *ListCertificatesResponse) GetNextPageIdOk() (*string, bool) + func (o *ListCertificatesResponse) HasItems() bool + func (o *ListCertificatesResponse) HasNextPageId() bool + func (o *ListCertificatesResponse) SetItems(v []GetCertificateResponse) + func (o *ListCertificatesResponse) SetNextPageId(v string) + func (o ListCertificatesResponse) MarshalJSON() ([]byte, error) + func (o ListCertificatesResponse) 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 NullableCreateCertificatePayload struct + func NewNullableCreateCertificatePayload(val *CreateCertificatePayload) *NullableCreateCertificatePayload + func (v *NullableCreateCertificatePayload) Set(val *CreateCertificatePayload) + func (v *NullableCreateCertificatePayload) UnmarshalJSON(src []byte) error + func (v *NullableCreateCertificatePayload) Unset() + func (v NullableCreateCertificatePayload) Get() *CreateCertificatePayload + func (v NullableCreateCertificatePayload) IsSet() bool + func (v NullableCreateCertificatePayload) MarshalJSON() ([]byte, error) + type NullableCreateCertificateResponse struct + func NewNullableCreateCertificateResponse(val *CreateCertificateResponse) *NullableCreateCertificateResponse + func (v *NullableCreateCertificateResponse) Set(val *CreateCertificateResponse) + func (v *NullableCreateCertificateResponse) UnmarshalJSON(src []byte) error + func (v *NullableCreateCertificateResponse) Unset() + func (v NullableCreateCertificateResponse) Get() *CreateCertificateResponse + func (v NullableCreateCertificateResponse) IsSet() bool + func (v NullableCreateCertificateResponse) 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 NullableGetCertificateResponse struct + func NewNullableGetCertificateResponse(val *GetCertificateResponse) *NullableGetCertificateResponse + func (v *NullableGetCertificateResponse) Set(val *GetCertificateResponse) + func (v *NullableGetCertificateResponse) UnmarshalJSON(src []byte) error + func (v *NullableGetCertificateResponse) Unset() + func (v NullableGetCertificateResponse) Get() *GetCertificateResponse + func (v NullableGetCertificateResponse) IsSet() bool + func (v NullableGetCertificateResponse) 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 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 NullableListCertificatesResponse struct + func NewNullableListCertificatesResponse(val *ListCertificatesResponse) *NullableListCertificatesResponse + func (v *NullableListCertificatesResponse) Set(val *ListCertificatesResponse) + func (v *NullableListCertificatesResponse) UnmarshalJSON(src []byte) error + func (v *NullableListCertificatesResponse) Unset() + func (v NullableListCertificatesResponse) Get() *ListCertificatesResponse + func (v NullableListCertificatesResponse) IsSet() bool + func (v NullableListCertificatesResponse) 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 Status struct + 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) MarshalJSON() ([]byte, error) + func (o Status) ToMap() (map[string]interface{}, error)