Versions in this module Expand all Collapse all v1 v1.3.0 Mar 10, 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 ActionError struct + Action *string + Code *string + Reason *string + func NewActionError() *ActionError + func NewActionErrorWithDefaults() *ActionError + func (o *ActionError) GetAction() string + func (o *ActionError) GetActionOk() (*string, bool) + func (o *ActionError) GetCode() string + func (o *ActionError) GetCodeOk() (*string, bool) + func (o *ActionError) GetReason() string + func (o *ActionError) GetReasonOk() (*string, bool) + func (o *ActionError) HasAction() bool + func (o *ActionError) HasCode() bool + func (o *ActionError) HasReason() bool + func (o *ActionError) SetAction(v string) + func (o *ActionError) SetCode(v string) + func (o *ActionError) SetReason(v string) + func (o ActionError) MarshalJSON() ([]byte, error) + func (o ActionError) ToMap() (map[string]interface{}, error) + type ApiDisableServiceRequest struct + ApiService DefaultAPI + func (r ApiDisableServiceRequest) Execute() error + type ApiEnableServiceRequest struct + ApiService DefaultAPI + func (r ApiEnableServiceRequest) Execute() error + type ApiGetServiceStatusRequest struct + ApiService DefaultAPI + func (r ApiGetServiceStatusRequest) Execute() (*ServiceStatus, error) + type ApiListServiceStatusRequest struct + ApiService DefaultAPI + func (r ApiListServiceStatusRequest) Cursor(cursor string) ApiListServiceStatusRequest + func (r ApiListServiceStatusRequest) Execute() (*ListServiceStatus200Response, error) + type CloudService struct + Dependencies *Dependencies + Labels *map[string]string + Scope *string + ServiceId *string + func NewCloudService() *CloudService + func NewCloudServiceWithDefaults() *CloudService + func (o *CloudService) GetDependencies() Dependencies + func (o *CloudService) GetDependenciesOk() (*Dependencies, bool) + func (o *CloudService) GetLabels() map[string]string + func (o *CloudService) GetLabelsOk() (*map[string]string, bool) + func (o *CloudService) GetScope() string + func (o *CloudService) GetScopeOk() (*string, bool) + func (o *CloudService) GetServiceId() string + func (o *CloudService) GetServiceIdOk() (*string, bool) + func (o *CloudService) HasDependencies() bool + func (o *CloudService) HasLabels() bool + func (o *CloudService) HasScope() bool + func (o *CloudService) HasServiceId() bool + func (o *CloudService) SetDependencies(v Dependencies) + func (o *CloudService) SetLabels(v map[string]string) + func (o *CloudService) SetScope(v string) + func (o *CloudService) SetServiceId(v string) + func (o CloudService) MarshalJSON() ([]byte, error) + func (o CloudService) ToMap() (map[string]interface{}, error) + type DefaultAPI interface + DisableService func(ctx context.Context, projectId string, serviceId string) ApiDisableServiceRequest + DisableServiceExecute func(r ApiDisableServiceRequest) error + EnableService func(ctx context.Context, projectId string, serviceId string) ApiEnableServiceRequest + EnableServiceExecute func(r ApiEnableServiceRequest) error + GetServiceStatus func(ctx context.Context, projectId string, serviceId string) ApiGetServiceStatusRequest + GetServiceStatusExecute func(r ApiGetServiceStatusRequest) (*ServiceStatus, error) + ListServiceStatus func(ctx context.Context, projectId string) ApiListServiceStatusRequest + ListServiceStatusExecute func(r ApiListServiceStatusRequest) (*ListServiceStatus200Response, error) + type DefaultAPIService service + func (a *DefaultAPIService) DisableService(ctx context.Context, projectId string, serviceId string) ApiDisableServiceRequest + func (a *DefaultAPIService) DisableServiceExecute(r ApiDisableServiceRequest) error + func (a *DefaultAPIService) EnableService(ctx context.Context, projectId string, serviceId string) ApiEnableServiceRequest + func (a *DefaultAPIService) EnableServiceExecute(r ApiEnableServiceRequest) error + func (a *DefaultAPIService) GetServiceStatus(ctx context.Context, projectId string, serviceId string) ApiGetServiceStatusRequest + func (a *DefaultAPIService) GetServiceStatusExecute(r ApiGetServiceStatusRequest) (*ServiceStatus, error) + func (a *DefaultAPIService) ListServiceStatus(ctx context.Context, projectId string) ApiListServiceStatusRequest + func (a *DefaultAPIService) ListServiceStatusExecute(r ApiListServiceStatusRequest) (*ListServiceStatus200Response, error) + type DefaultAPIServiceMock struct + DisableServiceExecuteMock *func(r ApiDisableServiceRequest) error + EnableServiceExecuteMock *func(r ApiEnableServiceRequest) error + GetServiceStatusExecuteMock *func(r ApiGetServiceStatusRequest) (*ServiceStatus, error) + ListServiceStatusExecuteMock *func(r ApiListServiceStatusRequest) (*ListServiceStatus200Response, error) + func (a DefaultAPIServiceMock) DisableService(ctx context.Context, projectId string, serviceId string) ApiDisableServiceRequest + func (a DefaultAPIServiceMock) DisableServiceExecute(r ApiDisableServiceRequest) error + func (a DefaultAPIServiceMock) EnableService(ctx context.Context, projectId string, serviceId string) ApiEnableServiceRequest + func (a DefaultAPIServiceMock) EnableServiceExecute(r ApiEnableServiceRequest) error + func (a DefaultAPIServiceMock) GetServiceStatus(ctx context.Context, projectId string, serviceId string) ApiGetServiceStatusRequest + func (a DefaultAPIServiceMock) GetServiceStatusExecute(r ApiGetServiceStatusRequest) (*ServiceStatus, error) + func (a DefaultAPIServiceMock) ListServiceStatus(ctx context.Context, projectId string) ApiListServiceStatusRequest + func (a DefaultAPIServiceMock) ListServiceStatusExecute(r ApiListServiceStatusRequest) (*ListServiceStatus200Response, error) + type Dependencies struct + Hard []string + Soft []string + func NewDependencies() *Dependencies + func NewDependenciesWithDefaults() *Dependencies + func (o *Dependencies) GetHard() []string + func (o *Dependencies) GetHardOk() ([]string, bool) + func (o *Dependencies) GetSoft() []string + func (o *Dependencies) GetSoftOk() ([]string, bool) + func (o *Dependencies) HasHard() bool + func (o *Dependencies) HasSoft() bool + func (o *Dependencies) SetHard(v []string) + func (o *Dependencies) SetSoft(v []string) + func (o Dependencies) MarshalJSON() ([]byte, error) + func (o Dependencies) ToMap() (map[string]interface{}, error) + type ListServiceStatus200Response struct + Items []ServiceStatus + NextCursor *string + func NewListServiceStatus200Response() *ListServiceStatus200Response + func NewListServiceStatus200ResponseWithDefaults() *ListServiceStatus200Response + func (o *ListServiceStatus200Response) GetItems() []ServiceStatus + func (o *ListServiceStatus200Response) GetItemsOk() ([]ServiceStatus, bool) + func (o *ListServiceStatus200Response) GetNextCursor() string + func (o *ListServiceStatus200Response) GetNextCursorOk() (*string, bool) + func (o *ListServiceStatus200Response) HasItems() bool + func (o *ListServiceStatus200Response) HasNextCursor() bool + func (o *ListServiceStatus200Response) SetItems(v []ServiceStatus) + func (o *ListServiceStatus200Response) SetNextCursor(v string) + func (o ListServiceStatus200Response) MarshalJSON() ([]byte, error) + func (o ListServiceStatus200Response) ToMap() (map[string]interface{}, error) + type MappedNullable interface + ToMap func() (map[string]interface{}, error) + type NullableActionError struct + func NewNullableActionError(val *ActionError) *NullableActionError + func (v *NullableActionError) Set(val *ActionError) + func (v *NullableActionError) UnmarshalJSON(src []byte) error + func (v *NullableActionError) Unset() + func (v NullableActionError) Get() *ActionError + func (v NullableActionError) IsSet() bool + func (v NullableActionError) MarshalJSON() ([]byte, 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 NullableCloudService struct + func NewNullableCloudService(val *CloudService) *NullableCloudService + func (v *NullableCloudService) Set(val *CloudService) + func (v *NullableCloudService) UnmarshalJSON(src []byte) error + func (v *NullableCloudService) Unset() + func (v NullableCloudService) Get() *CloudService + func (v NullableCloudService) IsSet() bool + func (v NullableCloudService) MarshalJSON() ([]byte, error) + type NullableDependencies struct + func NewNullableDependencies(val *Dependencies) *NullableDependencies + func (v *NullableDependencies) Set(val *Dependencies) + func (v *NullableDependencies) UnmarshalJSON(src []byte) error + func (v *NullableDependencies) Unset() + func (v NullableDependencies) Get() *Dependencies + func (v NullableDependencies) IsSet() bool + func (v NullableDependencies) 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 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 NullableListServiceStatus200Response struct + func NewNullableListServiceStatus200Response(val *ListServiceStatus200Response) *NullableListServiceStatus200Response + func (v *NullableListServiceStatus200Response) Set(val *ListServiceStatus200Response) + func (v *NullableListServiceStatus200Response) UnmarshalJSON(src []byte) error + func (v *NullableListServiceStatus200Response) Unset() + func (v NullableListServiceStatus200Response) Get() *ListServiceStatus200Response + func (v NullableListServiceStatus200Response) IsSet() bool + func (v NullableListServiceStatus200Response) MarshalJSON() ([]byte, error) + type NullableParameters struct + func NewNullableParameters(val *Parameters) *NullableParameters + func (v *NullableParameters) Set(val *Parameters) + func (v *NullableParameters) UnmarshalJSON(src []byte) error + func (v *NullableParameters) Unset() + func (v NullableParameters) Get() *Parameters + func (v NullableParameters) IsSet() bool + func (v NullableParameters) MarshalJSON() ([]byte, error) + type NullableParametersGeneral struct + func NewNullableParametersGeneral(val *ParametersGeneral) *NullableParametersGeneral + func (v *NullableParametersGeneral) Set(val *ParametersGeneral) + func (v *NullableParametersGeneral) UnmarshalJSON(src []byte) error + func (v *NullableParametersGeneral) Unset() + func (v NullableParametersGeneral) Get() *ParametersGeneral + func (v NullableParametersGeneral) IsSet() bool + func (v NullableParametersGeneral) MarshalJSON() ([]byte, error) + type NullableServiceStatus struct + func NewNullableServiceStatus(val *ServiceStatus) *NullableServiceStatus + func (v *NullableServiceStatus) Set(val *ServiceStatus) + func (v *NullableServiceStatus) UnmarshalJSON(src []byte) error + func (v *NullableServiceStatus) Unset() + func (v NullableServiceStatus) Get() *ServiceStatus + func (v NullableServiceStatus) IsSet() bool + func (v NullableServiceStatus) 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 Parameters struct + AdditionalProperties map[string]interface{} + General *ParametersGeneral + func NewParameters() *Parameters + func NewParametersWithDefaults() *Parameters + func (o *Parameters) GetGeneral() ParametersGeneral + func (o *Parameters) GetGeneralOk() (*ParametersGeneral, bool) + func (o *Parameters) HasGeneral() bool + func (o *Parameters) SetGeneral(v ParametersGeneral) + func (o *Parameters) UnmarshalJSON(data []byte) (err error) + func (o Parameters) MarshalJSON() ([]byte, error) + func (o Parameters) ToMap() (map[string]interface{}, error) + type ParametersGeneral struct + OrganizationId *string + ProjectName *string + ProjectScope *string + func NewParametersGeneral() *ParametersGeneral + func NewParametersGeneralWithDefaults() *ParametersGeneral + func (o *ParametersGeneral) GetOrganizationId() string + func (o *ParametersGeneral) GetOrganizationIdOk() (*string, bool) + func (o *ParametersGeneral) GetProjectName() string + func (o *ParametersGeneral) GetProjectNameOk() (*string, bool) + func (o *ParametersGeneral) GetProjectScope() string + func (o *ParametersGeneral) GetProjectScopeOk() (*string, bool) + func (o *ParametersGeneral) HasOrganizationId() bool + func (o *ParametersGeneral) HasProjectName() bool + func (o *ParametersGeneral) HasProjectScope() bool + func (o *ParametersGeneral) SetOrganizationId(v string) + func (o *ParametersGeneral) SetProjectName(v string) + func (o *ParametersGeneral) SetProjectScope(v string) + func (o ParametersGeneral) MarshalJSON() ([]byte, error) + func (o ParametersGeneral) ToMap() (map[string]interface{}, error) + type ServiceStatus struct + Dependencies *Dependencies + Enablement *string + Error *ActionError + Labels *map[string]string + Lifecycle *string + Parameters *Parameters + Scope *string + ServiceId *string + State *string + func NewServiceStatus() *ServiceStatus + func NewServiceStatusWithDefaults() *ServiceStatus + func (o *ServiceStatus) GetDependencies() Dependencies + func (o *ServiceStatus) GetDependenciesOk() (*Dependencies, bool) + func (o *ServiceStatus) GetEnablement() string + func (o *ServiceStatus) GetEnablementOk() (*string, bool) + func (o *ServiceStatus) GetError() ActionError + func (o *ServiceStatus) GetErrorOk() (*ActionError, bool) + func (o *ServiceStatus) GetLabels() map[string]string + func (o *ServiceStatus) GetLabelsOk() (*map[string]string, bool) + func (o *ServiceStatus) GetLifecycle() string + func (o *ServiceStatus) GetLifecycleOk() (*string, bool) + func (o *ServiceStatus) GetParameters() Parameters + func (o *ServiceStatus) GetParametersOk() (*Parameters, bool) + func (o *ServiceStatus) GetScope() string + func (o *ServiceStatus) GetScopeOk() (*string, bool) + func (o *ServiceStatus) GetServiceId() string + func (o *ServiceStatus) GetServiceIdOk() (*string, bool) + func (o *ServiceStatus) GetState() string + func (o *ServiceStatus) GetStateOk() (*string, bool) + func (o *ServiceStatus) HasDependencies() bool + func (o *ServiceStatus) HasEnablement() bool + func (o *ServiceStatus) HasError() bool + func (o *ServiceStatus) HasLabels() bool + func (o *ServiceStatus) HasLifecycle() bool + func (o *ServiceStatus) HasParameters() bool + func (o *ServiceStatus) HasScope() bool + func (o *ServiceStatus) HasServiceId() bool + func (o *ServiceStatus) HasState() bool + func (o *ServiceStatus) SetDependencies(v Dependencies) + func (o *ServiceStatus) SetEnablement(v string) + func (o *ServiceStatus) SetError(v ActionError) + func (o *ServiceStatus) SetLabels(v map[string]string) + func (o *ServiceStatus) SetLifecycle(v string) + func (o *ServiceStatus) SetParameters(v Parameters) + func (o *ServiceStatus) SetScope(v string) + func (o *ServiceStatus) SetServiceId(v string) + func (o *ServiceStatus) SetState(v string) + func (o ServiceStatus) MarshalJSON() ([]byte, error) + func (o ServiceStatus) ToMap() (map[string]interface{}, error)