api

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 7 Imported by: 0

README

EnvsyncCloud Go Library

fern shield

The EnvsyncCloud Go library provides convenient access to the EnvsyncCloud API from Go.

Usage

Instantiate and use the client with the following:

package example

import (
    client "github.com/EnvSync-Cloud/envsync-go-sdk/sdk/client"
    option "github.com/EnvSync-Cloud/envsync-go-sdk/sdk/option"
    context "context"
    sdk "github.com/EnvSync-Cloud/envsync-go-sdk/sdk"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Applications.CreateApp(
        context.TODO(),
        &sdk.CreateAppRequest{
            Name: "name",
            Description: "description",
        },
    )
}

Environments

You can choose between different environments by using the option.WithBaseURL option. You can configure any arbitrary base URL, which is particularly useful in test environments.

client := client.NewClient(
    option.WithBaseURL(envsync.cloud.Environments.Default),
)

Errors

Structured error types are returned from API calls that return non-success status codes. These errors are compatible with the errors.Is and errors.As APIs, so you can access the error like so:

response, err := client.Applications.CreateApp(...)
if err != nil {
    var apiError *core.APIError
    if errors.As(err, apiError) {
        // Do something with the API error ...
    }
    return err
}

Request Options

A variety of request options are included to adapt the behavior of the library, which includes configuring authorization tokens, or providing your own instrumented *http.Client.

These request options can either be specified on the client so that they're applied on every request, or for an individual request, like so:

Providing your own *http.Client is recommended. Otherwise, the http.DefaultClient will be used, and your client will wait indefinitely for a response (unless the per-request, context-based timeout is used).

// Specify default options applied on every request.
client := client.NewClient(
    option.WithToken("<YOUR_API_KEY>"),
    option.WithHTTPClient(
        &http.Client{
            Timeout: 5 * time.Second,
        },
    ),
)

// Specify options for an individual request.
response, err := client.Applications.CreateApp(
    ...,
    option.WithToken("<YOUR_API_KEY>"),
)

Advanced

Retries

The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2).

A request is deemed retryable when any of the following HTTP status codes is returned:

  • 408 (Timeout)
  • 429 (Too Many Requests)
  • 5XX (Internal Server Errors)

Use the option.WithMaxAttempts option to configure this behavior for the entire client or an individual request:

client := client.NewClient(
    option.WithMaxAttempts(1),
)

response, err := client.Applications.CreateApp(
    ...,
    option.WithMaxAttempts(1),
)
Timeouts

Setting a timeout for each individual request is as simple as using the standard context library. Setting a one second timeout for an individual API call looks like the following:

ctx, cancel := context.WithTimeout(ctx, time.Second)
defer cancel()

response, err := client.Applications.CreateApp(ctx, ...)

Contributing

While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!

On the other hand, contributions to the README are always very welcome!

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Environments = struct {
	Default string
}{
	Default: "http://localhost:8600",
}

Environments defines all of the API environments. These values can be used with the WithBaseURL RequestOption to override the client's default environment, if any.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

Types

type AcceptOrgInviteRequest

type AcceptOrgInviteRequest struct {
	OrgData  *AcceptOrgInviteRequestOrgData  `json:"org_data,omitempty" url:"-"`
	UserData *AcceptOrgInviteRequestUserData `json:"user_data,omitempty" url:"-"`
}

type AcceptOrgInviteRequestOrgData

type AcceptOrgInviteRequestOrgData struct {
	Name    string `json:"name" url:"name"`
	Size    string `json:"size" url:"size"`
	Website string `json:"website" url:"website"`
	// contains filtered or unexported fields
}

func (*AcceptOrgInviteRequestOrgData) GetExtraProperties

func (a *AcceptOrgInviteRequestOrgData) GetExtraProperties() map[string]interface{}

func (*AcceptOrgInviteRequestOrgData) GetName

func (*AcceptOrgInviteRequestOrgData) GetSize

func (*AcceptOrgInviteRequestOrgData) GetWebsite

func (a *AcceptOrgInviteRequestOrgData) GetWebsite() string

func (*AcceptOrgInviteRequestOrgData) String

func (*AcceptOrgInviteRequestOrgData) UnmarshalJSON

func (a *AcceptOrgInviteRequestOrgData) UnmarshalJSON(data []byte) error

type AcceptOrgInviteRequestUserData

type AcceptOrgInviteRequestUserData struct {
	FullName string `json:"full_name" url:"full_name"`
	Password string `json:"password" url:"password"`
	// contains filtered or unexported fields
}

func (*AcceptOrgInviteRequestUserData) GetExtraProperties

func (a *AcceptOrgInviteRequestUserData) GetExtraProperties() map[string]interface{}

func (*AcceptOrgInviteRequestUserData) GetFullName

func (a *AcceptOrgInviteRequestUserData) GetFullName() string

func (*AcceptOrgInviteRequestUserData) GetPassword

func (a *AcceptOrgInviteRequestUserData) GetPassword() string

func (*AcceptOrgInviteRequestUserData) String

func (*AcceptOrgInviteRequestUserData) UnmarshalJSON

func (a *AcceptOrgInviteRequestUserData) UnmarshalJSON(data []byte) error

type AcceptOrgInviteResponse

type AcceptOrgInviteResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*AcceptOrgInviteResponse) GetExtraProperties

func (a *AcceptOrgInviteResponse) GetExtraProperties() map[string]interface{}

func (*AcceptOrgInviteResponse) GetMessage

func (a *AcceptOrgInviteResponse) GetMessage() string

func (*AcceptOrgInviteResponse) String

func (a *AcceptOrgInviteResponse) String() string

func (*AcceptOrgInviteResponse) UnmarshalJSON

func (a *AcceptOrgInviteResponse) UnmarshalJSON(data []byte) error

type AcceptUserInviteRequest

type AcceptUserInviteRequest struct {
	FullName string `json:"full_name" url:"-"`
	Password string `json:"password" url:"-"`
}

type AcceptUserInviteResponse

type AcceptUserInviteResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*AcceptUserInviteResponse) GetExtraProperties

func (a *AcceptUserInviteResponse) GetExtraProperties() map[string]interface{}

func (*AcceptUserInviteResponse) GetMessage

func (a *AcceptUserInviteResponse) GetMessage() string

func (*AcceptUserInviteResponse) String

func (a *AcceptUserInviteResponse) String() string

func (*AcceptUserInviteResponse) UnmarshalJSON

func (a *AcceptUserInviteResponse) UnmarshalJSON(data []byte) error

type ApiKeyResponse

