edgeservices

package
v0.115.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 22 Imported by: 11

README

Go API client for edgeservices

Azion Services

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: 2.0.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/oauth2
go get golang.org/x/net/context

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

import sw "./edgeservices"

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 sw.ContextServerIndex of type int.

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

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

ctx := context.WithValue(context.Background(), sw.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 sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

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

Documentation for API Endpoints

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

Class Method HTTP request Description
DefaultApi DeleteResource Delete /edge_services/{serviceId}/resources/{resourceId} Delete Service Resource by ID
DefaultApi DeleteService Delete /edge_services/{id} Delete Service by ID
DefaultApi GetResource Get /edge_services/{serviceId}/resources/{resourceId} Return Service Resource by ID
DefaultApi GetResources Get /edge_services/{serviceId}/resources Return Service Resources by page
DefaultApi GetService Get /edge_services/{id} Return Service by ID
DefaultApi GetServices Get /edge_services/ Return Services by page
DefaultApi NewService Post /edge_services/ Create Service
DefaultApi PatchService Patch /edge_services/{id} Update Service by ID
DefaultApi PatchServiceResource Patch /edge_services/{serviceId}/resources/{resourceId} Update Service Resource by ID
DefaultApi PostResource Post /edge_services/{serviceId}/resources Create Service Resource

Documentation For Models

Documentation For Authorization

bearerAuth
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING")
r, err := client.Service.Operation(auth, args)

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 (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// 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")
)

Functions

func CacheExpires

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

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

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 {
	DefaultApi *DefaultApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Services API API v2.0.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 ApiDeleteResourceRequest

type ApiDeleteResourceRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiDeleteResourceRequest) Execute

type ApiDeleteServiceRequest

type ApiDeleteServiceRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiDeleteServiceRequest) Execute

type ApiGetResourceRequest

type ApiGetResourceRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiGetResourceRequest) Execute

type ApiGetResourcesRequest

type ApiGetResourcesRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiGetResourcesRequest) Execute

func (ApiGetResourcesRequest) Filter

func (ApiGetResourcesRequest) OrderBy

func (ApiGetResourcesRequest) Page

func (ApiGetResourcesRequest) PageSize

func (ApiGetResourcesRequest) Sort

type ApiGetServiceRequest

type ApiGetServiceRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiGetServiceRequest) Execute

func (ApiGetServiceRequest) WithVars

func (r ApiGetServiceRequest) WithVars(withVars bool) ApiGetServiceRequest

type ApiGetServicesRequest

type ApiGetServicesRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiGetServicesRequest) Execute

func (ApiGetServicesRequest) Filter

func (ApiGetServicesRequest) OrderBy

func (ApiGetServicesRequest) Page

func (ApiGetServicesRequest) PageSize

func (r ApiGetServicesRequest) PageSize(pageSize int64) ApiGetServicesRequest

func (ApiGetServicesRequest) Sort

type ApiNewServiceRequest

type ApiNewServiceRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiNewServiceRequest) CreateServiceRequest

func (r ApiNewServiceRequest) CreateServiceRequest(createServiceRequest CreateServiceRequest) ApiNewServiceRequest

func (ApiNewServiceRequest) Execute

type ApiPatchServiceRequest

type ApiPatchServiceRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiPatchServiceRequest) Execute

func (ApiPatchServiceRequest) UpdateServiceRequest

func (r ApiPatchServiceRequest) UpdateServiceRequest(updateServiceRequest UpdateServiceRequest) ApiPatchServiceRequest

type ApiPatchServiceResourceRequest

type ApiPatchServiceResourceRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiPatchServiceResourceRequest) Execute

func (ApiPatchServiceResourceRequest) UpdateResourceRequest

func (r ApiPatchServiceResourceRequest) UpdateResourceRequest(updateResourceRequest UpdateResourceRequest) ApiPatchServiceResourceRequest

type ApiPostResourceRequest

type ApiPostResourceRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiPostResourceRequest) CreateResourceRequest

func (r ApiPostResourceRequest) CreateResourceRequest(createResourceRequest CreateResourceRequest) ApiPostResourceRequest

func (ApiPostResourceRequest) 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 CreateResourceRequest

type CreateResourceRequest struct {
	Content     string `json:"content"`
	ContentType string `json:"content_type"`
	Name        string `json:"name"`
	Trigger     string `json:"trigger"`
}

CreateResourceRequest struct for CreateResourceRequest

func NewCreateResourceRequest

