serverapiclient

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

README

Go API client for serverapiclient

Daytona Server API

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import serverapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/serverapiclient"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value serverapiclient.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), serverapiclient.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value serverapiclient.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), serverapiclient.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using serverapiclient.ContextOperationServerIndices and serverapiclient.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), serverapiclient.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), serverapiclient.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost:3000

Class Method HTTP request Description
ProviderAPI GetTargetManifest Get /provider/{provider}/target-manifest Get provider target manifest
ProviderAPI InstallProvider Post /provider/install Install a provider
ProviderAPI ListProviders Get /provider List providers
ProviderAPI UninstallProvider Post /provider/{provider}/uninstall Uninstall a provider
ServerAPI GenerateNetworkKey Post /server/network-key Generate a new authentication key
ServerAPI GetConfig Get /server/config Get the server configuration
ServerAPI GetGitContext Get /server/get-git-context/{gitUrl} Get Git context
ServerAPI SetConfig Post /server/config Set the server configuration
TargetAPI ListTargets Get /target List targets
TargetAPI RemoveTarget Delete /target/{target} Remove a target
TargetAPI SetTarget Put /target Set a target
WorkspaceAPI CreateWorkspace Post /workspace Create a workspace
WorkspaceAPI GetWorkspace Get /workspace/{workspaceId} Get workspace info
WorkspaceAPI ListWorkspaces Get /workspace List workspaces
WorkspaceAPI RemoveWorkspace Delete /workspace/{workspaceId} Remove workspace
WorkspaceAPI StartProject Post /workspace/{workspaceId}/{projectId}/start Start project
WorkspaceAPI StartWorkspace Post /workspace/{workspaceId}/start Start workspace
WorkspaceAPI StopProject Post /workspace/{workspaceId}/{projectId}/stop Stop project
WorkspaceAPI StopWorkspace Post /workspace/{workspaceId}/stop Stop workspace

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedProviderProviderTargetPropertyTypeEnumValues = []ProviderProviderTargetPropertyType{
	"string",
	"option",
	"boolean",
	"int",
	"float",
	"file-path",
}

All allowed values of ProviderProviderTargetPropertyType enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	ProviderAPI *ProviderAPIService

	ServerAPI *ServerAPIService

	TargetAPI *TargetAPIService

	WorkspaceAPI *WorkspaceAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Daytona Server API API v0.1.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiCreateWorkspaceRequest

type ApiCreateWorkspaceRequest struct {
	ApiService *WorkspaceAPIService
	// contains filtered or unexported fields
}

func (ApiCreateWorkspaceRequest) Execute

func (ApiCreateWorkspaceRequest) Workspace

Create workspace

type ApiGenerateNetworkKeyRequest

type ApiGenerateNetworkKeyRequest struct {
	ApiService *ServerAPIService
	// contains filtered or unexported fields
}

func (ApiGenerateNetworkKeyRequest) Execute

type ApiGetConfigRequest

type ApiGetConfigRequest struct {
	ApiService *ServerAPIService
	// contains filtered or unexported fields
}

func (ApiGetConfigRequest) Execute

type ApiGetGitContextRequest

type ApiGetGitContextRequest struct {
	ApiService *ServerAPIService
	// contains filtered or unexported fields
}

func (ApiGetGitContextRequest) Execute

type ApiGetTargetManifestRequest

type ApiGetTargetManifestRequest struct {
	ApiService *ProviderAPIService
	// contains filtered or unexported fields
}

func (ApiGetTargetManifestRequest) Execute

type ApiGetWorkspaceRequest

type ApiGetWorkspaceRequest struct {
	ApiService *WorkspaceAPIService
	// contains filtered or unexported fields
}

func (ApiGetWorkspaceRequest) Execute

type ApiInstallProviderRequest

type ApiInstallProviderRequest struct {
	ApiService *ProviderAPIService
	// contains filtered or unexported fields
}

func (ApiInstallProviderRequest) Execute

func (r ApiInstallProviderRequest) Execute() (*http.Response, error)

func (ApiInstallProviderRequest) Provider

Provider to install

type ApiListProvidersRequest

type ApiListProvidersRequest struct {
	ApiService *ProviderAPIService
	// contains filtered or unexported fields
}

func (ApiListProvidersRequest) Execute

func (r ApiListProvidersRequest) Execute() ([]Provider, *http.Response, error)

type ApiListTargetsRequest

type ApiListTargetsRequest struct {
	ApiService *TargetAPIService
	// contains filtered or unexported fields
}

func (ApiListTargetsRequest) Execute

type ApiListWorkspacesRequest

type ApiListWorkspacesRequest struct {
	ApiService *WorkspaceAPIService
	// contains filtered or unexported fields
}

func (ApiListWorkspacesRequest) Execute

type ApiRemoveTargetRequest

type ApiRemoveTargetRequest struct {
	ApiService *TargetAPIService
	// contains filtered or unexported fields
}

func (ApiRemoveTargetRequest) Execute

func (r ApiRemoveTargetRequest) Execute() (*http.Response, error)

type ApiRemoveWorkspaceRequest

type ApiRemoveWorkspaceRequest struct {
	ApiService *WorkspaceAPIService
	// contains filtered or unexported fields
}

func (ApiRemoveWorkspaceRequest) Execute

func (r ApiRemoveWorkspaceRequest) Execute() (*http.Response, error)

type ApiSetConfigRequest

type ApiSetConfigRequest struct {
	ApiService *ServerAPIService
	// contains filtered or unexported fields
}

func (ApiSetConfigRequest) Config

Server configuration

func (ApiSetConfigRequest) Execute

type ApiSetTargetRequest

type ApiSetTargetRequest struct {
	ApiService *TargetAPIService
	// contains filtered or unexported fields
}

func (ApiSetTargetRequest) Execute

func (r ApiSetTargetRequest) Execute() (*http.Response, error)

func (ApiSetTargetRequest) Target

Target to set

type ApiStartProjectRequest

type ApiStartProjectRequest struct {
	ApiService *WorkspaceAPIService
	// contains filtered or unexported fields
}

func (ApiStartProjectRequest) Execute

func (r ApiStartProjectRequest) Execute() (*http.Response, error)

type ApiStartWorkspaceRequest

type ApiStartWorkspaceRequest struct {
	ApiService *WorkspaceAPIService
	// contains filtered or unexported fields
}

func (ApiStartWorkspaceRequest) Execute

func (r ApiStartWorkspaceRequest) Execute() (*http.Response, error)

type ApiStopProjectRequest

type ApiStopProjectRequest struct {
	ApiService *WorkspaceAPIService
	// contains filtered or unexported fields
}

func (ApiStopProjectRequest) Execute

func (r ApiStopProjectRequest) Execute() (*http.Response, error)

type ApiStopWorkspaceRequest

type ApiStopWorkspaceRequest struct {
	ApiService *WorkspaceAPIService
	// contains filtered or unexported fields
}

func (ApiStopWorkspaceRequest) Execute

func (r ApiStopWorkspaceRequest) Execute() (*http.Response, error)

type ApiUninstallProviderRequest

type ApiUninstallProviderRequest struct {
	ApiService *ProviderAPIService
	// contains filtered or unexported fields
}

func (ApiUninstallProviderRequest) Execute

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type CreateWorkspace

type CreateWorkspace struct {
	Name         *string      `json:"name,omitempty"`
	Repositories []Repository `json:"repositories,omitempty"`
	Target       *string      `json:"target,omitempty"`
}

CreateWorkspace struct for CreateWorkspace

func NewCreateWorkspace

func NewCreateWorkspace() *CreateWorkspace

NewCreateWorkspace instantiates a new CreateWorkspace object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateWorkspaceWithDefaults

func NewCreateWorkspaceWithDefaults() *CreateWorkspace

NewCreateWorkspaceWithDefaults instantiates a new CreateWorkspace object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateWorkspace) GetName

func (o *CreateWorkspace) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*CreateWorkspace) GetNameOk

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

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

func (*CreateWorkspace) GetRepositories

func (o *CreateWorkspace) GetRepositories() []Repository

GetRepositories returns the Repositories field value if set, zero value otherwise.

func (*CreateWorkspace) GetRepositoriesOk

func (o *CreateWorkspace) GetRepositoriesOk() ([]Repository, bool)

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

func (*CreateWorkspace) GetTarget

func (o *CreateWorkspace) GetTarget() string

GetTarget returns the Target field value if set, zero value otherwise.

func (*CreateWorkspace) GetTargetOk

func (o *CreateWorkspace) GetTargetOk() (*string, bool)

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

func (*CreateWorkspace) HasName

func (o *CreateWorkspace) HasName() bool

HasName returns a boolean if a field has been set.

func (*CreateWorkspace) HasRepositories

func (o *CreateWorkspace) HasRepositories() bool

HasRepositories returns a boolean if a field has been set.