type ApiKeyResponse struct {
	Id          string  `json:"id" url:"id"`
	UserId      string  `json:"user_id" url:"user_id"`
	OrgId       string  `json:"org_id" url:"org_id"`
	Description string  `json:"description" url:"description"`
	IsActive    bool    `json:"is_active" url:"is_active"`
	Key         string  `json:"key" url:"key"`
	CreatedAt   string  `json:"created_at" url:"created_at"`
	UpdatedAt   string  `json:"updated_at" url:"updated_at"`
	LastUsedAt  *string `json:"last_used_at,omitempty" url:"last_used_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiKeyResponse) GetCreatedAt

func (a *ApiKeyResponse) GetCreatedAt() string

func (*ApiKeyResponse) GetDescription

func (a *ApiKeyResponse) GetDescription() string

func (*ApiKeyResponse) GetExtraProperties

func (a *ApiKeyResponse) GetExtraProperties() map[string]interface{}

func (*ApiKeyResponse) GetId

func (a *ApiKeyResponse) GetId() string

func (*ApiKeyResponse) GetIsActive

func (a *ApiKeyResponse) GetIsActive() bool

func (*ApiKeyResponse) GetKey

func (a *ApiKeyResponse) GetKey() string

func (*ApiKeyResponse) GetLastUsedAt

func (a *ApiKeyResponse) GetLastUsedAt() *string

func (*ApiKeyResponse) GetOrgId

func (a *ApiKeyResponse) GetOrgId() string

func (*ApiKeyResponse) GetUpdatedAt

func (a *ApiKeyResponse) GetUpdatedAt() string

func (*ApiKeyResponse) GetUserId

func (a *ApiKeyResponse) GetUserId() string

func (*ApiKeyResponse) String

func (a *ApiKeyResponse) String() string

func (*ApiKeyResponse) UnmarshalJSON

func (a *ApiKeyResponse) UnmarshalJSON(data []byte) error

type ApiKeysResponse

type ApiKeysResponse = []*ApiKeyResponse

type BatchCreateEnvsRequest

type BatchCreateEnvsRequest struct {
	AppId     string                            `json:"app_id" url:"app_id"`
	EnvTypeId string                            `json:"env_type_id" url:"env_type_id"`
	Envs      []*BatchCreateEnvsRequestEnvsItem `json:"envs" url:"envs"`
	// contains filtered or unexported fields
}

func (*BatchCreateEnvsRequest) GetAppId

func (b *BatchCreateEnvsRequest) GetAppId() string

func (*BatchCreateEnvsRequest) GetEnvTypeId

func (b *BatchCreateEnvsRequest) GetEnvTypeId() string

func (*BatchCreateEnvsRequest) GetEnvs

func (*BatchCreateEnvsRequest) GetExtraProperties

func (b *BatchCreateEnvsRequest) GetExtraProperties() map[string]interface{}

func (*BatchCreateEnvsRequest) String

func (b *BatchCreateEnvsRequest) String() string

func (*BatchCreateEnvsRequest) UnmarshalJSON

func (b *BatchCreateEnvsRequest) UnmarshalJSON(data []byte) error

type BatchCreateEnvsRequestEnvsItem

type BatchCreateEnvsRequestEnvsItem struct {
	Key   string `json:"key" url:"key"`
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*BatchCreateEnvsRequestEnvsItem) GetExtraProperties

func (b *BatchCreateEnvsRequestEnvsItem) GetExtraProperties() map[string]interface{}

func (*BatchCreateEnvsRequestEnvsItem) GetKey

func (*BatchCreateEnvsRequestEnvsItem) GetValue

func (b *BatchCreateEnvsRequestEnvsItem) GetValue() string

func (*BatchCreateEnvsRequestEnvsItem) String

func (*BatchCreateEnvsRequestEnvsItem) UnmarshalJSON

func (b *BatchCreateEnvsRequestEnvsItem) UnmarshalJSON(data []byte) error

type BatchCreateSecretsRequest

type BatchCreateSecretsRequest struct {
	AppId     string                               `json:"app_id" url:"app_id"`
	EnvTypeId string                               `json:"env_type_id" url:"env_type_id"`
	Envs      []*BatchCreateSecretsRequestEnvsItem `json:"envs" url:"envs"`
	// contains filtered or unexported fields
}

func (*BatchCreateSecretsRequest) GetAppId

func (b *BatchCreateSecretsRequest) GetAppId() string

func (*BatchCreateSecretsRequest) GetEnvTypeId

func (b *BatchCreateSecretsRequest) GetEnvTypeId() string

func (*BatchCreateSecretsRequest) GetEnvs

func (*BatchCreateSecretsRequest) GetExtraProperties

func (b *BatchCreateSecretsRequest) GetExtraProperties() map[string]interface{}

func (*BatchCreateSecretsRequest) String

func (b *BatchCreateSecretsRequest) String() string

func (*BatchCreateSecretsRequest) UnmarshalJSON

func (b *BatchCreateSecretsRequest) UnmarshalJSON(data []byte) error

type BatchCreateSecretsRequestEnvsItem

type BatchCreateSecretsRequestEnvsItem struct {
	Key   string `json:"key" url:"key"`
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*BatchCreateSecretsRequestEnvsItem) GetExtraProperties

func (b *BatchCreateSecretsRequestEnvsItem) GetExtraProperties() map[string]interface{}

func (*BatchCreateSecretsRequestEnvsItem) GetKey

func (*BatchCreateSecretsRequestEnvsItem) GetValue

func (*BatchCreateSecretsRequestEnvsItem) String

func (*BatchCreateSecretsRequestEnvsItem) UnmarshalJSON

func (b *BatchCreateSecretsRequestEnvsItem) UnmarshalJSON(data []byte) error

type BatchDeleteEnvsRequest

type BatchDeleteEnvsRequest struct {
	AppId     string   `json:"app_id" url:"-"`
	EnvTypeId string   `json:"env_type_id" url:"-"`
	Keys      []string `json:"keys,omitempty" url:"-"`
}

type BatchDeleteSecretsRequest

type BatchDeleteSecretsRequest struct {
	AppId     string   `json:"app_id" url:"-"`
	EnvTypeId string   `json:"env_type_id" url:"-"`
	Keys      []string `json:"keys,omitempty" url:"-"`
}

type BatchEnvsResponse

type BatchEnvsResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*BatchEnvsResponse) GetExtraProperties

func (b *BatchEnvsResponse) GetExtraProperties() map[string]interface{}

func (*BatchEnvsResponse) GetMessage

func (b *BatchEnvsResponse) GetMessage() string

func (*BatchEnvsResponse) String

func (b *BatchEnvsResponse) String() string

func (*BatchEnvsResponse) UnmarshalJSON

func (b *BatchEnvsResponse) UnmarshalJSON(data []byte) error

type BatchSecretsResponse

type BatchSecretsResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*BatchSecretsResponse) GetExtraProperties

func (b *BatchSecretsResponse) GetExtraProperties() map[string]interface{}

func (*BatchSecretsResponse) GetMessage

func (b *BatchSecretsResponse) GetMessage() string

func (*BatchSecretsResponse) String

func (b *BatchSecretsResponse) String() string

func (*BatchSecretsResponse) UnmarshalJSON

func (b *BatchSecretsResponse) UnmarshalJSON(data []byte) error

type CallbackApiLoginRequest

type CallbackApiLoginRequest struct {
	Code string `json:"-" url:"code"`
}

type CallbackResponse

type CallbackResponse struct {
	Message   string                     `json:"message" url:"message"`
	TokenData *CallbackResponseTokenData `json:"tokenData,omitempty" url:"tokenData,omitempty"`
	// contains filtered or unexported fields
}

func (*CallbackResponse) GetExtraProperties

func (c *CallbackResponse) GetExtraProperties() map[string]interface{}

func (*CallbackResponse) GetMessage

func (c *CallbackResponse) GetMessage() string

func (*CallbackResponse) GetTokenData

func (c *CallbackResponse) GetTokenData() *CallbackResponseTokenData

func (*CallbackResponse) String

func (c *CallbackResponse) String() string

func (*CallbackResponse) UnmarshalJSON

func (c *CallbackResponse) UnmarshalJSON(data []byte) error

type CallbackResponseTokenData

type CallbackResponseTokenData struct {
	AccessToken string  `json:"access_token" url:"access_token"`
	IdToken     string  `json:"id_token" url:"id_token"`
	Scope       string  `json:"scope" url:"scope"`
	ExpiresIn   float64 `json:"expires_in" url:"expires_in"`
	TokenType   string  `json:"token_type" url:"token_type"`
	// contains filtered or unexported fields
}

func (*CallbackResponseTokenData) GetAccessToken

func (c *CallbackResponseTokenData) GetAccessToken() string

func (*CallbackResponseTokenData) GetExpiresIn

func (c *CallbackResponseTokenData) GetExpiresIn() float64

func (*CallbackResponseTokenData) GetExtraProperties

func (c *CallbackResponseTokenData) GetExtraProperties() map[string]interface{}

func (*CallbackResponseTokenData) GetIdToken

func (c *CallbackResponseTokenData) GetIdToken() string

func (*CallbackResponseTokenData) GetScope

func (c *CallbackResponseTokenData) GetScope() string

func (*CallbackResponseTokenData) GetTokenType

func (c *CallbackResponseTokenData) GetTokenType() string

func (*CallbackResponseTokenData) String

func (c *CallbackResponseTokenData) String() string

func (*CallbackResponseTokenData) UnmarshalJSON

func (c *CallbackResponseTokenData) UnmarshalJSON(data []byte) error

type CallbackWebLoginRequest

type CallbackWebLoginRequest struct {
	Code string `json:"-" url:"code"`
}

type CheckIfSlugExistsRequest

type CheckIfSlugExistsRequest struct {
	Slug string `json:"-" url:"slug"`
}

type CheckSlugResponse

type CheckSlugResponse struct {
	Exists bool `json:"exists" url:"exists"`
	// contains filtered or unexported fields
}

func (*CheckSlugResponse) GetExists

func (c *CheckSlugResponse) GetExists() bool

func (*CheckSlugResponse) GetExtraProperties

func (c *CheckSlugResponse) GetExtraProperties() map[string]interface{}

func (*CheckSlugResponse) String

func (c *CheckSlugResponse) String() string

func (*CheckSlugResponse) UnmarshalJSON

func (c *CheckSlugResponse) UnmarshalJSON(data []byte) error

type CreateApiKeyRequest

type CreateApiKeyRequest struct {
	Name        string  `json:"name" url:"-"`
	Description *string `json:"description,omitempty" url:"-"`
}

type CreateAppRequest

type CreateAppRequest struct {
	Name          string                 `json:"name" url:"-"`
	Description   string                 `json:"description" url:"-"`
	EnableSecrets *bool                  `json:"enable_secrets,omitempty" url:"-"`
	PublicKey     *string                `json:"public_key,omitempty" url:"-"`
	Metadata      map[string]interface{} `json:"metadata,omitempty" url:"-"`
}

type CreateAppResponse

type CreateAppResponse struct {
	Message string `json:"message" url:"message"`
	Id      string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*CreateAppResponse) GetExtraProperties

func (c *CreateAppResponse) GetExtraProperties() map[string]interface{}

func (*CreateAppResponse) GetId

func (c *CreateAppResponse) GetId() string

func (*CreateAppResponse) GetMessage

func (c *CreateAppResponse) GetMessage() string

func (*CreateAppResponse) String

func (c *CreateAppResponse) String() string

func (*CreateAppResponse) UnmarshalJSON

func (c *CreateAppResponse) UnmarshalJSON(data []byte) error

type CreateEnvRequest

type CreateEnvRequest struct {
	Key       string `json:"key" url:"-"`
	Value     string `json:"value" url:"-"`
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
}

type CreateEnvTypeRequest

type CreateEnvTypeRequest struct {
	Name        string  `json:"name" url:"-"`
	Color       *string `json:"color,omitempty" url:"-"`
	IsDefault   *bool   `json:"is_default,omitempty" url:"-"`
	IsProtected *bool   `json:"is_protected,omitempty" url:"-"`
	AppId       string  `json:"app_id" url:"-"`
}

type CreateOrgInviteRequest

type CreateOrgInviteRequest struct {
	Email string `json:"email" url:"-"`
}

type CreateOrgInviteResponse

type CreateOrgInviteResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*CreateOrgInviteResponse) GetExtraProperties

func (c *CreateOrgInviteResponse) GetExtraProperties() map[string]interface{}

func (*CreateOrgInviteResponse) GetMessage

func (c *CreateOrgInviteResponse) GetMessage() string

func (*CreateOrgInviteResponse) String

func (c *CreateOrgInviteResponse) String() string

func (*CreateOrgInviteResponse) UnmarshalJSON

func (c *CreateOrgInviteResponse) UnmarshalJSON(data []byte) error

type CreateRoleRequest

type CreateRoleRequest struct {
	Name               string  `json:"name" url:"-"`
	CanEdit            bool    `json:"can_edit" url:"-"`
	CanView            bool    `json:"can_view" url:"-"`
	HaveApiAccess      bool    `json:"have_api_access" url:"-"`
	HaveBillingOptions bool    `json:"have_billing_options" url:"-"`
	HaveWebhookAccess  bool    `json:"have_webhook_access" url:"-"`
	IsAdmin            bool    `json:"is_admin" url:"-"`
	Color              *string `json:"color,omitempty" url:"-"`
}

type CreateSecretRequest

type CreateSecretRequest struct {
	Key       string `json:"key" url:"-"`
	Value     string `json:"value" url:"-"`
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
}

type CreateUserInviteRequest

type CreateUserInviteRequest struct {
	Email  string `json:"email" url:"-"`
	RoleId string `json:"role_id" url:"-"`
}

type CreateUserInviteResponse

type CreateUserInviteResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*CreateUserInviteResponse) GetExtraProperties

func (c *CreateUserInviteResponse) GetExtraProperties() map[string]interface{}

func (*CreateUserInviteResponse) GetMessage

func (c *CreateUserInviteResponse) GetMessage() string

func (*CreateUserInviteResponse) String

func (c *CreateUserInviteResponse) String() string

func (*CreateUserInviteResponse) UnmarshalJSON

func (c *CreateUserInviteResponse) UnmarshalJSON(data []byte) error

type CreateWebhookRequest

type CreateWebhookRequest struct {
	Name        string                          `json:"name" url:"-"`
	Url         string                          `json:"url" url:"-"`
	EventTypes  []string                        `json:"event_types,omitempty" url:"-"`
	WebhookType CreateWebhookRequestWebhookType `json:"webhook_type" url:"-"`
	LinkedTo    *CreateWebhookRequestLinkedTo   `json:"linked_to,omitempty" url:"-"`
	AppId       *string                         `json:"app_id,omitempty" url:"-"`
}

type CreateWebhookRequestLinkedTo

type CreateWebhookRequestLinkedTo string
const (
	CreateWebhookRequestLinkedToOrg CreateWebhookRequestLinkedTo = "org"
	CreateWebhookRequestLinkedToApp CreateWebhookRequestLinkedTo = "app"
)

func NewCreateWebhookRequestLinkedToFromString

func NewCreateWebhookRequestLinkedToFromString(s string) (CreateWebhookRequestLinkedTo, error)

func (CreateWebhookRequestLinkedTo) Ptr

type CreateWebhookRequestWebhookType

type CreateWebhookRequestWebhookType string
const (
	CreateWebhookRequestWebhookTypeDiscord CreateWebhookRequestWebhookType = "DISCORD"
	CreateWebhookRequestWebhookTypeSlack   CreateWebhookRequestWebhookType = "SLACK"
	CreateWebhookRequestWebhookTypeCustom  CreateWebhookRequestWebhookType = "CUSTOM"
)

func NewCreateWebhookRequestWebhookTypeFromString

func NewCreateWebhookRequestWebhookTypeFromString(s string) (CreateWebhookRequestWebhookType, error)

func (CreateWebhookRequestWebhookType) Ptr

type DeleteAppResponse

type DeleteAppResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*DeleteAppResponse) GetExtraProperties

func (d *DeleteAppResponse) GetExtraProperties() map[string]interface{}

func (*DeleteAppResponse) GetMessage

func (d *DeleteAppResponse) GetMessage() string

func (*DeleteAppResponse) String

func (d *DeleteAppResponse) String() string

func (*DeleteAppResponse) UnmarshalJSON

func (d *DeleteAppResponse) UnmarshalJSON(data []byte) error

type DeleteEnvRequest

type DeleteEnvRequest struct {
	AppId     string `json:"app_id" url:"app_id"`
	EnvTypeId string `json:"env_type_id" url:"env_type_id"`
	Key       string `json:"key" url:"key"`
	// contains filtered or unexported fields
}

func (*DeleteEnvRequest) GetAppId

func (d *DeleteEnvRequest) GetAppId() string

func (*DeleteEnvRequest) GetEnvTypeId

func (d *DeleteEnvRequest) GetEnvTypeId() string

func (*DeleteEnvRequest) GetExtraProperties

func (d *DeleteEnvRequest) GetExtraProperties() map[string]interface{}

func (*DeleteEnvRequest) GetKey

func (d *DeleteEnvRequest) GetKey() string

func (*DeleteEnvRequest) String

func (d *DeleteEnvRequest) String() string

func (*DeleteEnvRequest) UnmarshalJSON

func (d *DeleteEnvRequest) UnmarshalJSON(data []byte) error

type DeleteEnvTypeRequest

type DeleteEnvTypeRequest struct {
	Id string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*DeleteEnvTypeRequest) GetExtraProperties

func (d *DeleteEnvTypeRequest) GetExtraProperties() map[string]interface{}

func (*DeleteEnvTypeRequest) GetId

func (d *DeleteEnvTypeRequest) GetId() string

func (*DeleteEnvTypeRequest) String

func (d *DeleteEnvTypeRequest) String() string

func (*DeleteEnvTypeRequest) UnmarshalJSON

func (d *DeleteEnvTypeRequest) UnmarshalJSON(data []byte) error

type DeleteSecretRequest

type DeleteSecretRequest struct {
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
	Key       string `json:"key" url:"-"`
}

type DeleteUserInviteResponse

type DeleteUserInviteResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*DeleteUserInviteResponse) GetExtraProperties

func (d *DeleteUserInviteResponse) GetExtraProperties() map[string]interface{}

func (*DeleteUserInviteResponse) GetMessage

func (d *DeleteUserInviteResponse) GetMessage() string

func (*DeleteUserInviteResponse) String

func (d *DeleteUserInviteResponse) String() string

func (*DeleteUserInviteResponse) UnmarshalJSON

func (d *DeleteUserInviteResponse) UnmarshalJSON(data []byte) error

type EnvDiffRequest

type EnvDiffRequest struct {
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
	FromPitId string `json:"from_pit_id" url:"-"`
	ToPitId   string `json:"to_pit_id" url:"-"`
}

type EnvDiffResponse

type EnvDiffResponse struct {
	Added    []*EnvDiffResponseAddedItem    `json:"added" url:"added"`
	Modified []*EnvDiffResponseModifiedItem `json:"modified" url:"modified"`
	Deleted  []*EnvDiffResponseDeletedItem  `json:"deleted" url:"deleted"`
	// contains filtered or unexported fields
}

func (*EnvDiffResponse) GetAdded

func (e *EnvDiffResponse) GetAdded() []*EnvDiffResponseAddedItem

func (*EnvDiffResponse) GetDeleted

func (e *EnvDiffResponse) GetDeleted() []*EnvDiffResponseDeletedItem

func (*EnvDiffResponse) GetExtraProperties

func (e *EnvDiffResponse) GetExtraProperties() map[string]interface{}

func (*EnvDiffResponse) GetModified

func (e *EnvDiffResponse) GetModified() []*EnvDiffResponseModifiedItem

func (*EnvDiffResponse) String

func (e *EnvDiffResponse) String() string

func (*EnvDiffResponse) UnmarshalJSON

func (e *EnvDiffResponse) UnmarshalJSON(data []byte) error

type EnvDiffResponseAddedItem

type EnvDiffResponseAddedItem struct {
	Key   string `json:"key" url:"key"`
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*EnvDiffResponseAddedItem) GetExtraProperties

func (e *EnvDiffResponseAddedItem) GetExtraProperties() map[string]interface{}

func (*EnvDiffResponseAddedItem) GetKey

func (e *EnvDiffResponseAddedItem) GetKey() string

func (*EnvDiffResponseAddedItem) GetValue

func (e *EnvDiffResponseAddedItem) GetValue() string

func (*EnvDiffResponseAddedItem) String

func (e *EnvDiffResponseAddedItem) String() string

func (*EnvDiffResponseAddedItem) UnmarshalJSON

func (e *EnvDiffResponseAddedItem) UnmarshalJSON(data []byte) error

type EnvDiffResponseDeletedItem

type EnvDiffResponseDeletedItem struct {
	Key   string `json:"key" url:"key"`
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*EnvDiffResponseDeletedItem) GetExtraProperties

func (e *EnvDiffResponseDeletedItem) GetExtraProperties() map[string]interface{}

func (*EnvDiffResponseDeletedItem) GetKey

func (e *EnvDiffResponseDeletedItem) GetKey() string

func (*EnvDiffResponseDeletedItem) GetValue

func (e *EnvDiffResponseDeletedItem) GetValue() string

func (*EnvDiffResponseDeletedItem) String

func (e *EnvDiffResponseDeletedItem) String() string

func (*EnvDiffResponseDeletedItem) UnmarshalJSON

func (e *EnvDiffResponseDeletedItem) UnmarshalJSON(data []byte) error

type EnvDiffResponseModifiedItem

type EnvDiffResponseModifiedItem struct {
	Key      string `json:"key" url:"key"`
	OldValue string `json:"old_value" url:"old_value"`
	NewValue string `json:"new_value" url:"new_value"`
	// contains filtered or unexported fields
}

func (*EnvDiffResponseModifiedItem) GetExtraProperties

func (e *EnvDiffResponseModifiedItem) GetExtraProperties() map[string]interface{}

func (*EnvDiffResponseModifiedItem) GetKey

func (e *EnvDiffResponseModifiedItem) GetKey() string

func (*EnvDiffResponseModifiedItem) GetNewValue

func (e *EnvDiffResponseModifiedItem) GetNewValue() string

func (*EnvDiffResponseModifiedItem) GetOldValue

func (e *EnvDiffResponseModifiedItem) GetOldValue() string

func (*EnvDiffResponseModifiedItem) String

func (e *EnvDiffResponseModifiedItem) String() string

func (*EnvDiffResponseModifiedItem) UnmarshalJSON

func (e *EnvDiffResponseModifiedItem) UnmarshalJSON(data []byte) error

type EnvHistoryRequest

type EnvHistoryRequest struct {
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
	Page      *int   `json:"page,omitempty" url:"-"`
	PerPage   *int   `json:"per_page,omitempty" url:"-"`
}

type EnvHistoryResponse

type EnvHistoryResponse struct {
	Pits       []*EnvHistoryResponsePitsItem `json:"pits" url:"pits"`
	TotalPages int                           `json:"totalPages" url:"totalPages"`
	// contains filtered or unexported fields
}

func (*EnvHistoryResponse) GetExtraProperties

func (e *EnvHistoryResponse) GetExtraProperties() map[string]interface{}

func (*EnvHistoryResponse) GetPits

func (*EnvHistoryResponse) GetTotalPages

func (e *EnvHistoryResponse) GetTotalPages() int

func (*EnvHistoryResponse) String

func (e *EnvHistoryResponse) String() string

func (*EnvHistoryResponse) UnmarshalJSON

func (e *EnvHistoryResponse) UnmarshalJSON(data []byte) error

type EnvHistoryResponsePitsItem

type EnvHistoryResponsePitsItem struct {
	Id                   string `json:"id" url:"id"`
	OrgId                string `json:"org_id" url:"org_id"`
	AppId                string `json:"app_id" url:"app_id"`
	EnvTypeId            string `json:"env_type_id" url:"env_type_id"`
	ChangeRequestMessage string `json:"change_request_message" url:"change_request_message"`
	UserId               string `json:"user_id" url:"user_id"`
	CreatedAt            string `json:"created_at" url:"created_at"`
	UpdatedAt            string `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*EnvHistoryResponsePitsItem) GetAppId