func NewCreateResourceRequest(content string, contentType string, name string, trigger string) *CreateResourceRequest

NewCreateResourceRequest instantiates a new CreateResourceRequest 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 NewCreateResourceRequestWithDefaults

func NewCreateResourceRequestWithDefaults() *CreateResourceRequest

NewCreateResourceRequestWithDefaults instantiates a new CreateResourceRequest 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 (*CreateResourceRequest) GetContent

func (o *CreateResourceRequest) GetContent() string

GetContent returns the Content field value

func (*CreateResourceRequest) GetContentOk

func (o *CreateResourceRequest) GetContentOk() (*string, bool)

GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.

func (*CreateResourceRequest) GetContentType

func (o *CreateResourceRequest) GetContentType() string

GetContentType returns the ContentType field value

func (*CreateResourceRequest) GetContentTypeOk

func (o *CreateResourceRequest) GetContentTypeOk() (*string, bool)

GetContentTypeOk returns a tuple with the ContentType field value and a boolean to check if the value has been set.

func (*CreateResourceRequest) GetName

func (o *CreateResourceRequest) GetName() string

GetName returns the Name field value

func (*CreateResourceRequest) GetNameOk

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

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

func (*CreateResourceRequest) GetTrigger

func (o *CreateResourceRequest) GetTrigger() string

GetTrigger returns the Trigger field value

func (*CreateResourceRequest) GetTriggerOk

func (o *CreateResourceRequest) GetTriggerOk() (*string, bool)

GetTriggerOk returns a tuple with the Trigger field value and a boolean to check if the value has been set.

func (CreateResourceRequest) MarshalJSON

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

func (*CreateResourceRequest) SetContent

func (o *CreateResourceRequest) SetContent(v string)

SetContent sets field value

func (*CreateResourceRequest) SetContentType

func (o *CreateResourceRequest) SetContentType(v string)

SetContentType sets field value

func (*CreateResourceRequest) SetName

func (o *CreateResourceRequest) SetName(v string)

SetName sets field value

func (*CreateResourceRequest) SetTrigger

func (o *CreateResourceRequest) SetTrigger(v string)

SetTrigger sets field value

type CreateServiceRequest

type CreateServiceRequest struct {
	Name string `json:"name"`
}

CreateServiceRequest struct for CreateServiceRequest

func NewCreateServiceRequest

func NewCreateServiceRequest(name string) *CreateServiceRequest

NewCreateServiceRequest instantiates a new CreateServiceRequest 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 NewCreateServiceRequestWithDefaults

func NewCreateServiceRequestWithDefaults() *CreateServiceRequest

NewCreateServiceRequestWithDefaults instantiates a new CreateServiceRequest 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 (*CreateServiceRequest) GetName

func (o *CreateServiceRequest) GetName() string

GetName returns the Name field value

func (*CreateServiceRequest) GetNameOk

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

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

func (CreateServiceRequest) MarshalJSON

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

func (*CreateServiceRequest) SetName

func (o *CreateServiceRequest) SetName(v string)

SetName sets field value

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

func (*DefaultApiService) DeleteResource

func (a *DefaultApiService) DeleteResource(ctx _context.Context, serviceId int64, resourceId int64) ApiDeleteResourceRequest

DeleteResource Delete Service Resource by ID

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

func (*DefaultApiService) DeleteResourceExecute

func (a *DefaultApiService) DeleteResourceExecute(r ApiDeleteResourceRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) DeleteService

DeleteService Delete Service by ID

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

func (*DefaultApiService) DeleteServiceExecute

func (a *DefaultApiService) DeleteServiceExecute(r ApiDeleteServiceRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) GetResource

func (a *DefaultApiService) GetResource(ctx _context.Context, serviceId int64, resourceId int64) ApiGetResourceRequest

GetResource Return Service Resource by ID

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

func (*DefaultApiService) GetResourceExecute

Execute executes the request

@return ResourceDetail

func (*DefaultApiService) GetResources

func (a *DefaultApiService) GetResources(ctx _context.Context, serviceId int64) ApiGetResourcesRequest

GetResources Return Service Resources by page

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

func (*DefaultApiService) GetResourcesExecute

Execute executes the request

@return ResourceResponseWithTotal

func (*DefaultApiService) GetService

GetService Return Service by ID

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

func (*DefaultApiService) GetServiceExecute

Execute executes the request

@return ServiceResponse

func (*DefaultApiService) GetServices

GetServices Return Services by page

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

func (*DefaultApiService) GetServicesExecute

