cert

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

README

Go API client for cert

Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the Application Load Balancer, you usually need a certificate to encrypt your HTTPS traffic.

The service provides the basic functions of uploading and deleting your certificates for this purpose.

Overview

The IONOS Cloud SDK for GO provides you with access to the IONOS Cloud API. The client library supports both simple and complex requests. It is designed for developers who are building applications in GO . The SDK for GO wraps the IONOS Cloud API. All API operations are performed over SSL and authenticated using your IONOS Cloud portal credentials. The API can be accessed within an instance running in IONOS Cloud or directly over the Internet from any application that can send an HTTPS request and receive an HTTPS response.

Installing

Use go get to retrieve the SDK to add it to your GOPATH workspace, or project's Go module dependencies.
go get github.com/ionos-cloud/sdk-go-bundle/products/cert.git

To update the SDK use go get -u to retrieve the latest version of the SDK.

go get -u github.com/ionos-cloud/sdk-go-bundle/products/cert.git
Go Modules

If you are using Go modules, your go get will default to the latest tagged release version of the SDK. To get a specific release version of the SDK use @ in your go get command.

To get the latest SDK repository, use @latest.

go get github.com/ionos-cloud/sdk-go-bundle/products/cert@latest

Environment Variables

Environment Variable Description
IONOS_USERNAME Specify the username used to login, to authenticate against the IONOS Cloud API
IONOS_PASSWORD Specify the password used to login, to authenticate against the IONOS Cloud API
IONOS_TOKEN Specify the token used to login, if a token is being used instead of username and password
IONOS_API_URL Specify the API URL. It will overwrite the API endpoint default value api.ionos.com. Note: the host URL does not contain the /cloudapi/v6 path, so it should not be included in the IONOS_API_URL environment variable
IONOS_LOGLEVEL Specify the Log Level used to log messages. Possible values: Off, Debug, Trace
IONOS_PINNED_CERT Specify the SHA-256 public fingerprint here, enables certificate pinning

⚠️ Note: To overwrite the api endpoint - api.ionos.com, the environment variable $IONOS_API_URL can be set, and used with NewConfigurationFromEnv() function.

Examples

Examples for creating resources using the Go SDK can be found here

Authentication

Basic Authentication
  • Type: HTTP basic authentication

Example

import (
	"context"
	"fmt"
	"github.com/ionos-cloud/sdk-go-bundle/shared"
	cert "github.com/ionos-cloud/sdk-go-bundle/products/cert"
	"log"
)

func basicAuthExample() error {
	cfg := shared.NewConfiguration("username_here", "pwd_here", "", "")
	cfg.LogLevel = Trace
	apiClient := cert.NewAPIClient(cfg)
	return nil
}
Token Authentication

There are 2 ways to generate your token:

Generate token using sdk for auth:
    import (
        "context"
        "fmt"
        "github.com/ionos-cloud/sdk-go-bundle/products/auth"
        "github.com/ionos-cloud/sdk-go-bundle/shared"
        cert "github.com/ionos-cloud/sdk-go-bundle/products/cert"
        "log"
    )

    func TokenAuthExample() error {
        //note: to use NewConfigurationFromEnv(), you need to previously set IONOS_USERNAME and IONOS_PASSWORD as env variables
        authClient := auth.NewAPIClient(authApi.NewConfigurationFromEnv())
        jwt, _, err := auth.TokensApi.TokensGenerate(context.Background()).Execute()
        if err != nil {
            return fmt.Errorf("error occurred while generating token (%w)", err)
        }
        if !jwt.HasToken() {
            return fmt.Errorf("could not generate token")
        }
        cfg := shared.NewConfiguration("", "", *jwt.GetToken(), "")
        cfg.LogLevel = Trace
        apiClient := cert.NewAPIClient(cfg)
        return nil
    }
Generate token using ionosctl:

Install ionosctl as explained here Run commands to login and generate your token.

    ionosctl login
    ionosctl token generate
    export IONOS_TOKEN="insert_here_token_saved_from_generate_command"

Save the generated token and use it to authenticate:

    import (
        "context"
        "fmt"
        "github.com/ionos-cloud/sdk-go-bundle/products/auth"
         cert "github.com/ionos-cloud/sdk-go-bundle/products/cert"
        "log"
    )

    func TokenAuthExample() error {
        //note: to use NewConfigurationFromEnv(), you need to previously set IONOS_TOKEN as env variables
        authClient := auth.NewAPIClient(authApi.NewConfigurationFromEnv())
        cfg.LogLevel = Trace
        apiClient := cert.NewAPIClient(cfg)
        return nil
    }

Certificate pinning:

You can enable certificate pinning if you want to bypass the normal certificate checking procedure, by doing the following:

Set env variable IONOS_PINNED_CERT=<insert_sha256_public_fingerprint_here>

You can get the sha256 fingerprint most easily from the browser by inspecting the certificate.

Depth

Many of the List or Get operations will accept an optional depth argument. Setting this to a value between 0 and 5 affects the amount of data that is returned. The details returned vary depending on the resource being queried, but it generally follows this pattern. By default, the SDK sets the depth argument to the maximum value.

Depth Description
0 Only direct properties are included. Children are not included.
1 Direct properties and children's references are returned.
2 Direct properties and children's properties are returned.
3 Direct properties, children's properties, and descendants' references are returned.
4 Direct properties, children's properties, and descendants' properties are returned.
5 Returns all available properties.
Changing the base URL

Base URL for the HTTP operation can be changed by using the following function:

requestProperties.SetURL("https://api.ionos.com/cloudapi/v6")

Debugging

You can now inject any logger that implements Printf as a logger instead of using the default sdk logger. There are now Loglevels that you can set: Off, Debug and Trace. Off - does not show any logs Debug - regular logs, no sensitive information Trace - we recommend you only set this field for debugging purposes. Disable it in your production environments because it can log sensitive data. It logs the full request and response without encryption, even for an HTTPS call. Verbose request and response logging can also significantly impact your application's performance.

package main

    import (
        cert "github.com/ionos-cloud/sdk-go-bundle/products/cert"
        "github.com/ionos-cloud/sdk-go-bundle/shared"
        "github.com/sirupsen/logrus"
    )

func main() {
    // create your configuration. replace username, password, token and url with correct values, or use NewConfigurationFromEnv()
    // if you have set your env variables as explained above
    cfg := shared.NewConfiguration("username", "password", "token", "hostUrl")
    // enable request and response logging. this is the most verbose loglevel
    cfg.LogLevel = Trace
    // inject your own logger that implements Printf
    cfg.Logger = logrus.New()
    // create you api client with the configuration
    apiClient := cert.NewAPIClient(cfg)
}