func (e *EnvHistoryResponsePitsItem) GetAppId() string

func (*EnvHistoryResponsePitsItem) GetChangeRequestMessage

func (e *EnvHistoryResponsePitsItem) GetChangeRequestMessage() string

func (*EnvHistoryResponsePitsItem) GetCreatedAt

func (e *EnvHistoryResponsePitsItem) GetCreatedAt() string

func (*EnvHistoryResponsePitsItem) GetEnvTypeId

func (e *EnvHistoryResponsePitsItem) GetEnvTypeId() string

func (*EnvHistoryResponsePitsItem) GetExtraProperties

func (e *EnvHistoryResponsePitsItem) GetExtraProperties() map[string]interface{}

func (*EnvHistoryResponsePitsItem) GetId

func (*EnvHistoryResponsePitsItem) GetOrgId

func (e *EnvHistoryResponsePitsItem) GetOrgId() string

func (*EnvHistoryResponsePitsItem) GetUpdatedAt

func (e *EnvHistoryResponsePitsItem) GetUpdatedAt() string

func (*EnvHistoryResponsePitsItem) GetUserId

func (e *EnvHistoryResponsePitsItem) GetUserId() string

func (*EnvHistoryResponsePitsItem) String

func (e *EnvHistoryResponsePitsItem) String() string

func (*EnvHistoryResponsePitsItem) UnmarshalJSON

func (e *EnvHistoryResponsePitsItem) UnmarshalJSON(data []byte) error

type EnvPitRequest

type EnvPitRequest struct {
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
	PitId     string `json:"pit_id" url:"-"`
}

type EnvPitStateResponse

type EnvPitStateResponse = []*EnvPitStateResponseItem

type EnvPitStateResponseItem

type EnvPitStateResponseItem struct {
	Key         string `json:"key" url:"key"`
	Value       string `json:"value" url:"value"`
	LastUpdated string `json:"last_updated" url:"last_updated"`
	// contains filtered or unexported fields
}

func (*EnvPitStateResponseItem) GetExtraProperties

func (e *EnvPitStateResponseItem) GetExtraProperties() map[string]interface{}

func (*EnvPitStateResponseItem) GetKey

func (e *EnvPitStateResponseItem) GetKey() string

func (*EnvPitStateResponseItem) GetLastUpdated

func (e *EnvPitStateResponseItem) GetLastUpdated() string

func (*EnvPitStateResponseItem) GetValue

func (e *EnvPitStateResponseItem) GetValue() string

func (*EnvPitStateResponseItem) String

func (e *EnvPitStateResponseItem) String() string

func (*EnvPitStateResponseItem) UnmarshalJSON

func (e *EnvPitStateResponseItem) UnmarshalJSON(data []byte) error

type EnvResponse

type EnvResponse struct {
	Id        string `json:"id" url:"id"`
	Key       string `json:"key" url:"key"`
	Value     string `json:"value" url:"value"`
	AppId     string `json:"app_id" url:"app_id"`
	EnvTypeId string `json:"env_type_id" url:"env_type_id"`
	OrgId     string `json:"org_id" url:"org_id"`
	CreatedAt string `json:"created_at" url:"created_at"`
	UpdatedAt string `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*EnvResponse) GetAppId

func (e *EnvResponse) GetAppId() string

func (*EnvResponse) GetCreatedAt

func (e *EnvResponse) GetCreatedAt() string

func (*EnvResponse) GetEnvTypeId

func (e *EnvResponse) GetEnvTypeId() string

func (*EnvResponse) GetExtraProperties

func (e *EnvResponse) GetExtraProperties() map[string]interface{}

func (*EnvResponse) GetId

func (e *EnvResponse) GetId() string

func (*EnvResponse) GetKey

func (e *EnvResponse) GetKey() string

func (*EnvResponse) GetOrgId

func (e *EnvResponse) GetOrgId() string

func (*EnvResponse) GetUpdatedAt

func (e *EnvResponse) GetUpdatedAt() string

func (*EnvResponse) GetValue

func (e *EnvResponse) GetValue() string

func (*EnvResponse) String

func (e *EnvResponse) String() string

func (*EnvResponse) UnmarshalJSON

func (e *EnvResponse) UnmarshalJSON(data []byte) error

type EnvTimestampRequest

type EnvTimestampRequest struct {
	AppId     string    `json:"app_id" url:"-"`
	EnvTypeId string    `json:"env_type_id" url:"-"`
	Timestamp time.Time `json:"timestamp" url:"-"`
}

func (*EnvTimestampRequest) MarshalJSON

func (e *EnvTimestampRequest) MarshalJSON() ([]byte, error)

func (*EnvTimestampRequest) UnmarshalJSON

func (e *EnvTimestampRequest) UnmarshalJSON(data []byte) error

type EnvTypeResponse

type EnvTypeResponse struct {
	Id          string `json:"id" url:"id"`
	Name        string `json:"name" url:"name"`
	OrgId       string `json:"org_id" url:"org_id"`
	AppId       string `json:"app_id" url:"app_id"`
	Color       string `json:"color" url:"color"`
	IsDefault   bool   `json:"is_default" url:"is_default"`
	IsProtected bool   `json:"is_protected" url:"is_protected"`
	CreatedAt   string `json:"created_at" url:"created_at"`
	UpdatedAt   string `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*EnvTypeResponse) GetAppId

func (e *EnvTypeResponse) GetAppId() string

func (*EnvTypeResponse) GetColor

func (e *EnvTypeResponse) GetColor() string

func (*EnvTypeResponse) GetCreatedAt

func (e *EnvTypeResponse) GetCreatedAt() string

func (*EnvTypeResponse) GetExtraProperties

func (e *EnvTypeResponse) GetExtraProperties() map[string]interface{}

func (*EnvTypeResponse) GetId

func (e *EnvTypeResponse) GetId() string

func (*EnvTypeResponse) GetIsDefault

func (e *EnvTypeResponse) GetIsDefault() bool

func (*EnvTypeResponse) GetIsProtected

func (e *EnvTypeResponse) GetIsProtected() bool

func (*EnvTypeResponse) GetName

func (e *EnvTypeResponse) GetName() string

func (*EnvTypeResponse) GetOrgId

func (e *EnvTypeResponse) GetOrgId() string

func (*EnvTypeResponse) GetUpdatedAt

func (e *EnvTypeResponse) GetUpdatedAt() string

func (*EnvTypeResponse) String

func (e *EnvTypeResponse) String() string

func (*EnvTypeResponse) UnmarshalJSON

func (e *EnvTypeResponse) UnmarshalJSON(data []byte) error

type EnvTypesResponse

type EnvTypesResponse = []*EnvTypeResponse

type EnvsResponse

type EnvsResponse = []*EnvResponse

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error" url:"error"`
	// contains filtered or unexported fields
}

func (*ErrorResponse) GetError

func (e *ErrorResponse) GetError() string

func (*ErrorResponse) GetExtraProperties

func (e *ErrorResponse) GetExtraProperties() map[string]interface{}

func (*ErrorResponse) String

func (e *ErrorResponse) String() string

func (*ErrorResponse) UnmarshalJSON

func (e *ErrorResponse) UnmarshalJSON(data []byte) error

type FileParam

type FileParam struct {
	io.Reader
	// contains filtered or unexported fields
}

FileParam is a file type suitable for multipart/form-data uploads.

func NewFileParam

func NewFileParam(
	reader io.Reader,
	filename string,
	contentType string,
	opts ...FileParamOption,
) *FileParam

NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.

However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.

func (*FileParam) ContentType

func (f *FileParam) ContentType() string

func (*FileParam) Name

func (f *FileParam) Name() string

type FileParamOption

type FileParamOption interface {
	// contains filtered or unexported methods
}

FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.

type GetAppResponse

type GetAppResponse struct {
	Id              string                        `json:"id" url:"id"`
	Name            string                        `json:"name" url:"name"`
	Description     string                        `json:"description" url:"description"`
	Metadata        map[string]interface{}        `json:"metadata" url:"metadata"`
	EnableSecrets   bool                          `json:"enable_secrets" url:"enable_secrets"`
	IsManagedSecret bool                          `json:"is_managed_secret" url:"is_managed_secret"`
	PublicKey       *string                       `json:"public_key,omitempty" url:"public_key,omitempty"`
	OrgId           string                        `json:"org_id" url:"org_id"`
	EnvCount        float64                       `json:"envCount" url:"envCount"`
	SecretCount     float64                       `json:"secretCount" url:"secretCount"`
	EnvTypes        []*GetAppResponseEnvTypesItem `json:"env_types" url:"env_types"`
	CreatedAt       string                        `json:"created_at" url:"created_at"`
	UpdatedAt       string                        `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*GetAppResponse) GetCreatedAt

func (g *GetAppResponse) GetCreatedAt() string

func (*GetAppResponse) GetDescription

func (g *GetAppResponse) GetDescription() string

func (*GetAppResponse) GetEnableSecrets

func (g *GetAppResponse) GetEnableSecrets() bool

func (*GetAppResponse) GetEnvCount

func (g *GetAppResponse) GetEnvCount() float64

func (*GetAppResponse) GetEnvTypes

func (g *GetAppResponse) GetEnvTypes() []*GetAppResponseEnvTypesItem

func (*GetAppResponse) GetExtraProperties

func (g *GetAppResponse) GetExtraProperties() map[string]interface{}

func (*GetAppResponse) GetId

func (g *GetAppResponse) GetId() string

func (*GetAppResponse) GetIsManagedSecret

func (g *GetAppResponse) GetIsManagedSecret() bool

func (*GetAppResponse) GetMetadata

func (g *GetAppResponse) GetMetadata() map[string]interface{}

func (*GetAppResponse) GetName

func (g *GetAppResponse) GetName() string

func (*GetAppResponse) GetOrgId

func (g *GetAppResponse) GetOrgId() string

func (*GetAppResponse) GetPublicKey

func (g *GetAppResponse) GetPublicKey() *string

func (*GetAppResponse) GetSecretCount

func (g *GetAppResponse) GetSecretCount() float64

func (*GetAppResponse) GetUpdatedAt

func (g *GetAppResponse) GetUpdatedAt() string

func (*GetAppResponse) String

func (g *GetAppResponse) String() string

func (*GetAppResponse) UnmarshalJSON

func (g *GetAppResponse) UnmarshalJSON(data []byte) error

type GetAppResponseEnvTypesItem

type GetAppResponseEnvTypesItem struct {
	Id          string `json:"id" url:"id"`
	Name        string `json:"name" url:"name"`
	IsDefault   bool   `json:"is_default" url:"is_default"`
	IsProtected bool   `json:"is_protected" url:"is_protected"`
	Color       string `json:"color" url:"color"`
	// contains filtered or unexported fields
}

func (*GetAppResponseEnvTypesItem) GetColor

func (g *GetAppResponseEnvTypesItem) GetColor() string

func (*GetAppResponseEnvTypesItem) GetExtraProperties

func (g *GetAppResponseEnvTypesItem) GetExtraProperties() map[string]interface{}

func (*GetAppResponseEnvTypesItem) GetId

func (*GetAppResponseEnvTypesItem) GetIsDefault

func (g *GetAppResponseEnvTypesItem) GetIsDefault() bool

func (*GetAppResponseEnvTypesItem) GetIsProtected

func (g *GetAppResponseEnvTypesItem) GetIsProtected() bool

func (*GetAppResponseEnvTypesItem) GetName

func (g *GetAppResponseEnvTypesItem) GetName() string

func (*GetAppResponseEnvTypesItem) String

func (g *GetAppResponseEnvTypesItem) String() string

func (*GetAppResponseEnvTypesItem) UnmarshalJSON

func (g *GetAppResponseEnvTypesItem) UnmarshalJSON(data []byte) error

type GetAppsResponse

type GetAppsResponse = []*GetAppsResponseItem

type GetAppsResponseItem

type GetAppsResponseItem struct {
	Id              string                             `json:"id" url:"id"`
	Name            string                             `json:"name" url:"name"`
	Description     string                             `json:"description" url:"description"`
	EnableSecrets   bool                               `json:"enable_secrets" url:"enable_secrets"`
	IsManagedSecret bool                               `json:"is_managed_secret" url:"is_managed_secret"`
	PublicKey       *string                            `json:"public_key,omitempty" url:"public_key,omitempty"`
	Metadata        map[string]interface{}             `json:"metadata" url:"metadata"`
	OrgId           string                             `json:"org_id" url:"org_id"`
	EnvCount        float64                            `json:"envCount" url:"envCount"`
	SecretCount     float64                            `json:"secretCount" url:"secretCount"`
	EnvTypes        []*GetAppsResponseItemEnvTypesItem `json:"env_types" url:"env_types"`
	CreatedAt       string                             `json:"created_at" url:"created_at"`
	UpdatedAt       string                             `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*GetAppsResponseItem) GetCreatedAt