Execute executes the request

@return ServiceResponseWithTotals

func (*DefaultApiService) NewService

NewService Create Service

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

func (*DefaultApiService) NewServiceExecute

Execute executes the request

@return ServiceResponse

func (*DefaultApiService) PatchService

PatchService Update Service by ID

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

func (*DefaultApiService) PatchServiceExecute

Execute executes the request

@return ServiceResponse

func (*DefaultApiService) PatchServiceResource

func (a *DefaultApiService) PatchServiceResource(ctx _context.Context, serviceId int64, resourceId int64) ApiPatchServiceResourceRequest

PatchServiceResource Update Service Resource by ID

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

func (*DefaultApiService) PatchServiceResourceExecute

Execute executes the request

@return ResourceDetail

func (*DefaultApiService) PostResource

func (a *DefaultApiService) PostResource(ctx _context.Context, serviceId int64) ApiPostResourceRequest

PostResource Create Service Resource

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

func (*DefaultApiService) PostResourceExecute

Execute executes the request

@return ResourceDetail

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 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 NullableCreateResourceRequest

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

func (NullableCreateResourceRequest) Get

func (NullableCreateResourceRequest) IsSet

func (NullableCreateResourceRequest) MarshalJSON

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

func (*NullableCreateResourceRequest) Set

func (*NullableCreateResourceRequest) UnmarshalJSON

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

func (*NullableCreateResourceRequest) Unset

func (v *NullableCreateResourceRequest) Unset()

type NullableCreateServiceRequest

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

func NewNullableCreateServiceRequest

func NewNullableCreateServiceRequest(val *CreateServiceRequest) *NullableCreateServiceRequest

func (NullableCreateServiceRequest) Get

func (NullableCreateServiceRequest) IsSet

func (NullableCreateServiceRequest) MarshalJSON

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

func (*NullableCreateServiceRequest) Set

func (*NullableCreateServiceRequest) UnmarshalJSON

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

func (*NullableCreateServiceRequest) Unset

func (v *NullableCreateServiceRequest) 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 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 NullableResourceDetail

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

func NewNullableResourceDetail

func NewNullableResourceDetail(val *ResourceDetail) *NullableResourceDetail

func (NullableResourceDetail) Get

func (NullableResourceDetail) IsSet

func (v NullableResourceDetail) IsSet() bool

func (NullableResourceDetail) MarshalJSON

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

func (*NullableResourceDetail) Set

func (*NullableResourceDetail) UnmarshalJSON

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

func (*NullableResourceDetail) Unset

func (v *NullableResourceDetail) Unset()

type NullableResourceResponse

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

func NewNullableResourceResponse

func NewNullableResourceResponse(val *ResourceResponse) *NullableResourceResponse

func (NullableResourceResponse) Get

func (NullableResourceResponse) IsSet

func (v NullableResourceResponse) IsSet() bool

func (NullableResourceResponse) MarshalJSON

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

func (*NullableResourceResponse) Set

func (*NullableResourceResponse) UnmarshalJSON

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

func (*NullableResourceResponse) Unset

func (v *NullableResourceResponse) Unset()

type NullableResourceResponseWithTotal

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

func (NullableResourceResponseWithTotal) Get

func (NullableResourceResponseWithTotal) IsSet

func (NullableResourceResponseWithTotal) MarshalJSON

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

func (*NullableResourceResponseWithTotal) Set

func (*NullableResourceResponseWithTotal) UnmarshalJSON

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

func (*NullableResourceResponseWithTotal) Unset

type NullableServiceResponse

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

func NewNullableServiceResponse

func NewNullableServiceResponse(val *ServiceResponse) *NullableServiceResponse

func (NullableServiceResponse) Get

func (NullableServiceResponse) IsSet

func (v NullableServiceResponse) IsSet() bool

func (NullableServiceResponse) MarshalJSON

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

func (*NullableServiceResponse) Set

func (*NullableServiceResponse) UnmarshalJSON

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

func (*NullableServiceResponse) Unset

func (v *NullableServiceResponse) Unset()

type NullableServiceResponseWithTotals

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

func (NullableServiceResponseWithTotals) Get

func (NullableServiceResponseWithTotals) IsSet

func (NullableServiceResponseWithTotals) MarshalJSON

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

func (*NullableServiceResponseWithTotals) Set

func (*NullableServiceResponseWithTotals) UnmarshalJSON

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

func (*NullableServiceResponseWithTotals) 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 NullableUpdateResourceRequest

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