Documentation for API Endpoints

All URIs are relative to https://api.ionos.com

API Endpoints table
Class Method HTTP request Description
CertificatesApi CertificatesDelete Delete /certificatemanager/certificates/{certificateId} Delete a Certificate by ID
CertificatesApi CertificatesGet Get /certificatemanager/certificates Get Certificates
CertificatesApi CertificatesGetById Get /certificatemanager/certificates/{certificateId} Get a Certificate by ID
CertificatesApi CertificatesPatch Patch /certificatemanager/certificates/{certificateId} Update a Certificate Name by ID
CertificatesApi CertificatesPost Post /certificatemanager/certificates Add a New Certificate
InformationApi GetInfo Get /certificatemanager Get the Service API Information
InformationApi GetJsonOpenApiSpec Get /certificatemanager/openapi.json Get the Open API Documentation JSON
InformationApi GetYamlOpenApiSpec Get /certificatemanager/openapi.yaml Get the Open API Documentation YAML

Documentation For Models

All URIs are relative to https://api.ionos.com

API models list

[Back to API list] [Back to Model list]

Documentation

Index

Constants

View Source
const (
	RequestStatusQueued  = "QUEUED"
	RequestStatusRunning = "RUNNING"
	RequestStatusFailed  = "FAILED"
	RequestStatusDone    = "DONE"

	Version = "products/cert/v0.1.0"
)

Variables

This section is empty.

Functions

func AddPinnedCert

func AddPinnedCert(transport *http.Transport, pkFingerprint string)

AddPinnedCert - enables pinning of the sha256 public fingerprint to the http client's transport

func CacheExpires

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

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

Types

type APIClient

type APIClient struct {
	CertificatesApi *CertificatesApiService

	InformationApi *InformationApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Certificate Manager Service API API v1.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *shared.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() *shared.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 ApiCertificatesDeleteRequest

type ApiCertificatesDeleteRequest struct {
	ApiService *CertificatesApiService
	// contains filtered or unexported fields
}

func (ApiCertificatesDeleteRequest) Execute

type ApiCertificatesGetByIdRequest

type ApiCertificatesGetByIdRequest struct {
	ApiService *CertificatesApiService
	// contains filtered or unexported fields
}

func (ApiCertificatesGetByIdRequest) Execute

type ApiCertificatesGetRequest

type ApiCertificatesGetRequest struct {
	ApiService *CertificatesApiService
	// contains filtered or unexported fields
}

func (ApiCertificatesGetRequest) Execute

func (ApiCertificatesGetRequest) Limit

func (ApiCertificatesGetRequest) Offset

type ApiCertificatesPatchRequest

type ApiCertificatesPatchRequest struct {
	ApiService *CertificatesApiService
	// contains filtered or unexported fields
}

func (ApiCertificatesPatchRequest) CertificatePatchDto

func (r ApiCertificatesPatchRequest) CertificatePatchDto(certificatePatchDto CertificatePatchDto) ApiCertificatesPatchRequest

func (ApiCertificatesPatchRequest) Execute

type ApiCertificatesPostRequest

type ApiCertificatesPostRequest struct {
	ApiService *CertificatesApiService
	// contains filtered or unexported fields
}

func (ApiCertificatesPostRequest) CertificatePostDto

func (r ApiCertificatesPostRequest) CertificatePostDto(certificatePostDto CertificatePostDto) ApiCertificatesPostRequest

func (ApiCertificatesPostRequest) Execute

type ApiGetInfoRequest

type ApiGetInfoRequest struct {
	ApiService *InformationApiService
	// contains filtered or unexported fields
}

func (ApiGetInfoRequest) Execute

type ApiGetJsonOpenApiSpecRequest

type ApiGetJsonOpenApiSpecRequest struct {
	ApiService *InformationApiService
	// contains filtered or unexported fields
}

func (ApiGetJsonOpenApiSpecRequest) Execute

type ApiGetYamlOpenApiSpecRequest

type ApiGetYamlOpenApiSpecRequest struct {
	ApiService *InformationApiService
	// contains filtered or unexported fields
}

func (ApiGetYamlOpenApiSpecRequest) Execute

type ApiInfoDto

type ApiInfoDto struct {
	// The API entry point.
	Href *string `json:"href,omitempty"`
	// The API name.
	Name *string `json:"name,omitempty"`
	// The API version.
	Version *string `json:"version,omitempty"`
}

ApiInfoDto The information about the API.

func NewApiInfoDto

func NewApiInfoDto() *ApiInfoDto

NewApiInfoDto instantiates a new ApiInfoDto 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 NewApiInfoDtoWithDefaults

func NewApiInfoDtoWithDefaults() *ApiInfoDto

NewApiInfoDtoWithDefaults instantiates a new ApiInfoDto 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 (*ApiInfoDto) GetHref

func (o *ApiInfoDto) GetHref() *string

GetHref returns the Href field value If the value is explicit nil, the zero value for string will be returned

func (*ApiInfoDto) GetHrefOk

func (o *ApiInfoDto) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiInfoDto) GetName

func (o *ApiInfoDto) GetName() *string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*ApiInfoDto) GetNameOk

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

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiInfoDto) GetVersion

func (o *ApiInfoDto) GetVersion() *string

GetVersion returns the Version field value If the value is explicit nil, the zero value for string will be returned

func (*ApiInfoDto) GetVersionOk

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

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiInfoDto) HasHref

func (o *ApiInfoDto) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*ApiInfoDto) HasName

func (o *ApiInfoDto) HasName() bool

HasName returns a boolean if a field has been set.

func (*ApiInfoDto) HasVersion

func (o *ApiInfoDto) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (ApiInfoDto) MarshalJSON

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

func (*ApiInfoDto) SetHref

func (o *ApiInfoDto) SetHref(v string)

SetHref sets field value

func (*ApiInfoDto) SetName

func (o *ApiInfoDto) SetName(v string)

SetName sets field value

func (*ApiInfoDto) SetVersion

func (o *ApiInfoDto) SetVersion(v string)

SetVersion sets field value

type CertificateCollectionDto