func (*CreateWorkspace) HasTarget

func (o *CreateWorkspace) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (CreateWorkspace) MarshalJSON

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

func (*CreateWorkspace) SetName

func (o *CreateWorkspace) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*CreateWorkspace) SetRepositories

func (o *CreateWorkspace) SetRepositories(v []Repository)

SetRepositories gets a reference to the given []Repository and assigns it to the Repositories field.

func (*CreateWorkspace) SetTarget

func (o *CreateWorkspace) SetTarget(v string)

SetTarget gets a reference to the given string and assigns it to the Target field.

func (CreateWorkspace) ToMap

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

type FRPSConfig

type FRPSConfig struct {
	Domain   *string `json:"domain,omitempty"`
	Port     *int32  `json:"port,omitempty"`
	Protocol *string `json:"protocol,omitempty"`
}

FRPSConfig struct for FRPSConfig

func NewFRPSConfig

func NewFRPSConfig() *FRPSConfig

NewFRPSConfig instantiates a new FRPSConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFRPSConfigWithDefaults

func NewFRPSConfigWithDefaults() *FRPSConfig

NewFRPSConfigWithDefaults instantiates a new FRPSConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FRPSConfig) GetDomain

func (o *FRPSConfig) GetDomain() string

GetDomain returns the Domain field value if set, zero value otherwise.

func (*FRPSConfig) GetDomainOk

func (o *FRPSConfig) GetDomainOk() (*string, bool)

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

func (*FRPSConfig) GetPort

func (o *FRPSConfig) GetPort() int32

GetPort returns the Port field value if set, zero value otherwise.

func (*FRPSConfig) GetPortOk

func (o *FRPSConfig) GetPortOk() (*int32, bool)

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

func (*FRPSConfig) GetProtocol

func (o *FRPSConfig) GetProtocol() string

GetProtocol returns the Protocol field value if set, zero value otherwise.

func (*FRPSConfig) GetProtocolOk

func (o *FRPSConfig) GetProtocolOk() (*string, bool)

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

func (*FRPSConfig) HasDomain

func (o *FRPSConfig) HasDomain() bool

HasDomain returns a boolean if a field has been set.

func (*FRPSConfig) HasPort

func (o *FRPSConfig) HasPort() bool

HasPort returns a boolean if a field has been set.

func (*FRPSConfig) HasProtocol

func (o *FRPSConfig) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

func (FRPSConfig) MarshalJSON

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

func (*FRPSConfig) SetDomain

func (o *FRPSConfig) SetDomain(v string)

SetDomain gets a reference to the given string and assigns it to the Domain field.

func (*FRPSConfig) SetPort

func (o *FRPSConfig) SetPort(v int32)

SetPort gets a reference to the given int32 and assigns it to the Port field.

func (*FRPSConfig) SetProtocol

func (o *FRPSConfig) SetProtocol(v string)

SetProtocol gets a reference to the given string and assigns it to the Protocol field.

func (FRPSConfig) ToMap

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

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GetGitContext

type GetGitContext struct {
	Url *string `json:"url,omitempty"`
}

GetGitContext struct for GetGitContext

func NewGetGitContext

func NewGetGitContext() *GetGitContext

NewGetGitContext instantiates a new GetGitContext object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetGitContextWithDefaults

func NewGetGitContextWithDefaults() *GetGitContext

NewGetGitContextWithDefaults instantiates a new GetGitContext object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetGitContext) GetUrl

func (o *GetGitContext) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (*GetGitContext) GetUrlOk

func (o *GetGitContext) GetUrlOk() (*string, bool)

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

func (*GetGitContext) HasUrl

func (o *GetGitContext) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (GetGitContext) MarshalJSON

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

func (*GetGitContext) SetUrl

func (o *GetGitContext) SetUrl(v string)

SetUrl gets a reference to the given string and assigns it to the Url field.

func (GetGitContext) ToMap

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

type GitProvider

type GitProvider struct {
	BaseApiUrl *string `json:"baseApiUrl,omitempty"`
	Id         *string `json:"id,omitempty"`
	Token      *string `json:"token,omitempty"`
	Username   *string `json:"username,omitempty"`
}

GitProvider struct for GitProvider

func NewGitProvider

func NewGitProvider() *GitProvider

NewGitProvider instantiates a new GitProvider object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGitProviderWithDefaults

func NewGitProviderWithDefaults() *GitProvider

NewGitProviderWithDefaults instantiates a new GitProvider object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GitProvider) GetBaseApiUrl added in v0.3.0

func (o *GitProvider) GetBaseApiUrl() string

GetBaseApiUrl returns the BaseApiUrl field value if set, zero value otherwise.

func (*GitProvider) GetBaseApiUrlOk added in v0.3.0

func (o *GitProvider) GetBaseApiUrlOk() (*string, bool)

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

func (*GitProvider) GetId

func (o *GitProvider) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*GitProvider) GetIdOk

func (o *GitProvider) GetIdOk() (*string, bool)

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

func (*GitProvider) GetToken

func (o *GitProvider) GetToken() string

GetToken returns the Token field value if set, zero value otherwise.

func (*GitProvider) GetTokenOk

func (o *GitProvider) GetTokenOk() (*string, bool)

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

func (*GitProvider) GetUsername

func (o *GitProvider) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*GitProvider) GetUsernameOk

func (o *GitProvider) GetUsernameOk() (*string, bool)

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

func (*GitProvider) HasBaseApiUrl added in v0.3.0

func (o *GitProvider) HasBaseApiUrl() bool

HasBaseApiUrl returns a boolean if a field has been set.

func (*GitProvider) HasId

func (o *GitProvider) HasId() bool

HasId returns a boolean if a field has been set.

func (*GitProvider) HasToken

func (o *GitProvider) HasToken() bool

HasToken returns a boolean if a field has been set.

func (*GitProvider) HasUsername

func (o *GitProvider) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (GitProvider) MarshalJSON

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

func (*GitProvider) SetBaseApiUrl added in v0.3.0

func (o *GitProvider) SetBaseApiUrl(v string)

SetBaseApiUrl gets a reference to the given string and assigns it to the BaseApiUrl field.

func (*GitProvider) SetId

func (o *GitProvider) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*GitProvider) SetToken

func (o *GitProvider) SetToken(v string)

SetToken gets a reference to the given string and assigns it to the Token field.

func (*GitProvider) SetUsername

func (o *GitProvider) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

func (GitProvider) ToMap

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

type InstallProviderRequest

type InstallProviderRequest struct {
	DownloadUrls *map[string]string `json:"downloadUrls,omitempty"`
	Name         *string            `json:"name,omitempty"`
}

InstallProviderRequest struct for InstallProviderRequest

func NewInstallProviderRequest

func NewInstallProviderRequest() *InstallProviderRequest

NewInstallProviderRequest instantiates a new InstallProviderRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInstallProviderRequestWithDefaults

func NewInstallProviderRequestWithDefaults() *InstallProviderRequest

NewInstallProviderRequestWithDefaults instantiates a new InstallProviderRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InstallProviderRequest) GetDownloadUrls

func (o *InstallProviderRequest) GetDownloadUrls() map[string]string

GetDownloadUrls returns the DownloadUrls field value if set, zero value otherwise.

func (*InstallProviderRequest) GetDownloadUrlsOk

func (o *InstallProviderRequest) GetDownloadUrlsOk() (*map[string]string, bool)

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

func (*InstallProviderRequest) GetName

func (o *InstallProviderRequest) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*InstallProviderRequest) GetNameOk

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

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

func (*InstallProviderRequest) HasDownloadUrls

func (o *InstallProviderRequest) HasDownloadUrls() bool

HasDownloadUrls returns a boolean if a field has been set.

func (*InstallProviderRequest) HasName

func (o *InstallProviderRequest) HasName() bool

HasName returns a boolean if a field has been set.

func (InstallProviderRequest) MarshalJSON

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

func (*InstallProviderRequest) SetDownloadUrls

func (o *InstallProviderRequest) SetDownloadUrls(v map[string]string)

SetDownloadUrls gets a reference to the given map[string]string and assigns it to the DownloadUrls field.

func (*InstallProviderRequest) SetName

func (o *InstallProviderRequest) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (InstallProviderRequest) ToMap

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

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NetworkKey

type NetworkKey struct {
	Key *string `json:"key,omitempty"`
}

NetworkKey struct for NetworkKey

func NewNetworkKey

func NewNetworkKey() *NetworkKey

NewNetworkKey instantiates a new NetworkKey object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNetworkKeyWithDefaults

func NewNetworkKeyWithDefaults() *NetworkKey

NewNetworkKeyWithDefaults instantiates a new NetworkKey object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NetworkKey) GetKey

func (o *NetworkKey) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*NetworkKey) GetKeyOk

func (o *NetworkKey) GetKeyOk() (*string, bool)

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

func (*NetworkKey) HasKey