func (NullableUpdateResourceRequest) Get

func (NullableUpdateResourceRequest) IsSet

func (NullableUpdateResourceRequest) MarshalJSON

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

func (*NullableUpdateResourceRequest) Set

func (*NullableUpdateResourceRequest) UnmarshalJSON

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

func (*NullableUpdateResourceRequest) Unset

func (v *NullableUpdateResourceRequest) Unset()

type NullableUpdateServiceRequest

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

func NewNullableUpdateServiceRequest

func NewNullableUpdateServiceRequest(val *UpdateServiceRequest) *NullableUpdateServiceRequest

func (NullableUpdateServiceRequest) Get

func (NullableUpdateServiceRequest) IsSet

func (NullableUpdateServiceRequest) MarshalJSON

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

func (*NullableUpdateServiceRequest) Set

func (*NullableUpdateServiceRequest) UnmarshalJSON

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

func (*NullableUpdateServiceRequest) Unset

func (v *NullableUpdateServiceRequest) Unset()

type NullableVariable

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

func NewNullableVariable

func NewNullableVariable(val *Variable) *NullableVariable

func (NullableVariable) Get

func (v NullableVariable) Get() *Variable

func (NullableVariable) IsSet

func (v NullableVariable) IsSet() bool

func (NullableVariable) MarshalJSON

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

func (*NullableVariable) Set

func (v *NullableVariable) Set(val *Variable)

func (*NullableVariable) UnmarshalJSON

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

func (*NullableVariable) Unset

func (v *NullableVariable) Unset()

type ResourceDetail

type ResourceDetail struct {
	Content     string `json:"content"`
	ContentType string `json:"content_type"`
	Id          int64  `json:"id"`
	Name        string `json:"name"`
	Trigger     string `json:"trigger"`
}

ResourceDetail struct for ResourceDetail

func NewResourceDetail

func NewResourceDetail(content string, contentType string, id int64, name string, trigger string) *ResourceDetail

NewResourceDetail instantiates a new ResourceDetail 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 NewResourceDetailWithDefaults

func NewResourceDetailWithDefaults() *ResourceDetail

NewResourceDetailWithDefaults instantiates a new ResourceDetail 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 (*ResourceDetail) GetContent

func (o *ResourceDetail) GetContent() string

GetContent returns the Content field value

func (*ResourceDetail) GetContentOk

func (o *ResourceDetail) GetContentOk() (*string, bool)

GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.

func (*ResourceDetail) GetContentType

func (o *ResourceDetail) GetContentType() string

GetContentType returns the ContentType field value

func (*ResourceDetail) GetContentTypeOk

func (o *ResourceDetail) GetContentTypeOk() (*string, bool)

GetContentTypeOk returns a tuple with the ContentType field value and a boolean to check if the value has been set.

func (*ResourceDetail) GetId

func (o *ResourceDetail) GetId() int64

GetId returns the Id field value

func (*ResourceDetail) GetIdOk

func (o *ResourceDetail) GetIdOk() (*int64, bool)

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

func (*ResourceDetail) GetName

func (o *ResourceDetail) GetName() string

GetName returns the Name field value

func (*ResourceDetail) GetNameOk

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

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

func (*ResourceDetail) GetTrigger added in v0.20.0

func (o *ResourceDetail) GetTrigger() string

GetTrigger returns the Trigger field value

func (*ResourceDetail) GetTriggerOk added in v0.20.0

func (o *ResourceDetail) GetTriggerOk() (*string, bool)

GetTriggerOk returns a tuple with the Trigger field value and a boolean to check if the value has been set.

func (ResourceDetail) MarshalJSON

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

func (*ResourceDetail) SetContent

func (o *ResourceDetail) SetContent(v string)

SetContent sets field value

func (*ResourceDetail) SetContentType

func (o *ResourceDetail) SetContentType(v string)

SetContentType sets field value

func (*ResourceDetail) SetId

func (o *ResourceDetail) SetId(v int64)

SetId sets field value

func (*ResourceDetail) SetName

func (o *ResourceDetail) SetName(v string)

SetName sets field value

func (*ResourceDetail) SetTrigger added in v0.20.0

func (o *ResourceDetail) SetTrigger(v string)

SetTrigger sets field value

type ResourceResponse

type ResourceResponse struct {
	ContentType string `json:"content_type"`
	Id          int64  `json:"id"`
	LastEditor  string `json:"last_editor"`
	Name        string `json:"name"`
	Trigger     string `json:"trigger"`
	UpdatedAt   string `json:"updated_at"`
}