func (g *GetAppsResponseItem) GetCreatedAt() string

func (*GetAppsResponseItem) GetDescription

func (g *GetAppsResponseItem) GetDescription() string

func (*GetAppsResponseItem) GetEnableSecrets

func (g *GetAppsResponseItem) GetEnableSecrets() bool

func (*GetAppsResponseItem) GetEnvCount

func (g *GetAppsResponseItem) GetEnvCount() float64

func (*GetAppsResponseItem) GetEnvTypes

func (*GetAppsResponseItem) GetExtraProperties

func (g *GetAppsResponseItem) GetExtraProperties() map[string]interface{}

func (*GetAppsResponseItem) GetId

func (g *GetAppsResponseItem) GetId() string

func (*GetAppsResponseItem) GetIsManagedSecret

func (g *GetAppsResponseItem) GetIsManagedSecret() bool

func (*GetAppsResponseItem) GetMetadata

func (g *GetAppsResponseItem) GetMetadata() map[string]interface{}

func (*GetAppsResponseItem) GetName

func (g *GetAppsResponseItem) GetName() string

func (*GetAppsResponseItem) GetOrgId

func (g *GetAppsResponseItem) GetOrgId() string

func (*GetAppsResponseItem) GetPublicKey

func (g *GetAppsResponseItem) GetPublicKey() *string

func (*GetAppsResponseItem) GetSecretCount

func (g *GetAppsResponseItem) GetSecretCount() float64

func (*GetAppsResponseItem) GetUpdatedAt

func (g *GetAppsResponseItem) GetUpdatedAt() string

func (*GetAppsResponseItem) String

func (g *GetAppsResponseItem) String() string

func (*GetAppsResponseItem) UnmarshalJSON

func (g *GetAppsResponseItem) UnmarshalJSON(data []byte) error

type GetAppsResponseItemEnvTypesItem

type GetAppsResponseItemEnvTypesItem struct {
	Id          string `json:"id" url:"id"`
	Name        string `json:"name" url:"name"`
	IsDefault   bool   `json:"is_default" url:"is_default"`
	IsProtected bool   `json:"is_protected" url:"is_protected"`
	Color       string `json:"color" url:"color"`
	// contains filtered or unexported fields
}

func (*GetAppsResponseItemEnvTypesItem) GetColor

func (*GetAppsResponseItemEnvTypesItem) GetExtraProperties

func (g *GetAppsResponseItemEnvTypesItem) GetExtraProperties() map[string]interface{}

func (*GetAppsResponseItemEnvTypesItem) GetId

func (*GetAppsResponseItemEnvTypesItem) GetIsDefault

func (g *GetAppsResponseItemEnvTypesItem) GetIsDefault() bool

func (*GetAppsResponseItemEnvTypesItem) GetIsProtected

func (g *GetAppsResponseItemEnvTypesItem) GetIsProtected() bool

func (*GetAppsResponseItemEnvTypesItem) GetName

func (*GetAppsResponseItemEnvTypesItem) String

func (*GetAppsResponseItemEnvTypesItem) UnmarshalJSON

func (g *GetAppsResponseItemEnvTypesItem) UnmarshalJSON(data []byte) error

type GetAuditLogsRequest

type GetAuditLogsRequest struct {
	Page    *string `json:"-" url:"page,omitempty"`
	PerPage *string `json:"-" url:"per_page,omitempty"`
}

type GetAuditLogsResponse

type GetAuditLogsResponse = []*GetAuditLogsResponseItem

type GetAuditLogsResponseItem

type GetAuditLogsResponseItem struct {
	Id        string `json:"id" url:"id"`
	Action    string `json:"action" url:"action"`
	OrgId     string `json:"org_id" url:"org_id"`
	UserId    string `json:"user_id" url:"user_id"`
	Details   string `json:"details" url:"details"`
	Message   string `json:"message" url:"message"`
	CreatedAt string `json:"created_at" url:"created_at"`
	UpdatedAt string `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*GetAuditLogsResponseItem) GetAction

func (g *GetAuditLogsResponseItem) GetAction() string

func (*GetAuditLogsResponseItem) GetCreatedAt

func (g *GetAuditLogsResponseItem) GetCreatedAt() string

func (*GetAuditLogsResponseItem) GetDetails

func (g *GetAuditLogsResponseItem) GetDetails() string

func (*GetAuditLogsResponseItem) GetExtraProperties

func (g *GetAuditLogsResponseItem) GetExtraProperties() map[string]interface{}

func (*GetAuditLogsResponseItem) GetId

func (g *GetAuditLogsResponseItem) GetId() string

func (*GetAuditLogsResponseItem) GetMessage

func (g *GetAuditLogsResponseItem) GetMessage() string

func (*GetAuditLogsResponseItem) GetOrgId

func (g *GetAuditLogsResponseItem) GetOrgId() string

func (*GetAuditLogsResponseItem) GetUpdatedAt

func (g *GetAuditLogsResponseItem) GetUpdatedAt() string

func (*GetAuditLogsResponseItem) GetUserId

func (g *GetAuditLogsResponseItem) GetUserId() string

func (*GetAuditLogsResponseItem) String

func (g *GetAuditLogsResponseItem) String() string

func (*GetAuditLogsResponseItem) UnmarshalJSON

func (g *GetAuditLogsResponseItem) UnmarshalJSON(data []byte) error

type GetAuditLogsResponseWrapper

type GetAuditLogsResponseWrapper struct {
	AuditLogs  GetAuditLogsResponse `json:"auditLogs" url:"auditLogs"`
	TotalPages float64              `json:"totalPages" url:"totalPages"`
	// contains filtered or unexported fields
}

Response schema for getting audit logs

func (*GetAuditLogsResponseWrapper) GetAuditLogs

func (*GetAuditLogsResponseWrapper) GetExtraProperties

func (g *GetAuditLogsResponseWrapper) GetExtraProperties() map[string]interface{}

func (*GetAuditLogsResponseWrapper) GetTotalPages

func (g *GetAuditLogsResponseWrapper) GetTotalPages() float64

func (*GetAuditLogsResponseWrapper) String

func (g *GetAuditLogsResponseWrapper) String() string

func (*GetAuditLogsResponseWrapper) UnmarshalJSON

func (g *GetAuditLogsResponseWrapper) UnmarshalJSON(data []byte) error

type GetEnvRequest

type GetEnvRequest struct {
	AppId     string `json:"app_id" url:"app_id"`
	EnvTypeId string `json:"env_type_id" url:"env_type_id"`
	// contains filtered or unexported fields
}

func (*GetEnvRequest) GetAppId

func (g *GetEnvRequest) GetAppId() string

func (*GetEnvRequest) GetEnvTypeId

func (g *GetEnvRequest) GetEnvTypeId() string

func (*GetEnvRequest) GetExtraProperties

func (g *GetEnvRequest) GetExtraProperties() map[string]interface{}

func (*GetEnvRequest) String

func (g *GetEnvRequest) String() string

func (*GetEnvRequest) UnmarshalJSON

func (g *GetEnvRequest) UnmarshalJSON(data []byte) error

type GetOrgInviteByCodeResponse

type GetOrgInviteByCodeResponse struct {
	Invite *GetOrgInviteByCodeResponseInvite `json:"invite" url:"invite"`
	// contains filtered or unexported fields
}

func (*GetOrgInviteByCodeResponse) GetExtraProperties

func (g *GetOrgInviteByCodeResponse) GetExtraProperties() map[string]interface{}

func (*GetOrgInviteByCodeResponse) GetInvite

func (*GetOrgInviteByCodeResponse) String

func (g *GetOrgInviteByCodeResponse) String() string

func (*GetOrgInviteByCodeResponse) UnmarshalJSON

func (g *GetOrgInviteByCodeResponse) UnmarshalJSON(data []byte) error

type GetOrgInviteByCodeResponseInvite

type GetOrgInviteByCodeResponseInvite struct {
	Id          string `json:"id" url:"id"`
	Email       string `json:"email" url:"email"`
	InviteToken string `json:"invite_token" url:"invite_token"`
	IsAccepted  bool   `json:"is_accepted" url:"is_accepted"`
	CreatedAt   string `json:"created_at" url:"created_at"`
	UpdatedAt   string `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*GetOrgInviteByCodeResponseInvite) GetCreatedAt

func (g *GetOrgInviteByCodeResponseInvite) GetCreatedAt() string

func (*GetOrgInviteByCodeResponseInvite) GetEmail

func (*GetOrgInviteByCodeResponseInvite) GetExtraProperties

func (g *GetOrgInviteByCodeResponseInvite) GetExtraProperties() map[string]interface{}

func (*GetOrgInviteByCodeResponseInvite) GetId

func (*GetOrgInviteByCodeResponseInvite) GetInviteToken

func (g *GetOrgInviteByCodeResponseInvite) GetInviteToken() string

func (*GetOrgInviteByCodeResponseInvite) GetIsAccepted

func (g *GetOrgInviteByCodeResponseInvite) GetIsAccepted() bool

func (*GetOrgInviteByCodeResponseInvite) GetUpdatedAt

func (g *GetOrgInviteByCodeResponseInvite) GetUpdatedAt() string

func (*GetOrgInviteByCodeResponseInvite) String

func (*GetOrgInviteByCodeResponseInvite) UnmarshalJSON

func (g *GetOrgInviteByCodeResponseInvite) UnmarshalJSON(data []byte) error

type GetSecretRequest

type GetSecretRequest struct {
	AppId     string `json:"app_id" url:"app_id"`
	EnvTypeId string `json:"env_type_id" url:"env_type_id"`
	// contains filtered or unexported fields
}

func (*GetSecretRequest) GetAppId

func (g *GetSecretRequest) GetAppId() string

func (*GetSecretRequest) GetEnvTypeId

func (g *GetSecretRequest) GetEnvTypeId() string

func (*GetSecretRequest) GetExtraProperties

func (g *GetSecretRequest) GetExtraProperties() map[string]interface{}

func (*GetSecretRequest) String

func (g *GetSecretRequest) String() string

func (*GetSecretRequest) UnmarshalJSON

func (g *GetSecretRequest) UnmarshalJSON(data []byte) error

type GetUserInviteByTokenResponse

type GetUserInviteByTokenResponse struct {
	Invite *GetUserInviteByTokenResponseInvite `json:"invite" url:"invite"`
	// contains filtered or unexported fields
}

func (*GetUserInviteByTokenResponse) GetExtraProperties

func (g *GetUserInviteByTokenResponse) GetExtraProperties() map[string]interface{}

func (*GetUserInviteByTokenResponse) GetInvite

func (*GetUserInviteByTokenResponse) String

func (*GetUserInviteByTokenResponse) UnmarshalJSON

func (g *GetUserInviteByTokenResponse) UnmarshalJSON(data []byte) error

type GetUserInviteByTokenResponseInvite

type GetUserInviteByTokenResponseInvite struct {
	Id          string `json:"id" url:"id"`
	Email       string `json:"email" url:"email"`
	InviteToken string `json:"invite_token" url:"invite_token"`
	RoleId      string `json:"role_id" url:"role_id"`
	OrgId       string `json:"org_id" url:"org_id"`
	IsAccepted  bool   `json:"is_accepted" url:"is_accepted"`
	CreatedAt   string `json:"created_at" url:"created_at"`
	UpdatedAt   string `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*GetUserInviteByTokenResponseInvite) GetCreatedAt

func (g *GetUserInviteByTokenResponseInvite) GetCreatedAt() string

func (*GetUserInviteByTokenResponseInvite) GetEmail

func (*GetUserInviteByTokenResponseInvite) GetExtraProperties

func (g *GetUserInviteByTokenResponseInvite) GetExtraProperties() map[string]interface{}

func (*GetUserInviteByTokenResponseInvite) GetId

func (*GetUserInviteByTokenResponseInvite) GetInviteToken

func (g *GetUserInviteByTokenResponseInvite) GetInviteToken() string

func (*GetUserInviteByTokenResponseInvite) GetIsAccepted

func (g *GetUserInviteByTokenResponseInvite) GetIsAccepted() bool

func (*GetUserInviteByTokenResponseInvite) GetOrgId

func (*GetUserInviteByTokenResponseInvite) GetRoleId

func (*GetUserInviteByTokenResponseInvite) GetUpdatedAt

func (g *GetUserInviteByTokenResponseInvite) GetUpdatedAt() string

func (*GetUserInviteByTokenResponseInvite) String

func (*GetUserInviteByTokenResponseInvite) UnmarshalJSON

func (g *GetUserInviteByTokenResponseInvite) UnmarshalJSON(data []byte) error

type InternalServerError

type InternalServerError struct {
	*core.APIError
	Body interface{}
}

Internal server error

func (*InternalServerError) MarshalJSON

func (i *InternalServerError) MarshalJSON() ([]byte, error)

func (*InternalServerError) UnmarshalJSON

func (i *InternalServerError) UnmarshalJSON(data []byte) error

func (*InternalServerError) Unwrap

func (i *InternalServerError) Unwrap() error

type LoginUrlResponse

type LoginUrlResponse struct {
	Message  string `json:"message" url:"message"`
	LoginUrl string `json:"loginUrl" url:"loginUrl"`
	// contains filtered or unexported fields
}

func (*LoginUrlResponse) GetExtraProperties

func (l *LoginUrlResponse) GetExtraProperties() map[string]interface{}

func (*LoginUrlResponse) GetLoginUrl

func (l *LoginUrlResponse) GetLoginUrl() string

func (*LoginUrlResponse) GetMessage

func (l *LoginUrlResponse) GetMessage() string

func (*LoginUrlResponse) String

func (l *LoginUrlResponse) String() string

func (*LoginUrlResponse) UnmarshalJSON

func (l *LoginUrlResponse) UnmarshalJSON(data []byte) error

type OrgResponse

type OrgResponse struct {
	Id        string                 `json:"id" url:"id"`
	Name      string                 `json:"name" url:"name"`
	LogoUrl   *string                `json:"logo_url,omitempty" url:"logo_url,omitempty"`
	Slug      string                 `json:"slug" url:"slug"`
	Size      *string                `json:"size,omitempty" url:"size,omitempty"`
	Website   *string                `json:"website,omitempty" url:"website,omitempty"`
	Metadata  map[string]interface{} `json:"metadata" url:"metadata"`
	CreatedAt string                 `json:"created_at" url:"created_at"`
	UpdatedAt string                 `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*OrgResponse) GetCreatedAt