type CertificateCollectionDto struct {
	// The resource ID.
	Id *string `json:"id,omitempty"`
	// The resource type.
	Type *string `json:"type,omitempty"`
	// The URL to the object representation (absolute path).
	Href *string `json:"href,omitempty"`
	// The list of certificates.
	Items *[]CertificateDto `json:"items,omitempty"`
	// The pagination offset.
	Offset *int32 `json:"offset,omitempty"`
	// The pagination limit.
	Limit *int32                         `json:"limit,omitempty"`
	Links *CertificateCollectionDtoLinks `json:"_links,omitempty"`
}

CertificateCollectionDto A collection of certificates.

func NewCertificateCollectionDto

func NewCertificateCollectionDto() *CertificateCollectionDto

NewCertificateCollectionDto instantiates a new CertificateCollectionDto 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 NewCertificateCollectionDtoWithDefaults

func NewCertificateCollectionDtoWithDefaults() *CertificateCollectionDto

NewCertificateCollectionDtoWithDefaults instantiates a new CertificateCollectionDto 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 (*CertificateCollectionDto) GetHref

func (o *CertificateCollectionDto) GetHref() *string

GetHref returns the Href field value If the value is explicit nil, the zero value for string will be returned

func (*CertificateCollectionDto) GetHrefOk

func (o *CertificateCollectionDto) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateCollectionDto) GetId

func (o *CertificateCollectionDto) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*CertificateCollectionDto) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateCollectionDto) GetItems

func (o *CertificateCollectionDto) GetItems() *[]CertificateDto

GetItems returns the Items field value If the value is explicit nil, the zero value for []CertificateDto will be returned

func (*CertificateCollectionDto) GetItemsOk

func (o *CertificateCollectionDto) GetItemsOk() (*[]CertificateDto, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateCollectionDto) GetLimit

func (o *CertificateCollectionDto) GetLimit() *int32

GetLimit returns the Limit field value If the value is explicit nil, the zero value for int32 will be returned

func (*CertificateCollectionDto) GetLimitOk

func (o *CertificateCollectionDto) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

GetLinks returns the Links field value If the value is explicit nil, the zero value for CertificateCollectionDtoLinks will be returned

func (*CertificateCollectionDto) GetLinksOk

GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateCollectionDto) GetOffset

func (o *CertificateCollectionDto) GetOffset() *int32

GetOffset returns the Offset field value If the value is explicit nil, the zero value for int32 will be returned

func (*CertificateCollectionDto) GetOffsetOk

func (o *CertificateCollectionDto) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateCollectionDto) GetType

func (o *CertificateCollectionDto) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

func (*CertificateCollectionDto) GetTypeOk

func (o *CertificateCollectionDto) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateCollectionDto) HasHref

func (o *CertificateCollectionDto) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*CertificateCollectionDto) HasId

func (o *CertificateCollectionDto) HasId() bool

HasId returns a boolean if a field has been set.

func (*CertificateCollectionDto) HasItems

func (o *CertificateCollectionDto) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*CertificateCollectionDto) HasLimit

func (o *CertificateCollectionDto) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *CertificateCollectionDto) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*CertificateCollectionDto) HasOffset

func (o *CertificateCollectionDto) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*CertificateCollectionDto) HasType

func (o *CertificateCollectionDto) HasType() bool

HasType returns a boolean if a field has been set.

func (CertificateCollectionDto) MarshalJSON

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

func (*CertificateCollectionDto) SetHref

func (o *CertificateCollectionDto) SetHref(v string)

SetHref sets field value

func (*CertificateCollectionDto) SetId

func (o *CertificateCollectionDto) SetId(v string)

SetId sets field value

func (*CertificateCollectionDto) SetItems

func (o *CertificateCollectionDto) SetItems(v []CertificateDto)

SetItems sets field value

func (*CertificateCollectionDto) SetLimit

func (o *CertificateCollectionDto) SetLimit(v int32)

SetLimit sets field value

SetLinks sets field value

func (*CertificateCollectionDto) SetOffset

func (o *CertificateCollectionDto) SetOffset(v int32)

SetOffset sets field value

func (*CertificateCollectionDto) SetType

func (o *CertificateCollectionDto) SetType(v string)

SetType sets field value

type CertificateCollectionDtoLinks struct {
	// The previous page.
	Prev *string `json:"prev,omitempty"`
	// The current page.
	Self *string `json:"self,omitempty"`
	// The next page.
	Next *string `json:"next,omitempty"`
}

CertificateCollectionDtoLinks struct for CertificateCollectionDtoLinks

func NewCertificateCollectionDtoLinks() *CertificateCollectionDtoLinks

NewCertificateCollectionDtoLinks instantiates a new CertificateCollectionDtoLinks 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 NewCertificateCollectionDtoLinksWithDefaults

func NewCertificateCollectionDtoLinksWithDefaults() *CertificateCollectionDtoLinks

NewCertificateCollectionDtoLinksWithDefaults instantiates a new CertificateCollectionDtoLinks 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 (*CertificateCollectionDtoLinks) GetNext

func (o *CertificateCollectionDtoLinks) GetNext() *string

GetNext returns the Next field value If the value is explicit nil, the zero value for string will be returned

func (*CertificateCollectionDtoLinks) GetNextOk

func (o *CertificateCollectionDtoLinks) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateCollectionDtoLinks) GetPrev

func (o *CertificateCollectionDtoLinks) GetPrev() *string

GetPrev returns the Prev field value If the value is explicit nil, the zero value for string will be returned

func (*CertificateCollectionDtoLinks) GetPrevOk

func (o *CertificateCollectionDtoLinks) GetPrevOk() (*string, bool)

GetPrevOk returns a tuple with the Prev field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateCollectionDtoLinks) GetSelf

func (o *CertificateCollectionDtoLinks) GetSelf() *string

GetSelf returns the Self field value If the value is explicit nil, the zero value for string will be returned

func (*CertificateCollectionDtoLinks) GetSelfOk

func (o *CertificateCollectionDtoLinks) GetSelfOk() (*string, bool)

GetSelfOk returns a tuple with the Self field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateCollectionDtoLinks) HasNext

func (o *CertificateCollectionDtoLinks) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*CertificateCollectionDtoLinks) HasPrev

func (o *CertificateCollectionDtoLinks) HasPrev() bool

HasPrev returns a boolean if a field has been set.

func (*CertificateCollectionDtoLinks) HasSelf

func (o *CertificateCollectionDtoLinks) HasSelf() bool

HasSelf returns a boolean if a field has been set.