ResourceResponse struct for ResourceResponse

func NewResourceResponse

func NewResourceResponse(contentType string, id int64, lastEditor string, name string, trigger string, updatedAt string) *ResourceResponse

NewResourceResponse instantiates a new ResourceResponse 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 NewResourceResponseWithDefaults

func NewResourceResponseWithDefaults() *ResourceResponse

NewResourceResponseWithDefaults instantiates a new ResourceResponse 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 (*ResourceResponse) GetContentType

func (o *ResourceResponse) GetContentType() string

GetContentType returns the ContentType field value

func (*ResourceResponse) GetContentTypeOk

func (o *ResourceResponse) GetContentTypeOk() (*string, bool)

GetContentTypeOk returns a tuple with the ContentType field value and a boolean to check if the value has been set.

func (*ResourceResponse) GetId

func (o *ResourceResponse) GetId() int64

GetId returns the Id field value

func (*ResourceResponse) GetIdOk

func (o *ResourceResponse) GetIdOk() (*int64, bool)

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

func (*ResourceResponse) GetLastEditor

func (o *ResourceResponse) GetLastEditor() string

GetLastEditor returns the LastEditor field value

func (*ResourceResponse) GetLastEditorOk

func (o *ResourceResponse) GetLastEditorOk() (*string, bool)

GetLastEditorOk returns a tuple with the LastEditor field value and a boolean to check if the value has been set.

func (*ResourceResponse) GetName

func (o *ResourceResponse) GetName() string

GetName returns the Name field value

func (*ResourceResponse) GetNameOk

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

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

func (*ResourceResponse) GetTrigger added in v0.20.0

func (o *ResourceResponse) GetTrigger() string

GetTrigger returns the Trigger field value

func (*ResourceResponse) GetTriggerOk added in v0.20.0

func (o *ResourceResponse) GetTriggerOk() (*string, bool)

GetTriggerOk returns a tuple with the Trigger field value and a boolean to check if the value has been set.

func (*ResourceResponse) GetUpdatedAt

func (o *ResourceResponse) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*ResourceResponse) GetUpdatedAtOk

func (o *ResourceResponse) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (ResourceResponse) MarshalJSON

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

func (*ResourceResponse) SetContentType

func (o *ResourceResponse) SetContentType(v string)

SetContentType sets field value

func (*ResourceResponse) SetId

func (o *ResourceResponse) SetId(v int64)

SetId sets field value

func (*ResourceResponse) SetLastEditor

func (o *ResourceResponse) SetLastEditor(v string)

SetLastEditor sets field value

func (*ResourceResponse) SetName

func (o *ResourceResponse) SetName(v string)

SetName sets field value

func (*ResourceResponse) SetTrigger added in v0.20.0

func (o *ResourceResponse) SetTrigger(v string)

SetTrigger sets field value

func (*ResourceResponse) SetUpdatedAt

func (o *ResourceResponse) SetUpdatedAt(v string)

SetUpdatedAt sets field value

type ResourceResponseWithTotal

type ResourceResponseWithTotal struct {
	Resources []ResourceResponse `json:"resources"`
	Total     int64              `json:"total"`
}

ResourceResponseWithTotal struct for ResourceResponseWithTotal

func NewResourceResponseWithTotal

func NewResourceResponseWithTotal(resources []ResourceResponse, total int64) *ResourceResponseWithTotal

NewResourceResponseWithTotal instantiates a new ResourceResponseWithTotal 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 NewResourceResponseWithTotalWithDefaults

func NewResourceResponseWithTotalWithDefaults() *ResourceResponseWithTotal

NewResourceResponseWithTotalWithDefaults instantiates a new ResourceResponseWithTotal 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 (*ResourceResponseWithTotal) GetResources

func (o *ResourceResponseWithTotal) GetResources() []ResourceResponse

GetResources returns the Resources field value

func (*ResourceResponseWithTotal) GetResourcesOk

func (o *ResourceResponseWithTotal) GetResourcesOk() (*[]ResourceResponse, bool)

GetResourcesOk returns a tuple with the Resources field value and a boolean to check if the value has been set.

func (*ResourceResponseWithTotal) GetTotal

func (o *ResourceResponseWithTotal) GetTotal() int64

GetTotal returns the Total field value

func (*ResourceResponseWithTotal) GetTotalOk

func (o *ResourceResponseWithTotal) GetTotalOk() (*int64, bool)