func (o *NetworkKey) HasKey() bool

HasKey returns a boolean if a field has been set.

func (NetworkKey) MarshalJSON

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

func (*NetworkKey) SetKey

func (o *NetworkKey) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (NetworkKey) ToMap

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

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

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

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

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

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCreateWorkspace

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

func NewNullableCreateWorkspace

func NewNullableCreateWorkspace(val *CreateWorkspace) *NullableCreateWorkspace

func (NullableCreateWorkspace) Get

func (NullableCreateWorkspace) IsSet

func (v NullableCreateWorkspace) IsSet() bool

func (NullableCreateWorkspace) MarshalJSON

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

func (*NullableCreateWorkspace) Set

func (*NullableCreateWorkspace) UnmarshalJSON

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

func (*NullableCreateWorkspace) Unset

func (v *NullableCreateWorkspace) Unset()

type NullableFRPSConfig

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

func NewNullableFRPSConfig

func NewNullableFRPSConfig(val *FRPSConfig) *NullableFRPSConfig

func (NullableFRPSConfig) Get

func (v NullableFRPSConfig) Get() *FRPSConfig

func (NullableFRPSConfig) IsSet

func (v NullableFRPSConfig) IsSet() bool

func (NullableFRPSConfig) MarshalJSON

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

func (*NullableFRPSConfig) Set

func (v *NullableFRPSConfig) Set(val *FRPSConfig)

func (*NullableFRPSConfig) UnmarshalJSON

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

func (*NullableFRPSConfig) Unset

func (v *NullableFRPSConfig) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

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

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

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

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

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

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

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

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGetGitContext

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

func NewNullableGetGitContext

func NewNullableGetGitContext(val *GetGitContext) *NullableGetGitContext

func (NullableGetGitContext) Get

func (NullableGetGitContext) IsSet

func (v NullableGetGitContext) IsSet() bool

func (NullableGetGitContext) MarshalJSON

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

func (*NullableGetGitContext) Set

func (v *NullableGetGitContext) Set(val *GetGitContext)

func (*NullableGetGitContext) UnmarshalJSON

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

func (*NullableGetGitContext) Unset

func (v *NullableGetGitContext) Unset()

type NullableGitProvider

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

func NewNullableGitProvider

func NewNullableGitProvider(val *GitProvider) *NullableGitProvider

func (NullableGitProvider) Get

func (NullableGitProvider) IsSet

func (v NullableGitProvider) IsSet() bool

func (NullableGitProvider) MarshalJSON

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

func (*NullableGitProvider) Set

func (v *NullableGitProvider) Set(val *GitProvider)

func (*NullableGitProvider) UnmarshalJSON

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

func (*NullableGitProvider) Unset

func (v *NullableGitProvider) Unset()

type NullableInstallProviderRequest

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

func (NullableInstallProviderRequest) Get

func (NullableInstallProviderRequest) IsSet

func (NullableInstallProviderRequest) MarshalJSON

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

func (*NullableInstallProviderRequest) Set

func (*NullableInstallProviderRequest) UnmarshalJSON

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

func (*NullableInstallProviderRequest) Unset

func (v *NullableInstallProviderRequest) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

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

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

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

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

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

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

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

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

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

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

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

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableNetworkKey

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

func NewNullableNetworkKey

func NewNullableNetworkKey(val *NetworkKey) *NullableNetworkKey

func (NullableNetworkKey) Get

func (v NullableNetworkKey) Get() *NetworkKey

func (NullableNetworkKey) IsSet

func (v NullableNetworkKey) IsSet() bool

func (NullableNetworkKey) MarshalJSON

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

func (*NullableNetworkKey) Set

func (v *NullableNetworkKey) Set(val *NetworkKey)

func (*NullableNetworkKey) UnmarshalJSON

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

func (*NullableNetworkKey) Unset

func (v *NullableNetworkKey) Unset()

type NullableProject

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

func NewNullableProject

func NewNullableProject(val *Project) *NullableProject

func (NullableProject) Get

func (v NullableProject) Get() *Project

func (NullableProject) IsSet

func (v NullableProject) IsSet() bool

func (NullableProject) MarshalJSON

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

func (*NullableProject) Set

func (v *NullableProject) Set(val *Project)

func (*NullableProject) UnmarshalJSON

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

func (*NullableProject) Unset

func (v *NullableProject) Unset()

type NullableProjectInfo

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

func NewNullableProjectInfo

func NewNullableProjectInfo(val *ProjectInfo) *NullableProjectInfo

func (NullableProjectInfo) Get

func (NullableProjectInfo) IsSet

func (v NullableProjectInfo) IsSet() bool

func (NullableProjectInfo) MarshalJSON

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

func (*NullableProjectInfo) Set

func (v *NullableProjectInfo) Set(val *ProjectInfo)

func (*NullableProjectInfo) UnmarshalJSON

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

func (*NullableProjectInfo) Unset

func (v *NullableProjectInfo) Unset()

type NullableProvider

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

func NewNullableProvider

func NewNullableProvider(val *Provider) *NullableProvider

func (NullableProvider) Get

func (v NullableProvider) Get() *Provider

func (NullableProvider) IsSet

func (v NullableProvider) IsSet() bool

func (NullableProvider) MarshalJSON

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

func (*NullableProvider) Set

func (v *NullableProvider) Set(val *Provider)

func (*NullableProvider) UnmarshalJSON

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

func (*NullableProvider) Unset

func (v *NullableProvider) Unset()

type NullableProviderProviderInfo

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

func NewNullableProviderProviderInfo

func NewNullableProviderProviderInfo(val *ProviderProviderInfo) *NullableProviderProviderInfo

func (NullableProviderProviderInfo) Get

func (NullableProviderProviderInfo) IsSet

func (NullableProviderProviderInfo) MarshalJSON

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

func (*NullableProviderProviderInfo) Set

func (*NullableProviderProviderInfo) UnmarshalJSON

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

func (*NullableProviderProviderInfo) Unset

func (v *NullableProviderProviderInfo) Unset()

type NullableProviderProviderTargetProperty

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

func (NullableProviderProviderTargetProperty) Get

func (NullableProviderProviderTargetProperty) IsSet

func (NullableProviderProviderTargetProperty) MarshalJSON

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

func (*NullableProviderProviderTargetProperty) Set

func (*NullableProviderProviderTargetProperty) UnmarshalJSON

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

func (*NullableProviderProviderTargetProperty) Unset

type NullableProviderProviderTargetPropertyType

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

func (NullableProviderProviderTargetPropertyType) Get

func (NullableProviderProviderTargetPropertyType) IsSet

func (NullableProviderProviderTargetPropertyType) MarshalJSON

func (*NullableProviderProviderTargetPropertyType) Set

func (*NullableProviderProviderTargetPropertyType) UnmarshalJSON

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

func (*NullableProviderProviderTargetPropertyType) Unset

type NullableProviderTarget

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

func NewNullableProviderTarget

func NewNullableProviderTarget(val *ProviderTarget) *NullableProviderTarget

func (NullableProviderTarget) Get

func (NullableProviderTarget) IsSet

func (v NullableProviderTarget) IsSet() bool

func (NullableProviderTarget) MarshalJSON

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

func (*NullableProviderTarget) Set

func (*NullableProviderTarget) UnmarshalJSON

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

func (*NullableProviderTarget) Unset

func (v *NullableProviderTarget) Unset()

type NullableRepository

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

func NewNullableRepository

func NewNullableRepository(val *Repository) *NullableRepository

func (NullableRepository) Get

func (v NullableRepository) Get() *Repository

func (NullableRepository) IsSet

func (v NullableRepository) IsSet() bool

func (NullableRepository) MarshalJSON

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

func (*NullableRepository) Set

func (v *NullableRepository) Set(val *Repository)

func (*NullableRepository) UnmarshalJSON

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

func (*NullableRepository) Unset

func (v *NullableRepository) Unset()

type NullableServerConfig

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

func NewNullableServerConfig

func NewNullableServerConfig(val *ServerConfig) *NullableServerConfig

func (NullableServerConfig) Get

func (NullableServerConfig) IsSet

func (v NullableServerConfig) IsSet() bool

func (NullableServerConfig) MarshalJSON

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

func (*NullableServerConfig) Set

func (v *NullableServerConfig) Set(val *ServerConfig)

func (*NullableServerConfig) UnmarshalJSON

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

func (*NullableServerConfig) Unset

func (v *NullableServerConfig) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

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

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

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

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

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

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

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

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableWorkspace

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

func NewNullableWorkspace

func NewNullableWorkspace(val *Workspace) *NullableWorkspace

func (NullableWorkspace) Get

func (v NullableWorkspace) Get() *Workspace

func (NullableWorkspace) IsSet

func (v NullableWorkspace) IsSet() bool

func (NullableWorkspace) MarshalJSON

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

func (*NullableWorkspace) Set

