controlplanesconfig

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteCoreEntitiesRequest

func NewDeleteCoreEntitiesRequest(server string, entityEndpoint string) (*http.Request, error)

NewDeleteCoreEntitiesRequest generates requests for DeleteCoreEntities

func NewDeleteDpClientCertificatesCertIdRequest

func NewDeleteDpClientCertificatesCertIdRequest(server string, certificateId string) (*http.Request, error)

NewDeleteDpClientCertificatesCertIdRequest generates requests for DeleteDpClientCertificatesCertId

func NewDeleteNodesNodeIdRequest

func NewDeleteNodesNodeIdRequest(server string, nodeId string) (*http.Request, error)

NewDeleteNodesNodeIdRequest generates requests for DeleteNodesNodeId

func NewGetCoreEntitiesRequest

func NewGetCoreEntitiesRequest(server string, entityEndpoint string) (*http.Request, error)

NewGetCoreEntitiesRequest generates requests for GetCoreEntities

func NewGetDpClientCertificatesCertIdRequest

func NewGetDpClientCertificatesCertIdRequest(server string, certificateId string) (*http.Request, error)

NewGetDpClientCertificatesCertIdRequest generates requests for GetDpClientCertificatesCertId

func NewGetDpClientCertificatesRequest

func NewGetDpClientCertificatesRequest(server string, params *GetDpClientCertificatesParams) (*http.Request, error)

NewGetDpClientCertificatesRequest generates requests for GetDpClientCertificates

func NewGetExpectedConfigHashRequest

func NewGetExpectedConfigHashRequest(server string) (*http.Request, error)

NewGetExpectedConfigHashRequest generates requests for GetExpectedConfigHash

func NewGetNodesNodeIdRequest

func NewGetNodesNodeIdRequest(server string, nodeId string) (*http.Request, error)

NewGetNodesNodeIdRequest generates requests for GetNodesNodeId

func NewGetNodesRequest

func NewGetNodesRequest(server string, params *GetNodesParams) (*http.Request, error)

NewGetNodesRequest generates requests for GetNodes

func NewPostCoreEntitiesRequest

func NewPostCoreEntitiesRequest(server string, entityEndpoint string) (*http.Request, error)

NewPostCoreEntitiesRequest generates requests for PostCoreEntities

func NewPostDpClientCertificatesRequest

func NewPostDpClientCertificatesRequest(server string, body PostDpClientCertificatesJSONRequestBody) (*http.Request, error)

NewPostDpClientCertificatesRequest calls the generic PostDpClientCertificates builder with application/json body

func NewPostDpClientCertificatesRequestWithBody

func NewPostDpClientCertificatesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostDpClientCertificatesRequestWithBody generates requests for PostDpClientCertificates with any type of body

func NewPutCoreEntitiesRequest

func NewPutCoreEntitiesRequest(server string, entityEndpoint string) (*http.Request, error)

NewPutCoreEntitiesRequest generates requests for PutCoreEntities

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) DeleteCoreEntities