GetTotalOk returns a tuple with the Total field value and a boolean to check if the value has been set.

func (ResourceResponseWithTotal) MarshalJSON

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

func (*ResourceResponseWithTotal) SetResources

func (o *ResourceResponseWithTotal) SetResources(v []ResourceResponse)

SetResources sets field value

func (*ResourceResponseWithTotal) SetTotal

func (o *ResourceResponseWithTotal) SetTotal(v int64)

SetTotal sets field value

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 ServiceResponse

type ServiceResponse struct {
	Active      bool        `json:"active"`
	BoundNodes  int64       `json:"bound_nodes"`
	Id          int64       `json:"id"`
	LastEditor  string      `json:"last_editor"`
	Name        string      `json:"name"`
	Permissions []string    `json:"permissions"`
	UpdatedAt   string      `json:"updated_at"`
	Variables   *[]Variable `json:"variables,omitempty"`
}

ServiceResponse struct for ServiceResponse

func NewServiceResponse

func NewServiceResponse(active bool, boundNodes int64, id int64, lastEditor string, name string, permissions []string, updatedAt string) *ServiceResponse

NewServiceResponse instantiates a new ServiceResponse 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 NewServiceResponseWithDefaults

func NewServiceResponseWithDefaults() *ServiceResponse

NewServiceResponseWithDefaults instantiates a new ServiceResponse 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 (*ServiceResponse) GetActive

func (o *ServiceResponse) GetActive() bool

GetActive returns the Active field value

func (*ServiceResponse) GetActiveOk

func (o *ServiceResponse) GetActiveOk() (*bool, bool)

GetActiveOk returns a tuple with the Active field value and a boolean to check if the value has been set.

func (*ServiceResponse) GetBoundNodes

func (o *ServiceResponse) GetBoundNodes() int64

GetBoundNodes returns the BoundNodes field value

func (*ServiceResponse) GetBoundNodesOk

func (o *ServiceResponse) GetBoundNodesOk() (*int64, bool)

GetBoundNodesOk returns a tuple with the BoundNodes field value and a boolean to check if the value has been set.

func (*ServiceResponse) GetId

func (o *ServiceResponse) GetId() int64

GetId returns the Id field value

func (*ServiceResponse) GetIdOk

func (o *ServiceResponse) GetIdOk() (*int64, bool)

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

func (*ServiceResponse) GetLastEditor

func (o *ServiceResponse) GetLastEditor() string

GetLastEditor returns the LastEditor field value

func (*ServiceResponse) GetLastEditorOk

func (o *ServiceResponse) GetLastEditorOk() (*string, bool)

GetLastEditorOk returns a tuple with the LastEditor field value and a boolean to check if the value has been set.

func (*ServiceResponse) GetName

func (o *ServiceResponse) GetName() string

GetName returns the Name field value

func (*ServiceResponse) GetNameOk

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

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

func (*ServiceResponse) GetPermissions

func (o *ServiceResponse) GetPermissions() []string

GetPermissions returns the Permissions field value

func (*ServiceResponse) GetPermissionsOk

func (o *ServiceResponse) GetPermissionsOk() (*[]string, bool)

GetPermissionsOk returns a tuple with the Permissions field value and a boolean to check if the value has been set.

func (*ServiceResponse) GetUpdatedAt

func (o *ServiceResponse) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*ServiceResponse) GetUpdatedAtOk

func (o *ServiceResponse) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*ServiceResponse) GetVariables

func (o *ServiceResponse) GetVariables() []Variable

GetVariables returns the Variables field value if set, zero value otherwise.

func (*ServiceResponse) GetVariablesOk

func (o *ServiceResponse) GetVariablesOk() (*[]Variable, bool)

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

func (*ServiceResponse) HasVariables

func (o *ServiceResponse) HasVariables() bool

HasVariables returns a boolean if a field has been set.

func (ServiceResponse) MarshalJSON

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

func (*ServiceResponse) SetActive

func (o *ServiceResponse) SetActive(v bool)

SetActive sets field value

func (*ServiceResponse) SetBoundNodes

func (o *ServiceResponse) SetBoundNodes(v int64)

SetBoundNodes sets field value

func (*ServiceResponse) SetId

func (o *ServiceResponse) SetId(v int64)

SetId sets field value

func (*ServiceResponse) SetLastEditor

func (o *ServiceResponse) SetLastEditor(v string)

SetLastEditor sets field value

func (*ServiceResponse) SetName