func (v *NullableWorkspace) Set(val *Workspace)

func (*NullableWorkspace) UnmarshalJSON

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

func (*NullableWorkspace) Unset

func (v *NullableWorkspace) Unset()

type NullableWorkspaceInfo

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

func NewNullableWorkspaceInfo

func NewNullableWorkspaceInfo(val *WorkspaceInfo) *NullableWorkspaceInfo

func (NullableWorkspaceInfo) Get

func (NullableWorkspaceInfo) IsSet

func (v NullableWorkspaceInfo) IsSet() bool

func (NullableWorkspaceInfo) MarshalJSON

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

func (*NullableWorkspaceInfo) Set

func (v *NullableWorkspaceInfo) Set(val *WorkspaceInfo)

func (*NullableWorkspaceInfo) UnmarshalJSON

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

func (*NullableWorkspaceInfo) Unset

func (v *NullableWorkspaceInfo) Unset()

type Project

type Project struct {
	Name        *string     `json:"name,omitempty"`
	Repository  *Repository `json:"repository,omitempty"`
	Target      *string     `json:"target,omitempty"`
	WorkspaceId *string     `json:"workspaceId,omitempty"`
}

Project struct for Project

func NewProject

func NewProject() *Project

NewProject instantiates a new Project object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectWithDefaults

func NewProjectWithDefaults() *Project

NewProjectWithDefaults instantiates a new Project object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Project) GetName

func (o *Project) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Project) GetNameOk

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

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

func (*Project) GetRepository

func (o *Project) GetRepository() Repository

GetRepository returns the Repository field value if set, zero value otherwise.

func (*Project) GetRepositoryOk

func (o *Project) GetRepositoryOk() (*Repository, bool)

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

func (*Project) GetTarget

func (o *Project) GetTarget() string

GetTarget returns the Target field value if set, zero value otherwise.

func (*Project) GetTargetOk

func (o *Project) GetTargetOk() (*string, bool)

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

func (*Project) GetWorkspaceId

func (o *Project) GetWorkspaceId() string

GetWorkspaceId returns the WorkspaceId field value if set, zero value otherwise.

func (*Project) GetWorkspaceIdOk

func (o *Project) GetWorkspaceIdOk() (*string, bool)

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

func (*Project) HasName

func (o *Project) HasName() bool

HasName returns a boolean if a field has been set.

func (*Project) HasRepository

func (o *Project) HasRepository() bool

HasRepository returns a boolean if a field has been set.

func (*Project) HasTarget

func (o *Project) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (*Project) HasWorkspaceId

func (o *Project) HasWorkspaceId() bool

HasWorkspaceId returns a boolean if a field has been set.

func (Project) MarshalJSON

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

func (*Project) SetName

func (o *Project) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Project) SetRepository

func (o *Project) SetRepository(v Repository)

SetRepository gets a reference to the given Repository and assigns it to the Repository field.

func (*Project) SetTarget

func (o *Project) SetTarget(v string)

SetTarget gets a reference to the given string and assigns it to the Target field.

func (*Project) SetWorkspaceId

func (o *Project) SetWorkspaceId(v string)

SetWorkspaceId gets a reference to the given string and assigns it to the WorkspaceId field.

func (Project) ToMap

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

type ProjectInfo

type ProjectInfo struct {
	Created          *string `json:"created,omitempty"`
	Finished         *string `json:"finished,omitempty"`
	IsRunning        *bool   `json:"isRunning,omitempty"`
	Name             *string `json:"name,omitempty"`
	ProviderMetadata *string `json:"providerMetadata,omitempty"`
	Started          *string `json:"started,omitempty"`
	WorkspaceId      *string `json:"workspaceId,omitempty"`
}

ProjectInfo struct for ProjectInfo

func NewProjectInfo

func NewProjectInfo() *ProjectInfo

NewProjectInfo instantiates a new ProjectInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectInfoWithDefaults

func NewProjectInfoWithDefaults() *ProjectInfo

NewProjectInfoWithDefaults instantiates a new ProjectInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProjectInfo) GetCreated

func (o *ProjectInfo) GetCreated() string

GetCreated returns the Created field value if set, zero value otherwise.

func (*ProjectInfo) GetCreatedOk

func (o *ProjectInfo) GetCreatedOk() (*string, bool)

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

func (*ProjectInfo) GetFinished

func (o *ProjectInfo) GetFinished() string

GetFinished returns the Finished field value if set, zero value otherwise.

func (*ProjectInfo) GetFinishedOk

func (o *ProjectInfo) GetFinishedOk() (*string, bool)

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

func (*ProjectInfo) GetIsRunning

func (o *ProjectInfo) GetIsRunning() bool

GetIsRunning returns the IsRunning field value if set, zero value otherwise.

func (*ProjectInfo) GetIsRunningOk

func (o *ProjectInfo) GetIsRunningOk() (*bool, bool)

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

func (*ProjectInfo) GetName

func (o *ProjectInfo) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ProjectInfo) GetNameOk

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

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

func (*ProjectInfo) GetProviderMetadata

func (o *ProjectInfo) GetProviderMetadata() string

GetProviderMetadata returns the ProviderMetadata field value if set, zero value otherwise.

func (*ProjectInfo) GetProviderMetadataOk

func (o *ProjectInfo) GetProviderMetadataOk() (*string, bool)

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

func (*ProjectInfo) GetStarted

func (o *ProjectInfo) GetStarted() string

GetStarted returns the Started field value if set, zero value otherwise.

func (*ProjectInfo) GetStartedOk

func (o *ProjectInfo) GetStartedOk() (*string, bool)

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

func (*ProjectInfo) GetWorkspaceId

func (o *ProjectInfo) GetWorkspaceId() string

GetWorkspaceId returns the WorkspaceId field value if set, zero value otherwise.

func (*ProjectInfo) GetWorkspaceIdOk

func (o *ProjectInfo) GetWorkspaceIdOk() (*string, bool)

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

func (*ProjectInfo) HasCreated

func (o *ProjectInfo) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*ProjectInfo) HasFinished

func (o *ProjectInfo) HasFinished() bool

HasFinished returns a boolean if a field has been set.

func (*ProjectInfo) HasIsRunning

func (o *ProjectInfo) HasIsRunning() bool

HasIsRunning returns a boolean if a field has been set.

func (*ProjectInfo) HasName

func (o *ProjectInfo) HasName() bool

HasName returns a boolean if a field has been set.

func (*ProjectInfo) HasProviderMetadata

func (o *ProjectInfo) HasProviderMetadata() bool

HasProviderMetadata returns a boolean if a field has been set.

func (*ProjectInfo) HasStarted

func (o *ProjectInfo) HasStarted() bool

HasStarted returns a boolean if a field has been set.

func (*ProjectInfo) HasWorkspaceId

func (o *ProjectInfo) HasWorkspaceId() bool

HasWorkspaceId returns a boolean if a field has been set.

func (ProjectInfo) MarshalJSON

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

func (*ProjectInfo) SetCreated

func (o *ProjectInfo) SetCreated(v string)

SetCreated gets a reference to the given string and assigns it to the Created field.

func (*ProjectInfo) SetFinished

func (o *ProjectInfo) SetFinished(v string)

SetFinished gets a reference to the given string and assigns it to the Finished field.

func (*ProjectInfo) SetIsRunning

func (o *ProjectInfo) SetIsRunning(v bool)

SetIsRunning gets a reference to the given bool and assigns it to the IsRunning field.

func (*ProjectInfo) SetName

func (o *ProjectInfo) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*ProjectInfo) SetProviderMetadata

func (o *ProjectInfo) SetProviderMetadata(v string)

SetProviderMetadata gets a reference to the given string and assigns it to the ProviderMetadata field.

func (*ProjectInfo) SetStarted

func (o *ProjectInfo) SetStarted(v string)

SetStarted gets a reference to the given string and assigns it to the Started field.

func (*ProjectInfo) SetWorkspaceId

func (o *ProjectInfo) SetWorkspaceId(v string)

SetWorkspaceId gets a reference to the given string and assigns it to the WorkspaceId field.

func (ProjectInfo) ToMap

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

type Provider

type Provider struct {
	Name    *string `json:"name,omitempty"`
	Version *string `json:"version,omitempty"`
}

Provider struct for Provider

func NewProvider

func NewProvider() *Provider

NewProvider instantiates a new Provider object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProviderWithDefaults

func NewProviderWithDefaults() *Provider

NewProviderWithDefaults instantiates a new Provider object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Provider) GetName

func (o *Provider) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Provider) GetNameOk

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

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

func (*Provider) GetVersion

func (o *Provider) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*Provider) GetVersionOk

func (o *Provider) GetVersionOk() (*string, bool)

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

func (*Provider) HasName

func (o *Provider) HasName() bool

HasName returns a boolean if a field has been set.

func (*Provider) HasVersion