func (o *OrgResponse) GetCreatedAt() string

func (*OrgResponse) GetExtraProperties

func (o *OrgResponse) GetExtraProperties() map[string]interface{}

func (*OrgResponse) GetId

func (o *OrgResponse) GetId() string

func (*OrgResponse) GetLogoUrl

func (o *OrgResponse) GetLogoUrl() *string

func (*OrgResponse) GetMetadata

func (o *OrgResponse) GetMetadata() map[string]interface{}

func (*OrgResponse) GetName

func (o *OrgResponse) GetName() string

func (*OrgResponse) GetSize

func (o *OrgResponse) GetSize() *string

func (*OrgResponse) GetSlug

func (o *OrgResponse) GetSlug() string

func (*OrgResponse) GetUpdatedAt

func (o *OrgResponse) GetUpdatedAt() string

func (*OrgResponse) GetWebsite

func (o *OrgResponse) GetWebsite() *string

func (*OrgResponse) String

func (o *OrgResponse) String() string

func (*OrgResponse) UnmarshalJSON

func (o *OrgResponse) UnmarshalJSON(data []byte) error

type RegenerateApiKeyResponse

type RegenerateApiKeyResponse struct {
	NewKey string `json:"newKey" url:"newKey"`
	Id     string `json:"id" url:"id"`
	// contains filtered or unexported fields
}

func (*RegenerateApiKeyResponse) GetExtraProperties

func (r *RegenerateApiKeyResponse) GetExtraProperties() map[string]interface{}

func (*RegenerateApiKeyResponse) GetId

func (r *RegenerateApiKeyResponse) GetId() string

func (*RegenerateApiKeyResponse) GetNewKey

func (r *RegenerateApiKeyResponse) GetNewKey() string

func (*RegenerateApiKeyResponse) String

func (r *RegenerateApiKeyResponse) String() string

func (*RegenerateApiKeyResponse) UnmarshalJSON

func (r *RegenerateApiKeyResponse) UnmarshalJSON(data []byte) error

type RevealSecretsRequest

type RevealSecretsRequest struct {
	AppId     string   `json:"app_id" url:"-"`
	EnvTypeId string   `json:"env_type_id" url:"-"`
	Keys      []string `json:"keys,omitempty" url:"-"`
}

type RevealSecretsResponse

type RevealSecretsResponse = []*RevealSecretsResponseItem

type RevealSecretsResponseItem

type RevealSecretsResponseItem struct {
	Id        string `json:"id" url:"id"`
	Key       string `json:"key" url:"key"`
	Value     string `json:"value" url:"value"`
	AppId     string `json:"app_id" url:"app_id"`
	EnvTypeId string `json:"env_type_id" url:"env_type_id"`
	OrgId     string `json:"org_id" url:"org_id"`
	CreatedAt string `json:"created_at" url:"created_at"`
	UpdatedAt string `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*RevealSecretsResponseItem) GetAppId

func (r *RevealSecretsResponseItem) GetAppId() string

func (*RevealSecretsResponseItem) GetCreatedAt

func (r *RevealSecretsResponseItem) GetCreatedAt() string

func (*RevealSecretsResponseItem) GetEnvTypeId

func (r *RevealSecretsResponseItem) GetEnvTypeId() string

func (*RevealSecretsResponseItem) GetExtraProperties

func (r *RevealSecretsResponseItem) GetExtraProperties() map[string]interface{}

func (*RevealSecretsResponseItem) GetId

func (r *RevealSecretsResponseItem) GetId() string

func (*RevealSecretsResponseItem) GetKey

func (r *RevealSecretsResponseItem) GetKey() string

func (*RevealSecretsResponseItem) GetOrgId

func (r *RevealSecretsResponseItem) GetOrgId() string

func (*RevealSecretsResponseItem) GetUpdatedAt

func (r *RevealSecretsResponseItem) GetUpdatedAt() string

func (*RevealSecretsResponseItem) GetValue

func (r *RevealSecretsResponseItem) GetValue() string

func (*RevealSecretsResponseItem) String

func (r *RevealSecretsResponseItem) String() string

func (*RevealSecretsResponseItem) UnmarshalJSON

func (r *RevealSecretsResponseItem) UnmarshalJSON(data []byte) error

type RoleResponse

type RoleResponse struct {
	Id                 string  `json:"id" url:"id"`
	Name               string  `json:"name" url:"name"`
	OrgId              string  `json:"org_id" url:"org_id"`
	CanEdit            bool    `json:"can_edit" url:"can_edit"`
	CanView            bool    `json:"can_view" url:"can_view"`
	HaveApiAccess      bool    `json:"have_api_access" url:"have_api_access"`
	HaveBillingOptions bool    `json:"have_billing_options" url:"have_billing_options"`
	HaveWebhookAccess  bool    `json:"have_webhook_access" url:"have_webhook_access"`
	Color              *string `json:"color,omitempty" url:"color,omitempty"`
	IsAdmin            bool    `json:"is_admin" url:"is_admin"`
	IsMaster           bool    `json:"is_master" url:"is_master"`
	CreatedAt          string  `json:"created_at" url:"created_at"`
	UpdatedAt          string  `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*RoleResponse) GetCanEdit

func (r *RoleResponse) GetCanEdit() bool

func (*RoleResponse) GetCanView

func (r *RoleResponse) GetCanView() bool

func (*RoleResponse) GetColor

func (r *RoleResponse) GetColor() *string

func (*RoleResponse) GetCreatedAt

func (r *RoleResponse) GetCreatedAt() string

func (*RoleResponse) GetExtraProperties

func (r *RoleResponse) GetExtraProperties() map[string]interface{}

func (*RoleResponse) GetHaveApiAccess

func (r *RoleResponse) GetHaveApiAccess() bool

func (*RoleResponse) GetHaveBillingOptions

func (r *RoleResponse) GetHaveBillingOptions() bool

func (*RoleResponse) GetHaveWebhookAccess

func (r *RoleResponse) GetHaveWebhookAccess() bool

func (*RoleResponse) GetId

func (r *RoleResponse) GetId() string

func (*RoleResponse) GetIsAdmin

func (r *RoleResponse) GetIsAdmin() bool

func (*RoleResponse) GetIsMaster

func (r *RoleResponse) GetIsMaster() bool

func (*RoleResponse) GetName

func (r *RoleResponse) GetName() string

func (*RoleResponse) GetOrgId

func (r *RoleResponse) GetOrgId() string

func (*RoleResponse) GetUpdatedAt

func (r *RoleResponse) GetUpdatedAt() string

func (*RoleResponse) String

func (r *RoleResponse) String() string

func (*RoleResponse) UnmarshalJSON

func (r *RoleResponse) UnmarshalJSON(data []byte) error

type RoleStatsResponse

type RoleStatsResponse struct {
	AdminAccessCount   float64 `json:"admin_access_count" url:"admin_access_count"`
	BillingAccessCount float64 `json:"billing_access_count" url:"billing_access_count"`
	ApiAccessCount     float64 `json:"api_access_count" url:"api_access_count"`
	WebhookAccessCount float64 `json:"webhook_access_count" url:"webhook_access_count"`
	ViewAccessCount    float64 `json:"view_access_count" url:"view_access_count"`
	EditAccessCount    float64 `json:"edit_access_count" url:"edit_access_count"`
	TotalRoles         float64 `json:"total_roles" url:"total_roles"`
	// contains filtered or unexported fields
}

func (*RoleStatsResponse) GetAdminAccessCount

func (r *RoleStatsResponse) GetAdminAccessCount() float64

func (*RoleStatsResponse) GetApiAccessCount

func (r *RoleStatsResponse) GetApiAccessCount() float64

func (*RoleStatsResponse) GetBillingAccessCount

func (r *RoleStatsResponse) GetBillingAccessCount() float64

func (*RoleStatsResponse) GetEditAccessCount

func (r *RoleStatsResponse) GetEditAccessCount() float64

func (*RoleStatsResponse) GetExtraProperties

func (r *RoleStatsResponse) GetExtraProperties() map[string]interface{}

func (*RoleStatsResponse) GetTotalRoles

func (r *RoleStatsResponse) GetTotalRoles() float64

func (*RoleStatsResponse) GetViewAccessCount

func (r *RoleStatsResponse) GetViewAccessCount() float64

func (*RoleStatsResponse) GetWebhookAccessCount

func (r *RoleStatsResponse) GetWebhookAccessCount() float64

func (*RoleStatsResponse) String

func (r *RoleStatsResponse) String() string

func (*RoleStatsResponse) UnmarshalJSON

func (r *RoleStatsResponse) UnmarshalJSON(data []byte) error

type RolesResponse

type RolesResponse = []*RoleResponse

type RollbackResponse

type RollbackResponse struct {
	Message             string                            `json:"message" url:"message"`
	OperationsPerformed int                               `json:"operations_performed" url:"operations_performed"`
	Operations          []*RollbackResponseOperationsItem `json:"operations" url:"operations"`
	// contains filtered or unexported fields
}

func (*RollbackResponse) GetExtraProperties

func (r *RollbackResponse) GetExtraProperties() map[string]interface{}

func (*RollbackResponse) GetMessage

func (r *RollbackResponse) GetMessage() string

func (*RollbackResponse) GetOperations

func (r *RollbackResponse) GetOperations() []*RollbackResponseOperationsItem

func (*RollbackResponse) GetOperationsPerformed

func (r *RollbackResponse) GetOperationsPerformed() int

func (*RollbackResponse) String

func (r *RollbackResponse) String() string

func (*RollbackResponse) UnmarshalJSON

func (r *RollbackResponse) UnmarshalJSON(data []byte) error

type RollbackResponseOperationsItem

type RollbackResponseOperationsItem struct {
	Key       string                                  `json:"key" url:"key"`
	Value     string                                  `json:"value" url:"value"`
	Operation RollbackResponseOperationsItemOperation `json:"operation" url:"operation"`
	// contains filtered or unexported fields
}

func (*RollbackResponseOperationsItem) GetExtraProperties

func (r *RollbackResponseOperationsItem) GetExtraProperties() map[string]interface{}

func (*RollbackResponseOperationsItem) GetKey

func (*RollbackResponseOperationsItem) GetOperation

func (*RollbackResponseOperationsItem) GetValue

func (r *RollbackResponseOperationsItem) GetValue() string

func (*RollbackResponseOperationsItem) String

func (*RollbackResponseOperationsItem) UnmarshalJSON

func (r *RollbackResponseOperationsItem) UnmarshalJSON(data []byte) error

type RollbackResponseOperationsItemOperation

type RollbackResponseOperationsItemOperation string
const (
	RollbackResponseOperationsItemOperationCreate RollbackResponseOperationsItemOperation = "CREATE"
	RollbackResponseOperationsItemOperationUpdate RollbackResponseOperationsItemOperation = "UPDATE"
	RollbackResponseOperationsItemOperationDelete RollbackResponseOperationsItemOperation = "DELETE"
)

func NewRollbackResponseOperationsItemOperationFromString

func NewRollbackResponseOperationsItemOperationFromString(s string) (RollbackResponseOperationsItemOperation, error)

func (RollbackResponseOperationsItemOperation) Ptr

type RollbackSecretsResponse

type RollbackSecretsResponse struct {
	Message             string                                   `json:"message" url:"message"`
	OperationsPerformed int                                      `json:"operations_performed" url:"operations_performed"`
	Operations          []*RollbackSecretsResponseOperationsItem `json:"operations" url:"operations"`
	// contains filtered or unexported fields
}

func (*RollbackSecretsResponse) GetExtraProperties

func (r *RollbackSecretsResponse) GetExtraProperties() map[string]interface{}

func (*RollbackSecretsResponse) GetMessage

func (r *RollbackSecretsResponse) GetMessage() string

func (*RollbackSecretsResponse) GetOperations

func (*RollbackSecretsResponse) GetOperationsPerformed

func (r *RollbackSecretsResponse) GetOperationsPerformed() int

func (*RollbackSecretsResponse) String

func (r *RollbackSecretsResponse) String() string

func (*RollbackSecretsResponse) UnmarshalJSON

func (r *RollbackSecretsResponse) UnmarshalJSON(data []byte) error

type RollbackSecretsResponseOperationsItem

type RollbackSecretsResponseOperationsItem struct {
	Key       string                                         `json:"key" url:"key"`
	Value     string                                         `json:"value" url:"value"`
	Operation RollbackSecretsResponseOperationsItemOperation `json:"operation" url:"operation"`
	// contains filtered or unexported fields
}

func (*RollbackSecretsResponseOperationsItem) GetExtraProperties

func (r *RollbackSecretsResponseOperationsItem) GetExtraProperties() map[string]interface{}

func (*RollbackSecretsResponseOperationsItem) GetKey

func (*RollbackSecretsResponseOperationsItem) GetOperation

func (*RollbackSecretsResponseOperationsItem) GetValue

func (*RollbackSecretsResponseOperationsItem) String

func (*RollbackSecretsResponseOperationsItem) UnmarshalJSON

func (r *RollbackSecretsResponseOperationsItem) UnmarshalJSON(data []byte) error

type RollbackSecretsResponseOperationsItemOperation