func (o *ServiceResponse) SetName(v string)

SetName sets field value

func (*ServiceResponse) SetPermissions

func (o *ServiceResponse) SetPermissions(v []string)

SetPermissions sets field value

func (*ServiceResponse) SetUpdatedAt

func (o *ServiceResponse) SetUpdatedAt(v string)

SetUpdatedAt sets field value

func (*ServiceResponse) SetVariables

func (o *ServiceResponse) SetVariables(v []Variable)

SetVariables gets a reference to the given []Variable and assigns it to the Variables field.

type ServiceResponseWithTotals

type ServiceResponseWithTotals struct {
	Services []ServiceResponse `json:"services"`
	Total    int64             `json:"total"`
}

ServiceResponseWithTotals struct for ServiceResponseWithTotals

func NewServiceResponseWithTotals

func NewServiceResponseWithTotals(services []ServiceResponse, total int64) *ServiceResponseWithTotals

NewServiceResponseWithTotals instantiates a new ServiceResponseWithTotals 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 NewServiceResponseWithTotalsWithDefaults

func NewServiceResponseWithTotalsWithDefaults() *ServiceResponseWithTotals

NewServiceResponseWithTotalsWithDefaults instantiates a new ServiceResponseWithTotals 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 (*ServiceResponseWithTotals) GetServices

func (o *ServiceResponseWithTotals) GetServices() []ServiceResponse

GetServices returns the Services field value

func (*ServiceResponseWithTotals) GetServicesOk

func (o *ServiceResponseWithTotals) GetServicesOk() (*[]ServiceResponse, bool)

GetServicesOk returns a tuple with the Services field value and a boolean to check if the value has been set.

func (*ServiceResponseWithTotals) GetTotal

func (o *ServiceResponseWithTotals) GetTotal() int64

GetTotal returns the Total field value

func (*ServiceResponseWithTotals) GetTotalOk

func (o *ServiceResponseWithTotals) GetTotalOk() (*int64, bool)

GetTotalOk returns a tuple with the Total field value and a boolean to check if the value has been set.

func (ServiceResponseWithTotals) MarshalJSON

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

func (*ServiceResponseWithTotals) SetServices

func (o *ServiceResponseWithTotals) SetServices(v []ServiceResponse)

SetServices sets field value

func (*ServiceResponseWithTotals) SetTotal

func (o *ServiceResponseWithTotals) SetTotal(v int64)

SetTotal sets field value

type UpdateResourceRequest

type UpdateResourceRequest struct {
	Content     *string `json:"content,omitempty"`
	ContentType *string `json:"content_type,omitempty"`
	Name        *string `json:"name,omitempty"`
	Trigger     *string `json:"trigger,omitempty"`
}

UpdateResourceRequest struct for UpdateResourceRequest

func NewUpdateResourceRequest

func NewUpdateResourceRequest() *UpdateResourceRequest

NewUpdateResourceRequest instantiates a new UpdateResourceRequest 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 NewUpdateResourceRequestWithDefaults

func NewUpdateResourceRequestWithDefaults() *UpdateResourceRequest

NewUpdateResourceRequestWithDefaults instantiates a new UpdateResourceRequest 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 (*UpdateResourceRequest) GetContent

func (o *UpdateResourceRequest) GetContent() string

GetContent returns the Content field value if set, zero value otherwise.

func (*UpdateResourceRequest) GetContentOk

func (o *UpdateResourceRequest) GetContentOk() (*string, bool)

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

func (*UpdateResourceRequest) GetContentType

func (o *UpdateResourceRequest) GetContentType() string

GetContentType returns the ContentType field value if set, zero value otherwise.

func (*UpdateResourceRequest) GetContentTypeOk

func (o *UpdateResourceRequest) GetContentTypeOk() (*string, bool)

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

func (*UpdateResourceRequest) GetName

func (o *UpdateResourceRequest) GetName() string

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

func (*UpdateResourceRequest) GetNameOk

func (o *UpdateResourceRequest) 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 (*UpdateResourceRequest) GetTrigger

func (o *UpdateResourceRequest) GetTrigger() string

GetTrigger returns the Trigger field value if set, zero value otherwise.

func (*UpdateResourceRequest) GetTriggerOk

func (o *UpdateResourceRequest) GetTriggerOk() (*string, bool)

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

func (*UpdateResourceRequest) HasContent

func (o *UpdateResourceRequest) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*UpdateResourceRequest) HasContentType

func (o *UpdateResourceRequest) HasContentType() bool