func (o *Provider) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (Provider) MarshalJSON

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

func (*Provider) SetName

func (o *Provider) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Provider) SetVersion

func (o *Provider) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (Provider) ToMap

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

type ProviderAPIService

type ProviderAPIService service

ProviderAPIService ProviderAPI service

func (*ProviderAPIService) GetTargetManifest

func (a *ProviderAPIService) GetTargetManifest(ctx context.Context, provider string) ApiGetTargetManifestRequest

GetTargetManifest Get provider target manifest

Get provider target manifest

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

func (*ProviderAPIService) GetTargetManifestExecute

Execute executes the request

@return map[string]ProviderProviderTargetProperty

func (*ProviderAPIService) InstallProvider

InstallProvider Install a provider

Install a provider

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

func (*ProviderAPIService) InstallProviderExecute

func (a *ProviderAPIService) InstallProviderExecute(r ApiInstallProviderRequest) (*http.Response, error)

Execute executes the request

func (*ProviderAPIService) ListProviders

ListProviders List providers

List providers

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

func (*ProviderAPIService) ListProvidersExecute

func (a *ProviderAPIService) ListProvidersExecute(r ApiListProvidersRequest) ([]Provider, *http.Response, error)

Execute executes the request

@return []Provider

func (*ProviderAPIService) UninstallProvider

func (a *ProviderAPIService) UninstallProvider(ctx context.Context, provider string) ApiUninstallProviderRequest

UninstallProvider Uninstall a provider

Uninstall a provider

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provider Provider to uninstall
@return ApiUninstallProviderRequest

func (*ProviderAPIService) UninstallProviderExecute

func (a *ProviderAPIService) UninstallProviderExecute(r ApiUninstallProviderRequest) (*http.Response, error)

Execute executes the request

type ProviderProviderInfo

type ProviderProviderInfo struct {
	Name    *string `json:"name,omitempty"`
	Version *string `json:"version,omitempty"`
}

ProviderProviderInfo struct for ProviderProviderInfo

func NewProviderProviderInfo

func NewProviderProviderInfo() *ProviderProviderInfo

NewProviderProviderInfo instantiates a new ProviderProviderInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProviderProviderInfoWithDefaults

func NewProviderProviderInfoWithDefaults() *ProviderProviderInfo

NewProviderProviderInfoWithDefaults instantiates a new ProviderProviderInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProviderProviderInfo) GetName

func (o *ProviderProviderInfo) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ProviderProviderInfo) GetNameOk

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

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

func (*ProviderProviderInfo) GetVersion

func (o *ProviderProviderInfo) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*ProviderProviderInfo) GetVersionOk

func (o *ProviderProviderInfo) GetVersionOk() (*string, bool)

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

func (*ProviderProviderInfo) HasName

func (o *ProviderProviderInfo) HasName() bool

HasName returns a boolean if a field has been set.

func (*ProviderProviderInfo) HasVersion

func (o *ProviderProviderInfo) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (ProviderProviderInfo) MarshalJSON

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

func (*ProviderProviderInfo) SetName

func (o *ProviderProviderInfo) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*ProviderProviderInfo) SetVersion

func (o *ProviderProviderInfo) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (ProviderProviderInfo) ToMap

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

type ProviderProviderTargetProperty

type ProviderProviderTargetProperty struct {
	// DefaultValue is converted into the appropriate type based on the Type If the property is a FilePath, the DefaultValue is a path to a directory
	DefaultValue *string `json:"defaultValue,omitempty"`
	// A regex string matched with the name of the target to determine if the property should be disabled If the regex matches the target name, the property will be disabled E.g. \"^local$\" will disable the property for the local target
	DisabledPredicate *string `json:"disabledPredicate,omitempty"`
	InputMasked       *bool   `json:"inputMasked,omitempty"`
	// Options is only used if the Type is ProviderTargetPropertyTypeOption
	Options []string                            `json:"options,omitempty"`
	Type    *ProviderProviderTargetPropertyType `json:"type,omitempty"`
}

ProviderProviderTargetProperty struct for ProviderProviderTargetProperty

func NewProviderProviderTargetProperty

func NewProviderProviderTargetProperty() *ProviderProviderTargetProperty

NewProviderProviderTargetProperty instantiates a new ProviderProviderTargetProperty object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProviderProviderTargetPropertyWithDefaults

func NewProviderProviderTargetPropertyWithDefaults() *ProviderProviderTargetProperty

NewProviderProviderTargetPropertyWithDefaults instantiates a new ProviderProviderTargetProperty object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProviderProviderTargetProperty) GetDefaultValue

func (o *ProviderProviderTargetProperty) GetDefaultValue() string

GetDefaultValue returns the DefaultValue field value if set, zero value otherwise.

func (*ProviderProviderTargetProperty) GetDefaultValueOk

func (o *ProviderProviderTargetProperty) GetDefaultValueOk() (*string, bool)

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

func (*ProviderProviderTargetProperty) GetDisabledPredicate

func (o *ProviderProviderTargetProperty) GetDisabledPredicate() string

GetDisabledPredicate returns the DisabledPredicate field value if set, zero value otherwise.

func (*ProviderProviderTargetProperty) GetDisabledPredicateOk

func (o *ProviderProviderTargetProperty) GetDisabledPredicateOk() (*string, bool)

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

func (*ProviderProviderTargetProperty) GetInputMasked

func (o *ProviderProviderTargetProperty) GetInputMasked() bool

GetInputMasked returns the InputMasked field value if set, zero value otherwise.

func (*ProviderProviderTargetProperty) GetInputMaskedOk

func (o *ProviderProviderTargetProperty) GetInputMaskedOk() (*bool, bool)

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

func (*ProviderProviderTargetProperty) GetOptions

func (o *ProviderProviderTargetProperty) GetOptions() []string

GetOptions returns the Options field value if set, zero value otherwise.

func (*ProviderProviderTargetProperty) GetOptionsOk

func (o *ProviderProviderTargetProperty) GetOptionsOk() ([]string, bool)

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

func (*ProviderProviderTargetProperty) GetType

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

func (*ProviderProviderTargetProperty) GetTypeOk

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

func (*ProviderProviderTargetProperty) HasDefaultValue

func (o *ProviderProviderTargetProperty) HasDefaultValue() bool

HasDefaultValue returns a boolean if a field has been set.

func (*ProviderProviderTargetProperty) HasDisabledPredicate

func (o *ProviderProviderTargetProperty) HasDisabledPredicate() bool

HasDisabledPredicate returns a boolean if a field has been set.

func (*ProviderProviderTargetProperty) HasInputMasked

func (o *ProviderProviderTargetProperty) HasInputMasked() bool

HasInputMasked returns a boolean if a field has been set.

func (*ProviderProviderTargetProperty) HasOptions

func (o *ProviderProviderTargetProperty) HasOptions() bool

HasOptions returns a boolean if a field has been set.

func (*ProviderProviderTargetProperty) HasType

func (o *ProviderProviderTargetProperty) HasType() bool

HasType returns a boolean if a field has been set.

func (ProviderProviderTargetProperty) MarshalJSON

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

func (*ProviderProviderTargetProperty) SetDefaultValue

func (o *ProviderProviderTargetProperty) SetDefaultValue(v string)

SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field.

func (*ProviderProviderTargetProperty) SetDisabledPredicate

func (o *ProviderProviderTargetProperty) SetDisabledPredicate(v string)

SetDisabledPredicate gets a reference to the given string and assigns it to the DisabledPredicate field.

func (*ProviderProviderTargetProperty) SetInputMasked

func (o *ProviderProviderTargetProperty) SetInputMasked(v bool)

SetInputMasked gets a reference to the given bool and assigns it to the InputMasked field.

func (*ProviderProviderTargetProperty) SetOptions

func (o *ProviderProviderTargetProperty) SetOptions(v []string)

SetOptions gets a reference to the given []string and assigns it to the Options field.

func (*ProviderProviderTargetProperty) SetType

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

func (ProviderProviderTargetProperty) ToMap

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

type ProviderProviderTargetPropertyType

type ProviderProviderTargetPropertyType string

ProviderProviderTargetPropertyType the model 'ProviderProviderTargetPropertyType'

const (
	ProviderTargetPropertyTypeString   ProviderProviderTargetPropertyType = "string"
	ProviderTargetPropertyTypeOption   ProviderProviderTargetPropertyType = "option"
	ProviderTargetPropertyTypeBoolean  ProviderProviderTargetPropertyType = "boolean"
	ProviderTargetPropertyTypeInt      ProviderProviderTargetPropertyType = "int"
	ProviderTargetPropertyTypeFloat    ProviderProviderTargetPropertyType = "float"
	ProviderTargetPropertyTypeFilePath ProviderProviderTargetPropertyType = "file-path"
)

List of provider.ProviderTargetPropertyType

func NewProviderProviderTargetPropertyTypeFromValue