func (CertificateCollectionDtoLinks) MarshalJSON

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

func (*CertificateCollectionDtoLinks) SetNext

func (o *CertificateCollectionDtoLinks) SetNext(v string)

SetNext sets field value

func (*CertificateCollectionDtoLinks) SetPrev

func (o *CertificateCollectionDtoLinks) SetPrev(v string)

SetPrev sets field value

func (*CertificateCollectionDtoLinks) SetSelf

func (o *CertificateCollectionDtoLinks) SetSelf(v string)

SetSelf sets field value

type CertificateDto

type CertificateDto struct {
	// The certificate ID.
	Id *string `json:"id,omitempty"`
	// The resource type.
	Type *string `json:"type,omitempty"`
	// The URL to the object representation (absolute path).
	Href       *string                   `json:"href,omitempty"`
	Metadata   *ResourceMetadataDto      `json:"metadata,omitempty"`
	Properties *CertificatePropertiesDto `json:"properties,omitempty"`
}

CertificateDto The certificate information.

func NewCertificateDto

func NewCertificateDto() *CertificateDto

NewCertificateDto instantiates a new CertificateDto 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 NewCertificateDtoWithDefaults

func NewCertificateDtoWithDefaults() *CertificateDto

NewCertificateDtoWithDefaults instantiates a new CertificateDto 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 (*CertificateDto) GetHref

func (o *CertificateDto) GetHref() *string

GetHref returns the Href field value If the value is explicit nil, the zero value for string will be returned

func (*CertificateDto) GetHrefOk

func (o *CertificateDto) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateDto) GetId

func (o *CertificateDto) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*CertificateDto) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateDto) GetMetadata

func (o *CertificateDto) GetMetadata() *ResourceMetadataDto

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for ResourceMetadataDto will be returned

func (*CertificateDto) GetMetadataOk

func (o *CertificateDto) GetMetadataOk() (*ResourceMetadataDto, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateDto) GetProperties

func (o *CertificateDto) GetProperties() *CertificatePropertiesDto

GetProperties returns the Properties field value If the value is explicit nil, the zero value for CertificatePropertiesDto will be returned

func (*CertificateDto) GetPropertiesOk

func (o *CertificateDto) GetPropertiesOk() (*CertificatePropertiesDto, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateDto) GetType

func (o *CertificateDto) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

func (*CertificateDto) GetTypeOk

func (o *CertificateDto) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificateDto) HasHref

func (o *CertificateDto) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*CertificateDto) HasId

func (o *CertificateDto) HasId() bool

HasId returns a boolean if a field has been set.

func (*CertificateDto) HasMetadata

func (o *CertificateDto) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*CertificateDto) HasProperties

func (o *CertificateDto) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*CertificateDto) HasType

func (o *CertificateDto) HasType() bool

HasType returns a boolean if a field has been set.

func (CertificateDto) MarshalJSON

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

func (*CertificateDto) SetHref

func (o *CertificateDto) SetHref(v string)

SetHref sets field value

func (*CertificateDto) SetId

func (o *CertificateDto) SetId(v string)

SetId sets field value

func (*CertificateDto) SetMetadata

func (o *CertificateDto) SetMetadata(v ResourceMetadataDto)

SetMetadata sets field value

func (*CertificateDto) SetProperties

func (o *CertificateDto) SetProperties(v CertificatePropertiesDto)

SetProperties sets field value

func (*CertificateDto) SetType

func (o *CertificateDto) SetType(v string)

SetType sets field value

type CertificatePatchDto

type CertificatePatchDto struct {
	Properties *CertificatePatchPropertiesDto `json:"properties"`
}

CertificatePatchDto Used to patch a certificate's name.

func NewCertificatePatchDto

func NewCertificatePatchDto(properties CertificatePatchPropertiesDto) *CertificatePatchDto

NewCertificatePatchDto instantiates a new CertificatePatchDto 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 NewCertificatePatchDtoWithDefaults

func NewCertificatePatchDtoWithDefaults() *CertificatePatchDto

NewCertificatePatchDtoWithDefaults instantiates a new CertificatePatchDto 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 (*CertificatePatchDto) GetProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for CertificatePatchPropertiesDto will be returned

func (*CertificatePatchDto) GetPropertiesOk

func (o *CertificatePatchDto) GetPropertiesOk() (*CertificatePatchPropertiesDto, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePatchDto) HasProperties

func (o *CertificatePatchDto) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (CertificatePatchDto) MarshalJSON

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

func (*CertificatePatchDto) SetProperties

SetProperties sets field value

type CertificatePatchPropertiesDto

type CertificatePatchPropertiesDto struct {
	// The certificate name.
	Name *string `json:"name"`
}

CertificatePatchPropertiesDto struct for CertificatePatchPropertiesDto

func NewCertificatePatchPropertiesDto

func NewCertificatePatchPropertiesDto(name string) *CertificatePatchPropertiesDto

NewCertificatePatchPropertiesDto instantiates a new CertificatePatchPropertiesDto 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 NewCertificatePatchPropertiesDtoWithDefaults

func NewCertificatePatchPropertiesDtoWithDefaults() *CertificatePatchPropertiesDto

NewCertificatePatchPropertiesDtoWithDefaults instantiates a new CertificatePatchPropertiesDto 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 (*CertificatePatchPropertiesDto) GetName

func (o *CertificatePatchPropertiesDto) GetName() *string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*CertificatePatchPropertiesDto) GetNameOk

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

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePatchPropertiesDto) HasName

func (o *CertificatePatchPropertiesDto) HasName() bool

HasName returns a boolean if a field has been set.

func (CertificatePatchPropertiesDto) MarshalJSON

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

func (*CertificatePatchPropertiesDto) SetName

func (o *CertificatePatchPropertiesDto) SetName(v string)

SetName sets field value

type CertificatePostDto

type CertificatePostDto struct {
	Properties *CertificatePostPropertiesDto `json:"properties"`
}

CertificatePostDto Used to create a new certificate.

func NewCertificatePostDto

func NewCertificatePostDto(properties CertificatePostPropertiesDto) *CertificatePostDto

NewCertificatePostDto instantiates a new CertificatePostDto 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 NewCertificatePostDtoWithDefaults

func NewCertificatePostDtoWithDefaults() *CertificatePostDto

NewCertificatePostDtoWithDefaults instantiates a new CertificatePostDto 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 (*CertificatePostDto) GetProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for CertificatePostPropertiesDto will be returned