HasContentType returns a boolean if a field has been set.

func (*UpdateResourceRequest) HasName

func (o *UpdateResourceRequest) HasName() bool

HasName returns a boolean if a field has been set.

func (*UpdateResourceRequest) HasTrigger

func (o *UpdateResourceRequest) HasTrigger() bool

HasTrigger returns a boolean if a field has been set.

func (UpdateResourceRequest) MarshalJSON

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

func (*UpdateResourceRequest) SetContent

func (o *UpdateResourceRequest) SetContent(v string)

SetContent gets a reference to the given string and assigns it to the Content field.

func (*UpdateResourceRequest) SetContentType

func (o *UpdateResourceRequest) SetContentType(v string)

SetContentType gets a reference to the given string and assigns it to the ContentType field.

func (*UpdateResourceRequest) SetName

func (o *UpdateResourceRequest) SetName(v string)

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

func (*UpdateResourceRequest) SetTrigger

func (o *UpdateResourceRequest) SetTrigger(v string)

SetTrigger gets a reference to the given string and assigns it to the Trigger field.

type UpdateServiceRequest

type UpdateServiceRequest struct {
	Active    *bool       `json:"active,omitempty"`
	Name      *string     `json:"name,omitempty"`
	Variables *[]Variable `json:"variables,omitempty"`
}

UpdateServiceRequest struct for UpdateServiceRequest

func NewUpdateServiceRequest

func NewUpdateServiceRequest() *UpdateServiceRequest

NewUpdateServiceRequest instantiates a new UpdateServiceRequest 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 NewUpdateServiceRequestWithDefaults

func NewUpdateServiceRequestWithDefaults() *UpdateServiceRequest

NewUpdateServiceRequestWithDefaults instantiates a new UpdateServiceRequest 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 (*UpdateServiceRequest) GetActive

func (o *UpdateServiceRequest) GetActive() bool

GetActive returns the Active field value if set, zero value otherwise.

func (*UpdateServiceRequest) GetActiveOk

func (o *UpdateServiceRequest) GetActiveOk() (*bool, bool)

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

func (*UpdateServiceRequest) GetName

func (o *UpdateServiceRequest) GetName() string

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

func (*UpdateServiceRequest) GetNameOk

func (o *UpdateServiceRequest) 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 (*UpdateServiceRequest) GetVariables

func (o *UpdateServiceRequest) GetVariables() []Variable

GetVariables returns the Variables field value if set, zero value otherwise.

func (*UpdateServiceRequest) GetVariablesOk

func (o *UpdateServiceRequest) GetVariablesOk() (*[]Variable, bool)

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

func (*UpdateServiceRequest) HasActive

func (o *UpdateServiceRequest) HasActive() bool

HasActive returns a boolean if a field has been set.

func (*UpdateServiceRequest) HasName

func (o *UpdateServiceRequest) HasName() bool

HasName returns a boolean if a field has been set.

func (*UpdateServiceRequest) HasVariables

func (o *UpdateServiceRequest) HasVariables() bool

HasVariables returns a boolean if a field has been set.

func (UpdateServiceRequest) MarshalJSON

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

func (*UpdateServiceRequest) SetActive

func (o *UpdateServiceRequest) SetActive(v bool)

SetActive gets a reference to the given bool and assigns it to the Active field.

func (*UpdateServiceRequest) SetName

func (o *UpdateServiceRequest) SetName(v string)

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

func (*UpdateServiceRequest) SetVariables

func (o *UpdateServiceRequest) SetVariables(v []Variable)

SetVariables gets a reference to the given []Variable and assigns it to the Variables field.

type Variable

type Variable struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Variable struct for Variable

func NewVariable

func NewVariable(name string, value string) *Variable

NewVariable instantiates a new Variable 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 NewVariableWithDefaults

func NewVariableWithDefaults() *Variable

NewVariableWithDefaults instantiates a new Variable 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 (*Variable) GetName

func (o *Variable) GetName() string

GetName returns the Name field value

func (*Variable) GetNameOk

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

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

func (*Variable) GetValue

func (o *Variable) GetValue() string

GetValue returns the Value field value

func (*Variable) GetValueOk

func (o *Variable) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (Variable) MarshalJSON

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

func (*Variable) SetName

func (o *Variable) SetName(v string)

SetName sets field value

func (*Variable) SetValue

func (o *Variable) SetValue(v string)

SetValue sets field value

Jump to

Keyboard shortcuts

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