type RollbackSecretsResponseOperationsItemOperation string
const (
	RollbackSecretsResponseOperationsItemOperationCreate RollbackSecretsResponseOperationsItemOperation = "CREATE"
	RollbackSecretsResponseOperationsItemOperationUpdate RollbackSecretsResponseOperationsItemOperation = "UPDATE"
	RollbackSecretsResponseOperationsItemOperationDelete RollbackSecretsResponseOperationsItemOperation = "DELETE"
)

func NewRollbackSecretsResponseOperationsItemOperationFromString

func NewRollbackSecretsResponseOperationsItemOperationFromString(s string) (RollbackSecretsResponseOperationsItemOperation, error)

func (RollbackSecretsResponseOperationsItemOperation) Ptr

type RollbackSecretsToPitRequest

type RollbackSecretsToPitRequest struct {
	AppId           string  `json:"app_id" url:"-"`
	EnvTypeId       string  `json:"env_type_id" url:"-"`
	PitId           string  `json:"pit_id" url:"-"`
	RollbackMessage *string `json:"rollback_message,omitempty" url:"-"`
}

type RollbackSecretsToTimestampRequest

type RollbackSecretsToTimestampRequest struct {
	AppId           string    `json:"app_id" url:"-"`
	EnvTypeId       string    `json:"env_type_id" url:"-"`
	Timestamp       time.Time `json:"timestamp" url:"-"`
	RollbackMessage *string   `json:"rollback_message,omitempty" url:"-"`
}

func (*RollbackSecretsToTimestampRequest) MarshalJSON

func (r *RollbackSecretsToTimestampRequest) MarshalJSON() ([]byte, error)

func (*RollbackSecretsToTimestampRequest) UnmarshalJSON

func (r *RollbackSecretsToTimestampRequest) UnmarshalJSON(data []byte) error

type RollbackToPitRequest

type RollbackToPitRequest struct {
	AppId           string  `json:"app_id" url:"-"`
	EnvTypeId       string  `json:"env_type_id" url:"-"`
	PitId           string  `json:"pit_id" url:"-"`
	RollbackMessage *string `json:"rollback_message,omitempty" url:"-"`
}

type RollbackToTimestampRequest

type RollbackToTimestampRequest struct {
	AppId           string    `json:"app_id" url:"-"`
	EnvTypeId       string    `json:"env_type_id" url:"-"`
	Timestamp       time.Time `json:"timestamp" url:"-"`
	RollbackMessage *string   `json:"rollback_message,omitempty" url:"-"`
}

func (*RollbackToTimestampRequest) MarshalJSON

func (r *RollbackToTimestampRequest) MarshalJSON() ([]byte, error)

func (*RollbackToTimestampRequest) UnmarshalJSON

func (r *RollbackToTimestampRequest) UnmarshalJSON(data []byte) error

type SecretDiffRequest

type SecretDiffRequest struct {
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
	FromPitId string `json:"from_pit_id" url:"-"`
	ToPitId   string `json:"to_pit_id" url:"-"`
}

type SecretDiffResponse

type SecretDiffResponse struct {
	Added    []*SecretDiffResponseAddedItem    `json:"added" url:"added"`
	Modified []*SecretDiffResponseModifiedItem `json:"modified" url:"modified"`
	Deleted  []*SecretDiffResponseDeletedItem  `json:"deleted" url:"deleted"`
	// contains filtered or unexported fields
}

func (*SecretDiffResponse) GetAdded

func (*SecretDiffResponse) GetDeleted

func (*SecretDiffResponse) GetExtraProperties

func (s *SecretDiffResponse) GetExtraProperties() map[string]interface{}

func (*SecretDiffResponse) GetModified

func (*SecretDiffResponse) String

func (s *SecretDiffResponse) String() string

func (*SecretDiffResponse) UnmarshalJSON

func (s *SecretDiffResponse) UnmarshalJSON(data []byte) error

type SecretDiffResponseAddedItem

type SecretDiffResponseAddedItem struct {
	Key   string `json:"key" url:"key"`
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*SecretDiffResponseAddedItem) GetExtraProperties

func (s *SecretDiffResponseAddedItem) GetExtraProperties() map[string]interface{}

func (*SecretDiffResponseAddedItem) GetKey

func (s *SecretDiffResponseAddedItem) GetKey() string

func (*SecretDiffResponseAddedItem) GetValue

func (s *SecretDiffResponseAddedItem) GetValue() string

func (*SecretDiffResponseAddedItem) String

func (s *SecretDiffResponseAddedItem) String() string

func (*SecretDiffResponseAddedItem) UnmarshalJSON

func (s *SecretDiffResponseAddedItem) UnmarshalJSON(data []byte) error

type SecretDiffResponseDeletedItem

type SecretDiffResponseDeletedItem struct {
	Key   string `json:"key" url:"key"`
	Value string `json:"value" url:"value"`
	// contains filtered or unexported fields
}

func (*SecretDiffResponseDeletedItem) GetExtraProperties

func (s *SecretDiffResponseDeletedItem) GetExtraProperties() map[string]interface{}

func (*SecretDiffResponseDeletedItem) GetKey

func (*SecretDiffResponseDeletedItem) GetValue

func (s *SecretDiffResponseDeletedItem) GetValue() string

func (*SecretDiffResponseDeletedItem) String

func (*SecretDiffResponseDeletedItem) UnmarshalJSON

func (s *SecretDiffResponseDeletedItem) UnmarshalJSON(data []byte) error

type SecretDiffResponseModifiedItem

type SecretDiffResponseModifiedItem struct {
	Key      string `json:"key" url:"key"`
	OldValue string `json:"old_value" url:"old_value"`
	NewValue string `json:"new_value" url:"new_value"`
	// contains filtered or unexported fields
}

func (*SecretDiffResponseModifiedItem) GetExtraProperties

func (s *SecretDiffResponseModifiedItem) GetExtraProperties() map[string]interface{}

func (*SecretDiffResponseModifiedItem) GetKey

func (*SecretDiffResponseModifiedItem) GetNewValue

func (s *SecretDiffResponseModifiedItem) GetNewValue() string

func (*SecretDiffResponseModifiedItem) GetOldValue

func (s *SecretDiffResponseModifiedItem) GetOldValue() string

func (*SecretDiffResponseModifiedItem) String

func (*SecretDiffResponseModifiedItem) UnmarshalJSON

func (s *SecretDiffResponseModifiedItem) UnmarshalJSON(data []byte) error

type SecretHistoryRequest

type SecretHistoryRequest struct {
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
	Page      string `json:"page" url:"-"`
	PerPage   string `json:"per_page" url:"-"`
}

type SecretHistoryResponse

type SecretHistoryResponse struct {
	Pits       []*SecretHistoryResponsePitsItem `json:"pits" url:"pits"`
	TotalPages int                              `json:"totalPages" url:"totalPages"`
	// contains filtered or unexported fields
}

func (*SecretHistoryResponse) GetExtraProperties

func (s *SecretHistoryResponse) GetExtraProperties() map[string]interface{}

func (*SecretHistoryResponse) GetPits

func (*SecretHistoryResponse) GetTotalPages

func (s *SecretHistoryResponse) GetTotalPages() int

func (*SecretHistoryResponse) String

func (s *SecretHistoryResponse) String() string

func (*SecretHistoryResponse) UnmarshalJSON

func (s *SecretHistoryResponse) UnmarshalJSON(data []byte) error

type SecretHistoryResponsePitsItem

type SecretHistoryResponsePitsItem struct {
	Id                   string `json:"id" url:"id"`
	OrgId                string `json:"org_id" url:"org_id"`
	AppId                string `json:"app_id" url:"app_id"`
	EnvTypeId            string `json:"env_type_id" url:"env_type_id"`
	ChangeRequestMessage string `json:"change_request_message" url:"change_request_message"`
	UserId               string `json:"user_id" url:"user_id"`
	CreatedAt            string `json:"created_at" url:"created_at"`
	UpdatedAt            string `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*SecretHistoryResponsePitsItem) GetAppId

func (s *SecretHistoryResponsePitsItem) GetAppId() string

func (*SecretHistoryResponsePitsItem) GetChangeRequestMessage

func (s *SecretHistoryResponsePitsItem) GetChangeRequestMessage() string

func (*SecretHistoryResponsePitsItem) GetCreatedAt

func (s *SecretHistoryResponsePitsItem) GetCreatedAt() string

func (*SecretHistoryResponsePitsItem) GetEnvTypeId

func (s *SecretHistoryResponsePitsItem) GetEnvTypeId() string

func (*SecretHistoryResponsePitsItem) GetExtraProperties

func (s *SecretHistoryResponsePitsItem) GetExtraProperties() map[string]interface{}

func (*SecretHistoryResponsePitsItem) GetId

func (*SecretHistoryResponsePitsItem) GetOrgId

func (s *SecretHistoryResponsePitsItem) GetOrgId() string

func (*SecretHistoryResponsePitsItem) GetUpdatedAt

func (s *SecretHistoryResponsePitsItem) GetUpdatedAt() string

func (*SecretHistoryResponsePitsItem) GetUserId

func (s *SecretHistoryResponsePitsItem) GetUserId() string

func (*SecretHistoryResponsePitsItem) String

func (*SecretHistoryResponsePitsItem) UnmarshalJSON

func (s *SecretHistoryResponsePitsItem) UnmarshalJSON(data []byte) error

type SecretPitRequest

type SecretPitRequest struct {
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
	PitId     string `json:"pit_id" url:"-"`
}

type SecretPitStateResponse

type SecretPitStateResponse = []*SecretPitStateResponseItem

type SecretPitStateResponseItem

type SecretPitStateResponseItem struct {
	Key         string `json:"key" url:"key"`
	Value       string `json:"value" url:"value"`
	LastUpdated string `json:"last_updated" url:"last_updated"`
	// contains filtered or unexported fields
}

func (*SecretPitStateResponseItem) GetExtraProperties

func (s *SecretPitStateResponseItem) GetExtraProperties() map[string]interface{}

func (*SecretPitStateResponseItem) GetKey

func (s *SecretPitStateResponseItem) GetKey() string

func (*SecretPitStateResponseItem) GetLastUpdated

func (s *SecretPitStateResponseItem) GetLastUpdated() string

func (*SecretPitStateResponseItem) GetValue

func (s *SecretPitStateResponseItem) GetValue() string

func (*SecretPitStateResponseItem) String

func (s *SecretPitStateResponseItem) String() string

func (*SecretPitStateResponseItem) UnmarshalJSON

func (s *SecretPitStateResponseItem) UnmarshalJSON(data []byte) error

type SecretResponse

type SecretResponse struct {
	Id        string `json:"id" url:"id"`
	Key       string `json:"key" url:"key"`
	Value     string `json:"value" url:"value"`
	AppId     string `json:"app_id" url:"app_id"`
	EnvTypeId string `json:"env_type_id" url:"env_type_id"`
	OrgId     string `json:"org_id" url:"org_id"`
	CreatedAt string `json:"created_at" url:"created_at"`
	UpdatedAt string `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*SecretResponse) GetAppId

func (s *SecretResponse) GetAppId() string

func (*SecretResponse) GetCreatedAt

func (s *SecretResponse) GetCreatedAt() string

func (*SecretResponse) GetEnvTypeId

func (s *SecretResponse) GetEnvTypeId() string

func (*SecretResponse) GetExtraProperties

func (s *SecretResponse) GetExtraProperties() map[string]interface{}

func (*SecretResponse) GetId

func (s *SecretResponse) GetId() string

func (*SecretResponse) GetKey

func (s *SecretResponse) GetKey() string

func (*SecretResponse) GetOrgId

func (s *SecretResponse) GetOrgId() string

func (*SecretResponse) GetUpdatedAt

func (s *SecretResponse) GetUpdatedAt() string

func (*SecretResponse) GetValue

func (s *SecretResponse) GetValue() string

func (*SecretResponse) String

func (s *SecretResponse) String() string

func (*SecretResponse) UnmarshalJSON

func (s *SecretResponse) UnmarshalJSON(data []byte) error

type SecretTimestampRequest

type SecretTimestampRequest struct {
	AppId     string    `json:"app_id" url:"-"`
	EnvTypeId string    `json:"env_type_id" url:"-"`
	Timestamp time.Time `json:"timestamp" url:"-"`
}

func (*SecretTimestampRequest) MarshalJSON

func (s *SecretTimestampRequest) MarshalJSON() ([]byte, error)

func (*SecretTimestampRequest) UnmarshalJSON

func (s *SecretTimestampRequest) UnmarshalJSON(data []byte) error

type SecretVariableRollbackResponse