func (c *Client) DeleteCoreEntities(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteDpClientCertificatesCertId

func (c *Client) DeleteDpClientCertificatesCertId(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteNodesNodeId

func (c *Client) DeleteNodesNodeId(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCoreEntities

func (c *Client) GetCoreEntities(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDpClientCertificates

func (c *Client) GetDpClientCertificates(ctx context.Context, params *GetDpClientCertificatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDpClientCertificatesCertId

func (c *Client) GetDpClientCertificatesCertId(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExpectedConfigHash

func (c *Client) GetExpectedConfigHash(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetNodes

func (c *Client) GetNodes(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetNodesNodeId

func (c *Client) GetNodesNodeId(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostCoreEntities

func (c *Client) PostCoreEntities(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostDpClientCertificates

func (c *Client) PostDpClientCertificates(ctx context.Context, body PostDpClientCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostDpClientCertificatesWithBody

func (c *Client) PostDpClientCertificatesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutCoreEntities

func (c *Client) PutCoreEntities(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// DeleteCoreEntities request
	DeleteCoreEntities(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCoreEntities request
	GetCoreEntities(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostCoreEntities request
	PostCoreEntities(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutCoreEntities request
	PutCoreEntities(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDpClientCertificates request
	GetDpClientCertificates(ctx context.Context, params *GetDpClientCertificatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostDpClientCertificates request with any body
	PostDpClientCertificatesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostDpClientCertificates(ctx context.Context, body PostDpClientCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDpClientCertificatesCertId request
	DeleteDpClientCertificatesCertId(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDpClientCertificatesCertId request
	GetDpClientCertificatesCertId(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExpectedConfigHash request
	GetExpectedConfigHash(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNodes request
	GetNodes(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteNodesNodeId request
	DeleteNodesNodeId(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNodesNodeId request
	GetNodesNodeId(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) DeleteCoreEntitiesWithResponse

func (c *ClientWithResponses) DeleteCoreEntitiesWithResponse(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*DeleteCoreEntitiesHTTPResponse, error)

DeleteCoreEntitiesWithResponse request returning *DeleteCoreEntitiesHTTPResponse

func (*ClientWithResponses) DeleteDpClientCertificatesCertIdWithResponse

func (c *ClientWithResponses) DeleteDpClientCertificatesCertIdWithResponse(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*DeleteDpClientCertificatesCertIdHTTPResponse, error)

DeleteDpClientCertificatesCertIdWithResponse request returning *DeleteDpClientCertificatesCertIdHTTPResponse

func (*ClientWithResponses) DeleteNodesNodeIdWithResponse

func (c *ClientWithResponses) DeleteNodesNodeIdWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*DeleteNodesNodeIdHTTPResponse, error)

DeleteNodesNodeIdWithResponse request returning *DeleteNodesNodeIdHTTPResponse

func (*ClientWithResponses) GetCoreEntitiesWithResponse

func (c *ClientWithResponses) GetCoreEntitiesWithResponse(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*GetCoreEntitiesHTTPResponse, error)

GetCoreEntitiesWithResponse request returning *GetCoreEntitiesHTTPResponse

func (*ClientWithResponses) GetDpClientCertificatesCertIdWithResponse

func (c *ClientWithResponses) GetDpClientCertificatesCertIdWithResponse(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*GetDpClientCertificatesCertIdHTTPResponse, error)

GetDpClientCertificatesCertIdWithResponse request returning *GetDpClientCertificatesCertIdHTTPResponse

func (*ClientWithResponses) GetDpClientCertificatesWithResponse

func (c *ClientWithResponses) GetDpClientCertificatesWithResponse(ctx context.Context, params *GetDpClientCertificatesParams, reqEditors ...RequestEditorFn) (*GetDpClientCertificatesHTTPResponse, error)

GetDpClientCertificatesWithResponse request returning *GetDpClientCertificatesHTTPResponse

func (*ClientWithResponses) GetExpectedConfigHashWithResponse

func (c *ClientWithResponses) GetExpectedConfigHashWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetExpectedConfigHashHTTPResponse, error)

GetExpectedConfigHashWithResponse request returning *GetExpectedConfigHashHTTPResponse

func (*ClientWithResponses) GetNodesNodeIdWithResponse

func (c *ClientWithResponses) GetNodesNodeIdWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*GetNodesNodeIdHTTPResponse, error)

GetNodesNodeIdWithResponse request returning *GetNodesNodeIdHTTPResponse

func (*ClientWithResponses) GetNodesWithResponse

func (c *ClientWithResponses) GetNodesWithResponse(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*GetNodesHTTPResponse, error)

GetNodesWithResponse request returning *GetNodesHTTPResponse

func (*ClientWithResponses) PostCoreEntitiesWithResponse

func (c *ClientWithResponses) PostCoreEntitiesWithResponse(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*PostCoreEntitiesHTTPResponse, error)

PostCoreEntitiesWithResponse request returning *PostCoreEntitiesHTTPResponse

func (*ClientWithResponses) PostDpClientCertificatesWithBodyWithResponse

func (c *ClientWithResponses) PostDpClientCertificatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDpClientCertificatesHTTPResponse, error)

PostDpClientCertificatesWithBodyWithResponse request with arbitrary body returning *PostDpClientCertificatesHTTPResponse

func (*ClientWithResponses) PostDpClientCertificatesWithResponse

func (*ClientWithResponses) PutCoreEntitiesWithResponse

func (c *ClientWithResponses) PutCoreEntitiesWithResponse(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*PutCoreEntitiesHTTPResponse, error)

PutCoreEntitiesWithResponse request returning *PutCoreEntitiesHTTPResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// DeleteCoreEntities request
	DeleteCoreEntitiesWithResponse(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*DeleteCoreEntitiesHTTPResponse, error)

	// GetCoreEntities request
	GetCoreEntitiesWithResponse(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*GetCoreEntitiesHTTPResponse, error)

	// PostCoreEntities request
	PostCoreEntitiesWithResponse(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*PostCoreEntitiesHTTPResponse, error)

	// PutCoreEntities request
	PutCoreEntitiesWithResponse(ctx context.Context, entityEndpoint string, reqEditors ...RequestEditorFn) (*PutCoreEntitiesHTTPResponse, error)

	// GetDpClientCertificates request
	GetDpClientCertificatesWithResponse(ctx context.Context, params *GetDpClientCertificatesParams, reqEditors ...RequestEditorFn) (*GetDpClientCertificatesHTTPResponse, error)

	// PostDpClientCertificates request with any body
	PostDpClientCertificatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDpClientCertificatesHTTPResponse, error)

	PostDpClientCertificatesWithResponse(ctx context.Context, body PostDpClientCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostDpClientCertificatesHTTPResponse, error)

	// DeleteDpClientCertificatesCertId request
	DeleteDpClientCertificatesCertIdWithResponse(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*DeleteDpClientCertificatesCertIdHTTPResponse, error)

	// GetDpClientCertificatesCertId request
	GetDpClientCertificatesCertIdWithResponse(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*GetDpClientCertificatesCertIdHTTPResponse, error)

	// GetExpectedConfigHash request
	GetExpectedConfigHashWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetExpectedConfigHashHTTPResponse, error)

	// GetNodes request
	GetNodesWithResponse(ctx context.Context, params *GetNodesParams, reqEditors ...RequestEditorFn) (*GetNodesHTTPResponse, error)

	// DeleteNodesNodeId request
	DeleteNodesNodeIdWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*DeleteNodesNodeIdHTTPResponse, error)

	// GetNodesNodeId request
	GetNodesNodeIdWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*GetNodesNodeIdHTTPResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateDpClientCert

type CreateDpClientCert struct {
	// Cert JSON escaped string of the certificate.
	Cert string `json:"cert"`
}

CreateDpClientCert defines model for create-dp-client-cert.

type DeleteCoreEntitiesHTTPResponse

type DeleteCoreEntitiesHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteCoreEntitiesHTTPResponse

func ParseDeleteCoreEntitiesHTTPResponse(rsp *http.Response) (*DeleteCoreEntitiesHTTPResponse, error)

ParseDeleteCoreEntitiesHTTPResponse parses an HTTP response from a DeleteCoreEntitiesWithResponse call

func (DeleteCoreEntitiesHTTPResponse) Status

Status returns HTTPResponse.Status

func (DeleteCoreEntitiesHTTPResponse) StatusCode

func (r DeleteCoreEntitiesHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDpClientCertificatesCertIdHTTPResponse

type DeleteDpClientCertificatesCertIdHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteDpClientCertificatesCertIdHTTPResponse

func ParseDeleteDpClientCertificatesCertIdHTTPResponse(rsp *http.Response) (*DeleteDpClientCertificatesCertIdHTTPResponse, error)

ParseDeleteDpClientCertificatesCertIdHTTPResponse parses an HTTP response from a DeleteDpClientCertificatesCertIdWithResponse call

func (DeleteDpClientCertificatesCertIdHTTPResponse) Status

Status returns HTTPResponse.Status

func (DeleteDpClientCertificatesCertIdHTTPResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteNodesNodeIdHTTPResponse

type DeleteNodesNodeIdHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteNodesNodeIdHTTPResponse

func ParseDeleteNodesNodeIdHTTPResponse(rsp *http.Response) (*DeleteNodesNodeIdHTTPResponse, error)

ParseDeleteNodesNodeIdHTTPResponse parses an HTTP response from a DeleteNodesNodeIdWithResponse call

func (DeleteNodesNodeIdHTTPResponse) Status

Status returns HTTPResponse.Status

func (DeleteNodesNodeIdHTTPResponse) StatusCode

func (r DeleteNodesNodeIdHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCoreEntitiesHTTPResponse

type GetCoreEntitiesHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetCoreEntitiesHTTPResponse

func ParseGetCoreEntitiesHTTPResponse(rsp *http.Response) (*GetCoreEntitiesHTTPResponse, error)

ParseGetCoreEntitiesHTTPResponse parses an HTTP response from a GetCoreEntitiesWithResponse call

func (GetCoreEntitiesHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetCoreEntitiesHTTPResponse) StatusCode

func (r GetCoreEntitiesHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDpClientCert

type GetDpClientCert struct {
	Item *struct {
		// Cert JSON escaped string of the certificate.
		Cert *string `json:"cert,omitempty"`

		// CreatedAt Date certificate was created.
		CreatedAt *int `json:"created_at,omitempty"`

		// Id Unique ID of the certificate entity.
		Id *string `json:"id,omitempty"`

		// UpdatedAt Date certificate was last updated.
		UpdatedAt *int `json:"updated_at,omitempty"`
	} `json:"item,omitempty"`
}

GetDpClientCert defines model for get-dp-client-cert.

type GetDpClientCertificatesCertIdHTTPResponse

type GetDpClientCertificatesCertIdHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item *struct {
			// Cert JSON escaped string of the certificate.
			Cert *string `json:"cert,omitempty"`

			// CreatedAt Date certificate was created.
			CreatedAt *int `json:"created_at,omitempty"`

			// Id Unique ID of the certificate entity.
			Id *string `json:"id,omitempty"`

			// UpdatedAt Date certificate was last updated.
			UpdatedAt *int `json:"updated_at,omitempty"`
		} `json:"item,omitempty"`
	}
}

func ParseGetDpClientCertificatesCertIdHTTPResponse

func ParseGetDpClientCertificatesCertIdHTTPResponse(rsp *http.Response) (*GetDpClientCertificatesCertIdHTTPResponse, error)

ParseGetDpClientCertificatesCertIdHTTPResponse parses an HTTP response from a GetDpClientCertificatesCertIdWithResponse call

func (GetDpClientCertificatesCertIdHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetDpClientCertificatesCertIdHTTPResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetDpClientCertificatesHTTPResponse

type GetDpClientCertificatesHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Items *[]struct {
			// Cert JSON escaped string of the certificate.
			Cert *string `json:"cert,omitempty"`

			// CreatedAt Date certificate was created.
			CreatedAt *int `json:"created_at,omitempty"`

			// Id Unique ID of the certificate entity.
			Id *string `json:"id,omitempty"`

			// UpdatedAt Date certificate was last updated.
			UpdatedAt *int `json:"updated_at,omitempty"`
		} `json:"items,omitempty"`
		Page *struct {
			TotalCount *int `json:"total_count,omitempty"`
		} `json:"page,omitempty"`
	}
}

func ParseGetDpClientCertificatesHTTPResponse

func ParseGetDpClientCertificatesHTTPResponse(rsp *http.Response) (*GetDpClientCertificatesHTTPResponse, error)

ParseGetDpClientCertificatesHTTPResponse parses an HTTP response from a GetDpClientCertificatesWithResponse call

func (GetDpClientCertificatesHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetDpClientCertificatesHTTPResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetDpClientCertificatesParams

type GetDpClientCertificatesParams struct {
	// PageSize The number of items to include in a page.
	PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"`

	// PageNumber The specific page number in the collection results.
	PageNumber *PageNumber `form:"page_number,omitempty" json:"page_number,omitempty"`
}

GetDpClientCertificatesParams defines parameters for GetDpClientCertificates.

type GetExpectedConfigHash

type GetExpectedConfigHash struct {
	// CreatedAt Date the control plane configuration was created.
	CreatedAt *int `json:"created_at,omitempty"`

	// ExpectedHash The expected configuration hash.
	ExpectedHash *string `json:"expected_hash,omitempty"`

	// UpdatedAt Date the control plane configuration was last updated.
	UpdatedAt *int `json:"updated_at,omitempty"`
}

GetExpectedConfigHash defines model for get-expected-config-hash.

type GetExpectedConfigHashHTTPResponse

type GetExpectedConfigHashHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// CreatedAt Date the control plane configuration was created.
		CreatedAt *int `json:"created_at,omitempty"`

		// ExpectedHash The expected configuration hash.
		ExpectedHash *string `json:"expected_hash,omitempty"`

		// UpdatedAt Date the control plane configuration was last updated.
		UpdatedAt *int `json:"updated_at,omitempty"`
	}
}

func ParseGetExpectedConfigHashHTTPResponse

func ParseGetExpectedConfigHashHTTPResponse(rsp *http.Response) (*GetExpectedConfigHashHTTPResponse, error)

ParseGetExpectedConfigHashHTTPResponse parses an HTTP response from a GetExpectedConfigHashWithResponse call

func (GetExpectedConfigHashHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetExpectedConfigHashHTTPResponse) StatusCode

func (r GetExpectedConfigHashHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNode

type GetNode struct {
	Item *struct {
		CompatibilityStatus *struct {
			State *string `json:"state,omitempty"`
		} `json:"compatibility_status,omitempty"`
		ConfigHash *string `json:"config_hash,omitempty"`
		CreatedAt  *int    `json:"created_at,omitempty"`
		Hostname   *string `json:"hostname,omitempty"`
		Id         *string `json:"id,omitempty"`
		LastPing   *int    `json:"last_ping,omitempty"`
		Type       *string `json:"type,omitempty"`
		UpdatedAt  *int    `json:"updated_at,omitempty"`
		Version    *string `json:"version,omitempty"`
	} `json:"item,omitempty"`
}

GetNode defines model for get-node.

type GetNodesHTTPResponse

type GetNodesHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Items *[]struct {
			CompatibilityStatus *struct {
				State *string `json:"state,omitempty"`
			} `json:"compatibility_status,omitempty"`
			ConfigHash *string `json:"config_hash,omitempty"`
			CreatedAt  *int    `json:"created_at,omitempty"`
			Hostname   *string `json:"hostname,omitempty"`
			Id         *string `json:"id,omitempty"`
			LastPing   *int    `json:"last_ping,omitempty"`
			Type       *string `json:"type,omitempty"`
			UpdatedAt  *int    `json:"updated_at,omitempty"`
			Version    *string `json:"version,omitempty"`
		} `json:"items,omitempty"`
		Page *struct {
			TotalCount *int `json:"total_count,omitempty"`
		} `json:"page,omitempty"`
	}
}

func ParseGetNodesHTTPResponse

func ParseGetNodesHTTPResponse(rsp *http.Response) (*GetNodesHTTPResponse, error)

ParseGetNodesHTTPResponse parses an HTTP response from a GetNodesWithResponse call

func (GetNodesHTTPResponse) Status

func (r GetNodesHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (GetNodesHTTPResponse) StatusCode

func (r GetNodesHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNodesNodeIdHTTPResponse

type GetNodesNodeIdHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item *struct {
			CompatibilityStatus *struct {
				State *string `json:"state,omitempty"`
			} `json:"compatibility_status,omitempty"`
			ConfigHash *string `json:"config_hash,omitempty"`
			CreatedAt  *int    `json:"created_at,omitempty"`
			Hostname   *string `json:"hostname,omitempty"`
			Id         *string `json:"id,omitempty"`
			LastPing   *int    `json:"last_ping,omitempty"`
			Type       *string `json:"type,omitempty"`
			UpdatedAt  *int    `json:"updated_at,omitempty"`
			Version    *string `json:"version,omitempty"`
		} `json:"item,omitempty"`
	}
}

func ParseGetNodesNodeIdHTTPResponse

func ParseGetNodesNodeIdHTTPResponse(rsp *http.Response) (*GetNodesNodeIdHTTPResponse, error)

ParseGetNodesNodeIdHTTPResponse parses an HTTP response from a GetNodesNodeIdWithResponse call

func (GetNodesNodeIdHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetNodesNodeIdHTTPResponse) StatusCode

func (r GetNodesNodeIdHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNodesParams

type GetNodesParams struct {
	// PageSize The number of items to include in a page.
	PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"`

	// PageNumber The specific page number in the collection results.
	PageNumber *PageNumber `form:"page_number,omitempty" json:"page_number,omitempty"`
}

GetNodesParams defines parameters for GetNodes.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListDpClientCerts

type ListDpClientCerts struct {
	Items *[]struct {
		// Cert JSON escaped string of the certificate.
		Cert *string `json:"cert,omitempty"`

		// CreatedAt Date certificate was created.
		CreatedAt *int `json:"created_at,omitempty"`

		// Id Unique ID of the certificate entity.
		Id *string `json:"id,omitempty"`

		// UpdatedAt Date certificate was last updated.
		UpdatedAt *int `json:"updated_at,omitempty"`
	} `json:"items,omitempty"`
	Page *struct {
		TotalCount *int `json:"total_count,omitempty"`
	} `json:"page,omitempty"`
}

ListDpClientCerts defines model for list-dp-client-certs.

type ListNodes

type ListNodes struct {
	Items *[]struct {
		CompatibilityStatus *struct {
			State *string `json:"state,omitempty"`
		} `json:"compatibility_status,omitempty"`
		ConfigHash *string `json:"config_hash,omitempty"`
		CreatedAt  *int    `json:"created_at,omitempty"`
		Hostname   *string `json:"hostname,omitempty"`
		Id         *string `json:"id,omitempty"`
		LastPing   *int    `json:"last_ping,omitempty"`
		Type       *string `json:"type,omitempty"`
		UpdatedAt  *int    `json:"updated_at,omitempty"`
		Version    *string `json:"version,omitempty"`
	} `json:"items,omitempty"`
	Page *struct {
		TotalCount *int `json:"total_count,omitempty"`
	} `json:"page,omitempty"`
}

ListNodes defines model for list-nodes.

type PageNumber

type PageNumber = int

PageNumber defines model for page_number.

type PageSize

type PageSize = int

PageSize defines model for page_size.

type PostCoreEntitiesHTTPResponse

type PostCoreEntitiesHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostCoreEntitiesHTTPResponse

func ParsePostCoreEntitiesHTTPResponse(rsp *http.Response) (*PostCoreEntitiesHTTPResponse, error)

ParsePostCoreEntitiesHTTPResponse parses an HTTP response from a PostCoreEntitiesWithResponse call

func (PostCoreEntitiesHTTPResponse) Status

Status returns HTTPResponse.Status

func (PostCoreEntitiesHTTPResponse) StatusCode

func (r PostCoreEntitiesHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostDpClientCertificatesHTTPResponse

type PostDpClientCertificatesHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Item *struct {
			// Cert JSON escaped string of the certificate.
			Cert *string `json:"cert,omitempty"`

			// CreatedAt Date certificate was created.
			CreatedAt *int `json:"created_at,omitempty"`

			// Id Unique ID of the certificate entity.
			Id *string `json:"id,omitempty"`

			// UpdatedAt Date certificate was last updated.
			UpdatedAt *int `json:"updated_at,omitempty"`
		} `json:"item,omitempty"`
	}
}

func ParsePostDpClientCertificatesHTTPResponse

func ParsePostDpClientCertificatesHTTPResponse(rsp *http.Response) (*PostDpClientCertificatesHTTPResponse, error)

ParsePostDpClientCertificatesHTTPResponse parses an HTTP response from a PostDpClientCertificatesWithResponse call

func (PostDpClientCertificatesHTTPResponse) Status

Status returns HTTPResponse.Status

func (PostDpClientCertificatesHTTPResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostDpClientCertificatesJSONBody

type PostDpClientCertificatesJSONBody struct {
	// Cert JSON escaped string of the certificate.
	Cert string `json:"cert"`
}

PostDpClientCertificatesJSONBody defines parameters for PostDpClientCertificates.

type PostDpClientCertificatesJSONRequestBody

type PostDpClientCertificatesJSONRequestBody PostDpClientCertificatesJSONBody

PostDpClientCertificatesJSONRequestBody defines body for PostDpClientCertificates for application/json ContentType.

type PutCoreEntitiesHTTPResponse

type PutCoreEntitiesHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePutCoreEntitiesHTTPResponse

func ParsePutCoreEntitiesHTTPResponse(rsp *http.Response) (*PutCoreEntitiesHTTPResponse, error)

ParsePutCoreEntitiesHTTPResponse parses an HTTP response from a PutCoreEntitiesWithResponse call

func (PutCoreEntitiesHTTPResponse) Status

Status returns HTTPResponse.Status

func (PutCoreEntitiesHTTPResponse) StatusCode

func (r PutCoreEntitiesHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

Jump to

Keyboard shortcuts

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