func NewProviderProviderTargetPropertyTypeFromValue(v string) (*ProviderProviderTargetPropertyType, error)

NewProviderProviderTargetPropertyTypeFromValue returns a pointer to a valid ProviderProviderTargetPropertyType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ProviderProviderTargetPropertyType) IsValid

IsValid return true if the value is valid for the enum, false otherwise

func (ProviderProviderTargetPropertyType) Ptr

Ptr returns reference to provider.ProviderTargetPropertyType value

func (*ProviderProviderTargetPropertyType) UnmarshalJSON

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

type ProviderTarget

type ProviderTarget struct {
	Name *string `json:"name,omitempty"`
	// JSON encoded map of options
	Options      *string               `json:"options,omitempty"`
	ProviderInfo *ProviderProviderInfo `json:"providerInfo,omitempty"`
}

ProviderTarget struct for ProviderTarget

func NewProviderTarget

func NewProviderTarget() *ProviderTarget

NewProviderTarget instantiates a new ProviderTarget object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProviderTargetWithDefaults

func NewProviderTargetWithDefaults() *ProviderTarget

NewProviderTargetWithDefaults instantiates a new ProviderTarget object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProviderTarget) GetName

func (o *ProviderTarget) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ProviderTarget) GetNameOk

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

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

func (*ProviderTarget) GetOptions

func (o *ProviderTarget) GetOptions() string

GetOptions returns the Options field value if set, zero value otherwise.

func (*ProviderTarget) GetOptionsOk

func (o *ProviderTarget) GetOptionsOk() (*string, bool)

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

func (*ProviderTarget) GetProviderInfo

func (o *ProviderTarget) GetProviderInfo() ProviderProviderInfo

GetProviderInfo returns the ProviderInfo field value if set, zero value otherwise.

func (*ProviderTarget) GetProviderInfoOk

func (o *ProviderTarget) GetProviderInfoOk() (*ProviderProviderInfo, bool)

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

func (*ProviderTarget) HasName

func (o *ProviderTarget) HasName() bool

HasName returns a boolean if a field has been set.

func (*ProviderTarget) HasOptions

func (o *ProviderTarget) HasOptions() bool

HasOptions returns a boolean if a field has been set.

func (*ProviderTarget) HasProviderInfo

func (o *ProviderTarget) HasProviderInfo() bool

HasProviderInfo returns a boolean if a field has been set.

func (ProviderTarget) MarshalJSON

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

func (*ProviderTarget) SetName

func (o *ProviderTarget) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*ProviderTarget) SetOptions

func (o *ProviderTarget) SetOptions(v string)

SetOptions gets a reference to the given string and assigns it to the Options field.

func (*ProviderTarget) SetProviderInfo

func (o *ProviderTarget) SetProviderInfo(v ProviderProviderInfo)

SetProviderInfo gets a reference to the given ProviderProviderInfo and assigns it to the ProviderInfo field.

func (ProviderTarget) ToMap

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

type Repository

type Repository struct {
	Branch   *string `json:"branch,omitempty"`
	Id       *string `json:"id,omitempty"`
	Name     *string `json:"name,omitempty"`
	Owner    *string `json:"owner,omitempty"`
	Path     *string `json:"path,omitempty"`
	PrNumber *int32  `json:"prNumber,omitempty"`
	Sha      *string `json:"sha,omitempty"`
	Source   *string `json:"source,omitempty"`
	Url      *string `json:"url,omitempty"`
}

Repository struct for Repository

func NewRepository

func NewRepository() *Repository

NewRepository instantiates a new Repository object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRepositoryWithDefaults

func NewRepositoryWithDefaults() *Repository

NewRepositoryWithDefaults instantiates a new Repository object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Repository) GetBranch

func (o *Repository) GetBranch() string

GetBranch returns the Branch field value if set, zero value otherwise.

func (*Repository) GetBranchOk

func (o *Repository) GetBranchOk() (*string, bool)

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

func (*Repository) GetId

func (o *Repository) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Repository) GetIdOk

func (o *Repository) GetIdOk() (*string, bool)

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

func (*Repository) GetName

func (o *Repository) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Repository) GetNameOk

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

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

func (*Repository) GetOwner

func (o *Repository) GetOwner() string

GetOwner returns the Owner field value if set, zero value otherwise.

func (*Repository) GetOwnerOk

func (o *Repository) GetOwnerOk() (*string, bool)

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

func (*Repository) GetPath

func (o *Repository) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*Repository) GetPathOk

func (o *Repository) GetPathOk() (*string, bool)

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

func (*Repository) GetPrNumber

func (o *Repository) GetPrNumber() int32

GetPrNumber returns the PrNumber field value if set, zero value otherwise.

func (*Repository) GetPrNumberOk

func (o *Repository) GetPrNumberOk() (*int32, bool)

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

func (*Repository) GetSha

func (o *Repository) GetSha() string

GetSha returns the Sha field value if set, zero value otherwise.

func (*Repository) GetShaOk

func (o *Repository) GetShaOk() (*string, bool)

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

func (*Repository) GetSource

func (o *Repository) GetSource() string

GetSource returns the Source field value if set, zero value otherwise.

func (*Repository) GetSourceOk

func (o *Repository) GetSourceOk() (*string, bool)

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

func (*Repository) GetUrl

func (o *Repository) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (*Repository) GetUrlOk

func (o *Repository) GetUrlOk() (*string, bool)

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

func (*Repository) HasBranch

func (o *Repository) HasBranch() bool

HasBranch returns a boolean if a field has been set.

func (*Repository) HasId

func (o *Repository) HasId() bool

HasId returns a boolean if a field has been set.

func (*Repository) HasName

func (o *Repository) HasName() bool

HasName returns a boolean if a field has been set.

func (*Repository) HasOwner

func (o *Repository) HasOwner() bool

HasOwner returns a boolean if a field has been set.

func (*Repository) HasPath

func (o *Repository) HasPath() bool

HasPath returns a boolean if a field has been set.

func (*Repository) HasPrNumber

func (o *Repository) HasPrNumber() bool

HasPrNumber returns a boolean if a field has been set.

func (*Repository) HasSha

func (o *Repository) HasSha() bool

HasSha returns a boolean if a field has been set.

func (*Repository) HasSource

func (o *Repository) HasSource() bool

HasSource returns a boolean if a field has been set.

func (*Repository) HasUrl

func (o *Repository) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (Repository) MarshalJSON

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

func (*Repository) SetBranch

func (o *Repository) SetBranch(v string)

SetBranch gets a reference to the given string and assigns it to the Branch field.

func (*Repository) SetId

func (o *Repository) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Repository) SetName

func (o *Repository) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Repository) SetOwner

func (o *Repository) SetOwner(v string)

SetOwner gets a reference to the given string and assigns it to the Owner field.

func (*Repository) SetPath

func (o *Repository) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

func (*Repository) SetPrNumber

func (o *Repository) SetPrNumber(v int32)

SetPrNumber gets a reference to the given int32 and assigns it to the PrNumber field.

func (*Repository) SetSha

func (o *Repository) SetSha(v string)

SetSha gets a reference to the given string and assigns it to the Sha field.

func (*Repository) SetSource

func (o *Repository) SetSource(v string)

SetSource gets a reference to the given string and assigns it to the Source field.

func (*Repository) SetUrl

func (o *Repository) SetUrl(v string)

SetUrl gets a reference to the given string and assigns it to the Url field.

func (Repository) ToMap

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

type ServerAPIService

type ServerAPIService service

ServerAPIService ServerAPI service

func (*ServerAPIService) GenerateNetworkKey

func (a *ServerAPIService) GenerateNetworkKey(ctx context.Context) ApiGenerateNetworkKeyRequest

GenerateNetworkKey Generate a new authentication key

Generate a new authentication key

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

func (*ServerAPIService) GenerateNetworkKeyExecute

func (a *ServerAPIService) GenerateNetworkKeyExecute(r ApiGenerateNetworkKeyRequest) (*NetworkKey, *http.Response, error)

Execute executes the request

@return NetworkKey

func (*ServerAPIService) GetConfig

GetConfig Get the server configuration

Get the server configuration

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

func (*ServerAPIService) GetConfigExecute

func (a *ServerAPIService) GetConfigExecute(r ApiGetConfigRequest) (*ServerConfig, *http.Response, error)

Execute executes the request

@return ServerConfig

func (*ServerAPIService) GetGitContext

func (a *ServerAPIService) GetGitContext(ctx context.Context, gitUrl string) ApiGetGitContextRequest

GetGitContext Get Git context

Get Git context

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gitUrl Git URL
@return ApiGetGitContextRequest

func (*ServerAPIService) GetGitContextExecute

func (a *ServerAPIService) GetGitContextExecute(r ApiGetGitContextRequest) (*Repository, *http.Response, error)

Execute executes the request

@return Repository

func (*ServerAPIService) SetConfig