func (*CertificatePostDto) GetPropertiesOk

func (o *CertificatePostDto) GetPropertiesOk() (*CertificatePostPropertiesDto, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePostDto) HasProperties

func (o *CertificatePostDto) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (CertificatePostDto) MarshalJSON

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

func (*CertificatePostDto) SetProperties

SetProperties sets field value

type CertificatePostPropertiesDto

type CertificatePostPropertiesDto struct {
	// The certificate name.
	Name *string `json:"name"`
	// The certificate body.
	Certificate *string `json:"certificate"`
	// The certificate chain.
	CertificateChain *string `json:"certificateChain"`
	// The RSA private key is used for authentication and symmetric key exchange when establishing an SSL session. It is a part of the public key infrastructure generally used with SSL certificates.
	PrivateKey *string `json:"privateKey"`
}

CertificatePostPropertiesDto struct for CertificatePostPropertiesDto

func NewCertificatePostPropertiesDto

func NewCertificatePostPropertiesDto(name string, certificate string, certificateChain string, privateKey string) *CertificatePostPropertiesDto

NewCertificatePostPropertiesDto instantiates a new CertificatePostPropertiesDto 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 NewCertificatePostPropertiesDtoWithDefaults

func NewCertificatePostPropertiesDtoWithDefaults() *CertificatePostPropertiesDto

NewCertificatePostPropertiesDtoWithDefaults instantiates a new CertificatePostPropertiesDto 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 (*CertificatePostPropertiesDto) GetCertificate

func (o *CertificatePostPropertiesDto) GetCertificate() *string

GetCertificate returns the Certificate field value If the value is explicit nil, the zero value for string will be returned

func (*CertificatePostPropertiesDto) GetCertificateChain

func (o *CertificatePostPropertiesDto) GetCertificateChain() *string

GetCertificateChain returns the CertificateChain field value If the value is explicit nil, the zero value for string will be returned

func (*CertificatePostPropertiesDto) GetCertificateChainOk

func (o *CertificatePostPropertiesDto) GetCertificateChainOk() (*string, bool)

GetCertificateChainOk returns a tuple with the CertificateChain field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePostPropertiesDto) GetCertificateOk

func (o *CertificatePostPropertiesDto) GetCertificateOk() (*string, bool)

GetCertificateOk returns a tuple with the Certificate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePostPropertiesDto) GetName

func (o *CertificatePostPropertiesDto) GetName() *string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*CertificatePostPropertiesDto) GetNameOk

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

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePostPropertiesDto) GetPrivateKey

func (o *CertificatePostPropertiesDto) GetPrivateKey() *string

GetPrivateKey returns the PrivateKey field value If the value is explicit nil, the zero value for string will be returned

func (*CertificatePostPropertiesDto) GetPrivateKeyOk

func (o *CertificatePostPropertiesDto) GetPrivateKeyOk() (*string, bool)

GetPrivateKeyOk returns a tuple with the PrivateKey field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePostPropertiesDto) HasCertificate

func (o *CertificatePostPropertiesDto) HasCertificate() bool

HasCertificate returns a boolean if a field has been set.

func (*CertificatePostPropertiesDto) HasCertificateChain

func (o *CertificatePostPropertiesDto) HasCertificateChain() bool

HasCertificateChain returns a boolean if a field has been set.

func (*CertificatePostPropertiesDto) HasName

func (o *CertificatePostPropertiesDto) HasName() bool

HasName returns a boolean if a field has been set.

func (*CertificatePostPropertiesDto) HasPrivateKey

func (o *CertificatePostPropertiesDto) HasPrivateKey() bool

HasPrivateKey returns a boolean if a field has been set.

func (CertificatePostPropertiesDto) MarshalJSON

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

func (*CertificatePostPropertiesDto) SetCertificate

func (o *CertificatePostPropertiesDto) SetCertificate(v string)

SetCertificate sets field value

func (*CertificatePostPropertiesDto) SetCertificateChain

func (o *CertificatePostPropertiesDto) SetCertificateChain(v string)

SetCertificateChain sets field value

func (*CertificatePostPropertiesDto) SetName

func (o *CertificatePostPropertiesDto) SetName(v string)

SetName sets field value

func (*CertificatePostPropertiesDto) SetPrivateKey

func (o *CertificatePostPropertiesDto) SetPrivateKey(v string)

SetPrivateKey sets field value

type CertificatePropertiesDto

type CertificatePropertiesDto struct {
	// The certificate name.
	Name *string `json:"name,omitempty"`
	// The certificate body.
	Certificate *string `json:"certificate,omitempty"`
	// Optional. The certificate chain.
	CertificateChain *string `json:"certificateChain,omitempty"`
}

CertificatePropertiesDto struct for CertificatePropertiesDto

func NewCertificatePropertiesDto

func NewCertificatePropertiesDto() *CertificatePropertiesDto

NewCertificatePropertiesDto instantiates a new CertificatePropertiesDto 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 NewCertificatePropertiesDtoWithDefaults

func NewCertificatePropertiesDtoWithDefaults() *CertificatePropertiesDto

NewCertificatePropertiesDtoWithDefaults instantiates a new CertificatePropertiesDto 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 (*CertificatePropertiesDto) GetCertificate

func (o *CertificatePropertiesDto) GetCertificate() *string

GetCertificate returns the Certificate field value If the value is explicit nil, the zero value for string will be returned

func (*CertificatePropertiesDto) GetCertificateChain

func (o *CertificatePropertiesDto) GetCertificateChain() *string

GetCertificateChain returns the CertificateChain field value If the value is explicit nil, the zero value for string will be returned

func (*CertificatePropertiesDto) GetCertificateChainOk

func (o *CertificatePropertiesDto) GetCertificateChainOk() (*string, bool)

GetCertificateChainOk returns a tuple with the CertificateChain field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePropertiesDto) GetCertificateOk

func (o *CertificatePropertiesDto) GetCertificateOk() (*string, bool)

GetCertificateOk returns a tuple with the Certificate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePropertiesDto) GetName

func (o *CertificatePropertiesDto) GetName() *string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*CertificatePropertiesDto) GetNameOk

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

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CertificatePropertiesDto) HasCertificate

func (o *CertificatePropertiesDto) HasCertificate() bool

HasCertificate returns a boolean if a field has been set.

func (*CertificatePropertiesDto) HasCertificateChain

func (o *CertificatePropertiesDto) HasCertificateChain() bool