type SecretVariableRollbackResponse struct {
	Message         string                                  `json:"message" url:"message"`
	Key             string                                  `json:"key" url:"key"`
	Operation       SecretVariableRollbackResponseOperation `json:"operation" url:"operation"`
	PreviousValue   *string                                 `json:"previous_value,omitempty" url:"previous_value,omitempty"`
	TargetValue     *string                                 `json:"target_value,omitempty" url:"target_value,omitempty"`
	PitId           *string                                 `json:"pit_id,omitempty" url:"pit_id,omitempty"`
	TargetTimestamp *string                                 `json:"target_timestamp,omitempty" url:"target_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretVariableRollbackResponse) GetExtraProperties

func (s *SecretVariableRollbackResponse) GetExtraProperties() map[string]interface{}

func (*SecretVariableRollbackResponse) GetKey

func (*SecretVariableRollbackResponse) GetMessage

func (s *SecretVariableRollbackResponse) GetMessage() string

func (*SecretVariableRollbackResponse) GetOperation

func (*SecretVariableRollbackResponse) GetPitId

func (s *SecretVariableRollbackResponse) GetPitId() *string

func (*SecretVariableRollbackResponse) GetPreviousValue

func (s *SecretVariableRollbackResponse) GetPreviousValue() *string

func (*SecretVariableRollbackResponse) GetTargetTimestamp

func (s *SecretVariableRollbackResponse) GetTargetTimestamp() *string

func (*SecretVariableRollbackResponse) GetTargetValue

func (s *SecretVariableRollbackResponse) GetTargetValue() *string

func (*SecretVariableRollbackResponse) String

func (*SecretVariableRollbackResponse) UnmarshalJSON

func (s *SecretVariableRollbackResponse) UnmarshalJSON(data []byte) error

type SecretVariableRollbackResponseOperation

type SecretVariableRollbackResponseOperation string
const (
	SecretVariableRollbackResponseOperationCreate SecretVariableRollbackResponseOperation = "CREATE"
	SecretVariableRollbackResponseOperationUpdate SecretVariableRollbackResponseOperation = "UPDATE"
	SecretVariableRollbackResponseOperationDelete SecretVariableRollbackResponseOperation = "DELETE"
)

func NewSecretVariableRollbackResponseOperationFromString

func NewSecretVariableRollbackResponseOperationFromString(s string) (SecretVariableRollbackResponseOperation, error)

func (SecretVariableRollbackResponseOperation) Ptr

type SecretVariableRollbackToPitRequest

type SecretVariableRollbackToPitRequest struct {
	AppId           string  `json:"app_id" url:"-"`
	EnvTypeId       string  `json:"env_type_id" url:"-"`
	PitId           string  `json:"pit_id" url:"-"`
	RollbackMessage *string `json:"rollback_message,omitempty" url:"-"`
}

type SecretVariableRollbackToTimestampRequest

type SecretVariableRollbackToTimestampRequest struct {
	AppId           string    `json:"app_id" url:"-"`
	EnvTypeId       string    `json:"env_type_id" url:"-"`
	Timestamp       time.Time `json:"timestamp" url:"-"`
	RollbackMessage *string   `json:"rollback_message,omitempty" url:"-"`
}

func (*SecretVariableRollbackToTimestampRequest) MarshalJSON

func (s *SecretVariableRollbackToTimestampRequest) MarshalJSON() ([]byte, error)

func (*SecretVariableRollbackToTimestampRequest) UnmarshalJSON

func (s *SecretVariableRollbackToTimestampRequest) UnmarshalJSON(data []byte) error

type SecretVariableTimelineRequest

type SecretVariableTimelineRequest struct {
	AppId                            string `json:"app_id" url:"-"`
	EnvTypeId                        string `json:"env_type_id" url:"-"`
	SecretVariableTimelineRequestKey string `json:"key" url:"-"`
	Limit                            *int   `json:"limit,omitempty" url:"-"`
}

type SecretVariableTimelineResponse

type SecretVariableTimelineResponse = []*SecretVariableTimelineResponseItem

type SecretVariableTimelineResponseItem

type SecretVariableTimelineResponseItem struct {
	PitId                string                                      `json:"pit_id" url:"pit_id"`
	ChangeRequestMessage string                                      `json:"change_request_message" url:"change_request_message"`
	UserId               string                                      `json:"user_id" url:"user_id"`
	CreatedAt            string                                      `json:"created_at" url:"created_at"`
	Value                string                                      `json:"value" url:"value"`
	Operation            SecretVariableTimelineResponseItemOperation `json:"operation" url:"operation"`
	// contains filtered or unexported fields
}

func (*SecretVariableTimelineResponseItem) GetChangeRequestMessage

func (s *SecretVariableTimelineResponseItem) GetChangeRequestMessage() string

func (*SecretVariableTimelineResponseItem) GetCreatedAt

func (s *SecretVariableTimelineResponseItem) GetCreatedAt() string

func (*SecretVariableTimelineResponseItem) GetExtraProperties

func (s *SecretVariableTimelineResponseItem) GetExtraProperties() map[string]interface{}

func (*SecretVariableTimelineResponseItem) GetOperation

func (*SecretVariableTimelineResponseItem) GetPitId

func (*SecretVariableTimelineResponseItem) GetUserId

func (*SecretVariableTimelineResponseItem) GetValue

func (*SecretVariableTimelineResponseItem) String

func (*SecretVariableTimelineResponseItem) UnmarshalJSON

func (s *SecretVariableTimelineResponseItem) UnmarshalJSON(data []byte) error

type SecretVariableTimelineResponseItemOperation

type SecretVariableTimelineResponseItemOperation string
const (
	SecretVariableTimelineResponseItemOperationCreate SecretVariableTimelineResponseItemOperation = "CREATE"
	SecretVariableTimelineResponseItemOperationUpdate SecretVariableTimelineResponseItemOperation = "UPDATE"
	SecretVariableTimelineResponseItemOperationDelete SecretVariableTimelineResponseItemOperation = "DELETE"
)

func NewSecretVariableTimelineResponseItemOperationFromString

func NewSecretVariableTimelineResponseItemOperationFromString(s string) (SecretVariableTimelineResponseItemOperation, error)

func (SecretVariableTimelineResponseItemOperation) Ptr

type SecretsResponse

type SecretsResponse = []*SecretResponse

type UpdateApiKeyRequest

type UpdateApiKeyRequest struct {
	Description *string `json:"description,omitempty" url:"-"`
	IsActive    *bool   `json:"is_active,omitempty" url:"-"`
	LastUsedAt  *string `json:"last_used_at,omitempty" url:"-"`
}

type UpdateAppRequest

type UpdateAppRequest struct {
	Name        *string                `json:"name,omitempty" url:"-"`
	Description *string                `json:"description,omitempty" url:"-"`
	Metadata    map[string]interface{} `json:"metadata,omitempty" url:"-"`
}

type UpdateAppResponse

type UpdateAppResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*UpdateAppResponse) GetExtraProperties

func (u *UpdateAppResponse) GetExtraProperties() map[string]interface{}

func (*UpdateAppResponse) GetMessage

func (u *UpdateAppResponse) GetMessage() string

func (*UpdateAppResponse) String

func (u *UpdateAppResponse) String() string

func (*UpdateAppResponse) UnmarshalJSON

func (u *UpdateAppResponse) UnmarshalJSON(data []byte) error

type UpdateEnvRequest

type UpdateEnvRequest struct {
	Value     string `json:"value" url:"-"`
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
}

type UpdateEnvTypeRequest

type UpdateEnvTypeRequest struct {
	UpdateEnvTypeRequestId string  `json:"id" url:"-"`
	Name                   string  `json:"name" url:"-"`
	Color                  *string `json:"color,omitempty" url:"-"`
	IsDefault              *bool   `json:"is_default,omitempty" url:"-"`
	IsProtected            *bool   `json:"is_protected,omitempty" url:"-"`
}

type UpdateOrgRequest

type UpdateOrgRequest struct {
	LogoUrl *string `json:"logo_url,omitempty" url:"-"`
	Website *string `json:"website,omitempty" url:"-"`
	Name    *string `json:"name,omitempty" url:"-"`
	Slug    *string `json:"slug,omitempty" url:"-"`
}

type UpdateRoleRequest

type UpdateRoleRequest struct {
	RoleId string `json:"role_id" url:"role_id"`
	// contains filtered or unexported fields
}

func (*UpdateRoleRequest) GetExtraProperties

func (u *UpdateRoleRequest) GetExtraProperties() map[string]interface{}

func (*UpdateRoleRequest) GetRoleId

func (u *UpdateRoleRequest) GetRoleId() string

func (*UpdateRoleRequest) String

func (u *UpdateRoleRequest) String() string

func (*UpdateRoleRequest) UnmarshalJSON

func (u *UpdateRoleRequest) UnmarshalJSON(data []byte) error

type UpdateSecretRequest

type UpdateSecretRequest struct {
	Value     string `json:"value" url:"-"`
	AppId     string `json:"app_id" url:"-"`
	EnvTypeId string `json:"env_type_id" url:"-"`
}

type UpdateUserInviteRequest

type UpdateUserInviteRequest struct {
	RoleId string `json:"role_id" url:"-"`
}

type UpdateUserInviteResponse

type UpdateUserInviteResponse struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*UpdateUserInviteResponse) GetExtraProperties

func (u *UpdateUserInviteResponse) GetExtraProperties() map[string]interface{}

func (*UpdateUserInviteResponse) GetMessage

func (u *UpdateUserInviteResponse) GetMessage() string

func (*UpdateUserInviteResponse) String

func (u *UpdateUserInviteResponse) String() string

func (*UpdateUserInviteResponse) UnmarshalJSON

func (u *UpdateUserInviteResponse) UnmarshalJSON(data []byte) error

type UpdateUserRequest

type UpdateUserRequest struct {
	FullName          *string `json:"full_name,omitempty" url:"-"`
	ProfilePictureUrl *string `json:"profile_picture_url,omitempty" url:"-"`
	Email             *string `json:"email,omitempty" url:"-"`
}

type UpdateWebhookRequest

type UpdateWebhookRequest struct {
	Name        *string                          `json:"name,omitempty" url:"-"`
	Url         *string                          `json:"url,omitempty" url:"-"`
	EventTypes  []string                         `json:"event_types,omitempty" url:"-"`
	IsActive    *bool                            `json:"is_active,omitempty" url:"-"`
	WebhookType *UpdateWebhookRequestWebhookType `json:"webhook_type,omitempty" url:"-"`
	AppId       *string                          `json:"app_id,omitempty" url:"-"`
	LinkedTo    *UpdateWebhookRequestLinkedTo    `json:"linked_to,omitempty" url:"-"`
}

type UpdateWebhookRequestLinkedTo

type UpdateWebhookRequestLinkedTo string
const (
	UpdateWebhookRequestLinkedToOrg UpdateWebhookRequestLinkedTo = "org"
	UpdateWebhookRequestLinkedToApp UpdateWebhookRequestLinkedTo = "app"
)

func NewUpdateWebhookRequestLinkedToFromString

func NewUpdateWebhookRequestLinkedToFromString(s string) (UpdateWebhookRequestLinkedTo, error)

func (UpdateWebhookRequestLinkedTo) Ptr

type UpdateWebhookRequestWebhookType

type UpdateWebhookRequestWebhookType string
const (
	UpdateWebhookRequestWebhookTypeDiscord UpdateWebhookRequestWebhookType = "DISCORD"
	UpdateWebhookRequestWebhookTypeSlack   UpdateWebhookRequestWebhookType = "SLACK"
	UpdateWebhookRequestWebhookTypeCustom  UpdateWebhookRequestWebhookType = "CUSTOM"
)

func NewUpdateWebhookRequestWebhookTypeFromString

func NewUpdateWebhookRequestWebhookTypeFromString(s string) (UpdateWebhookRequestWebhookType, error)

func (UpdateWebhookRequestWebhookType) Ptr

type UploadFileError

type UploadFileError struct {
	Error string `json:"error" url:"error"`
	// contains filtered or unexported fields
}

func (*UploadFileError) GetError

func (u *UploadFileError) GetError() string

func (*UploadFileError) GetExtraProperties

func (u *UploadFileError) GetExtraProperties() map[string]interface{}

func (*UploadFileError) String

func (u *UploadFileError) String() string

func (*UploadFileError) UnmarshalJSON

func (u *UploadFileError) UnmarshalJSON(data []byte) error

type UploadFileRequest

type UploadFileRequest struct {
	File interface{} `json:"file,omitempty" url:"-"`
}

type UploadFileResponse

type UploadFileResponse struct {
	Message string `json:"message" url:"message"`
	S3Url   string `json:"s3_url" url:"s3_url"`
	// contains filtered or unexported fields
}

func (*UploadFileResponse) GetExtraProperties

func (u *UploadFileResponse) GetExtraProperties() map[string]interface{}

func (*UploadFileResponse) GetMessage

func (u *UploadFileResponse) GetMessage() string

func (*UploadFileResponse) GetS3Url

func (u *UploadFileResponse) GetS3Url() string

func (*UploadFileResponse) String

func (u *UploadFileResponse) String() string

func (*UploadFileResponse) UnmarshalJSON

func (u *UploadFileResponse) UnmarshalJSON(data []byte) error

type UserResponse

type UserResponse struct {
	Id                string  `json:"id" url:"id"`
	Email             string  `json:"email" url:"email"`
	FullName          string  `json:"full_name" url:"full_name"`
	ProfilePictureUrl *string `json:"profile_picture_url,omitempty" url:"profile_picture_url,omitempty"`
	OrgId             string  `json:"org_id" url:"org_id"`
	RoleId            string  `json:"role_id" url:"role_id"`
	Auth0Id           *string `json:"auth0_id,omitempty" url:"auth0_id,omitempty"`
	IsActive          bool    `json:"is_active" url:"is_active"`
	CreatedAt         string  `json:"created_at" url:"created_at"`
	UpdatedAt         string  `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*UserResponse) GetAuth0Id

func (u *UserResponse) GetAuth0Id() *string

func (*UserResponse) GetCreatedAt

func (u *UserResponse) GetCreatedAt() string

func (*UserResponse) GetEmail

func (u *UserResponse) GetEmail() string

func (*UserResponse) GetExtraProperties

func (u *UserResponse) GetExtraProperties() map[string]interface{}

func (*UserResponse) GetFullName

func (u *UserResponse) GetFullName() string

func (*UserResponse) GetId

func (u *UserResponse) GetId() string

func (*UserResponse) GetIsActive

func (u *UserResponse) GetIsActive() bool

func (*UserResponse) GetOrgId

func (u *UserResponse) GetOrgId() string

func (*UserResponse) GetProfilePictureUrl

func (u *UserResponse) GetProfilePictureUrl() *string

func (*UserResponse) GetRoleId

func (u *UserResponse) GetRoleId() string

func (*UserResponse) GetUpdatedAt

func (u *UserResponse) GetUpdatedAt() string

func (*UserResponse) String

func (u *UserResponse) String() string

func (*UserResponse) UnmarshalJSON

func (u *UserResponse) UnmarshalJSON(data []byte) error

type UsersResponse

type UsersResponse = []*UserResponse

type VariableRollbackResponse