SetConfig Set the server configuration

Set the server configuration

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

func (*ServerAPIService) SetConfigExecute

func (a *ServerAPIService) SetConfigExecute(r ApiSetConfigRequest) (*ServerConfig, *http.Response, error)

Execute executes the request

@return ServerConfig

type ServerConfig

type ServerConfig struct {
	ApiPort           *int32        `json:"apiPort,omitempty"`
	Frps              *FRPSConfig   `json:"frps,omitempty"`
	GitProviders      []GitProvider `json:"gitProviders,omitempty"`
	HeadscalePort     *int32        `json:"headscalePort,omitempty"`
	Id                *string       `json:"id,omitempty"`
	ProvidersDir      *string       `json:"providersDir,omitempty"`
	RegistryUrl       *string       `json:"registryUrl,omitempty"`
	ServerDownloadUrl *string       `json:"serverDownloadUrl,omitempty"`
	TargetsFilePath   *string       `json:"targetsFilePath,omitempty"`
}

ServerConfig struct for ServerConfig

func NewServerConfig

func NewServerConfig() *ServerConfig

NewServerConfig instantiates a new ServerConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerConfigWithDefaults

func NewServerConfigWithDefaults() *ServerConfig

NewServerConfigWithDefaults instantiates a new ServerConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerConfig) GetApiPort

func (o *ServerConfig) GetApiPort() int32

GetApiPort returns the ApiPort field value if set, zero value otherwise.

func (*ServerConfig) GetApiPortOk

func (o *ServerConfig) GetApiPortOk() (*int32, bool)

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

func (*ServerConfig) GetFrps

func (o *ServerConfig) GetFrps() FRPSConfig

GetFrps returns the Frps field value if set, zero value otherwise.

func (*ServerConfig) GetFrpsOk

func (o *ServerConfig) GetFrpsOk() (*FRPSConfig, bool)

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

func (*ServerConfig) GetGitProviders

func (o *ServerConfig) GetGitProviders() []GitProvider

GetGitProviders returns the GitProviders field value if set, zero value otherwise.

func (*ServerConfig) GetGitProvidersOk

func (o *ServerConfig) GetGitProvidersOk() ([]GitProvider, bool)

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

func (*ServerConfig) GetHeadscalePort

func (o *ServerConfig) GetHeadscalePort() int32

GetHeadscalePort returns the HeadscalePort field value if set, zero value otherwise.

func (*ServerConfig) GetHeadscalePortOk

func (o *ServerConfig) GetHeadscalePortOk() (*int32, bool)

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

func (*ServerConfig) GetId

func (o *ServerConfig) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ServerConfig) GetIdOk

func (o *ServerConfig) GetIdOk() (*string, bool)

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

func (*ServerConfig) GetProvidersDir

func (o *ServerConfig) GetProvidersDir() string

GetProvidersDir returns the ProvidersDir field value if set, zero value otherwise.

func (*ServerConfig) GetProvidersDirOk

func (o *ServerConfig) GetProvidersDirOk() (*string, bool)

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

func (*ServerConfig) GetRegistryUrl

func (o *ServerConfig) GetRegistryUrl() string

GetRegistryUrl returns the RegistryUrl field value if set, zero value otherwise.

func (*ServerConfig) GetRegistryUrlOk

func (o *ServerConfig) GetRegistryUrlOk() (*string, bool)

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

func (*ServerConfig) GetServerDownloadUrl

func (o *ServerConfig) GetServerDownloadUrl() string

GetServerDownloadUrl returns the ServerDownloadUrl field value if set, zero value otherwise.

func (*ServerConfig) GetServerDownloadUrlOk

func (o *ServerConfig) GetServerDownloadUrlOk() (*string, bool)

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

func (*ServerConfig) GetTargetsFilePath

func (o *ServerConfig) GetTargetsFilePath() string

GetTargetsFilePath returns the TargetsFilePath field value if set, zero value otherwise.

func (*ServerConfig) GetTargetsFilePathOk

func (o *ServerConfig) GetTargetsFilePathOk() (*string, bool)

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

func (*ServerConfig) HasApiPort

func (o *ServerConfig) HasApiPort() bool

HasApiPort returns a boolean if a field has been set.

func (*ServerConfig) HasFrps

func (o *ServerConfig) HasFrps() bool

HasFrps returns a boolean if a field has been set.

func (*ServerConfig) HasGitProviders

func (o *ServerConfig) HasGitProviders() bool

HasGitProviders returns a boolean if a field has been set.

func (*ServerConfig) HasHeadscalePort

func (o *ServerConfig) HasHeadscalePort() bool

HasHeadscalePort returns a boolean if a field has been set.

func (*ServerConfig) HasId

func (o *ServerConfig) HasId() bool

HasId returns a boolean if a field has been set.

func (*ServerConfig) HasProvidersDir

func (o *ServerConfig) HasProvidersDir() bool

HasProvidersDir returns a boolean if a field has been set.

func (*ServerConfig) HasRegistryUrl

func (o *ServerConfig) HasRegistryUrl() bool

HasRegistryUrl returns a boolean if a field has been set.

func (*ServerConfig) HasServerDownloadUrl

func (o *ServerConfig) HasServerDownloadUrl() bool

HasServerDownloadUrl returns a boolean if a field has been set.

func (*ServerConfig) HasTargetsFilePath

func (o *ServerConfig) HasTargetsFilePath() bool

HasTargetsFilePath returns a boolean if a field has been set.

func (ServerConfig) MarshalJSON

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

func (*ServerConfig) SetApiPort

func (o *ServerConfig) SetApiPort(v int32)

SetApiPort gets a reference to the given int32 and assigns it to the ApiPort field.

func (*ServerConfig) SetFrps

func (o *ServerConfig) SetFrps(v FRPSConfig)

SetFrps gets a reference to the given FRPSConfig and assigns it to the Frps field.

func (*ServerConfig) SetGitProviders

func (o *ServerConfig) SetGitProviders(v []GitProvider)

SetGitProviders gets a reference to the given []GitProvider and assigns it to the GitProviders field.

func (*ServerConfig) SetHeadscalePort

func (o *ServerConfig) SetHeadscalePort(v int32)

SetHeadscalePort gets a reference to the given int32 and assigns it to the HeadscalePort field.

func (*ServerConfig) SetId

func (o *ServerConfig) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ServerConfig) SetProvidersDir

func (o *ServerConfig) SetProvidersDir(v string)

SetProvidersDir gets a reference to the given string and assigns it to the ProvidersDir field.

func (*ServerConfig) SetRegistryUrl

func (o *ServerConfig) SetRegistryUrl(v string)

SetRegistryUrl gets a reference to the given string and assigns it to the RegistryUrl field.

func (*ServerConfig) SetServerDownloadUrl

func (o *ServerConfig) SetServerDownloadUrl(v string)

SetServerDownloadUrl gets a reference to the given string and assigns it to the ServerDownloadUrl field.

func (*ServerConfig) SetTargetsFilePath

func (o *ServerConfig) SetTargetsFilePath(v string)

SetTargetsFilePath gets a reference to the given string and assigns it to the TargetsFilePath field.

func (ServerConfig) ToMap

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

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type TargetAPIService

type TargetAPIService service

TargetAPIService TargetAPI service

func (*TargetAPIService) ListTargets

ListTargets List targets

List targets

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

func (*TargetAPIService) ListTargetsExecute

func (a *TargetAPIService) ListTargetsExecute(r ApiListTargetsRequest) ([]ProviderTarget, *http.Response, error)

Execute executes the request

@return []ProviderTarget

func (*TargetAPIService) RemoveTarget

func (a *TargetAPIService) RemoveTarget(ctx context.Context, target string) ApiRemoveTargetRequest

RemoveTarget Remove a target

Remove a target

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

func (*TargetAPIService) RemoveTargetExecute

func (a *TargetAPIService) RemoveTargetExecute(r ApiRemoveTargetRequest) (*http.Response, error)

Execute executes the request

func (*TargetAPIService) SetTarget

SetTarget Set a target

Set a target

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

func (*TargetAPIService) SetTargetExecute

func (a *TargetAPIService) SetTargetExecute(r ApiSetTargetRequest) (*http.Response, error)

Execute executes the request

type Workspace

type Workspace struct {
	Id       *string        `json:"id,omitempty"`
	Info     *WorkspaceInfo `json:"info,omitempty"`
	Name     *string        `json:"name,omitempty"`
	Projects []Project      `json:"projects,omitempty"`
	Target   *string        `json:"target,omitempty"`
}

Workspace struct for Workspace

func NewWorkspace

func NewWorkspace() *Workspace

NewWorkspace instantiates a new Workspace object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewWorkspaceWithDefaults

func NewWorkspaceWithDefaults() *Workspace

NewWorkspaceWithDefaults instantiates a new Workspace object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Workspace) GetId