HasCertificateChain returns a boolean if a field has been set.

func (*CertificatePropertiesDto) HasName

func (o *CertificatePropertiesDto) HasName() bool

HasName returns a boolean if a field has been set.

func (CertificatePropertiesDto) MarshalJSON

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

func (*CertificatePropertiesDto) SetCertificate

func (o *CertificatePropertiesDto) SetCertificate(v string)

SetCertificate sets field value

func (*CertificatePropertiesDto) SetCertificateChain

func (o *CertificatePropertiesDto) SetCertificateChain(v string)

SetCertificateChain sets field value

func (*CertificatePropertiesDto) SetName

func (o *CertificatePropertiesDto) SetName(v string)

SetName sets field value

type CertificatesApiService

type CertificatesApiService service

CertificatesApiService CertificatesApi service

func (*CertificatesApiService) CertificatesDelete

func (a *CertificatesApiService) CertificatesDelete(ctx _context.Context, certificateId string) ApiCertificatesDeleteRequest

* CertificatesDelete Delete a Certificate by ID * Deletes a certificate specified by its ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param certificateId * @return ApiCertificatesDeleteRequest

func (*CertificatesApiService) CertificatesDeleteExecute

func (a *CertificatesApiService) CertificatesDeleteExecute(r ApiCertificatesDeleteRequest) (*shared.APIResponse, error)

* Execute executes the request

func (*CertificatesApiService) CertificatesGet

* CertificatesGet Get Certificates * Retrieves all available certificates. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiCertificatesGetRequest

func (*CertificatesApiService) CertificatesGetById

func (a *CertificatesApiService) CertificatesGetById(ctx _context.Context, certificateId string) ApiCertificatesGetByIdRequest

* CertificatesGetById Get a Certificate by ID * Retrieves a certificate specified by its ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param certificateId * @return ApiCertificatesGetByIdRequest

func (*CertificatesApiService) CertificatesGetByIdExecute

* Execute executes the request * @return CertificateDto

func (*CertificatesApiService) CertificatesGetExecute

* Execute executes the request * @return CertificateCollectionDto

func (*CertificatesApiService) CertificatesPatch

func (a *CertificatesApiService) CertificatesPatch(ctx _context.Context, certificateId string) ApiCertificatesPatchRequest

* CertificatesPatch Update a Certificate Name by ID * Updates the name of the specified certificate. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param certificateId * @return ApiCertificatesPatchRequest

func (*CertificatesApiService) CertificatesPatchExecute

* Execute executes the request * @return CertificateDto

func (*CertificatesApiService) CertificatesPost

* CertificatesPost Add a New Certificate * Adds a new PEM (Privacy Enhanced Mail) file that is used to store SSL certificates and their associated private keys. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiCertificatesPostRequest

func (*CertificatesApiService) CertificatesPostExecute

* Execute executes the request * @return CertificateDto

type ConfigPropertyDto

type ConfigPropertyDto struct {
	// The property id.
	Id *string `json:"id,omitempty"`
	// The property name.
	Name *string `json:"name"`
	// The property value.
	Value *string `json:"value"`
	// The property description.
	Description *string `json:"description"`
}

ConfigPropertyDto struct for ConfigPropertyDto

func NewConfigPropertyDto

func NewConfigPropertyDto(name string, value string, description string) *ConfigPropertyDto

NewConfigPropertyDto instantiates a new ConfigPropertyDto 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 NewConfigPropertyDtoWithDefaults

func NewConfigPropertyDtoWithDefaults() *ConfigPropertyDto

NewConfigPropertyDtoWithDefaults instantiates a new ConfigPropertyDto 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 (*ConfigPropertyDto) GetDescription

func (o *ConfigPropertyDto) GetDescription() *string

GetDescription returns the Description field value If the value is explicit nil, the zero value for string will be returned

func (*ConfigPropertyDto) GetDescriptionOk

func (o *ConfigPropertyDto) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ConfigPropertyDto) GetId

func (o *ConfigPropertyDto) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*ConfigPropertyDto) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ConfigPropertyDto) GetName

func (o *ConfigPropertyDto) GetName() *string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*ConfigPropertyDto) GetNameOk

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

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ConfigPropertyDto) GetValue

func (o *ConfigPropertyDto) GetValue() *string

GetValue returns the Value field value If the value is explicit nil, the zero value for string will be returned

func (*ConfigPropertyDto) GetValueOk

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

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ConfigPropertyDto) HasDescription

func (o *ConfigPropertyDto) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*ConfigPropertyDto) HasId

func (o *ConfigPropertyDto) HasId() bool

HasId returns a boolean if a field has been set.

func (*ConfigPropertyDto) HasName

func (o *ConfigPropertyDto) HasName() bool

HasName returns a boolean if a field has been set.

func (*ConfigPropertyDto) HasValue

func (o *ConfigPropertyDto) HasValue() bool

HasValue returns a boolean if a field has been set.

func (ConfigPropertyDto) MarshalJSON

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

func (*ConfigPropertyDto) SetDescription

func (o *ConfigPropertyDto) SetDescription(v string)

SetDescription sets field value

func (*ConfigPropertyDto) SetId

func (o *ConfigPropertyDto) SetId(v string)

SetId sets field value

func (*ConfigPropertyDto) SetName

func (o *ConfigPropertyDto) SetName(v string)

SetName sets field value

func (*ConfigPropertyDto) SetValue

func (o *ConfigPropertyDto) SetValue(v string)

SetValue sets field value

type InformationApiService

type InformationApiService service

InformationApiService InformationApi service

func (*InformationApiService) GetInfo

* GetInfo Get the Service API Information * Retrieves the service API information. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiGetInfoRequest

func (*InformationApiService) GetInfoExecute

* Execute executes the request * @return ApiInfoDto

func (*InformationApiService) GetJsonOpenApiSpec

* GetJsonOpenApiSpec Get the Open API Documentation JSON * Displays the Open API documentation in the JSON format. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiGetJsonOpenApiSpecRequest

func (*InformationApiService) GetJsonOpenApiSpecExecute

func (a *InformationApiService) GetJsonOpenApiSpecExecute(r ApiGetJsonOpenApiSpecRequest) (*os.File, *shared.APIResponse, error)

* Execute executes the request * @return *os.File

func (*InformationApiService) GetYamlOpenApiSpec

* GetYamlOpenApiSpec Get the Open API Documentation YAML * Displays the Open API documentation in the YAML format. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiGetYamlOpenApiSpecRequest

func (*InformationApiService) GetYamlOpenApiSpecExecute

func (a *InformationApiService) GetYamlOpenApiSpecExecute(r ApiGetYamlOpenApiSpecRequest) (*os.File, *shared.APIResponse, error)

* Execute executes the request * @return *os.File

type IonosTime

type IonosTime struct {
	time.Time
}

func (*IonosTime) UnmarshalJSON

func (t *IonosTime) UnmarshalJSON(data []byte) error

type NullableApiInfoDto

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

func NewNullableApiInfoDto

func NewNullableApiInfoDto(val *ApiInfoDto) *NullableApiInfoDto

func (NullableApiInfoDto) Get

func (v NullableApiInfoDto) Get() *ApiInfoDto

func (NullableApiInfoDto) IsSet

func (v NullableApiInfoDto) IsSet() bool

func (NullableApiInfoDto) MarshalJSON

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

func (*NullableApiInfoDto) Set

func (v *NullableApiInfoDto) Set(val *ApiInfoDto)

func (*NullableApiInfoDto) UnmarshalJSON

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

func (*NullableApiInfoDto) Unset

func (v *NullableApiInfoDto) Unset()

type NullableCertificateCollectionDto

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

func (NullableCertificateCollectionDto) Get

func (NullableCertificateCollectionDto) IsSet

func (NullableCertificateCollectionDto) MarshalJSON

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

func (*NullableCertificateCollectionDto) Set

func (*NullableCertificateCollectionDto) UnmarshalJSON

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

func (*NullableCertificateCollectionDto) Unset

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

func (NullableCertificateCollectionDtoLinks) Get

func (NullableCertificateCollectionDtoLinks) IsSet

func (NullableCertificateCollectionDtoLinks) MarshalJSON

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

func (*NullableCertificateCollectionDtoLinks) Set

func (*NullableCertificateCollectionDtoLinks) UnmarshalJSON

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

func (*NullableCertificateCollectionDtoLinks) Unset

type NullableCertificateDto

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

func NewNullableCertificateDto

func NewNullableCertificateDto(val *CertificateDto) *NullableCertificateDto

func (NullableCertificateDto) Get

func (NullableCertificateDto) IsSet

func (v NullableCertificateDto) IsSet() bool

func (NullableCertificateDto) MarshalJSON

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

func (*NullableCertificateDto) Set

func (*NullableCertificateDto) UnmarshalJSON

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

func (*NullableCertificateDto) Unset

func (v *NullableCertificateDto) Unset()

type NullableCertificatePatchDto

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

func NewNullableCertificatePatchDto

func NewNullableCertificatePatchDto(val *CertificatePatchDto) *NullableCertificatePatchDto

func (NullableCertificatePatchDto) Get

func (NullableCertificatePatchDto) IsSet

func (NullableCertificatePatchDto) MarshalJSON

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

func (*NullableCertificatePatchDto) Set

func (*NullableCertificatePatchDto) UnmarshalJSON

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

func (*NullableCertificatePatchDto) Unset

func (v *NullableCertificatePatchDto) Unset()

type NullableCertificatePatchPropertiesDto

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

func (NullableCertificatePatchPropertiesDto) Get

func (NullableCertificatePatchPropertiesDto) IsSet

func (NullableCertificatePatchPropertiesDto) MarshalJSON

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

func (*NullableCertificatePatchPropertiesDto) Set

func (*NullableCertificatePatchPropertiesDto) UnmarshalJSON

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

func (*NullableCertificatePatchPropertiesDto) Unset

type NullableCertificatePostDto

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

func NewNullableCertificatePostDto

func NewNullableCertificatePostDto(val *CertificatePostDto) *NullableCertificatePostDto

func (NullableCertificatePostDto) Get

func (NullableCertificatePostDto) IsSet

func (v NullableCertificatePostDto) IsSet() bool

func (NullableCertificatePostDto) MarshalJSON

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

func (*NullableCertificatePostDto) Set

func (*NullableCertificatePostDto) UnmarshalJSON

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

func (*NullableCertificatePostDto) Unset

func (v *NullableCertificatePostDto) Unset()

type NullableCertificatePostPropertiesDto

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

func (NullableCertificatePostPropertiesDto) Get

func (NullableCertificatePostPropertiesDto) IsSet

func (NullableCertificatePostPropertiesDto) MarshalJSON

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

func (*NullableCertificatePostPropertiesDto) Set

func (*NullableCertificatePostPropertiesDto) UnmarshalJSON

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

func (*NullableCertificatePostPropertiesDto) Unset

type NullableCertificatePropertiesDto

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

func (NullableCertificatePropertiesDto) Get

func (NullableCertificatePropertiesDto) IsSet

func (NullableCertificatePropertiesDto) MarshalJSON

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

func (*NullableCertificatePropertiesDto) Set

func (*NullableCertificatePropertiesDto) UnmarshalJSON

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

func (*NullableCertificatePropertiesDto) Unset

type NullableConfigPropertyDto

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

func NewNullableConfigPropertyDto

func NewNullableConfigPropertyDto(val *ConfigPropertyDto) *NullableConfigPropertyDto

func (NullableConfigPropertyDto) Get

func (NullableConfigPropertyDto) IsSet

func (v NullableConfigPropertyDto) IsSet() bool

func (NullableConfigPropertyDto) MarshalJSON

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

func (*NullableConfigPropertyDto) Set

func (*NullableConfigPropertyDto) UnmarshalJSON

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

func (*NullableConfigPropertyDto) Unset

func (v *NullableConfigPropertyDto) Unset()

type NullableResourceMetadataDto

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

func NewNullableResourceMetadataDto

func NewNullableResourceMetadataDto(val *ResourceMetadataDto) *NullableResourceMetadataDto

func (NullableResourceMetadataDto) Get

func (NullableResourceMetadataDto) IsSet

func (NullableResourceMetadataDto) MarshalJSON

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

func (*NullableResourceMetadataDto) Set

func (*NullableResourceMetadataDto) UnmarshalJSON

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

func (*NullableResourceMetadataDto) Unset

func (v *NullableResourceMetadataDto) Unset()

type ResourceMetadataDto