type VariableRollbackResponse struct {
	Message         string                            `json:"message" url:"message"`
	Key             string                            `json:"key" url:"key"`
	Operation       VariableRollbackResponseOperation `json:"operation" url:"operation"`
	PreviousValue   *string                           `json:"previous_value,omitempty" url:"previous_value,omitempty"`
	TargetValue     *string                           `json:"target_value,omitempty" url:"target_value,omitempty"`
	PitId           *string                           `json:"pit_id,omitempty" url:"pit_id,omitempty"`
	TargetTimestamp *string                           `json:"target_timestamp,omitempty" url:"target_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*VariableRollbackResponse) GetExtraProperties

func (v *VariableRollbackResponse) GetExtraProperties() map[string]interface{}

func (*VariableRollbackResponse) GetKey

func (v *VariableRollbackResponse) GetKey() string

func (*VariableRollbackResponse) GetMessage

func (v *VariableRollbackResponse) GetMessage() string

func (*VariableRollbackResponse) GetOperation

func (*VariableRollbackResponse) GetPitId

func (v *VariableRollbackResponse) GetPitId() *string

func (*VariableRollbackResponse) GetPreviousValue

func (v *VariableRollbackResponse) GetPreviousValue() *string

func (*VariableRollbackResponse) GetTargetTimestamp

func (v *VariableRollbackResponse) GetTargetTimestamp() *string

func (*VariableRollbackResponse) GetTargetValue

func (v *VariableRollbackResponse) GetTargetValue() *string

func (*VariableRollbackResponse) String

func (v *VariableRollbackResponse) String() string

func (*VariableRollbackResponse) UnmarshalJSON

func (v *VariableRollbackResponse) UnmarshalJSON(data []byte) error

type VariableRollbackResponseOperation

type VariableRollbackResponseOperation string
const (
	VariableRollbackResponseOperationCreate VariableRollbackResponseOperation = "CREATE"
	VariableRollbackResponseOperationUpdate VariableRollbackResponseOperation = "UPDATE"
	VariableRollbackResponseOperationDelete VariableRollbackResponseOperation = "DELETE"
)

func NewVariableRollbackResponseOperationFromString

func NewVariableRollbackResponseOperationFromString(s string) (VariableRollbackResponseOperation, error)

func (VariableRollbackResponseOperation) Ptr

type VariableRollbackToPitRequest

type VariableRollbackToPitRequest struct {
	AppId           string  `json:"app_id" url:"-"`
	EnvTypeId       string  `json:"env_type_id" url:"-"`
	PitId           string  `json:"pit_id" url:"-"`
	RollbackMessage *string `json:"rollback_message,omitempty" url:"-"`
}

type VariableRollbackToTimestampRequest

type VariableRollbackToTimestampRequest struct {
	AppId           string    `json:"app_id" url:"-"`
	EnvTypeId       string    `json:"env_type_id" url:"-"`
	Timestamp       time.Time `json:"timestamp" url:"-"`
	RollbackMessage *string   `json:"rollback_message,omitempty" url:"-"`
}

func (*VariableRollbackToTimestampRequest) MarshalJSON

func (v *VariableRollbackToTimestampRequest) MarshalJSON() ([]byte, error)

func (*VariableRollbackToTimestampRequest) UnmarshalJSON

func (v *VariableRollbackToTimestampRequest) UnmarshalJSON(data []byte) error

type VariableTimelineRequest

type VariableTimelineRequest struct {
	AppId                      string `json:"app_id" url:"-"`
	EnvTypeId                  string `json:"env_type_id" url:"-"`
	VariableTimelineRequestKey string `json:"key" url:"-"`
	Limit                      *int   `json:"limit,omitempty" url:"-"`
}

type VariableTimelineResponse

type VariableTimelineResponse = []*VariableTimelineResponseItem

type VariableTimelineResponseItem

type VariableTimelineResponseItem struct {
	PitId                string                                `json:"pit_id" url:"pit_id"`
	ChangeRequestMessage string                                `json:"change_request_message" url:"change_request_message"`
	UserId               string                                `json:"user_id" url:"user_id"`
	CreatedAt            string                                `json:"created_at" url:"created_at"`
	Value                string                                `json:"value" url:"value"`
	Operation            VariableTimelineResponseItemOperation `json:"operation" url:"operation"`
	// contains filtered or unexported fields
}

func (*VariableTimelineResponseItem) GetChangeRequestMessage

func (v *VariableTimelineResponseItem) GetChangeRequestMessage() string

func (*VariableTimelineResponseItem) GetCreatedAt

func (v *VariableTimelineResponseItem) GetCreatedAt() string

func (*VariableTimelineResponseItem) GetExtraProperties

func (v *VariableTimelineResponseItem) GetExtraProperties() map[string]interface{}

func (*VariableTimelineResponseItem) GetOperation

func (*VariableTimelineResponseItem) GetPitId

func (v *VariableTimelineResponseItem) GetPitId() string

func (*VariableTimelineResponseItem) GetUserId

func (v *VariableTimelineResponseItem) GetUserId() string

func (*VariableTimelineResponseItem) GetValue

func (v *VariableTimelineResponseItem) GetValue() string

func (*VariableTimelineResponseItem) String

func (*VariableTimelineResponseItem) UnmarshalJSON

func (v *VariableTimelineResponseItem) UnmarshalJSON(data []byte) error

type VariableTimelineResponseItemOperation

type VariableTimelineResponseItemOperation string
const (
	VariableTimelineResponseItemOperationCreate VariableTimelineResponseItemOperation = "CREATE"
	VariableTimelineResponseItemOperationUpdate VariableTimelineResponseItemOperation = "UPDATE"
	VariableTimelineResponseItemOperationDelete VariableTimelineResponseItemOperation = "DELETE"
)

func NewVariableTimelineResponseItemOperationFromString

func NewVariableTimelineResponseItemOperationFromString(s string) (VariableTimelineResponseItemOperation, error)

func (VariableTimelineResponseItemOperation) Ptr

type WebhookResponse

type WebhookResponse struct {
	Id              string                     `json:"id" url:"id"`
	Name            string                     `json:"name" url:"name"`
	OrgId           string                     `json:"org_id" url:"org_id"`
	UserId          string                     `json:"user_id" url:"user_id"`
	Url             string                     `json:"url" url:"url"`
	EventTypes      []string                   `json:"event_types" url:"event_types"`
	IsActive        bool                       `json:"is_active" url:"is_active"`
	WebhookType     WebhookResponseWebhookType `json:"webhook_type" url:"webhook_type"`
	AppId           *string                    `json:"app_id,omitempty" url:"app_id,omitempty"`
	LinkedTo        WebhookResponseLinkedTo    `json:"linked_to" url:"linked_to"`
	CreatedAt       string                     `json:"created_at" url:"created_at"`
	UpdatedAt       string                     `json:"updated_at" url:"updated_at"`
	LastTriggeredAt *string                    `json:"last_triggered_at,omitempty" url:"last_triggered_at,omitempty"`
	// contains filtered or unexported fields
}

func (*WebhookResponse) GetAppId

func (w *WebhookResponse) GetAppId() *string

func (*WebhookResponse) GetCreatedAt

func (w *WebhookResponse) GetCreatedAt() string

func (*WebhookResponse) GetEventTypes

func (w *WebhookResponse) GetEventTypes() []string

func (*WebhookResponse) GetExtraProperties

func (w *WebhookResponse) GetExtraProperties() map[string]interface{}

func (*WebhookResponse) GetId

func (w *WebhookResponse) GetId() string

func (*WebhookResponse) GetIsActive

func (w *WebhookResponse) GetIsActive() bool

func (*WebhookResponse) GetLastTriggeredAt

func (w *WebhookResponse) GetLastTriggeredAt() *string

func (*WebhookResponse) GetLinkedTo

func (w *WebhookResponse) GetLinkedTo() WebhookResponseLinkedTo

func (*WebhookResponse) GetName

func (w *WebhookResponse) GetName() string

func (*WebhookResponse) GetOrgId

func (w *WebhookResponse) GetOrgId() string

func (*WebhookResponse) GetUpdatedAt

func (w *WebhookResponse) GetUpdatedAt() string

func (*WebhookResponse) GetUrl

func (w *WebhookResponse) GetUrl() string

func (*WebhookResponse) GetUserId

func (w *WebhookResponse) GetUserId() string

func (*WebhookResponse) GetWebhookType

func (w *WebhookResponse) GetWebhookType() WebhookResponseWebhookType

func (*WebhookResponse) String

func (w *WebhookResponse) String() string

func (*WebhookResponse) UnmarshalJSON

func (w *WebhookResponse) UnmarshalJSON(data []byte) error

type WebhookResponseLinkedTo

type WebhookResponseLinkedTo string
const (
	WebhookResponseLinkedToOrg WebhookResponseLinkedTo = "org"
	WebhookResponseLinkedToApp WebhookResponseLinkedTo = "app"
)

func NewWebhookResponseLinkedToFromString

func NewWebhookResponseLinkedToFromString(s string) (WebhookResponseLinkedTo, error)

func (WebhookResponseLinkedTo) Ptr

type WebhookResponseWebhookType

type WebhookResponseWebhookType string
const (
	WebhookResponseWebhookTypeDiscord WebhookResponseWebhookType = "DISCORD"
	WebhookResponseWebhookTypeSlack   WebhookResponseWebhookType = "SLACK"
	WebhookResponseWebhookTypeCustom  WebhookResponseWebhookType = "CUSTOM"
)

func NewWebhookResponseWebhookTypeFromString

func NewWebhookResponseWebhookTypeFromString(s string) (WebhookResponseWebhookType, error)

func (WebhookResponseWebhookType) Ptr

type WebhooksResponse

type WebhooksResponse = []*WebhookResponse

type WhoAmIResponse

type WhoAmIResponse struct {
	User *WhoAmIResponseUser `json:"user" url:"user"`
	Org  *WhoAmIResponseOrg  `json:"org" url:"org"`
	Role *RoleResponse       `json:"role" url:"role"`
	// contains filtered or unexported fields
}

func (*WhoAmIResponse) GetExtraProperties

func (w *WhoAmIResponse) GetExtraProperties() map[string]interface{}

func (*WhoAmIResponse) GetOrg

func (w *WhoAmIResponse) GetOrg() *WhoAmIResponseOrg

func (*WhoAmIResponse) GetRole

func (w *WhoAmIResponse) GetRole() *RoleResponse

func (*WhoAmIResponse) GetUser

func (w *WhoAmIResponse) GetUser() *WhoAmIResponseUser

func (*WhoAmIResponse) String

func (w *WhoAmIResponse) String() string

func (*WhoAmIResponse) UnmarshalJSON

func (w *WhoAmIResponse) UnmarshalJSON(data []byte) error

type WhoAmIResponseOrg

type WhoAmIResponseOrg struct {
	Id        string                 `json:"id" url:"id"`
	Name      string                 `json:"name" url:"name"`
	LogoUrl   *string                `json:"logo_url,omitempty" url:"logo_url,omitempty"`
	Slug      string                 `json:"slug" url:"slug"`
	Size      *string                `json:"size,omitempty" url:"size,omitempty"`
	Website   *string                `json:"website,omitempty" url:"website,omitempty"`
	Metadata  map[string]interface{} `json:"metadata" url:"metadata"`
	CreatedAt string                 `json:"created_at" url:"created_at"`
	UpdatedAt string                 `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*WhoAmIResponseOrg) GetCreatedAt

func (w *WhoAmIResponseOrg) GetCreatedAt() string

func (*WhoAmIResponseOrg) GetExtraProperties

func (w *WhoAmIResponseOrg) GetExtraProperties() map[string]interface{}

func (*WhoAmIResponseOrg) GetId

func (w *WhoAmIResponseOrg) GetId() string

func (*WhoAmIResponseOrg) GetLogoUrl

func (w *WhoAmIResponseOrg) GetLogoUrl() *string

func (*WhoAmIResponseOrg) GetMetadata

func (w *WhoAmIResponseOrg) GetMetadata() map[string]interface{}

func (*WhoAmIResponseOrg) GetName

func (w *WhoAmIResponseOrg) GetName() string

func (*WhoAmIResponseOrg) GetSize

func (w *WhoAmIResponseOrg) GetSize() *string

func (*WhoAmIResponseOrg) GetSlug

func (w *WhoAmIResponseOrg) GetSlug() string

func (*WhoAmIResponseOrg) GetUpdatedAt

func (w *WhoAmIResponseOrg) GetUpdatedAt() string

func (*WhoAmIResponseOrg) GetWebsite

func (w *WhoAmIResponseOrg) GetWebsite() *string

func (*WhoAmIResponseOrg) String

func (w *WhoAmIResponseOrg) String() string

func (*WhoAmIResponseOrg) UnmarshalJSON

func (w *WhoAmIResponseOrg) UnmarshalJSON(data []byte) error

type WhoAmIResponseUser

type WhoAmIResponseUser struct {
	Id                string  `json:"id" url:"id"`
	Email             string  `json:"email" url:"email"`
	FullName          string  `json:"full_name" url:"full_name"`
	OrgId             string  `json:"org_id" url:"org_id"`
	RoleId            string  `json:"role_id" url:"role_id"`
	ProfilePictureUrl *string `json:"profile_picture_url,omitempty" url:"profile_picture_url,omitempty"`
	IsActive          bool    `json:"is_active" url:"is_active"`
	CreatedAt         string  `json:"created_at" url:"created_at"`
	UpdatedAt         string  `json:"updated_at" url:"updated_at"`
	// contains filtered or unexported fields
}

func (*WhoAmIResponseUser) GetCreatedAt

func (w *WhoAmIResponseUser) GetCreatedAt() string

func (*WhoAmIResponseUser) GetEmail

func (w *WhoAmIResponseUser) GetEmail() string

func (*WhoAmIResponseUser) GetExtraProperties

func (w *WhoAmIResponseUser) GetExtraProperties() map[string]interface{}

func (*WhoAmIResponseUser) GetFullName

func (w *WhoAmIResponseUser) GetFullName() string

func (*WhoAmIResponseUser) GetId

func (w *WhoAmIResponseUser) GetId() string

func (*WhoAmIResponseUser) GetIsActive

func (w *WhoAmIResponseUser) GetIsActive() bool

func (*WhoAmIResponseUser) GetOrgId

func (w *WhoAmIResponseUser) GetOrgId() string

func (*WhoAmIResponseUser) GetProfilePictureUrl

func (w *WhoAmIResponseUser) GetProfilePictureUrl() *string

func (*WhoAmIResponseUser) GetRoleId

func (w *WhoAmIResponseUser) GetRoleId() string

func (*WhoAmIResponseUser) GetUpdatedAt

func (w *WhoAmIResponseUser) GetUpdatedAt() string

func (*WhoAmIResponseUser) String

func (w *WhoAmIResponseUser) String() string

func (*WhoAmIResponseUser) UnmarshalJSON

func (w *WhoAmIResponseUser) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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