func (o *Workspace) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Workspace) GetIdOk

func (o *Workspace) GetIdOk() (*string, bool)

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

func (*Workspace) GetInfo

func (o *Workspace) GetInfo() WorkspaceInfo

GetInfo returns the Info field value if set, zero value otherwise.

func (*Workspace) GetInfoOk

func (o *Workspace) GetInfoOk() (*WorkspaceInfo, bool)

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

func (*Workspace) GetName

func (o *Workspace) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Workspace) GetNameOk

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

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

func (*Workspace) GetProjects

func (o *Workspace) GetProjects() []Project

GetProjects returns the Projects field value if set, zero value otherwise.

func (*Workspace) GetProjectsOk

func (o *Workspace) GetProjectsOk() ([]Project, bool)

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

func (*Workspace) GetTarget

func (o *Workspace) GetTarget() string

GetTarget returns the Target field value if set, zero value otherwise.

func (*Workspace) GetTargetOk

func (o *Workspace) GetTargetOk() (*string, bool)

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

func (*Workspace) HasId

func (o *Workspace) HasId() bool

HasId returns a boolean if a field has been set.

func (*Workspace) HasInfo

func (o *Workspace) HasInfo() bool

HasInfo returns a boolean if a field has been set.

func (*Workspace) HasName

func (o *Workspace) HasName() bool

HasName returns a boolean if a field has been set.

func (*Workspace) HasProjects

func (o *Workspace) HasProjects() bool

HasProjects returns a boolean if a field has been set.

func (*Workspace) HasTarget

func (o *Workspace) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (Workspace) MarshalJSON

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

func (*Workspace) SetId

func (o *Workspace) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Workspace) SetInfo

func (o *Workspace) SetInfo(v WorkspaceInfo)

SetInfo gets a reference to the given WorkspaceInfo and assigns it to the Info field.

func (*Workspace) SetName

func (o *Workspace) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Workspace) SetProjects

func (o *Workspace) SetProjects(v []Project)

SetProjects gets a reference to the given []Project and assigns it to the Projects field.

func (*Workspace) SetTarget

func (o *Workspace) SetTarget(v string)

SetTarget gets a reference to the given string and assigns it to the Target field.

func (Workspace) ToMap

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

type WorkspaceAPIService

type WorkspaceAPIService service

WorkspaceAPIService WorkspaceAPI service

func (*WorkspaceAPIService) CreateWorkspace

CreateWorkspace Create a workspace

Create a workspace

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

func (*WorkspaceAPIService) CreateWorkspaceExecute

func (a *WorkspaceAPIService) CreateWorkspaceExecute(r ApiCreateWorkspaceRequest) (*Workspace, *http.Response, error)

Execute executes the request

@return Workspace

func (*WorkspaceAPIService) GetWorkspace

func (a *WorkspaceAPIService) GetWorkspace(ctx context.Context, workspaceId string) ApiGetWorkspaceRequest

GetWorkspace Get workspace info

Get workspace info

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param workspaceId Workspace ID or Name
@return ApiGetWorkspaceRequest

func (*WorkspaceAPIService) GetWorkspaceExecute

func (a *WorkspaceAPIService) GetWorkspaceExecute(r ApiGetWorkspaceRequest) (*Workspace, *http.Response, error)

Execute executes the request

@return Workspace

func (*WorkspaceAPIService) ListWorkspaces

ListWorkspaces List workspaces

List workspaces

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

func (*WorkspaceAPIService) ListWorkspacesExecute

func (a *WorkspaceAPIService) ListWorkspacesExecute(r ApiListWorkspacesRequest) ([]Workspace, *http.Response, error)

Execute executes the request

@return []Workspace

func (*WorkspaceAPIService) RemoveWorkspace

func (a *WorkspaceAPIService) RemoveWorkspace(ctx context.Context, workspaceId string) ApiRemoveWorkspaceRequest

RemoveWorkspace Remove workspace

Remove workspace

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param workspaceId Workspace ID
@return ApiRemoveWorkspaceRequest

func (*WorkspaceAPIService) RemoveWorkspaceExecute

func (a *WorkspaceAPIService) RemoveWorkspaceExecute(r ApiRemoveWorkspaceRequest) (*http.Response, error)

Execute executes the request

func (*WorkspaceAPIService) StartProject

func (a *WorkspaceAPIService) StartProject(ctx context.Context, workspaceId string, projectId string) ApiStartProjectRequest

StartProject Start project

Start project

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param workspaceId Workspace ID or Name
@param projectId Project ID
@return ApiStartProjectRequest

func (*WorkspaceAPIService) StartProjectExecute

func (a *WorkspaceAPIService) StartProjectExecute(r ApiStartProjectRequest) (*http.Response, error)

Execute executes the request

func (*WorkspaceAPIService) StartWorkspace

func (a *WorkspaceAPIService) StartWorkspace(ctx context.Context, workspaceId string) ApiStartWorkspaceRequest

StartWorkspace Start workspace

Start workspace

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param workspaceId Workspace ID or Name
@return ApiStartWorkspaceRequest

func (*WorkspaceAPIService) StartWorkspaceExecute

func (a *WorkspaceAPIService) StartWorkspaceExecute(r ApiStartWorkspaceRequest) (*http.Response, error)

Execute executes the request

func (*WorkspaceAPIService) StopProject

func (a *WorkspaceAPIService) StopProject(ctx context.Context, workspaceId string, projectId string) ApiStopProjectRequest

StopProject Stop project

Stop project

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param workspaceId Workspace ID or Name
@param projectId Project ID
@return ApiStopProjectRequest

func (*WorkspaceAPIService) StopProjectExecute

func (a *WorkspaceAPIService) StopProjectExecute(r ApiStopProjectRequest) (*http.Response, error)

Execute executes the request

func (*WorkspaceAPIService) StopWorkspace

func (a *WorkspaceAPIService) StopWorkspace(ctx context.Context, workspaceId string) ApiStopWorkspaceRequest

StopWorkspace Stop workspace

Stop workspace

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param workspaceId Workspace ID or Name
@return ApiStopWorkspaceRequest

func (*WorkspaceAPIService) StopWorkspaceExecute

func (a *WorkspaceAPIService) StopWorkspaceExecute(r ApiStopWorkspaceRequest) (*http.Response, error)

Execute executes the request

type WorkspaceInfo

type WorkspaceInfo struct {
	Name             *string       `json:"name,omitempty"`
	Projects         []ProjectInfo `json:"projects,omitempty"`
	ProviderMetadata *string       `json:"providerMetadata,omitempty"`
}

WorkspaceInfo struct for WorkspaceInfo

func NewWorkspaceInfo

func NewWorkspaceInfo() *WorkspaceInfo

NewWorkspaceInfo instantiates a new WorkspaceInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewWorkspaceInfoWithDefaults

func NewWorkspaceInfoWithDefaults() *WorkspaceInfo

NewWorkspaceInfoWithDefaults instantiates a new WorkspaceInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*WorkspaceInfo) GetName

func (o *WorkspaceInfo) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*WorkspaceInfo) GetNameOk

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

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

func (*WorkspaceInfo) GetProjects

func (o *WorkspaceInfo) GetProjects() []ProjectInfo

GetProjects returns the Projects field value if set, zero value otherwise.

func (*WorkspaceInfo) GetProjectsOk

func (o *WorkspaceInfo) GetProjectsOk() ([]ProjectInfo, bool)

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

func (*WorkspaceInfo) GetProviderMetadata

func (o *WorkspaceInfo) GetProviderMetadata() string

GetProviderMetadata returns the ProviderMetadata field value if set, zero value otherwise.

func (*WorkspaceInfo) GetProviderMetadataOk

func (o *WorkspaceInfo) GetProviderMetadataOk() (*string, bool)

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

func (*WorkspaceInfo) HasName

func (o *WorkspaceInfo) HasName() bool

HasName returns a boolean if a field has been set.

func (*WorkspaceInfo) HasProjects

func (o *WorkspaceInfo) HasProjects() bool

HasProjects returns a boolean if a field has been set.

func (*WorkspaceInfo) HasProviderMetadata

func (o *WorkspaceInfo) HasProviderMetadata() bool

HasProviderMetadata returns a boolean if a field has been set.

func (WorkspaceInfo) MarshalJSON

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

func (*WorkspaceInfo) SetName

func (o *WorkspaceInfo) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*WorkspaceInfo) SetProjects

func (o *WorkspaceInfo) SetProjects(v []ProjectInfo)

SetProjects gets a reference to the given []ProjectInfo and assigns it to the Projects field.

func (*WorkspaceInfo) SetProviderMetadata

func (o *WorkspaceInfo) SetProviderMetadata(v string)

SetProviderMetadata gets a reference to the given string and assigns it to the ProviderMetadata field.

func (WorkspaceInfo) ToMap

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

Jump to

Keyboard shortcuts

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