type ResourceMetadataDto struct {
	// The entity tag of the resource, as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11. The entity tag is also added as an 'ETag' response header to requests that do not use the 'depth' parameter.
	Etag *string `json:"etag,omitempty"`
	// The date the resource was created.
	CreatedDate *string `json:"createdDate,omitempty"`
	// The user who created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// The ID of the user who created the resource.
	CreatedByUserId *string `json:"createdByUserId,omitempty"`
	// The date when the resource was last modified.
	LastModifiedDate *string `json:"lastModifiedDate,omitempty"`
	// The user who last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// The ID of the user who last modified the resource.
	LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"`
	// The resource state.
	State *string `json:"state,omitempty"`
}

ResourceMetadataDto The metadata of the resource.

func NewResourceMetadataDto

func NewResourceMetadataDto() *ResourceMetadataDto

NewResourceMetadataDto instantiates a new ResourceMetadataDto 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 NewResourceMetadataDtoWithDefaults

func NewResourceMetadataDtoWithDefaults() *ResourceMetadataDto

NewResourceMetadataDtoWithDefaults instantiates a new ResourceMetadataDto 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 (*ResourceMetadataDto) GetCreatedBy

func (o *ResourceMetadataDto) GetCreatedBy() *string

GetCreatedBy returns the CreatedBy field value If the value is explicit nil, the zero value for string will be returned

func (*ResourceMetadataDto) GetCreatedByOk

func (o *ResourceMetadataDto) GetCreatedByOk() (*string, bool)

GetCreatedByOk returns a tuple with the CreatedBy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceMetadataDto) GetCreatedByUserId

func (o *ResourceMetadataDto) GetCreatedByUserId() *string

GetCreatedByUserId returns the CreatedByUserId field value If the value is explicit nil, the zero value for string will be returned

func (*ResourceMetadataDto) GetCreatedByUserIdOk

func (o *ResourceMetadataDto) GetCreatedByUserIdOk() (*string, bool)

GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceMetadataDto) GetCreatedDate

func (o *ResourceMetadataDto) GetCreatedDate() *string

GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for string will be returned

func (*ResourceMetadataDto) GetCreatedDateOk

func (o *ResourceMetadataDto) GetCreatedDateOk() (*string, bool)

GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceMetadataDto) GetEtag

func (o *ResourceMetadataDto) GetEtag() *string

GetEtag returns the Etag field value If the value is explicit nil, the zero value for string will be returned

func (*ResourceMetadataDto) GetEtagOk

func (o *ResourceMetadataDto) GetEtagOk() (*string, bool)

GetEtagOk returns a tuple with the Etag field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceMetadataDto) GetLastModifiedBy

func (o *ResourceMetadataDto) GetLastModifiedBy() *string

GetLastModifiedBy returns the LastModifiedBy field value If the value is explicit nil, the zero value for string will be returned

func (*ResourceMetadataDto) GetLastModifiedByOk

func (o *ResourceMetadataDto) GetLastModifiedByOk() (*string, bool)

GetLastModifiedByOk returns a tuple with the LastModifiedBy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceMetadataDto) GetLastModifiedByUserId

func (o *ResourceMetadataDto) GetLastModifiedByUserId() *string

GetLastModifiedByUserId returns the LastModifiedByUserId field value If the value is explicit nil, the zero value for string will be returned

func (*ResourceMetadataDto) GetLastModifiedByUserIdOk

func (o *ResourceMetadataDto) GetLastModifiedByUserIdOk() (*string, bool)

GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceMetadataDto) GetLastModifiedDate

func (o *ResourceMetadataDto) GetLastModifiedDate() *string

GetLastModifiedDate returns the LastModifiedDate field value If the value is explicit nil, the zero value for string will be returned

func (*ResourceMetadataDto) GetLastModifiedDateOk

func (o *ResourceMetadataDto) GetLastModifiedDateOk() (*string, bool)

GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceMetadataDto) GetState

func (o *ResourceMetadataDto) GetState() *string

GetState returns the State field value If the value is explicit nil, the zero value for string will be returned

func (*ResourceMetadataDto) GetStateOk

func (o *ResourceMetadataDto) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceMetadataDto) HasCreatedBy

func (o *ResourceMetadataDto) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*ResourceMetadataDto) HasCreatedByUserId

func (o *ResourceMetadataDto) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*ResourceMetadataDto) HasCreatedDate

func (o *ResourceMetadataDto) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*ResourceMetadataDto) HasEtag

func (o *ResourceMetadataDto) HasEtag() bool

HasEtag returns a boolean if a field has been set.

func (*ResourceMetadataDto) HasLastModifiedBy

func (o *ResourceMetadataDto) HasLastModifiedBy() bool

HasLastModifiedBy returns a boolean if a field has been set.

func (*ResourceMetadataDto) HasLastModifiedByUserId

func (o *ResourceMetadataDto) HasLastModifiedByUserId() bool

HasLastModifiedByUserId returns a boolean if a field has been set.

func (*ResourceMetadataDto) HasLastModifiedDate

func (o *ResourceMetadataDto) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*ResourceMetadataDto) HasState

func (o *ResourceMetadataDto) HasState() bool

HasState returns a boolean if a field has been set.

func (ResourceMetadataDto) MarshalJSON

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

func (*ResourceMetadataDto) SetCreatedBy

func (o *ResourceMetadataDto) SetCreatedBy(v string)

SetCreatedBy sets field value

func (*ResourceMetadataDto) SetCreatedByUserId

func (o *ResourceMetadataDto) SetCreatedByUserId(v string)

SetCreatedByUserId sets field value

func (*ResourceMetadataDto) SetCreatedDate

func (o *ResourceMetadataDto) SetCreatedDate(v string)

SetCreatedDate sets field value

func (*ResourceMetadataDto) SetEtag

func (o *ResourceMetadataDto) SetEtag(v string)

SetEtag sets field value

func (*ResourceMetadataDto) SetLastModifiedBy

func (o *ResourceMetadataDto) SetLastModifiedBy(v string)

SetLastModifiedBy sets field value

func (*ResourceMetadataDto) SetLastModifiedByUserId

func (o *ResourceMetadataDto) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId sets field value

func (*ResourceMetadataDto) SetLastModifiedDate

func (o *ResourceMetadataDto) SetLastModifiedDate(v string)

SetLastModifiedDate sets field value

func (*ResourceMetadataDto) SetState

func (o *ResourceMetadataDto) SetState(v string)

SetState sets field value

type TLSDial

type TLSDial func(ctx context.Context, network, addr string) (net.Conn, error)

TLSDial can be assigned to a http.Transport's DialTLS field.

Jump to

Keyboard shortcuts

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