mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2026-10-12 02:11:26 +00:00
36873 lines
1.2 MiB
Plaintext
36873 lines
1.2 MiB
Plaintext
// Package cosmossdk provides primitives to interact with the openapi HTTP API.
|
|
//
|
|
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
|
|
package cosmossdk
|
|
|
|
import (
|
|
"bytes"
|
|
"compress/flate"
|
|
"context"
|
|
"encoding/base64"
|
|
"encoding/json"
|
|
"fmt"
|
|
"io"
|
|
"net/http"
|
|
"net/url"
|
|
"path"
|
|
"strings"
|
|
|
|
"github.com/getkin/kin-openapi/openapi3"
|
|
"github.com/oapi-codegen/runtime"
|
|
openapi_types "github.com/oapi-codegen/runtime/types"
|
|
)
|
|
|
|
// Defines values for MountConsistency.
|
|
const (
|
|
ConsistencyCached MountConsistency = "cached"
|
|
ConsistencyDefault MountConsistency = "default"
|
|
ConsistencyDelegated MountConsistency = "delegated"
|
|
ConsistencyFull MountConsistency = "consistent"
|
|
)
|
|
|
|
// Valid indicates whether the value is a known member of the MountConsistency enum.
|
|
func (e MountConsistency) Valid() bool {
|
|
switch e {
|
|
case ConsistencyCached:
|
|
return true
|
|
case ConsistencyDefault:
|
|
return true
|
|
case ConsistencyDelegated:
|
|
return true
|
|
case ConsistencyFull:
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|
|
|
|
// Defines values for MountPropagation.
|
|
const (
|
|
PropagationPrivate MountPropagation = "private"
|
|
PropagationRPrivate MountPropagation = "rprivate"
|
|
PropagationRShared MountPropagation = "rshared"
|
|
PropagationRSlave MountPropagation = "rslave"
|
|
PropagationShared MountPropagation = "shared"
|
|
PropagationSlave MountPropagation = "slave"
|
|
)
|
|
|
|
// Valid indicates whether the value is a known member of the MountPropagation enum.
|
|
func (e MountPropagation) Valid() bool {
|
|
switch e {
|
|
case PropagationPrivate:
|
|
return true
|
|
case PropagationRPrivate:
|
|
return true
|
|
case PropagationRShared:
|
|
return true
|
|
case PropagationRSlave:
|
|
return true
|
|
case PropagationShared:
|
|
return true
|
|
case PropagationSlave:
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|
|
|
|
// Defines values for MountType.
|
|
const (
|
|
TypeBind MountType = "bind"
|
|
TypeCluster MountType = "cluster"
|
|
TypeNamedPipe MountType = "npipe"
|
|
TypeTmpfs MountType = "tmpfs"
|
|
TypeVolume MountType = "volume"
|
|
)
|
|
|
|
// Valid indicates whether the value is a known member of the MountType enum.
|
|
func (e MountType) Valid() bool {
|
|
switch e {
|
|
case TypeBind:
|
|
return true
|
|
case TypeCluster:
|
|
return true
|
|
case TypeNamedPipe:
|
|
return true
|
|
case TypeTmpfs:
|
|
return true
|
|
case TypeVolume:
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|
|
|
|
// Defines values for ProDeploymentStrategy.
|
|
const (
|
|
LeastBusy ProDeploymentStrategy = "least-busy"
|
|
RoundRobin ProDeploymentStrategy = "round-robin"
|
|
)
|
|
|
|
// Valid indicates whether the value is a known member of the ProDeploymentStrategy enum.
|
|
func (e ProDeploymentStrategy) Valid() bool {
|
|
switch e {
|
|
case LeastBusy:
|
|
return true
|
|
case RoundRobin:
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|
|
|
|
// Defines values for UtilsPermission.
|
|
const (
|
|
PERMADMIN UtilsPermission = 2
|
|
PERMADMINREAD UtilsPermission = 1
|
|
PERMCONFIGURATION UtilsPermission = 31
|
|
PERMCONFIGURATIONREAD UtilsPermission = 30
|
|
PERMCREDENTIALSREAD UtilsPermission = 40
|
|
PERMLOGIN UtilsPermission = 100
|
|
PERMLOGINWEAK UtilsPermission = 101
|
|
PERMRESOURCES UtilsPermission = 21
|
|
PERMRESOURCESREAD UtilsPermission = 20
|
|
PERMUSERS UtilsPermission = 11
|
|
PERMUSERSREAD UtilsPermission = 10
|
|
)
|
|
|
|
// Valid indicates whether the value is a known member of the UtilsPermission enum.
|
|
func (e UtilsPermission) Valid() bool {
|
|
switch e {
|
|
case PERMADMIN:
|
|
return true
|
|
case PERMADMINREAD:
|
|
return true
|
|
case PERMCONFIGURATION:
|
|
return true
|
|
case PERMCONFIGURATIONREAD:
|
|
return true
|
|
case PERMCREDENTIALSREAD:
|
|
return true
|
|
case PERMLOGIN:
|
|
return true
|
|
case PERMLOGINWEAK:
|
|
return true
|
|
case PERMRESOURCES:
|
|
return true
|
|
case PERMRESOURCESREAD:
|
|
return true
|
|
case PERMUSERS:
|
|
return true
|
|
case PERMUSERSREAD:
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|
|
|
|
// Defines values for GetApiServappsContainerIdManageActionParamsAction.
|
|
const (
|
|
Kill GetApiServappsContainerIdManageActionParamsAction = "kill"
|
|
Pause GetApiServappsContainerIdManageActionParamsAction = "pause"
|
|
Recreate GetApiServappsContainerIdManageActionParamsAction = "recreate"
|
|
Remove GetApiServappsContainerIdManageActionParamsAction = "remove"
|
|
Restart GetApiServappsContainerIdManageActionParamsAction = "restart"
|
|
Start GetApiServappsContainerIdManageActionParamsAction = "start"
|
|
Stop GetApiServappsContainerIdManageActionParamsAction = "stop"
|
|
Unpause GetApiServappsContainerIdManageActionParamsAction = "unpause"
|
|
Update GetApiServappsContainerIdManageActionParamsAction = "update"
|
|
)
|
|
|
|
// Valid indicates whether the value is a known member of the GetApiServappsContainerIdManageActionParamsAction enum.
|
|
func (e GetApiServappsContainerIdManageActionParamsAction) Valid() bool {
|
|
switch e {
|
|
case Kill:
|
|
return true
|
|
case Pause:
|
|
return true
|
|
case Recreate:
|
|
return true
|
|
case Remove:
|
|
return true
|
|
case Restart:
|
|
return true
|
|
case Start:
|
|
return true
|
|
case Stop:
|
|
return true
|
|
case Unpause:
|
|
return true
|
|
case Update:
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|
|
|
|
// Defines values for GetApiSnapraidNameActionParamsAction.
|
|
const (
|
|
Disable GetApiSnapraidNameActionParamsAction = "disable"
|
|
Enable GetApiSnapraidNameActionParamsAction = "enable"
|
|
Fix GetApiSnapraidNameActionParamsAction = "fix"
|
|
Scrub GetApiSnapraidNameActionParamsAction = "scrub"
|
|
Sync GetApiSnapraidNameActionParamsAction = "sync"
|
|
)
|
|
|
|
// Valid indicates whether the value is a known member of the GetApiSnapraidNameActionParamsAction enum.
|
|
func (e GetApiSnapraidNameActionParamsAction) Valid() bool {
|
|
switch e {
|
|
case Disable:
|
|
return true
|
|
case Enable:
|
|
return true
|
|
case Fix:
|
|
return true
|
|
case Scrub:
|
|
return true
|
|
case Sync:
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|
|
|
|
// ConfigapiCreateAPITokenRequest defines model for configapi.CreateAPITokenRequest.
|
|
type ConfigapiCreateAPITokenRequest struct {
|
|
Description *string `json:"description,omitempty"`
|
|
ExpiryDays *int `json:"expiryDays,omitempty"`
|
|
IpWhitelist *[]string `json:"ipWhitelist,omitempty"`
|
|
Name string `json:"name"`
|
|
Permissions *[]UtilsPermission `json:"permissions,omitempty"`
|
|
ReadOnly *bool `json:"readOnly,omitempty"`
|
|
RestrictToConstellation *bool `json:"restrictToConstellation,omitempty"`
|
|
}
|
|
|
|
// ConfigapiDNSConfigRequest defines model for configapi.DNSConfigRequest.
|
|
type ConfigapiDNSConfigRequest struct {
|
|
CustomDNSEntries *[]UtilsConstellationDNSEntry `json:"customDNSEntries,omitempty"`
|
|
DnsAdditionalBlocklists *[]string `json:"dnsAdditionalBlocklists,omitempty"`
|
|
DnsBlockBlacklist *bool `json:"dnsBlockBlacklist,omitempty"`
|
|
DnsFallback *string `json:"dnsFallback,omitempty"`
|
|
DnsPort *string `json:"dnsPort,omitempty"`
|
|
}
|
|
|
|
// ConfigapiDashboardRoute defines model for configapi.DashboardRoute.
|
|
type ConfigapiDashboardRoute struct {
|
|
ContainerIcon *string `json:"ContainerIcon,omitempty"`
|
|
|
|
// ContainerRunning Container info (for SERVAPP routes)
|
|
ContainerRunning *bool `json:"ContainerRunning,omitempty"`
|
|
Description *string `json:"Description,omitempty"`
|
|
HideFromDashboard *bool `json:"HideFromDashboard,omitempty"`
|
|
Host *string `json:"Host,omitempty"`
|
|
Icon *string `json:"Icon,omitempty"`
|
|
Mode *string `json:"Mode,omitempty"`
|
|
Name *string `json:"Name,omitempty"`
|
|
PathPrefix *string `json:"PathPrefix,omitempty"`
|
|
Target *string `json:"Target,omitempty"`
|
|
UseHost *bool `json:"UseHost,omitempty"`
|
|
UsePathPrefix *bool `json:"UsePathPrefix,omitempty"`
|
|
}
|
|
|
|
// ConfigapiDeleteAPITokenRequest defines model for configapi.DeleteAPITokenRequest.
|
|
type ConfigapiDeleteAPITokenRequest struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// ConfigapiUpdateAPITokenRequest defines model for configapi.UpdateAPITokenRequest.
|
|
type ConfigapiUpdateAPITokenRequest struct {
|
|
Description *string `json:"description,omitempty"`
|
|
IpWhitelist *[]string `json:"ipWhitelist,omitempty"`
|
|
Permissions *[]UtilsPermission `json:"permissions,omitempty"`
|
|
RestrictToConstellation *bool `json:"restrictToConstellation,omitempty"`
|
|
}
|
|
|
|
// ConfigapiUpdateRouteRequest defines model for configapi.UpdateRouteRequest.
|
|
type ConfigapiUpdateRouteRequest struct {
|
|
NewRoute *UtilsProxyRouteConfig `json:"newRoute,omitempty"`
|
|
Operation string `json:"operation"`
|
|
RouteName *string `json:"routeName,omitempty"`
|
|
}
|
|
|
|
// ConstellationDeviceBlockRequestJSON defines model for constellation.DeviceBlockRequestJSON.
|
|
type ConstellationDeviceBlockRequestJSON struct {
|
|
Block *bool `json:"block,omitempty"`
|
|
DeviceName string `json:"deviceName"`
|
|
Nickname string `json:"nickname"`
|
|
}
|
|
|
|
// ConstellationDeviceCreateRequestJSON defines model for constellation.DeviceCreateRequestJSON.
|
|
type ConstellationDeviceCreateRequestJSON struct {
|
|
PublicHostname *string `json:"PublicHostname,omitempty"`
|
|
CosmosNode *int `json:"cosmosNode,omitempty"`
|
|
DeviceName string `json:"deviceName"`
|
|
Invisible *bool `json:"invisible,omitempty"`
|
|
Ip string `json:"ip"`
|
|
IsExitNode *bool `json:"isExitNode,omitempty"`
|
|
|
|
// IsLighthouse for lighthouse only
|
|
IsLighthouse *bool `json:"isLighthouse,omitempty"`
|
|
IsLoadBalancer *bool `json:"isLoadBalancer,omitempty"`
|
|
IsRelay *bool `json:"isRelay,omitempty"`
|
|
|
|
// Nickname for devices only
|
|
Nickname *string `json:"nickname,omitempty"`
|
|
Port *string `json:"port,omitempty"`
|
|
}
|
|
|
|
// ConstellationDeviceEditRequestJSON defines model for constellation.DeviceEditRequestJSON.
|
|
type ConstellationDeviceEditRequestJSON struct {
|
|
IsExitNode *bool `json:"isExitNode,omitempty"`
|
|
IsLighthouse *bool `json:"isLighthouse,omitempty"`
|
|
IsLoadBalancer *bool `json:"isLoadBalancer,omitempty"`
|
|
IsRelay *bool `json:"isRelay,omitempty"`
|
|
Tags *[]string `json:"tags,omitempty"`
|
|
}
|
|
|
|
// ContainerConfig defines model for container.Config.
|
|
type ContainerConfig struct {
|
|
// ArgsEscaped True if command is already escaped (meaning treat as a command line) (Windows specific).
|
|
ArgsEscaped *bool `json:"argsEscaped,omitempty"`
|
|
|
|
// AttachStderr Attach the standard error
|
|
AttachStderr *bool `json:"attachStderr,omitempty"`
|
|
|
|
// AttachStdin Attach the standard input, makes possible user interaction
|
|
AttachStdin *bool `json:"attachStdin,omitempty"`
|
|
|
|
// AttachStdout Attach the standard output
|
|
AttachStdout *bool `json:"attachStdout,omitempty"`
|
|
|
|
// Cmd Command to run when starting the container
|
|
Cmd *[]string `json:"cmd,omitempty"`
|
|
|
|
// Domainname Domainname
|
|
Domainname *string `json:"domainname,omitempty"`
|
|
|
|
// Entrypoint Entrypoint to run when starting the container
|
|
Entrypoint *[]string `json:"entrypoint,omitempty"`
|
|
|
|
// Env List of environment variable to set in the container
|
|
Env *[]string `json:"env,omitempty"`
|
|
|
|
// ExposedPorts List of exposed ports
|
|
ExposedPorts *NatPortSet `json:"exposedPorts,omitempty"`
|
|
|
|
// Healthcheck Healthcheck describes how to check the container is healthy
|
|
Healthcheck *ContainerHealthConfig `json:"healthcheck,omitempty"`
|
|
|
|
// Hostname Hostname
|
|
Hostname *string `json:"hostname,omitempty"`
|
|
|
|
// Image Name of the image as it was passed by the operator (e.g. could be symbolic)
|
|
Image *string `json:"image,omitempty"`
|
|
|
|
// Labels List of labels set to this container
|
|
Labels *map[string]string `json:"labels,omitempty"`
|
|
|
|
// MacAddress Mac Address of the container.
|
|
//
|
|
// Deprecated: this field is deprecated since API v1.44. Use EndpointSettings.MacAddress instead.
|
|
MacAddress *string `json:"macAddress,omitempty"`
|
|
|
|
// NetworkDisabled Is network disabled
|
|
NetworkDisabled *bool `json:"networkDisabled,omitempty"`
|
|
|
|
// OnBuild ONBUILD metadata that were defined on the image Dockerfile
|
|
OnBuild *[]string `json:"onBuild,omitempty"`
|
|
|
|
// OpenStdin Open stdin
|
|
OpenStdin *bool `json:"openStdin,omitempty"`
|
|
|
|
// Shell Shell for shell-form of RUN, CMD, ENTRYPOINT
|
|
Shell *[]string `json:"shell,omitempty"`
|
|
|
|
// StdinOnce If true, close stdin after the 1 attached client disconnects.
|
|
StdinOnce *bool `json:"stdinOnce,omitempty"`
|
|
|
|
// StopSignal Signal to stop a container
|
|
StopSignal *string `json:"stopSignal,omitempty"`
|
|
|
|
// StopTimeout Timeout (in seconds) to stop a container
|
|
StopTimeout *int `json:"stopTimeout,omitempty"`
|
|
|
|
// Tty Attach standard streams to a tty, including stdin if it is not closed.
|
|
Tty *bool `json:"tty,omitempty"`
|
|
|
|
// User User that will run the command(s) inside the container, also support user:group
|
|
User *string `json:"user,omitempty"`
|
|
|
|
// Volumes List of volumes (mounts) used for the container
|
|
Volumes *map[string]map[string]interface{} `json:"volumes,omitempty"`
|
|
|
|
// WorkingDir Current directory (PWD) in the command will be launched
|
|
WorkingDir *string `json:"workingDir,omitempty"`
|
|
}
|
|
|
|
// ContainerHealthConfig defines model for container.HealthConfig.
|
|
type ContainerHealthConfig struct {
|
|
// Interval Zero means to inherit. Durations are expressed as integer nanoseconds.
|
|
Interval *TimeDuration `json:"interval,omitempty"`
|
|
|
|
// Retries Retries is the number of consecutive failures needed to consider a container as unhealthy.
|
|
// Zero means inherit.
|
|
Retries *int `json:"retries,omitempty"`
|
|
|
|
// StartInterval The interval to attempt healthchecks at during the start period
|
|
StartInterval *TimeDuration `json:"startInterval,omitempty"`
|
|
|
|
// StartPeriod The start period for the container to initialize before the retries starts to count down.
|
|
StartPeriod *TimeDuration `json:"startPeriod,omitempty"`
|
|
|
|
// Test Test is the test to perform to check that the container is healthy.
|
|
// An empty slice means to inherit the default.
|
|
// The options are:
|
|
// {} : inherit healthcheck
|
|
// {"NONE"} : disable healthcheck
|
|
// {"CMD", args...} : exec arguments directly
|
|
// {"CMD-SHELL", command} : run command with system's default shell
|
|
Test *[]string `json:"test,omitempty"`
|
|
|
|
// Timeout Timeout is the time to wait before considering the check to have hung.
|
|
Timeout *TimeDuration `json:"timeout,omitempty"`
|
|
}
|
|
|
|
// CronJobRequestJSON defines model for cron.JobRequestJSON.
|
|
type CronJobRequestJSON struct {
|
|
Name string `json:"name"`
|
|
Scheduler string `json:"scheduler"`
|
|
}
|
|
|
|
// DockerContainerCreateRequestContainer defines model for docker.ContainerCreateRequestContainer.
|
|
type DockerContainerCreateRequestContainer struct {
|
|
CapAdd *[]string `json:"cap_add,omitempty"`
|
|
CapDrop *[]string `json:"cap_drop,omitempty"`
|
|
Command *string `json:"command,omitempty"`
|
|
ContainerName *string `json:"container_name,omitempty"`
|
|
CpuShares *int `json:"cpu_shares,omitempty"`
|
|
Cpus *float32 `json:"cpus,omitempty"`
|
|
CpusetCpus *string `json:"cpuset_cpus,omitempty"`
|
|
DependsOn *map[string]DockerContainerCreateRequestContainerDependsOnCont `json:"depends_on,omitempty"`
|
|
Devices *[]string `json:"devices,omitempty"`
|
|
Dns *[]string `json:"dns,omitempty"`
|
|
DnsSearch *[]string `json:"dns_search,omitempty"`
|
|
Domainname *string `json:"domainname,omitempty"`
|
|
Entrypoint *string `json:"entrypoint,omitempty"`
|
|
Environment *[]string `json:"environment,omitempty"`
|
|
Expose *[]string `json:"expose,omitempty"`
|
|
ExtraHosts *[]string `json:"extra_hosts,omitempty"`
|
|
Gid *int `json:"gid,omitempty"`
|
|
Healthcheck *DockerContainerCreateRequestContainerHealthcheck `json:"healthcheck,omitempty"`
|
|
Hostname *string `json:"hostname,omitempty"`
|
|
Image string `json:"image"`
|
|
Isolation *string `json:"isolation,omitempty"`
|
|
Labels *map[string]string `json:"labels,omitempty"`
|
|
Links *[]string `json:"links,omitempty"`
|
|
MacAddress *string `json:"mac_address,omitempty"`
|
|
|
|
// MemLimit Resource constraints
|
|
MemLimit *string `json:"mem_limit,omitempty"`
|
|
MemReservation *string `json:"mem_reservation,omitempty"`
|
|
NetworkMode *string `json:"network_mode,omitempty"`
|
|
Networks *map[string]DockerContainerCreateRequestServiceNetwork `json:"networks,omitempty"`
|
|
Ports *[]string `json:"ports,omitempty"`
|
|
PostInstall *[]string `json:"post_install,omitempty"`
|
|
Privileged *bool `json:"privileged,omitempty"`
|
|
Restart *string `json:"restart,omitempty"`
|
|
Routes *[]UtilsProxyRouteConfig `json:"routes,omitempty"`
|
|
Runtime *string `json:"runtime,omitempty"`
|
|
SecurityOpt *[]string `json:"security_opt,omitempty"`
|
|
StdinOpen *bool `json:"stdin_open,omitempty"`
|
|
StopGracePeriod *int `json:"stop_grace_period,omitempty"`
|
|
StopSignal *string `json:"stop_signal,omitempty"`
|
|
StorageOpt *map[string]string `json:"storage_opt,omitempty"`
|
|
Sysctls *map[string]string `json:"sysctls,omitempty"`
|
|
Tty *bool `json:"tty,omitempty"`
|
|
Uid *int `json:"uid,omitempty"`
|
|
User *string `json:"user,omitempty"`
|
|
Volumes *[]MountMount `json:"volumes,omitempty"`
|
|
WorkingDir *string `json:"working_dir,omitempty"`
|
|
}
|
|
|
|
// DockerContainerCreateRequestContainerDependsOnCont defines model for docker.ContainerCreateRequestContainerDependsOnCont.
|
|
type DockerContainerCreateRequestContainerDependsOnCont struct {
|
|
Condition *string `json:"condition,omitempty"`
|
|
Restart *string `json:"restart,omitempty"`
|
|
}
|
|
|
|
// DockerContainerCreateRequestContainerHealthcheck defines model for docker.ContainerCreateRequestContainerHealthcheck.
|
|
type DockerContainerCreateRequestContainerHealthcheck struct {
|
|
Interval *int `json:"interval,omitempty"`
|
|
Retries *int `json:"retries,omitempty"`
|
|
StartPeriod *int `json:"start_period,omitempty"`
|
|
Test *[]string `json:"test,omitempty"`
|
|
Timeout *int `json:"timeout,omitempty"`
|
|
}
|
|
|
|
// DockerContainerCreateRequestNetwork defines model for docker.ContainerCreateRequestNetwork.
|
|
type DockerContainerCreateRequestNetwork struct {
|
|
Attachable *bool `json:"attachable,omitempty"`
|
|
Driver *string `json:"driver,omitempty"`
|
|
EnableIpv6 *bool `json:"enable_ipv6,omitempty"`
|
|
Internal *bool `json:"internal,omitempty"`
|
|
Ipam *struct {
|
|
Config *[]DockerContainerCreateRequestNetworkIPAMConfig `json:"config,omitempty"`
|
|
Driver *string `json:"driver,omitempty"`
|
|
} `json:"ipam,omitempty"`
|
|
Labels *map[string]string `json:"labels,omitempty"`
|
|
|
|
// Name name must be unique
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// DockerContainerCreateRequestNetworkIPAMConfig defines model for docker.ContainerCreateRequestNetworkIPAMConfig.
|
|
type DockerContainerCreateRequestNetworkIPAMConfig struct {
|
|
Gateway *string `json:"gateway,omitempty"`
|
|
Subnet *string `json:"subnet,omitempty"`
|
|
}
|
|
|
|
// DockerContainerCreateRequestServiceNetwork defines model for docker.ContainerCreateRequestServiceNetwork.
|
|
type DockerContainerCreateRequestServiceNetwork struct {
|
|
Aliases *[]string `json:"aliases,omitempty"`
|
|
Ipv4Address *string `json:"ipv4_address,omitempty"`
|
|
Ipv6Address *string `json:"ipv6_address,omitempty"`
|
|
}
|
|
|
|
// DockerContainerCreateRequestVolume defines model for docker.ContainerCreateRequestVolume.
|
|
type DockerContainerCreateRequestVolume struct {
|
|
Driver *string `json:"driver,omitempty"`
|
|
Labels *map[string]string `json:"labels,omitempty"`
|
|
|
|
// Name name must be unique
|
|
Name *string `json:"name,omitempty"`
|
|
Source *string `json:"source,omitempty"`
|
|
Target *string `json:"target,omitempty"`
|
|
}
|
|
|
|
// DockerContainerForm defines model for docker.ContainerForm.
|
|
type DockerContainerForm struct {
|
|
Volumes *[]MountMount `json:"Volumes,omitempty"`
|
|
Cpus *float32 `json:"cpus,omitempty"`
|
|
Devices *[]string `json:"devices,omitempty"`
|
|
EnvVars *[]string `json:"envVars,omitempty"`
|
|
Image *string `json:"image,omitempty"`
|
|
|
|
// Interactive we make this a int so that we can ignore 0
|
|
Interactive *int `json:"interactive,omitempty"`
|
|
Labels *map[string]string `json:"labels,omitempty"`
|
|
MemLimit *string `json:"memLimit,omitempty"`
|
|
NetworkMode *string `json:"networkMode,omitempty"`
|
|
PortBindings *NatPortMap `json:"portBindings,omitempty"`
|
|
RestartPolicy *string `json:"restartPolicy,omitempty"`
|
|
User *string `json:"user,omitempty"`
|
|
}
|
|
|
|
// DockerDockerServiceCreateRequest defines model for docker.DockerServiceCreateRequest.
|
|
type DockerDockerServiceCreateRequest struct {
|
|
Networks *map[string]DockerContainerCreateRequestNetwork `json:"networks,omitempty"`
|
|
Services *map[string]DockerContainerCreateRequestContainer `json:"services,omitempty"`
|
|
Volumes *map[string]DockerContainerCreateRequestVolume `json:"volumes,omitempty"`
|
|
}
|
|
|
|
// DockerVolumeCreateRequest defines model for docker.VolumeCreateRequest.
|
|
type DockerVolumeCreateRequest struct {
|
|
Driver *string `json:"driver,omitempty"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// DockerCreateNetworkPayload defines model for docker.createNetworkPayload.
|
|
type DockerCreateNetworkPayload struct {
|
|
AttachCosmos *bool `json:"attachCosmos,omitempty"`
|
|
Driver *string `json:"driver,omitempty"`
|
|
Name string `json:"name"`
|
|
ParentInterface *string `json:"parentInterface,omitempty"`
|
|
Subnet *string `json:"subnet,omitempty"`
|
|
}
|
|
|
|
// DockerMigrateToHostMode defines model for docker.migrateToHostMode.
|
|
type DockerMigrateToHostMode struct {
|
|
Http string `json:"http"`
|
|
Https string `json:"https"`
|
|
}
|
|
|
|
// GithubComAzukaarCosmosServerSrcUtilsConfig defines model for github_com_azukaar_cosmos-server_src_utils.Config.
|
|
type GithubComAzukaarCosmosServerSrcUtilsConfig struct {
|
|
APITokens *map[string]UtilsAPITokenConfig `json:"APITokens,omitempty"`
|
|
Roles *map[string]UtilsRoleConfig `json:"Roles,omitempty"`
|
|
AdminConstellationOnly *bool `json:"adminConstellationOnly,omitempty"`
|
|
AdminWhitelistIPs *[]string `json:"adminWhitelistIPs,omitempty"`
|
|
AgentMode *bool `json:"agentMode,omitempty"`
|
|
AutoUpdate *bool `json:"autoUpdate,omitempty"`
|
|
Backup *UtilsBackupConfig `json:"backup,omitempty"`
|
|
BackupOutputDir *string `json:"backupOutputDir,omitempty"`
|
|
BetaUpdates *bool `json:"betaUpdates,omitempty"`
|
|
BlockedCountries *[]string `json:"blockedCountries,omitempty"`
|
|
ConstellationConfig *UtilsConstellationConfig `json:"constellationConfig,omitempty"`
|
|
CountryBlacklistIsWhitelist *bool `json:"countryBlacklistIsWhitelist,omitempty"`
|
|
Cron *map[string]UtilsCRONConfig `json:"cron,omitempty"`
|
|
Database *UtilsDatabaseConfig `json:"database,omitempty"`
|
|
DisableHostModeWarning *bool `json:"disableHostModeWarning,omitempty"`
|
|
DisableOpenIDDirect *bool `json:"disableOpenIDDirect,omitempty"`
|
|
DisableUserManagement *bool `json:"disableUserManagement,omitempty"`
|
|
DockerConfig *UtilsDockerConfig `json:"dockerConfig,omitempty"`
|
|
EmailConfig UtilsEmailConfig `json:"emailConfig"`
|
|
HomepageConfig *UtilsHomepageConfig `json:"homepageConfig,omitempty"`
|
|
Httpconfig UtilsHTTPConfig `json:"httpconfig"`
|
|
IncrBackupOutputDir *string `json:"incrBackupOutputDir,omitempty"`
|
|
Licence *string `json:"licence,omitempty"`
|
|
LoggingLevel *string `json:"loggingLevel,omitempty"`
|
|
MarketConfig *UtilsMarketConfig `json:"marketConfig,omitempty"`
|
|
MonitoringAlerts *map[string]UtilsAlert `json:"monitoringAlerts,omitempty"`
|
|
MonitoringDisabled *bool `json:"monitoringDisabled,omitempty"`
|
|
Mpdn *string `json:"mpdn_,omitempty"`
|
|
Mpdu *string `json:"mpdu_,omitempty"`
|
|
NewInstall *bool `json:"newInstall,omitempty"`
|
|
OpenIDClients *[]UtilsOpenIDClient `json:"openIDClients,omitempty"`
|
|
RemoteStorage *UtilsRemoteStorageConfig `json:"remoteStorage,omitempty"`
|
|
RequireMFA *bool `json:"requireMFA,omitempty"`
|
|
ServerCountry *string `json:"serverCountry,omitempty"`
|
|
ServerToken *string `json:"serverToken,omitempty"`
|
|
Storage *UtilsStorageConfig `json:"storage,omitempty"`
|
|
ThemeConfig *UtilsThemeConfig `json:"themeConfig,omitempty"`
|
|
}
|
|
|
|
// ImageMetadata defines model for image.Metadata.
|
|
type ImageMetadata struct {
|
|
// LastTagTime LastTagTime is the date and time at which the image was last tagged.
|
|
LastTagTime *string `json:"lastTagTime,omitempty"`
|
|
}
|
|
|
|
// MainNewInstallJSON defines model for main.NewInstallJSON.
|
|
type MainNewInstallJSON struct {
|
|
AllowHTTPLocalIPAccess *bool `json:"allowHTTPLocalIPAccess,omitempty"`
|
|
DnsChallengeProvider *string `json:"dnsChallengeProvider,omitempty"`
|
|
DnschallengeConfig *map[string]string `json:"dnschallengeConfig,omitempty"`
|
|
Hostname *string `json:"hostname,omitempty"`
|
|
HttpsCertificateMode *string `json:"httpsCertificateMode,omitempty"`
|
|
MongodbMode *string `json:"mongodbMode,omitempty"`
|
|
Nickname *string `json:"nickname,omitempty"`
|
|
Omitempty *string `json:"omitempty,omitempty"`
|
|
Password *string `json:"password,omitempty"`
|
|
SslEmail *string `json:"sslEmail,omitempty"`
|
|
Step *string `json:"step,omitempty"`
|
|
TlsCert *string `json:"tlsCert,omitempty"`
|
|
TlsKey *string `json:"tlsKey,omitempty"`
|
|
UseWildcardCertificate *bool `json:"useWildcardCertificate,omitempty"`
|
|
}
|
|
|
|
// MainSetupJSON defines model for main.SetupJSON.
|
|
type MainSetupJSON struct {
|
|
DNSChallengeConfig *map[string]string `json:"DNSChallengeConfig,omitempty"`
|
|
AllowHTTPLocalIPAccess *bool `json:"allowHTTPLocalIPAccess,omitempty"`
|
|
|
|
// ClearConfig Optional: clear config before setup
|
|
ClearConfig *bool `json:"clearConfig,omitempty"`
|
|
|
|
// ConstellationConfig Optional: Constellation connect
|
|
ConstellationConfig *string `json:"constellationConfig,omitempty"`
|
|
|
|
// CreateAdminToken Optional: create admin API token
|
|
CreateAdminToken *bool `json:"createAdminToken,omitempty"`
|
|
|
|
// DatabaseNodeName Optional: overrides the node column on metrics rows. Defaults to the hostname when empty, which is what a single-node install wants.
|
|
DatabaseNodeName *string `json:"databaseNodeName,omitempty"`
|
|
DnsChallengeProvider *string `json:"dnsChallengeProvider,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
|
|
// Hostname HTTPS
|
|
Hostname *string `json:"hostname,omitempty"`
|
|
HttpsCertificateMode *string `json:"httpsCertificateMode,omitempty"`
|
|
|
|
// Licence Optional: Pro licence key — stored on the lighthouse config and
|
|
// validated via utils.ProcessLicence at the end of setup.
|
|
Licence *string `json:"licence,omitempty"`
|
|
|
|
// MongodbMode Database
|
|
MongodbMode *string `json:"mongodbMode,omitempty"`
|
|
|
|
// Nickname Admin
|
|
Nickname *string `json:"nickname,omitempty"`
|
|
Password *string `json:"password,omitempty"`
|
|
PostgresDatabase *string `json:"postgresDatabase,omitempty"`
|
|
|
|
// PostgresHost Optional: point this node at a shared Postgres instead of the local SQL store
|
|
PostgresHost *string `json:"postgresHost,omitempty"`
|
|
PostgresPassword *string `json:"postgresPassword,omitempty"`
|
|
PostgresUsername *string `json:"postgresUsername,omitempty"`
|
|
SslEmail *string `json:"sslEmail,omitempty"`
|
|
TlsCert *string `json:"tlsCert,omitempty"`
|
|
TlsKey *string `json:"tlsKey,omitempty"`
|
|
UseWildcardCertificate *bool `json:"useWildcardCertificate,omitempty"`
|
|
}
|
|
|
|
// MountBindOptions defines model for mount.BindOptions.
|
|
type MountBindOptions struct {
|
|
CreateMountpoint *bool `json:"createMountpoint,omitempty"`
|
|
NonRecursive *bool `json:"nonRecursive,omitempty"`
|
|
Propagation *MountPropagation `json:"propagation,omitempty"`
|
|
|
|
// ReadOnlyForceRecursive ReadOnlyForceRecursive raises an error if the mount cannot be made recursively read-only.
|
|
ReadOnlyForceRecursive *bool `json:"readOnlyForceRecursive,omitempty"`
|
|
|
|
// ReadOnlyNonRecursive ReadOnlyNonRecursive makes the mount non-recursively read-only, but still leaves the mount recursive
|
|
// (unless NonRecursive is set to true in conjunction).
|
|
ReadOnlyNonRecursive *bool `json:"readOnlyNonRecursive,omitempty"`
|
|
}
|
|
|
|
// MountClusterOptions defines model for mount.ClusterOptions.
|
|
type MountClusterOptions = map[string]interface{}
|
|
|
|
// MountConsistency defines model for mount.Consistency.
|
|
type MountConsistency string
|
|
|
|
// MountDriver defines model for mount.Driver.
|
|
type MountDriver struct {
|
|
Name *string `json:"name,omitempty"`
|
|
Options *map[string]string `json:"options,omitempty"`
|
|
}
|
|
|
|
// MountMount defines model for mount.Mount.
|
|
type MountMount struct {
|
|
BindOptions *MountBindOptions `json:"bindOptions,omitempty"`
|
|
ClusterOptions *MountClusterOptions `json:"clusterOptions,omitempty"`
|
|
Consistency *MountConsistency `json:"consistency,omitempty"`
|
|
|
|
// ReadOnly attempts recursive read-only if possible
|
|
ReadOnly *bool `json:"readOnly,omitempty"`
|
|
|
|
// Source Source specifies the name of the mount. Depending on mount type, this
|
|
// may be a volume name or a host path, or even ignored.
|
|
// Source is not supported for tmpfs (must be an empty value)
|
|
Source *string `json:"source,omitempty"`
|
|
Target *string `json:"target,omitempty"`
|
|
TmpfsOptions *MountTmpfsOptions `json:"tmpfsOptions,omitempty"`
|
|
Type *MountType `json:"type,omitempty"`
|
|
VolumeOptions *MountVolumeOptions `json:"volumeOptions,omitempty"`
|
|
}
|
|
|
|
// MountPropagation defines model for mount.Propagation.
|
|
type MountPropagation string
|
|
|
|
// MountTmpfsOptions defines model for mount.TmpfsOptions.
|
|
type MountTmpfsOptions struct {
|
|
// Mode Mode of the tmpfs upon creation
|
|
Mode *OsFileMode `json:"mode,omitempty"`
|
|
|
|
// SizeBytes Size sets the size of the tmpfs, in bytes.
|
|
//
|
|
// This will be converted to an operating system specific value
|
|
// depending on the host. For example, on linux, it will be converted to
|
|
// use a 'k', 'm' or 'g' syntax. BSD, though not widely supported with
|
|
// docker, uses a straight byte value.
|
|
//
|
|
// Percentages are not supported.
|
|
SizeBytes *int `json:"sizeBytes,omitempty"`
|
|
}
|
|
|
|
// MountType defines model for mount.Type.
|
|
type MountType string
|
|
|
|
// MountVolumeOptions defines model for mount.VolumeOptions.
|
|
type MountVolumeOptions struct {
|
|
DriverConfig *MountDriver `json:"driverConfig,omitempty"`
|
|
Labels *map[string]string `json:"labels,omitempty"`
|
|
NoCopy *bool `json:"noCopy,omitempty"`
|
|
Subpath *string `json:"subpath,omitempty"`
|
|
}
|
|
|
|
// NatPortBinding defines model for nat.PortBinding.
|
|
type NatPortBinding struct {
|
|
// HostIp HostIP is the host IP Address
|
|
HostIp *string `json:"HostIp,omitempty"`
|
|
|
|
// HostPort HostPort is the host port number
|
|
HostPort *string `json:"hostPort,omitempty"`
|
|
}
|
|
|
|
// NatPortMap defines model for nat.PortMap.
|
|
type NatPortMap map[string][]NatPortBinding
|
|
|
|
// NatPortSet defines model for nat.PortSet.
|
|
type NatPortSet map[string]interface{}
|
|
|
|
// OsFileMode defines model for os.FileMode.
|
|
type OsFileMode = uint32
|
|
|
|
// ProCreateGroupRequest defines model for pro.CreateGroupRequest.
|
|
type ProCreateGroupRequest struct {
|
|
Name string `json:"name"`
|
|
Permissions *[]UtilsPermission `json:"permissions,omitempty"`
|
|
}
|
|
|
|
// ProDeployment defines model for pro.Deployment.
|
|
type ProDeployment struct {
|
|
Compose DockerDockerServiceCreateRequest `json:"compose"`
|
|
Name string `json:"name"`
|
|
Replicas int `json:"replicas"`
|
|
|
|
// Storage Storage lists RCLONE remote names this deployment depends on. Checked
|
|
// node-side in executeApply before docker.CreateService runs — a missing
|
|
// remote produces StatusFail and flows through the existing fail-streak
|
|
// quarantine path. Not a placement filter: RCLONE config is cluster-synced
|
|
// via constellation, so every eligible node has the same remote set.
|
|
// ${storage.NAME} in compose fields resolves to the mount path on apply.
|
|
Storage *[]string `json:"storage,omitempty"`
|
|
|
|
// Strategy Strategy selects which PlacementStrategy the scheduler uses for this
|
|
// deployment. Empty is treated as "round-robin" for back-compat with
|
|
// KV entries written before this field existed.
|
|
Strategy *ProDeploymentStrategy `json:"strategy,omitempty"`
|
|
|
|
// Tags Tags filter eligible placement nodes. A deployment with Tags=["gpu"]
|
|
// will only land on nodes whose ConstellationDevice.Tags contains "gpu".
|
|
// Multiple tags are AND'd: ["gpu","nvme"] requires both. Empty means no
|
|
// filter — any node is eligible.
|
|
Tags *[]string `json:"tags,omitempty"`
|
|
}
|
|
|
|
// ProDeploymentStrategy Strategy selects which PlacementStrategy the scheduler uses for this
|
|
// deployment. Empty is treated as "round-robin" for back-compat with
|
|
// KV entries written before this field existed.
|
|
type ProDeploymentStrategy string
|
|
|
|
// ProUpdateGroupRequest defines model for pro.UpdateGroupRequest.
|
|
type ProUpdateGroupRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
Permissions *[]UtilsPermission `json:"permissions,omitempty"`
|
|
}
|
|
|
|
// StorageFormatDiskJSON defines model for storage.FormatDiskJSON.
|
|
type StorageFormatDiskJSON struct {
|
|
Disk string `json:"disk"`
|
|
Format string `json:"format"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
// StorageMergeRequest defines model for storage.MergeRequest.
|
|
type StorageMergeRequest struct {
|
|
Branches []string `json:"branches"`
|
|
Chown *string `json:"chown,omitempty"`
|
|
MountPoint string `json:"mountPoint"`
|
|
Opts *string `json:"opts,omitempty"`
|
|
Permanent *bool `json:"permanent,omitempty"`
|
|
}
|
|
|
|
// StorageMountRequest defines model for storage.MountRequest.
|
|
type StorageMountRequest struct {
|
|
Chown *string `json:"chown,omitempty"`
|
|
MountPoint string `json:"mountPoint"`
|
|
NetDisk *bool `json:"netDisk,omitempty"`
|
|
Path string `json:"path"`
|
|
Permanent *bool `json:"permanent,omitempty"`
|
|
}
|
|
|
|
// TimeDuration defines model for time.Duration.
|
|
type TimeDuration = int64
|
|
|
|
// TypesGraphDriverData defines model for types.GraphDriverData.
|
|
type TypesGraphDriverData struct {
|
|
// Data Low-level storage metadata, provided as key/value pairs.
|
|
//
|
|
// This information is driver-specific, and depends on the storage-driver
|
|
// in use, and should be used for informational purposes only.
|
|
//
|
|
// Required: true
|
|
Data *map[string]string `json:"Data,omitempty"`
|
|
|
|
// Name Name of the storage driver.
|
|
// Required: true
|
|
Name *string `json:"Name,omitempty"`
|
|
}
|
|
|
|
// TypesImageInspect defines model for types.ImageInspect.
|
|
type TypesImageInspect struct {
|
|
// Id ID is the content-addressable ID of an image.
|
|
//
|
|
// This identifier is a content-addressable digest calculated from the
|
|
// image's configuration (which includes the digests of layers used by
|
|
// the image).
|
|
//
|
|
// Note that this digest differs from the `RepoDigests` below, which
|
|
// holds digests of image manifests that reference the image.
|
|
Id *string `json:"Id,omitempty"`
|
|
|
|
// VirtualSize VirtualSize is the total size of the image including all layers it is
|
|
// composed of.
|
|
//
|
|
// Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.
|
|
VirtualSize *int `json:"VirtualSize,omitempty"`
|
|
|
|
// Architecture Architecture is the hardware CPU architecture that the image runs on.
|
|
Architecture *string `json:"architecture,omitempty"`
|
|
|
|
// Author Author is the name of the author that was specified when committing the
|
|
// image, or as specified through MAINTAINER (deprecated) in the Dockerfile.
|
|
Author *string `json:"author,omitempty"`
|
|
|
|
// Comment Comment is an optional message that can be set when committing or
|
|
// importing the image.
|
|
Comment *string `json:"comment,omitempty"`
|
|
Config *ContainerConfig `json:"config,omitempty"`
|
|
|
|
// Container Container is the ID of the container that was used to create the image.
|
|
//
|
|
// Depending on how the image was created, this field may be empty.
|
|
//
|
|
// Deprecated: this field is omitted in API v1.45, but kept for backward compatibility.
|
|
Container *string `json:"container,omitempty"`
|
|
|
|
// ContainerConfig ContainerConfig is an optional field containing the configuration of the
|
|
// container that was last committed when creating the image.
|
|
//
|
|
// Previous versions of Docker builder used this field to store build cache,
|
|
// and it is not in active use anymore.
|
|
//
|
|
// Deprecated: this field is omitted in API v1.45, but kept for backward compatibility.
|
|
ContainerConfig *ContainerConfig `json:"containerConfig,omitempty"`
|
|
|
|
// Created Created is the date and time at which the image was created, formatted in
|
|
// RFC 3339 nano-seconds (time.RFC3339Nano).
|
|
//
|
|
// This information is only available if present in the image,
|
|
// and omitted otherwise.
|
|
Created *string `json:"created,omitempty"`
|
|
|
|
// DockerVersion DockerVersion is the version of Docker that was used to build the image.
|
|
//
|
|
// Depending on how the image was created, this field may be empty.
|
|
DockerVersion *string `json:"dockerVersion,omitempty"`
|
|
|
|
// GraphDriver GraphDriver holds information about the storage driver used to store the
|
|
// container's and image's filesystem.
|
|
GraphDriver *TypesGraphDriverData `json:"graphDriver,omitempty"`
|
|
|
|
// Metadata Metadata of the image in the local cache.
|
|
//
|
|
// This information is local to the daemon, and not part of the image itself.
|
|
Metadata *ImageMetadata `json:"metadata,omitempty"`
|
|
|
|
// Os OS is the Operating System the image is built to run on.
|
|
Os *string `json:"os,omitempty"`
|
|
|
|
// OsVersion OsVersion is the version of the Operating System the image is built to
|
|
// run on (especially for Windows).
|
|
OsVersion *string `json:"osVersion,omitempty"`
|
|
|
|
// Parent Parent is the ID of the parent image.
|
|
//
|
|
// Depending on how the image was created, this field may be empty and
|
|
// is only set for images that were built/created locally. This field
|
|
// is empty if the image was pulled from an image registry.
|
|
Parent *string `json:"parent,omitempty"`
|
|
|
|
// RepoDigests RepoDigests is a list of content-addressable digests of locally available
|
|
// image manifests that the image is referenced from. Multiple manifests can
|
|
// refer to the same image.
|
|
//
|
|
// These digests are usually only available if the image was either pulled
|
|
// from a registry, or if the image was pushed to a registry, which is when
|
|
// the manifest is generated and its digest calculated.
|
|
RepoDigests *[]string `json:"repoDigests,omitempty"`
|
|
|
|
// RepoTags RepoTags is a list of image names/tags in the local image cache that
|
|
// reference this image.
|
|
//
|
|
// Multiple image tags can refer to the same image, and this list may be
|
|
// empty if no tags reference the image, in which case the image is
|
|
// "untagged", in which case it can still be referenced by its ID.
|
|
RepoTags *[]string `json:"repoTags,omitempty"`
|
|
|
|
// RootFS RootFS contains information about the image's RootFS, including the
|
|
// layer IDs.
|
|
RootFS *TypesRootFS `json:"rootFS,omitempty"`
|
|
|
|
// Size Size is the total size of the image including all layers it is composed of.
|
|
Size *int64 `json:"size,omitempty"`
|
|
|
|
// Variant Variant is the CPU architecture variant (presently ARM-only).
|
|
Variant *string `json:"variant,omitempty"`
|
|
}
|
|
|
|
// TypesRootFS defines model for types.RootFS.
|
|
type TypesRootFS struct {
|
|
Layers *[]string `json:"layers,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
}
|
|
|
|
// UserCreateRequestJSON defines model for user.CreateRequestJSON.
|
|
type UserCreateRequestJSON struct {
|
|
Email *string `json:"email,omitempty"`
|
|
Nickname string `json:"nickname"`
|
|
Role *int `json:"role,omitempty"`
|
|
}
|
|
|
|
// UserEditRequestJSON defines model for user.EditRequestJSON.
|
|
type UserEditRequestJSON struct {
|
|
Email *string `json:"email,omitempty"`
|
|
Role *int `json:"role,omitempty"`
|
|
}
|
|
|
|
// UserInviteRequestJSON defines model for user.InviteRequestJSON.
|
|
type UserInviteRequestJSON struct {
|
|
FormType *string `json:"formType,omitempty"`
|
|
Nickname string `json:"nickname"`
|
|
}
|
|
|
|
// UserLoginRequestJSON defines model for user.LoginRequestJSON.
|
|
type UserLoginRequestJSON struct {
|
|
Nickname string `json:"nickname"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
// UserPasswordResetRequestJSON defines model for user.PasswordResetRequestJSON.
|
|
type UserPasswordResetRequestJSON struct {
|
|
Email string `json:"email"`
|
|
Nickname string `json:"nickname"`
|
|
}
|
|
|
|
// UserRegisterRequestJSON defines model for user.RegisterRequestJSON.
|
|
type UserRegisterRequestJSON struct {
|
|
Nickname string `json:"nickname"`
|
|
Password string `json:"password"`
|
|
RegisterKey string `json:"registerKey"`
|
|
}
|
|
|
|
// UserSudoRequestJSON defines model for user.SudoRequestJSON.
|
|
type UserSudoRequestJSON struct {
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
// UserUser2FACheckRequest defines model for user.User2FACheckRequest.
|
|
type UserUser2FACheckRequest struct {
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
// UserUser2FAResetRequest defines model for user.User2FAResetRequest.
|
|
type UserUser2FAResetRequest struct {
|
|
Nickname string `json:"nickname"`
|
|
}
|
|
|
|
// UtilsAPIResponse defines model for utils.APIResponse.
|
|
type UtilsAPIResponse struct {
|
|
Data interface{} `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
|
|
// UtilsAPITokenConfig defines model for utils.APITokenConfig.
|
|
type UtilsAPITokenConfig struct {
|
|
CreatedAt *string `json:"createdAt,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
ExpiresAt *string `json:"expiresAt,omitempty"`
|
|
IpWhitelist *[]string `json:"ipWhitelist,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Owner *string `json:"owner,omitempty"`
|
|
Permissions *[]UtilsPermission `json:"permissions,omitempty"`
|
|
RestrictToConstellation *bool `json:"restrictToConstellation,omitempty"`
|
|
TokenHash *string `json:"tokenHash,omitempty"`
|
|
TokenSuffix *string `json:"tokenSuffix,omitempty"`
|
|
}
|
|
|
|
// UtilsAddionalFiltersConfig defines model for utils.AddionalFiltersConfig.
|
|
type UtilsAddionalFiltersConfig struct {
|
|
Name *string `json:"name,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
Value *string `json:"value,omitempty"`
|
|
}
|
|
|
|
// UtilsAlert defines model for utils.Alert.
|
|
type UtilsAlert struct {
|
|
Actions *[]UtilsAlertAction `json:"actions,omitempty"`
|
|
Condition *UtilsAlertCondition `json:"condition,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
LastTriggered *string `json:"lastTriggered,omitempty"`
|
|
Name string `json:"name"`
|
|
Period *string `json:"period,omitempty"`
|
|
Severity *string `json:"severity,omitempty"`
|
|
Throttled *bool `json:"throttled,omitempty"`
|
|
TrackingMetric *string `json:"trackingMetric,omitempty"`
|
|
}
|
|
|
|
// UtilsAlertAction defines model for utils.AlertAction.
|
|
type UtilsAlertAction struct {
|
|
Target *string `json:"target,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
}
|
|
|
|
// UtilsAlertCondition defines model for utils.AlertCondition.
|
|
type UtilsAlertCondition struct {
|
|
Operator *string `json:"operator,omitempty"`
|
|
Percent *bool `json:"percent,omitempty"`
|
|
Value *int `json:"value,omitempty"`
|
|
}
|
|
|
|
// UtilsBackupConfig defines model for utils.BackupConfig.
|
|
type UtilsBackupConfig struct {
|
|
Backups *map[string]UtilsSingleBackupConfig `json:"backups,omitempty"`
|
|
Disable *bool `json:"disable,omitempty"`
|
|
}
|
|
|
|
// UtilsCRONConfig defines model for utils.CRONConfig.
|
|
type UtilsCRONConfig struct {
|
|
Command *string `json:"command,omitempty"`
|
|
Container *string `json:"container,omitempty"`
|
|
Crontab *string `json:"crontab,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// UtilsConstellationConfig defines model for utils.ConstellationConfig.
|
|
type UtilsConstellationConfig struct {
|
|
FirewallBlockedClients *[]string `json:"FirewallBlockedClients,omitempty"`
|
|
NATSReplicas *int `json:"NATSReplicas,omitempty"`
|
|
ConstellationHostname *string `json:"constellationHostname,omitempty"`
|
|
CustomDNSEntries *[]UtilsConstellationDNSEntry `json:"customDNSEntries,omitempty"`
|
|
DnsadditionalBlocklists *[]string `json:"dnsadditionalBlocklists,omitempty"`
|
|
DnsblockBlacklist *bool `json:"dnsblockBlacklist,omitempty"`
|
|
Dnsdisabled *bool `json:"dnsdisabled,omitempty"`
|
|
Dnsfallback *string `json:"dnsfallback,omitempty"`
|
|
Dnsport *string `json:"dnsport,omitempty"`
|
|
DoNotSyncNodes *bool `json:"doNotSyncNodes,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
Iprange *string `json:"iprange,omitempty"`
|
|
OverrideNebulaExitNodeInterface *string `json:"overrideNebulaExitNodeInterface,omitempty"`
|
|
ThisDeviceName *string `json:"thisDeviceName,omitempty"`
|
|
Tunnels *[]UtilsProxyRouteConfig `json:"tunnels,omitempty"`
|
|
}
|
|
|
|
// UtilsConstellationDNSEntry defines model for utils.ConstellationDNSEntry.
|
|
type UtilsConstellationDNSEntry struct {
|
|
Key string `json:"key"`
|
|
Type *string `json:"type,omitempty"`
|
|
Value *string `json:"value,omitempty"`
|
|
}
|
|
|
|
// UtilsDatabaseConfig defines model for utils.DatabaseConfig.
|
|
type UtilsDatabaseConfig struct {
|
|
// NodeName overrides the node column on metrics rows
|
|
NodeName *string `json:"nodeName,omitempty"`
|
|
PostgresDatabase *string `json:"postgresDatabase,omitempty"`
|
|
|
|
// PostgresHost "host" or "host:port"
|
|
PostgresHost *string `json:"postgresHost,omitempty"`
|
|
PostgresPassword *string `json:"postgresPassword,omitempty"`
|
|
PostgresUsername *string `json:"postgresUsername,omitempty"`
|
|
}
|
|
|
|
// UtilsDockerConfig defines model for utils.DockerConfig.
|
|
type UtilsDockerConfig struct {
|
|
DefaultDataPath *string `json:"defaultDataPath,omitempty"`
|
|
SkipPruneImages *bool `json:"skipPruneImages,omitempty"`
|
|
SkipPruneNetwork *bool `json:"skipPruneNetwork,omitempty"`
|
|
}
|
|
|
|
// UtilsEmailConfig defines model for utils.EmailConfig.
|
|
type UtilsEmailConfig struct {
|
|
AllowInsecureTLS *bool `json:"allowInsecureTLS,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
From *string `json:"from,omitempty"`
|
|
Host *string `json:"host,omitempty"`
|
|
NotifyLogin *bool `json:"notifyLogin,omitempty"`
|
|
Password *string `json:"password,omitempty"`
|
|
Port *string `json:"port,omitempty"`
|
|
UseTLS *bool `json:"useTLS,omitempty"`
|
|
Username *string `json:"username,omitempty"`
|
|
}
|
|
|
|
// UtilsHTTPConfig defines model for utils.HTTPConfig.
|
|
type UtilsHTTPConfig struct {
|
|
DNSChallengeConfig *map[string]string `json:"DNSChallengeConfig,omitempty"`
|
|
AcceptAllInsecureHostname *bool `json:"acceptAllInsecureHostname,omitempty"`
|
|
AllowHTTPLocalIPAccess *bool `json:"allowHTTPLocalIPAccess,omitempty"`
|
|
AllowSearchEngine *bool `json:"allowSearchEngine,omitempty"`
|
|
AuthPrivateKey *string `json:"authPrivateKey,omitempty"`
|
|
AuthPublicKey *string `json:"authPublicKey,omitempty"`
|
|
Cacert *string `json:"cacert,omitempty"`
|
|
CaprivateKey *string `json:"caprivateKey,omitempty"`
|
|
DisablePropagationChecks *bool `json:"disablePropagationChecks,omitempty"`
|
|
DnschallengePropagationWait *int `json:"dnschallengePropagationWait,omitempty"`
|
|
DnschallengeProvider *string `json:"dnschallengeProvider,omitempty"`
|
|
DnschallengeResolvers *string `json:"dnschallengeResolvers,omitempty"`
|
|
ForceHTTPSCertificateRenewal *bool `json:"forceHTTPSCertificateRenewal,omitempty"`
|
|
GenerateMissingAuthCert *bool `json:"generateMissingAuthCert,omitempty"`
|
|
Hostname string `json:"hostname"`
|
|
Httpport string `json:"httpport"`
|
|
HttpscertificateMode *string `json:"httpscertificateMode,omitempty"`
|
|
Httpsport string `json:"httpsport"`
|
|
OverrideWildcardDomains *string `json:"overrideWildcardDomains,omitempty"`
|
|
ProxyConfig *UtilsProxyConfig `json:"proxyConfig,omitempty"`
|
|
PublishMDNS *bool `json:"publishMDNS,omitempty"`
|
|
SelfTLSCert *string `json:"selfTLSCert,omitempty"`
|
|
SelfTLSKey *string `json:"selfTLSKey,omitempty"`
|
|
SelfTLSKeyHostsCached *[]string `json:"selfTLSKeyHostsCached,omitempty"`
|
|
SelfTLSValidUntil *string `json:"selfTLSValidUntil,omitempty"`
|
|
Sslemail *string `json:"sslemail,omitempty"`
|
|
Tlscert *string `json:"tlscert,omitempty"`
|
|
Tlskey *string `json:"tlskey,omitempty"`
|
|
TlskeyHostsCached *[]string `json:"tlskeyHostsCached,omitempty"`
|
|
TlsvalidUntil *string `json:"tlsvalidUntil,omitempty"`
|
|
TrustedProxies *[]string `json:"trustedProxies,omitempty"`
|
|
UseForwardedFor *bool `json:"useForwardedFor,omitempty"`
|
|
UseWildcardCertificate *bool `json:"useWildcardCertificate,omitempty"`
|
|
}
|
|
|
|
// UtilsHTTPErrorResult defines model for utils.HTTPErrorResult.
|
|
type UtilsHTTPErrorResult struct {
|
|
Code *string `json:"code,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
|
|
// UtilsHomepageConfig defines model for utils.HomepageConfig.
|
|
type UtilsHomepageConfig struct {
|
|
Background *string `json:"background,omitempty"`
|
|
Expanded *bool `json:"expanded,omitempty"`
|
|
Widgets *[]string `json:"widgets,omitempty"`
|
|
}
|
|
|
|
// UtilsLocationRemoteStorageConfig defines model for utils.LocationRemoteStorageConfig.
|
|
type UtilsLocationRemoteStorageConfig struct {
|
|
Name *string `json:"name,omitempty"`
|
|
Protocol *string `json:"protocol,omitempty"`
|
|
Route *UtilsProxyRouteConfig `json:"route,omitempty"`
|
|
Settings *map[string]string `json:"settings,omitempty"`
|
|
Source *string `json:"source,omitempty"`
|
|
Target *string `json:"target,omitempty"`
|
|
}
|
|
|
|
// UtilsMarketConfig defines model for utils.MarketConfig.
|
|
type UtilsMarketConfig struct {
|
|
Sources *[]UtilsMarketSource `json:"sources,omitempty"`
|
|
}
|
|
|
|
// UtilsMarketSource defines model for utils.MarketSource.
|
|
type UtilsMarketSource struct {
|
|
Name *string `json:"name,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
}
|
|
|
|
// UtilsOpenIDClient defines model for utils.OpenIDClient.
|
|
type UtilsOpenIDClient struct {
|
|
Id string `json:"id"`
|
|
Public *bool `json:"public,omitempty"`
|
|
Redirect *string `json:"redirect,omitempty"`
|
|
Secret *string `json:"secret,omitempty"`
|
|
}
|
|
|
|
// UtilsPermission defines model for utils.Permission.
|
|
type UtilsPermission int
|
|
|
|
// UtilsProxyConfig defines model for utils.ProxyConfig.
|
|
type UtilsProxyConfig struct {
|
|
Routes *[]UtilsProxyRouteConfig `json:"routes,omitempty"`
|
|
}
|
|
|
|
// UtilsProxyRouteConfig defines model for utils.ProxyRouteConfig.
|
|
type UtilsProxyRouteConfig struct {
|
|
AdditionalTargets *[]string `json:"AdditionalTargets,omitempty"`
|
|
LBMode *string `json:"LBMode,omitempty"`
|
|
LBStickyMode *bool `json:"LBStickyMode,omitempty"`
|
|
AcceptInsecureHTTPSTarget *bool `json:"acceptInsecureHTTPSTarget,omitempty"`
|
|
AddionalFilters *[]UtilsAddionalFiltersConfig `json:"addionalFilters,omitempty"`
|
|
AdminOnly *bool `json:"adminOnly,omitempty"`
|
|
AuthEnabled *bool `json:"authEnabled,omitempty"`
|
|
BlockAPIAbuse *bool `json:"blockAPIAbuse,omitempty"`
|
|
BlockCommonBots *bool `json:"blockCommonBots,omitempty"`
|
|
Corsorigin *string `json:"corsorigin,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
DisableHeaderHardening *bool `json:"disableHeaderHardening,omitempty"`
|
|
DisableLegacyHTTPHeaders *bool `json:"disableLegacyHTTPHeaders,omitempty"`
|
|
Disabled *bool `json:"disabled,omitempty"`
|
|
ExtraHeaders *map[string]string `json:"extraHeaders,omitempty"`
|
|
HideFromDashboard *bool `json:"hideFromDashboard,omitempty"`
|
|
Host *string `json:"host,omitempty"`
|
|
Icon *string `json:"icon,omitempty"`
|
|
MaxBandwith *int `json:"maxBandwith,omitempty"`
|
|
Mode *string `json:"mode,omitempty"`
|
|
Name string `json:"name"`
|
|
OverwriteHostHeader *string `json:"overwriteHostHeader,omitempty"`
|
|
PathPrefix *string `json:"pathPrefix,omitempty"`
|
|
PublicOpenIDName *string `json:"publicOpenIDName,omitempty"`
|
|
PublicOpenIDRedirectURIs *string `json:"publicOpenIDRedirectURIs,omitempty"`
|
|
RestrictToConstellation *bool `json:"restrictToConstellation,omitempty"`
|
|
SkipURLClean *bool `json:"skipURLClean,omitempty"`
|
|
SmartShield *UtilsSmartShieldPolicy `json:"smartShield,omitempty"`
|
|
SpoofHostname *bool `json:"spoofHostname,omitempty"`
|
|
StripPathPrefix *bool `json:"stripPathPrefix,omitempty"`
|
|
Target string `json:"target"`
|
|
ThrottlePerMinute *int `json:"throttlePerMinute,omitempty"`
|
|
Timeout *TimeDuration `json:"timeout,omitempty"`
|
|
Tunnel *string `json:"tunnel,omitempty"`
|
|
TunneledHost *string `json:"tunneledHost,omitempty"`
|
|
UseH2C *bool `json:"useH2C,omitempty"`
|
|
UseHost *bool `json:"useHost,omitempty"`
|
|
UsePathPrefix *bool `json:"usePathPrefix,omitempty"`
|
|
WhitelistInboundIPs *[]string `json:"whitelistInboundIPs,omitempty"`
|
|
}
|
|
|
|
// UtilsRemoteStorageConfig defines model for utils.RemoteStorageConfig.
|
|
type UtilsRemoteStorageConfig struct {
|
|
Shares *[]UtilsLocationRemoteStorageConfig `json:"shares,omitempty"`
|
|
}
|
|
|
|
// UtilsRoleConfig defines model for utils.RoleConfig.
|
|
type UtilsRoleConfig struct {
|
|
Name *string `json:"name,omitempty"`
|
|
Permissions *[]UtilsPermission `json:"permissions,omitempty"`
|
|
}
|
|
|
|
// UtilsSingleBackupConfig defines model for utils.SingleBackupConfig.
|
|
type UtilsSingleBackupConfig struct {
|
|
AutoStopContainers *bool `json:"autoStopContainers,omitempty"`
|
|
Crontab *string `json:"crontab,omitempty"`
|
|
CrontabForget *string `json:"crontabForget,omitempty"`
|
|
Name string `json:"name"`
|
|
Password *string `json:"password,omitempty"`
|
|
Repository string `json:"repository"`
|
|
RetentionPolicy *string `json:"retentionPolicy,omitempty"`
|
|
Source *string `json:"source,omitempty"`
|
|
}
|
|
|
|
// UtilsSmartShieldPolicy defines model for utils.SmartShieldPolicy.
|
|
type UtilsSmartShieldPolicy struct {
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
MaxGlobalSimultaneous *int `json:"maxGlobalSimultaneous,omitempty"`
|
|
PerUserByteLimit *int `json:"perUserByteLimit,omitempty"`
|
|
PerUserRequestLimit *int `json:"perUserRequestLimit,omitempty"`
|
|
PerUserSimultaneous *int `json:"perUserSimultaneous,omitempty"`
|
|
PerUserTimeBudget *float32 `json:"perUserTimeBudget,omitempty"`
|
|
PolicyStrictness *int `json:"policyStrictness,omitempty"`
|
|
PrivilegedGroups *int `json:"privilegedGroups,omitempty"`
|
|
}
|
|
|
|
// UtilsSnapRAIDConfig defines model for utils.SnapRAIDConfig.
|
|
type UtilsSnapRAIDConfig struct {
|
|
CheckOnFix *bool `json:"checkOnFix,omitempty"`
|
|
Data *map[string]string `json:"data,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Parity *[]string `json:"parity,omitempty"`
|
|
ScrubCrontab *string `json:"scrubCrontab,omitempty"`
|
|
SyncCrontab *string `json:"syncCrontab,omitempty"`
|
|
}
|
|
|
|
// UtilsStorageConfig defines model for utils.StorageConfig.
|
|
type UtilsStorageConfig struct {
|
|
SnapRAIDs *[]UtilsSnapRAIDConfig `json:"snapRAIDs,omitempty"`
|
|
}
|
|
|
|
// UtilsThemeConfig defines model for utils.ThemeConfig.
|
|
type UtilsThemeConfig struct {
|
|
PrimaryColor *string `json:"primaryColor,omitempty"`
|
|
SecondaryColor *string `json:"secondaryColor,omitempty"`
|
|
}
|
|
|
|
// UtilsUser defines model for utils.User.
|
|
type UtilsUser struct {
|
|
CreatedAt *string `json:"createdAt,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
LastLogin *string `json:"lastLogin,omitempty"`
|
|
LastPasswordChangedAt *string `json:"lastPasswordChangedAt,omitempty"`
|
|
Link *string `json:"link,omitempty"`
|
|
Nickname string `json:"nickname"`
|
|
RegisterKey *string `json:"registerKey,omitempty"`
|
|
RegisterKeyExp *string `json:"registerKeyExp,omitempty"`
|
|
RegisteredAt *string `json:"registeredAt,omitempty"`
|
|
Role int `json:"role"`
|
|
}
|
|
|
|
// Body defines model for Body.
|
|
type Body = map[string]interface{}
|
|
|
|
// UtilsAlert2 defines model for utils.Alert2.
|
|
type UtilsAlert2 = UtilsAlert
|
|
|
|
// UtilsCRONConfig2 defines model for utils.CRONConfig2.
|
|
type UtilsCRONConfig2 = UtilsCRONConfig
|
|
|
|
// UtilsSnapRAIDConfig2 defines model for utils.SnapRAIDConfig2.
|
|
type UtilsSnapRAIDConfig2 = UtilsSnapRAIDConfig
|
|
|
|
// PostApiBackupsNameRestoreJSONBody defines parameters for PostApiBackupsNameRestore.
|
|
type PostApiBackupsNameRestoreJSONBody = map[string]interface{}
|
|
|
|
// GetApiBackupsNameSnapshotFoldersParams defines parameters for GetApiBackupsNameSnapshotFolders.
|
|
type GetApiBackupsNameSnapshotFoldersParams struct {
|
|
// Path Directory path within the snapshot
|
|
Path *string `form:"path,omitempty" json:"path,omitempty"`
|
|
}
|
|
|
|
// GetApiBackupsNameSnapshotSubfolderRestoreSizeParams defines parameters for GetApiBackupsNameSnapshotSubfolderRestoreSize.
|
|
type GetApiBackupsNameSnapshotSubfolderRestoreSizeParams struct {
|
|
// Path Subfolder path within the snapshot
|
|
Path *string `form:"path,omitempty" json:"path,omitempty"`
|
|
}
|
|
|
|
// PostApiConstellationCreateJSONBody defines parameters for PostApiConstellationCreate.
|
|
type PostApiConstellationCreateJSONBody = map[string]interface{}
|
|
|
|
// GetApiDnsParams defines parameters for GetApiDns.
|
|
type GetApiDnsParams struct {
|
|
// Url URL to resolve
|
|
Url string `form:"url" json:"url"`
|
|
}
|
|
|
|
// GetApiDnsCheckParams defines parameters for GetApiDnsCheck.
|
|
type GetApiDnsCheckParams struct {
|
|
// Url URL to check DNS for
|
|
Url string `form:"url" json:"url"`
|
|
}
|
|
|
|
// GetApiEventsParams defines parameters for GetApiEvents.
|
|
type GetApiEventsParams struct {
|
|
// From Start date in RFC3339 format (2006-01-02T15:04:05Z)
|
|
From *string `form:"from,omitempty" json:"from,omitempty"`
|
|
|
|
// To End date in RFC3339 format (2006-01-02T15:04:05Z)
|
|
To *string `form:"to,omitempty" json:"to,omitempty"`
|
|
|
|
// LogLevel Minimum log level (debug, info, success, warning, important, error)
|
|
LogLevel *string `form:"logLevel,omitempty" json:"logLevel,omitempty"`
|
|
|
|
// Search Full-text search term
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
|
|
// Query Filter as a JSON object
|
|
Query *string `form:"query,omitempty" json:"query,omitempty"`
|
|
|
|
// Page Pagination cursor (event id)
|
|
Page *string `form:"page,omitempty" json:"page,omitempty"`
|
|
}
|
|
|
|
// GetApiFaviconParams defines parameters for GetApiFavicon.
|
|
type GetApiFaviconParams struct {
|
|
// Q URL-encoded site URL to fetch favicon for
|
|
Q string `form:"q" json:"q"`
|
|
|
|
// Servapp Service app mode flag
|
|
Servapp *string `form:"servapp,omitempty" json:"servapp,omitempty"`
|
|
}
|
|
|
|
// GetApiImagesParams defines parameters for GetApiImages.
|
|
type GetApiImagesParams struct {
|
|
// ImageName Name of the Docker image to inspect
|
|
ImageName string `form:"imageName" json:"imageName"`
|
|
}
|
|
|
|
// GetApiImagesPullParams defines parameters for GetApiImagesPull.
|
|
type GetApiImagesPullParams struct {
|
|
// ImageName Name of the Docker image to pull
|
|
ImageName string `form:"imageName" json:"imageName"`
|
|
}
|
|
|
|
// GetApiImagesPullIfMissingParams defines parameters for GetApiImagesPullIfMissing.
|
|
type GetApiImagesPullIfMissingParams struct {
|
|
// ImageName Name of the Docker image to pull
|
|
ImageName string `form:"imageName" json:"imageName"`
|
|
}
|
|
|
|
// GetApiListDirParams defines parameters for GetApiListDir.
|
|
type GetApiListDirParams struct {
|
|
// Storage Storage name (default: local)
|
|
Storage *string `form:"storage,omitempty" json:"storage,omitempty"`
|
|
|
|
// Path Directory path (default: /)
|
|
Path *string `form:"path,omitempty" json:"path,omitempty"`
|
|
}
|
|
|
|
// GetApiMetricsParams defines parameters for GetApiMetrics.
|
|
type GetApiMetricsParams struct {
|
|
// Metrics Comma-separated list of metric keys to retrieve
|
|
Metrics *string `form:"metrics,omitempty" json:"metrics,omitempty"`
|
|
}
|
|
|
|
// PostApiNewDirParams defines parameters for PostApiNewDir.
|
|
type PostApiNewDirParams struct {
|
|
// Storage Storage name
|
|
Storage *string `form:"storage,omitempty" json:"storage,omitempty"`
|
|
|
|
// Path Parent directory path
|
|
Path *string `form:"path,omitempty" json:"path,omitempty"`
|
|
|
|
// Folder Folder name to create
|
|
Folder string `form:"folder" json:"folder"`
|
|
}
|
|
|
|
// GetApiNotificationsParams defines parameters for GetApiNotifications.
|
|
type GetApiNotificationsParams struct {
|
|
// From Pagination cursor (notification id for older notifications)
|
|
From *string `form:"from,omitempty" json:"from,omitempty"`
|
|
}
|
|
|
|
// GetApiNotificationsReadParams defines parameters for GetApiNotificationsRead.
|
|
type GetApiNotificationsReadParams struct {
|
|
// Ids Comma-separated list of notification ids
|
|
Ids string `form:"ids" json:"ids"`
|
|
}
|
|
|
|
// GetApiPingParams defines parameters for GetApiPing.
|
|
type GetApiPingParams struct {
|
|
// Q URL-encoded site URL to ping
|
|
Q string `form:"q" json:"q"`
|
|
|
|
// Servapp Service app mode flag
|
|
Servapp *string `form:"servapp,omitempty" json:"servapp,omitempty"`
|
|
}
|
|
|
|
// GetApiServappsParams defines parameters for GetApiServapps.
|
|
type GetApiServappsParams struct {
|
|
// Limit Maximum number of containers to return
|
|
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
|
|
}
|
|
|
|
// GetApiServappsContainerIdLogsParams defines parameters for GetApiServappsContainerIdLogs.
|
|
type GetApiServappsContainerIdLogsParams struct {
|
|
// Limit Maximum number of log lines to return
|
|
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
|
|
|
|
// Search Filter logs by search string
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
|
|
// LastReceivedLogs Timestamp to fetch logs until
|
|
LastReceivedLogs *string `form:"lastReceivedLogs,omitempty" json:"lastReceivedLogs,omitempty"`
|
|
|
|
// ErrorOnly Return only stderr logs
|
|
ErrorOnly *bool `form:"errorOnly,omitempty" json:"errorOnly,omitempty"`
|
|
}
|
|
|
|
// GetApiServappsContainerIdManageActionParamsAction defines parameters for GetApiServappsContainerIdManageAction.
|
|
type GetApiServappsContainerIdManageActionParamsAction string
|
|
|
|
// GetApiSnapraidNameActionParamsAction defines parameters for GetApiSnapraidNameAction.
|
|
type GetApiSnapraidNameActionParamsAction string
|
|
|
|
// PostApiUploadNameMultipartBody defines parameters for PostApiUploadName.
|
|
type PostApiUploadNameMultipartBody struct {
|
|
// Image Image file to upload
|
|
Image openapi_types.File `json:"image"`
|
|
}
|
|
|
|
// GetApiUsersParams defines parameters for GetApiUsers.
|
|
type GetApiUsersParams struct {
|
|
// Limit Maximum number of users to return
|
|
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
|
|
}
|
|
|
|
// PostRcloneConfigCreateJSONBody defines parameters for PostRcloneConfigCreate.
|
|
type PostRcloneConfigCreateJSONBody = map[string]interface{}
|
|
|
|
// DeleteRcloneConfigDeleteJSONBody defines parameters for DeleteRcloneConfigDelete.
|
|
type DeleteRcloneConfigDeleteJSONBody = map[string]interface{}
|
|
|
|
// PutRcloneConfigUpdateJSONBody defines parameters for PutRcloneConfigUpdate.
|
|
type PutRcloneConfigUpdateJSONBody = map[string]interface{}
|
|
|
|
// PostRcloneOperationsAboutJSONBody defines parameters for PostRcloneOperationsAbout.
|
|
type PostRcloneOperationsAboutJSONBody = map[string]interface{}
|
|
|
|
// PostRcloneVfsStatsJSONBody defines parameters for PostRcloneVfsStats.
|
|
type PostRcloneVfsStatsJSONBody = map[string]interface{}
|
|
|
|
// GetApiAlertsJSONRequestBody defines body for GetApiAlerts for application/json ContentType.
|
|
type GetApiAlertsJSONRequestBody = UtilsAlert
|
|
|
|
// PostApiAlertsJSONRequestBody defines body for PostApiAlerts for application/json ContentType.
|
|
type PostApiAlertsJSONRequestBody = UtilsAlert
|
|
|
|
// DeleteApiAlertsNameJSONRequestBody defines body for DeleteApiAlertsName for application/json ContentType.
|
|
type DeleteApiAlertsNameJSONRequestBody = UtilsAlert
|
|
|
|
// GetApiAlertsNameJSONRequestBody defines body for GetApiAlertsName for application/json ContentType.
|
|
type GetApiAlertsNameJSONRequestBody = UtilsAlert
|
|
|
|
// PutApiAlertsNameJSONRequestBody defines body for PutApiAlertsName for application/json ContentType.
|
|
type PutApiAlertsNameJSONRequestBody = UtilsAlert
|
|
|
|
// DeleteApiApiTokensJSONRequestBody defines body for DeleteApiApiTokens for application/json ContentType.
|
|
type DeleteApiApiTokensJSONRequestBody = ConfigapiDeleteAPITokenRequest
|
|
|
|
// PostApiApiTokensJSONRequestBody defines body for PostApiApiTokens for application/json ContentType.
|
|
type PostApiApiTokensJSONRequestBody = ConfigapiCreateAPITokenRequest
|
|
|
|
// PutApiApiTokensNameJSONRequestBody defines body for PutApiApiTokensName for application/json ContentType.
|
|
type PutApiApiTokensNameJSONRequestBody = ConfigapiUpdateAPITokenRequest
|
|
|
|
// PostApiBackupsJSONRequestBody defines body for PostApiBackups for application/json ContentType.
|
|
type PostApiBackupsJSONRequestBody = UtilsSingleBackupConfig
|
|
|
|
// PostApiBackupsEditJSONRequestBody defines body for PostApiBackupsEdit for application/json ContentType.
|
|
type PostApiBackupsEditJSONRequestBody = UtilsSingleBackupConfig
|
|
|
|
// PostApiBackupsNameRestoreJSONRequestBody defines body for PostApiBackupsNameRestore for application/json ContentType.
|
|
type PostApiBackupsNameRestoreJSONRequestBody = PostApiBackupsNameRestoreJSONBody
|
|
|
|
// PatchApiConfigJSONRequestBody defines body for PatchApiConfig for application/json ContentType.
|
|
type PatchApiConfigJSONRequestBody = ConfigapiUpdateRouteRequest
|
|
|
|
// PutApiConfigJSONRequestBody defines body for PutApiConfig for application/json ContentType.
|
|
type PutApiConfigJSONRequestBody = GithubComAzukaarCosmosServerSrcUtilsConfig
|
|
|
|
// PatchApiConfigDnsJSONRequestBody defines body for PatchApiConfigDns for application/json ContentType.
|
|
type PatchApiConfigDnsJSONRequestBody = ConfigapiDNSConfigRequest
|
|
|
|
// PostApiConstellationBlockJSONRequestBody defines body for PostApiConstellationBlock for application/json ContentType.
|
|
type PostApiConstellationBlockJSONRequestBody = ConstellationDeviceBlockRequestJSON
|
|
|
|
// PostApiConstellationCreateJSONRequestBody defines body for PostApiConstellationCreate for application/json ContentType.
|
|
type PostApiConstellationCreateJSONRequestBody = PostApiConstellationCreateJSONBody
|
|
|
|
// PostApiConstellationDeploymentsJSONRequestBody defines body for PostApiConstellationDeployments for application/json ContentType.
|
|
type PostApiConstellationDeploymentsJSONRequestBody = ProDeployment
|
|
|
|
// PutApiConstellationDeploymentsNameJSONRequestBody defines body for PutApiConstellationDeploymentsName for application/json ContentType.
|
|
type PutApiConstellationDeploymentsNameJSONRequestBody = ProDeployment
|
|
|
|
// PostApiConstellationDevicesJSONRequestBody defines body for PostApiConstellationDevices for application/json ContentType.
|
|
type PostApiConstellationDevicesJSONRequestBody = ConstellationDeviceCreateRequestJSON
|
|
|
|
// PostApiConstellationDnsJSONRequestBody defines body for PostApiConstellationDns for application/json ContentType.
|
|
type PostApiConstellationDnsJSONRequestBody = UtilsConstellationDNSEntry
|
|
|
|
// PutApiConstellationDnsKeyJSONRequestBody defines body for PutApiConstellationDnsKey for application/json ContentType.
|
|
type PutApiConstellationDnsKeyJSONRequestBody = UtilsConstellationDNSEntry
|
|
|
|
// PostApiConstellationEditDeviceJSONRequestBody defines body for PostApiConstellationEditDevice for application/json ContentType.
|
|
type PostApiConstellationEditDeviceJSONRequestBody = ConstellationDeviceEditRequestJSON
|
|
|
|
// GetApiCronJSONRequestBody defines body for GetApiCron for application/json ContentType.
|
|
type GetApiCronJSONRequestBody = UtilsCRONConfig
|
|
|
|
// PostApiCronJSONRequestBody defines body for PostApiCron for application/json ContentType.
|
|
type PostApiCronJSONRequestBody = UtilsCRONConfig
|
|
|
|
// DeleteApiCronNameJSONRequestBody defines body for DeleteApiCronName for application/json ContentType.
|
|
type DeleteApiCronNameJSONRequestBody = UtilsCRONConfig
|
|
|
|
// GetApiCronNameJSONRequestBody defines body for GetApiCronName for application/json ContentType.
|
|
type GetApiCronNameJSONRequestBody = UtilsCRONConfig
|
|
|
|
// PutApiCronNameJSONRequestBody defines body for PutApiCronName for application/json ContentType.
|
|
type PutApiCronNameJSONRequestBody = UtilsCRONConfig
|
|
|
|
// PostApiDisksFormatJSONRequestBody defines body for PostApiDisksFormat for application/json ContentType.
|
|
type PostApiDisksFormatJSONRequestBody = StorageFormatDiskJSON
|
|
|
|
// PostApiDockerServiceJSONRequestBody defines body for PostApiDockerService for application/json ContentType.
|
|
type PostApiDockerServiceJSONRequestBody = DockerDockerServiceCreateRequest
|
|
|
|
// PostApiGroupsJSONRequestBody defines body for PostApiGroups for application/json ContentType.
|
|
type PostApiGroupsJSONRequestBody = ProCreateGroupRequest
|
|
|
|
// PutApiGroupsIdJSONRequestBody defines body for PutApiGroupsId for application/json ContentType.
|
|
type PutApiGroupsIdJSONRequestBody = ProUpdateGroupRequest
|
|
|
|
// PostApiInviteJSONRequestBody defines body for PostApiInvite for application/json ContentType.
|
|
type PostApiInviteJSONRequestBody = UserInviteRequestJSON
|
|
|
|
// PostApiJobsDeleteJSONRequestBody defines body for PostApiJobsDelete for application/json ContentType.
|
|
type PostApiJobsDeleteJSONRequestBody = CronJobRequestJSON
|
|
|
|
// PostApiJobsGetJSONRequestBody defines body for PostApiJobsGet for application/json ContentType.
|
|
type PostApiJobsGetJSONRequestBody = CronJobRequestJSON
|
|
|
|
// PostApiJobsRunJSONRequestBody defines body for PostApiJobsRun for application/json ContentType.
|
|
type PostApiJobsRunJSONRequestBody = CronJobRequestJSON
|
|
|
|
// PostApiJobsStopJSONRequestBody defines body for PostApiJobsStop for application/json ContentType.
|
|
type PostApiJobsStopJSONRequestBody = CronJobRequestJSON
|
|
|
|
// PostApiLoginJSONRequestBody defines body for PostApiLogin for application/json ContentType.
|
|
type PostApiLoginJSONRequestBody = UserLoginRequestJSON
|
|
|
|
// PostApiMergeJSONRequestBody defines body for PostApiMerge for application/json ContentType.
|
|
type PostApiMergeJSONRequestBody = StorageMergeRequest
|
|
|
|
// DeleteApiMfaJSONRequestBody defines body for DeleteApiMfa for application/json ContentType.
|
|
type DeleteApiMfaJSONRequestBody = UserUser2FAResetRequest
|
|
|
|
// PostApiMfaJSONRequestBody defines body for PostApiMfa for application/json ContentType.
|
|
type PostApiMfaJSONRequestBody = UserUser2FACheckRequest
|
|
|
|
// PostApiMigrateHostJSONRequestBody defines body for PostApiMigrateHost for application/json ContentType.
|
|
type PostApiMigrateHostJSONRequestBody = DockerMigrateToHostMode
|
|
|
|
// PostApiMountJSONRequestBody defines body for PostApiMount for application/json ContentType.
|
|
type PostApiMountJSONRequestBody = StorageMountRequest
|
|
|
|
// PostApiNetworksJSONRequestBody defines body for PostApiNetworks for application/json ContentType.
|
|
type PostApiNetworksJSONRequestBody = DockerCreateNetworkPayload
|
|
|
|
// PostApiNewInstallJSONRequestBody defines body for PostApiNewInstall for application/json ContentType.
|
|
type PostApiNewInstallJSONRequestBody = MainNewInstallJSON
|
|
|
|
// PostApiOpenidJSONRequestBody defines body for PostApiOpenid for application/json ContentType.
|
|
type PostApiOpenidJSONRequestBody = UtilsOpenIDClient
|
|
|
|
// PutApiOpenidIdJSONRequestBody defines body for PutApiOpenidId for application/json ContentType.
|
|
type PutApiOpenidIdJSONRequestBody = UtilsOpenIDClient
|
|
|
|
// PostApiPasswordResetJSONRequestBody defines body for PostApiPasswordReset for application/json ContentType.
|
|
type PostApiPasswordResetJSONRequestBody = UserPasswordResetRequestJSON
|
|
|
|
// PostApiRegisterJSONRequestBody defines body for PostApiRegister for application/json ContentType.
|
|
type PostApiRegisterJSONRequestBody = UserRegisterRequestJSON
|
|
|
|
// PostApiRoutesJSONRequestBody defines body for PostApiRoutes for application/json ContentType.
|
|
type PostApiRoutesJSONRequestBody = UtilsProxyRouteConfig
|
|
|
|
// PutApiRoutesNameJSONRequestBody defines body for PutApiRoutesName for application/json ContentType.
|
|
type PutApiRoutesNameJSONRequestBody = UtilsProxyRouteConfig
|
|
|
|
// PostApiServappsContainerIdUpdateJSONRequestBody defines body for PostApiServappsContainerIdUpdate for application/json ContentType.
|
|
type PostApiServappsContainerIdUpdateJSONRequestBody = DockerContainerForm
|
|
|
|
// PostApiSetupJSONRequestBody defines body for PostApiSetup for application/json ContentType.
|
|
type PostApiSetupJSONRequestBody = MainSetupJSON
|
|
|
|
// GetApiSnapraidJSONRequestBody defines body for GetApiSnapraid for application/json ContentType.
|
|
type GetApiSnapraidJSONRequestBody = UtilsSnapRAIDConfig
|
|
|
|
// PostApiSnapraidJSONRequestBody defines body for PostApiSnapraid for application/json ContentType.
|
|
type PostApiSnapraidJSONRequestBody = UtilsSnapRAIDConfig
|
|
|
|
// DeleteApiSnapraidNameJSONRequestBody defines body for DeleteApiSnapraidName for application/json ContentType.
|
|
type DeleteApiSnapraidNameJSONRequestBody = UtilsSnapRAIDConfig
|
|
|
|
// PostApiSnapraidNameJSONRequestBody defines body for PostApiSnapraidName for application/json ContentType.
|
|
type PostApiSnapraidNameJSONRequestBody = UtilsSnapRAIDConfig
|
|
|
|
// PostApiSudoJSONRequestBody defines body for PostApiSudo for application/json ContentType.
|
|
type PostApiSudoJSONRequestBody = UserSudoRequestJSON
|
|
|
|
// PostApiUnmountJSONRequestBody defines body for PostApiUnmount for application/json ContentType.
|
|
type PostApiUnmountJSONRequestBody = StorageMountRequest
|
|
|
|
// PostApiUploadNameMultipartRequestBody defines body for PostApiUploadName for multipart/form-data ContentType.
|
|
type PostApiUploadNameMultipartRequestBody PostApiUploadNameMultipartBody
|
|
|
|
// PostApiUsersJSONRequestBody defines body for PostApiUsers for application/json ContentType.
|
|
type PostApiUsersJSONRequestBody = UserCreateRequestJSON
|
|
|
|
// PatchApiUsersNicknameJSONRequestBody defines body for PatchApiUsersNickname for application/json ContentType.
|
|
type PatchApiUsersNicknameJSONRequestBody = UserEditRequestJSON
|
|
|
|
// PostApiVolumesJSONRequestBody defines body for PostApiVolumes for application/json ContentType.
|
|
type PostApiVolumesJSONRequestBody = DockerVolumeCreateRequest
|
|
|
|
// PostRcloneConfigCreateJSONRequestBody defines body for PostRcloneConfigCreate for application/json ContentType.
|
|
type PostRcloneConfigCreateJSONRequestBody = PostRcloneConfigCreateJSONBody
|
|
|
|
// DeleteRcloneConfigDeleteJSONRequestBody defines body for DeleteRcloneConfigDelete for application/json ContentType.
|
|
type DeleteRcloneConfigDeleteJSONRequestBody = DeleteRcloneConfigDeleteJSONBody
|
|
|
|
// PutRcloneConfigUpdateJSONRequestBody defines body for PutRcloneConfigUpdate for application/json ContentType.
|
|
type PutRcloneConfigUpdateJSONRequestBody = PutRcloneConfigUpdateJSONBody
|
|
|
|
// PostRcloneOperationsAboutJSONRequestBody defines body for PostRcloneOperationsAbout for application/json ContentType.
|
|
type PostRcloneOperationsAboutJSONRequestBody = PostRcloneOperationsAboutJSONBody
|
|
|
|
// PostRcloneVfsStatsJSONRequestBody defines body for PostRcloneVfsStats for application/json ContentType.
|
|
type PostRcloneVfsStatsJSONRequestBody = PostRcloneVfsStatsJSONBody
|
|
|
|
// RequestEditorFn is the function signature for the RequestEditor callback function
|
|
type RequestEditorFn func(ctx context.Context, req *http.Request) error
|
|
|
|
// Doer performs HTTP requests.
|
|
//
|
|
// The standard http.Client implements this interface.
|
|
type HttpRequestDoer interface {
|
|
Do(req *http.Request) (*http.Response, error)
|
|
}
|
|
|
|
// Client which conforms to the OpenAPI3 specification for this service.
|
|
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
|
|
}
|
|
|
|
// ClientOption allows setting custom parameters during construction
|
|
type ClientOption func(*Client) error
|
|
|
|
// Creates a new Client, with reasonable defaults
|
|
func NewClient(server string, opts ...ClientOption) (*Client, error) {
|
|
// create a client with sane default values
|
|
client := Client{
|
|
Server: server,
|
|
}
|
|
// mutate client and add all optional params
|
|
for _, o := range opts {
|
|
if err := o(&client); err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
// ensure the server URL always has a trailing slash
|
|
if !strings.HasSuffix(client.Server, "/") {
|
|
client.Server += "/"
|
|
}
|
|
// create httpClient, if not already present
|
|
if client.Client == nil {
|
|
client.Client = &http.Client{}
|
|
}
|
|
return &client, nil
|
|
}
|
|
|
|
// WithHTTPClient allows overriding the default Doer, which is
|
|
// automatically created using http.Client. This is useful for tests.
|
|
func WithHTTPClient(doer HttpRequestDoer) ClientOption {
|
|
return func(c *Client) error {
|
|
c.Client = doer
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// WithRequestEditorFn allows setting up a callback function, which will be
|
|
// called right before sending the request. This can be used to mutate the request.
|
|
func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
|
|
return func(c *Client) error {
|
|
c.RequestEditors = append(c.RequestEditors, fn)
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// The interface specification for the client above.
|
|
type ClientInterface interface {
|
|
|
|
// GetLogs Download server logs
|
|
//
|
|
// Returns the server log file as a plain text attachment.
|
|
//
|
|
// Corresponds with GET /_logs (the `GetLogs` operationId).
|
|
GetLogs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiMemory Get internal memory status
|
|
//
|
|
// Returns memory usage details for internal caches and buffers.
|
|
//
|
|
// Corresponds with GET /api/_memory (the `GetApiMemory` operationId).
|
|
GetApiMemory(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiAlertsWithBody List or create monitoring alerts
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/alerts (the `GetApiAlerts` operationId).
|
|
GetApiAlertsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiAlerts List or create monitoring alerts
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/alerts (the `GetApiAlerts` operationId).
|
|
GetApiAlerts(ctx context.Context, body GetApiAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiAlertsWithBody List or create monitoring alerts
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/alerts (the `PostApiAlerts` operationId).
|
|
PostApiAlertsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiAlerts List or create monitoring alerts
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/alerts (the `PostApiAlerts` operationId).
|
|
PostApiAlerts(ctx context.Context, body PostApiAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiAlertsNameWithBody Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/alerts/{name} (the `DeleteApiAlertsName` operationId).
|
|
DeleteApiAlertsNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiAlertsName Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/alerts/{name} (the `DeleteApiAlertsName` operationId).
|
|
DeleteApiAlertsName(ctx context.Context, name string, body DeleteApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiAlertsNameWithBody Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/alerts/{name} (the `GetApiAlertsName` operationId).
|
|
GetApiAlertsNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiAlertsName Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/alerts/{name} (the `GetApiAlertsName` operationId).
|
|
GetApiAlertsName(ctx context.Context, name string, body GetApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiAlertsNameWithBody Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/alerts/{name} (the `PutApiAlertsName` operationId).
|
|
PutApiAlertsNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiAlertsName Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/alerts/{name} (the `PutApiAlertsName` operationId).
|
|
PutApiAlertsName(ctx context.Context, name string, body PutApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiApiTokensWithBody Delete an API token
|
|
//
|
|
// Removes an API token by name.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/api-tokens (the `DeleteApiApiTokens` operationId).
|
|
DeleteApiApiTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiApiTokens Delete an API token
|
|
//
|
|
// Removes an API token by name.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/api-tokens (the `DeleteApiApiTokens` operationId).
|
|
DeleteApiApiTokens(ctx context.Context, body DeleteApiApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiApiTokens List all API tokens
|
|
//
|
|
// Returns all configured API tokens (without the actual token hashes).
|
|
//
|
|
// Corresponds with GET /api/api-tokens (the `GetApiApiTokens` operationId).
|
|
GetApiApiTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiApiTokensWithBody Create a new API token
|
|
//
|
|
// Generates a new API token with the specified permissions and returns the raw token (shown only once).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/api-tokens (the `PostApiApiTokens` operationId).
|
|
PostApiApiTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiApiTokens Create a new API token
|
|
//
|
|
// Generates a new API token with the specified permissions and returns the raw token (shown only once).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/api-tokens (the `PostApiApiTokens` operationId).
|
|
PostApiApiTokens(ctx context.Context, body PostApiApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiApiTokensNameWithBody Update an API token
|
|
//
|
|
// Updates an existing API token's description, permissions, IP whitelist, or constellation restriction
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/api-tokens/{name} (the `PutApiApiTokensName` operationId).
|
|
PutApiApiTokensNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiApiTokensName Update an API token
|
|
//
|
|
// Updates an existing API token's description, permissions, IP whitelist, or constellation restriction
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/api-tokens/{name} (the `PutApiApiTokensName` operationId).
|
|
PutApiApiTokensName(ctx context.Context, name string, body PutApiApiTokensNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiBackupsWithBody Create a new backup configuration
|
|
//
|
|
// Creates a backup config and initializes the repository if needed. Requires premium licence and non-container mode.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/backups (the `PostApiBackups` operationId).
|
|
PostApiBackupsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiBackups Create a new backup configuration
|
|
//
|
|
// Creates a backup config and initializes the repository if needed. Requires premium licence and non-container mode.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/backups (the `PostApiBackups` operationId).
|
|
PostApiBackups(ctx context.Context, body PostApiBackupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiBackupsConfig List all backup configurations
|
|
//
|
|
// Returns a map of all backup configurations from the server config, keyed by backup name.
|
|
//
|
|
// Corresponds with GET /api/backups-config (the `GetApiBackupsConfig` operationId).
|
|
GetApiBackupsConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiBackupsConfigName Get a single backup configuration by name
|
|
//
|
|
// Returns a single backup configuration from the server config.
|
|
//
|
|
// Corresponds with GET /api/backups-config/{name} (the `GetApiBackupsConfigName` operationId).
|
|
GetApiBackupsConfigName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiBackupsRepository List all backup repositories with their lock status
|
|
//
|
|
// Corresponds with GET /api/backups-repository (the `GetApiBackupsRepository` operationId).
|
|
GetApiBackupsRepository(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiBackupsRepositoryNameSnapshots List all snapshots in a backup repository (all backup tags)
|
|
//
|
|
// Corresponds with GET /api/backups-repository/{name}/snapshots (the `GetApiBackupsRepositoryNameSnapshots` operationId).
|
|
GetApiBackupsRepositoryNameSnapshots(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiBackupsRepositoryNameStats Get repository statistics (size, file count, etc.)
|
|
//
|
|
// Corresponds with GET /api/backups-repository/{name}/stats (the `GetApiBackupsRepositoryNameStats` operationId).
|
|
GetApiBackupsRepositoryNameStats(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiBackupsEditWithBody Edit an existing backup configuration
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/backups/edit (the `PostApiBackupsEdit` operationId).
|
|
PostApiBackupsEditWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiBackupsEdit Edit an existing backup configuration
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/backups/edit (the `PostApiBackupsEdit` operationId).
|
|
PostApiBackupsEdit(ctx context.Context, body PostApiBackupsEditJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiBackupsName Remove a backup configuration and its snapshots
|
|
//
|
|
// Corresponds with DELETE /api/backups/{name} (the `DeleteApiBackupsName` operationId).
|
|
DeleteApiBackupsName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiBackupsNameRestoreWithBody Restore files from a backup snapshot
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/restore (the `PostApiBackupsNameRestore` operationId).
|
|
PostApiBackupsNameRestoreWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiBackupsNameRestore Restore files from a backup snapshot
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/restore (the `PostApiBackupsNameRestore` operationId).
|
|
PostApiBackupsNameRestore(ctx context.Context, name string, body PostApiBackupsNameRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiBackupsNameSnapshots List snapshots for a specific backup
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/snapshots (the `GetApiBackupsNameSnapshots` operationId).
|
|
GetApiBackupsNameSnapshots(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiBackupsNameUnlock Unlock a backup repository (remove stale locks)
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/unlock (the `PostApiBackupsNameUnlock` operationId).
|
|
PostApiBackupsNameUnlock(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiBackupsNameSnapshotFolders List folders in a backup snapshot
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/{snapshot}/folders (the `GetApiBackupsNameSnapshotFolders` operationId).
|
|
GetApiBackupsNameSnapshotFolders(ctx context.Context, name string, snapshot string, params *GetApiBackupsNameSnapshotFoldersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiBackupsNameSnapshotForget Forget (delete) a specific snapshot from a backup repository
|
|
//
|
|
// Corresponds with DELETE /api/backups/{name}/{snapshot}/forget (the `DeleteApiBackupsNameSnapshotForget` operationId).
|
|
DeleteApiBackupsNameSnapshotForget(ctx context.Context, name string, snapshot string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiBackupsNameSnapshotSubfolderRestoreSize Get restore size stats for a subfolder within a snapshot
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/{snapshot}/subfolder-restore-size (the `GetApiBackupsNameSnapshotSubfolderRestoreSize` operationId).
|
|
GetApiBackupsNameSnapshotSubfolderRestoreSize(ctx context.Context, name string, snapshot string, params *GetApiBackupsNameSnapshotSubfolderRestoreSizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiCanSendEmail Check if email sending is enabled
|
|
//
|
|
// Returns whether the server has email sending capabilities configured.
|
|
//
|
|
// Corresponds with GET /api/can-send-email (the `GetApiCanSendEmail` operationId).
|
|
GetApiCanSendEmail(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConfig Get server configuration
|
|
//
|
|
// Returns the full server configuration (sensitive fields masked for non-credential users).
|
|
//
|
|
// Corresponds with GET /api/config (the `GetApiConfig` operationId).
|
|
GetApiConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PatchApiConfigWithBody Patch route configuration
|
|
//
|
|
// Performs route operations (add, replace, delete, move_up, move_down) on proxy routes
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PATCH /api/config (the `PatchApiConfig` operationId).
|
|
PatchApiConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PatchApiConfig Patch route configuration
|
|
//
|
|
// Performs route operations (add, replace, delete, move_up, move_down) on proxy routes
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PATCH /api/config (the `PatchApiConfig` operationId).
|
|
PatchApiConfig(ctx context.Context, body PatchApiConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiConfigWithBody Update server configuration
|
|
//
|
|
// Replaces the entire server configuration (masked credential fields are preserved from existing config).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/config (the `PutApiConfig` operationId).
|
|
PutApiConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiConfig Update server configuration
|
|
//
|
|
// Replaces the entire server configuration (masked credential fields are preserved from existing config).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/config (the `PutApiConfig` operationId).
|
|
PutApiConfig(ctx context.Context, body PutApiConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PatchApiConfigDnsWithBody Update DNS configuration
|
|
//
|
|
// Patches DNS-related settings including port, fallback, blocklists, and custom entries
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PATCH /api/config/dns (the `PatchApiConfigDns` operationId).
|
|
PatchApiConfigDnsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PatchApiConfigDns Update DNS configuration
|
|
//
|
|
// Patches DNS-related settings including port, fallback, blocklists, and custom entries
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PATCH /api/config/dns (the `PatchApiConfigDns` operationId).
|
|
PatchApiConfigDns(ctx context.Context, body PatchApiConfigDnsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationBlockWithBody Block or unblock a Constellation device
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/block (the `PostApiConstellationBlock` operationId).
|
|
PostApiConstellationBlockWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationBlock Block or unblock a Constellation device
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/block (the `PostApiConstellationBlock` operationId).
|
|
PostApiConstellationBlock(ctx context.Context, body PostApiConstellationBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationConfig Get the current Nebula configuration
|
|
//
|
|
// Corresponds with GET /api/constellation/config (the `GetApiConstellationConfig` operationId).
|
|
GetApiConstellationConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationConnectWithBody Connect this node to an existing Constellation VPN network
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/connect (the `PostApiConstellationConnect` operationId).
|
|
PostApiConstellationConnectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationCreateWithBody Create a new Constellation VPN network
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/create (the `PostApiConstellationCreate` operationId).
|
|
PostApiConstellationCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationCreate Create a new Constellation VPN network
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/create (the `PostApiConstellationCreate` operationId).
|
|
PostApiConstellationCreate(ctx context.Context, body PostApiConstellationCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationDeployments List all cluster deployments
|
|
//
|
|
// Returns all deployment definitions from the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments (the `GetApiConstellationDeployments` operationId).
|
|
GetApiConstellationDeployments(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationDeploymentsWithBody Create a new cluster deployment
|
|
//
|
|
// Creates a new deployment definition in the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments (the `PostApiConstellationDeployments` operationId).
|
|
PostApiConstellationDeploymentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationDeployments Create a new cluster deployment
|
|
//
|
|
// Creates a new deployment definition in the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments (the `PostApiConstellationDeployments` operationId).
|
|
PostApiConstellationDeployments(ctx context.Context, body PostApiConstellationDeploymentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationDeploymentsHealth Cluster health for all deployments
|
|
//
|
|
// Returns desired vs. actual replica placement per deployment plus
|
|
// scheduler quarantine state (Pro feature). Read-only: safe to call
|
|
// from any node, not just the scheduler leader.
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments/health (the `GetApiConstellationDeploymentsHealth` operationId).
|
|
GetApiConstellationDeploymentsHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiConstellationDeploymentsName Delete a cluster deployment
|
|
//
|
|
// Removes a deployment from the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Corresponds with DELETE /api/constellation/deployments/{name} (the `DeleteApiConstellationDeploymentsName` operationId).
|
|
DeleteApiConstellationDeploymentsName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationDeploymentsName Get a cluster deployment by name
|
|
//
|
|
// Returns a single deployment definition (Pro feature).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments/{name} (the `GetApiConstellationDeploymentsName` operationId).
|
|
GetApiConstellationDeploymentsName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiConstellationDeploymentsNameWithBody Update a cluster deployment
|
|
//
|
|
// Updates an existing deployment definition (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/constellation/deployments/{name} (the `PutApiConstellationDeploymentsName` operationId).
|
|
PutApiConstellationDeploymentsNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiConstellationDeploymentsName Update a cluster deployment
|
|
//
|
|
// Updates an existing deployment definition (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/constellation/deployments/{name} (the `PutApiConstellationDeploymentsName` operationId).
|
|
PutApiConstellationDeploymentsName(ctx context.Context, name string, body PutApiConstellationDeploymentsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationDeploymentsNameUnbroke Clear a deployment's quarantine
|
|
//
|
|
// Removes a deployment from the scheduler's quarantine set so the
|
|
// next reconcile cycle attempts to place it again (Pro feature).
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments/{name}/unbroke (the `PostApiConstellationDeploymentsNameUnbroke` operationId).
|
|
PostApiConstellationDeploymentsNameUnbroke(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationDevices List Constellation devices for the current user (or all if admin)
|
|
//
|
|
// Corresponds with GET /api/constellation/devices (the `GetApiConstellationDevices` operationId).
|
|
GetApiConstellationDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationDevicesWithBody Create a new Constellation device and generate its certificates
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/devices (the `PostApiConstellationDevices` operationId).
|
|
PostApiConstellationDevicesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationDevices Create a new Constellation device and generate its certificates
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/devices (the `PostApiConstellationDevices` operationId).
|
|
PostApiConstellationDevices(ctx context.Context, body PostApiConstellationDevicesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationDevicesIdPing Ping a Constellation device to check reachability
|
|
//
|
|
// Corresponds with GET /api/constellation/devices/{id}/ping (the `GetApiConstellationDevicesIdPing` operationId).
|
|
GetApiConstellationDevicesIdPing(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationDns List all custom Constellation DNS entries
|
|
//
|
|
// Corresponds with GET /api/constellation/dns (the `GetApiConstellationDns` operationId).
|
|
GetApiConstellationDns(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationDnsWithBody Create a new Constellation DNS entry
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/dns (the `PostApiConstellationDns` operationId).
|
|
PostApiConstellationDnsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationDns Create a new Constellation DNS entry
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/dns (the `PostApiConstellationDns` operationId).
|
|
PostApiConstellationDns(ctx context.Context, body PostApiConstellationDnsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiConstellationDnsKey Delete a Constellation DNS entry by key
|
|
//
|
|
// Corresponds with DELETE /api/constellation/dns/{key} (the `DeleteApiConstellationDnsKey` operationId).
|
|
DeleteApiConstellationDnsKey(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationDnsKey Get a single Constellation DNS entry by key
|
|
//
|
|
// Corresponds with GET /api/constellation/dns/{key} (the `GetApiConstellationDnsKey` operationId).
|
|
GetApiConstellationDnsKey(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiConstellationDnsKeyWithBody Update an existing Constellation DNS entry
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/constellation/dns/{key} (the `PutApiConstellationDnsKey` operationId).
|
|
PutApiConstellationDnsKeyWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiConstellationDnsKey Update an existing Constellation DNS entry
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/constellation/dns/{key} (the `PutApiConstellationDnsKey` operationId).
|
|
PutApiConstellationDnsKey(ctx context.Context, key string, body PutApiConstellationDnsKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationEditDeviceWithBody Edit the current Constellation device properties
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/edit-device (the `PostApiConstellationEditDevice` operationId).
|
|
PostApiConstellationEditDeviceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationEditDevice Edit the current Constellation device properties
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/edit-device (the `PostApiConstellationEditDevice` operationId).
|
|
PostApiConstellationEditDevice(ctx context.Context, body PostApiConstellationEditDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationForceReform Force the constellation to re-form around this manager
|
|
//
|
|
// HA only. Bumps the op-log epoch, drops local JetStream state, blocks the other managers and restarts NATS, leaving this node writable in formation mode so replacements can be enrolled. Does not touch the CA, keys, config or device data.
|
|
//
|
|
// Corresponds with POST /api/constellation/force-reform (the `PostApiConstellationForceReform` operationId).
|
|
PostApiConstellationForceReform(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationGetNextIp Get the next available IP address in the Constellation CIDR range
|
|
//
|
|
// Corresponds with GET /api/constellation/get-next-ip (the `GetApiConstellationGetNextIp` operationId).
|
|
GetApiConstellationGetNextIp(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationLogs Get Nebula VPN service logs
|
|
//
|
|
// Corresponds with GET /api/constellation/logs (the `GetApiConstellationLogs` operationId).
|
|
GetApiConstellationLogs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationNatsStatus Detailed NATS/JetStream status for debugging
|
|
//
|
|
// Declared topology (role, HA mode), live NATS server/client/JetStream/KV state, connection counts and known managers.
|
|
//
|
|
// Corresponds with GET /api/constellation/nats-status (the `GetApiConstellationNatsStatus` operationId).
|
|
GetApiConstellationNatsStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiConstellationNodesNameUnbroke Clear a node's quarantine
|
|
//
|
|
// Removes a node from the scheduler's quarantine set and resets its
|
|
// fail streak so the next reconcile cycle is free to place work on it
|
|
// again (Pro feature).
|
|
//
|
|
// Corresponds with POST /api/constellation/nodes/{name}/unbroke (the `PostApiConstellationNodesNameUnbroke` operationId).
|
|
PostApiConstellationNodesNameUnbroke(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationPing Check if the NATS client connection is alive
|
|
//
|
|
// Corresponds with GET /api/constellation/ping (the `GetApiConstellationPing` operationId).
|
|
GetApiConstellationPing(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationPublicDevices List public information about all non-blocked Constellation devices
|
|
//
|
|
// Corresponds with GET /api/constellation/public-devices (the `GetApiConstellationPublicDevices` operationId).
|
|
GetApiConstellationPublicDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationReset Reset the Nebula VPN configuration
|
|
//
|
|
// Corresponds with GET /api/constellation/reset (the `GetApiConstellationReset` operationId).
|
|
GetApiConstellationReset(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationRestart Restart the Nebula VPN service and HTTP server
|
|
//
|
|
// Corresponds with GET /api/constellation/restart (the `GetApiConstellationRestart` operationId).
|
|
GetApiConstellationRestart(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiConstellationTunnels List all active Constellation tunnels
|
|
//
|
|
// Corresponds with GET /api/constellation/tunnels (the `GetApiConstellationTunnels` operationId).
|
|
GetApiConstellationTunnels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiCronWithBody List or create CRON job configurations
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/cron (the `GetApiCron` operationId).
|
|
GetApiCronWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiCron List or create CRON job configurations
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/cron (the `GetApiCron` operationId).
|
|
GetApiCron(ctx context.Context, body GetApiCronJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiCronWithBody List or create CRON job configurations
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/cron (the `PostApiCron` operationId).
|
|
PostApiCronWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiCron List or create CRON job configurations
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/cron (the `PostApiCron` operationId).
|
|
PostApiCron(ctx context.Context, body PostApiCronJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiCronNameWithBody Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/cron/{name} (the `DeleteApiCronName` operationId).
|
|
DeleteApiCronNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiCronName Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/cron/{name} (the `DeleteApiCronName` operationId).
|
|
DeleteApiCronName(ctx context.Context, name string, body DeleteApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiCronNameWithBody Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/cron/{name} (the `GetApiCronName` operationId).
|
|
GetApiCronNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiCronName Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/cron/{name} (the `GetApiCronName` operationId).
|
|
GetApiCronName(ctx context.Context, name string, body GetApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiCronNameWithBody Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/cron/{name} (the `PutApiCronName` operationId).
|
|
PutApiCronNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiCronName Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/cron/{name} (the `PutApiCronName` operationId).
|
|
PutApiCronName(ctx context.Context, name string, body PutApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiDashboard Get dashboard data
|
|
//
|
|
// Returns dashboard route information with container status for SERVAPP routes.
|
|
//
|
|
// Corresponds with GET /api/dashboard (the `GetApiDashboard` operationId).
|
|
GetApiDashboard(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiDisks List all disks
|
|
//
|
|
// Corresponds with GET /api/disks (the `GetApiDisks` operationId).
|
|
GetApiDisks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiDisksFormatWithBody Format a disk or partition
|
|
//
|
|
// Formats the specified disk with the given filesystem format. Requires password confirmation. Streams progress output.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/disks/format (the `PostApiDisksFormat` operationId).
|
|
PostApiDisksFormatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiDisksFormat Format a disk or partition
|
|
//
|
|
// Formats the specified disk with the given filesystem format. Requires password confirmation. Streams progress output.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/disks/format (the `PostApiDisksFormat` operationId).
|
|
PostApiDisksFormat(ctx context.Context, body PostApiDisksFormatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiDns Resolve DNS for a URL
|
|
//
|
|
// Performs a DNS lookup for the given URL and returns the resolved IPv4 address.
|
|
//
|
|
// Corresponds with GET /api/dns (the `GetApiDns` operationId).
|
|
GetApiDns(ctx context.Context, params *GetApiDnsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiDnsCheck Check DNS configuration for a URL
|
|
//
|
|
// Verifies that DNS is correctly configured for the given URL.
|
|
//
|
|
// Corresponds with GET /api/dns-check (the `GetApiDnsCheck` operationId).
|
|
GetApiDnsCheck(ctx context.Context, params *GetApiDnsCheckParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiDockerServiceWithBody Create a Docker service (compose-like) with networks, volumes, and containers
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/docker-service (the `PostApiDockerService` operationId).
|
|
PostApiDockerServiceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiDockerService Create a Docker service (compose-like) with networks, volumes, and containers
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/docker-service (the `PostApiDockerService` operationId).
|
|
PostApiDockerService(ctx context.Context, body PostApiDockerServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiEvents List events with filtering and pagination
|
|
//
|
|
// Corresponds with GET /api/events (the `GetApiEvents` operationId).
|
|
GetApiEvents(ctx context.Context, params *GetApiEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiFavicon Get favicon for a URL
|
|
//
|
|
// Fetches and caches the favicon for the given URL, returning it as an image
|
|
//
|
|
// Corresponds with GET /api/favicon (the `GetApiFavicon` operationId).
|
|
GetApiFavicon(ctx context.Context, params *GetApiFaviconParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiForceServerUpdate Force check for server updates
|
|
//
|
|
// Triggers a manual check for available server updates.
|
|
//
|
|
// Corresponds with POST /api/force-server-update (the `PostApiForceServerUpdate` operationId).
|
|
PostApiForceServerUpdate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiGetBackup Get backup file
|
|
//
|
|
// Returns the backup cosmos-compose JSON file.
|
|
//
|
|
// Corresponds with GET /api/get-backup (the `GetApiGetBackup` operationId).
|
|
GetApiGetBackup(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiGroups List all groups
|
|
//
|
|
// Returns all custom role groups (role ID >= 3).
|
|
//
|
|
// Corresponds with GET /api/groups (the `GetApiGroups` operationId).
|
|
GetApiGroups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiGroupsWithBody Create a new group
|
|
//
|
|
// Creates a new custom role group with name and permissions (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/groups (the `PostApiGroups` operationId).
|
|
PostApiGroupsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiGroups Create a new group
|
|
//
|
|
// Creates a new custom role group with name and permissions (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/groups (the `PostApiGroups` operationId).
|
|
PostApiGroups(ctx context.Context, body PostApiGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiGroupsId Delete a group
|
|
//
|
|
// Deletes a custom role group. Fails if users are still assigned to it. (Pro feature)
|
|
//
|
|
// Corresponds with DELETE /api/groups/{id} (the `DeleteApiGroupsId` operationId).
|
|
DeleteApiGroupsId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiGroupsIdWithBody Update a group
|
|
//
|
|
// Updates an existing group's name or permissions (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/groups/{id} (the `PutApiGroupsId` operationId).
|
|
PutApiGroupsIdWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiGroupsId Update a group
|
|
//
|
|
// Updates an existing group's name or permissions (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/groups/{id} (the `PutApiGroupsId` operationId).
|
|
PutApiGroupsId(ctx context.Context, id int, body PutApiGroupsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiImageName Get an uploaded image
|
|
//
|
|
// Returns a previously uploaded image by name.
|
|
//
|
|
// Corresponds with GET /api/image/{name} (the `GetApiImageName` operationId).
|
|
GetApiImageName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiImages Inspect a Docker image by name
|
|
//
|
|
// Corresponds with GET /api/images (the `GetApiImages` operationId).
|
|
GetApiImages(ctx context.Context, params *GetApiImagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiImagesPull Pull a Docker image from a registry
|
|
//
|
|
// Corresponds with GET /api/images/pull (the `GetApiImagesPull` operationId).
|
|
GetApiImagesPull(ctx context.Context, params *GetApiImagesPullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiImagesPullIfMissing Pull a Docker image only if it is not already present locally
|
|
//
|
|
// Corresponds with GET /api/images/pull-if-missing (the `GetApiImagesPullIfMissing` operationId).
|
|
GetApiImagesPullIfMissing(ctx context.Context, params *GetApiImagesPullIfMissingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiInviteWithBody Resend invite link
|
|
//
|
|
// Generates a new registration key and optionally sends an invite or password reset email.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/invite (the `PostApiInvite` operationId).
|
|
PostApiInviteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiInvite Resend invite link
|
|
//
|
|
// Generates a new registration key and optionally sends an invite or password reset email.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/invite (the `PostApiInvite` operationId).
|
|
PostApiInvite(ctx context.Context, body PostApiInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiJobs List all scheduled jobs
|
|
//
|
|
// Corresponds with GET /api/jobs (the `GetApiJobs` operationId).
|
|
GetApiJobs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiJobsDeleteWithBody Delete a job from the CRON configuration
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/delete (the `PostApiJobsDelete` operationId).
|
|
PostApiJobsDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiJobsDelete Delete a job from the CRON configuration
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/delete (the `PostApiJobsDelete` operationId).
|
|
PostApiJobsDelete(ctx context.Context, body PostApiJobsDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiJobsGetWithBody Get details and logs of a specific job
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/get (the `PostApiJobsGet` operationId).
|
|
PostApiJobsGetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiJobsGet Get details and logs of a specific job
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/get (the `PostApiJobsGet` operationId).
|
|
PostApiJobsGet(ctx context.Context, body PostApiJobsGetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiJobsRunWithBody Manually trigger a job to run
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/run (the `PostApiJobsRun` operationId).
|
|
PostApiJobsRunWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiJobsRun Manually trigger a job to run
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/run (the `PostApiJobsRun` operationId).
|
|
PostApiJobsRun(ctx context.Context, body PostApiJobsRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiJobsRunning List currently running jobs
|
|
//
|
|
// Corresponds with GET /api/jobs/running (the `GetApiJobsRunning` operationId).
|
|
GetApiJobsRunning(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiJobsStopWithBody Stop a running job
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/stop (the `PostApiJobsStop` operationId).
|
|
PostApiJobsStopWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiJobsStop Stop a running job
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/stop (the `PostApiJobsStop` operationId).
|
|
PostApiJobsStop(ctx context.Context, body PostApiJobsStopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiListDir List the contents of a directory
|
|
//
|
|
// Corresponds with GET /api/list-dir (the `GetApiListDir` operationId).
|
|
GetApiListDir(ctx context.Context, params *GetApiListDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiListMetrics List all available metric keys and their labels
|
|
//
|
|
// Corresponds with GET /api/list-metrics (the `GetApiListMetrics` operationId).
|
|
GetApiListMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiLoginWithBody User login
|
|
//
|
|
// Authenticates a user with nickname and password, sets JWT cookie on success
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
|
|
PostApiLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiLogin User login
|
|
//
|
|
// Authenticates a user with nickname and password, sets JWT cookie on success
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
|
|
PostApiLogin(ctx context.Context, body PostApiLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiLogout User logout
|
|
//
|
|
// Logs out the current user by clearing authentication cookies.
|
|
//
|
|
// Corresponds with GET /api/logout (the `GetApiLogout` operationId).
|
|
GetApiLogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiMarkets Get the app marketplace listings
|
|
//
|
|
// Returns all marketplace sources and their applications, plus the showcase from cosmos-cloud.
|
|
//
|
|
// Corresponds with GET /api/markets (the `GetApiMarkets` operationId).
|
|
GetApiMarkets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiMe Get current user info
|
|
//
|
|
// Returns the profile information of the currently authenticated user.
|
|
//
|
|
// Corresponds with GET /api/me (the `GetApiMe` operationId).
|
|
GetApiMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiMergeWithBody Merge multiple filesystems using MergerFS
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/merge (the `PostApiMerge` operationId).
|
|
PostApiMergeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiMerge Merge multiple filesystems using MergerFS
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/merge (the `PostApiMerge` operationId).
|
|
PostApiMerge(ctx context.Context, body PostApiMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiMetrics Get aggregated metrics data
|
|
//
|
|
// Corresponds with GET /api/metrics (the `GetApiMetrics` operationId).
|
|
GetApiMetrics(ctx context.Context, params *GetApiMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiMfaWithBody Reset 2FA for a user
|
|
//
|
|
// Removes the 2FA key for a specified user (admin operation).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/mfa (the `DeleteApiMfa` operationId).
|
|
DeleteApiMfaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiMfa Reset 2FA for a user
|
|
//
|
|
// Removes the 2FA key for a specified user (admin operation).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/mfa (the `DeleteApiMfa` operationId).
|
|
DeleteApiMfa(ctx context.Context, body DeleteApiMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiMfa Generate new 2FA key
|
|
//
|
|
// Generates a new TOTP key for the current user and returns the provisioning URL.
|
|
//
|
|
// Corresponds with GET /api/mfa (the `GetApiMfa` operationId).
|
|
GetApiMfa(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiMfaWithBody Verify 2FA token
|
|
//
|
|
// Validates a TOTP token for the current user to complete multi-factor authentication.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/mfa (the `PostApiMfa` operationId).
|
|
PostApiMfaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiMfa Verify 2FA token
|
|
//
|
|
// Validates a TOTP token for the current user to complete multi-factor authentication.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/mfa (the `PostApiMfa` operationId).
|
|
PostApiMfa(ctx context.Context, body PostApiMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiMigrateHostWithBody Migrate Cosmos container to host network mode
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/migrate-host (the `PostApiMigrateHost` operationId).
|
|
PostApiMigrateHostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiMigrateHost Migrate Cosmos container to host network mode
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/migrate-host (the `PostApiMigrateHost` operationId).
|
|
PostApiMigrateHost(ctx context.Context, body PostApiMigrateHostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiMountWithBody Mount a filesystem
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/mount (the `PostApiMount` operationId).
|
|
PostApiMountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiMount Mount a filesystem
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/mount (the `PostApiMount` operationId).
|
|
PostApiMount(ctx context.Context, body PostApiMountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiMounts List all mounted filesystems
|
|
//
|
|
// Corresponds with GET /api/mounts (the `GetApiMounts` operationId).
|
|
GetApiMounts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiNetworkNetworkID Delete a Docker network by ID
|
|
//
|
|
// Corresponds with DELETE /api/network/{networkID} (the `DeleteApiNetworkNetworkID` operationId).
|
|
DeleteApiNetworkNetworkID(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiNetworks List all Docker networks
|
|
//
|
|
// Corresponds with GET /api/networks (the `GetApiNetworks` operationId).
|
|
GetApiNetworks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiNetworksWithBody Create a new Docker network
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/networks (the `PostApiNetworks` operationId).
|
|
PostApiNetworksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiNetworks Create a new Docker network
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/networks (the `PostApiNetworks` operationId).
|
|
PostApiNetworks(ctx context.Context, body PostApiNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiNewDir Create a new folder
|
|
//
|
|
// Corresponds with POST /api/new-dir (the `PostApiNewDir` operationId).
|
|
PostApiNewDir(ctx context.Context, params *PostApiNewDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiNewInstallWithBody Process new installation steps
|
|
//
|
|
// Handles multi-step server installation including database setup, HTTPS configuration, and admin user creation
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/newInstall (the `PostApiNewInstall` operationId).
|
|
PostApiNewInstallWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiNewInstall Process new installation steps
|
|
//
|
|
// Handles multi-step server installation including database setup, HTTPS configuration, and admin user creation
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/newInstall (the `PostApiNewInstall` operationId).
|
|
PostApiNewInstall(ctx context.Context, body PostApiNewInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiNotifications Get notifications for the authenticated user
|
|
//
|
|
// Corresponds with GET /api/notifications (the `GetApiNotifications` operationId).
|
|
GetApiNotifications(ctx context.Context, params *GetApiNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiNotificationsRead Mark notifications as read
|
|
//
|
|
// Corresponds with GET /api/notifications/read (the `GetApiNotificationsRead` operationId).
|
|
GetApiNotificationsRead(ctx context.Context, params *GetApiNotificationsReadParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiOpenid List all OpenID clients
|
|
//
|
|
// Returns all configured OpenID Connect client configurations.
|
|
//
|
|
// Corresponds with GET /api/openid (the `GetApiOpenid` operationId).
|
|
GetApiOpenid(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiOpenidWithBody Create an OpenID client
|
|
//
|
|
// Creates a new OpenID Connect client configuration.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/openid (the `PostApiOpenid` operationId).
|
|
PostApiOpenidWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiOpenid Create an OpenID client
|
|
//
|
|
// Creates a new OpenID Connect client configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/openid (the `PostApiOpenid` operationId).
|
|
PostApiOpenid(ctx context.Context, body PostApiOpenidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiOpenidId Delete an OpenID client
|
|
//
|
|
// Removes an OpenID Connect client configuration by ID.
|
|
//
|
|
// Corresponds with DELETE /api/openid/{id} (the `DeleteApiOpenidId` operationId).
|
|
DeleteApiOpenidId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiOpenidId Get an OpenID client by ID
|
|
//
|
|
// Returns a single OpenID Connect client configuration.
|
|
//
|
|
// Corresponds with GET /api/openid/{id} (the `GetApiOpenidId` operationId).
|
|
GetApiOpenidId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiOpenidIdWithBody Update an OpenID client
|
|
//
|
|
// Replaces an existing OpenID Connect client configuration.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/openid/{id} (the `PutApiOpenidId` operationId).
|
|
PutApiOpenidIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiOpenidId Update an OpenID client
|
|
//
|
|
// Replaces an existing OpenID Connect client configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/openid/{id} (the `PutApiOpenidId` operationId).
|
|
PutApiOpenidId(ctx context.Context, id string, body PutApiOpenidIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiPasswordResetWithBody Request a password reset
|
|
//
|
|
// Sends a password reset email to the user if email is configured.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/password-reset (the `PostApiPasswordReset` operationId).
|
|
PostApiPasswordResetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiPasswordReset Request a password reset
|
|
//
|
|
// Sends a password reset email to the user if email is configured.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/password-reset (the `PostApiPasswordReset` operationId).
|
|
PostApiPasswordReset(ctx context.Context, body PostApiPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiPing Ping a URL
|
|
//
|
|
// Checks if a URL is reachable and returns a non-5xx response.
|
|
//
|
|
// Corresponds with GET /api/ping (the `GetApiPing` operationId).
|
|
GetApiPing(ctx context.Context, params *GetApiPingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiRcloneRestart Restart all RClone remote storage mounts
|
|
//
|
|
// Corresponds with GET /api/rclone-restart (the `GetApiRcloneRestart` operationId).
|
|
GetApiRcloneRestart(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiRegisterWithBody Register a new user
|
|
//
|
|
// Completes user registration using a registration key (invite link).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/register (the `PostApiRegister` operationId).
|
|
PostApiRegisterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiRegister Register a new user
|
|
//
|
|
// Completes user registration using a registration key (invite link).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/register (the `PostApiRegister` operationId).
|
|
PostApiRegister(ctx context.Context, body PostApiRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiResetMetrics Reset all metrics and events data
|
|
//
|
|
// Corresponds with GET /api/reset-metrics (the `GetApiResetMetrics` operationId).
|
|
GetApiResetMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiRestart Restart the server
|
|
//
|
|
// Triggers a graceful server restart.
|
|
//
|
|
// Corresponds with GET /api/restart (the `GetApiRestart` operationId).
|
|
GetApiRestart(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiRestartServer Restart the host machine
|
|
//
|
|
// Triggers a restart of the host machine (not available when running inside a container).
|
|
//
|
|
// Corresponds with GET /api/restart-server (the `GetApiRestartServer` operationId).
|
|
GetApiRestartServer(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiRoutes List all proxy routes
|
|
//
|
|
// Returns all configured proxy routes.
|
|
//
|
|
// Corresponds with GET /api/routes (the `GetApiRoutes` operationId).
|
|
GetApiRoutes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiRoutesWithBody Create a new proxy route
|
|
//
|
|
// Creates a new proxy route configuration.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/routes (the `PostApiRoutes` operationId).
|
|
PostApiRoutesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiRoutes Create a new proxy route
|
|
//
|
|
// Creates a new proxy route configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/routes (the `PostApiRoutes` operationId).
|
|
PostApiRoutes(ctx context.Context, body PostApiRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiRoutesName Delete a proxy route
|
|
//
|
|
// Removes a proxy route configuration by name.
|
|
//
|
|
// Corresponds with DELETE /api/routes/{name} (the `DeleteApiRoutesName` operationId).
|
|
DeleteApiRoutesName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiRoutesName Get a proxy route by name
|
|
//
|
|
// Returns a single proxy route configuration by its name.
|
|
//
|
|
// Corresponds with GET /api/routes/{name} (the `GetApiRoutesName` operationId).
|
|
GetApiRoutesName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiRoutesNameWithBody Update a proxy route
|
|
//
|
|
// Replaces an existing proxy route configuration by name.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/routes/{name} (the `PutApiRoutesName` operationId).
|
|
PutApiRoutesNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutApiRoutesName Update a proxy route
|
|
//
|
|
// Replaces an existing proxy route configuration by name.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/routes/{name} (the `PutApiRoutesName` operationId).
|
|
PutApiRoutesName(ctx context.Context, name string, body PutApiRoutesNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiServapps List all Docker containers
|
|
//
|
|
// Corresponds with GET /api/servapps (the `GetApiServapps` operationId).
|
|
GetApiServapps(ctx context.Context, params *GetApiServappsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiServappsContainerId Inspect a single Docker container by ID
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/ (the `GetApiServappsContainerId` operationId).
|
|
GetApiServappsContainerId(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiServappsContainerIdAutoUpdateStatus Enable or disable auto-update for a Docker container
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/auto-update/{status} (the `GetApiServappsContainerIdAutoUpdateStatus` operationId).
|
|
GetApiServappsContainerIdAutoUpdateStatus(ctx context.Context, containerId string, status string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiServappsContainerIdCheckUpdate Check whether a container's image has a newer version available
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/check-update (the `GetApiServappsContainerIdCheckUpdate` operationId).
|
|
GetApiServappsContainerIdCheckUpdate(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiServappsContainerIdExport Export a container configuration as a service definition
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/export (the `GetApiServappsContainerIdExport` operationId).
|
|
GetApiServappsContainerIdExport(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiServappsContainerIdLogs Retrieve logs for a Docker container
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/logs (the `GetApiServappsContainerIdLogs` operationId).
|
|
GetApiServappsContainerIdLogs(ctx context.Context, containerId string, params *GetApiServappsContainerIdLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiServappsContainerIdManageAction Perform a management action on a Docker container
|
|
//
|
|
// Actions: stop, start, restart, kill, remove, pause, unpause, recreate, update
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/manage/{action} (the `GetApiServappsContainerIdManageAction` operationId).
|
|
GetApiServappsContainerIdManageAction(ctx context.Context, containerId string, action GetApiServappsContainerIdManageActionParamsAction, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiServappsContainerIdNetworkNetworkId Detach a Docker network from a container
|
|
//
|
|
// Corresponds with DELETE /api/servapps/{containerId}/network/{networkId} (the `DeleteApiServappsContainerIdNetworkNetworkId` operationId).
|
|
DeleteApiServappsContainerIdNetworkNetworkId(ctx context.Context, containerId string, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiServappsContainerIdNetworkNetworkId Attach a Docker network to a container
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/network/{networkId} (the `PostApiServappsContainerIdNetworkNetworkId` operationId).
|
|
PostApiServappsContainerIdNetworkNetworkId(ctx context.Context, containerId string, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiServappsContainerIdNetworks List all networks and the networks a container is connected to
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/networks (the `GetApiServappsContainerIdNetworks` operationId).
|
|
GetApiServappsContainerIdNetworks(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiServappsContainerIdSecureStatus Set or unset network isolation on a Docker container
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/secure/{status} (the `GetApiServappsContainerIdSecureStatus` operationId).
|
|
GetApiServappsContainerIdSecureStatus(ctx context.Context, containerId string, status string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiServappsContainerIdUpdateWithBody Update a Docker container's settings
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/update (the `PostApiServappsContainerIdUpdate` operationId).
|
|
PostApiServappsContainerIdUpdateWithBody(ctx context.Context, containerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiServappsContainerIdUpdate Update a Docker container's settings
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/update (the `PostApiServappsContainerIdUpdate` operationId).
|
|
PostApiServappsContainerIdUpdate(ctx context.Context, containerId string, body PostApiServappsContainerIdUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiSetupWithBody One-shot server provisioning
|
|
//
|
|
// Performs the entire initial setup in a single call: database, HTTPS, admin user, optional Constellation connect, and optional admin API token creation. Only available when the server is in NewInstall mode.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/setup (the `PostApiSetup` operationId).
|
|
PostApiSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiSetup One-shot server provisioning
|
|
//
|
|
// Performs the entire initial setup in a single call: database, HTTPS, admin user, optional Constellation connect, and optional admin API token creation. Only available when the server is in NewInstall mode.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/setup (the `PostApiSetup` operationId).
|
|
PostApiSetup(ctx context.Context, body PostApiSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiSmartDef Get SMART attribute definitions for ATA and NVMe drives
|
|
//
|
|
// Corresponds with GET /api/smart-def (the `GetApiSmartDef` operationId).
|
|
GetApiSmartDef(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiSnapraidWithBody List or create SnapRAID configurations
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/snapraid (the `GetApiSnapraid` operationId).
|
|
GetApiSnapraidWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiSnapraid List or create SnapRAID configurations
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/snapraid (the `GetApiSnapraid` operationId).
|
|
GetApiSnapraid(ctx context.Context, body GetApiSnapraidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiSnapraidWithBody List or create SnapRAID configurations
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/snapraid (the `PostApiSnapraid` operationId).
|
|
PostApiSnapraidWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiSnapraid List or create SnapRAID configurations
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/snapraid (the `PostApiSnapraid` operationId).
|
|
PostApiSnapraid(ctx context.Context, body PostApiSnapraidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiSnapraidNameWithBody Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/snapraid/{name} (the `DeleteApiSnapraidName` operationId).
|
|
DeleteApiSnapraidNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiSnapraidName Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/snapraid/{name} (the `DeleteApiSnapraidName` operationId).
|
|
DeleteApiSnapraidName(ctx context.Context, name string, body DeleteApiSnapraidNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiSnapraidNameWithBody Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/snapraid/{name} (the `PostApiSnapraidName` operationId).
|
|
PostApiSnapraidNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiSnapraidName Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/snapraid/{name} (the `PostApiSnapraidName` operationId).
|
|
PostApiSnapraidName(ctx context.Context, name string, body PostApiSnapraidNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiSnapraidNameAction Run a SnapRAID action (sync, scrub, fix, enable, disable)
|
|
//
|
|
// Corresponds with GET /api/snapraid/{name}/{action} (the `GetApiSnapraidNameAction` operationId).
|
|
GetApiSnapraidNameAction(ctx context.Context, name string, action GetApiSnapraidNameActionParamsAction, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiStatus Get server status
|
|
//
|
|
// Returns the current server status including configuration, resource info, and system state
|
|
//
|
|
// Corresponds with GET /api/status (the `GetApiStatus` operationId).
|
|
GetApiStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiSudoWithBody Elevate to sudo mode
|
|
//
|
|
// Re-authenticates the user with their password to grant elevated (sudo) permissions.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/sudo (the `PostApiSudo` operationId).
|
|
PostApiSudoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiSudo Elevate to sudo mode
|
|
//
|
|
// Re-authenticates the user with their password to grant elevated (sudo) permissions.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/sudo (the `PostApiSudo` operationId).
|
|
PostApiSudo(ctx context.Context, body PostApiSudoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiUnmountWithBody Unmount a filesystem
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/unmount (the `PostApiUnmount` operationId).
|
|
PostApiUnmountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiUnmount Unmount a filesystem
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/unmount (the `PostApiUnmount` operationId).
|
|
PostApiUnmount(ctx context.Context, body PostApiUnmountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiUploadNameWithBody Upload an image
|
|
//
|
|
// Uploads an image file to the server (supports jpg, jpeg, png, gif, bmp, svg, webp, tiff, avif)
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/upload/{name} (the `PostApiUploadName` operationId).
|
|
PostApiUploadNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiUsers List all users
|
|
//
|
|
// Returns a list of all users with optional limit.
|
|
//
|
|
// Corresponds with GET /api/users (the `GetApiUsers` operationId).
|
|
GetApiUsers(ctx context.Context, params *GetApiUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiUsersWithBody Create a new user
|
|
//
|
|
// Creates a new user account with a registration key for invite-based onboarding.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/users (the `PostApiUsers` operationId).
|
|
PostApiUsersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiUsers Create a new user
|
|
//
|
|
// Creates a new user account with a registration key for invite-based onboarding.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/users (the `PostApiUsers` operationId).
|
|
PostApiUsers(ctx context.Context, body PostApiUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiUsersNickname Delete a user
|
|
//
|
|
// Deletes a user account by nickname.
|
|
//
|
|
// Corresponds with DELETE /api/users/{nickname} (the `DeleteApiUsersNickname` operationId).
|
|
DeleteApiUsersNickname(ctx context.Context, nickname string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiUsersNickname Get a user by nickname
|
|
//
|
|
// Returns user details for the specified nickname.
|
|
//
|
|
// Corresponds with GET /api/users/{nickname} (the `GetApiUsersNickname` operationId).
|
|
GetApiUsersNickname(ctx context.Context, nickname string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PatchApiUsersNicknameWithBody Edit a user
|
|
//
|
|
// Updates user details such as email and role.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PATCH /api/users/{nickname} (the `PatchApiUsersNickname` operationId).
|
|
PatchApiUsersNicknameWithBody(ctx context.Context, nickname string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PatchApiUsersNickname Edit a user
|
|
//
|
|
// Updates user details such as email and role.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PATCH /api/users/{nickname} (the `PatchApiUsersNickname` operationId).
|
|
PatchApiUsersNickname(ctx context.Context, nickname string, body PatchApiUsersNicknameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteApiVolumeVolumeName Delete a Docker volume by name
|
|
//
|
|
// Corresponds with DELETE /api/volume/{volumeName} (the `DeleteApiVolumeVolumeName` operationId).
|
|
DeleteApiVolumeVolumeName(ctx context.Context, volumeName string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApiVolumes List all Docker volumes
|
|
//
|
|
// Corresponds with GET /api/volumes (the `GetApiVolumes` operationId).
|
|
GetApiVolumes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiVolumesWithBody Create a new Docker volume
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/volumes (the `PostApiVolumes` operationId).
|
|
PostApiVolumesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostApiVolumes Create a new Docker volume
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/volumes (the `PostApiVolumes` operationId).
|
|
PostApiVolumes(ctx context.Context, body PostApiVolumesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetLogo Get Cosmos logo
|
|
//
|
|
// Returns the Cosmos server logo as a PNG image.
|
|
//
|
|
// Corresponds with GET /logo (the `GetLogo` operationId).
|
|
GetLogo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostRcloneConfigCreateWithBody Create a new RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /rclone/config/create (the `PostRcloneConfigCreate` operationId).
|
|
PostRcloneConfigCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostRcloneConfigCreate Create a new RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /rclone/config/create (the `PostRcloneConfigCreate` operationId).
|
|
PostRcloneConfigCreate(ctx context.Context, body PostRcloneConfigCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteRcloneConfigDeleteWithBody Delete an RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /rclone/config/delete (the `DeleteRcloneConfigDelete` operationId).
|
|
DeleteRcloneConfigDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteRcloneConfigDelete Delete an RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /rclone/config/delete (the `DeleteRcloneConfigDelete` operationId).
|
|
DeleteRcloneConfigDelete(ctx context.Context, body DeleteRcloneConfigDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetRcloneConfigDump Dump the full RClone configuration
|
|
//
|
|
// Corresponds with GET /rclone/config/dump (the `GetRcloneConfigDump` operationId).
|
|
GetRcloneConfigDump(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetRcloneConfigListremotes List RClone remotes (name and type only, no credentials)
|
|
//
|
|
// Corresponds with GET /rclone/config/listremotes (the `GetRcloneConfigListremotes` operationId).
|
|
GetRcloneConfigListremotes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostRcloneConfigSave Save the RClone configuration
|
|
//
|
|
// Corresponds with POST /rclone/config/save (the `PostRcloneConfigSave` operationId).
|
|
PostRcloneConfigSave(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutRcloneConfigUpdateWithBody Update an existing RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /rclone/config/update (the `PutRcloneConfigUpdate` operationId).
|
|
PutRcloneConfigUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PutRcloneConfigUpdate Update an existing RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /rclone/config/update (the `PutRcloneConfigUpdate` operationId).
|
|
PutRcloneConfigUpdate(ctx context.Context, body PutRcloneConfigUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetRcloneCoreStats Get global RClone transfer stats
|
|
//
|
|
// Corresponds with GET /rclone/core/stats (the `GetRcloneCoreStats` operationId).
|
|
GetRcloneCoreStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostRcloneOperationsAboutWithBody Get storage usage info for a remote (total, used, free)
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /rclone/operations/about (the `PostRcloneOperationsAbout` operationId).
|
|
PostRcloneOperationsAboutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostRcloneOperationsAbout Get storage usage info for a remote (total, used, free)
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /rclone/operations/about (the `PostRcloneOperationsAbout` operationId).
|
|
PostRcloneOperationsAbout(ctx context.Context, body PostRcloneOperationsAboutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostRcloneVfsStatsWithBody Get VFS stats for a mounted remote
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /rclone/vfs/stats (the `PostRcloneVfsStats` operationId).
|
|
PostRcloneVfsStatsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PostRcloneVfsStats Get VFS stats for a mounted remote
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /rclone/vfs/stats (the `PostRcloneVfsStats` operationId).
|
|
PostRcloneVfsStats(ctx context.Context, body PostRcloneVfsStatsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
}
|
|
|
|
// GetLogs Download server logs
|
|
//
|
|
// Returns the server log file as a plain text attachment.
|
|
//
|
|
// Corresponds with GET /_logs (the `GetLogs` operationId).
|
|
func (c *Client) GetLogs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLogsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiMemory Get internal memory status
|
|
//
|
|
// Returns memory usage details for internal caches and buffers.
|
|
//
|
|
// Corresponds with GET /api/_memory (the `GetApiMemory` operationId).
|
|
func (c *Client) GetApiMemory(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiMemoryRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiAlertsWithBody List or create monitoring alerts
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/alerts (the `GetApiAlerts` operationId).
|
|
func (c *Client) GetApiAlertsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiAlertsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiAlerts List or create monitoring alerts
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/alerts (the `GetApiAlerts` operationId).
|
|
func (c *Client) GetApiAlerts(ctx context.Context, body GetApiAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiAlertsRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiAlertsWithBody List or create monitoring alerts
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/alerts (the `PostApiAlerts` operationId).
|
|
func (c *Client) PostApiAlertsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiAlertsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiAlerts List or create monitoring alerts
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/alerts (the `PostApiAlerts` operationId).
|
|
func (c *Client) PostApiAlerts(ctx context.Context, body PostApiAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiAlertsRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiAlertsNameWithBody Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/alerts/{name} (the `DeleteApiAlertsName` operationId).
|
|
func (c *Client) DeleteApiAlertsNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiAlertsNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiAlertsName Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/alerts/{name} (the `DeleteApiAlertsName` operationId).
|
|
func (c *Client) DeleteApiAlertsName(ctx context.Context, name string, body DeleteApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiAlertsNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiAlertsNameWithBody Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/alerts/{name} (the `GetApiAlertsName` operationId).
|
|
func (c *Client) GetApiAlertsNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiAlertsNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiAlertsName Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/alerts/{name} (the `GetApiAlertsName` operationId).
|
|
func (c *Client) GetApiAlertsName(ctx context.Context, name string, body GetApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiAlertsNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiAlertsNameWithBody Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/alerts/{name} (the `PutApiAlertsName` operationId).
|
|
func (c *Client) PutApiAlertsNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiAlertsNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiAlertsName Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/alerts/{name} (the `PutApiAlertsName` operationId).
|
|
func (c *Client) PutApiAlertsName(ctx context.Context, name string, body PutApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiAlertsNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiApiTokensWithBody Delete an API token
|
|
//
|
|
// Removes an API token by name.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/api-tokens (the `DeleteApiApiTokens` operationId).
|
|
func (c *Client) DeleteApiApiTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiApiTokensRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiApiTokens Delete an API token
|
|
//
|
|
// Removes an API token by name.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/api-tokens (the `DeleteApiApiTokens` operationId).
|
|
func (c *Client) DeleteApiApiTokens(ctx context.Context, body DeleteApiApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiApiTokensRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiApiTokens List all API tokens
|
|
//
|
|
// Returns all configured API tokens (without the actual token hashes).
|
|
//
|
|
// Corresponds with GET /api/api-tokens (the `GetApiApiTokens` operationId).
|
|
func (c *Client) GetApiApiTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiApiTokensRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiApiTokensWithBody Create a new API token
|
|
//
|
|
// Generates a new API token with the specified permissions and returns the raw token (shown only once).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/api-tokens (the `PostApiApiTokens` operationId).
|
|
func (c *Client) PostApiApiTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiApiTokensRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiApiTokens Create a new API token
|
|
//
|
|
// Generates a new API token with the specified permissions and returns the raw token (shown only once).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/api-tokens (the `PostApiApiTokens` operationId).
|
|
func (c *Client) PostApiApiTokens(ctx context.Context, body PostApiApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiApiTokensRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiApiTokensNameWithBody Update an API token
|
|
//
|
|
// # Updates an existing API token's description, permissions, IP whitelist, or constellation restriction
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/api-tokens/{name} (the `PutApiApiTokensName` operationId).
|
|
func (c *Client) PutApiApiTokensNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiApiTokensNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiApiTokensName Update an API token
|
|
//
|
|
// # Updates an existing API token's description, permissions, IP whitelist, or constellation restriction
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/api-tokens/{name} (the `PutApiApiTokensName` operationId).
|
|
func (c *Client) PutApiApiTokensName(ctx context.Context, name string, body PutApiApiTokensNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiApiTokensNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiBackupsWithBody Create a new backup configuration
|
|
//
|
|
// Creates a backup config and initializes the repository if needed. Requires premium licence and non-container mode.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/backups (the `PostApiBackups` operationId).
|
|
func (c *Client) PostApiBackupsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiBackupsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiBackups Create a new backup configuration
|
|
//
|
|
// Creates a backup config and initializes the repository if needed. Requires premium licence and non-container mode.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/backups (the `PostApiBackups` operationId).
|
|
func (c *Client) PostApiBackups(ctx context.Context, body PostApiBackupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiBackupsRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiBackupsConfig List all backup configurations
|
|
//
|
|
// Returns a map of all backup configurations from the server config, keyed by backup name.
|
|
//
|
|
// Corresponds with GET /api/backups-config (the `GetApiBackupsConfig` operationId).
|
|
func (c *Client) GetApiBackupsConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiBackupsConfigRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiBackupsConfigName Get a single backup configuration by name
|
|
//
|
|
// Returns a single backup configuration from the server config.
|
|
//
|
|
// Corresponds with GET /api/backups-config/{name} (the `GetApiBackupsConfigName` operationId).
|
|
func (c *Client) GetApiBackupsConfigName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiBackupsConfigNameRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiBackupsRepository List all backup repositories with their lock status
|
|
//
|
|
// Corresponds with GET /api/backups-repository (the `GetApiBackupsRepository` operationId).
|
|
func (c *Client) GetApiBackupsRepository(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiBackupsRepositoryRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiBackupsRepositoryNameSnapshots List all snapshots in a backup repository (all backup tags)
|
|
//
|
|
// Corresponds with GET /api/backups-repository/{name}/snapshots (the `GetApiBackupsRepositoryNameSnapshots` operationId).
|
|
func (c *Client) GetApiBackupsRepositoryNameSnapshots(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiBackupsRepositoryNameSnapshotsRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiBackupsRepositoryNameStats Get repository statistics (size, file count, etc.)
|
|
//
|
|
// Corresponds with GET /api/backups-repository/{name}/stats (the `GetApiBackupsRepositoryNameStats` operationId).
|
|
func (c *Client) GetApiBackupsRepositoryNameStats(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiBackupsRepositoryNameStatsRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiBackupsEditWithBody Edit an existing backup configuration
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/backups/edit (the `PostApiBackupsEdit` operationId).
|
|
func (c *Client) PostApiBackupsEditWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiBackupsEditRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiBackupsEdit Edit an existing backup configuration
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/backups/edit (the `PostApiBackupsEdit` operationId).
|
|
func (c *Client) PostApiBackupsEdit(ctx context.Context, body PostApiBackupsEditJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiBackupsEditRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiBackupsName Remove a backup configuration and its snapshots
|
|
//
|
|
// Corresponds with DELETE /api/backups/{name} (the `DeleteApiBackupsName` operationId).
|
|
func (c *Client) DeleteApiBackupsName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiBackupsNameRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiBackupsNameRestoreWithBody Restore files from a backup snapshot
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/restore (the `PostApiBackupsNameRestore` operationId).
|
|
func (c *Client) PostApiBackupsNameRestoreWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiBackupsNameRestoreRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiBackupsNameRestore Restore files from a backup snapshot
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/restore (the `PostApiBackupsNameRestore` operationId).
|
|
func (c *Client) PostApiBackupsNameRestore(ctx context.Context, name string, body PostApiBackupsNameRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiBackupsNameRestoreRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiBackupsNameSnapshots List snapshots for a specific backup
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/snapshots (the `GetApiBackupsNameSnapshots` operationId).
|
|
func (c *Client) GetApiBackupsNameSnapshots(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiBackupsNameSnapshotsRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiBackupsNameUnlock Unlock a backup repository (remove stale locks)
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/unlock (the `PostApiBackupsNameUnlock` operationId).
|
|
func (c *Client) PostApiBackupsNameUnlock(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiBackupsNameUnlockRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiBackupsNameSnapshotFolders List folders in a backup snapshot
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/{snapshot}/folders (the `GetApiBackupsNameSnapshotFolders` operationId).
|
|
func (c *Client) GetApiBackupsNameSnapshotFolders(ctx context.Context, name string, snapshot string, params *GetApiBackupsNameSnapshotFoldersParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiBackupsNameSnapshotFoldersRequest(c.Server, name, snapshot, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiBackupsNameSnapshotForget Forget (delete) a specific snapshot from a backup repository
|
|
//
|
|
// Corresponds with DELETE /api/backups/{name}/{snapshot}/forget (the `DeleteApiBackupsNameSnapshotForget` operationId).
|
|
func (c *Client) DeleteApiBackupsNameSnapshotForget(ctx context.Context, name string, snapshot string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiBackupsNameSnapshotForgetRequest(c.Server, name, snapshot)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiBackupsNameSnapshotSubfolderRestoreSize Get restore size stats for a subfolder within a snapshot
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/{snapshot}/subfolder-restore-size (the `GetApiBackupsNameSnapshotSubfolderRestoreSize` operationId).
|
|
func (c *Client) GetApiBackupsNameSnapshotSubfolderRestoreSize(ctx context.Context, name string, snapshot string, params *GetApiBackupsNameSnapshotSubfolderRestoreSizeParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiBackupsNameSnapshotSubfolderRestoreSizeRequest(c.Server, name, snapshot, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiCanSendEmail Check if email sending is enabled
|
|
//
|
|
// Returns whether the server has email sending capabilities configured.
|
|
//
|
|
// Corresponds with GET /api/can-send-email (the `GetApiCanSendEmail` operationId).
|
|
func (c *Client) GetApiCanSendEmail(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiCanSendEmailRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConfig Get server configuration
|
|
//
|
|
// Returns the full server configuration (sensitive fields masked for non-credential users).
|
|
//
|
|
// Corresponds with GET /api/config (the `GetApiConfig` operationId).
|
|
func (c *Client) GetApiConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConfigRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PatchApiConfigWithBody Patch route configuration
|
|
//
|
|
// Performs route operations (add, replace, delete, move_up, move_down) on proxy routes
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PATCH /api/config (the `PatchApiConfig` operationId).
|
|
func (c *Client) PatchApiConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchApiConfigRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PatchApiConfig Patch route configuration
|
|
//
|
|
// Performs route operations (add, replace, delete, move_up, move_down) on proxy routes
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PATCH /api/config (the `PatchApiConfig` operationId).
|
|
func (c *Client) PatchApiConfig(ctx context.Context, body PatchApiConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchApiConfigRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiConfigWithBody Update server configuration
|
|
//
|
|
// Replaces the entire server configuration (masked credential fields are preserved from existing config).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/config (the `PutApiConfig` operationId).
|
|
func (c *Client) PutApiConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiConfigRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiConfig Update server configuration
|
|
//
|
|
// Replaces the entire server configuration (masked credential fields are preserved from existing config).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/config (the `PutApiConfig` operationId).
|
|
func (c *Client) PutApiConfig(ctx context.Context, body PutApiConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiConfigRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PatchApiConfigDnsWithBody Update DNS configuration
|
|
//
|
|
// # Patches DNS-related settings including port, fallback, blocklists, and custom entries
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PATCH /api/config/dns (the `PatchApiConfigDns` operationId).
|
|
func (c *Client) PatchApiConfigDnsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchApiConfigDnsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PatchApiConfigDns Update DNS configuration
|
|
//
|
|
// # Patches DNS-related settings including port, fallback, blocklists, and custom entries
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PATCH /api/config/dns (the `PatchApiConfigDns` operationId).
|
|
func (c *Client) PatchApiConfigDns(ctx context.Context, body PatchApiConfigDnsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchApiConfigDnsRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationBlockWithBody Block or unblock a Constellation device
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/block (the `PostApiConstellationBlock` operationId).
|
|
func (c *Client) PostApiConstellationBlockWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationBlockRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationBlock Block or unblock a Constellation device
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/block (the `PostApiConstellationBlock` operationId).
|
|
func (c *Client) PostApiConstellationBlock(ctx context.Context, body PostApiConstellationBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationBlockRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationConfig Get the current Nebula configuration
|
|
//
|
|
// Corresponds with GET /api/constellation/config (the `GetApiConstellationConfig` operationId).
|
|
func (c *Client) GetApiConstellationConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationConfigRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationConnectWithBody Connect this node to an existing Constellation VPN network
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/connect (the `PostApiConstellationConnect` operationId).
|
|
func (c *Client) PostApiConstellationConnectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationConnectRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationCreateWithBody Create a new Constellation VPN network
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/create (the `PostApiConstellationCreate` operationId).
|
|
func (c *Client) PostApiConstellationCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationCreateRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationCreate Create a new Constellation VPN network
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/create (the `PostApiConstellationCreate` operationId).
|
|
func (c *Client) PostApiConstellationCreate(ctx context.Context, body PostApiConstellationCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationCreateRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationDeployments List all cluster deployments
|
|
//
|
|
// Returns all deployment definitions from the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments (the `GetApiConstellationDeployments` operationId).
|
|
func (c *Client) GetApiConstellationDeployments(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationDeploymentsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationDeploymentsWithBody Create a new cluster deployment
|
|
//
|
|
// Creates a new deployment definition in the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments (the `PostApiConstellationDeployments` operationId).
|
|
func (c *Client) PostApiConstellationDeploymentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationDeploymentsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationDeployments Create a new cluster deployment
|
|
//
|
|
// Creates a new deployment definition in the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments (the `PostApiConstellationDeployments` operationId).
|
|
func (c *Client) PostApiConstellationDeployments(ctx context.Context, body PostApiConstellationDeploymentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationDeploymentsRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationDeploymentsHealth Cluster health for all deployments
|
|
//
|
|
// Returns desired vs. actual replica placement per deployment plus
|
|
// scheduler quarantine state (Pro feature). Read-only: safe to call
|
|
// from any node, not just the scheduler leader.
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments/health (the `GetApiConstellationDeploymentsHealth` operationId).
|
|
func (c *Client) GetApiConstellationDeploymentsHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationDeploymentsHealthRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiConstellationDeploymentsName Delete a cluster deployment
|
|
//
|
|
// Removes a deployment from the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Corresponds with DELETE /api/constellation/deployments/{name} (the `DeleteApiConstellationDeploymentsName` operationId).
|
|
func (c *Client) DeleteApiConstellationDeploymentsName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiConstellationDeploymentsNameRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationDeploymentsName Get a cluster deployment by name
|
|
//
|
|
// Returns a single deployment definition (Pro feature).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments/{name} (the `GetApiConstellationDeploymentsName` operationId).
|
|
func (c *Client) GetApiConstellationDeploymentsName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationDeploymentsNameRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiConstellationDeploymentsNameWithBody Update a cluster deployment
|
|
//
|
|
// Updates an existing deployment definition (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/constellation/deployments/{name} (the `PutApiConstellationDeploymentsName` operationId).
|
|
func (c *Client) PutApiConstellationDeploymentsNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiConstellationDeploymentsNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiConstellationDeploymentsName Update a cluster deployment
|
|
//
|
|
// Updates an existing deployment definition (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/constellation/deployments/{name} (the `PutApiConstellationDeploymentsName` operationId).
|
|
func (c *Client) PutApiConstellationDeploymentsName(ctx context.Context, name string, body PutApiConstellationDeploymentsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiConstellationDeploymentsNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationDeploymentsNameUnbroke Clear a deployment's quarantine
|
|
//
|
|
// Removes a deployment from the scheduler's quarantine set so the
|
|
// next reconcile cycle attempts to place it again (Pro feature).
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments/{name}/unbroke (the `PostApiConstellationDeploymentsNameUnbroke` operationId).
|
|
func (c *Client) PostApiConstellationDeploymentsNameUnbroke(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationDeploymentsNameUnbrokeRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationDevices List Constellation devices for the current user (or all if admin)
|
|
//
|
|
// Corresponds with GET /api/constellation/devices (the `GetApiConstellationDevices` operationId).
|
|
func (c *Client) GetApiConstellationDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationDevicesRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationDevicesWithBody Create a new Constellation device and generate its certificates
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/devices (the `PostApiConstellationDevices` operationId).
|
|
func (c *Client) PostApiConstellationDevicesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationDevicesRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationDevices Create a new Constellation device and generate its certificates
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/devices (the `PostApiConstellationDevices` operationId).
|
|
func (c *Client) PostApiConstellationDevices(ctx context.Context, body PostApiConstellationDevicesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationDevicesRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationDevicesIdPing Ping a Constellation device to check reachability
|
|
//
|
|
// Corresponds with GET /api/constellation/devices/{id}/ping (the `GetApiConstellationDevicesIdPing` operationId).
|
|
func (c *Client) GetApiConstellationDevicesIdPing(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationDevicesIdPingRequest(c.Server, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationDns List all custom Constellation DNS entries
|
|
//
|
|
// Corresponds with GET /api/constellation/dns (the `GetApiConstellationDns` operationId).
|
|
func (c *Client) GetApiConstellationDns(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationDnsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationDnsWithBody Create a new Constellation DNS entry
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/dns (the `PostApiConstellationDns` operationId).
|
|
func (c *Client) PostApiConstellationDnsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationDnsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationDns Create a new Constellation DNS entry
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/dns (the `PostApiConstellationDns` operationId).
|
|
func (c *Client) PostApiConstellationDns(ctx context.Context, body PostApiConstellationDnsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationDnsRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiConstellationDnsKey Delete a Constellation DNS entry by key
|
|
//
|
|
// Corresponds with DELETE /api/constellation/dns/{key} (the `DeleteApiConstellationDnsKey` operationId).
|
|
func (c *Client) DeleteApiConstellationDnsKey(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiConstellationDnsKeyRequest(c.Server, key)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationDnsKey Get a single Constellation DNS entry by key
|
|
//
|
|
// Corresponds with GET /api/constellation/dns/{key} (the `GetApiConstellationDnsKey` operationId).
|
|
func (c *Client) GetApiConstellationDnsKey(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationDnsKeyRequest(c.Server, key)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiConstellationDnsKeyWithBody Update an existing Constellation DNS entry
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/constellation/dns/{key} (the `PutApiConstellationDnsKey` operationId).
|
|
func (c *Client) PutApiConstellationDnsKeyWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiConstellationDnsKeyRequestWithBody(c.Server, key, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiConstellationDnsKey Update an existing Constellation DNS entry
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/constellation/dns/{key} (the `PutApiConstellationDnsKey` operationId).
|
|
func (c *Client) PutApiConstellationDnsKey(ctx context.Context, key string, body PutApiConstellationDnsKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiConstellationDnsKeyRequest(c.Server, key, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationEditDeviceWithBody Edit the current Constellation device properties
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/edit-device (the `PostApiConstellationEditDevice` operationId).
|
|
func (c *Client) PostApiConstellationEditDeviceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationEditDeviceRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationEditDevice Edit the current Constellation device properties
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/constellation/edit-device (the `PostApiConstellationEditDevice` operationId).
|
|
func (c *Client) PostApiConstellationEditDevice(ctx context.Context, body PostApiConstellationEditDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationEditDeviceRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationForceReform Force the constellation to re-form around this manager
|
|
//
|
|
// HA only. Bumps the op-log epoch, drops local JetStream state, blocks the other managers and restarts NATS, leaving this node writable in formation mode so replacements can be enrolled. Does not touch the CA, keys, config or device data.
|
|
//
|
|
// Corresponds with POST /api/constellation/force-reform (the `PostApiConstellationForceReform` operationId).
|
|
func (c *Client) PostApiConstellationForceReform(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationForceReformRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationGetNextIp Get the next available IP address in the Constellation CIDR range
|
|
//
|
|
// Corresponds with GET /api/constellation/get-next-ip (the `GetApiConstellationGetNextIp` operationId).
|
|
func (c *Client) GetApiConstellationGetNextIp(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationGetNextIpRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationLogs Get Nebula VPN service logs
|
|
//
|
|
// Corresponds with GET /api/constellation/logs (the `GetApiConstellationLogs` operationId).
|
|
func (c *Client) GetApiConstellationLogs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationLogsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationNatsStatus Detailed NATS/JetStream status for debugging
|
|
//
|
|
// Declared topology (role, HA mode), live NATS server/client/JetStream/KV state, connection counts and known managers.
|
|
//
|
|
// Corresponds with GET /api/constellation/nats-status (the `GetApiConstellationNatsStatus` operationId).
|
|
func (c *Client) GetApiConstellationNatsStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationNatsStatusRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiConstellationNodesNameUnbroke Clear a node's quarantine
|
|
//
|
|
// Removes a node from the scheduler's quarantine set and resets its
|
|
// fail streak so the next reconcile cycle is free to place work on it
|
|
// again (Pro feature).
|
|
//
|
|
// Corresponds with POST /api/constellation/nodes/{name}/unbroke (the `PostApiConstellationNodesNameUnbroke` operationId).
|
|
func (c *Client) PostApiConstellationNodesNameUnbroke(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiConstellationNodesNameUnbrokeRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationPing Check if the NATS client connection is alive
|
|
//
|
|
// Corresponds with GET /api/constellation/ping (the `GetApiConstellationPing` operationId).
|
|
func (c *Client) GetApiConstellationPing(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationPingRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationPublicDevices List public information about all non-blocked Constellation devices
|
|
//
|
|
// Corresponds with GET /api/constellation/public-devices (the `GetApiConstellationPublicDevices` operationId).
|
|
func (c *Client) GetApiConstellationPublicDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationPublicDevicesRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationReset Reset the Nebula VPN configuration
|
|
//
|
|
// Corresponds with GET /api/constellation/reset (the `GetApiConstellationReset` operationId).
|
|
func (c *Client) GetApiConstellationReset(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationResetRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationRestart Restart the Nebula VPN service and HTTP server
|
|
//
|
|
// Corresponds with GET /api/constellation/restart (the `GetApiConstellationRestart` operationId).
|
|
func (c *Client) GetApiConstellationRestart(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationRestartRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiConstellationTunnels List all active Constellation tunnels
|
|
//
|
|
// Corresponds with GET /api/constellation/tunnels (the `GetApiConstellationTunnels` operationId).
|
|
func (c *Client) GetApiConstellationTunnels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiConstellationTunnelsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiCronWithBody List or create CRON job configurations
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/cron (the `GetApiCron` operationId).
|
|
func (c *Client) GetApiCronWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiCronRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiCron List or create CRON job configurations
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/cron (the `GetApiCron` operationId).
|
|
func (c *Client) GetApiCron(ctx context.Context, body GetApiCronJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiCronRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiCronWithBody List or create CRON job configurations
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/cron (the `PostApiCron` operationId).
|
|
func (c *Client) PostApiCronWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiCronRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiCron List or create CRON job configurations
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/cron (the `PostApiCron` operationId).
|
|
func (c *Client) PostApiCron(ctx context.Context, body PostApiCronJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiCronRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiCronNameWithBody Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/cron/{name} (the `DeleteApiCronName` operationId).
|
|
func (c *Client) DeleteApiCronNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiCronNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiCronName Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/cron/{name} (the `DeleteApiCronName` operationId).
|
|
func (c *Client) DeleteApiCronName(ctx context.Context, name string, body DeleteApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiCronNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiCronNameWithBody Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/cron/{name} (the `GetApiCronName` operationId).
|
|
func (c *Client) GetApiCronNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiCronNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiCronName Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/cron/{name} (the `GetApiCronName` operationId).
|
|
func (c *Client) GetApiCronName(ctx context.Context, name string, body GetApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiCronNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiCronNameWithBody Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/cron/{name} (the `PutApiCronName` operationId).
|
|
func (c *Client) PutApiCronNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiCronNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiCronName Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/cron/{name} (the `PutApiCronName` operationId).
|
|
func (c *Client) PutApiCronName(ctx context.Context, name string, body PutApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiCronNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiDashboard Get dashboard data
|
|
//
|
|
// Returns dashboard route information with container status for SERVAPP routes.
|
|
//
|
|
// Corresponds with GET /api/dashboard (the `GetApiDashboard` operationId).
|
|
func (c *Client) GetApiDashboard(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiDashboardRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiDisks List all disks
|
|
//
|
|
// Corresponds with GET /api/disks (the `GetApiDisks` operationId).
|
|
func (c *Client) GetApiDisks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiDisksRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiDisksFormatWithBody Format a disk or partition
|
|
//
|
|
// Formats the specified disk with the given filesystem format. Requires password confirmation. Streams progress output.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/disks/format (the `PostApiDisksFormat` operationId).
|
|
func (c *Client) PostApiDisksFormatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiDisksFormatRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiDisksFormat Format a disk or partition
|
|
//
|
|
// Formats the specified disk with the given filesystem format. Requires password confirmation. Streams progress output.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/disks/format (the `PostApiDisksFormat` operationId).
|
|
func (c *Client) PostApiDisksFormat(ctx context.Context, body PostApiDisksFormatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiDisksFormatRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiDns Resolve DNS for a URL
|
|
//
|
|
// Performs a DNS lookup for the given URL and returns the resolved IPv4 address.
|
|
//
|
|
// Corresponds with GET /api/dns (the `GetApiDns` operationId).
|
|
func (c *Client) GetApiDns(ctx context.Context, params *GetApiDnsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiDnsRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiDnsCheck Check DNS configuration for a URL
|
|
//
|
|
// Verifies that DNS is correctly configured for the given URL.
|
|
//
|
|
// Corresponds with GET /api/dns-check (the `GetApiDnsCheck` operationId).
|
|
func (c *Client) GetApiDnsCheck(ctx context.Context, params *GetApiDnsCheckParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiDnsCheckRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiDockerServiceWithBody Create a Docker service (compose-like) with networks, volumes, and containers
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/docker-service (the `PostApiDockerService` operationId).
|
|
func (c *Client) PostApiDockerServiceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiDockerServiceRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiDockerService Create a Docker service (compose-like) with networks, volumes, and containers
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/docker-service (the `PostApiDockerService` operationId).
|
|
func (c *Client) PostApiDockerService(ctx context.Context, body PostApiDockerServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiDockerServiceRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiEvents List events with filtering and pagination
|
|
//
|
|
// Corresponds with GET /api/events (the `GetApiEvents` operationId).
|
|
func (c *Client) GetApiEvents(ctx context.Context, params *GetApiEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiEventsRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiFavicon Get favicon for a URL
|
|
//
|
|
// # Fetches and caches the favicon for the given URL, returning it as an image
|
|
//
|
|
// Corresponds with GET /api/favicon (the `GetApiFavicon` operationId).
|
|
func (c *Client) GetApiFavicon(ctx context.Context, params *GetApiFaviconParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiFaviconRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiForceServerUpdate Force check for server updates
|
|
//
|
|
// Triggers a manual check for available server updates.
|
|
//
|
|
// Corresponds with POST /api/force-server-update (the `PostApiForceServerUpdate` operationId).
|
|
func (c *Client) PostApiForceServerUpdate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiForceServerUpdateRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiGetBackup Get backup file
|
|
//
|
|
// Returns the backup cosmos-compose JSON file.
|
|
//
|
|
// Corresponds with GET /api/get-backup (the `GetApiGetBackup` operationId).
|
|
func (c *Client) GetApiGetBackup(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiGetBackupRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiGroups List all groups
|
|
//
|
|
// Returns all custom role groups (role ID >= 3).
|
|
//
|
|
// Corresponds with GET /api/groups (the `GetApiGroups` operationId).
|
|
func (c *Client) GetApiGroups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiGroupsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiGroupsWithBody Create a new group
|
|
//
|
|
// Creates a new custom role group with name and permissions (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/groups (the `PostApiGroups` operationId).
|
|
func (c *Client) PostApiGroupsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiGroupsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiGroups Create a new group
|
|
//
|
|
// Creates a new custom role group with name and permissions (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/groups (the `PostApiGroups` operationId).
|
|
func (c *Client) PostApiGroups(ctx context.Context, body PostApiGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiGroupsRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiGroupsId Delete a group
|
|
//
|
|
// Deletes a custom role group. Fails if users are still assigned to it. (Pro feature)
|
|
//
|
|
// Corresponds with DELETE /api/groups/{id} (the `DeleteApiGroupsId` operationId).
|
|
func (c *Client) DeleteApiGroupsId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiGroupsIdRequest(c.Server, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiGroupsIdWithBody Update a group
|
|
//
|
|
// Updates an existing group's name or permissions (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/groups/{id} (the `PutApiGroupsId` operationId).
|
|
func (c *Client) PutApiGroupsIdWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiGroupsIdRequestWithBody(c.Server, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiGroupsId Update a group
|
|
//
|
|
// Updates an existing group's name or permissions (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/groups/{id} (the `PutApiGroupsId` operationId).
|
|
func (c *Client) PutApiGroupsId(ctx context.Context, id int, body PutApiGroupsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiGroupsIdRequest(c.Server, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiImageName Get an uploaded image
|
|
//
|
|
// Returns a previously uploaded image by name.
|
|
//
|
|
// Corresponds with GET /api/image/{name} (the `GetApiImageName` operationId).
|
|
func (c *Client) GetApiImageName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiImageNameRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiImages Inspect a Docker image by name
|
|
//
|
|
// Corresponds with GET /api/images (the `GetApiImages` operationId).
|
|
func (c *Client) GetApiImages(ctx context.Context, params *GetApiImagesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiImagesRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiImagesPull Pull a Docker image from a registry
|
|
//
|
|
// Corresponds with GET /api/images/pull (the `GetApiImagesPull` operationId).
|
|
func (c *Client) GetApiImagesPull(ctx context.Context, params *GetApiImagesPullParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiImagesPullRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiImagesPullIfMissing Pull a Docker image only if it is not already present locally
|
|
//
|
|
// Corresponds with GET /api/images/pull-if-missing (the `GetApiImagesPullIfMissing` operationId).
|
|
func (c *Client) GetApiImagesPullIfMissing(ctx context.Context, params *GetApiImagesPullIfMissingParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiImagesPullIfMissingRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiInviteWithBody Resend invite link
|
|
//
|
|
// Generates a new registration key and optionally sends an invite or password reset email.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/invite (the `PostApiInvite` operationId).
|
|
func (c *Client) PostApiInviteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiInviteRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiInvite Resend invite link
|
|
//
|
|
// Generates a new registration key and optionally sends an invite or password reset email.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/invite (the `PostApiInvite` operationId).
|
|
func (c *Client) PostApiInvite(ctx context.Context, body PostApiInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiInviteRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiJobs List all scheduled jobs
|
|
//
|
|
// Corresponds with GET /api/jobs (the `GetApiJobs` operationId).
|
|
func (c *Client) GetApiJobs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiJobsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiJobsDeleteWithBody Delete a job from the CRON configuration
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/delete (the `PostApiJobsDelete` operationId).
|
|
func (c *Client) PostApiJobsDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiJobsDeleteRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiJobsDelete Delete a job from the CRON configuration
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/delete (the `PostApiJobsDelete` operationId).
|
|
func (c *Client) PostApiJobsDelete(ctx context.Context, body PostApiJobsDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiJobsDeleteRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiJobsGetWithBody Get details and logs of a specific job
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/get (the `PostApiJobsGet` operationId).
|
|
func (c *Client) PostApiJobsGetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiJobsGetRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiJobsGet Get details and logs of a specific job
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/get (the `PostApiJobsGet` operationId).
|
|
func (c *Client) PostApiJobsGet(ctx context.Context, body PostApiJobsGetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiJobsGetRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiJobsRunWithBody Manually trigger a job to run
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/run (the `PostApiJobsRun` operationId).
|
|
func (c *Client) PostApiJobsRunWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiJobsRunRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiJobsRun Manually trigger a job to run
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/run (the `PostApiJobsRun` operationId).
|
|
func (c *Client) PostApiJobsRun(ctx context.Context, body PostApiJobsRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiJobsRunRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiJobsRunning List currently running jobs
|
|
//
|
|
// Corresponds with GET /api/jobs/running (the `GetApiJobsRunning` operationId).
|
|
func (c *Client) GetApiJobsRunning(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiJobsRunningRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiJobsStopWithBody Stop a running job
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/stop (the `PostApiJobsStop` operationId).
|
|
func (c *Client) PostApiJobsStopWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiJobsStopRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiJobsStop Stop a running job
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/jobs/stop (the `PostApiJobsStop` operationId).
|
|
func (c *Client) PostApiJobsStop(ctx context.Context, body PostApiJobsStopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiJobsStopRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiListDir List the contents of a directory
|
|
//
|
|
// Corresponds with GET /api/list-dir (the `GetApiListDir` operationId).
|
|
func (c *Client) GetApiListDir(ctx context.Context, params *GetApiListDirParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiListDirRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiListMetrics List all available metric keys and their labels
|
|
//
|
|
// Corresponds with GET /api/list-metrics (the `GetApiListMetrics` operationId).
|
|
func (c *Client) GetApiListMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiListMetricsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiLoginWithBody User login
|
|
//
|
|
// # Authenticates a user with nickname and password, sets JWT cookie on success
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
|
|
func (c *Client) PostApiLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiLoginRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiLogin User login
|
|
//
|
|
// # Authenticates a user with nickname and password, sets JWT cookie on success
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
|
|
func (c *Client) PostApiLogin(ctx context.Context, body PostApiLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiLoginRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiLogout User logout
|
|
//
|
|
// Logs out the current user by clearing authentication cookies.
|
|
//
|
|
// Corresponds with GET /api/logout (the `GetApiLogout` operationId).
|
|
func (c *Client) GetApiLogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiLogoutRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiMarkets Get the app marketplace listings
|
|
//
|
|
// Returns all marketplace sources and their applications, plus the showcase from cosmos-cloud.
|
|
//
|
|
// Corresponds with GET /api/markets (the `GetApiMarkets` operationId).
|
|
func (c *Client) GetApiMarkets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiMarketsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiMe Get current user info
|
|
//
|
|
// Returns the profile information of the currently authenticated user.
|
|
//
|
|
// Corresponds with GET /api/me (the `GetApiMe` operationId).
|
|
func (c *Client) GetApiMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiMeRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiMergeWithBody Merge multiple filesystems using MergerFS
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/merge (the `PostApiMerge` operationId).
|
|
func (c *Client) PostApiMergeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiMergeRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiMerge Merge multiple filesystems using MergerFS
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/merge (the `PostApiMerge` operationId).
|
|
func (c *Client) PostApiMerge(ctx context.Context, body PostApiMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiMergeRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiMetrics Get aggregated metrics data
|
|
//
|
|
// Corresponds with GET /api/metrics (the `GetApiMetrics` operationId).
|
|
func (c *Client) GetApiMetrics(ctx context.Context, params *GetApiMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiMetricsRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiMfaWithBody Reset 2FA for a user
|
|
//
|
|
// Removes the 2FA key for a specified user (admin operation).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/mfa (the `DeleteApiMfa` operationId).
|
|
func (c *Client) DeleteApiMfaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiMfaRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiMfa Reset 2FA for a user
|
|
//
|
|
// Removes the 2FA key for a specified user (admin operation).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/mfa (the `DeleteApiMfa` operationId).
|
|
func (c *Client) DeleteApiMfa(ctx context.Context, body DeleteApiMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiMfaRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiMfa Generate new 2FA key
|
|
//
|
|
// Generates a new TOTP key for the current user and returns the provisioning URL.
|
|
//
|
|
// Corresponds with GET /api/mfa (the `GetApiMfa` operationId).
|
|
func (c *Client) GetApiMfa(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiMfaRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiMfaWithBody Verify 2FA token
|
|
//
|
|
// Validates a TOTP token for the current user to complete multi-factor authentication.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/mfa (the `PostApiMfa` operationId).
|
|
func (c *Client) PostApiMfaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiMfaRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiMfa Verify 2FA token
|
|
//
|
|
// Validates a TOTP token for the current user to complete multi-factor authentication.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/mfa (the `PostApiMfa` operationId).
|
|
func (c *Client) PostApiMfa(ctx context.Context, body PostApiMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiMfaRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiMigrateHostWithBody Migrate Cosmos container to host network mode
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/migrate-host (the `PostApiMigrateHost` operationId).
|
|
func (c *Client) PostApiMigrateHostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiMigrateHostRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiMigrateHost Migrate Cosmos container to host network mode
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/migrate-host (the `PostApiMigrateHost` operationId).
|
|
func (c *Client) PostApiMigrateHost(ctx context.Context, body PostApiMigrateHostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiMigrateHostRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiMountWithBody Mount a filesystem
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/mount (the `PostApiMount` operationId).
|
|
func (c *Client) PostApiMountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiMountRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiMount Mount a filesystem
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/mount (the `PostApiMount` operationId).
|
|
func (c *Client) PostApiMount(ctx context.Context, body PostApiMountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiMountRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiMounts List all mounted filesystems
|
|
//
|
|
// Corresponds with GET /api/mounts (the `GetApiMounts` operationId).
|
|
func (c *Client) GetApiMounts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiMountsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiNetworkNetworkID Delete a Docker network by ID
|
|
//
|
|
// Corresponds with DELETE /api/network/{networkID} (the `DeleteApiNetworkNetworkID` operationId).
|
|
func (c *Client) DeleteApiNetworkNetworkID(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiNetworkNetworkIDRequest(c.Server, networkID)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiNetworks List all Docker networks
|
|
//
|
|
// Corresponds with GET /api/networks (the `GetApiNetworks` operationId).
|
|
func (c *Client) GetApiNetworks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiNetworksRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiNetworksWithBody Create a new Docker network
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/networks (the `PostApiNetworks` operationId).
|
|
func (c *Client) PostApiNetworksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiNetworksRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiNetworks Create a new Docker network
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/networks (the `PostApiNetworks` operationId).
|
|
func (c *Client) PostApiNetworks(ctx context.Context, body PostApiNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiNetworksRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiNewDir Create a new folder
|
|
//
|
|
// Corresponds with POST /api/new-dir (the `PostApiNewDir` operationId).
|
|
func (c *Client) PostApiNewDir(ctx context.Context, params *PostApiNewDirParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiNewDirRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiNewInstallWithBody Process new installation steps
|
|
//
|
|
// # Handles multi-step server installation including database setup, HTTPS configuration, and admin user creation
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/newInstall (the `PostApiNewInstall` operationId).
|
|
func (c *Client) PostApiNewInstallWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiNewInstallRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiNewInstall Process new installation steps
|
|
//
|
|
// # Handles multi-step server installation including database setup, HTTPS configuration, and admin user creation
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/newInstall (the `PostApiNewInstall` operationId).
|
|
func (c *Client) PostApiNewInstall(ctx context.Context, body PostApiNewInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiNewInstallRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiNotifications Get notifications for the authenticated user
|
|
//
|
|
// Corresponds with GET /api/notifications (the `GetApiNotifications` operationId).
|
|
func (c *Client) GetApiNotifications(ctx context.Context, params *GetApiNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiNotificationsRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiNotificationsRead Mark notifications as read
|
|
//
|
|
// Corresponds with GET /api/notifications/read (the `GetApiNotificationsRead` operationId).
|
|
func (c *Client) GetApiNotificationsRead(ctx context.Context, params *GetApiNotificationsReadParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiNotificationsReadRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiOpenid List all OpenID clients
|
|
//
|
|
// Returns all configured OpenID Connect client configurations.
|
|
//
|
|
// Corresponds with GET /api/openid (the `GetApiOpenid` operationId).
|
|
func (c *Client) GetApiOpenid(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiOpenidRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiOpenidWithBody Create an OpenID client
|
|
//
|
|
// Creates a new OpenID Connect client configuration.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/openid (the `PostApiOpenid` operationId).
|
|
func (c *Client) PostApiOpenidWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiOpenidRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiOpenid Create an OpenID client
|
|
//
|
|
// Creates a new OpenID Connect client configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/openid (the `PostApiOpenid` operationId).
|
|
func (c *Client) PostApiOpenid(ctx context.Context, body PostApiOpenidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiOpenidRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiOpenidId Delete an OpenID client
|
|
//
|
|
// Removes an OpenID Connect client configuration by ID.
|
|
//
|
|
// Corresponds with DELETE /api/openid/{id} (the `DeleteApiOpenidId` operationId).
|
|
func (c *Client) DeleteApiOpenidId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiOpenidIdRequest(c.Server, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiOpenidId Get an OpenID client by ID
|
|
//
|
|
// Returns a single OpenID Connect client configuration.
|
|
//
|
|
// Corresponds with GET /api/openid/{id} (the `GetApiOpenidId` operationId).
|
|
func (c *Client) GetApiOpenidId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiOpenidIdRequest(c.Server, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiOpenidIdWithBody Update an OpenID client
|
|
//
|
|
// Replaces an existing OpenID Connect client configuration.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/openid/{id} (the `PutApiOpenidId` operationId).
|
|
func (c *Client) PutApiOpenidIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiOpenidIdRequestWithBody(c.Server, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiOpenidId Update an OpenID client
|
|
//
|
|
// Replaces an existing OpenID Connect client configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/openid/{id} (the `PutApiOpenidId` operationId).
|
|
func (c *Client) PutApiOpenidId(ctx context.Context, id string, body PutApiOpenidIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiOpenidIdRequest(c.Server, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiPasswordResetWithBody Request a password reset
|
|
//
|
|
// Sends a password reset email to the user if email is configured.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/password-reset (the `PostApiPasswordReset` operationId).
|
|
func (c *Client) PostApiPasswordResetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiPasswordResetRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiPasswordReset Request a password reset
|
|
//
|
|
// Sends a password reset email to the user if email is configured.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/password-reset (the `PostApiPasswordReset` operationId).
|
|
func (c *Client) PostApiPasswordReset(ctx context.Context, body PostApiPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiPasswordResetRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiPing Ping a URL
|
|
//
|
|
// Checks if a URL is reachable and returns a non-5xx response.
|
|
//
|
|
// Corresponds with GET /api/ping (the `GetApiPing` operationId).
|
|
func (c *Client) GetApiPing(ctx context.Context, params *GetApiPingParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiPingRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiRcloneRestart Restart all RClone remote storage mounts
|
|
//
|
|
// Corresponds with GET /api/rclone-restart (the `GetApiRcloneRestart` operationId).
|
|
func (c *Client) GetApiRcloneRestart(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiRcloneRestartRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiRegisterWithBody Register a new user
|
|
//
|
|
// Completes user registration using a registration key (invite link).
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/register (the `PostApiRegister` operationId).
|
|
func (c *Client) PostApiRegisterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiRegisterRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiRegister Register a new user
|
|
//
|
|
// Completes user registration using a registration key (invite link).
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/register (the `PostApiRegister` operationId).
|
|
func (c *Client) PostApiRegister(ctx context.Context, body PostApiRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiRegisterRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiResetMetrics Reset all metrics and events data
|
|
//
|
|
// Corresponds with GET /api/reset-metrics (the `GetApiResetMetrics` operationId).
|
|
func (c *Client) GetApiResetMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiResetMetricsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiRestart Restart the server
|
|
//
|
|
// Triggers a graceful server restart.
|
|
//
|
|
// Corresponds with GET /api/restart (the `GetApiRestart` operationId).
|
|
func (c *Client) GetApiRestart(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiRestartRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiRestartServer Restart the host machine
|
|
//
|
|
// Triggers a restart of the host machine (not available when running inside a container).
|
|
//
|
|
// Corresponds with GET /api/restart-server (the `GetApiRestartServer` operationId).
|
|
func (c *Client) GetApiRestartServer(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiRestartServerRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiRoutes List all proxy routes
|
|
//
|
|
// Returns all configured proxy routes.
|
|
//
|
|
// Corresponds with GET /api/routes (the `GetApiRoutes` operationId).
|
|
func (c *Client) GetApiRoutes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiRoutesRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiRoutesWithBody Create a new proxy route
|
|
//
|
|
// Creates a new proxy route configuration.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/routes (the `PostApiRoutes` operationId).
|
|
func (c *Client) PostApiRoutesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiRoutesRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiRoutes Create a new proxy route
|
|
//
|
|
// Creates a new proxy route configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/routes (the `PostApiRoutes` operationId).
|
|
func (c *Client) PostApiRoutes(ctx context.Context, body PostApiRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiRoutesRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiRoutesName Delete a proxy route
|
|
//
|
|
// Removes a proxy route configuration by name.
|
|
//
|
|
// Corresponds with DELETE /api/routes/{name} (the `DeleteApiRoutesName` operationId).
|
|
func (c *Client) DeleteApiRoutesName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiRoutesNameRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiRoutesName Get a proxy route by name
|
|
//
|
|
// Returns a single proxy route configuration by its name.
|
|
//
|
|
// Corresponds with GET /api/routes/{name} (the `GetApiRoutesName` operationId).
|
|
func (c *Client) GetApiRoutesName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiRoutesNameRequest(c.Server, name)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiRoutesNameWithBody Update a proxy route
|
|
//
|
|
// Replaces an existing proxy route configuration by name.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /api/routes/{name} (the `PutApiRoutesName` operationId).
|
|
func (c *Client) PutApiRoutesNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiRoutesNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutApiRoutesName Update a proxy route
|
|
//
|
|
// Replaces an existing proxy route configuration by name.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /api/routes/{name} (the `PutApiRoutesName` operationId).
|
|
func (c *Client) PutApiRoutesName(ctx context.Context, name string, body PutApiRoutesNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutApiRoutesNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiServapps List all Docker containers
|
|
//
|
|
// Corresponds with GET /api/servapps (the `GetApiServapps` operationId).
|
|
func (c *Client) GetApiServapps(ctx context.Context, params *GetApiServappsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiServappsRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiServappsContainerId Inspect a single Docker container by ID
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/ (the `GetApiServappsContainerId` operationId).
|
|
func (c *Client) GetApiServappsContainerId(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiServappsContainerIdRequest(c.Server, containerId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiServappsContainerIdAutoUpdateStatus Enable or disable auto-update for a Docker container
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/auto-update/{status} (the `GetApiServappsContainerIdAutoUpdateStatus` operationId).
|
|
func (c *Client) GetApiServappsContainerIdAutoUpdateStatus(ctx context.Context, containerId string, status string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiServappsContainerIdAutoUpdateStatusRequest(c.Server, containerId, status)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiServappsContainerIdCheckUpdate Check whether a container's image has a newer version available
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/check-update (the `GetApiServappsContainerIdCheckUpdate` operationId).
|
|
func (c *Client) GetApiServappsContainerIdCheckUpdate(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiServappsContainerIdCheckUpdateRequest(c.Server, containerId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiServappsContainerIdExport Export a container configuration as a service definition
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/export (the `GetApiServappsContainerIdExport` operationId).
|
|
func (c *Client) GetApiServappsContainerIdExport(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiServappsContainerIdExportRequest(c.Server, containerId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiServappsContainerIdLogs Retrieve logs for a Docker container
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/logs (the `GetApiServappsContainerIdLogs` operationId).
|
|
func (c *Client) GetApiServappsContainerIdLogs(ctx context.Context, containerId string, params *GetApiServappsContainerIdLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiServappsContainerIdLogsRequest(c.Server, containerId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiServappsContainerIdManageAction Perform a management action on a Docker container
|
|
//
|
|
// Actions: stop, start, restart, kill, remove, pause, unpause, recreate, update
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/manage/{action} (the `GetApiServappsContainerIdManageAction` operationId).
|
|
func (c *Client) GetApiServappsContainerIdManageAction(ctx context.Context, containerId string, action GetApiServappsContainerIdManageActionParamsAction, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiServappsContainerIdManageActionRequest(c.Server, containerId, action)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiServappsContainerIdNetworkNetworkId Detach a Docker network from a container
|
|
//
|
|
// Corresponds with DELETE /api/servapps/{containerId}/network/{networkId} (the `DeleteApiServappsContainerIdNetworkNetworkId` operationId).
|
|
func (c *Client) DeleteApiServappsContainerIdNetworkNetworkId(ctx context.Context, containerId string, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiServappsContainerIdNetworkNetworkIdRequest(c.Server, containerId, networkId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiServappsContainerIdNetworkNetworkId Attach a Docker network to a container
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/network/{networkId} (the `PostApiServappsContainerIdNetworkNetworkId` operationId).
|
|
func (c *Client) PostApiServappsContainerIdNetworkNetworkId(ctx context.Context, containerId string, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiServappsContainerIdNetworkNetworkIdRequest(c.Server, containerId, networkId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiServappsContainerIdNetworks List all networks and the networks a container is connected to
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/networks (the `GetApiServappsContainerIdNetworks` operationId).
|
|
func (c *Client) GetApiServappsContainerIdNetworks(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiServappsContainerIdNetworksRequest(c.Server, containerId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiServappsContainerIdSecureStatus Set or unset network isolation on a Docker container
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/secure/{status} (the `GetApiServappsContainerIdSecureStatus` operationId).
|
|
func (c *Client) GetApiServappsContainerIdSecureStatus(ctx context.Context, containerId string, status string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiServappsContainerIdSecureStatusRequest(c.Server, containerId, status)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiServappsContainerIdUpdateWithBody Update a Docker container's settings
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/update (the `PostApiServappsContainerIdUpdate` operationId).
|
|
func (c *Client) PostApiServappsContainerIdUpdateWithBody(ctx context.Context, containerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiServappsContainerIdUpdateRequestWithBody(c.Server, containerId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiServappsContainerIdUpdate Update a Docker container's settings
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/update (the `PostApiServappsContainerIdUpdate` operationId).
|
|
func (c *Client) PostApiServappsContainerIdUpdate(ctx context.Context, containerId string, body PostApiServappsContainerIdUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiServappsContainerIdUpdateRequest(c.Server, containerId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiSetupWithBody One-shot server provisioning
|
|
//
|
|
// Performs the entire initial setup in a single call: database, HTTPS, admin user, optional Constellation connect, and optional admin API token creation. Only available when the server is in NewInstall mode.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/setup (the `PostApiSetup` operationId).
|
|
func (c *Client) PostApiSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiSetupRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiSetup One-shot server provisioning
|
|
//
|
|
// Performs the entire initial setup in a single call: database, HTTPS, admin user, optional Constellation connect, and optional admin API token creation. Only available when the server is in NewInstall mode.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/setup (the `PostApiSetup` operationId).
|
|
func (c *Client) PostApiSetup(ctx context.Context, body PostApiSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiSetupRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiSmartDef Get SMART attribute definitions for ATA and NVMe drives
|
|
//
|
|
// Corresponds with GET /api/smart-def (the `GetApiSmartDef` operationId).
|
|
func (c *Client) GetApiSmartDef(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiSmartDefRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiSnapraidWithBody List or create SnapRAID configurations
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with GET /api/snapraid (the `GetApiSnapraid` operationId).
|
|
func (c *Client) GetApiSnapraidWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiSnapraidRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiSnapraid List or create SnapRAID configurations
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with GET /api/snapraid (the `GetApiSnapraid` operationId).
|
|
func (c *Client) GetApiSnapraid(ctx context.Context, body GetApiSnapraidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiSnapraidRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiSnapraidWithBody List or create SnapRAID configurations
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/snapraid (the `PostApiSnapraid` operationId).
|
|
func (c *Client) PostApiSnapraidWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiSnapraidRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiSnapraid List or create SnapRAID configurations
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/snapraid (the `PostApiSnapraid` operationId).
|
|
func (c *Client) PostApiSnapraid(ctx context.Context, body PostApiSnapraidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiSnapraidRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiSnapraidNameWithBody Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /api/snapraid/{name} (the `DeleteApiSnapraidName` operationId).
|
|
func (c *Client) DeleteApiSnapraidNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiSnapraidNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiSnapraidName Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /api/snapraid/{name} (the `DeleteApiSnapraidName` operationId).
|
|
func (c *Client) DeleteApiSnapraidName(ctx context.Context, name string, body DeleteApiSnapraidNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiSnapraidNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiSnapraidNameWithBody Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/snapraid/{name} (the `PostApiSnapraidName` operationId).
|
|
func (c *Client) PostApiSnapraidNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiSnapraidNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiSnapraidName Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/snapraid/{name} (the `PostApiSnapraidName` operationId).
|
|
func (c *Client) PostApiSnapraidName(ctx context.Context, name string, body PostApiSnapraidNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiSnapraidNameRequest(c.Server, name, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiSnapraidNameAction Run a SnapRAID action (sync, scrub, fix, enable, disable)
|
|
//
|
|
// Corresponds with GET /api/snapraid/{name}/{action} (the `GetApiSnapraidNameAction` operationId).
|
|
func (c *Client) GetApiSnapraidNameAction(ctx context.Context, name string, action GetApiSnapraidNameActionParamsAction, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiSnapraidNameActionRequest(c.Server, name, action)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiStatus Get server status
|
|
//
|
|
// # Returns the current server status including configuration, resource info, and system state
|
|
//
|
|
// Corresponds with GET /api/status (the `GetApiStatus` operationId).
|
|
func (c *Client) GetApiStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiStatusRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiSudoWithBody Elevate to sudo mode
|
|
//
|
|
// Re-authenticates the user with their password to grant elevated (sudo) permissions.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/sudo (the `PostApiSudo` operationId).
|
|
func (c *Client) PostApiSudoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiSudoRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiSudo Elevate to sudo mode
|
|
//
|
|
// Re-authenticates the user with their password to grant elevated (sudo) permissions.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/sudo (the `PostApiSudo` operationId).
|
|
func (c *Client) PostApiSudo(ctx context.Context, body PostApiSudoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiSudoRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiUnmountWithBody Unmount a filesystem
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/unmount (the `PostApiUnmount` operationId).
|
|
func (c *Client) PostApiUnmountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiUnmountRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiUnmount Unmount a filesystem
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/unmount (the `PostApiUnmount` operationId).
|
|
func (c *Client) PostApiUnmount(ctx context.Context, body PostApiUnmountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiUnmountRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiUploadNameWithBody Upload an image
|
|
//
|
|
// Uploads an image file to the server (supports jpg, jpeg, png, gif, bmp, svg, webp, tiff, avif)
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/upload/{name} (the `PostApiUploadName` operationId).
|
|
func (c *Client) PostApiUploadNameWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiUploadNameRequestWithBody(c.Server, name, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiUsers List all users
|
|
//
|
|
// Returns a list of all users with optional limit.
|
|
//
|
|
// Corresponds with GET /api/users (the `GetApiUsers` operationId).
|
|
func (c *Client) GetApiUsers(ctx context.Context, params *GetApiUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiUsersRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiUsersWithBody Create a new user
|
|
//
|
|
// Creates a new user account with a registration key for invite-based onboarding.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/users (the `PostApiUsers` operationId).
|
|
func (c *Client) PostApiUsersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiUsersRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiUsers Create a new user
|
|
//
|
|
// Creates a new user account with a registration key for invite-based onboarding.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/users (the `PostApiUsers` operationId).
|
|
func (c *Client) PostApiUsers(ctx context.Context, body PostApiUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiUsersRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiUsersNickname Delete a user
|
|
//
|
|
// Deletes a user account by nickname.
|
|
//
|
|
// Corresponds with DELETE /api/users/{nickname} (the `DeleteApiUsersNickname` operationId).
|
|
func (c *Client) DeleteApiUsersNickname(ctx context.Context, nickname string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiUsersNicknameRequest(c.Server, nickname)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiUsersNickname Get a user by nickname
|
|
//
|
|
// Returns user details for the specified nickname.
|
|
//
|
|
// Corresponds with GET /api/users/{nickname} (the `GetApiUsersNickname` operationId).
|
|
func (c *Client) GetApiUsersNickname(ctx context.Context, nickname string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiUsersNicknameRequest(c.Server, nickname)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PatchApiUsersNicknameWithBody Edit a user
|
|
//
|
|
// Updates user details such as email and role.
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PATCH /api/users/{nickname} (the `PatchApiUsersNickname` operationId).
|
|
func (c *Client) PatchApiUsersNicknameWithBody(ctx context.Context, nickname string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchApiUsersNicknameRequestWithBody(c.Server, nickname, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PatchApiUsersNickname Edit a user
|
|
//
|
|
// Updates user details such as email and role.
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PATCH /api/users/{nickname} (the `PatchApiUsersNickname` operationId).
|
|
func (c *Client) PatchApiUsersNickname(ctx context.Context, nickname string, body PatchApiUsersNicknameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchApiUsersNicknameRequest(c.Server, nickname, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteApiVolumeVolumeName Delete a Docker volume by name
|
|
//
|
|
// Corresponds with DELETE /api/volume/{volumeName} (the `DeleteApiVolumeVolumeName` operationId).
|
|
func (c *Client) DeleteApiVolumeVolumeName(ctx context.Context, volumeName string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteApiVolumeVolumeNameRequest(c.Server, volumeName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetApiVolumes List all Docker volumes
|
|
//
|
|
// Corresponds with GET /api/volumes (the `GetApiVolumes` operationId).
|
|
func (c *Client) GetApiVolumes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApiVolumesRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiVolumesWithBody Create a new Docker volume
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /api/volumes (the `PostApiVolumes` operationId).
|
|
func (c *Client) PostApiVolumesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiVolumesRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostApiVolumes Create a new Docker volume
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /api/volumes (the `PostApiVolumes` operationId).
|
|
func (c *Client) PostApiVolumes(ctx context.Context, body PostApiVolumesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostApiVolumesRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetLogo Get Cosmos logo
|
|
//
|
|
// Returns the Cosmos server logo as a PNG image.
|
|
//
|
|
// Corresponds with GET /logo (the `GetLogo` operationId).
|
|
func (c *Client) GetLogo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLogoRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostRcloneConfigCreateWithBody Create a new RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /rclone/config/create (the `PostRcloneConfigCreate` operationId).
|
|
func (c *Client) PostRcloneConfigCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostRcloneConfigCreateRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostRcloneConfigCreate Create a new RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /rclone/config/create (the `PostRcloneConfigCreate` operationId).
|
|
func (c *Client) PostRcloneConfigCreate(ctx context.Context, body PostRcloneConfigCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostRcloneConfigCreateRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteRcloneConfigDeleteWithBody Delete an RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with DELETE /rclone/config/delete (the `DeleteRcloneConfigDelete` operationId).
|
|
func (c *Client) DeleteRcloneConfigDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteRcloneConfigDeleteRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// DeleteRcloneConfigDelete Delete an RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with DELETE /rclone/config/delete (the `DeleteRcloneConfigDelete` operationId).
|
|
func (c *Client) DeleteRcloneConfigDelete(ctx context.Context, body DeleteRcloneConfigDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteRcloneConfigDeleteRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetRcloneConfigDump Dump the full RClone configuration
|
|
//
|
|
// Corresponds with GET /rclone/config/dump (the `GetRcloneConfigDump` operationId).
|
|
func (c *Client) GetRcloneConfigDump(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetRcloneConfigDumpRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetRcloneConfigListremotes List RClone remotes (name and type only, no credentials)
|
|
//
|
|
// Corresponds with GET /rclone/config/listremotes (the `GetRcloneConfigListremotes` operationId).
|
|
func (c *Client) GetRcloneConfigListremotes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetRcloneConfigListremotesRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostRcloneConfigSave Save the RClone configuration
|
|
//
|
|
// Corresponds with POST /rclone/config/save (the `PostRcloneConfigSave` operationId).
|
|
func (c *Client) PostRcloneConfigSave(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostRcloneConfigSaveRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutRcloneConfigUpdateWithBody Update an existing RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with PUT /rclone/config/update (the `PutRcloneConfigUpdate` operationId).
|
|
func (c *Client) PutRcloneConfigUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutRcloneConfigUpdateRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PutRcloneConfigUpdate Update an existing RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with PUT /rclone/config/update (the `PutRcloneConfigUpdate` operationId).
|
|
func (c *Client) PutRcloneConfigUpdate(ctx context.Context, body PutRcloneConfigUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPutRcloneConfigUpdateRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// GetRcloneCoreStats Get global RClone transfer stats
|
|
//
|
|
// Corresponds with GET /rclone/core/stats (the `GetRcloneCoreStats` operationId).
|
|
func (c *Client) GetRcloneCoreStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetRcloneCoreStatsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostRcloneOperationsAboutWithBody Get storage usage info for a remote (total, used, free)
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /rclone/operations/about (the `PostRcloneOperationsAbout` operationId).
|
|
func (c *Client) PostRcloneOperationsAboutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostRcloneOperationsAboutRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostRcloneOperationsAbout Get storage usage info for a remote (total, used, free)
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /rclone/operations/about (the `PostRcloneOperationsAbout` operationId).
|
|
func (c *Client) PostRcloneOperationsAbout(ctx context.Context, body PostRcloneOperationsAboutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostRcloneOperationsAboutRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostRcloneVfsStatsWithBody Get VFS stats for a mounted remote
|
|
//
|
|
// Takes any type of body and a specified content type.
|
|
//
|
|
// Corresponds with POST /rclone/vfs/stats (the `PostRcloneVfsStats` operationId).
|
|
func (c *Client) PostRcloneVfsStatsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostRcloneVfsStatsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// PostRcloneVfsStats Get VFS stats for a mounted remote
|
|
//
|
|
// Takes a body of the `application/json` content type.
|
|
//
|
|
// Corresponds with POST /rclone/vfs/stats (the `PostRcloneVfsStats` operationId).
|
|
func (c *Client) PostRcloneVfsStats(ctx context.Context, body PostRcloneVfsStatsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPostRcloneVfsStatsRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// NewGetLogsRequest constructs an http.Request for the GetLogs method
|
|
func NewGetLogsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/_logs")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiMemoryRequest constructs an http.Request for the GetApiMemory method
|
|
func NewGetApiMemoryRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/_memory")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiAlertsRequest calls the generic GetApiAlerts builder with application/json body
|
|
func NewGetApiAlertsRequest(server string, body GetApiAlertsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetApiAlertsRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetApiAlertsRequestWithBody constructs an http.Request for the GetApiAlerts method, with any body, and a specified content type
|
|
func NewGetApiAlertsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/alerts")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiAlertsRequest calls the generic PostApiAlerts builder with application/json body
|
|
func NewPostApiAlertsRequest(server string, body PostApiAlertsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiAlertsRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiAlertsRequestWithBody constructs an http.Request for the PostApiAlerts method, with any body, and a specified content type
|
|
func NewPostApiAlertsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/alerts")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiAlertsNameRequest calls the generic DeleteApiAlertsName builder with application/json body
|
|
func NewDeleteApiAlertsNameRequest(server string, name string, body DeleteApiAlertsNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteApiAlertsNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteApiAlertsNameRequestWithBody constructs an http.Request for the DeleteApiAlertsName method, with any body, and a specified content type
|
|
func NewDeleteApiAlertsNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/alerts/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiAlertsNameRequest calls the generic GetApiAlertsName builder with application/json body
|
|
func NewGetApiAlertsNameRequest(server string, name string, body GetApiAlertsNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetApiAlertsNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetApiAlertsNameRequestWithBody constructs an http.Request for the GetApiAlertsName method, with any body, and a specified content type
|
|
func NewGetApiAlertsNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/alerts/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutApiAlertsNameRequest calls the generic PutApiAlertsName builder with application/json body
|
|
func NewPutApiAlertsNameRequest(server string, name string, body PutApiAlertsNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutApiAlertsNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutApiAlertsNameRequestWithBody constructs an http.Request for the PutApiAlertsName method, with any body, and a specified content type
|
|
func NewPutApiAlertsNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/alerts/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiApiTokensRequest calls the generic DeleteApiApiTokens builder with application/json body
|
|
func NewDeleteApiApiTokensRequest(server string, body DeleteApiApiTokensJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteApiApiTokensRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteApiApiTokensRequestWithBody constructs an http.Request for the DeleteApiApiTokens method, with any body, and a specified content type
|
|
func NewDeleteApiApiTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/api-tokens")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiApiTokensRequest constructs an http.Request for the GetApiApiTokens method
|
|
func NewGetApiApiTokensRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/api-tokens")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiApiTokensRequest calls the generic PostApiApiTokens builder with application/json body
|
|
func NewPostApiApiTokensRequest(server string, body PostApiApiTokensJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiApiTokensRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiApiTokensRequestWithBody constructs an http.Request for the PostApiApiTokens method, with any body, and a specified content type
|
|
func NewPostApiApiTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/api-tokens")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutApiApiTokensNameRequest calls the generic PutApiApiTokensName builder with application/json body
|
|
func NewPutApiApiTokensNameRequest(server string, name string, body PutApiApiTokensNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutApiApiTokensNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutApiApiTokensNameRequestWithBody constructs an http.Request for the PutApiApiTokensName method, with any body, and a specified content type
|
|
func NewPutApiApiTokensNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/api-tokens/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiBackupsRequest calls the generic PostApiBackups builder with application/json body
|
|
func NewPostApiBackupsRequest(server string, body PostApiBackupsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiBackupsRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiBackupsRequestWithBody constructs an http.Request for the PostApiBackups method, with any body, and a specified content type
|
|
func NewPostApiBackupsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiBackupsConfigRequest constructs an http.Request for the GetApiBackupsConfig method
|
|
func NewGetApiBackupsConfigRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups-config")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiBackupsConfigNameRequest constructs an http.Request for the GetApiBackupsConfigName method
|
|
func NewGetApiBackupsConfigNameRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups-config/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiBackupsRepositoryRequest constructs an http.Request for the GetApiBackupsRepository method
|
|
func NewGetApiBackupsRepositoryRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups-repository")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiBackupsRepositoryNameSnapshotsRequest constructs an http.Request for the GetApiBackupsRepositoryNameSnapshots method
|
|
func NewGetApiBackupsRepositoryNameSnapshotsRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups-repository/%s/snapshots", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiBackupsRepositoryNameStatsRequest constructs an http.Request for the GetApiBackupsRepositoryNameStats method
|
|
func NewGetApiBackupsRepositoryNameStatsRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups-repository/%s/stats", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiBackupsEditRequest calls the generic PostApiBackupsEdit builder with application/json body
|
|
func NewPostApiBackupsEditRequest(server string, body PostApiBackupsEditJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiBackupsEditRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiBackupsEditRequestWithBody constructs an http.Request for the PostApiBackupsEdit method, with any body, and a specified content type
|
|
func NewPostApiBackupsEditRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups/edit")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiBackupsNameRequest constructs an http.Request for the DeleteApiBackupsName method
|
|
func NewDeleteApiBackupsNameRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiBackupsNameRestoreRequest calls the generic PostApiBackupsNameRestore builder with application/json body
|
|
func NewPostApiBackupsNameRestoreRequest(server string, name string, body PostApiBackupsNameRestoreJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiBackupsNameRestoreRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiBackupsNameRestoreRequestWithBody constructs an http.Request for the PostApiBackupsNameRestore method, with any body, and a specified content type
|
|
func NewPostApiBackupsNameRestoreRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups/%s/restore", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiBackupsNameSnapshotsRequest constructs an http.Request for the GetApiBackupsNameSnapshots method
|
|
func NewGetApiBackupsNameSnapshotsRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups/%s/snapshots", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiBackupsNameUnlockRequest constructs an http.Request for the PostApiBackupsNameUnlock method
|
|
func NewPostApiBackupsNameUnlockRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups/%s/unlock", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiBackupsNameSnapshotFoldersRequest constructs an http.Request for the GetApiBackupsNameSnapshotFolders method
|
|
func NewGetApiBackupsNameSnapshotFoldersRequest(server string, name string, snapshot string, params *GetApiBackupsNameSnapshotFoldersParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "snapshot", snapshot, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups/%s/%s/folders", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.Path != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "path", *params.Path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiBackupsNameSnapshotForgetRequest constructs an http.Request for the DeleteApiBackupsNameSnapshotForget method
|
|
func NewDeleteApiBackupsNameSnapshotForgetRequest(server string, name string, snapshot string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "snapshot", snapshot, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups/%s/%s/forget", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiBackupsNameSnapshotSubfolderRestoreSizeRequest constructs an http.Request for the GetApiBackupsNameSnapshotSubfolderRestoreSize method
|
|
func NewGetApiBackupsNameSnapshotSubfolderRestoreSizeRequest(server string, name string, snapshot string, params *GetApiBackupsNameSnapshotSubfolderRestoreSizeParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "snapshot", snapshot, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/backups/%s/%s/subfolder-restore-size", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.Path != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "path", *params.Path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiCanSendEmailRequest constructs an http.Request for the GetApiCanSendEmail method
|
|
func NewGetApiCanSendEmailRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/can-send-email")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConfigRequest constructs an http.Request for the GetApiConfig method
|
|
func NewGetApiConfigRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/config")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPatchApiConfigRequest calls the generic PatchApiConfig builder with application/json body
|
|
func NewPatchApiConfigRequest(server string, body PatchApiConfigJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPatchApiConfigRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPatchApiConfigRequestWithBody constructs an http.Request for the PatchApiConfig method, with any body, and a specified content type
|
|
func NewPatchApiConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/config")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutApiConfigRequest calls the generic PutApiConfig builder with application/json body
|
|
func NewPutApiConfigRequest(server string, body PutApiConfigJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutApiConfigRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutApiConfigRequestWithBody constructs an http.Request for the PutApiConfig method, with any body, and a specified content type
|
|
func NewPutApiConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/config")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPatchApiConfigDnsRequest calls the generic PatchApiConfigDns builder with application/json body
|
|
func NewPatchApiConfigDnsRequest(server string, body PatchApiConfigDnsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPatchApiConfigDnsRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPatchApiConfigDnsRequestWithBody constructs an http.Request for the PatchApiConfigDns method, with any body, and a specified content type
|
|
func NewPatchApiConfigDnsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/config/dns")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationBlockRequest calls the generic PostApiConstellationBlock builder with application/json body
|
|
func NewPostApiConstellationBlockRequest(server string, body PostApiConstellationBlockJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiConstellationBlockRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiConstellationBlockRequestWithBody constructs an http.Request for the PostApiConstellationBlock method, with any body, and a specified content type
|
|
func NewPostApiConstellationBlockRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/block")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationConfigRequest constructs an http.Request for the GetApiConstellationConfig method
|
|
func NewGetApiConstellationConfigRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/config")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationConnectRequestWithBody constructs an http.Request for the PostApiConstellationConnect method, with any body, and a specified content type
|
|
func NewPostApiConstellationConnectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/connect")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationCreateRequest calls the generic PostApiConstellationCreate builder with application/json body
|
|
func NewPostApiConstellationCreateRequest(server string, body PostApiConstellationCreateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiConstellationCreateRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiConstellationCreateRequestWithBody constructs an http.Request for the PostApiConstellationCreate method, with any body, and a specified content type
|
|
func NewPostApiConstellationCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/create")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationDeploymentsRequest constructs an http.Request for the GetApiConstellationDeployments method
|
|
func NewGetApiConstellationDeploymentsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/deployments")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationDeploymentsRequest calls the generic PostApiConstellationDeployments builder with application/json body
|
|
func NewPostApiConstellationDeploymentsRequest(server string, body PostApiConstellationDeploymentsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiConstellationDeploymentsRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiConstellationDeploymentsRequestWithBody constructs an http.Request for the PostApiConstellationDeployments method, with any body, and a specified content type
|
|
func NewPostApiConstellationDeploymentsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/deployments")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationDeploymentsHealthRequest constructs an http.Request for the GetApiConstellationDeploymentsHealth method
|
|
func NewGetApiConstellationDeploymentsHealthRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/deployments/health")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiConstellationDeploymentsNameRequest constructs an http.Request for the DeleteApiConstellationDeploymentsName method
|
|
func NewDeleteApiConstellationDeploymentsNameRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/deployments/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationDeploymentsNameRequest constructs an http.Request for the GetApiConstellationDeploymentsName method
|
|
func NewGetApiConstellationDeploymentsNameRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/deployments/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutApiConstellationDeploymentsNameRequest calls the generic PutApiConstellationDeploymentsName builder with application/json body
|
|
func NewPutApiConstellationDeploymentsNameRequest(server string, name string, body PutApiConstellationDeploymentsNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutApiConstellationDeploymentsNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutApiConstellationDeploymentsNameRequestWithBody constructs an http.Request for the PutApiConstellationDeploymentsName method, with any body, and a specified content type
|
|
func NewPutApiConstellationDeploymentsNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/deployments/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationDeploymentsNameUnbrokeRequest constructs an http.Request for the PostApiConstellationDeploymentsNameUnbroke method
|
|
func NewPostApiConstellationDeploymentsNameUnbrokeRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/deployments/%s/unbroke", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationDevicesRequest constructs an http.Request for the GetApiConstellationDevices method
|
|
func NewGetApiConstellationDevicesRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/devices")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationDevicesRequest calls the generic PostApiConstellationDevices builder with application/json body
|
|
func NewPostApiConstellationDevicesRequest(server string, body PostApiConstellationDevicesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiConstellationDevicesRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiConstellationDevicesRequestWithBody constructs an http.Request for the PostApiConstellationDevices method, with any body, and a specified content type
|
|
func NewPostApiConstellationDevicesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/devices")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationDevicesIdPingRequest constructs an http.Request for the GetApiConstellationDevicesIdPing method
|
|
func NewGetApiConstellationDevicesIdPingRequest(server string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/devices/%s/ping", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationDnsRequest constructs an http.Request for the GetApiConstellationDns method
|
|
func NewGetApiConstellationDnsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/dns")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationDnsRequest calls the generic PostApiConstellationDns builder with application/json body
|
|
func NewPostApiConstellationDnsRequest(server string, body PostApiConstellationDnsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiConstellationDnsRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiConstellationDnsRequestWithBody constructs an http.Request for the PostApiConstellationDns method, with any body, and a specified content type
|
|
func NewPostApiConstellationDnsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/dns")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiConstellationDnsKeyRequest constructs an http.Request for the DeleteApiConstellationDnsKey method
|
|
func NewDeleteApiConstellationDnsKeyRequest(server string, key string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "key", key, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/dns/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationDnsKeyRequest constructs an http.Request for the GetApiConstellationDnsKey method
|
|
func NewGetApiConstellationDnsKeyRequest(server string, key string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "key", key, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/dns/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutApiConstellationDnsKeyRequest calls the generic PutApiConstellationDnsKey builder with application/json body
|
|
func NewPutApiConstellationDnsKeyRequest(server string, key string, body PutApiConstellationDnsKeyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutApiConstellationDnsKeyRequestWithBody(server, key, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutApiConstellationDnsKeyRequestWithBody constructs an http.Request for the PutApiConstellationDnsKey method, with any body, and a specified content type
|
|
func NewPutApiConstellationDnsKeyRequestWithBody(server string, key string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "key", key, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/dns/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationEditDeviceRequest calls the generic PostApiConstellationEditDevice builder with application/json body
|
|
func NewPostApiConstellationEditDeviceRequest(server string, body PostApiConstellationEditDeviceJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiConstellationEditDeviceRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiConstellationEditDeviceRequestWithBody constructs an http.Request for the PostApiConstellationEditDevice method, with any body, and a specified content type
|
|
func NewPostApiConstellationEditDeviceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/edit-device")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationForceReformRequest constructs an http.Request for the PostApiConstellationForceReform method
|
|
func NewPostApiConstellationForceReformRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/force-reform")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationGetNextIpRequest constructs an http.Request for the GetApiConstellationGetNextIp method
|
|
func NewGetApiConstellationGetNextIpRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/get-next-ip")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationLogsRequest constructs an http.Request for the GetApiConstellationLogs method
|
|
func NewGetApiConstellationLogsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/logs")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationNatsStatusRequest constructs an http.Request for the GetApiConstellationNatsStatus method
|
|
func NewGetApiConstellationNatsStatusRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/nats-status")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiConstellationNodesNameUnbrokeRequest constructs an http.Request for the PostApiConstellationNodesNameUnbroke method
|
|
func NewPostApiConstellationNodesNameUnbrokeRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/nodes/%s/unbroke", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationPingRequest constructs an http.Request for the GetApiConstellationPing method
|
|
func NewGetApiConstellationPingRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/ping")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationPublicDevicesRequest constructs an http.Request for the GetApiConstellationPublicDevices method
|
|
func NewGetApiConstellationPublicDevicesRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/public-devices")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationResetRequest constructs an http.Request for the GetApiConstellationReset method
|
|
func NewGetApiConstellationResetRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/reset")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationRestartRequest constructs an http.Request for the GetApiConstellationRestart method
|
|
func NewGetApiConstellationRestartRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/restart")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiConstellationTunnelsRequest constructs an http.Request for the GetApiConstellationTunnels method
|
|
func NewGetApiConstellationTunnelsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/constellation/tunnels")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiCronRequest calls the generic GetApiCron builder with application/json body
|
|
func NewGetApiCronRequest(server string, body GetApiCronJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetApiCronRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetApiCronRequestWithBody constructs an http.Request for the GetApiCron method, with any body, and a specified content type
|
|
func NewGetApiCronRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/cron")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiCronRequest calls the generic PostApiCron builder with application/json body
|
|
func NewPostApiCronRequest(server string, body PostApiCronJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiCronRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiCronRequestWithBody constructs an http.Request for the PostApiCron method, with any body, and a specified content type
|
|
func NewPostApiCronRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/cron")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiCronNameRequest calls the generic DeleteApiCronName builder with application/json body
|
|
func NewDeleteApiCronNameRequest(server string, name string, body DeleteApiCronNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteApiCronNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteApiCronNameRequestWithBody constructs an http.Request for the DeleteApiCronName method, with any body, and a specified content type
|
|
func NewDeleteApiCronNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/cron/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiCronNameRequest calls the generic GetApiCronName builder with application/json body
|
|
func NewGetApiCronNameRequest(server string, name string, body GetApiCronNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetApiCronNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetApiCronNameRequestWithBody constructs an http.Request for the GetApiCronName method, with any body, and a specified content type
|
|
func NewGetApiCronNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/cron/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutApiCronNameRequest calls the generic PutApiCronName builder with application/json body
|
|
func NewPutApiCronNameRequest(server string, name string, body PutApiCronNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutApiCronNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutApiCronNameRequestWithBody constructs an http.Request for the PutApiCronName method, with any body, and a specified content type
|
|
func NewPutApiCronNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/cron/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiDashboardRequest constructs an http.Request for the GetApiDashboard method
|
|
func NewGetApiDashboardRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/dashboard")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiDisksRequest constructs an http.Request for the GetApiDisks method
|
|
func NewGetApiDisksRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/disks")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiDisksFormatRequest calls the generic PostApiDisksFormat builder with application/json body
|
|
func NewPostApiDisksFormatRequest(server string, body PostApiDisksFormatJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiDisksFormatRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiDisksFormatRequestWithBody constructs an http.Request for the PostApiDisksFormat method, with any body, and a specified content type
|
|
func NewPostApiDisksFormatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/disks/format")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiDnsRequest constructs an http.Request for the GetApiDns method
|
|
func NewGetApiDnsRequest(server string, params *GetApiDnsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/dns")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "url", params.Url, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiDnsCheckRequest constructs an http.Request for the GetApiDnsCheck method
|
|
func NewGetApiDnsCheckRequest(server string, params *GetApiDnsCheckParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/dns-check")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "url", params.Url, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiDockerServiceRequest calls the generic PostApiDockerService builder with application/json body
|
|
func NewPostApiDockerServiceRequest(server string, body PostApiDockerServiceJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiDockerServiceRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiDockerServiceRequestWithBody constructs an http.Request for the PostApiDockerService method, with any body, and a specified content type
|
|
func NewPostApiDockerServiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/docker-service")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiEventsRequest constructs an http.Request for the GetApiEvents method
|
|
func NewGetApiEventsRequest(server string, params *GetApiEventsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/events")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.From != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.To != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.LogLevel != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "logLevel", *params.LogLevel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Query != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "query", *params.Query, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiFaviconRequest constructs an http.Request for the GetApiFavicon method
|
|
func NewGetApiFaviconRequest(server string, params *GetApiFaviconParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/favicon")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "q", params.Q, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
if params.Servapp != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "servapp", *params.Servapp, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiForceServerUpdateRequest constructs an http.Request for the PostApiForceServerUpdate method
|
|
func NewPostApiForceServerUpdateRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/force-server-update")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiGetBackupRequest constructs an http.Request for the GetApiGetBackup method
|
|
func NewGetApiGetBackupRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/get-backup")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiGroupsRequest constructs an http.Request for the GetApiGroups method
|
|
func NewGetApiGroupsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/groups")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiGroupsRequest calls the generic PostApiGroups builder with application/json body
|
|
func NewPostApiGroupsRequest(server string, body PostApiGroupsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiGroupsRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiGroupsRequestWithBody constructs an http.Request for the PostApiGroups method, with any body, and a specified content type
|
|
func NewPostApiGroupsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/groups")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiGroupsIdRequest constructs an http.Request for the DeleteApiGroupsId method
|
|
func NewDeleteApiGroupsIdRequest(server string, id int) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/groups/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutApiGroupsIdRequest calls the generic PutApiGroupsId builder with application/json body
|
|
func NewPutApiGroupsIdRequest(server string, id int, body PutApiGroupsIdJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutApiGroupsIdRequestWithBody(server, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutApiGroupsIdRequestWithBody constructs an http.Request for the PutApiGroupsId method, with any body, and a specified content type
|
|
func NewPutApiGroupsIdRequestWithBody(server string, id int, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/groups/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiImageNameRequest constructs an http.Request for the GetApiImageName method
|
|
func NewGetApiImageNameRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/image/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiImagesRequest constructs an http.Request for the GetApiImages method
|
|
func NewGetApiImagesRequest(server string, params *GetApiImagesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/images")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "imageName", params.ImageName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiImagesPullRequest constructs an http.Request for the GetApiImagesPull method
|
|
func NewGetApiImagesPullRequest(server string, params *GetApiImagesPullParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/images/pull")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "imageName", params.ImageName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiImagesPullIfMissingRequest constructs an http.Request for the GetApiImagesPullIfMissing method
|
|
func NewGetApiImagesPullIfMissingRequest(server string, params *GetApiImagesPullIfMissingParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/images/pull-if-missing")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "imageName", params.ImageName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiInviteRequest calls the generic PostApiInvite builder with application/json body
|
|
func NewPostApiInviteRequest(server string, body PostApiInviteJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiInviteRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiInviteRequestWithBody constructs an http.Request for the PostApiInvite method, with any body, and a specified content type
|
|
func NewPostApiInviteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/invite")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiJobsRequest constructs an http.Request for the GetApiJobs method
|
|
func NewGetApiJobsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/jobs")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiJobsDeleteRequest calls the generic PostApiJobsDelete builder with application/json body
|
|
func NewPostApiJobsDeleteRequest(server string, body PostApiJobsDeleteJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiJobsDeleteRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiJobsDeleteRequestWithBody constructs an http.Request for the PostApiJobsDelete method, with any body, and a specified content type
|
|
func NewPostApiJobsDeleteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/jobs/delete")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiJobsGetRequest calls the generic PostApiJobsGet builder with application/json body
|
|
func NewPostApiJobsGetRequest(server string, body PostApiJobsGetJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiJobsGetRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiJobsGetRequestWithBody constructs an http.Request for the PostApiJobsGet method, with any body, and a specified content type
|
|
func NewPostApiJobsGetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/jobs/get")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiJobsRunRequest calls the generic PostApiJobsRun builder with application/json body
|
|
func NewPostApiJobsRunRequest(server string, body PostApiJobsRunJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiJobsRunRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiJobsRunRequestWithBody constructs an http.Request for the PostApiJobsRun method, with any body, and a specified content type
|
|
func NewPostApiJobsRunRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/jobs/run")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiJobsRunningRequest constructs an http.Request for the GetApiJobsRunning method
|
|
func NewGetApiJobsRunningRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/jobs/running")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiJobsStopRequest calls the generic PostApiJobsStop builder with application/json body
|
|
func NewPostApiJobsStopRequest(server string, body PostApiJobsStopJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiJobsStopRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiJobsStopRequestWithBody constructs an http.Request for the PostApiJobsStop method, with any body, and a specified content type
|
|
func NewPostApiJobsStopRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/jobs/stop")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiListDirRequest constructs an http.Request for the GetApiListDir method
|
|
func NewGetApiListDirRequest(server string, params *GetApiListDirParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/list-dir")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.Storage != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "storage", *params.Storage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Path != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "path", *params.Path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiListMetricsRequest constructs an http.Request for the GetApiListMetrics method
|
|
func NewGetApiListMetricsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/list-metrics")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiLoginRequest calls the generic PostApiLogin builder with application/json body
|
|
func NewPostApiLoginRequest(server string, body PostApiLoginJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiLoginRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiLoginRequestWithBody constructs an http.Request for the PostApiLogin method, with any body, and a specified content type
|
|
func NewPostApiLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/login")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiLogoutRequest constructs an http.Request for the GetApiLogout method
|
|
func NewGetApiLogoutRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/logout")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiMarketsRequest constructs an http.Request for the GetApiMarkets method
|
|
func NewGetApiMarketsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/markets")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiMeRequest constructs an http.Request for the GetApiMe method
|
|
func NewGetApiMeRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/me")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiMergeRequest calls the generic PostApiMerge builder with application/json body
|
|
func NewPostApiMergeRequest(server string, body PostApiMergeJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiMergeRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiMergeRequestWithBody constructs an http.Request for the PostApiMerge method, with any body, and a specified content type
|
|
func NewPostApiMergeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/merge")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiMetricsRequest constructs an http.Request for the GetApiMetrics method
|
|
func NewGetApiMetricsRequest(server string, params *GetApiMetricsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/metrics")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.Metrics != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metrics", *params.Metrics, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiMfaRequest calls the generic DeleteApiMfa builder with application/json body
|
|
func NewDeleteApiMfaRequest(server string, body DeleteApiMfaJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteApiMfaRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteApiMfaRequestWithBody constructs an http.Request for the DeleteApiMfa method, with any body, and a specified content type
|
|
func NewDeleteApiMfaRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/mfa")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiMfaRequest constructs an http.Request for the GetApiMfa method
|
|
func NewGetApiMfaRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/mfa")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiMfaRequest calls the generic PostApiMfa builder with application/json body
|
|
func NewPostApiMfaRequest(server string, body PostApiMfaJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiMfaRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiMfaRequestWithBody constructs an http.Request for the PostApiMfa method, with any body, and a specified content type
|
|
func NewPostApiMfaRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/mfa")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiMigrateHostRequest calls the generic PostApiMigrateHost builder with application/json body
|
|
func NewPostApiMigrateHostRequest(server string, body PostApiMigrateHostJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiMigrateHostRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiMigrateHostRequestWithBody constructs an http.Request for the PostApiMigrateHost method, with any body, and a specified content type
|
|
func NewPostApiMigrateHostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/migrate-host")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiMountRequest calls the generic PostApiMount builder with application/json body
|
|
func NewPostApiMountRequest(server string, body PostApiMountJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiMountRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiMountRequestWithBody constructs an http.Request for the PostApiMount method, with any body, and a specified content type
|
|
func NewPostApiMountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/mount")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiMountsRequest constructs an http.Request for the GetApiMounts method
|
|
func NewGetApiMountsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/mounts")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiNetworkNetworkIDRequest constructs an http.Request for the DeleteApiNetworkNetworkID method
|
|
func NewDeleteApiNetworkNetworkIDRequest(server string, networkID string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "networkID", networkID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/network/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiNetworksRequest constructs an http.Request for the GetApiNetworks method
|
|
func NewGetApiNetworksRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/networks")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiNetworksRequest calls the generic PostApiNetworks builder with application/json body
|
|
func NewPostApiNetworksRequest(server string, body PostApiNetworksJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiNetworksRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiNetworksRequestWithBody constructs an http.Request for the PostApiNetworks method, with any body, and a specified content type
|
|
func NewPostApiNetworksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/networks")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiNewDirRequest constructs an http.Request for the PostApiNewDir method
|
|
func NewPostApiNewDirRequest(server string, params *PostApiNewDirParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/new-dir")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.Storage != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "storage", *params.Storage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Path != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "path", *params.Path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "folder", params.Folder, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiNewInstallRequest calls the generic PostApiNewInstall builder with application/json body
|
|
func NewPostApiNewInstallRequest(server string, body PostApiNewInstallJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiNewInstallRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiNewInstallRequestWithBody constructs an http.Request for the PostApiNewInstall method, with any body, and a specified content type
|
|
func NewPostApiNewInstallRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/newInstall")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiNotificationsRequest constructs an http.Request for the GetApiNotifications method
|
|
func NewGetApiNotificationsRequest(server string, params *GetApiNotificationsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/notifications")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.From != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiNotificationsReadRequest constructs an http.Request for the GetApiNotificationsRead method
|
|
func NewGetApiNotificationsReadRequest(server string, params *GetApiNotificationsReadParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/notifications/read")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ids", params.Ids, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiOpenidRequest constructs an http.Request for the GetApiOpenid method
|
|
func NewGetApiOpenidRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/openid")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiOpenidRequest calls the generic PostApiOpenid builder with application/json body
|
|
func NewPostApiOpenidRequest(server string, body PostApiOpenidJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiOpenidRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiOpenidRequestWithBody constructs an http.Request for the PostApiOpenid method, with any body, and a specified content type
|
|
func NewPostApiOpenidRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/openid")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiOpenidIdRequest constructs an http.Request for the DeleteApiOpenidId method
|
|
func NewDeleteApiOpenidIdRequest(server string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/openid/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiOpenidIdRequest constructs an http.Request for the GetApiOpenidId method
|
|
func NewGetApiOpenidIdRequest(server string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/openid/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutApiOpenidIdRequest calls the generic PutApiOpenidId builder with application/json body
|
|
func NewPutApiOpenidIdRequest(server string, id string, body PutApiOpenidIdJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutApiOpenidIdRequestWithBody(server, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutApiOpenidIdRequestWithBody constructs an http.Request for the PutApiOpenidId method, with any body, and a specified content type
|
|
func NewPutApiOpenidIdRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/openid/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiPasswordResetRequest calls the generic PostApiPasswordReset builder with application/json body
|
|
func NewPostApiPasswordResetRequest(server string, body PostApiPasswordResetJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiPasswordResetRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiPasswordResetRequestWithBody constructs an http.Request for the PostApiPasswordReset method, with any body, and a specified content type
|
|
func NewPostApiPasswordResetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/password-reset")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiPingRequest constructs an http.Request for the GetApiPing method
|
|
func NewGetApiPingRequest(server string, params *GetApiPingParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/ping")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "q", params.Q, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
if params.Servapp != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "servapp", *params.Servapp, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiRcloneRestartRequest constructs an http.Request for the GetApiRcloneRestart method
|
|
func NewGetApiRcloneRestartRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/rclone-restart")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiRegisterRequest calls the generic PostApiRegister builder with application/json body
|
|
func NewPostApiRegisterRequest(server string, body PostApiRegisterJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiRegisterRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiRegisterRequestWithBody constructs an http.Request for the PostApiRegister method, with any body, and a specified content type
|
|
func NewPostApiRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/register")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiResetMetricsRequest constructs an http.Request for the GetApiResetMetrics method
|
|
func NewGetApiResetMetricsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/reset-metrics")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiRestartRequest constructs an http.Request for the GetApiRestart method
|
|
func NewGetApiRestartRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/restart")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiRestartServerRequest constructs an http.Request for the GetApiRestartServer method
|
|
func NewGetApiRestartServerRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/restart-server")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiRoutesRequest constructs an http.Request for the GetApiRoutes method
|
|
func NewGetApiRoutesRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/routes")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiRoutesRequest calls the generic PostApiRoutes builder with application/json body
|
|
func NewPostApiRoutesRequest(server string, body PostApiRoutesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiRoutesRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiRoutesRequestWithBody constructs an http.Request for the PostApiRoutes method, with any body, and a specified content type
|
|
func NewPostApiRoutesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/routes")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiRoutesNameRequest constructs an http.Request for the DeleteApiRoutesName method
|
|
func NewDeleteApiRoutesNameRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/routes/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiRoutesNameRequest constructs an http.Request for the GetApiRoutesName method
|
|
func NewGetApiRoutesNameRequest(server string, name string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/routes/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutApiRoutesNameRequest calls the generic PutApiRoutesName builder with application/json body
|
|
func NewPutApiRoutesNameRequest(server string, name string, body PutApiRoutesNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutApiRoutesNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutApiRoutesNameRequestWithBody constructs an http.Request for the PutApiRoutesName method, with any body, and a specified content type
|
|
func NewPutApiRoutesNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/routes/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiServappsRequest constructs an http.Request for the GetApiServapps method
|
|
func NewGetApiServappsRequest(server string, params *GetApiServappsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.Limit != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiServappsContainerIdRequest constructs an http.Request for the GetApiServappsContainerId method
|
|
func NewGetApiServappsContainerIdRequest(server string, containerId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiServappsContainerIdAutoUpdateStatusRequest constructs an http.Request for the GetApiServappsContainerIdAutoUpdateStatus method
|
|
func NewGetApiServappsContainerIdAutoUpdateStatusRequest(server string, containerId string, status string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "status", status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/auto-update/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiServappsContainerIdCheckUpdateRequest constructs an http.Request for the GetApiServappsContainerIdCheckUpdate method
|
|
func NewGetApiServappsContainerIdCheckUpdateRequest(server string, containerId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/check-update", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiServappsContainerIdExportRequest constructs an http.Request for the GetApiServappsContainerIdExport method
|
|
func NewGetApiServappsContainerIdExportRequest(server string, containerId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/export", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiServappsContainerIdLogsRequest constructs an http.Request for the GetApiServappsContainerIdLogs method
|
|
func NewGetApiServappsContainerIdLogsRequest(server string, containerId string, params *GetApiServappsContainerIdLogsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/logs", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.Limit != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.LastReceivedLogs != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "lastReceivedLogs", *params.LastReceivedLogs, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ErrorOnly != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "errorOnly", *params.ErrorOnly, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiServappsContainerIdManageActionRequest constructs an http.Request for the GetApiServappsContainerIdManageAction method
|
|
func NewGetApiServappsContainerIdManageActionRequest(server string, containerId string, action GetApiServappsContainerIdManageActionParamsAction) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "action", action, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/manage/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiServappsContainerIdNetworkNetworkIdRequest constructs an http.Request for the DeleteApiServappsContainerIdNetworkNetworkId method
|
|
func NewDeleteApiServappsContainerIdNetworkNetworkIdRequest(server string, containerId string, networkId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "networkId", networkId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/network/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiServappsContainerIdNetworkNetworkIdRequest constructs an http.Request for the PostApiServappsContainerIdNetworkNetworkId method
|
|
func NewPostApiServappsContainerIdNetworkNetworkIdRequest(server string, containerId string, networkId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "networkId", networkId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/network/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiServappsContainerIdNetworksRequest constructs an http.Request for the GetApiServappsContainerIdNetworks method
|
|
func NewGetApiServappsContainerIdNetworksRequest(server string, containerId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/networks", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiServappsContainerIdSecureStatusRequest constructs an http.Request for the GetApiServappsContainerIdSecureStatus method
|
|
func NewGetApiServappsContainerIdSecureStatusRequest(server string, containerId string, status string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "status", status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/secure/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiServappsContainerIdUpdateRequest calls the generic PostApiServappsContainerIdUpdate builder with application/json body
|
|
func NewPostApiServappsContainerIdUpdateRequest(server string, containerId string, body PostApiServappsContainerIdUpdateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiServappsContainerIdUpdateRequestWithBody(server, containerId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiServappsContainerIdUpdateRequestWithBody constructs an http.Request for the PostApiServappsContainerIdUpdate method, with any body, and a specified content type
|
|
func NewPostApiServappsContainerIdUpdateRequestWithBody(server string, containerId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "containerId", containerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/servapps/%s/update", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiSetupRequest calls the generic PostApiSetup builder with application/json body
|
|
func NewPostApiSetupRequest(server string, body PostApiSetupJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiSetupRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiSetupRequestWithBody constructs an http.Request for the PostApiSetup method, with any body, and a specified content type
|
|
func NewPostApiSetupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/setup")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiSmartDefRequest constructs an http.Request for the GetApiSmartDef method
|
|
func NewGetApiSmartDefRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/smart-def")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiSnapraidRequest calls the generic GetApiSnapraid builder with application/json body
|
|
func NewGetApiSnapraidRequest(server string, body GetApiSnapraidJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetApiSnapraidRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetApiSnapraidRequestWithBody constructs an http.Request for the GetApiSnapraid method, with any body, and a specified content type
|
|
func NewGetApiSnapraidRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/snapraid")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiSnapraidRequest calls the generic PostApiSnapraid builder with application/json body
|
|
func NewPostApiSnapraidRequest(server string, body PostApiSnapraidJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiSnapraidRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiSnapraidRequestWithBody constructs an http.Request for the PostApiSnapraid method, with any body, and a specified content type
|
|
func NewPostApiSnapraidRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/snapraid")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiSnapraidNameRequest calls the generic DeleteApiSnapraidName builder with application/json body
|
|
func NewDeleteApiSnapraidNameRequest(server string, name string, body DeleteApiSnapraidNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteApiSnapraidNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteApiSnapraidNameRequestWithBody constructs an http.Request for the DeleteApiSnapraidName method, with any body, and a specified content type
|
|
func NewDeleteApiSnapraidNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/snapraid/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiSnapraidNameRequest calls the generic PostApiSnapraidName builder with application/json body
|
|
func NewPostApiSnapraidNameRequest(server string, name string, body PostApiSnapraidNameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiSnapraidNameRequestWithBody(server, name, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiSnapraidNameRequestWithBody constructs an http.Request for the PostApiSnapraidName method, with any body, and a specified content type
|
|
func NewPostApiSnapraidNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/snapraid/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiSnapraidNameActionRequest constructs an http.Request for the GetApiSnapraidNameAction method
|
|
func NewGetApiSnapraidNameActionRequest(server string, name string, action GetApiSnapraidNameActionParamsAction) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithOptions("simple", false, "action", action, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/snapraid/%s/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiStatusRequest constructs an http.Request for the GetApiStatus method
|
|
func NewGetApiStatusRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/status")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiSudoRequest calls the generic PostApiSudo builder with application/json body
|
|
func NewPostApiSudoRequest(server string, body PostApiSudoJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiSudoRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiSudoRequestWithBody constructs an http.Request for the PostApiSudo method, with any body, and a specified content type
|
|
func NewPostApiSudoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/sudo")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiUnmountRequest calls the generic PostApiUnmount builder with application/json body
|
|
func NewPostApiUnmountRequest(server string, body PostApiUnmountJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiUnmountRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiUnmountRequestWithBody constructs an http.Request for the PostApiUnmount method, with any body, and a specified content type
|
|
func NewPostApiUnmountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/unmount")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiUploadNameRequestWithBody constructs an http.Request for the PostApiUploadName method, with any body, and a specified content type
|
|
func NewPostApiUploadNameRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/upload/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiUsersRequest constructs an http.Request for the GetApiUsers method
|
|
func NewGetApiUsersRequest(server string, params *GetApiUsersParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/users")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
// queryValues collects non-styled parameters (passthrough, JSON)
|
|
// that are safe to round-trip through url.Values.Encode().
|
|
queryValues := queryURL.Query()
|
|
// rawQueryFragments collects pre-encoded query fragments from
|
|
// styled parameters, preserving literal commas as delimiters
|
|
// per the OpenAPI spec (e.g. "color=blue,black,brown").
|
|
var rawQueryFragments []string
|
|
|
|
if params.Limit != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for _, qp := range strings.Split(queryFrag, "&") {
|
|
rawQueryFragments = append(rawQueryFragments, qp)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if encoded := queryValues.Encode(); encoded != "" {
|
|
rawQueryFragments = append(rawQueryFragments, encoded)
|
|
}
|
|
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiUsersRequest calls the generic PostApiUsers builder with application/json body
|
|
func NewPostApiUsersRequest(server string, body PostApiUsersJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiUsersRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiUsersRequestWithBody constructs an http.Request for the PostApiUsers method, with any body, and a specified content type
|
|
func NewPostApiUsersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/users")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiUsersNicknameRequest constructs an http.Request for the DeleteApiUsersNickname method
|
|
func NewDeleteApiUsersNicknameRequest(server string, nickname string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nickname", nickname, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/users/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiUsersNicknameRequest constructs an http.Request for the GetApiUsersNickname method
|
|
func NewGetApiUsersNicknameRequest(server string, nickname string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nickname", nickname, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/users/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPatchApiUsersNicknameRequest calls the generic PatchApiUsersNickname builder with application/json body
|
|
func NewPatchApiUsersNicknameRequest(server string, nickname string, body PatchApiUsersNicknameJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPatchApiUsersNicknameRequestWithBody(server, nickname, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPatchApiUsersNicknameRequestWithBody constructs an http.Request for the PatchApiUsersNickname method, with any body, and a specified content type
|
|
func NewPatchApiUsersNicknameRequestWithBody(server string, nickname string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nickname", nickname, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/users/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteApiVolumeVolumeNameRequest constructs an http.Request for the DeleteApiVolumeVolumeName method
|
|
func NewDeleteApiVolumeVolumeNameRequest(server string, volumeName string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "volumeName", volumeName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/volume/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApiVolumesRequest constructs an http.Request for the GetApiVolumes method
|
|
func NewGetApiVolumesRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/volumes")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostApiVolumesRequest calls the generic PostApiVolumes builder with application/json body
|
|
func NewPostApiVolumesRequest(server string, body PostApiVolumesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostApiVolumesRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostApiVolumesRequestWithBody constructs an http.Request for the PostApiVolumes method, with any body, and a specified content type
|
|
func NewPostApiVolumesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/api/volumes")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetLogoRequest constructs an http.Request for the GetLogo method
|
|
func NewGetLogoRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/logo")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostRcloneConfigCreateRequest calls the generic PostRcloneConfigCreate builder with application/json body
|
|
func NewPostRcloneConfigCreateRequest(server string, body PostRcloneConfigCreateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostRcloneConfigCreateRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostRcloneConfigCreateRequestWithBody constructs an http.Request for the PostRcloneConfigCreate method, with any body, and a specified content type
|
|
func NewPostRcloneConfigCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/rclone/config/create")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteRcloneConfigDeleteRequest calls the generic DeleteRcloneConfigDelete builder with application/json body
|
|
func NewDeleteRcloneConfigDeleteRequest(server string, body DeleteRcloneConfigDeleteJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteRcloneConfigDeleteRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteRcloneConfigDeleteRequestWithBody constructs an http.Request for the DeleteRcloneConfigDelete method, with any body, and a specified content type
|
|
func NewDeleteRcloneConfigDeleteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/rclone/config/delete")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetRcloneConfigDumpRequest constructs an http.Request for the GetRcloneConfigDump method
|
|
func NewGetRcloneConfigDumpRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/rclone/config/dump")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetRcloneConfigListremotesRequest constructs an http.Request for the GetRcloneConfigListremotes method
|
|
func NewGetRcloneConfigListremotesRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/rclone/config/listremotes")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostRcloneConfigSaveRequest constructs an http.Request for the PostRcloneConfigSave method
|
|
func NewPostRcloneConfigSaveRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/rclone/config/save")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPutRcloneConfigUpdateRequest calls the generic PutRcloneConfigUpdate builder with application/json body
|
|
func NewPutRcloneConfigUpdateRequest(server string, body PutRcloneConfigUpdateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPutRcloneConfigUpdateRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPutRcloneConfigUpdateRequestWithBody constructs an http.Request for the PutRcloneConfigUpdate method, with any body, and a specified content type
|
|
func NewPutRcloneConfigUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/rclone/config/update")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetRcloneCoreStatsRequest constructs an http.Request for the GetRcloneCoreStats method
|
|
func NewGetRcloneCoreStatsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/rclone/core/stats")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostRcloneOperationsAboutRequest calls the generic PostRcloneOperationsAbout builder with application/json body
|
|
func NewPostRcloneOperationsAboutRequest(server string, body PostRcloneOperationsAboutJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostRcloneOperationsAboutRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostRcloneOperationsAboutRequestWithBody constructs an http.Request for the PostRcloneOperationsAbout method, with any body, and a specified content type
|
|
func NewPostRcloneOperationsAboutRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/rclone/operations/about")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPostRcloneVfsStatsRequest calls the generic PostRcloneVfsStats builder with application/json body
|
|
func NewPostRcloneVfsStatsRequest(server string, body PostRcloneVfsStatsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPostRcloneVfsStatsRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPostRcloneVfsStatsRequestWithBody constructs an http.Request for the PostRcloneVfsStats method, with any body, and a specified content type
|
|
func NewPostRcloneVfsStatsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/rclone/vfs/stats")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
|
|
for _, r := range c.RequestEditors {
|
|
if err := r(ctx, req); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
for _, r := range additionalEditors {
|
|
if err := r(ctx, req); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ClientWithResponses builds on ClientInterface to offer response payloads
|
|
type ClientWithResponses struct {
|
|
ClientInterface
|
|
}
|
|
|
|
// NewClientWithResponses creates a new ClientWithResponses, which wraps
|
|
// Client with return type handling
|
|
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {
|
|
client, err := NewClient(server, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &ClientWithResponses{client}, nil
|
|
}
|
|
|
|
// WithBaseURL overrides the baseURL.
|
|
func WithBaseURL(baseURL string) ClientOption {
|
|
return func(c *Client) error {
|
|
newBaseURL, err := url.Parse(baseURL)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
c.Server = newBaseURL.String()
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// ClientWithResponsesInterface is the interface specification for the client with responses above.
|
|
type ClientWithResponsesInterface interface {
|
|
|
|
// GetLogsWithResponse Download server logs
|
|
//
|
|
// Returns the server log file as a plain text attachment.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /_logs (the `GetLogs` operationId).
|
|
GetLogsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogsResponse, error)
|
|
|
|
// GetApiMemoryWithResponse Get internal memory status
|
|
//
|
|
// Returns memory usage details for internal caches and buffers.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/_memory (the `GetApiMemory` operationId).
|
|
GetApiMemoryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMemoryResponse, error)
|
|
|
|
// GetApiAlertsWithBodyWithResponse List or create monitoring alerts
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/alerts (the `GetApiAlerts` operationId).
|
|
GetApiAlertsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiAlertsResponse, error)
|
|
|
|
// GetApiAlertsWithResponse List or create monitoring alerts
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/alerts (the `GetApiAlerts` operationId).
|
|
GetApiAlertsWithResponse(ctx context.Context, body GetApiAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiAlertsResponse, error)
|
|
|
|
// PostApiAlertsWithBodyWithResponse List or create monitoring alerts
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/alerts (the `PostApiAlerts` operationId).
|
|
PostApiAlertsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAlertsResponse, error)
|
|
|
|
// PostApiAlertsWithResponse List or create monitoring alerts
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/alerts (the `PostApiAlerts` operationId).
|
|
PostApiAlertsWithResponse(ctx context.Context, body PostApiAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAlertsResponse, error)
|
|
|
|
// DeleteApiAlertsNameWithBodyWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/alerts/{name} (the `DeleteApiAlertsName` operationId).
|
|
DeleteApiAlertsNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiAlertsNameResponse, error)
|
|
|
|
// DeleteApiAlertsNameWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/alerts/{name} (the `DeleteApiAlertsName` operationId).
|
|
DeleteApiAlertsNameWithResponse(ctx context.Context, name string, body DeleteApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiAlertsNameResponse, error)
|
|
|
|
// GetApiAlertsNameWithBodyWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/alerts/{name} (the `GetApiAlertsName` operationId).
|
|
GetApiAlertsNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiAlertsNameResponse, error)
|
|
|
|
// GetApiAlertsNameWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/alerts/{name} (the `GetApiAlertsName` operationId).
|
|
GetApiAlertsNameWithResponse(ctx context.Context, name string, body GetApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiAlertsNameResponse, error)
|
|
|
|
// PutApiAlertsNameWithBodyWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/alerts/{name} (the `PutApiAlertsName` operationId).
|
|
PutApiAlertsNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAlertsNameResponse, error)
|
|
|
|
// PutApiAlertsNameWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/alerts/{name} (the `PutApiAlertsName` operationId).
|
|
PutApiAlertsNameWithResponse(ctx context.Context, name string, body PutApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAlertsNameResponse, error)
|
|
|
|
// DeleteApiApiTokensWithBodyWithResponse Delete an API token
|
|
//
|
|
// Removes an API token by name.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/api-tokens (the `DeleteApiApiTokens` operationId).
|
|
DeleteApiApiTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiApiTokensResponse, error)
|
|
|
|
// DeleteApiApiTokensWithResponse Delete an API token
|
|
//
|
|
// Removes an API token by name.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/api-tokens (the `DeleteApiApiTokens` operationId).
|
|
DeleteApiApiTokensWithResponse(ctx context.Context, body DeleteApiApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiApiTokensResponse, error)
|
|
|
|
// GetApiApiTokensWithResponse List all API tokens
|
|
//
|
|
// Returns all configured API tokens (without the actual token hashes).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/api-tokens (the `GetApiApiTokens` operationId).
|
|
GetApiApiTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiApiTokensResponse, error)
|
|
|
|
// PostApiApiTokensWithBodyWithResponse Create a new API token
|
|
//
|
|
// Generates a new API token with the specified permissions and returns the raw token (shown only once).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/api-tokens (the `PostApiApiTokens` operationId).
|
|
PostApiApiTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiApiTokensResponse, error)
|
|
|
|
// PostApiApiTokensWithResponse Create a new API token
|
|
//
|
|
// Generates a new API token with the specified permissions and returns the raw token (shown only once).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/api-tokens (the `PostApiApiTokens` operationId).
|
|
PostApiApiTokensWithResponse(ctx context.Context, body PostApiApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiApiTokensResponse, error)
|
|
|
|
// PutApiApiTokensNameWithBodyWithResponse Update an API token
|
|
//
|
|
// Updates an existing API token's description, permissions, IP whitelist, or constellation restriction
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/api-tokens/{name} (the `PutApiApiTokensName` operationId).
|
|
PutApiApiTokensNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiApiTokensNameResponse, error)
|
|
|
|
// PutApiApiTokensNameWithResponse Update an API token
|
|
//
|
|
// Updates an existing API token's description, permissions, IP whitelist, or constellation restriction
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/api-tokens/{name} (the `PutApiApiTokensName` operationId).
|
|
PutApiApiTokensNameWithResponse(ctx context.Context, name string, body PutApiApiTokensNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiApiTokensNameResponse, error)
|
|
|
|
// PostApiBackupsWithBodyWithResponse Create a new backup configuration
|
|
//
|
|
// Creates a backup config and initializes the repository if needed. Requires premium licence and non-container mode.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups (the `PostApiBackups` operationId).
|
|
PostApiBackupsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiBackupsResponse, error)
|
|
|
|
// PostApiBackupsWithResponse Create a new backup configuration
|
|
//
|
|
// Creates a backup config and initializes the repository if needed. Requires premium licence and non-container mode.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups (the `PostApiBackups` operationId).
|
|
PostApiBackupsWithResponse(ctx context.Context, body PostApiBackupsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiBackupsResponse, error)
|
|
|
|
// GetApiBackupsConfigWithResponse List all backup configurations
|
|
//
|
|
// Returns a map of all backup configurations from the server config, keyed by backup name.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-config (the `GetApiBackupsConfig` operationId).
|
|
GetApiBackupsConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiBackupsConfigResponse, error)
|
|
|
|
// GetApiBackupsConfigNameWithResponse Get a single backup configuration by name
|
|
//
|
|
// Returns a single backup configuration from the server config.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-config/{name} (the `GetApiBackupsConfigName` operationId).
|
|
GetApiBackupsConfigNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiBackupsConfigNameResponse, error)
|
|
|
|
// GetApiBackupsRepositoryWithResponse List all backup repositories with their lock status
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-repository (the `GetApiBackupsRepository` operationId).
|
|
GetApiBackupsRepositoryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiBackupsRepositoryResponse, error)
|
|
|
|
// GetApiBackupsRepositoryNameSnapshotsWithResponse List all snapshots in a backup repository (all backup tags)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-repository/{name}/snapshots (the `GetApiBackupsRepositoryNameSnapshots` operationId).
|
|
GetApiBackupsRepositoryNameSnapshotsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiBackupsRepositoryNameSnapshotsResponse, error)
|
|
|
|
// GetApiBackupsRepositoryNameStatsWithResponse Get repository statistics (size, file count, etc.)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-repository/{name}/stats (the `GetApiBackupsRepositoryNameStats` operationId).
|
|
GetApiBackupsRepositoryNameStatsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiBackupsRepositoryNameStatsResponse, error)
|
|
|
|
// PostApiBackupsEditWithBodyWithResponse Edit an existing backup configuration
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/edit (the `PostApiBackupsEdit` operationId).
|
|
PostApiBackupsEditWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiBackupsEditResponse, error)
|
|
|
|
// PostApiBackupsEditWithResponse Edit an existing backup configuration
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/edit (the `PostApiBackupsEdit` operationId).
|
|
PostApiBackupsEditWithResponse(ctx context.Context, body PostApiBackupsEditJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiBackupsEditResponse, error)
|
|
|
|
// DeleteApiBackupsNameWithResponse Remove a backup configuration and its snapshots
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/backups/{name} (the `DeleteApiBackupsName` operationId).
|
|
DeleteApiBackupsNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteApiBackupsNameResponse, error)
|
|
|
|
// PostApiBackupsNameRestoreWithBodyWithResponse Restore files from a backup snapshot
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/restore (the `PostApiBackupsNameRestore` operationId).
|
|
PostApiBackupsNameRestoreWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiBackupsNameRestoreResponse, error)
|
|
|
|
// PostApiBackupsNameRestoreWithResponse Restore files from a backup snapshot
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/restore (the `PostApiBackupsNameRestore` operationId).
|
|
PostApiBackupsNameRestoreWithResponse(ctx context.Context, name string, body PostApiBackupsNameRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiBackupsNameRestoreResponse, error)
|
|
|
|
// GetApiBackupsNameSnapshotsWithResponse List snapshots for a specific backup
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/snapshots (the `GetApiBackupsNameSnapshots` operationId).
|
|
GetApiBackupsNameSnapshotsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiBackupsNameSnapshotsResponse, error)
|
|
|
|
// PostApiBackupsNameUnlockWithResponse Unlock a backup repository (remove stale locks)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/unlock (the `PostApiBackupsNameUnlock` operationId).
|
|
PostApiBackupsNameUnlockWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PostApiBackupsNameUnlockResponse, error)
|
|
|
|
// GetApiBackupsNameSnapshotFoldersWithResponse List folders in a backup snapshot
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/{snapshot}/folders (the `GetApiBackupsNameSnapshotFolders` operationId).
|
|
GetApiBackupsNameSnapshotFoldersWithResponse(ctx context.Context, name string, snapshot string, params *GetApiBackupsNameSnapshotFoldersParams, reqEditors ...RequestEditorFn) (*GetApiBackupsNameSnapshotFoldersResponse, error)
|
|
|
|
// DeleteApiBackupsNameSnapshotForgetWithResponse Forget (delete) a specific snapshot from a backup repository
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/backups/{name}/{snapshot}/forget (the `DeleteApiBackupsNameSnapshotForget` operationId).
|
|
DeleteApiBackupsNameSnapshotForgetWithResponse(ctx context.Context, name string, snapshot string, reqEditors ...RequestEditorFn) (*DeleteApiBackupsNameSnapshotForgetResponse, error)
|
|
|
|
// GetApiBackupsNameSnapshotSubfolderRestoreSizeWithResponse Get restore size stats for a subfolder within a snapshot
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/{snapshot}/subfolder-restore-size (the `GetApiBackupsNameSnapshotSubfolderRestoreSize` operationId).
|
|
GetApiBackupsNameSnapshotSubfolderRestoreSizeWithResponse(ctx context.Context, name string, snapshot string, params *GetApiBackupsNameSnapshotSubfolderRestoreSizeParams, reqEditors ...RequestEditorFn) (*GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse, error)
|
|
|
|
// GetApiCanSendEmailWithResponse Check if email sending is enabled
|
|
//
|
|
// Returns whether the server has email sending capabilities configured.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/can-send-email (the `GetApiCanSendEmail` operationId).
|
|
GetApiCanSendEmailWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiCanSendEmailResponse, error)
|
|
|
|
// GetApiConfigWithResponse Get server configuration
|
|
//
|
|
// Returns the full server configuration (sensitive fields masked for non-credential users).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/config (the `GetApiConfig` operationId).
|
|
GetApiConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConfigResponse, error)
|
|
|
|
// PatchApiConfigWithBodyWithResponse Patch route configuration
|
|
//
|
|
// Performs route operations (add, replace, delete, move_up, move_down) on proxy routes
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/config (the `PatchApiConfig` operationId).
|
|
PatchApiConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiConfigResponse, error)
|
|
|
|
// PatchApiConfigWithResponse Patch route configuration
|
|
//
|
|
// Performs route operations (add, replace, delete, move_up, move_down) on proxy routes
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/config (the `PatchApiConfig` operationId).
|
|
PatchApiConfigWithResponse(ctx context.Context, body PatchApiConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiConfigResponse, error)
|
|
|
|
// PutApiConfigWithBodyWithResponse Update server configuration
|
|
//
|
|
// Replaces the entire server configuration (masked credential fields are preserved from existing config).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/config (the `PutApiConfig` operationId).
|
|
PutApiConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiConfigResponse, error)
|
|
|
|
// PutApiConfigWithResponse Update server configuration
|
|
//
|
|
// Replaces the entire server configuration (masked credential fields are preserved from existing config).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/config (the `PutApiConfig` operationId).
|
|
PutApiConfigWithResponse(ctx context.Context, body PutApiConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiConfigResponse, error)
|
|
|
|
// PatchApiConfigDnsWithBodyWithResponse Update DNS configuration
|
|
//
|
|
// Patches DNS-related settings including port, fallback, blocklists, and custom entries
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/config/dns (the `PatchApiConfigDns` operationId).
|
|
PatchApiConfigDnsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiConfigDnsResponse, error)
|
|
|
|
// PatchApiConfigDnsWithResponse Update DNS configuration
|
|
//
|
|
// Patches DNS-related settings including port, fallback, blocklists, and custom entries
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/config/dns (the `PatchApiConfigDns` operationId).
|
|
PatchApiConfigDnsWithResponse(ctx context.Context, body PatchApiConfigDnsJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiConfigDnsResponse, error)
|
|
|
|
// PostApiConstellationBlockWithBodyWithResponse Block or unblock a Constellation device
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/block (the `PostApiConstellationBlock` operationId).
|
|
PostApiConstellationBlockWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationBlockResponse, error)
|
|
|
|
// PostApiConstellationBlockWithResponse Block or unblock a Constellation device
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/block (the `PostApiConstellationBlock` operationId).
|
|
PostApiConstellationBlockWithResponse(ctx context.Context, body PostApiConstellationBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationBlockResponse, error)
|
|
|
|
// GetApiConstellationConfigWithResponse Get the current Nebula configuration
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/config (the `GetApiConstellationConfig` operationId).
|
|
GetApiConstellationConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationConfigResponse, error)
|
|
|
|
// PostApiConstellationConnectWithBodyWithResponse Connect this node to an existing Constellation VPN network
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/connect (the `PostApiConstellationConnect` operationId).
|
|
PostApiConstellationConnectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationConnectResponse, error)
|
|
|
|
// PostApiConstellationCreateWithBodyWithResponse Create a new Constellation VPN network
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/create (the `PostApiConstellationCreate` operationId).
|
|
PostApiConstellationCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationCreateResponse, error)
|
|
|
|
// PostApiConstellationCreateWithResponse Create a new Constellation VPN network
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/create (the `PostApiConstellationCreate` operationId).
|
|
PostApiConstellationCreateWithResponse(ctx context.Context, body PostApiConstellationCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationCreateResponse, error)
|
|
|
|
// GetApiConstellationDeploymentsWithResponse List all cluster deployments
|
|
//
|
|
// Returns all deployment definitions from the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments (the `GetApiConstellationDeployments` operationId).
|
|
GetApiConstellationDeploymentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationDeploymentsResponse, error)
|
|
|
|
// PostApiConstellationDeploymentsWithBodyWithResponse Create a new cluster deployment
|
|
//
|
|
// Creates a new deployment definition in the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments (the `PostApiConstellationDeployments` operationId).
|
|
PostApiConstellationDeploymentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationDeploymentsResponse, error)
|
|
|
|
// PostApiConstellationDeploymentsWithResponse Create a new cluster deployment
|
|
//
|
|
// Creates a new deployment definition in the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments (the `PostApiConstellationDeployments` operationId).
|
|
PostApiConstellationDeploymentsWithResponse(ctx context.Context, body PostApiConstellationDeploymentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationDeploymentsResponse, error)
|
|
|
|
// GetApiConstellationDeploymentsHealthWithResponse Cluster health for all deployments
|
|
//
|
|
// Returns desired vs. actual replica placement per deployment plus
|
|
// scheduler quarantine state (Pro feature). Read-only: safe to call
|
|
// from any node, not just the scheduler leader.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments/health (the `GetApiConstellationDeploymentsHealth` operationId).
|
|
GetApiConstellationDeploymentsHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationDeploymentsHealthResponse, error)
|
|
|
|
// DeleteApiConstellationDeploymentsNameWithResponse Delete a cluster deployment
|
|
//
|
|
// Removes a deployment from the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/constellation/deployments/{name} (the `DeleteApiConstellationDeploymentsName` operationId).
|
|
DeleteApiConstellationDeploymentsNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteApiConstellationDeploymentsNameResponse, error)
|
|
|
|
// GetApiConstellationDeploymentsNameWithResponse Get a cluster deployment by name
|
|
//
|
|
// Returns a single deployment definition (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments/{name} (the `GetApiConstellationDeploymentsName` operationId).
|
|
GetApiConstellationDeploymentsNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiConstellationDeploymentsNameResponse, error)
|
|
|
|
// PutApiConstellationDeploymentsNameWithBodyWithResponse Update a cluster deployment
|
|
//
|
|
// Updates an existing deployment definition (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/constellation/deployments/{name} (the `PutApiConstellationDeploymentsName` operationId).
|
|
PutApiConstellationDeploymentsNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiConstellationDeploymentsNameResponse, error)
|
|
|
|
// PutApiConstellationDeploymentsNameWithResponse Update a cluster deployment
|
|
//
|
|
// Updates an existing deployment definition (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/constellation/deployments/{name} (the `PutApiConstellationDeploymentsName` operationId).
|
|
PutApiConstellationDeploymentsNameWithResponse(ctx context.Context, name string, body PutApiConstellationDeploymentsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiConstellationDeploymentsNameResponse, error)
|
|
|
|
// PostApiConstellationDeploymentsNameUnbrokeWithResponse Clear a deployment's quarantine
|
|
//
|
|
// Removes a deployment from the scheduler's quarantine set so the
|
|
// next reconcile cycle attempts to place it again (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments/{name}/unbroke (the `PostApiConstellationDeploymentsNameUnbroke` operationId).
|
|
PostApiConstellationDeploymentsNameUnbrokeWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PostApiConstellationDeploymentsNameUnbrokeResponse, error)
|
|
|
|
// GetApiConstellationDevicesWithResponse List Constellation devices for the current user (or all if admin)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/devices (the `GetApiConstellationDevices` operationId).
|
|
GetApiConstellationDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationDevicesResponse, error)
|
|
|
|
// PostApiConstellationDevicesWithBodyWithResponse Create a new Constellation device and generate its certificates
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/devices (the `PostApiConstellationDevices` operationId).
|
|
PostApiConstellationDevicesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationDevicesResponse, error)
|
|
|
|
// PostApiConstellationDevicesWithResponse Create a new Constellation device and generate its certificates
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/devices (the `PostApiConstellationDevices` operationId).
|
|
PostApiConstellationDevicesWithResponse(ctx context.Context, body PostApiConstellationDevicesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationDevicesResponse, error)
|
|
|
|
// GetApiConstellationDevicesIdPingWithResponse Ping a Constellation device to check reachability
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/devices/{id}/ping (the `GetApiConstellationDevicesIdPing` operationId).
|
|
GetApiConstellationDevicesIdPingWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiConstellationDevicesIdPingResponse, error)
|
|
|
|
// GetApiConstellationDnsWithResponse List all custom Constellation DNS entries
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/dns (the `GetApiConstellationDns` operationId).
|
|
GetApiConstellationDnsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationDnsResponse, error)
|
|
|
|
// PostApiConstellationDnsWithBodyWithResponse Create a new Constellation DNS entry
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/dns (the `PostApiConstellationDns` operationId).
|
|
PostApiConstellationDnsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationDnsResponse, error)
|
|
|
|
// PostApiConstellationDnsWithResponse Create a new Constellation DNS entry
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/dns (the `PostApiConstellationDns` operationId).
|
|
PostApiConstellationDnsWithResponse(ctx context.Context, body PostApiConstellationDnsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationDnsResponse, error)
|
|
|
|
// DeleteApiConstellationDnsKeyWithResponse Delete a Constellation DNS entry by key
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/constellation/dns/{key} (the `DeleteApiConstellationDnsKey` operationId).
|
|
DeleteApiConstellationDnsKeyWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*DeleteApiConstellationDnsKeyResponse, error)
|
|
|
|
// GetApiConstellationDnsKeyWithResponse Get a single Constellation DNS entry by key
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/dns/{key} (the `GetApiConstellationDnsKey` operationId).
|
|
GetApiConstellationDnsKeyWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*GetApiConstellationDnsKeyResponse, error)
|
|
|
|
// PutApiConstellationDnsKeyWithBodyWithResponse Update an existing Constellation DNS entry
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/constellation/dns/{key} (the `PutApiConstellationDnsKey` operationId).
|
|
PutApiConstellationDnsKeyWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiConstellationDnsKeyResponse, error)
|
|
|
|
// PutApiConstellationDnsKeyWithResponse Update an existing Constellation DNS entry
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/constellation/dns/{key} (the `PutApiConstellationDnsKey` operationId).
|
|
PutApiConstellationDnsKeyWithResponse(ctx context.Context, key string, body PutApiConstellationDnsKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiConstellationDnsKeyResponse, error)
|
|
|
|
// PostApiConstellationEditDeviceWithBodyWithResponse Edit the current Constellation device properties
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/edit-device (the `PostApiConstellationEditDevice` operationId).
|
|
PostApiConstellationEditDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationEditDeviceResponse, error)
|
|
|
|
// PostApiConstellationEditDeviceWithResponse Edit the current Constellation device properties
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/edit-device (the `PostApiConstellationEditDevice` operationId).
|
|
PostApiConstellationEditDeviceWithResponse(ctx context.Context, body PostApiConstellationEditDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationEditDeviceResponse, error)
|
|
|
|
// PostApiConstellationForceReformWithResponse Force the constellation to re-form around this manager
|
|
//
|
|
// HA only. Bumps the op-log epoch, drops local JetStream state, blocks the other managers and restarts NATS, leaving this node writable in formation mode so replacements can be enrolled. Does not touch the CA, keys, config or device data.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/force-reform (the `PostApiConstellationForceReform` operationId).
|
|
PostApiConstellationForceReformWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiConstellationForceReformResponse, error)
|
|
|
|
// GetApiConstellationGetNextIpWithResponse Get the next available IP address in the Constellation CIDR range
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/get-next-ip (the `GetApiConstellationGetNextIp` operationId).
|
|
GetApiConstellationGetNextIpWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationGetNextIpResponse, error)
|
|
|
|
// GetApiConstellationLogsWithResponse Get Nebula VPN service logs
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/logs (the `GetApiConstellationLogs` operationId).
|
|
GetApiConstellationLogsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationLogsResponse, error)
|
|
|
|
// GetApiConstellationNatsStatusWithResponse Detailed NATS/JetStream status for debugging
|
|
//
|
|
// Declared topology (role, HA mode), live NATS server/client/JetStream/KV state, connection counts and known managers.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/nats-status (the `GetApiConstellationNatsStatus` operationId).
|
|
GetApiConstellationNatsStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationNatsStatusResponse, error)
|
|
|
|
// PostApiConstellationNodesNameUnbrokeWithResponse Clear a node's quarantine
|
|
//
|
|
// Removes a node from the scheduler's quarantine set and resets its
|
|
// fail streak so the next reconcile cycle is free to place work on it
|
|
// again (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/nodes/{name}/unbroke (the `PostApiConstellationNodesNameUnbroke` operationId).
|
|
PostApiConstellationNodesNameUnbrokeWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PostApiConstellationNodesNameUnbrokeResponse, error)
|
|
|
|
// GetApiConstellationPingWithResponse Check if the NATS client connection is alive
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/ping (the `GetApiConstellationPing` operationId).
|
|
GetApiConstellationPingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationPingResponse, error)
|
|
|
|
// GetApiConstellationPublicDevicesWithResponse List public information about all non-blocked Constellation devices
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/public-devices (the `GetApiConstellationPublicDevices` operationId).
|
|
GetApiConstellationPublicDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationPublicDevicesResponse, error)
|
|
|
|
// GetApiConstellationResetWithResponse Reset the Nebula VPN configuration
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/reset (the `GetApiConstellationReset` operationId).
|
|
GetApiConstellationResetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationResetResponse, error)
|
|
|
|
// GetApiConstellationRestartWithResponse Restart the Nebula VPN service and HTTP server
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/restart (the `GetApiConstellationRestart` operationId).
|
|
GetApiConstellationRestartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationRestartResponse, error)
|
|
|
|
// GetApiConstellationTunnelsWithResponse List all active Constellation tunnels
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/tunnels (the `GetApiConstellationTunnels` operationId).
|
|
GetApiConstellationTunnelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationTunnelsResponse, error)
|
|
|
|
// GetApiCronWithBodyWithResponse List or create CRON job configurations
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/cron (the `GetApiCron` operationId).
|
|
GetApiCronWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiCronResponse, error)
|
|
|
|
// GetApiCronWithResponse List or create CRON job configurations
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/cron (the `GetApiCron` operationId).
|
|
GetApiCronWithResponse(ctx context.Context, body GetApiCronJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiCronResponse, error)
|
|
|
|
// PostApiCronWithBodyWithResponse List or create CRON job configurations
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/cron (the `PostApiCron` operationId).
|
|
PostApiCronWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiCronResponse, error)
|
|
|
|
// PostApiCronWithResponse List or create CRON job configurations
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/cron (the `PostApiCron` operationId).
|
|
PostApiCronWithResponse(ctx context.Context, body PostApiCronJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiCronResponse, error)
|
|
|
|
// DeleteApiCronNameWithBodyWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/cron/{name} (the `DeleteApiCronName` operationId).
|
|
DeleteApiCronNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiCronNameResponse, error)
|
|
|
|
// DeleteApiCronNameWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/cron/{name} (the `DeleteApiCronName` operationId).
|
|
DeleteApiCronNameWithResponse(ctx context.Context, name string, body DeleteApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiCronNameResponse, error)
|
|
|
|
// GetApiCronNameWithBodyWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/cron/{name} (the `GetApiCronName` operationId).
|
|
GetApiCronNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiCronNameResponse, error)
|
|
|
|
// GetApiCronNameWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/cron/{name} (the `GetApiCronName` operationId).
|
|
GetApiCronNameWithResponse(ctx context.Context, name string, body GetApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiCronNameResponse, error)
|
|
|
|
// PutApiCronNameWithBodyWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/cron/{name} (the `PutApiCronName` operationId).
|
|
PutApiCronNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiCronNameResponse, error)
|
|
|
|
// PutApiCronNameWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/cron/{name} (the `PutApiCronName` operationId).
|
|
PutApiCronNameWithResponse(ctx context.Context, name string, body PutApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiCronNameResponse, error)
|
|
|
|
// GetApiDashboardWithResponse Get dashboard data
|
|
//
|
|
// Returns dashboard route information with container status for SERVAPP routes.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/dashboard (the `GetApiDashboard` operationId).
|
|
GetApiDashboardWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDashboardResponse, error)
|
|
|
|
// GetApiDisksWithResponse List all disks
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/disks (the `GetApiDisks` operationId).
|
|
GetApiDisksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDisksResponse, error)
|
|
|
|
// PostApiDisksFormatWithBodyWithResponse Format a disk or partition
|
|
//
|
|
// Formats the specified disk with the given filesystem format. Requires password confirmation. Streams progress output.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/disks/format (the `PostApiDisksFormat` operationId).
|
|
PostApiDisksFormatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDisksFormatResponse, error)
|
|
|
|
// PostApiDisksFormatWithResponse Format a disk or partition
|
|
//
|
|
// Formats the specified disk with the given filesystem format. Requires password confirmation. Streams progress output.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/disks/format (the `PostApiDisksFormat` operationId).
|
|
PostApiDisksFormatWithResponse(ctx context.Context, body PostApiDisksFormatJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDisksFormatResponse, error)
|
|
|
|
// GetApiDnsWithResponse Resolve DNS for a URL
|
|
//
|
|
// Performs a DNS lookup for the given URL and returns the resolved IPv4 address.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/dns (the `GetApiDns` operationId).
|
|
GetApiDnsWithResponse(ctx context.Context, params *GetApiDnsParams, reqEditors ...RequestEditorFn) (*GetApiDnsResponse, error)
|
|
|
|
// GetApiDnsCheckWithResponse Check DNS configuration for a URL
|
|
//
|
|
// Verifies that DNS is correctly configured for the given URL.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/dns-check (the `GetApiDnsCheck` operationId).
|
|
GetApiDnsCheckWithResponse(ctx context.Context, params *GetApiDnsCheckParams, reqEditors ...RequestEditorFn) (*GetApiDnsCheckResponse, error)
|
|
|
|
// PostApiDockerServiceWithBodyWithResponse Create a Docker service (compose-like) with networks, volumes, and containers
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/docker-service (the `PostApiDockerService` operationId).
|
|
PostApiDockerServiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDockerServiceResponse, error)
|
|
|
|
// PostApiDockerServiceWithResponse Create a Docker service (compose-like) with networks, volumes, and containers
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/docker-service (the `PostApiDockerService` operationId).
|
|
PostApiDockerServiceWithResponse(ctx context.Context, body PostApiDockerServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDockerServiceResponse, error)
|
|
|
|
// GetApiEventsWithResponse List events with filtering and pagination
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/events (the `GetApiEvents` operationId).
|
|
GetApiEventsWithResponse(ctx context.Context, params *GetApiEventsParams, reqEditors ...RequestEditorFn) (*GetApiEventsResponse, error)
|
|
|
|
// GetApiFaviconWithResponse Get favicon for a URL
|
|
//
|
|
// Fetches and caches the favicon for the given URL, returning it as an image
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/favicon (the `GetApiFavicon` operationId).
|
|
GetApiFaviconWithResponse(ctx context.Context, params *GetApiFaviconParams, reqEditors ...RequestEditorFn) (*GetApiFaviconResponse, error)
|
|
|
|
// PostApiForceServerUpdateWithResponse Force check for server updates
|
|
//
|
|
// Triggers a manual check for available server updates.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/force-server-update (the `PostApiForceServerUpdate` operationId).
|
|
PostApiForceServerUpdateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiForceServerUpdateResponse, error)
|
|
|
|
// GetApiGetBackupWithResponse Get backup file
|
|
//
|
|
// Returns the backup cosmos-compose JSON file.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/get-backup (the `GetApiGetBackup` operationId).
|
|
GetApiGetBackupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiGetBackupResponse, error)
|
|
|
|
// GetApiGroupsWithResponse List all groups
|
|
//
|
|
// Returns all custom role groups (role ID >= 3).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/groups (the `GetApiGroups` operationId).
|
|
GetApiGroupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiGroupsResponse, error)
|
|
|
|
// PostApiGroupsWithBodyWithResponse Create a new group
|
|
//
|
|
// Creates a new custom role group with name and permissions (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/groups (the `PostApiGroups` operationId).
|
|
PostApiGroupsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiGroupsResponse, error)
|
|
|
|
// PostApiGroupsWithResponse Create a new group
|
|
//
|
|
// Creates a new custom role group with name and permissions (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/groups (the `PostApiGroups` operationId).
|
|
PostApiGroupsWithResponse(ctx context.Context, body PostApiGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiGroupsResponse, error)
|
|
|
|
// DeleteApiGroupsIdWithResponse Delete a group
|
|
//
|
|
// Deletes a custom role group. Fails if users are still assigned to it. (Pro feature)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/groups/{id} (the `DeleteApiGroupsId` operationId).
|
|
DeleteApiGroupsIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteApiGroupsIdResponse, error)
|
|
|
|
// PutApiGroupsIdWithBodyWithResponse Update a group
|
|
//
|
|
// Updates an existing group's name or permissions (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/groups/{id} (the `PutApiGroupsId` operationId).
|
|
PutApiGroupsIdWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiGroupsIdResponse, error)
|
|
|
|
// PutApiGroupsIdWithResponse Update a group
|
|
//
|
|
// Updates an existing group's name or permissions (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/groups/{id} (the `PutApiGroupsId` operationId).
|
|
PutApiGroupsIdWithResponse(ctx context.Context, id int, body PutApiGroupsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiGroupsIdResponse, error)
|
|
|
|
// GetApiImageNameWithResponse Get an uploaded image
|
|
//
|
|
// Returns a previously uploaded image by name.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/image/{name} (the `GetApiImageName` operationId).
|
|
GetApiImageNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiImageNameResponse, error)
|
|
|
|
// GetApiImagesWithResponse Inspect a Docker image by name
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/images (the `GetApiImages` operationId).
|
|
GetApiImagesWithResponse(ctx context.Context, params *GetApiImagesParams, reqEditors ...RequestEditorFn) (*GetApiImagesResponse, error)
|
|
|
|
// GetApiImagesPullWithResponse Pull a Docker image from a registry
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/images/pull (the `GetApiImagesPull` operationId).
|
|
GetApiImagesPullWithResponse(ctx context.Context, params *GetApiImagesPullParams, reqEditors ...RequestEditorFn) (*GetApiImagesPullResponse, error)
|
|
|
|
// GetApiImagesPullIfMissingWithResponse Pull a Docker image only if it is not already present locally
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/images/pull-if-missing (the `GetApiImagesPullIfMissing` operationId).
|
|
GetApiImagesPullIfMissingWithResponse(ctx context.Context, params *GetApiImagesPullIfMissingParams, reqEditors ...RequestEditorFn) (*GetApiImagesPullIfMissingResponse, error)
|
|
|
|
// PostApiInviteWithBodyWithResponse Resend invite link
|
|
//
|
|
// Generates a new registration key and optionally sends an invite or password reset email.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/invite (the `PostApiInvite` operationId).
|
|
PostApiInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiInviteResponse, error)
|
|
|
|
// PostApiInviteWithResponse Resend invite link
|
|
//
|
|
// Generates a new registration key and optionally sends an invite or password reset email.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/invite (the `PostApiInvite` operationId).
|
|
PostApiInviteWithResponse(ctx context.Context, body PostApiInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiInviteResponse, error)
|
|
|
|
// GetApiJobsWithResponse List all scheduled jobs
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/jobs (the `GetApiJobs` operationId).
|
|
GetApiJobsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiJobsResponse, error)
|
|
|
|
// PostApiJobsDeleteWithBodyWithResponse Delete a job from the CRON configuration
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/delete (the `PostApiJobsDelete` operationId).
|
|
PostApiJobsDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiJobsDeleteResponse, error)
|
|
|
|
// PostApiJobsDeleteWithResponse Delete a job from the CRON configuration
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/delete (the `PostApiJobsDelete` operationId).
|
|
PostApiJobsDeleteWithResponse(ctx context.Context, body PostApiJobsDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiJobsDeleteResponse, error)
|
|
|
|
// PostApiJobsGetWithBodyWithResponse Get details and logs of a specific job
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/get (the `PostApiJobsGet` operationId).
|
|
PostApiJobsGetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiJobsGetResponse, error)
|
|
|
|
// PostApiJobsGetWithResponse Get details and logs of a specific job
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/get (the `PostApiJobsGet` operationId).
|
|
PostApiJobsGetWithResponse(ctx context.Context, body PostApiJobsGetJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiJobsGetResponse, error)
|
|
|
|
// PostApiJobsRunWithBodyWithResponse Manually trigger a job to run
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/run (the `PostApiJobsRun` operationId).
|
|
PostApiJobsRunWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiJobsRunResponse, error)
|
|
|
|
// PostApiJobsRunWithResponse Manually trigger a job to run
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/run (the `PostApiJobsRun` operationId).
|
|
PostApiJobsRunWithResponse(ctx context.Context, body PostApiJobsRunJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiJobsRunResponse, error)
|
|
|
|
// GetApiJobsRunningWithResponse List currently running jobs
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/jobs/running (the `GetApiJobsRunning` operationId).
|
|
GetApiJobsRunningWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiJobsRunningResponse, error)
|
|
|
|
// PostApiJobsStopWithBodyWithResponse Stop a running job
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/stop (the `PostApiJobsStop` operationId).
|
|
PostApiJobsStopWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiJobsStopResponse, error)
|
|
|
|
// PostApiJobsStopWithResponse Stop a running job
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/stop (the `PostApiJobsStop` operationId).
|
|
PostApiJobsStopWithResponse(ctx context.Context, body PostApiJobsStopJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiJobsStopResponse, error)
|
|
|
|
// GetApiListDirWithResponse List the contents of a directory
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/list-dir (the `GetApiListDir` operationId).
|
|
GetApiListDirWithResponse(ctx context.Context, params *GetApiListDirParams, reqEditors ...RequestEditorFn) (*GetApiListDirResponse, error)
|
|
|
|
// GetApiListMetricsWithResponse List all available metric keys and their labels
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/list-metrics (the `GetApiListMetrics` operationId).
|
|
GetApiListMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiListMetricsResponse, error)
|
|
|
|
// PostApiLoginWithBodyWithResponse User login
|
|
//
|
|
// Authenticates a user with nickname and password, sets JWT cookie on success
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
|
|
PostApiLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiLoginResponse, error)
|
|
|
|
// PostApiLoginWithResponse User login
|
|
//
|
|
// Authenticates a user with nickname and password, sets JWT cookie on success
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
|
|
PostApiLoginWithResponse(ctx context.Context, body PostApiLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiLoginResponse, error)
|
|
|
|
// GetApiLogoutWithResponse User logout
|
|
//
|
|
// Logs out the current user by clearing authentication cookies.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/logout (the `GetApiLogout` operationId).
|
|
GetApiLogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiLogoutResponse, error)
|
|
|
|
// GetApiMarketsWithResponse Get the app marketplace listings
|
|
//
|
|
// Returns all marketplace sources and their applications, plus the showcase from cosmos-cloud.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/markets (the `GetApiMarkets` operationId).
|
|
GetApiMarketsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMarketsResponse, error)
|
|
|
|
// GetApiMeWithResponse Get current user info
|
|
//
|
|
// Returns the profile information of the currently authenticated user.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/me (the `GetApiMe` operationId).
|
|
GetApiMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeResponse, error)
|
|
|
|
// PostApiMergeWithBodyWithResponse Merge multiple filesystems using MergerFS
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/merge (the `PostApiMerge` operationId).
|
|
PostApiMergeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMergeResponse, error)
|
|
|
|
// PostApiMergeWithResponse Merge multiple filesystems using MergerFS
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/merge (the `PostApiMerge` operationId).
|
|
PostApiMergeWithResponse(ctx context.Context, body PostApiMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMergeResponse, error)
|
|
|
|
// GetApiMetricsWithResponse Get aggregated metrics data
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/metrics (the `GetApiMetrics` operationId).
|
|
GetApiMetricsWithResponse(ctx context.Context, params *GetApiMetricsParams, reqEditors ...RequestEditorFn) (*GetApiMetricsResponse, error)
|
|
|
|
// DeleteApiMfaWithBodyWithResponse Reset 2FA for a user
|
|
//
|
|
// Removes the 2FA key for a specified user (admin operation).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/mfa (the `DeleteApiMfa` operationId).
|
|
DeleteApiMfaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiMfaResponse, error)
|
|
|
|
// DeleteApiMfaWithResponse Reset 2FA for a user
|
|
//
|
|
// Removes the 2FA key for a specified user (admin operation).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/mfa (the `DeleteApiMfa` operationId).
|
|
DeleteApiMfaWithResponse(ctx context.Context, body DeleteApiMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiMfaResponse, error)
|
|
|
|
// GetApiMfaWithResponse Generate new 2FA key
|
|
//
|
|
// Generates a new TOTP key for the current user and returns the provisioning URL.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/mfa (the `GetApiMfa` operationId).
|
|
GetApiMfaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMfaResponse, error)
|
|
|
|
// PostApiMfaWithBodyWithResponse Verify 2FA token
|
|
//
|
|
// Validates a TOTP token for the current user to complete multi-factor authentication.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/mfa (the `PostApiMfa` operationId).
|
|
PostApiMfaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMfaResponse, error)
|
|
|
|
// PostApiMfaWithResponse Verify 2FA token
|
|
//
|
|
// Validates a TOTP token for the current user to complete multi-factor authentication.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/mfa (the `PostApiMfa` operationId).
|
|
PostApiMfaWithResponse(ctx context.Context, body PostApiMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMfaResponse, error)
|
|
|
|
// PostApiMigrateHostWithBodyWithResponse Migrate Cosmos container to host network mode
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/migrate-host (the `PostApiMigrateHost` operationId).
|
|
PostApiMigrateHostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMigrateHostResponse, error)
|
|
|
|
// PostApiMigrateHostWithResponse Migrate Cosmos container to host network mode
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/migrate-host (the `PostApiMigrateHost` operationId).
|
|
PostApiMigrateHostWithResponse(ctx context.Context, body PostApiMigrateHostJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMigrateHostResponse, error)
|
|
|
|
// PostApiMountWithBodyWithResponse Mount a filesystem
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/mount (the `PostApiMount` operationId).
|
|
PostApiMountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMountResponse, error)
|
|
|
|
// PostApiMountWithResponse Mount a filesystem
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/mount (the `PostApiMount` operationId).
|
|
PostApiMountWithResponse(ctx context.Context, body PostApiMountJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMountResponse, error)
|
|
|
|
// GetApiMountsWithResponse List all mounted filesystems
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/mounts (the `GetApiMounts` operationId).
|
|
GetApiMountsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMountsResponse, error)
|
|
|
|
// DeleteApiNetworkNetworkIDWithResponse Delete a Docker network by ID
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/network/{networkID} (the `DeleteApiNetworkNetworkID` operationId).
|
|
DeleteApiNetworkNetworkIDWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*DeleteApiNetworkNetworkIDResponse, error)
|
|
|
|
// GetApiNetworksWithResponse List all Docker networks
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/networks (the `GetApiNetworks` operationId).
|
|
GetApiNetworksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiNetworksResponse, error)
|
|
|
|
// PostApiNetworksWithBodyWithResponse Create a new Docker network
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/networks (the `PostApiNetworks` operationId).
|
|
PostApiNetworksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNetworksResponse, error)
|
|
|
|
// PostApiNetworksWithResponse Create a new Docker network
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/networks (the `PostApiNetworks` operationId).
|
|
PostApiNetworksWithResponse(ctx context.Context, body PostApiNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNetworksResponse, error)
|
|
|
|
// PostApiNewDirWithResponse Create a new folder
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/new-dir (the `PostApiNewDir` operationId).
|
|
PostApiNewDirWithResponse(ctx context.Context, params *PostApiNewDirParams, reqEditors ...RequestEditorFn) (*PostApiNewDirResponse, error)
|
|
|
|
// PostApiNewInstallWithBodyWithResponse Process new installation steps
|
|
//
|
|
// Handles multi-step server installation including database setup, HTTPS configuration, and admin user creation
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/newInstall (the `PostApiNewInstall` operationId).
|
|
PostApiNewInstallWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNewInstallResponse, error)
|
|
|
|
// PostApiNewInstallWithResponse Process new installation steps
|
|
//
|
|
// Handles multi-step server installation including database setup, HTTPS configuration, and admin user creation
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/newInstall (the `PostApiNewInstall` operationId).
|
|
PostApiNewInstallWithResponse(ctx context.Context, body PostApiNewInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNewInstallResponse, error)
|
|
|
|
// GetApiNotificationsWithResponse Get notifications for the authenticated user
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/notifications (the `GetApiNotifications` operationId).
|
|
GetApiNotificationsWithResponse(ctx context.Context, params *GetApiNotificationsParams, reqEditors ...RequestEditorFn) (*GetApiNotificationsResponse, error)
|
|
|
|
// GetApiNotificationsReadWithResponse Mark notifications as read
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/notifications/read (the `GetApiNotificationsRead` operationId).
|
|
GetApiNotificationsReadWithResponse(ctx context.Context, params *GetApiNotificationsReadParams, reqEditors ...RequestEditorFn) (*GetApiNotificationsReadResponse, error)
|
|
|
|
// GetApiOpenidWithResponse List all OpenID clients
|
|
//
|
|
// Returns all configured OpenID Connect client configurations.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/openid (the `GetApiOpenid` operationId).
|
|
GetApiOpenidWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiOpenidResponse, error)
|
|
|
|
// PostApiOpenidWithBodyWithResponse Create an OpenID client
|
|
//
|
|
// Creates a new OpenID Connect client configuration.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/openid (the `PostApiOpenid` operationId).
|
|
PostApiOpenidWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiOpenidResponse, error)
|
|
|
|
// PostApiOpenidWithResponse Create an OpenID client
|
|
//
|
|
// Creates a new OpenID Connect client configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/openid (the `PostApiOpenid` operationId).
|
|
PostApiOpenidWithResponse(ctx context.Context, body PostApiOpenidJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiOpenidResponse, error)
|
|
|
|
// DeleteApiOpenidIdWithResponse Delete an OpenID client
|
|
//
|
|
// Removes an OpenID Connect client configuration by ID.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/openid/{id} (the `DeleteApiOpenidId` operationId).
|
|
DeleteApiOpenidIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiOpenidIdResponse, error)
|
|
|
|
// GetApiOpenidIdWithResponse Get an OpenID client by ID
|
|
//
|
|
// Returns a single OpenID Connect client configuration.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/openid/{id} (the `GetApiOpenidId` operationId).
|
|
GetApiOpenidIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiOpenidIdResponse, error)
|
|
|
|
// PutApiOpenidIdWithBodyWithResponse Update an OpenID client
|
|
//
|
|
// Replaces an existing OpenID Connect client configuration.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/openid/{id} (the `PutApiOpenidId` operationId).
|
|
PutApiOpenidIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiOpenidIdResponse, error)
|
|
|
|
// PutApiOpenidIdWithResponse Update an OpenID client
|
|
//
|
|
// Replaces an existing OpenID Connect client configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/openid/{id} (the `PutApiOpenidId` operationId).
|
|
PutApiOpenidIdWithResponse(ctx context.Context, id string, body PutApiOpenidIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiOpenidIdResponse, error)
|
|
|
|
// PostApiPasswordResetWithBodyWithResponse Request a password reset
|
|
//
|
|
// Sends a password reset email to the user if email is configured.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/password-reset (the `PostApiPasswordReset` operationId).
|
|
PostApiPasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPasswordResetResponse, error)
|
|
|
|
// PostApiPasswordResetWithResponse Request a password reset
|
|
//
|
|
// Sends a password reset email to the user if email is configured.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/password-reset (the `PostApiPasswordReset` operationId).
|
|
PostApiPasswordResetWithResponse(ctx context.Context, body PostApiPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPasswordResetResponse, error)
|
|
|
|
// GetApiPingWithResponse Ping a URL
|
|
//
|
|
// Checks if a URL is reachable and returns a non-5xx response.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/ping (the `GetApiPing` operationId).
|
|
GetApiPingWithResponse(ctx context.Context, params *GetApiPingParams, reqEditors ...RequestEditorFn) (*GetApiPingResponse, error)
|
|
|
|
// GetApiRcloneRestartWithResponse Restart all RClone remote storage mounts
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/rclone-restart (the `GetApiRcloneRestart` operationId).
|
|
GetApiRcloneRestartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRcloneRestartResponse, error)
|
|
|
|
// PostApiRegisterWithBodyWithResponse Register a new user
|
|
//
|
|
// Completes user registration using a registration key (invite link).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/register (the `PostApiRegister` operationId).
|
|
PostApiRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiRegisterResponse, error)
|
|
|
|
// PostApiRegisterWithResponse Register a new user
|
|
//
|
|
// Completes user registration using a registration key (invite link).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/register (the `PostApiRegister` operationId).
|
|
PostApiRegisterWithResponse(ctx context.Context, body PostApiRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiRegisterResponse, error)
|
|
|
|
// GetApiResetMetricsWithResponse Reset all metrics and events data
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/reset-metrics (the `GetApiResetMetrics` operationId).
|
|
GetApiResetMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiResetMetricsResponse, error)
|
|
|
|
// GetApiRestartWithResponse Restart the server
|
|
//
|
|
// Triggers a graceful server restart.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/restart (the `GetApiRestart` operationId).
|
|
GetApiRestartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRestartResponse, error)
|
|
|
|
// GetApiRestartServerWithResponse Restart the host machine
|
|
//
|
|
// Triggers a restart of the host machine (not available when running inside a container).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/restart-server (the `GetApiRestartServer` operationId).
|
|
GetApiRestartServerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRestartServerResponse, error)
|
|
|
|
// GetApiRoutesWithResponse List all proxy routes
|
|
//
|
|
// Returns all configured proxy routes.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/routes (the `GetApiRoutes` operationId).
|
|
GetApiRoutesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRoutesResponse, error)
|
|
|
|
// PostApiRoutesWithBodyWithResponse Create a new proxy route
|
|
//
|
|
// Creates a new proxy route configuration.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/routes (the `PostApiRoutes` operationId).
|
|
PostApiRoutesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiRoutesResponse, error)
|
|
|
|
// PostApiRoutesWithResponse Create a new proxy route
|
|
//
|
|
// Creates a new proxy route configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/routes (the `PostApiRoutes` operationId).
|
|
PostApiRoutesWithResponse(ctx context.Context, body PostApiRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiRoutesResponse, error)
|
|
|
|
// DeleteApiRoutesNameWithResponse Delete a proxy route
|
|
//
|
|
// Removes a proxy route configuration by name.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/routes/{name} (the `DeleteApiRoutesName` operationId).
|
|
DeleteApiRoutesNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteApiRoutesNameResponse, error)
|
|
|
|
// GetApiRoutesNameWithResponse Get a proxy route by name
|
|
//
|
|
// Returns a single proxy route configuration by its name.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/routes/{name} (the `GetApiRoutesName` operationId).
|
|
GetApiRoutesNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiRoutesNameResponse, error)
|
|
|
|
// PutApiRoutesNameWithBodyWithResponse Update a proxy route
|
|
//
|
|
// Replaces an existing proxy route configuration by name.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/routes/{name} (the `PutApiRoutesName` operationId).
|
|
PutApiRoutesNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiRoutesNameResponse, error)
|
|
|
|
// PutApiRoutesNameWithResponse Update a proxy route
|
|
//
|
|
// Replaces an existing proxy route configuration by name.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/routes/{name} (the `PutApiRoutesName` operationId).
|
|
PutApiRoutesNameWithResponse(ctx context.Context, name string, body PutApiRoutesNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiRoutesNameResponse, error)
|
|
|
|
// GetApiServappsWithResponse List all Docker containers
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps (the `GetApiServapps` operationId).
|
|
GetApiServappsWithResponse(ctx context.Context, params *GetApiServappsParams, reqEditors ...RequestEditorFn) (*GetApiServappsResponse, error)
|
|
|
|
// GetApiServappsContainerIdWithResponse Inspect a single Docker container by ID
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/ (the `GetApiServappsContainerId` operationId).
|
|
GetApiServappsContainerIdWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdResponse, error)
|
|
|
|
// GetApiServappsContainerIdAutoUpdateStatusWithResponse Enable or disable auto-update for a Docker container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/auto-update/{status} (the `GetApiServappsContainerIdAutoUpdateStatus` operationId).
|
|
GetApiServappsContainerIdAutoUpdateStatusWithResponse(ctx context.Context, containerId string, status string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdAutoUpdateStatusResponse, error)
|
|
|
|
// GetApiServappsContainerIdCheckUpdateWithResponse Check whether a container's image has a newer version available
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/check-update (the `GetApiServappsContainerIdCheckUpdate` operationId).
|
|
GetApiServappsContainerIdCheckUpdateWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdCheckUpdateResponse, error)
|
|
|
|
// GetApiServappsContainerIdExportWithResponse Export a container configuration as a service definition
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/export (the `GetApiServappsContainerIdExport` operationId).
|
|
GetApiServappsContainerIdExportWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdExportResponse, error)
|
|
|
|
// GetApiServappsContainerIdLogsWithResponse Retrieve logs for a Docker container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/logs (the `GetApiServappsContainerIdLogs` operationId).
|
|
GetApiServappsContainerIdLogsWithResponse(ctx context.Context, containerId string, params *GetApiServappsContainerIdLogsParams, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdLogsResponse, error)
|
|
|
|
// GetApiServappsContainerIdManageActionWithResponse Perform a management action on a Docker container
|
|
//
|
|
// Actions: stop, start, restart, kill, remove, pause, unpause, recreate, update
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/manage/{action} (the `GetApiServappsContainerIdManageAction` operationId).
|
|
GetApiServappsContainerIdManageActionWithResponse(ctx context.Context, containerId string, action GetApiServappsContainerIdManageActionParamsAction, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdManageActionResponse, error)
|
|
|
|
// DeleteApiServappsContainerIdNetworkNetworkIdWithResponse Detach a Docker network from a container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/servapps/{containerId}/network/{networkId} (the `DeleteApiServappsContainerIdNetworkNetworkId` operationId).
|
|
DeleteApiServappsContainerIdNetworkNetworkIdWithResponse(ctx context.Context, containerId string, networkId string, reqEditors ...RequestEditorFn) (*DeleteApiServappsContainerIdNetworkNetworkIdResponse, error)
|
|
|
|
// PostApiServappsContainerIdNetworkNetworkIdWithResponse Attach a Docker network to a container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/network/{networkId} (the `PostApiServappsContainerIdNetworkNetworkId` operationId).
|
|
PostApiServappsContainerIdNetworkNetworkIdWithResponse(ctx context.Context, containerId string, networkId string, reqEditors ...RequestEditorFn) (*PostApiServappsContainerIdNetworkNetworkIdResponse, error)
|
|
|
|
// GetApiServappsContainerIdNetworksWithResponse List all networks and the networks a container is connected to
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/networks (the `GetApiServappsContainerIdNetworks` operationId).
|
|
GetApiServappsContainerIdNetworksWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdNetworksResponse, error)
|
|
|
|
// GetApiServappsContainerIdSecureStatusWithResponse Set or unset network isolation on a Docker container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/secure/{status} (the `GetApiServappsContainerIdSecureStatus` operationId).
|
|
GetApiServappsContainerIdSecureStatusWithResponse(ctx context.Context, containerId string, status string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdSecureStatusResponse, error)
|
|
|
|
// PostApiServappsContainerIdUpdateWithBodyWithResponse Update a Docker container's settings
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/update (the `PostApiServappsContainerIdUpdate` operationId).
|
|
PostApiServappsContainerIdUpdateWithBodyWithResponse(ctx context.Context, containerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiServappsContainerIdUpdateResponse, error)
|
|
|
|
// PostApiServappsContainerIdUpdateWithResponse Update a Docker container's settings
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/update (the `PostApiServappsContainerIdUpdate` operationId).
|
|
PostApiServappsContainerIdUpdateWithResponse(ctx context.Context, containerId string, body PostApiServappsContainerIdUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiServappsContainerIdUpdateResponse, error)
|
|
|
|
// PostApiSetupWithBodyWithResponse One-shot server provisioning
|
|
//
|
|
// Performs the entire initial setup in a single call: database, HTTPS, admin user, optional Constellation connect, and optional admin API token creation. Only available when the server is in NewInstall mode.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/setup (the `PostApiSetup` operationId).
|
|
PostApiSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSetupResponse, error)
|
|
|
|
// PostApiSetupWithResponse One-shot server provisioning
|
|
//
|
|
// Performs the entire initial setup in a single call: database, HTTPS, admin user, optional Constellation connect, and optional admin API token creation. Only available when the server is in NewInstall mode.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/setup (the `PostApiSetup` operationId).
|
|
PostApiSetupWithResponse(ctx context.Context, body PostApiSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSetupResponse, error)
|
|
|
|
// GetApiSmartDefWithResponse Get SMART attribute definitions for ATA and NVMe drives
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/smart-def (the `GetApiSmartDef` operationId).
|
|
GetApiSmartDefWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiSmartDefResponse, error)
|
|
|
|
// GetApiSnapraidWithBodyWithResponse List or create SnapRAID configurations
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/snapraid (the `GetApiSnapraid` operationId).
|
|
GetApiSnapraidWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiSnapraidResponse, error)
|
|
|
|
// GetApiSnapraidWithResponse List or create SnapRAID configurations
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/snapraid (the `GetApiSnapraid` operationId).
|
|
GetApiSnapraidWithResponse(ctx context.Context, body GetApiSnapraidJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiSnapraidResponse, error)
|
|
|
|
// PostApiSnapraidWithBodyWithResponse List or create SnapRAID configurations
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/snapraid (the `PostApiSnapraid` operationId).
|
|
PostApiSnapraidWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSnapraidResponse, error)
|
|
|
|
// PostApiSnapraidWithResponse List or create SnapRAID configurations
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/snapraid (the `PostApiSnapraid` operationId).
|
|
PostApiSnapraidWithResponse(ctx context.Context, body PostApiSnapraidJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSnapraidResponse, error)
|
|
|
|
// DeleteApiSnapraidNameWithBodyWithResponse Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/snapraid/{name} (the `DeleteApiSnapraidName` operationId).
|
|
DeleteApiSnapraidNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiSnapraidNameResponse, error)
|
|
|
|
// DeleteApiSnapraidNameWithResponse Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/snapraid/{name} (the `DeleteApiSnapraidName` operationId).
|
|
DeleteApiSnapraidNameWithResponse(ctx context.Context, name string, body DeleteApiSnapraidNameJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiSnapraidNameResponse, error)
|
|
|
|
// PostApiSnapraidNameWithBodyWithResponse Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/snapraid/{name} (the `PostApiSnapraidName` operationId).
|
|
PostApiSnapraidNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSnapraidNameResponse, error)
|
|
|
|
// PostApiSnapraidNameWithResponse Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/snapraid/{name} (the `PostApiSnapraidName` operationId).
|
|
PostApiSnapraidNameWithResponse(ctx context.Context, name string, body PostApiSnapraidNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSnapraidNameResponse, error)
|
|
|
|
// GetApiSnapraidNameActionWithResponse Run a SnapRAID action (sync, scrub, fix, enable, disable)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/snapraid/{name}/{action} (the `GetApiSnapraidNameAction` operationId).
|
|
GetApiSnapraidNameActionWithResponse(ctx context.Context, name string, action GetApiSnapraidNameActionParamsAction, reqEditors ...RequestEditorFn) (*GetApiSnapraidNameActionResponse, error)
|
|
|
|
// GetApiStatusWithResponse Get server status
|
|
//
|
|
// Returns the current server status including configuration, resource info, and system state
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/status (the `GetApiStatus` operationId).
|
|
GetApiStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiStatusResponse, error)
|
|
|
|
// PostApiSudoWithBodyWithResponse Elevate to sudo mode
|
|
//
|
|
// Re-authenticates the user with their password to grant elevated (sudo) permissions.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/sudo (the `PostApiSudo` operationId).
|
|
PostApiSudoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSudoResponse, error)
|
|
|
|
// PostApiSudoWithResponse Elevate to sudo mode
|
|
//
|
|
// Re-authenticates the user with their password to grant elevated (sudo) permissions.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/sudo (the `PostApiSudo` operationId).
|
|
PostApiSudoWithResponse(ctx context.Context, body PostApiSudoJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSudoResponse, error)
|
|
|
|
// PostApiUnmountWithBodyWithResponse Unmount a filesystem
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/unmount (the `PostApiUnmount` operationId).
|
|
PostApiUnmountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiUnmountResponse, error)
|
|
|
|
// PostApiUnmountWithResponse Unmount a filesystem
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/unmount (the `PostApiUnmount` operationId).
|
|
PostApiUnmountWithResponse(ctx context.Context, body PostApiUnmountJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiUnmountResponse, error)
|
|
|
|
// PostApiUploadNameWithBodyWithResponse Upload an image
|
|
//
|
|
// Uploads an image file to the server (supports jpg, jpeg, png, gif, bmp, svg, webp, tiff, avif)
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/upload/{name} (the `PostApiUploadName` operationId).
|
|
PostApiUploadNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiUploadNameResponse, error)
|
|
|
|
// GetApiUsersWithResponse List all users
|
|
//
|
|
// Returns a list of all users with optional limit.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/users (the `GetApiUsers` operationId).
|
|
GetApiUsersWithResponse(ctx context.Context, params *GetApiUsersParams, reqEditors ...RequestEditorFn) (*GetApiUsersResponse, error)
|
|
|
|
// PostApiUsersWithBodyWithResponse Create a new user
|
|
//
|
|
// Creates a new user account with a registration key for invite-based onboarding.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/users (the `PostApiUsers` operationId).
|
|
PostApiUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiUsersResponse, error)
|
|
|
|
// PostApiUsersWithResponse Create a new user
|
|
//
|
|
// Creates a new user account with a registration key for invite-based onboarding.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/users (the `PostApiUsers` operationId).
|
|
PostApiUsersWithResponse(ctx context.Context, body PostApiUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiUsersResponse, error)
|
|
|
|
// DeleteApiUsersNicknameWithResponse Delete a user
|
|
//
|
|
// Deletes a user account by nickname.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/users/{nickname} (the `DeleteApiUsersNickname` operationId).
|
|
DeleteApiUsersNicknameWithResponse(ctx context.Context, nickname string, reqEditors ...RequestEditorFn) (*DeleteApiUsersNicknameResponse, error)
|
|
|
|
// GetApiUsersNicknameWithResponse Get a user by nickname
|
|
//
|
|
// Returns user details for the specified nickname.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/users/{nickname} (the `GetApiUsersNickname` operationId).
|
|
GetApiUsersNicknameWithResponse(ctx context.Context, nickname string, reqEditors ...RequestEditorFn) (*GetApiUsersNicknameResponse, error)
|
|
|
|
// PatchApiUsersNicknameWithBodyWithResponse Edit a user
|
|
//
|
|
// Updates user details such as email and role.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/users/{nickname} (the `PatchApiUsersNickname` operationId).
|
|
PatchApiUsersNicknameWithBodyWithResponse(ctx context.Context, nickname string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiUsersNicknameResponse, error)
|
|
|
|
// PatchApiUsersNicknameWithResponse Edit a user
|
|
//
|
|
// Updates user details such as email and role.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/users/{nickname} (the `PatchApiUsersNickname` operationId).
|
|
PatchApiUsersNicknameWithResponse(ctx context.Context, nickname string, body PatchApiUsersNicknameJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiUsersNicknameResponse, error)
|
|
|
|
// DeleteApiVolumeVolumeNameWithResponse Delete a Docker volume by name
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/volume/{volumeName} (the `DeleteApiVolumeVolumeName` operationId).
|
|
DeleteApiVolumeVolumeNameWithResponse(ctx context.Context, volumeName string, reqEditors ...RequestEditorFn) (*DeleteApiVolumeVolumeNameResponse, error)
|
|
|
|
// GetApiVolumesWithResponse List all Docker volumes
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/volumes (the `GetApiVolumes` operationId).
|
|
GetApiVolumesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiVolumesResponse, error)
|
|
|
|
// PostApiVolumesWithBodyWithResponse Create a new Docker volume
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/volumes (the `PostApiVolumes` operationId).
|
|
PostApiVolumesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiVolumesResponse, error)
|
|
|
|
// PostApiVolumesWithResponse Create a new Docker volume
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/volumes (the `PostApiVolumes` operationId).
|
|
PostApiVolumesWithResponse(ctx context.Context, body PostApiVolumesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiVolumesResponse, error)
|
|
|
|
// GetLogoWithResponse Get Cosmos logo
|
|
//
|
|
// Returns the Cosmos server logo as a PNG image.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /logo (the `GetLogo` operationId).
|
|
GetLogoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogoResponse, error)
|
|
|
|
// PostRcloneConfigCreateWithBodyWithResponse Create a new RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/config/create (the `PostRcloneConfigCreate` operationId).
|
|
PostRcloneConfigCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRcloneConfigCreateResponse, error)
|
|
|
|
// PostRcloneConfigCreateWithResponse Create a new RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/config/create (the `PostRcloneConfigCreate` operationId).
|
|
PostRcloneConfigCreateWithResponse(ctx context.Context, body PostRcloneConfigCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRcloneConfigCreateResponse, error)
|
|
|
|
// DeleteRcloneConfigDeleteWithBodyWithResponse Delete an RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /rclone/config/delete (the `DeleteRcloneConfigDelete` operationId).
|
|
DeleteRcloneConfigDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteRcloneConfigDeleteResponse, error)
|
|
|
|
// DeleteRcloneConfigDeleteWithResponse Delete an RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /rclone/config/delete (the `DeleteRcloneConfigDelete` operationId).
|
|
DeleteRcloneConfigDeleteWithResponse(ctx context.Context, body DeleteRcloneConfigDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteRcloneConfigDeleteResponse, error)
|
|
|
|
// GetRcloneConfigDumpWithResponse Dump the full RClone configuration
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /rclone/config/dump (the `GetRcloneConfigDump` operationId).
|
|
GetRcloneConfigDumpWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRcloneConfigDumpResponse, error)
|
|
|
|
// GetRcloneConfigListremotesWithResponse List RClone remotes (name and type only, no credentials)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /rclone/config/listremotes (the `GetRcloneConfigListremotes` operationId).
|
|
GetRcloneConfigListremotesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRcloneConfigListremotesResponse, error)
|
|
|
|
// PostRcloneConfigSaveWithResponse Save the RClone configuration
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/config/save (the `PostRcloneConfigSave` operationId).
|
|
PostRcloneConfigSaveWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostRcloneConfigSaveResponse, error)
|
|
|
|
// PutRcloneConfigUpdateWithBodyWithResponse Update an existing RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /rclone/config/update (the `PutRcloneConfigUpdate` operationId).
|
|
PutRcloneConfigUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutRcloneConfigUpdateResponse, error)
|
|
|
|
// PutRcloneConfigUpdateWithResponse Update an existing RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /rclone/config/update (the `PutRcloneConfigUpdate` operationId).
|
|
PutRcloneConfigUpdateWithResponse(ctx context.Context, body PutRcloneConfigUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PutRcloneConfigUpdateResponse, error)
|
|
|
|
// GetRcloneCoreStatsWithResponse Get global RClone transfer stats
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /rclone/core/stats (the `GetRcloneCoreStats` operationId).
|
|
GetRcloneCoreStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRcloneCoreStatsResponse, error)
|
|
|
|
// PostRcloneOperationsAboutWithBodyWithResponse Get storage usage info for a remote (total, used, free)
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/operations/about (the `PostRcloneOperationsAbout` operationId).
|
|
PostRcloneOperationsAboutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRcloneOperationsAboutResponse, error)
|
|
|
|
// PostRcloneOperationsAboutWithResponse Get storage usage info for a remote (total, used, free)
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/operations/about (the `PostRcloneOperationsAbout` operationId).
|
|
PostRcloneOperationsAboutWithResponse(ctx context.Context, body PostRcloneOperationsAboutJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRcloneOperationsAboutResponse, error)
|
|
|
|
// PostRcloneVfsStatsWithBodyWithResponse Get VFS stats for a mounted remote
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/vfs/stats (the `PostRcloneVfsStats` operationId).
|
|
PostRcloneVfsStatsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRcloneVfsStatsResponse, error)
|
|
|
|
// PostRcloneVfsStatsWithResponse Get VFS stats for a mounted remote
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/vfs/stats (the `PostRcloneVfsStats` operationId).
|
|
PostRcloneVfsStatsWithResponse(ctx context.Context, body PostRcloneVfsStatsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRcloneVfsStatsResponse, error)
|
|
}
|
|
|
|
type GetLogsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetLogsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLogsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLogsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetLogsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiMemoryResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiMemoryResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiMemoryResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiMemoryResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiMemoryResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiMemoryResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiMemoryResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiMemoryResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiMemoryResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiAlertsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiAlertsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiAlertsResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiAlertsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r GetApiAlertsResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiAlertsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiAlertsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiAlertsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiAlertsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiAlertsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiAlertsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiAlertsResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiAlertsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PostApiAlertsResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiAlertsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiAlertsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiAlertsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiAlertsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiAlertsNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiAlertsNameResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r DeleteApiAlertsNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiAlertsNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiAlertsNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiAlertsNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiAlertsNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiAlertsNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiAlertsNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiAlertsNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiAlertsNameResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiAlertsNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiAlertsNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiAlertsNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiAlertsNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiAlertsNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiAlertsNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiAlertsNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutApiAlertsNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutApiAlertsNameResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PutApiAlertsNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PutApiAlertsNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PutApiAlertsNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutApiAlertsNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutApiAlertsNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutApiAlertsNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutApiAlertsNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiApiTokensResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiApiTokensResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r DeleteApiApiTokensResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r DeleteApiApiTokensResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiApiTokensResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiApiTokensResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiApiTokensResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiApiTokensResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiApiTokensResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiApiTokensResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiApiTokensResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiApiTokensResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiApiTokensResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiApiTokensResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiApiTokensResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiApiTokensResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiApiTokensResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiApiTokensResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiApiTokensResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiApiTokensResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiApiTokensResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiApiTokensResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiApiTokensResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PostApiApiTokensResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiApiTokensResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiApiTokensResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiApiTokensResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiApiTokensResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiApiTokensResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutApiApiTokensNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutApiApiTokensNameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PutApiApiTokensNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PutApiApiTokensNameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PutApiApiTokensNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PutApiApiTokensNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutApiApiTokensNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutApiApiTokensNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutApiApiTokensNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutApiApiTokensNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiBackupsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiBackupsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiBackupsResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiBackupsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiBackupsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiBackupsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiBackupsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiBackupsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiBackupsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiBackupsConfigResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiBackupsConfigResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiBackupsConfigResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiBackupsConfigResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiBackupsConfigResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiBackupsConfigResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiBackupsConfigResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiBackupsConfigNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiBackupsConfigNameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiBackupsConfigNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiBackupsConfigNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiBackupsConfigNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiBackupsConfigNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiBackupsConfigNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiBackupsConfigNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiBackupsRepositoryResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiBackupsRepositoryResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiBackupsRepositoryResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiBackupsRepositoryResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiBackupsRepositoryResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiBackupsRepositoryResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiBackupsRepositoryResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiBackupsRepositoryNameSnapshotsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiBackupsRepositoryNameSnapshotsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiBackupsRepositoryNameSnapshotsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiBackupsRepositoryNameSnapshotsResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiBackupsRepositoryNameSnapshotsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiBackupsRepositoryNameSnapshotsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiBackupsRepositoryNameSnapshotsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiBackupsRepositoryNameSnapshotsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiBackupsRepositoryNameSnapshotsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiBackupsRepositoryNameStatsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiBackupsRepositoryNameStatsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiBackupsRepositoryNameStatsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiBackupsRepositoryNameStatsResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiBackupsRepositoryNameStatsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiBackupsRepositoryNameStatsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiBackupsRepositoryNameStatsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiBackupsRepositoryNameStatsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiBackupsRepositoryNameStatsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiBackupsEditResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiBackupsEditResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiBackupsEditResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiBackupsEditResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiBackupsEditResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiBackupsEditResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiBackupsEditResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiBackupsEditResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiBackupsNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiBackupsNameResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiBackupsNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiBackupsNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r DeleteApiBackupsNameResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiBackupsNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiBackupsNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiBackupsNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiBackupsNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiBackupsNameRestoreResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiBackupsNameRestoreResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiBackupsNameRestoreResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiBackupsNameRestoreResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PostApiBackupsNameRestoreResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiBackupsNameRestoreResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiBackupsNameRestoreResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiBackupsNameRestoreResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiBackupsNameRestoreResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiBackupsNameRestoreResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiBackupsNameSnapshotsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotsResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiBackupsNameSnapshotsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiBackupsNameSnapshotsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiBackupsNameSnapshotsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiBackupsNameSnapshotsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiBackupsNameUnlockResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiBackupsNameUnlockResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiBackupsNameUnlockResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PostApiBackupsNameUnlockResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiBackupsNameUnlockResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiBackupsNameUnlockResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiBackupsNameUnlockResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiBackupsNameUnlockResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiBackupsNameUnlockResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiBackupsNameSnapshotFoldersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotFoldersResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotFoldersResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotFoldersResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotFoldersResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiBackupsNameSnapshotFoldersResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiBackupsNameSnapshotFoldersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiBackupsNameSnapshotFoldersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiBackupsNameSnapshotFoldersResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiBackupsNameSnapshotForgetResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiBackupsNameSnapshotForgetResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiBackupsNameSnapshotForgetResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiBackupsNameSnapshotForgetResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r DeleteApiBackupsNameSnapshotForgetResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiBackupsNameSnapshotForgetResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiBackupsNameSnapshotForgetResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiBackupsNameSnapshotForgetResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiBackupsNameSnapshotForgetResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiCanSendEmailResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiCanSendEmailResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiCanSendEmailResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiCanSendEmailResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiCanSendEmailResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiCanSendEmailResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiCanSendEmailResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConfigResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *GithubComAzukaarCosmosServerSrcUtilsConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConfigResponse) GetJSON200() *struct {
|
|
Data *GithubComAzukaarCosmosServerSrcUtilsConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiConfigResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiConfigResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConfigResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConfigResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConfigResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConfigResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PatchApiConfigResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PatchApiConfigResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PatchApiConfigResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PatchApiConfigResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PatchApiConfigResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PatchApiConfigResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PatchApiConfigResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PatchApiConfigResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PatchApiConfigResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PatchApiConfigResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutApiConfigResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutApiConfigResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PutApiConfigResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PutApiConfigResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PutApiConfigResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PutApiConfigResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutApiConfigResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutApiConfigResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutApiConfigResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutApiConfigResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PatchApiConfigDnsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PatchApiConfigDnsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PatchApiConfigDnsResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PatchApiConfigDnsResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PatchApiConfigDnsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PatchApiConfigDnsResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PatchApiConfigDnsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PatchApiConfigDnsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PatchApiConfigDnsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PatchApiConfigDnsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationBlockResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationBlockResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiConstellationBlockResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiConstellationBlockResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationBlockResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationBlockResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationBlockResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationBlockResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationConfigResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationConfigResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationConfigResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiConstellationConfigResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationConfigResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationConfigResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationConfigResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationConfigResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationConnectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationConnectResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiConstellationConnectResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiConstellationConnectResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationConnectResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationConnectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationConnectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationConnectResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationCreateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationCreateResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiConstellationCreateResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiConstellationCreateResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiConstellationCreateResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationCreateResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationCreateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationCreateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationCreateResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationDeploymentsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationDeploymentsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiConstellationDeploymentsResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationDeploymentsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationDeploymentsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationDeploymentsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationDeploymentsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationDeploymentsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationDeploymentsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationDeploymentsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiConstellationDeploymentsResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiConstellationDeploymentsResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PostApiConstellationDeploymentsResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationDeploymentsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationDeploymentsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationDeploymentsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationDeploymentsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationDeploymentsHealthResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON503 the response for an HTTP 503 `application/json` response
|
|
JSON503 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationDeploymentsHealthResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiConstellationDeploymentsHealthResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON503 returns the response for an HTTP 503 `application/json` response
|
|
func (r GetApiConstellationDeploymentsHealthResponse) GetJSON503() *UtilsHTTPErrorResult {
|
|
return r.JSON503
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationDeploymentsHealthResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationDeploymentsHealthResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationDeploymentsHealthResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationDeploymentsHealthResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiConstellationDeploymentsNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiConstellationDeploymentsNameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r DeleteApiConstellationDeploymentsNameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiConstellationDeploymentsNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiConstellationDeploymentsNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiConstellationDeploymentsNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiConstellationDeploymentsNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiConstellationDeploymentsNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationDeploymentsNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationDeploymentsNameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiConstellationDeploymentsNameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiConstellationDeploymentsNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationDeploymentsNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationDeploymentsNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationDeploymentsNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationDeploymentsNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutApiConstellationDeploymentsNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutApiConstellationDeploymentsNameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PutApiConstellationDeploymentsNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PutApiConstellationDeploymentsNameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PutApiConstellationDeploymentsNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutApiConstellationDeploymentsNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutApiConstellationDeploymentsNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutApiConstellationDeploymentsNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutApiConstellationDeploymentsNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationDeploymentsNameUnbrokeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationDeploymentsNameUnbrokeResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiConstellationDeploymentsNameUnbrokeResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiConstellationDeploymentsNameUnbrokeResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationDeploymentsNameUnbrokeResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationDeploymentsNameUnbrokeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationDeploymentsNameUnbrokeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationDeploymentsNameUnbrokeResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationDevicesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationDevicesResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationDevicesResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiConstellationDevicesResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationDevicesResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationDevicesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationDevicesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationDevicesResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationDevicesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationDevicesResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiConstellationDevicesResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiConstellationDevicesResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationDevicesResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationDevicesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationDevicesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationDevicesResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationDevicesIdPingResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationDevicesIdPingResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiConstellationDevicesIdPingResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationDevicesIdPingResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiConstellationDevicesIdPingResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiConstellationDevicesIdPingResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationDevicesIdPingResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationDevicesIdPingResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationDevicesIdPingResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationDevicesIdPingResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationDnsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationDnsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationDnsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationDnsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationDnsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationDnsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationDnsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationDnsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationDnsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiConstellationDnsResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiConstellationDnsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PostApiConstellationDnsResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationDnsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationDnsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationDnsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationDnsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiConstellationDnsKeyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiConstellationDnsKeyResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiConstellationDnsKeyResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiConstellationDnsKeyResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiConstellationDnsKeyResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiConstellationDnsKeyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiConstellationDnsKeyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiConstellationDnsKeyResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationDnsKeyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationDnsKeyResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationDnsKeyResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiConstellationDnsKeyResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationDnsKeyResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationDnsKeyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationDnsKeyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationDnsKeyResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutApiConstellationDnsKeyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutApiConstellationDnsKeyResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PutApiConstellationDnsKeyResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PutApiConstellationDnsKeyResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PutApiConstellationDnsKeyResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutApiConstellationDnsKeyResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutApiConstellationDnsKeyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutApiConstellationDnsKeyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutApiConstellationDnsKeyResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationEditDeviceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationEditDeviceResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiConstellationEditDeviceResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiConstellationEditDeviceResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationEditDeviceResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationEditDeviceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationEditDeviceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationEditDeviceResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationForceReformResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationForceReformResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiConstellationForceReformResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiConstellationForceReformResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiConstellationForceReformResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationForceReformResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationForceReformResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationForceReformResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationForceReformResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationGetNextIpResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationGetNextIpResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationGetNextIpResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiConstellationGetNextIpResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationGetNextIpResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationGetNextIpResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationGetNextIpResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationGetNextIpResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationLogsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationLogsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationLogsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiConstellationLogsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationLogsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationLogsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationLogsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationLogsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationNatsStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationNatsStatusResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationNatsStatusResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationNatsStatusResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationNatsStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationNatsStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationNatsStatusResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiConstellationNodesNameUnbrokeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiConstellationNodesNameUnbrokeResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiConstellationNodesNameUnbrokeResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiConstellationNodesNameUnbrokeResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiConstellationNodesNameUnbrokeResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiConstellationNodesNameUnbrokeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiConstellationNodesNameUnbrokeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiConstellationNodesNameUnbrokeResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationPingResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationPingResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationPingResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationPingResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationPingResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationPingResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationPingResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationPublicDevicesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationPublicDevicesResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiConstellationPublicDevicesResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiConstellationPublicDevicesResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationPublicDevicesResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationPublicDevicesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationPublicDevicesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationPublicDevicesResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationResetResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationResetResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationResetResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationResetResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationResetResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationResetResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationResetResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationRestartResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationRestartResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationRestartResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationRestartResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationRestartResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationRestartResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationRestartResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiConstellationTunnelsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiConstellationTunnelsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiConstellationTunnelsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiConstellationTunnelsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiConstellationTunnelsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiConstellationTunnelsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiConstellationTunnelsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiCronResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiCronResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiCronResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiCronResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r GetApiCronResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiCronResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiCronResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiCronResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiCronResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiCronResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiCronResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiCronResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiCronResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PostApiCronResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiCronResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiCronResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiCronResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiCronResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiCronNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiCronNameResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r DeleteApiCronNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiCronNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiCronNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiCronNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiCronNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiCronNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiCronNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiCronNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiCronNameResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiCronNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiCronNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiCronNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiCronNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiCronNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiCronNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiCronNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutApiCronNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutApiCronNameResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PutApiCronNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PutApiCronNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PutApiCronNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutApiCronNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutApiCronNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutApiCronNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutApiCronNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiDashboardResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *[]ConfigapiDashboardRoute `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiDashboardResponse) GetJSON200() *struct {
|
|
Data *[]ConfigapiDashboardRoute `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiDashboardResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiDashboardResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiDashboardResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiDashboardResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiDashboardResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiDashboardResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiDashboardResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiDisksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiDisksResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiDisksResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiDisksResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiDisksResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiDisksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiDisksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiDisksResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiDisksFormatResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiDisksFormatResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiDisksFormatResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiDisksFormatResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiDisksFormatResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiDnsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *string `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiDnsResponse) GetJSON200() *struct {
|
|
Data *string `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiDnsResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiDnsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiDnsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiDnsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiDnsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiDnsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiDnsCheckResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiDnsCheckResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiDnsCheckResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiDnsCheckResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiDnsCheckResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiDnsCheckResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiDnsCheckResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiDnsCheckResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiDnsCheckResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiDockerServiceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiDockerServiceResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiDockerServiceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiDockerServiceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiDockerServiceResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiEventsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiEventsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiEventsResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiEventsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiEventsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiEventsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiEventsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiEventsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiEventsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiFaviconResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiFaviconResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiFaviconResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiFaviconResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiFaviconResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiForceServerUpdateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiForceServerUpdateResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiForceServerUpdateResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiForceServerUpdateResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiForceServerUpdateResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiForceServerUpdateResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiForceServerUpdateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiForceServerUpdateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiForceServerUpdateResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiGetBackupResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *openapi_types.File
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiGetBackupResponse) GetJSON200() *openapi_types.File {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiGetBackupResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiGetBackupResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiGetBackupResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiGetBackupResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiGetBackupResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiGetBackupResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiGetBackupResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiGetBackupResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiGroupsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiGroupsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiGroupsResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiGroupsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiGroupsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiGroupsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiGroupsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiGroupsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiGroupsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiGroupsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiGroupsResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiGroupsResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiGroupsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PostApiGroupsResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiGroupsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiGroupsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiGroupsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiGroupsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiGroupsIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiGroupsIdResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r DeleteApiGroupsIdResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r DeleteApiGroupsIdResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiGroupsIdResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiGroupsIdResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r DeleteApiGroupsIdResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiGroupsIdResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiGroupsIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiGroupsIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiGroupsIdResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutApiGroupsIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutApiGroupsIdResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PutApiGroupsIdResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PutApiGroupsIdResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PutApiGroupsIdResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PutApiGroupsIdResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PutApiGroupsIdResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutApiGroupsIdResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutApiGroupsIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutApiGroupsIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutApiGroupsIdResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiImageNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiImageNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiImageNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiImageNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiImageNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiImagesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *TypesImageInspect
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiImagesResponse) GetJSON200() *TypesImageInspect {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiImagesResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiImagesResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiImagesResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiImagesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiImagesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiImagesResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiImagesPullResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiImagesPullResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiImagesPullResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiImagesPullResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiImagesPullResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiImagesPullIfMissingResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiImagesPullIfMissingResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiImagesPullIfMissingResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiImagesPullIfMissingResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiImagesPullIfMissingResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiInviteResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiInviteResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiInviteResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiInviteResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PostApiInviteResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiInviteResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiInviteResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiInviteResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiInviteResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiInviteResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiInviteResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiJobsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiJobsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiJobsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiJobsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiJobsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiJobsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiJobsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiJobsDeleteResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiJobsDeleteResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiJobsDeleteResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiJobsDeleteResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiJobsDeleteResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiJobsDeleteResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiJobsDeleteResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiJobsDeleteResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiJobsGetResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiJobsGetResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiJobsGetResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PostApiJobsGetResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiJobsGetResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiJobsGetResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiJobsGetResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiJobsGetResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiJobsGetResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiJobsRunResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiJobsRunResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiJobsRunResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiJobsRunResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiJobsRunResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiJobsRunResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiJobsRunResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiJobsRunResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiJobsRunningResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiJobsRunningResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiJobsRunningResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiJobsRunningResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiJobsRunningResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiJobsRunningResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiJobsRunningResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiJobsStopResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiJobsStopResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiJobsStopResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiJobsStopResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiJobsStopResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiJobsStopResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiJobsStopResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiJobsStopResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiListDirResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiListDirResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiListDirResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiListDirResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiListDirResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiListDirResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiListDirResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiListDirResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiListDirResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiListMetricsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiListMetricsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiListMetricsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiListMetricsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiListMetricsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiListMetricsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiListMetricsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiListMetricsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiLoginResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiLoginResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiLoginResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiLoginResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiLoginResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiLoginResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiLoginResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiLoginResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiLoginResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiLogoutResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiLogoutResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiLogoutResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiLogoutResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiLogoutResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiLogoutResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiLogoutResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiMarketsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiMarketsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiMarketsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiMarketsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiMarketsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiMarketsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiMarketsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiMarketsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiMeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *UtilsUser `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiMeResponse) GetJSON200() *struct {
|
|
Data *UtilsUser `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiMeResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiMeResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiMeResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiMeResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiMeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiMeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiMeResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiMergeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiMergeResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiMergeResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiMergeResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiMergeResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiMergeResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiMergeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiMergeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiMergeResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiMetricsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiMetricsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiMetricsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiMetricsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiMetricsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiMetricsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiMetricsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiMfaResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiMfaResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r DeleteApiMfaResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiMfaResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r DeleteApiMfaResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiMfaResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiMfaResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiMfaResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiMfaResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiMfaResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiMfaResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiMfaResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiMfaResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiMfaResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiMfaResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiMfaResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiMfaResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiMfaResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiMfaResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiMfaResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiMfaResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiMfaResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiMfaResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiMfaResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiMfaResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiMigrateHostResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiMigrateHostResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiMigrateHostResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiMigrateHostResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiMigrateHostResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiMigrateHostResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiMigrateHostResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiMigrateHostResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiMigrateHostResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiMountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiMountResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiMountResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiMountResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiMountResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiMountResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiMountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiMountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiMountResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiMountsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiMountsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiMountsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiMountsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiMountsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiMountsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiMountsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiMountsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiNetworkNetworkIDResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiNetworkNetworkIDResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiNetworkNetworkIDResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r DeleteApiNetworkNetworkIDResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiNetworkNetworkIDResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiNetworkNetworkIDResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiNetworkNetworkIDResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiNetworkNetworkIDResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiNetworksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiNetworksResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiNetworksResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiNetworksResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiNetworksResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiNetworksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiNetworksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiNetworksResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiNetworksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiNetworksResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiNetworksResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiNetworksResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiNetworksResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiNetworksResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiNetworksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiNetworksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiNetworksResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiNewDirResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiNewDirResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiNewDirResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PostApiNewDirResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiNewDirResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiNewDirResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiNewDirResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiNewDirResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiNewDirResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiNewInstallResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiNewInstallResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiNewInstallResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiNewInstallResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiNewInstallResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiNewInstallResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiNewInstallResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiNewInstallResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiNewInstallResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiNotificationsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiNotificationsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiNotificationsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiNotificationsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiNotificationsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiNotificationsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiNotificationsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiNotificationsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiNotificationsReadResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiNotificationsReadResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiNotificationsReadResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiNotificationsReadResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiNotificationsReadResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiNotificationsReadResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiNotificationsReadResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiNotificationsReadResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiNotificationsReadResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiNotificationsReadResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiOpenidResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *[]UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiOpenidResponse) GetJSON200() *struct {
|
|
Data *[]UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiOpenidResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiOpenidResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiOpenidResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiOpenidResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiOpenidResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiOpenidResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiOpenidResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiOpenidResponse) GetJSON200() *struct {
|
|
Data *UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiOpenidResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiOpenidResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiOpenidResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PostApiOpenidResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiOpenidResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiOpenidResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiOpenidResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiOpenidResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiOpenidIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiOpenidIdResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r DeleteApiOpenidIdResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiOpenidIdResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiOpenidIdResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiOpenidIdResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiOpenidIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiOpenidIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiOpenidIdResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiOpenidIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiOpenidIdResponse) GetJSON200() *struct {
|
|
Data *UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiOpenidIdResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiOpenidIdResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiOpenidIdResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiOpenidIdResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiOpenidIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiOpenidIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiOpenidIdResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutApiOpenidIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutApiOpenidIdResponse) GetJSON200() *struct {
|
|
Data *UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PutApiOpenidIdResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PutApiOpenidIdResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PutApiOpenidIdResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PutApiOpenidIdResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutApiOpenidIdResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutApiOpenidIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutApiOpenidIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutApiOpenidIdResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiPasswordResetResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiPasswordResetResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiPasswordResetResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiPasswordResetResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiPasswordResetResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiPasswordResetResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiPasswordResetResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiPasswordResetResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiPasswordResetResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiPingResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiPingResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiPingResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiPingResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiPingResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiPingResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiPingResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiPingResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiPingResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiRcloneRestartResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiRcloneRestartResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiRcloneRestartResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiRcloneRestartResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiRcloneRestartResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiRcloneRestartResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiRcloneRestartResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiRegisterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiRegisterResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiRegisterResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiRegisterResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiRegisterResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiRegisterResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiRegisterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiRegisterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiRegisterResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiResetMetricsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiResetMetricsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiResetMetricsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiResetMetricsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiResetMetricsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiResetMetricsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiResetMetricsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiResetMetricsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiRestartResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiRestartResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiRestartResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiRestartResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiRestartResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiRestartResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiRestartResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiRestartResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiRestartResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiRestartServerResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiRestartServerResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiRestartServerResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiRestartServerResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiRestartServerResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiRestartServerResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiRestartServerResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiRestartServerResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiRestartServerResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiRoutesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *[]UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiRoutesResponse) GetJSON200() *struct {
|
|
Data *[]UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiRoutesResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiRoutesResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiRoutesResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiRoutesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiRoutesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiRoutesResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiRoutesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiRoutesResponse) GetJSON200() *struct {
|
|
Data *UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiRoutesResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiRoutesResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiRoutesResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PostApiRoutesResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiRoutesResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiRoutesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiRoutesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiRoutesResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiRoutesNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiRoutesNameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r DeleteApiRoutesNameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiRoutesNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r DeleteApiRoutesNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiRoutesNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiRoutesNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiRoutesNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiRoutesNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiRoutesNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiRoutesNameResponse) GetJSON200() *struct {
|
|
Data *UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiRoutesNameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiRoutesNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiRoutesNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiRoutesNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiRoutesNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiRoutesNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiRoutesNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutApiRoutesNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutApiRoutesNameResponse) GetJSON200() *struct {
|
|
Data *UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PutApiRoutesNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PutApiRoutesNameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PutApiRoutesNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r PutApiRoutesNameResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutApiRoutesNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutApiRoutesNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutApiRoutesNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutApiRoutesNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiServappsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiServappsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiServappsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiServappsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiServappsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiServappsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiServappsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiServappsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiServappsContainerIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiServappsContainerIdResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiServappsContainerIdResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiServappsContainerIdResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiServappsContainerIdResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiServappsContainerIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiServappsContainerIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiServappsContainerIdResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiServappsContainerIdAutoUpdateStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiServappsContainerIdAutoUpdateStatusResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiServappsContainerIdAutoUpdateStatusResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiServappsContainerIdAutoUpdateStatusResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiServappsContainerIdAutoUpdateStatusResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiServappsContainerIdAutoUpdateStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiServappsContainerIdAutoUpdateStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiServappsContainerIdAutoUpdateStatusResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiServappsContainerIdCheckUpdateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiServappsContainerIdCheckUpdateResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiServappsContainerIdCheckUpdateResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiServappsContainerIdCheckUpdateResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiServappsContainerIdCheckUpdateResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiServappsContainerIdCheckUpdateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiServappsContainerIdCheckUpdateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiServappsContainerIdCheckUpdateResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiServappsContainerIdExportResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiServappsContainerIdExportResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiServappsContainerIdExportResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiServappsContainerIdExportResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiServappsContainerIdExportResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiServappsContainerIdExportResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiServappsContainerIdExportResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiServappsContainerIdExportResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiServappsContainerIdLogsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiServappsContainerIdLogsResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiServappsContainerIdLogsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiServappsContainerIdLogsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiServappsContainerIdLogsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiServappsContainerIdLogsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiServappsContainerIdLogsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiServappsContainerIdLogsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiServappsContainerIdManageActionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiServappsContainerIdManageActionResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiServappsContainerIdManageActionResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiServappsContainerIdManageActionResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiServappsContainerIdManageActionResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiServappsContainerIdManageActionResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiServappsContainerIdManageActionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiServappsContainerIdManageActionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiServappsContainerIdManageActionResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiServappsContainerIdNetworkNetworkIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiServappsContainerIdNetworkNetworkIdResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r DeleteApiServappsContainerIdNetworkNetworkIdResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiServappsContainerIdNetworkNetworkIdResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r DeleteApiServappsContainerIdNetworkNetworkIdResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiServappsContainerIdNetworkNetworkIdResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiServappsContainerIdNetworkNetworkIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiServappsContainerIdNetworkNetworkIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiServappsContainerIdNetworkNetworkIdResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiServappsContainerIdNetworkNetworkIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiServappsContainerIdNetworkNetworkIdResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiServappsContainerIdNetworkNetworkIdResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiServappsContainerIdNetworkNetworkIdResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiServappsContainerIdNetworkNetworkIdResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiServappsContainerIdNetworkNetworkIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiServappsContainerIdNetworkNetworkIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiServappsContainerIdNetworkNetworkIdResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiServappsContainerIdNetworksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiServappsContainerIdNetworksResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiServappsContainerIdNetworksResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiServappsContainerIdNetworksResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiServappsContainerIdNetworksResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiServappsContainerIdNetworksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiServappsContainerIdNetworksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiServappsContainerIdNetworksResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiServappsContainerIdSecureStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiServappsContainerIdSecureStatusResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiServappsContainerIdSecureStatusResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiServappsContainerIdSecureStatusResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiServappsContainerIdSecureStatusResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiServappsContainerIdSecureStatusResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiServappsContainerIdSecureStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiServappsContainerIdSecureStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiServappsContainerIdSecureStatusResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiServappsContainerIdUpdateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiServappsContainerIdUpdateResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiServappsContainerIdUpdateResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiServappsContainerIdUpdateResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiServappsContainerIdUpdateResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiServappsContainerIdUpdateResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiServappsContainerIdUpdateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiServappsContainerIdUpdateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiServappsContainerIdUpdateResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiSetupResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiSetupResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiSetupResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiSetupResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiSetupResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiSetupResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiSetupResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiSetupResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiSetupResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiSmartDefResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiSmartDefResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiSmartDefResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiSmartDefResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiSmartDefResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiSmartDefResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiSmartDefResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiSnapraidResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiSnapraidResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiSnapraidResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiSnapraidResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiSnapraidResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiSnapraidResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiSnapraidResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiSnapraidResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiSnapraidResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiSnapraidResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiSnapraidResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiSnapraidResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiSnapraidResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiSnapraidResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiSnapraidResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiSnapraidResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiSnapraidResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiSnapraidResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiSnapraidNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiSnapraidNameResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r DeleteApiSnapraidNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiSnapraidNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r DeleteApiSnapraidNameResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiSnapraidNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiSnapraidNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiSnapraidNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiSnapraidNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiSnapraidNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiSnapraidNameResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiSnapraidNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiSnapraidNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiSnapraidNameResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiSnapraidNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiSnapraidNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiSnapraidNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiSnapraidNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiSnapraidNameActionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON404 the response for an HTTP 404 `application/json` response
|
|
JSON404 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiSnapraidNameActionResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r GetApiSnapraidNameActionResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiSnapraidNameActionResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON404 returns the response for an HTTP 404 `application/json` response
|
|
func (r GetApiSnapraidNameActionResponse) GetJSON404() *UtilsHTTPErrorResult {
|
|
return r.JSON404
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiSnapraidNameActionResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiSnapraidNameActionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiSnapraidNameActionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiSnapraidNameActionResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiStatusResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiStatusResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiStatusResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiStatusResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiStatusResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiSudoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiSudoResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiSudoResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiSudoResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiSudoResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiSudoResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiSudoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiSudoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiSudoResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiUnmountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiUnmountResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiUnmountResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiUnmountResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiUnmountResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiUnmountResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiUnmountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiUnmountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiUnmountResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiUploadNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiUploadNameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiUploadNameResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiUploadNameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiUploadNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiUploadNameResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiUploadNameResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiUploadNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiUploadNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiUploadNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiUploadNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiUsersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *[]UtilsUser `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiUsersResponse) GetJSON200() *struct {
|
|
Data *[]UtilsUser `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiUsersResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiUsersResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiUsersResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiUsersResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiUsersResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiUsersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiUsersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiUsersResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiUsersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON409 the response for an HTTP 409 `application/json` response
|
|
JSON409 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiUsersResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PostApiUsersResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiUsersResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PostApiUsersResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON409 returns the response for an HTTP 409 `application/json` response
|
|
func (r PostApiUsersResponse) GetJSON409() *UtilsHTTPErrorResult {
|
|
return r.JSON409
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiUsersResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiUsersResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiUsersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiUsersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiUsersResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiUsersNicknameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiUsersNicknameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r DeleteApiUsersNicknameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiUsersNicknameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r DeleteApiUsersNicknameResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r DeleteApiUsersNicknameResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiUsersNicknameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiUsersNicknameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiUsersNicknameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiUsersNicknameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiUsersNicknameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *struct {
|
|
Data *UtilsUser `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiUsersNicknameResponse) GetJSON200() *struct {
|
|
Data *UtilsUser `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r GetApiUsersNicknameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiUsersNicknameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r GetApiUsersNicknameResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiUsersNicknameResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiUsersNicknameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiUsersNicknameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiUsersNicknameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiUsersNicknameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PatchApiUsersNicknameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON401 the response for an HTTP 401 `application/json` response
|
|
JSON401 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON405 the response for an HTTP 405 `application/json` response
|
|
JSON405 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PatchApiUsersNicknameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON401 returns the response for an HTTP 401 `application/json` response
|
|
func (r PatchApiUsersNicknameResponse) GetJSON401() *UtilsHTTPErrorResult {
|
|
return r.JSON401
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PatchApiUsersNicknameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON405 returns the response for an HTTP 405 `application/json` response
|
|
func (r PatchApiUsersNicknameResponse) GetJSON405() *UtilsHTTPErrorResult {
|
|
return r.JSON405
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PatchApiUsersNicknameResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PatchApiUsersNicknameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PatchApiUsersNicknameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PatchApiUsersNicknameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PatchApiUsersNicknameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteApiVolumeVolumeNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteApiVolumeVolumeNameResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteApiVolumeVolumeNameResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r DeleteApiVolumeVolumeNameResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteApiVolumeVolumeNameResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteApiVolumeVolumeNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteApiVolumeVolumeNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteApiVolumeVolumeNameResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetApiVolumesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetApiVolumesResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetApiVolumesResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetApiVolumesResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetApiVolumesResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApiVolumesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApiVolumesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetApiVolumesResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostApiVolumesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *UtilsAPIResponse
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostApiVolumesResponse) GetJSON200() *UtilsAPIResponse {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostApiVolumesResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostApiVolumesResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostApiVolumesResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostApiVolumesResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostApiVolumesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostApiVolumesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostApiVolumesResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetLogoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetLogoResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLogoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLogoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetLogoResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostRcloneConfigCreateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostRcloneConfigCreateResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostRcloneConfigCreateResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostRcloneConfigCreateResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostRcloneConfigCreateResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostRcloneConfigCreateResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostRcloneConfigCreateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostRcloneConfigCreateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostRcloneConfigCreateResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteRcloneConfigDeleteResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r DeleteRcloneConfigDeleteResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r DeleteRcloneConfigDeleteResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r DeleteRcloneConfigDeleteResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r DeleteRcloneConfigDeleteResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteRcloneConfigDeleteResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteRcloneConfigDeleteResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r DeleteRcloneConfigDeleteResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetRcloneConfigDumpResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetRcloneConfigDumpResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetRcloneConfigDumpResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetRcloneConfigDumpResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetRcloneConfigDumpResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetRcloneConfigDumpResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetRcloneConfigDumpResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetRcloneConfigListremotesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetRcloneConfigListremotesResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetRcloneConfigListremotesResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetRcloneConfigListremotesResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetRcloneConfigListremotesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetRcloneConfigListremotesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetRcloneConfigListremotesResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostRcloneConfigSaveResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostRcloneConfigSaveResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostRcloneConfigSaveResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostRcloneConfigSaveResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostRcloneConfigSaveResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostRcloneConfigSaveResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostRcloneConfigSaveResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PutRcloneConfigUpdateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PutRcloneConfigUpdateResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PutRcloneConfigUpdateResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PutRcloneConfigUpdateResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PutRcloneConfigUpdateResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PutRcloneConfigUpdateResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PutRcloneConfigUpdateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PutRcloneConfigUpdateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PutRcloneConfigUpdateResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetRcloneCoreStatsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r GetRcloneCoreStatsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r GetRcloneCoreStatsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r GetRcloneCoreStatsResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r GetRcloneCoreStatsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetRcloneCoreStatsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetRcloneCoreStatsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r GetRcloneCoreStatsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostRcloneOperationsAboutResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
// JSON500 the response for an HTTP 500 `application/json` response
|
|
JSON500 *UtilsHTTPErrorResult
|
|
// JSON501 the response for an HTTP 501 `application/json` response
|
|
JSON501 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostRcloneOperationsAboutResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostRcloneOperationsAboutResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostRcloneOperationsAboutResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetJSON500 returns the response for an HTTP 500 `application/json` response
|
|
func (r PostRcloneOperationsAboutResponse) GetJSON500() *UtilsHTTPErrorResult {
|
|
return r.JSON500
|
|
}
|
|
|
|
// GetJSON501 returns the response for an HTTP 501 `application/json` response
|
|
func (r PostRcloneOperationsAboutResponse) GetJSON501() *UtilsHTTPErrorResult {
|
|
return r.JSON501
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostRcloneOperationsAboutResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostRcloneOperationsAboutResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostRcloneOperationsAboutResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostRcloneOperationsAboutResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PostRcloneVfsStatsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
// JSON200 the response for an HTTP 200 `application/json` response
|
|
JSON200 *map[string]interface{}
|
|
// JSON400 the response for an HTTP 400 `application/json` response
|
|
JSON400 *UtilsHTTPErrorResult
|
|
// JSON403 the response for an HTTP 403 `application/json` response
|
|
JSON403 *UtilsHTTPErrorResult
|
|
}
|
|
|
|
// GetJSON200 returns the response for an HTTP 200 `application/json` response
|
|
func (r PostRcloneVfsStatsResponse) GetJSON200() *map[string]interface{} {
|
|
return r.JSON200
|
|
}
|
|
|
|
// GetJSON400 returns the response for an HTTP 400 `application/json` response
|
|
func (r PostRcloneVfsStatsResponse) GetJSON400() *UtilsHTTPErrorResult {
|
|
return r.JSON400
|
|
}
|
|
|
|
// GetJSON403 returns the response for an HTTP 403 `application/json` response
|
|
func (r PostRcloneVfsStatsResponse) GetJSON403() *UtilsHTTPErrorResult {
|
|
return r.JSON403
|
|
}
|
|
|
|
// GetBody returns the raw response body bytes
|
|
func (r PostRcloneVfsStatsResponse) GetBody() []byte {
|
|
return r.Body
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PostRcloneVfsStatsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PostRcloneVfsStatsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
|
|
func (r PostRcloneVfsStatsResponse) ContentType() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Header.Get("Content-Type")
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// GetLogsWithResponse Download server logs
|
|
//
|
|
// Returns the server log file as a plain text attachment.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /_logs (the `GetLogs` operationId).
|
|
func (c *ClientWithResponses) GetLogsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogsResponse, error) {
|
|
rsp, err := c.GetLogs(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLogsResponse(rsp)
|
|
}
|
|
|
|
// GetApiMemoryWithResponse Get internal memory status
|
|
//
|
|
// Returns memory usage details for internal caches and buffers.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/_memory (the `GetApiMemory` operationId).
|
|
func (c *ClientWithResponses) GetApiMemoryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMemoryResponse, error) {
|
|
rsp, err := c.GetApiMemory(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiMemoryResponse(rsp)
|
|
}
|
|
|
|
// GetApiAlertsWithBodyWithResponse List or create monitoring alerts
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/alerts (the `GetApiAlerts` operationId).
|
|
func (c *ClientWithResponses) GetApiAlertsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiAlertsResponse, error) {
|
|
rsp, err := c.GetApiAlertsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiAlertsResponse(rsp)
|
|
}
|
|
|
|
// GetApiAlertsWithResponse List or create monitoring alerts
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/alerts (the `GetApiAlerts` operationId).
|
|
func (c *ClientWithResponses) GetApiAlertsWithResponse(ctx context.Context, body GetApiAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiAlertsResponse, error) {
|
|
rsp, err := c.GetApiAlerts(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiAlertsResponse(rsp)
|
|
}
|
|
|
|
// PostApiAlertsWithBodyWithResponse List or create monitoring alerts
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/alerts (the `PostApiAlerts` operationId).
|
|
func (c *ClientWithResponses) PostApiAlertsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAlertsResponse, error) {
|
|
rsp, err := c.PostApiAlertsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiAlertsResponse(rsp)
|
|
}
|
|
|
|
// PostApiAlertsWithResponse List or create monitoring alerts
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/alerts (the `PostApiAlerts` operationId).
|
|
func (c *ClientWithResponses) PostApiAlertsWithResponse(ctx context.Context, body PostApiAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAlertsResponse, error) {
|
|
rsp, err := c.PostApiAlerts(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiAlertsResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiAlertsNameWithBodyWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/alerts/{name} (the `DeleteApiAlertsName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiAlertsNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiAlertsNameResponse, error) {
|
|
rsp, err := c.DeleteApiAlertsNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiAlertsNameResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiAlertsNameWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/alerts/{name} (the `DeleteApiAlertsName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiAlertsNameWithResponse(ctx context.Context, name string, body DeleteApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiAlertsNameResponse, error) {
|
|
rsp, err := c.DeleteApiAlertsName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiAlertsNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiAlertsNameWithBodyWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/alerts/{name} (the `GetApiAlertsName` operationId).
|
|
func (c *ClientWithResponses) GetApiAlertsNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiAlertsNameResponse, error) {
|
|
rsp, err := c.GetApiAlertsNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiAlertsNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiAlertsNameWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/alerts/{name} (the `GetApiAlertsName` operationId).
|
|
func (c *ClientWithResponses) GetApiAlertsNameWithResponse(ctx context.Context, name string, body GetApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiAlertsNameResponse, error) {
|
|
rsp, err := c.GetApiAlertsName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiAlertsNameResponse(rsp)
|
|
}
|
|
|
|
// PutApiAlertsNameWithBodyWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/alerts/{name} (the `PutApiAlertsName` operationId).
|
|
func (c *ClientWithResponses) PutApiAlertsNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAlertsNameResponse, error) {
|
|
rsp, err := c.PutApiAlertsNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiAlertsNameResponse(rsp)
|
|
}
|
|
|
|
// PutApiAlertsNameWithResponse Get, update, or delete a monitoring alert by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/alerts/{name} (the `PutApiAlertsName` operationId).
|
|
func (c *ClientWithResponses) PutApiAlertsNameWithResponse(ctx context.Context, name string, body PutApiAlertsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAlertsNameResponse, error) {
|
|
rsp, err := c.PutApiAlertsName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiAlertsNameResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiApiTokensWithBodyWithResponse Delete an API token
|
|
//
|
|
// Removes an API token by name.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/api-tokens (the `DeleteApiApiTokens` operationId).
|
|
func (c *ClientWithResponses) DeleteApiApiTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiApiTokensResponse, error) {
|
|
rsp, err := c.DeleteApiApiTokensWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiApiTokensResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiApiTokensWithResponse Delete an API token
|
|
//
|
|
// Removes an API token by name.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/api-tokens (the `DeleteApiApiTokens` operationId).
|
|
func (c *ClientWithResponses) DeleteApiApiTokensWithResponse(ctx context.Context, body DeleteApiApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiApiTokensResponse, error) {
|
|
rsp, err := c.DeleteApiApiTokens(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiApiTokensResponse(rsp)
|
|
}
|
|
|
|
// GetApiApiTokensWithResponse List all API tokens
|
|
//
|
|
// Returns all configured API tokens (without the actual token hashes).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/api-tokens (the `GetApiApiTokens` operationId).
|
|
func (c *ClientWithResponses) GetApiApiTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiApiTokensResponse, error) {
|
|
rsp, err := c.GetApiApiTokens(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiApiTokensResponse(rsp)
|
|
}
|
|
|
|
// PostApiApiTokensWithBodyWithResponse Create a new API token
|
|
//
|
|
// Generates a new API token with the specified permissions and returns the raw token (shown only once).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/api-tokens (the `PostApiApiTokens` operationId).
|
|
func (c *ClientWithResponses) PostApiApiTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiApiTokensResponse, error) {
|
|
rsp, err := c.PostApiApiTokensWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiApiTokensResponse(rsp)
|
|
}
|
|
|
|
// PostApiApiTokensWithResponse Create a new API token
|
|
//
|
|
// Generates a new API token with the specified permissions and returns the raw token (shown only once).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/api-tokens (the `PostApiApiTokens` operationId).
|
|
func (c *ClientWithResponses) PostApiApiTokensWithResponse(ctx context.Context, body PostApiApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiApiTokensResponse, error) {
|
|
rsp, err := c.PostApiApiTokens(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiApiTokensResponse(rsp)
|
|
}
|
|
|
|
// PutApiApiTokensNameWithBodyWithResponse Update an API token
|
|
//
|
|
// # Updates an existing API token's description, permissions, IP whitelist, or constellation restriction
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/api-tokens/{name} (the `PutApiApiTokensName` operationId).
|
|
func (c *ClientWithResponses) PutApiApiTokensNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiApiTokensNameResponse, error) {
|
|
rsp, err := c.PutApiApiTokensNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiApiTokensNameResponse(rsp)
|
|
}
|
|
|
|
// PutApiApiTokensNameWithResponse Update an API token
|
|
//
|
|
// # Updates an existing API token's description, permissions, IP whitelist, or constellation restriction
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/api-tokens/{name} (the `PutApiApiTokensName` operationId).
|
|
func (c *ClientWithResponses) PutApiApiTokensNameWithResponse(ctx context.Context, name string, body PutApiApiTokensNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiApiTokensNameResponse, error) {
|
|
rsp, err := c.PutApiApiTokensName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiApiTokensNameResponse(rsp)
|
|
}
|
|
|
|
// PostApiBackupsWithBodyWithResponse Create a new backup configuration
|
|
//
|
|
// Creates a backup config and initializes the repository if needed. Requires premium licence and non-container mode.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups (the `PostApiBackups` operationId).
|
|
func (c *ClientWithResponses) PostApiBackupsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiBackupsResponse, error) {
|
|
rsp, err := c.PostApiBackupsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiBackupsResponse(rsp)
|
|
}
|
|
|
|
// PostApiBackupsWithResponse Create a new backup configuration
|
|
//
|
|
// Creates a backup config and initializes the repository if needed. Requires premium licence and non-container mode.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups (the `PostApiBackups` operationId).
|
|
func (c *ClientWithResponses) PostApiBackupsWithResponse(ctx context.Context, body PostApiBackupsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiBackupsResponse, error) {
|
|
rsp, err := c.PostApiBackups(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiBackupsResponse(rsp)
|
|
}
|
|
|
|
// GetApiBackupsConfigWithResponse List all backup configurations
|
|
//
|
|
// Returns a map of all backup configurations from the server config, keyed by backup name.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-config (the `GetApiBackupsConfig` operationId).
|
|
func (c *ClientWithResponses) GetApiBackupsConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiBackupsConfigResponse, error) {
|
|
rsp, err := c.GetApiBackupsConfig(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiBackupsConfigResponse(rsp)
|
|
}
|
|
|
|
// GetApiBackupsConfigNameWithResponse Get a single backup configuration by name
|
|
//
|
|
// Returns a single backup configuration from the server config.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-config/{name} (the `GetApiBackupsConfigName` operationId).
|
|
func (c *ClientWithResponses) GetApiBackupsConfigNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiBackupsConfigNameResponse, error) {
|
|
rsp, err := c.GetApiBackupsConfigName(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiBackupsConfigNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiBackupsRepositoryWithResponse List all backup repositories with their lock status
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-repository (the `GetApiBackupsRepository` operationId).
|
|
func (c *ClientWithResponses) GetApiBackupsRepositoryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiBackupsRepositoryResponse, error) {
|
|
rsp, err := c.GetApiBackupsRepository(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiBackupsRepositoryResponse(rsp)
|
|
}
|
|
|
|
// GetApiBackupsRepositoryNameSnapshotsWithResponse List all snapshots in a backup repository (all backup tags)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-repository/{name}/snapshots (the `GetApiBackupsRepositoryNameSnapshots` operationId).
|
|
func (c *ClientWithResponses) GetApiBackupsRepositoryNameSnapshotsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiBackupsRepositoryNameSnapshotsResponse, error) {
|
|
rsp, err := c.GetApiBackupsRepositoryNameSnapshots(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiBackupsRepositoryNameSnapshotsResponse(rsp)
|
|
}
|
|
|
|
// GetApiBackupsRepositoryNameStatsWithResponse Get repository statistics (size, file count, etc.)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups-repository/{name}/stats (the `GetApiBackupsRepositoryNameStats` operationId).
|
|
func (c *ClientWithResponses) GetApiBackupsRepositoryNameStatsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiBackupsRepositoryNameStatsResponse, error) {
|
|
rsp, err := c.GetApiBackupsRepositoryNameStats(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiBackupsRepositoryNameStatsResponse(rsp)
|
|
}
|
|
|
|
// PostApiBackupsEditWithBodyWithResponse Edit an existing backup configuration
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/edit (the `PostApiBackupsEdit` operationId).
|
|
func (c *ClientWithResponses) PostApiBackupsEditWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiBackupsEditResponse, error) {
|
|
rsp, err := c.PostApiBackupsEditWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiBackupsEditResponse(rsp)
|
|
}
|
|
|
|
// PostApiBackupsEditWithResponse Edit an existing backup configuration
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/edit (the `PostApiBackupsEdit` operationId).
|
|
func (c *ClientWithResponses) PostApiBackupsEditWithResponse(ctx context.Context, body PostApiBackupsEditJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiBackupsEditResponse, error) {
|
|
rsp, err := c.PostApiBackupsEdit(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiBackupsEditResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiBackupsNameWithResponse Remove a backup configuration and its snapshots
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/backups/{name} (the `DeleteApiBackupsName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiBackupsNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteApiBackupsNameResponse, error) {
|
|
rsp, err := c.DeleteApiBackupsName(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiBackupsNameResponse(rsp)
|
|
}
|
|
|
|
// PostApiBackupsNameRestoreWithBodyWithResponse Restore files from a backup snapshot
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/restore (the `PostApiBackupsNameRestore` operationId).
|
|
func (c *ClientWithResponses) PostApiBackupsNameRestoreWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiBackupsNameRestoreResponse, error) {
|
|
rsp, err := c.PostApiBackupsNameRestoreWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiBackupsNameRestoreResponse(rsp)
|
|
}
|
|
|
|
// PostApiBackupsNameRestoreWithResponse Restore files from a backup snapshot
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/restore (the `PostApiBackupsNameRestore` operationId).
|
|
func (c *ClientWithResponses) PostApiBackupsNameRestoreWithResponse(ctx context.Context, name string, body PostApiBackupsNameRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiBackupsNameRestoreResponse, error) {
|
|
rsp, err := c.PostApiBackupsNameRestore(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiBackupsNameRestoreResponse(rsp)
|
|
}
|
|
|
|
// GetApiBackupsNameSnapshotsWithResponse List snapshots for a specific backup
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/snapshots (the `GetApiBackupsNameSnapshots` operationId).
|
|
func (c *ClientWithResponses) GetApiBackupsNameSnapshotsWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiBackupsNameSnapshotsResponse, error) {
|
|
rsp, err := c.GetApiBackupsNameSnapshots(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiBackupsNameSnapshotsResponse(rsp)
|
|
}
|
|
|
|
// PostApiBackupsNameUnlockWithResponse Unlock a backup repository (remove stale locks)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/backups/{name}/unlock (the `PostApiBackupsNameUnlock` operationId).
|
|
func (c *ClientWithResponses) PostApiBackupsNameUnlockWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PostApiBackupsNameUnlockResponse, error) {
|
|
rsp, err := c.PostApiBackupsNameUnlock(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiBackupsNameUnlockResponse(rsp)
|
|
}
|
|
|
|
// GetApiBackupsNameSnapshotFoldersWithResponse List folders in a backup snapshot
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/{snapshot}/folders (the `GetApiBackupsNameSnapshotFolders` operationId).
|
|
func (c *ClientWithResponses) GetApiBackupsNameSnapshotFoldersWithResponse(ctx context.Context, name string, snapshot string, params *GetApiBackupsNameSnapshotFoldersParams, reqEditors ...RequestEditorFn) (*GetApiBackupsNameSnapshotFoldersResponse, error) {
|
|
rsp, err := c.GetApiBackupsNameSnapshotFolders(ctx, name, snapshot, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiBackupsNameSnapshotFoldersResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiBackupsNameSnapshotForgetWithResponse Forget (delete) a specific snapshot from a backup repository
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/backups/{name}/{snapshot}/forget (the `DeleteApiBackupsNameSnapshotForget` operationId).
|
|
func (c *ClientWithResponses) DeleteApiBackupsNameSnapshotForgetWithResponse(ctx context.Context, name string, snapshot string, reqEditors ...RequestEditorFn) (*DeleteApiBackupsNameSnapshotForgetResponse, error) {
|
|
rsp, err := c.DeleteApiBackupsNameSnapshotForget(ctx, name, snapshot, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiBackupsNameSnapshotForgetResponse(rsp)
|
|
}
|
|
|
|
// GetApiBackupsNameSnapshotSubfolderRestoreSizeWithResponse Get restore size stats for a subfolder within a snapshot
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/backups/{name}/{snapshot}/subfolder-restore-size (the `GetApiBackupsNameSnapshotSubfolderRestoreSize` operationId).
|
|
func (c *ClientWithResponses) GetApiBackupsNameSnapshotSubfolderRestoreSizeWithResponse(ctx context.Context, name string, snapshot string, params *GetApiBackupsNameSnapshotSubfolderRestoreSizeParams, reqEditors ...RequestEditorFn) (*GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse, error) {
|
|
rsp, err := c.GetApiBackupsNameSnapshotSubfolderRestoreSize(ctx, name, snapshot, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiBackupsNameSnapshotSubfolderRestoreSizeResponse(rsp)
|
|
}
|
|
|
|
// GetApiCanSendEmailWithResponse Check if email sending is enabled
|
|
//
|
|
// Returns whether the server has email sending capabilities configured.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/can-send-email (the `GetApiCanSendEmail` operationId).
|
|
func (c *ClientWithResponses) GetApiCanSendEmailWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiCanSendEmailResponse, error) {
|
|
rsp, err := c.GetApiCanSendEmail(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiCanSendEmailResponse(rsp)
|
|
}
|
|
|
|
// GetApiConfigWithResponse Get server configuration
|
|
//
|
|
// Returns the full server configuration (sensitive fields masked for non-credential users).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/config (the `GetApiConfig` operationId).
|
|
func (c *ClientWithResponses) GetApiConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConfigResponse, error) {
|
|
rsp, err := c.GetApiConfig(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConfigResponse(rsp)
|
|
}
|
|
|
|
// PatchApiConfigWithBodyWithResponse Patch route configuration
|
|
//
|
|
// Performs route operations (add, replace, delete, move_up, move_down) on proxy routes
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/config (the `PatchApiConfig` operationId).
|
|
func (c *ClientWithResponses) PatchApiConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiConfigResponse, error) {
|
|
rsp, err := c.PatchApiConfigWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchApiConfigResponse(rsp)
|
|
}
|
|
|
|
// PatchApiConfigWithResponse Patch route configuration
|
|
//
|
|
// Performs route operations (add, replace, delete, move_up, move_down) on proxy routes
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/config (the `PatchApiConfig` operationId).
|
|
func (c *ClientWithResponses) PatchApiConfigWithResponse(ctx context.Context, body PatchApiConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiConfigResponse, error) {
|
|
rsp, err := c.PatchApiConfig(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchApiConfigResponse(rsp)
|
|
}
|
|
|
|
// PutApiConfigWithBodyWithResponse Update server configuration
|
|
//
|
|
// Replaces the entire server configuration (masked credential fields are preserved from existing config).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/config (the `PutApiConfig` operationId).
|
|
func (c *ClientWithResponses) PutApiConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiConfigResponse, error) {
|
|
rsp, err := c.PutApiConfigWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiConfigResponse(rsp)
|
|
}
|
|
|
|
// PutApiConfigWithResponse Update server configuration
|
|
//
|
|
// Replaces the entire server configuration (masked credential fields are preserved from existing config).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/config (the `PutApiConfig` operationId).
|
|
func (c *ClientWithResponses) PutApiConfigWithResponse(ctx context.Context, body PutApiConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiConfigResponse, error) {
|
|
rsp, err := c.PutApiConfig(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiConfigResponse(rsp)
|
|
}
|
|
|
|
// PatchApiConfigDnsWithBodyWithResponse Update DNS configuration
|
|
//
|
|
// # Patches DNS-related settings including port, fallback, blocklists, and custom entries
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/config/dns (the `PatchApiConfigDns` operationId).
|
|
func (c *ClientWithResponses) PatchApiConfigDnsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiConfigDnsResponse, error) {
|
|
rsp, err := c.PatchApiConfigDnsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchApiConfigDnsResponse(rsp)
|
|
}
|
|
|
|
// PatchApiConfigDnsWithResponse Update DNS configuration
|
|
//
|
|
// # Patches DNS-related settings including port, fallback, blocklists, and custom entries
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/config/dns (the `PatchApiConfigDns` operationId).
|
|
func (c *ClientWithResponses) PatchApiConfigDnsWithResponse(ctx context.Context, body PatchApiConfigDnsJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiConfigDnsResponse, error) {
|
|
rsp, err := c.PatchApiConfigDns(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchApiConfigDnsResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationBlockWithBodyWithResponse Block or unblock a Constellation device
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/block (the `PostApiConstellationBlock` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationBlockWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationBlockResponse, error) {
|
|
rsp, err := c.PostApiConstellationBlockWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationBlockResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationBlockWithResponse Block or unblock a Constellation device
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/block (the `PostApiConstellationBlock` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationBlockWithResponse(ctx context.Context, body PostApiConstellationBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationBlockResponse, error) {
|
|
rsp, err := c.PostApiConstellationBlock(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationBlockResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationConfigWithResponse Get the current Nebula configuration
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/config (the `GetApiConstellationConfig` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationConfigResponse, error) {
|
|
rsp, err := c.GetApiConstellationConfig(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationConfigResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationConnectWithBodyWithResponse Connect this node to an existing Constellation VPN network
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/connect (the `PostApiConstellationConnect` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationConnectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationConnectResponse, error) {
|
|
rsp, err := c.PostApiConstellationConnectWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationConnectResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationCreateWithBodyWithResponse Create a new Constellation VPN network
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/create (the `PostApiConstellationCreate` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationCreateResponse, error) {
|
|
rsp, err := c.PostApiConstellationCreateWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationCreateResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationCreateWithResponse Create a new Constellation VPN network
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/create (the `PostApiConstellationCreate` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationCreateWithResponse(ctx context.Context, body PostApiConstellationCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationCreateResponse, error) {
|
|
rsp, err := c.PostApiConstellationCreate(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationCreateResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationDeploymentsWithResponse List all cluster deployments
|
|
//
|
|
// Returns all deployment definitions from the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments (the `GetApiConstellationDeployments` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationDeploymentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationDeploymentsResponse, error) {
|
|
rsp, err := c.GetApiConstellationDeployments(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationDeploymentsResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationDeploymentsWithBodyWithResponse Create a new cluster deployment
|
|
//
|
|
// Creates a new deployment definition in the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments (the `PostApiConstellationDeployments` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationDeploymentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationDeploymentsResponse, error) {
|
|
rsp, err := c.PostApiConstellationDeploymentsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationDeploymentsResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationDeploymentsWithResponse Create a new cluster deployment
|
|
//
|
|
// Creates a new deployment definition in the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments (the `PostApiConstellationDeployments` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationDeploymentsWithResponse(ctx context.Context, body PostApiConstellationDeploymentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationDeploymentsResponse, error) {
|
|
rsp, err := c.PostApiConstellationDeployments(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationDeploymentsResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationDeploymentsHealthWithResponse Cluster health for all deployments
|
|
//
|
|
// Returns desired vs. actual replica placement per deployment plus
|
|
// scheduler quarantine state (Pro feature). Read-only: safe to call
|
|
// from any node, not just the scheduler leader.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments/health (the `GetApiConstellationDeploymentsHealth` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationDeploymentsHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationDeploymentsHealthResponse, error) {
|
|
rsp, err := c.GetApiConstellationDeploymentsHealth(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationDeploymentsHealthResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiConstellationDeploymentsNameWithResponse Delete a cluster deployment
|
|
//
|
|
// Removes a deployment from the constellation-deployments KV (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/constellation/deployments/{name} (the `DeleteApiConstellationDeploymentsName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiConstellationDeploymentsNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteApiConstellationDeploymentsNameResponse, error) {
|
|
rsp, err := c.DeleteApiConstellationDeploymentsName(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiConstellationDeploymentsNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationDeploymentsNameWithResponse Get a cluster deployment by name
|
|
//
|
|
// Returns a single deployment definition (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/deployments/{name} (the `GetApiConstellationDeploymentsName` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationDeploymentsNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiConstellationDeploymentsNameResponse, error) {
|
|
rsp, err := c.GetApiConstellationDeploymentsName(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationDeploymentsNameResponse(rsp)
|
|
}
|
|
|
|
// PutApiConstellationDeploymentsNameWithBodyWithResponse Update a cluster deployment
|
|
//
|
|
// Updates an existing deployment definition (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/constellation/deployments/{name} (the `PutApiConstellationDeploymentsName` operationId).
|
|
func (c *ClientWithResponses) PutApiConstellationDeploymentsNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiConstellationDeploymentsNameResponse, error) {
|
|
rsp, err := c.PutApiConstellationDeploymentsNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiConstellationDeploymentsNameResponse(rsp)
|
|
}
|
|
|
|
// PutApiConstellationDeploymentsNameWithResponse Update a cluster deployment
|
|
//
|
|
// Updates an existing deployment definition (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/constellation/deployments/{name} (the `PutApiConstellationDeploymentsName` operationId).
|
|
func (c *ClientWithResponses) PutApiConstellationDeploymentsNameWithResponse(ctx context.Context, name string, body PutApiConstellationDeploymentsNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiConstellationDeploymentsNameResponse, error) {
|
|
rsp, err := c.PutApiConstellationDeploymentsName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiConstellationDeploymentsNameResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationDeploymentsNameUnbrokeWithResponse Clear a deployment's quarantine
|
|
//
|
|
// Removes a deployment from the scheduler's quarantine set so the
|
|
// next reconcile cycle attempts to place it again (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/deployments/{name}/unbroke (the `PostApiConstellationDeploymentsNameUnbroke` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationDeploymentsNameUnbrokeWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PostApiConstellationDeploymentsNameUnbrokeResponse, error) {
|
|
rsp, err := c.PostApiConstellationDeploymentsNameUnbroke(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationDeploymentsNameUnbrokeResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationDevicesWithResponse List Constellation devices for the current user (or all if admin)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/devices (the `GetApiConstellationDevices` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationDevicesResponse, error) {
|
|
rsp, err := c.GetApiConstellationDevices(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationDevicesResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationDevicesWithBodyWithResponse Create a new Constellation device and generate its certificates
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/devices (the `PostApiConstellationDevices` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationDevicesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationDevicesResponse, error) {
|
|
rsp, err := c.PostApiConstellationDevicesWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationDevicesResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationDevicesWithResponse Create a new Constellation device and generate its certificates
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/devices (the `PostApiConstellationDevices` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationDevicesWithResponse(ctx context.Context, body PostApiConstellationDevicesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationDevicesResponse, error) {
|
|
rsp, err := c.PostApiConstellationDevices(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationDevicesResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationDevicesIdPingWithResponse Ping a Constellation device to check reachability
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/devices/{id}/ping (the `GetApiConstellationDevicesIdPing` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationDevicesIdPingWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiConstellationDevicesIdPingResponse, error) {
|
|
rsp, err := c.GetApiConstellationDevicesIdPing(ctx, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationDevicesIdPingResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationDnsWithResponse List all custom Constellation DNS entries
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/dns (the `GetApiConstellationDns` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationDnsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationDnsResponse, error) {
|
|
rsp, err := c.GetApiConstellationDns(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationDnsResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationDnsWithBodyWithResponse Create a new Constellation DNS entry
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/dns (the `PostApiConstellationDns` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationDnsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationDnsResponse, error) {
|
|
rsp, err := c.PostApiConstellationDnsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationDnsResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationDnsWithResponse Create a new Constellation DNS entry
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/dns (the `PostApiConstellationDns` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationDnsWithResponse(ctx context.Context, body PostApiConstellationDnsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationDnsResponse, error) {
|
|
rsp, err := c.PostApiConstellationDns(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationDnsResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiConstellationDnsKeyWithResponse Delete a Constellation DNS entry by key
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/constellation/dns/{key} (the `DeleteApiConstellationDnsKey` operationId).
|
|
func (c *ClientWithResponses) DeleteApiConstellationDnsKeyWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*DeleteApiConstellationDnsKeyResponse, error) {
|
|
rsp, err := c.DeleteApiConstellationDnsKey(ctx, key, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiConstellationDnsKeyResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationDnsKeyWithResponse Get a single Constellation DNS entry by key
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/dns/{key} (the `GetApiConstellationDnsKey` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationDnsKeyWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*GetApiConstellationDnsKeyResponse, error) {
|
|
rsp, err := c.GetApiConstellationDnsKey(ctx, key, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationDnsKeyResponse(rsp)
|
|
}
|
|
|
|
// PutApiConstellationDnsKeyWithBodyWithResponse Update an existing Constellation DNS entry
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/constellation/dns/{key} (the `PutApiConstellationDnsKey` operationId).
|
|
func (c *ClientWithResponses) PutApiConstellationDnsKeyWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiConstellationDnsKeyResponse, error) {
|
|
rsp, err := c.PutApiConstellationDnsKeyWithBody(ctx, key, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiConstellationDnsKeyResponse(rsp)
|
|
}
|
|
|
|
// PutApiConstellationDnsKeyWithResponse Update an existing Constellation DNS entry
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/constellation/dns/{key} (the `PutApiConstellationDnsKey` operationId).
|
|
func (c *ClientWithResponses) PutApiConstellationDnsKeyWithResponse(ctx context.Context, key string, body PutApiConstellationDnsKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiConstellationDnsKeyResponse, error) {
|
|
rsp, err := c.PutApiConstellationDnsKey(ctx, key, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiConstellationDnsKeyResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationEditDeviceWithBodyWithResponse Edit the current Constellation device properties
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/edit-device (the `PostApiConstellationEditDevice` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationEditDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiConstellationEditDeviceResponse, error) {
|
|
rsp, err := c.PostApiConstellationEditDeviceWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationEditDeviceResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationEditDeviceWithResponse Edit the current Constellation device properties
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/edit-device (the `PostApiConstellationEditDevice` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationEditDeviceWithResponse(ctx context.Context, body PostApiConstellationEditDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiConstellationEditDeviceResponse, error) {
|
|
rsp, err := c.PostApiConstellationEditDevice(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationEditDeviceResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationForceReformWithResponse Force the constellation to re-form around this manager
|
|
//
|
|
// HA only. Bumps the op-log epoch, drops local JetStream state, blocks the other managers and restarts NATS, leaving this node writable in formation mode so replacements can be enrolled. Does not touch the CA, keys, config or device data.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/force-reform (the `PostApiConstellationForceReform` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationForceReformWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiConstellationForceReformResponse, error) {
|
|
rsp, err := c.PostApiConstellationForceReform(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationForceReformResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationGetNextIpWithResponse Get the next available IP address in the Constellation CIDR range
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/get-next-ip (the `GetApiConstellationGetNextIp` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationGetNextIpWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationGetNextIpResponse, error) {
|
|
rsp, err := c.GetApiConstellationGetNextIp(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationGetNextIpResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationLogsWithResponse Get Nebula VPN service logs
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/logs (the `GetApiConstellationLogs` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationLogsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationLogsResponse, error) {
|
|
rsp, err := c.GetApiConstellationLogs(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationLogsResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationNatsStatusWithResponse Detailed NATS/JetStream status for debugging
|
|
//
|
|
// Declared topology (role, HA mode), live NATS server/client/JetStream/KV state, connection counts and known managers.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/nats-status (the `GetApiConstellationNatsStatus` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationNatsStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationNatsStatusResponse, error) {
|
|
rsp, err := c.GetApiConstellationNatsStatus(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationNatsStatusResponse(rsp)
|
|
}
|
|
|
|
// PostApiConstellationNodesNameUnbrokeWithResponse Clear a node's quarantine
|
|
//
|
|
// Removes a node from the scheduler's quarantine set and resets its
|
|
// fail streak so the next reconcile cycle is free to place work on it
|
|
// again (Pro feature).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/constellation/nodes/{name}/unbroke (the `PostApiConstellationNodesNameUnbroke` operationId).
|
|
func (c *ClientWithResponses) PostApiConstellationNodesNameUnbrokeWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PostApiConstellationNodesNameUnbrokeResponse, error) {
|
|
rsp, err := c.PostApiConstellationNodesNameUnbroke(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiConstellationNodesNameUnbrokeResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationPingWithResponse Check if the NATS client connection is alive
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/ping (the `GetApiConstellationPing` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationPingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationPingResponse, error) {
|
|
rsp, err := c.GetApiConstellationPing(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationPingResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationPublicDevicesWithResponse List public information about all non-blocked Constellation devices
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/public-devices (the `GetApiConstellationPublicDevices` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationPublicDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationPublicDevicesResponse, error) {
|
|
rsp, err := c.GetApiConstellationPublicDevices(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationPublicDevicesResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationResetWithResponse Reset the Nebula VPN configuration
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/reset (the `GetApiConstellationReset` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationResetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationResetResponse, error) {
|
|
rsp, err := c.GetApiConstellationReset(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationResetResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationRestartWithResponse Restart the Nebula VPN service and HTTP server
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/restart (the `GetApiConstellationRestart` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationRestartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationRestartResponse, error) {
|
|
rsp, err := c.GetApiConstellationRestart(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationRestartResponse(rsp)
|
|
}
|
|
|
|
// GetApiConstellationTunnelsWithResponse List all active Constellation tunnels
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/constellation/tunnels (the `GetApiConstellationTunnels` operationId).
|
|
func (c *ClientWithResponses) GetApiConstellationTunnelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiConstellationTunnelsResponse, error) {
|
|
rsp, err := c.GetApiConstellationTunnels(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiConstellationTunnelsResponse(rsp)
|
|
}
|
|
|
|
// GetApiCronWithBodyWithResponse List or create CRON job configurations
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/cron (the `GetApiCron` operationId).
|
|
func (c *ClientWithResponses) GetApiCronWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiCronResponse, error) {
|
|
rsp, err := c.GetApiCronWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiCronResponse(rsp)
|
|
}
|
|
|
|
// GetApiCronWithResponse List or create CRON job configurations
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/cron (the `GetApiCron` operationId).
|
|
func (c *ClientWithResponses) GetApiCronWithResponse(ctx context.Context, body GetApiCronJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiCronResponse, error) {
|
|
rsp, err := c.GetApiCron(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiCronResponse(rsp)
|
|
}
|
|
|
|
// PostApiCronWithBodyWithResponse List or create CRON job configurations
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/cron (the `PostApiCron` operationId).
|
|
func (c *ClientWithResponses) PostApiCronWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiCronResponse, error) {
|
|
rsp, err := c.PostApiCronWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiCronResponse(rsp)
|
|
}
|
|
|
|
// PostApiCronWithResponse List or create CRON job configurations
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/cron (the `PostApiCron` operationId).
|
|
func (c *ClientWithResponses) PostApiCronWithResponse(ctx context.Context, body PostApiCronJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiCronResponse, error) {
|
|
rsp, err := c.PostApiCron(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiCronResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiCronNameWithBodyWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/cron/{name} (the `DeleteApiCronName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiCronNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiCronNameResponse, error) {
|
|
rsp, err := c.DeleteApiCronNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiCronNameResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiCronNameWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/cron/{name} (the `DeleteApiCronName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiCronNameWithResponse(ctx context.Context, name string, body DeleteApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiCronNameResponse, error) {
|
|
rsp, err := c.DeleteApiCronName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiCronNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiCronNameWithBodyWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/cron/{name} (the `GetApiCronName` operationId).
|
|
func (c *ClientWithResponses) GetApiCronNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiCronNameResponse, error) {
|
|
rsp, err := c.GetApiCronNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiCronNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiCronNameWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/cron/{name} (the `GetApiCronName` operationId).
|
|
func (c *ClientWithResponses) GetApiCronNameWithResponse(ctx context.Context, name string, body GetApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiCronNameResponse, error) {
|
|
rsp, err := c.GetApiCronName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiCronNameResponse(rsp)
|
|
}
|
|
|
|
// PutApiCronNameWithBodyWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/cron/{name} (the `PutApiCronName` operationId).
|
|
func (c *ClientWithResponses) PutApiCronNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiCronNameResponse, error) {
|
|
rsp, err := c.PutApiCronNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiCronNameResponse(rsp)
|
|
}
|
|
|
|
// PutApiCronNameWithResponse Get, update, or delete a CRON job configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/cron/{name} (the `PutApiCronName` operationId).
|
|
func (c *ClientWithResponses) PutApiCronNameWithResponse(ctx context.Context, name string, body PutApiCronNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiCronNameResponse, error) {
|
|
rsp, err := c.PutApiCronName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiCronNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiDashboardWithResponse Get dashboard data
|
|
//
|
|
// Returns dashboard route information with container status for SERVAPP routes.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/dashboard (the `GetApiDashboard` operationId).
|
|
func (c *ClientWithResponses) GetApiDashboardWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDashboardResponse, error) {
|
|
rsp, err := c.GetApiDashboard(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiDashboardResponse(rsp)
|
|
}
|
|
|
|
// GetApiDisksWithResponse List all disks
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/disks (the `GetApiDisks` operationId).
|
|
func (c *ClientWithResponses) GetApiDisksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDisksResponse, error) {
|
|
rsp, err := c.GetApiDisks(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiDisksResponse(rsp)
|
|
}
|
|
|
|
// PostApiDisksFormatWithBodyWithResponse Format a disk or partition
|
|
//
|
|
// Formats the specified disk with the given filesystem format. Requires password confirmation. Streams progress output.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/disks/format (the `PostApiDisksFormat` operationId).
|
|
func (c *ClientWithResponses) PostApiDisksFormatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDisksFormatResponse, error) {
|
|
rsp, err := c.PostApiDisksFormatWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiDisksFormatResponse(rsp)
|
|
}
|
|
|
|
// PostApiDisksFormatWithResponse Format a disk or partition
|
|
//
|
|
// Formats the specified disk with the given filesystem format. Requires password confirmation. Streams progress output.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/disks/format (the `PostApiDisksFormat` operationId).
|
|
func (c *ClientWithResponses) PostApiDisksFormatWithResponse(ctx context.Context, body PostApiDisksFormatJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDisksFormatResponse, error) {
|
|
rsp, err := c.PostApiDisksFormat(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiDisksFormatResponse(rsp)
|
|
}
|
|
|
|
// GetApiDnsWithResponse Resolve DNS for a URL
|
|
//
|
|
// Performs a DNS lookup for the given URL and returns the resolved IPv4 address.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/dns (the `GetApiDns` operationId).
|
|
func (c *ClientWithResponses) GetApiDnsWithResponse(ctx context.Context, params *GetApiDnsParams, reqEditors ...RequestEditorFn) (*GetApiDnsResponse, error) {
|
|
rsp, err := c.GetApiDns(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiDnsResponse(rsp)
|
|
}
|
|
|
|
// GetApiDnsCheckWithResponse Check DNS configuration for a URL
|
|
//
|
|
// Verifies that DNS is correctly configured for the given URL.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/dns-check (the `GetApiDnsCheck` operationId).
|
|
func (c *ClientWithResponses) GetApiDnsCheckWithResponse(ctx context.Context, params *GetApiDnsCheckParams, reqEditors ...RequestEditorFn) (*GetApiDnsCheckResponse, error) {
|
|
rsp, err := c.GetApiDnsCheck(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiDnsCheckResponse(rsp)
|
|
}
|
|
|
|
// PostApiDockerServiceWithBodyWithResponse Create a Docker service (compose-like) with networks, volumes, and containers
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/docker-service (the `PostApiDockerService` operationId).
|
|
func (c *ClientWithResponses) PostApiDockerServiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDockerServiceResponse, error) {
|
|
rsp, err := c.PostApiDockerServiceWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiDockerServiceResponse(rsp)
|
|
}
|
|
|
|
// PostApiDockerServiceWithResponse Create a Docker service (compose-like) with networks, volumes, and containers
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/docker-service (the `PostApiDockerService` operationId).
|
|
func (c *ClientWithResponses) PostApiDockerServiceWithResponse(ctx context.Context, body PostApiDockerServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDockerServiceResponse, error) {
|
|
rsp, err := c.PostApiDockerService(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiDockerServiceResponse(rsp)
|
|
}
|
|
|
|
// GetApiEventsWithResponse List events with filtering and pagination
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/events (the `GetApiEvents` operationId).
|
|
func (c *ClientWithResponses) GetApiEventsWithResponse(ctx context.Context, params *GetApiEventsParams, reqEditors ...RequestEditorFn) (*GetApiEventsResponse, error) {
|
|
rsp, err := c.GetApiEvents(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiEventsResponse(rsp)
|
|
}
|
|
|
|
// GetApiFaviconWithResponse Get favicon for a URL
|
|
//
|
|
// # Fetches and caches the favicon for the given URL, returning it as an image
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/favicon (the `GetApiFavicon` operationId).
|
|
func (c *ClientWithResponses) GetApiFaviconWithResponse(ctx context.Context, params *GetApiFaviconParams, reqEditors ...RequestEditorFn) (*GetApiFaviconResponse, error) {
|
|
rsp, err := c.GetApiFavicon(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiFaviconResponse(rsp)
|
|
}
|
|
|
|
// PostApiForceServerUpdateWithResponse Force check for server updates
|
|
//
|
|
// Triggers a manual check for available server updates.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/force-server-update (the `PostApiForceServerUpdate` operationId).
|
|
func (c *ClientWithResponses) PostApiForceServerUpdateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiForceServerUpdateResponse, error) {
|
|
rsp, err := c.PostApiForceServerUpdate(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiForceServerUpdateResponse(rsp)
|
|
}
|
|
|
|
// GetApiGetBackupWithResponse Get backup file
|
|
//
|
|
// Returns the backup cosmos-compose JSON file.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/get-backup (the `GetApiGetBackup` operationId).
|
|
func (c *ClientWithResponses) GetApiGetBackupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiGetBackupResponse, error) {
|
|
rsp, err := c.GetApiGetBackup(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiGetBackupResponse(rsp)
|
|
}
|
|
|
|
// GetApiGroupsWithResponse List all groups
|
|
//
|
|
// Returns all custom role groups (role ID >= 3).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/groups (the `GetApiGroups` operationId).
|
|
func (c *ClientWithResponses) GetApiGroupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiGroupsResponse, error) {
|
|
rsp, err := c.GetApiGroups(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiGroupsResponse(rsp)
|
|
}
|
|
|
|
// PostApiGroupsWithBodyWithResponse Create a new group
|
|
//
|
|
// Creates a new custom role group with name and permissions (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/groups (the `PostApiGroups` operationId).
|
|
func (c *ClientWithResponses) PostApiGroupsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiGroupsResponse, error) {
|
|
rsp, err := c.PostApiGroupsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiGroupsResponse(rsp)
|
|
}
|
|
|
|
// PostApiGroupsWithResponse Create a new group
|
|
//
|
|
// Creates a new custom role group with name and permissions (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/groups (the `PostApiGroups` operationId).
|
|
func (c *ClientWithResponses) PostApiGroupsWithResponse(ctx context.Context, body PostApiGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiGroupsResponse, error) {
|
|
rsp, err := c.PostApiGroups(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiGroupsResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiGroupsIdWithResponse Delete a group
|
|
//
|
|
// Deletes a custom role group. Fails if users are still assigned to it. (Pro feature)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/groups/{id} (the `DeleteApiGroupsId` operationId).
|
|
func (c *ClientWithResponses) DeleteApiGroupsIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteApiGroupsIdResponse, error) {
|
|
rsp, err := c.DeleteApiGroupsId(ctx, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiGroupsIdResponse(rsp)
|
|
}
|
|
|
|
// PutApiGroupsIdWithBodyWithResponse Update a group
|
|
//
|
|
// Updates an existing group's name or permissions (Pro feature).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/groups/{id} (the `PutApiGroupsId` operationId).
|
|
func (c *ClientWithResponses) PutApiGroupsIdWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiGroupsIdResponse, error) {
|
|
rsp, err := c.PutApiGroupsIdWithBody(ctx, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiGroupsIdResponse(rsp)
|
|
}
|
|
|
|
// PutApiGroupsIdWithResponse Update a group
|
|
//
|
|
// Updates an existing group's name or permissions (Pro feature).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/groups/{id} (the `PutApiGroupsId` operationId).
|
|
func (c *ClientWithResponses) PutApiGroupsIdWithResponse(ctx context.Context, id int, body PutApiGroupsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiGroupsIdResponse, error) {
|
|
rsp, err := c.PutApiGroupsId(ctx, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiGroupsIdResponse(rsp)
|
|
}
|
|
|
|
// GetApiImageNameWithResponse Get an uploaded image
|
|
//
|
|
// Returns a previously uploaded image by name.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/image/{name} (the `GetApiImageName` operationId).
|
|
func (c *ClientWithResponses) GetApiImageNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiImageNameResponse, error) {
|
|
rsp, err := c.GetApiImageName(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiImageNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiImagesWithResponse Inspect a Docker image by name
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/images (the `GetApiImages` operationId).
|
|
func (c *ClientWithResponses) GetApiImagesWithResponse(ctx context.Context, params *GetApiImagesParams, reqEditors ...RequestEditorFn) (*GetApiImagesResponse, error) {
|
|
rsp, err := c.GetApiImages(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiImagesResponse(rsp)
|
|
}
|
|
|
|
// GetApiImagesPullWithResponse Pull a Docker image from a registry
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/images/pull (the `GetApiImagesPull` operationId).
|
|
func (c *ClientWithResponses) GetApiImagesPullWithResponse(ctx context.Context, params *GetApiImagesPullParams, reqEditors ...RequestEditorFn) (*GetApiImagesPullResponse, error) {
|
|
rsp, err := c.GetApiImagesPull(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiImagesPullResponse(rsp)
|
|
}
|
|
|
|
// GetApiImagesPullIfMissingWithResponse Pull a Docker image only if it is not already present locally
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/images/pull-if-missing (the `GetApiImagesPullIfMissing` operationId).
|
|
func (c *ClientWithResponses) GetApiImagesPullIfMissingWithResponse(ctx context.Context, params *GetApiImagesPullIfMissingParams, reqEditors ...RequestEditorFn) (*GetApiImagesPullIfMissingResponse, error) {
|
|
rsp, err := c.GetApiImagesPullIfMissing(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiImagesPullIfMissingResponse(rsp)
|
|
}
|
|
|
|
// PostApiInviteWithBodyWithResponse Resend invite link
|
|
//
|
|
// Generates a new registration key and optionally sends an invite or password reset email.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/invite (the `PostApiInvite` operationId).
|
|
func (c *ClientWithResponses) PostApiInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiInviteResponse, error) {
|
|
rsp, err := c.PostApiInviteWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiInviteResponse(rsp)
|
|
}
|
|
|
|
// PostApiInviteWithResponse Resend invite link
|
|
//
|
|
// Generates a new registration key and optionally sends an invite or password reset email.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/invite (the `PostApiInvite` operationId).
|
|
func (c *ClientWithResponses) PostApiInviteWithResponse(ctx context.Context, body PostApiInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiInviteResponse, error) {
|
|
rsp, err := c.PostApiInvite(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiInviteResponse(rsp)
|
|
}
|
|
|
|
// GetApiJobsWithResponse List all scheduled jobs
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/jobs (the `GetApiJobs` operationId).
|
|
func (c *ClientWithResponses) GetApiJobsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiJobsResponse, error) {
|
|
rsp, err := c.GetApiJobs(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiJobsResponse(rsp)
|
|
}
|
|
|
|
// PostApiJobsDeleteWithBodyWithResponse Delete a job from the CRON configuration
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/delete (the `PostApiJobsDelete` operationId).
|
|
func (c *ClientWithResponses) PostApiJobsDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiJobsDeleteResponse, error) {
|
|
rsp, err := c.PostApiJobsDeleteWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiJobsDeleteResponse(rsp)
|
|
}
|
|
|
|
// PostApiJobsDeleteWithResponse Delete a job from the CRON configuration
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/delete (the `PostApiJobsDelete` operationId).
|
|
func (c *ClientWithResponses) PostApiJobsDeleteWithResponse(ctx context.Context, body PostApiJobsDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiJobsDeleteResponse, error) {
|
|
rsp, err := c.PostApiJobsDelete(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiJobsDeleteResponse(rsp)
|
|
}
|
|
|
|
// PostApiJobsGetWithBodyWithResponse Get details and logs of a specific job
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/get (the `PostApiJobsGet` operationId).
|
|
func (c *ClientWithResponses) PostApiJobsGetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiJobsGetResponse, error) {
|
|
rsp, err := c.PostApiJobsGetWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiJobsGetResponse(rsp)
|
|
}
|
|
|
|
// PostApiJobsGetWithResponse Get details and logs of a specific job
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/get (the `PostApiJobsGet` operationId).
|
|
func (c *ClientWithResponses) PostApiJobsGetWithResponse(ctx context.Context, body PostApiJobsGetJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiJobsGetResponse, error) {
|
|
rsp, err := c.PostApiJobsGet(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiJobsGetResponse(rsp)
|
|
}
|
|
|
|
// PostApiJobsRunWithBodyWithResponse Manually trigger a job to run
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/run (the `PostApiJobsRun` operationId).
|
|
func (c *ClientWithResponses) PostApiJobsRunWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiJobsRunResponse, error) {
|
|
rsp, err := c.PostApiJobsRunWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiJobsRunResponse(rsp)
|
|
}
|
|
|
|
// PostApiJobsRunWithResponse Manually trigger a job to run
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/run (the `PostApiJobsRun` operationId).
|
|
func (c *ClientWithResponses) PostApiJobsRunWithResponse(ctx context.Context, body PostApiJobsRunJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiJobsRunResponse, error) {
|
|
rsp, err := c.PostApiJobsRun(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiJobsRunResponse(rsp)
|
|
}
|
|
|
|
// GetApiJobsRunningWithResponse List currently running jobs
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/jobs/running (the `GetApiJobsRunning` operationId).
|
|
func (c *ClientWithResponses) GetApiJobsRunningWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiJobsRunningResponse, error) {
|
|
rsp, err := c.GetApiJobsRunning(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiJobsRunningResponse(rsp)
|
|
}
|
|
|
|
// PostApiJobsStopWithBodyWithResponse Stop a running job
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/stop (the `PostApiJobsStop` operationId).
|
|
func (c *ClientWithResponses) PostApiJobsStopWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiJobsStopResponse, error) {
|
|
rsp, err := c.PostApiJobsStopWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiJobsStopResponse(rsp)
|
|
}
|
|
|
|
// PostApiJobsStopWithResponse Stop a running job
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/jobs/stop (the `PostApiJobsStop` operationId).
|
|
func (c *ClientWithResponses) PostApiJobsStopWithResponse(ctx context.Context, body PostApiJobsStopJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiJobsStopResponse, error) {
|
|
rsp, err := c.PostApiJobsStop(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiJobsStopResponse(rsp)
|
|
}
|
|
|
|
// GetApiListDirWithResponse List the contents of a directory
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/list-dir (the `GetApiListDir` operationId).
|
|
func (c *ClientWithResponses) GetApiListDirWithResponse(ctx context.Context, params *GetApiListDirParams, reqEditors ...RequestEditorFn) (*GetApiListDirResponse, error) {
|
|
rsp, err := c.GetApiListDir(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiListDirResponse(rsp)
|
|
}
|
|
|
|
// GetApiListMetricsWithResponse List all available metric keys and their labels
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/list-metrics (the `GetApiListMetrics` operationId).
|
|
func (c *ClientWithResponses) GetApiListMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiListMetricsResponse, error) {
|
|
rsp, err := c.GetApiListMetrics(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiListMetricsResponse(rsp)
|
|
}
|
|
|
|
// PostApiLoginWithBodyWithResponse User login
|
|
//
|
|
// # Authenticates a user with nickname and password, sets JWT cookie on success
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
|
|
func (c *ClientWithResponses) PostApiLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiLoginResponse, error) {
|
|
rsp, err := c.PostApiLoginWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiLoginResponse(rsp)
|
|
}
|
|
|
|
// PostApiLoginWithResponse User login
|
|
//
|
|
// # Authenticates a user with nickname and password, sets JWT cookie on success
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
|
|
func (c *ClientWithResponses) PostApiLoginWithResponse(ctx context.Context, body PostApiLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiLoginResponse, error) {
|
|
rsp, err := c.PostApiLogin(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiLoginResponse(rsp)
|
|
}
|
|
|
|
// GetApiLogoutWithResponse User logout
|
|
//
|
|
// Logs out the current user by clearing authentication cookies.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/logout (the `GetApiLogout` operationId).
|
|
func (c *ClientWithResponses) GetApiLogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiLogoutResponse, error) {
|
|
rsp, err := c.GetApiLogout(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiLogoutResponse(rsp)
|
|
}
|
|
|
|
// GetApiMarketsWithResponse Get the app marketplace listings
|
|
//
|
|
// Returns all marketplace sources and their applications, plus the showcase from cosmos-cloud.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/markets (the `GetApiMarkets` operationId).
|
|
func (c *ClientWithResponses) GetApiMarketsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMarketsResponse, error) {
|
|
rsp, err := c.GetApiMarkets(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiMarketsResponse(rsp)
|
|
}
|
|
|
|
// GetApiMeWithResponse Get current user info
|
|
//
|
|
// Returns the profile information of the currently authenticated user.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/me (the `GetApiMe` operationId).
|
|
func (c *ClientWithResponses) GetApiMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeResponse, error) {
|
|
rsp, err := c.GetApiMe(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiMeResponse(rsp)
|
|
}
|
|
|
|
// PostApiMergeWithBodyWithResponse Merge multiple filesystems using MergerFS
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/merge (the `PostApiMerge` operationId).
|
|
func (c *ClientWithResponses) PostApiMergeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMergeResponse, error) {
|
|
rsp, err := c.PostApiMergeWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiMergeResponse(rsp)
|
|
}
|
|
|
|
// PostApiMergeWithResponse Merge multiple filesystems using MergerFS
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/merge (the `PostApiMerge` operationId).
|
|
func (c *ClientWithResponses) PostApiMergeWithResponse(ctx context.Context, body PostApiMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMergeResponse, error) {
|
|
rsp, err := c.PostApiMerge(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiMergeResponse(rsp)
|
|
}
|
|
|
|
// GetApiMetricsWithResponse Get aggregated metrics data
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/metrics (the `GetApiMetrics` operationId).
|
|
func (c *ClientWithResponses) GetApiMetricsWithResponse(ctx context.Context, params *GetApiMetricsParams, reqEditors ...RequestEditorFn) (*GetApiMetricsResponse, error) {
|
|
rsp, err := c.GetApiMetrics(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiMetricsResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiMfaWithBodyWithResponse Reset 2FA for a user
|
|
//
|
|
// Removes the 2FA key for a specified user (admin operation).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/mfa (the `DeleteApiMfa` operationId).
|
|
func (c *ClientWithResponses) DeleteApiMfaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiMfaResponse, error) {
|
|
rsp, err := c.DeleteApiMfaWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiMfaResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiMfaWithResponse Reset 2FA for a user
|
|
//
|
|
// Removes the 2FA key for a specified user (admin operation).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/mfa (the `DeleteApiMfa` operationId).
|
|
func (c *ClientWithResponses) DeleteApiMfaWithResponse(ctx context.Context, body DeleteApiMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiMfaResponse, error) {
|
|
rsp, err := c.DeleteApiMfa(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiMfaResponse(rsp)
|
|
}
|
|
|
|
// GetApiMfaWithResponse Generate new 2FA key
|
|
//
|
|
// Generates a new TOTP key for the current user and returns the provisioning URL.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/mfa (the `GetApiMfa` operationId).
|
|
func (c *ClientWithResponses) GetApiMfaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMfaResponse, error) {
|
|
rsp, err := c.GetApiMfa(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiMfaResponse(rsp)
|
|
}
|
|
|
|
// PostApiMfaWithBodyWithResponse Verify 2FA token
|
|
//
|
|
// Validates a TOTP token for the current user to complete multi-factor authentication.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/mfa (the `PostApiMfa` operationId).
|
|
func (c *ClientWithResponses) PostApiMfaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMfaResponse, error) {
|
|
rsp, err := c.PostApiMfaWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiMfaResponse(rsp)
|
|
}
|
|
|
|
// PostApiMfaWithResponse Verify 2FA token
|
|
//
|
|
// Validates a TOTP token for the current user to complete multi-factor authentication.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/mfa (the `PostApiMfa` operationId).
|
|
func (c *ClientWithResponses) PostApiMfaWithResponse(ctx context.Context, body PostApiMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMfaResponse, error) {
|
|
rsp, err := c.PostApiMfa(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiMfaResponse(rsp)
|
|
}
|
|
|
|
// PostApiMigrateHostWithBodyWithResponse Migrate Cosmos container to host network mode
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/migrate-host (the `PostApiMigrateHost` operationId).
|
|
func (c *ClientWithResponses) PostApiMigrateHostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMigrateHostResponse, error) {
|
|
rsp, err := c.PostApiMigrateHostWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiMigrateHostResponse(rsp)
|
|
}
|
|
|
|
// PostApiMigrateHostWithResponse Migrate Cosmos container to host network mode
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/migrate-host (the `PostApiMigrateHost` operationId).
|
|
func (c *ClientWithResponses) PostApiMigrateHostWithResponse(ctx context.Context, body PostApiMigrateHostJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMigrateHostResponse, error) {
|
|
rsp, err := c.PostApiMigrateHost(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiMigrateHostResponse(rsp)
|
|
}
|
|
|
|
// PostApiMountWithBodyWithResponse Mount a filesystem
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/mount (the `PostApiMount` operationId).
|
|
func (c *ClientWithResponses) PostApiMountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMountResponse, error) {
|
|
rsp, err := c.PostApiMountWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiMountResponse(rsp)
|
|
}
|
|
|
|
// PostApiMountWithResponse Mount a filesystem
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/mount (the `PostApiMount` operationId).
|
|
func (c *ClientWithResponses) PostApiMountWithResponse(ctx context.Context, body PostApiMountJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMountResponse, error) {
|
|
rsp, err := c.PostApiMount(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiMountResponse(rsp)
|
|
}
|
|
|
|
// GetApiMountsWithResponse List all mounted filesystems
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/mounts (the `GetApiMounts` operationId).
|
|
func (c *ClientWithResponses) GetApiMountsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMountsResponse, error) {
|
|
rsp, err := c.GetApiMounts(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiMountsResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiNetworkNetworkIDWithResponse Delete a Docker network by ID
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/network/{networkID} (the `DeleteApiNetworkNetworkID` operationId).
|
|
func (c *ClientWithResponses) DeleteApiNetworkNetworkIDWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*DeleteApiNetworkNetworkIDResponse, error) {
|
|
rsp, err := c.DeleteApiNetworkNetworkID(ctx, networkID, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiNetworkNetworkIDResponse(rsp)
|
|
}
|
|
|
|
// GetApiNetworksWithResponse List all Docker networks
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/networks (the `GetApiNetworks` operationId).
|
|
func (c *ClientWithResponses) GetApiNetworksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiNetworksResponse, error) {
|
|
rsp, err := c.GetApiNetworks(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiNetworksResponse(rsp)
|
|
}
|
|
|
|
// PostApiNetworksWithBodyWithResponse Create a new Docker network
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/networks (the `PostApiNetworks` operationId).
|
|
func (c *ClientWithResponses) PostApiNetworksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNetworksResponse, error) {
|
|
rsp, err := c.PostApiNetworksWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiNetworksResponse(rsp)
|
|
}
|
|
|
|
// PostApiNetworksWithResponse Create a new Docker network
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/networks (the `PostApiNetworks` operationId).
|
|
func (c *ClientWithResponses) PostApiNetworksWithResponse(ctx context.Context, body PostApiNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNetworksResponse, error) {
|
|
rsp, err := c.PostApiNetworks(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiNetworksResponse(rsp)
|
|
}
|
|
|
|
// PostApiNewDirWithResponse Create a new folder
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/new-dir (the `PostApiNewDir` operationId).
|
|
func (c *ClientWithResponses) PostApiNewDirWithResponse(ctx context.Context, params *PostApiNewDirParams, reqEditors ...RequestEditorFn) (*PostApiNewDirResponse, error) {
|
|
rsp, err := c.PostApiNewDir(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiNewDirResponse(rsp)
|
|
}
|
|
|
|
// PostApiNewInstallWithBodyWithResponse Process new installation steps
|
|
//
|
|
// # Handles multi-step server installation including database setup, HTTPS configuration, and admin user creation
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/newInstall (the `PostApiNewInstall` operationId).
|
|
func (c *ClientWithResponses) PostApiNewInstallWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNewInstallResponse, error) {
|
|
rsp, err := c.PostApiNewInstallWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiNewInstallResponse(rsp)
|
|
}
|
|
|
|
// PostApiNewInstallWithResponse Process new installation steps
|
|
//
|
|
// # Handles multi-step server installation including database setup, HTTPS configuration, and admin user creation
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/newInstall (the `PostApiNewInstall` operationId).
|
|
func (c *ClientWithResponses) PostApiNewInstallWithResponse(ctx context.Context, body PostApiNewInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNewInstallResponse, error) {
|
|
rsp, err := c.PostApiNewInstall(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiNewInstallResponse(rsp)
|
|
}
|
|
|
|
// GetApiNotificationsWithResponse Get notifications for the authenticated user
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/notifications (the `GetApiNotifications` operationId).
|
|
func (c *ClientWithResponses) GetApiNotificationsWithResponse(ctx context.Context, params *GetApiNotificationsParams, reqEditors ...RequestEditorFn) (*GetApiNotificationsResponse, error) {
|
|
rsp, err := c.GetApiNotifications(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiNotificationsResponse(rsp)
|
|
}
|
|
|
|
// GetApiNotificationsReadWithResponse Mark notifications as read
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/notifications/read (the `GetApiNotificationsRead` operationId).
|
|
func (c *ClientWithResponses) GetApiNotificationsReadWithResponse(ctx context.Context, params *GetApiNotificationsReadParams, reqEditors ...RequestEditorFn) (*GetApiNotificationsReadResponse, error) {
|
|
rsp, err := c.GetApiNotificationsRead(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiNotificationsReadResponse(rsp)
|
|
}
|
|
|
|
// GetApiOpenidWithResponse List all OpenID clients
|
|
//
|
|
// Returns all configured OpenID Connect client configurations.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/openid (the `GetApiOpenid` operationId).
|
|
func (c *ClientWithResponses) GetApiOpenidWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiOpenidResponse, error) {
|
|
rsp, err := c.GetApiOpenid(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiOpenidResponse(rsp)
|
|
}
|
|
|
|
// PostApiOpenidWithBodyWithResponse Create an OpenID client
|
|
//
|
|
// Creates a new OpenID Connect client configuration.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/openid (the `PostApiOpenid` operationId).
|
|
func (c *ClientWithResponses) PostApiOpenidWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiOpenidResponse, error) {
|
|
rsp, err := c.PostApiOpenidWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiOpenidResponse(rsp)
|
|
}
|
|
|
|
// PostApiOpenidWithResponse Create an OpenID client
|
|
//
|
|
// Creates a new OpenID Connect client configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/openid (the `PostApiOpenid` operationId).
|
|
func (c *ClientWithResponses) PostApiOpenidWithResponse(ctx context.Context, body PostApiOpenidJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiOpenidResponse, error) {
|
|
rsp, err := c.PostApiOpenid(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiOpenidResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiOpenidIdWithResponse Delete an OpenID client
|
|
//
|
|
// Removes an OpenID Connect client configuration by ID.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/openid/{id} (the `DeleteApiOpenidId` operationId).
|
|
func (c *ClientWithResponses) DeleteApiOpenidIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiOpenidIdResponse, error) {
|
|
rsp, err := c.DeleteApiOpenidId(ctx, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiOpenidIdResponse(rsp)
|
|
}
|
|
|
|
// GetApiOpenidIdWithResponse Get an OpenID client by ID
|
|
//
|
|
// Returns a single OpenID Connect client configuration.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/openid/{id} (the `GetApiOpenidId` operationId).
|
|
func (c *ClientWithResponses) GetApiOpenidIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiOpenidIdResponse, error) {
|
|
rsp, err := c.GetApiOpenidId(ctx, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiOpenidIdResponse(rsp)
|
|
}
|
|
|
|
// PutApiOpenidIdWithBodyWithResponse Update an OpenID client
|
|
//
|
|
// Replaces an existing OpenID Connect client configuration.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/openid/{id} (the `PutApiOpenidId` operationId).
|
|
func (c *ClientWithResponses) PutApiOpenidIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiOpenidIdResponse, error) {
|
|
rsp, err := c.PutApiOpenidIdWithBody(ctx, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiOpenidIdResponse(rsp)
|
|
}
|
|
|
|
// PutApiOpenidIdWithResponse Update an OpenID client
|
|
//
|
|
// Replaces an existing OpenID Connect client configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/openid/{id} (the `PutApiOpenidId` operationId).
|
|
func (c *ClientWithResponses) PutApiOpenidIdWithResponse(ctx context.Context, id string, body PutApiOpenidIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiOpenidIdResponse, error) {
|
|
rsp, err := c.PutApiOpenidId(ctx, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiOpenidIdResponse(rsp)
|
|
}
|
|
|
|
// PostApiPasswordResetWithBodyWithResponse Request a password reset
|
|
//
|
|
// Sends a password reset email to the user if email is configured.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/password-reset (the `PostApiPasswordReset` operationId).
|
|
func (c *ClientWithResponses) PostApiPasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPasswordResetResponse, error) {
|
|
rsp, err := c.PostApiPasswordResetWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiPasswordResetResponse(rsp)
|
|
}
|
|
|
|
// PostApiPasswordResetWithResponse Request a password reset
|
|
//
|
|
// Sends a password reset email to the user if email is configured.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/password-reset (the `PostApiPasswordReset` operationId).
|
|
func (c *ClientWithResponses) PostApiPasswordResetWithResponse(ctx context.Context, body PostApiPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPasswordResetResponse, error) {
|
|
rsp, err := c.PostApiPasswordReset(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiPasswordResetResponse(rsp)
|
|
}
|
|
|
|
// GetApiPingWithResponse Ping a URL
|
|
//
|
|
// Checks if a URL is reachable and returns a non-5xx response.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/ping (the `GetApiPing` operationId).
|
|
func (c *ClientWithResponses) GetApiPingWithResponse(ctx context.Context, params *GetApiPingParams, reqEditors ...RequestEditorFn) (*GetApiPingResponse, error) {
|
|
rsp, err := c.GetApiPing(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiPingResponse(rsp)
|
|
}
|
|
|
|
// GetApiRcloneRestartWithResponse Restart all RClone remote storage mounts
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/rclone-restart (the `GetApiRcloneRestart` operationId).
|
|
func (c *ClientWithResponses) GetApiRcloneRestartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRcloneRestartResponse, error) {
|
|
rsp, err := c.GetApiRcloneRestart(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiRcloneRestartResponse(rsp)
|
|
}
|
|
|
|
// PostApiRegisterWithBodyWithResponse Register a new user
|
|
//
|
|
// Completes user registration using a registration key (invite link).
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/register (the `PostApiRegister` operationId).
|
|
func (c *ClientWithResponses) PostApiRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiRegisterResponse, error) {
|
|
rsp, err := c.PostApiRegisterWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiRegisterResponse(rsp)
|
|
}
|
|
|
|
// PostApiRegisterWithResponse Register a new user
|
|
//
|
|
// Completes user registration using a registration key (invite link).
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/register (the `PostApiRegister` operationId).
|
|
func (c *ClientWithResponses) PostApiRegisterWithResponse(ctx context.Context, body PostApiRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiRegisterResponse, error) {
|
|
rsp, err := c.PostApiRegister(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiRegisterResponse(rsp)
|
|
}
|
|
|
|
// GetApiResetMetricsWithResponse Reset all metrics and events data
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/reset-metrics (the `GetApiResetMetrics` operationId).
|
|
func (c *ClientWithResponses) GetApiResetMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiResetMetricsResponse, error) {
|
|
rsp, err := c.GetApiResetMetrics(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiResetMetricsResponse(rsp)
|
|
}
|
|
|
|
// GetApiRestartWithResponse Restart the server
|
|
//
|
|
// Triggers a graceful server restart.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/restart (the `GetApiRestart` operationId).
|
|
func (c *ClientWithResponses) GetApiRestartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRestartResponse, error) {
|
|
rsp, err := c.GetApiRestart(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiRestartResponse(rsp)
|
|
}
|
|
|
|
// GetApiRestartServerWithResponse Restart the host machine
|
|
//
|
|
// Triggers a restart of the host machine (not available when running inside a container).
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/restart-server (the `GetApiRestartServer` operationId).
|
|
func (c *ClientWithResponses) GetApiRestartServerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRestartServerResponse, error) {
|
|
rsp, err := c.GetApiRestartServer(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiRestartServerResponse(rsp)
|
|
}
|
|
|
|
// GetApiRoutesWithResponse List all proxy routes
|
|
//
|
|
// Returns all configured proxy routes.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/routes (the `GetApiRoutes` operationId).
|
|
func (c *ClientWithResponses) GetApiRoutesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRoutesResponse, error) {
|
|
rsp, err := c.GetApiRoutes(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiRoutesResponse(rsp)
|
|
}
|
|
|
|
// PostApiRoutesWithBodyWithResponse Create a new proxy route
|
|
//
|
|
// Creates a new proxy route configuration.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/routes (the `PostApiRoutes` operationId).
|
|
func (c *ClientWithResponses) PostApiRoutesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiRoutesResponse, error) {
|
|
rsp, err := c.PostApiRoutesWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiRoutesResponse(rsp)
|
|
}
|
|
|
|
// PostApiRoutesWithResponse Create a new proxy route
|
|
//
|
|
// Creates a new proxy route configuration.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/routes (the `PostApiRoutes` operationId).
|
|
func (c *ClientWithResponses) PostApiRoutesWithResponse(ctx context.Context, body PostApiRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiRoutesResponse, error) {
|
|
rsp, err := c.PostApiRoutes(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiRoutesResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiRoutesNameWithResponse Delete a proxy route
|
|
//
|
|
// Removes a proxy route configuration by name.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/routes/{name} (the `DeleteApiRoutesName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiRoutesNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteApiRoutesNameResponse, error) {
|
|
rsp, err := c.DeleteApiRoutesName(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiRoutesNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiRoutesNameWithResponse Get a proxy route by name
|
|
//
|
|
// Returns a single proxy route configuration by its name.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/routes/{name} (the `GetApiRoutesName` operationId).
|
|
func (c *ClientWithResponses) GetApiRoutesNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApiRoutesNameResponse, error) {
|
|
rsp, err := c.GetApiRoutesName(ctx, name, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiRoutesNameResponse(rsp)
|
|
}
|
|
|
|
// PutApiRoutesNameWithBodyWithResponse Update a proxy route
|
|
//
|
|
// Replaces an existing proxy route configuration by name.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/routes/{name} (the `PutApiRoutesName` operationId).
|
|
func (c *ClientWithResponses) PutApiRoutesNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiRoutesNameResponse, error) {
|
|
rsp, err := c.PutApiRoutesNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiRoutesNameResponse(rsp)
|
|
}
|
|
|
|
// PutApiRoutesNameWithResponse Update a proxy route
|
|
//
|
|
// Replaces an existing proxy route configuration by name.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /api/routes/{name} (the `PutApiRoutesName` operationId).
|
|
func (c *ClientWithResponses) PutApiRoutesNameWithResponse(ctx context.Context, name string, body PutApiRoutesNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiRoutesNameResponse, error) {
|
|
rsp, err := c.PutApiRoutesName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutApiRoutesNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiServappsWithResponse List all Docker containers
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps (the `GetApiServapps` operationId).
|
|
func (c *ClientWithResponses) GetApiServappsWithResponse(ctx context.Context, params *GetApiServappsParams, reqEditors ...RequestEditorFn) (*GetApiServappsResponse, error) {
|
|
rsp, err := c.GetApiServapps(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiServappsResponse(rsp)
|
|
}
|
|
|
|
// GetApiServappsContainerIdWithResponse Inspect a single Docker container by ID
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/ (the `GetApiServappsContainerId` operationId).
|
|
func (c *ClientWithResponses) GetApiServappsContainerIdWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdResponse, error) {
|
|
rsp, err := c.GetApiServappsContainerId(ctx, containerId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiServappsContainerIdResponse(rsp)
|
|
}
|
|
|
|
// GetApiServappsContainerIdAutoUpdateStatusWithResponse Enable or disable auto-update for a Docker container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/auto-update/{status} (the `GetApiServappsContainerIdAutoUpdateStatus` operationId).
|
|
func (c *ClientWithResponses) GetApiServappsContainerIdAutoUpdateStatusWithResponse(ctx context.Context, containerId string, status string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdAutoUpdateStatusResponse, error) {
|
|
rsp, err := c.GetApiServappsContainerIdAutoUpdateStatus(ctx, containerId, status, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiServappsContainerIdAutoUpdateStatusResponse(rsp)
|
|
}
|
|
|
|
// GetApiServappsContainerIdCheckUpdateWithResponse Check whether a container's image has a newer version available
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/check-update (the `GetApiServappsContainerIdCheckUpdate` operationId).
|
|
func (c *ClientWithResponses) GetApiServappsContainerIdCheckUpdateWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdCheckUpdateResponse, error) {
|
|
rsp, err := c.GetApiServappsContainerIdCheckUpdate(ctx, containerId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiServappsContainerIdCheckUpdateResponse(rsp)
|
|
}
|
|
|
|
// GetApiServappsContainerIdExportWithResponse Export a container configuration as a service definition
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/export (the `GetApiServappsContainerIdExport` operationId).
|
|
func (c *ClientWithResponses) GetApiServappsContainerIdExportWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdExportResponse, error) {
|
|
rsp, err := c.GetApiServappsContainerIdExport(ctx, containerId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiServappsContainerIdExportResponse(rsp)
|
|
}
|
|
|
|
// GetApiServappsContainerIdLogsWithResponse Retrieve logs for a Docker container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/logs (the `GetApiServappsContainerIdLogs` operationId).
|
|
func (c *ClientWithResponses) GetApiServappsContainerIdLogsWithResponse(ctx context.Context, containerId string, params *GetApiServappsContainerIdLogsParams, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdLogsResponse, error) {
|
|
rsp, err := c.GetApiServappsContainerIdLogs(ctx, containerId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiServappsContainerIdLogsResponse(rsp)
|
|
}
|
|
|
|
// GetApiServappsContainerIdManageActionWithResponse Perform a management action on a Docker container
|
|
//
|
|
// Actions: stop, start, restart, kill, remove, pause, unpause, recreate, update
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/manage/{action} (the `GetApiServappsContainerIdManageAction` operationId).
|
|
func (c *ClientWithResponses) GetApiServappsContainerIdManageActionWithResponse(ctx context.Context, containerId string, action GetApiServappsContainerIdManageActionParamsAction, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdManageActionResponse, error) {
|
|
rsp, err := c.GetApiServappsContainerIdManageAction(ctx, containerId, action, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiServappsContainerIdManageActionResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiServappsContainerIdNetworkNetworkIdWithResponse Detach a Docker network from a container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/servapps/{containerId}/network/{networkId} (the `DeleteApiServappsContainerIdNetworkNetworkId` operationId).
|
|
func (c *ClientWithResponses) DeleteApiServappsContainerIdNetworkNetworkIdWithResponse(ctx context.Context, containerId string, networkId string, reqEditors ...RequestEditorFn) (*DeleteApiServappsContainerIdNetworkNetworkIdResponse, error) {
|
|
rsp, err := c.DeleteApiServappsContainerIdNetworkNetworkId(ctx, containerId, networkId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiServappsContainerIdNetworkNetworkIdResponse(rsp)
|
|
}
|
|
|
|
// PostApiServappsContainerIdNetworkNetworkIdWithResponse Attach a Docker network to a container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/network/{networkId} (the `PostApiServappsContainerIdNetworkNetworkId` operationId).
|
|
func (c *ClientWithResponses) PostApiServappsContainerIdNetworkNetworkIdWithResponse(ctx context.Context, containerId string, networkId string, reqEditors ...RequestEditorFn) (*PostApiServappsContainerIdNetworkNetworkIdResponse, error) {
|
|
rsp, err := c.PostApiServappsContainerIdNetworkNetworkId(ctx, containerId, networkId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiServappsContainerIdNetworkNetworkIdResponse(rsp)
|
|
}
|
|
|
|
// GetApiServappsContainerIdNetworksWithResponse List all networks and the networks a container is connected to
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/networks (the `GetApiServappsContainerIdNetworks` operationId).
|
|
func (c *ClientWithResponses) GetApiServappsContainerIdNetworksWithResponse(ctx context.Context, containerId string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdNetworksResponse, error) {
|
|
rsp, err := c.GetApiServappsContainerIdNetworks(ctx, containerId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiServappsContainerIdNetworksResponse(rsp)
|
|
}
|
|
|
|
// GetApiServappsContainerIdSecureStatusWithResponse Set or unset network isolation on a Docker container
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/servapps/{containerId}/secure/{status} (the `GetApiServappsContainerIdSecureStatus` operationId).
|
|
func (c *ClientWithResponses) GetApiServappsContainerIdSecureStatusWithResponse(ctx context.Context, containerId string, status string, reqEditors ...RequestEditorFn) (*GetApiServappsContainerIdSecureStatusResponse, error) {
|
|
rsp, err := c.GetApiServappsContainerIdSecureStatus(ctx, containerId, status, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiServappsContainerIdSecureStatusResponse(rsp)
|
|
}
|
|
|
|
// PostApiServappsContainerIdUpdateWithBodyWithResponse Update a Docker container's settings
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/update (the `PostApiServappsContainerIdUpdate` operationId).
|
|
func (c *ClientWithResponses) PostApiServappsContainerIdUpdateWithBodyWithResponse(ctx context.Context, containerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiServappsContainerIdUpdateResponse, error) {
|
|
rsp, err := c.PostApiServappsContainerIdUpdateWithBody(ctx, containerId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiServappsContainerIdUpdateResponse(rsp)
|
|
}
|
|
|
|
// PostApiServappsContainerIdUpdateWithResponse Update a Docker container's settings
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/servapps/{containerId}/update (the `PostApiServappsContainerIdUpdate` operationId).
|
|
func (c *ClientWithResponses) PostApiServappsContainerIdUpdateWithResponse(ctx context.Context, containerId string, body PostApiServappsContainerIdUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiServappsContainerIdUpdateResponse, error) {
|
|
rsp, err := c.PostApiServappsContainerIdUpdate(ctx, containerId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiServappsContainerIdUpdateResponse(rsp)
|
|
}
|
|
|
|
// PostApiSetupWithBodyWithResponse One-shot server provisioning
|
|
//
|
|
// Performs the entire initial setup in a single call: database, HTTPS, admin user, optional Constellation connect, and optional admin API token creation. Only available when the server is in NewInstall mode.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/setup (the `PostApiSetup` operationId).
|
|
func (c *ClientWithResponses) PostApiSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSetupResponse, error) {
|
|
rsp, err := c.PostApiSetupWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiSetupResponse(rsp)
|
|
}
|
|
|
|
// PostApiSetupWithResponse One-shot server provisioning
|
|
//
|
|
// Performs the entire initial setup in a single call: database, HTTPS, admin user, optional Constellation connect, and optional admin API token creation. Only available when the server is in NewInstall mode.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/setup (the `PostApiSetup` operationId).
|
|
func (c *ClientWithResponses) PostApiSetupWithResponse(ctx context.Context, body PostApiSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSetupResponse, error) {
|
|
rsp, err := c.PostApiSetup(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiSetupResponse(rsp)
|
|
}
|
|
|
|
// GetApiSmartDefWithResponse Get SMART attribute definitions for ATA and NVMe drives
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/smart-def (the `GetApiSmartDef` operationId).
|
|
func (c *ClientWithResponses) GetApiSmartDefWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiSmartDefResponse, error) {
|
|
rsp, err := c.GetApiSmartDef(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiSmartDefResponse(rsp)
|
|
}
|
|
|
|
// GetApiSnapraidWithBodyWithResponse List or create SnapRAID configurations
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/snapraid (the `GetApiSnapraid` operationId).
|
|
func (c *ClientWithResponses) GetApiSnapraidWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApiSnapraidResponse, error) {
|
|
rsp, err := c.GetApiSnapraidWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiSnapraidResponse(rsp)
|
|
}
|
|
|
|
// GetApiSnapraidWithResponse List or create SnapRAID configurations
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/snapraid (the `GetApiSnapraid` operationId).
|
|
func (c *ClientWithResponses) GetApiSnapraidWithResponse(ctx context.Context, body GetApiSnapraidJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApiSnapraidResponse, error) {
|
|
rsp, err := c.GetApiSnapraid(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiSnapraidResponse(rsp)
|
|
}
|
|
|
|
// PostApiSnapraidWithBodyWithResponse List or create SnapRAID configurations
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/snapraid (the `PostApiSnapraid` operationId).
|
|
func (c *ClientWithResponses) PostApiSnapraidWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSnapraidResponse, error) {
|
|
rsp, err := c.PostApiSnapraidWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiSnapraidResponse(rsp)
|
|
}
|
|
|
|
// PostApiSnapraidWithResponse List or create SnapRAID configurations
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/snapraid (the `PostApiSnapraid` operationId).
|
|
func (c *ClientWithResponses) PostApiSnapraidWithResponse(ctx context.Context, body PostApiSnapraidJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSnapraidResponse, error) {
|
|
rsp, err := c.PostApiSnapraid(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiSnapraidResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiSnapraidNameWithBodyWithResponse Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/snapraid/{name} (the `DeleteApiSnapraidName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiSnapraidNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiSnapraidNameResponse, error) {
|
|
rsp, err := c.DeleteApiSnapraidNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiSnapraidNameResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiSnapraidNameWithResponse Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/snapraid/{name} (the `DeleteApiSnapraidName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiSnapraidNameWithResponse(ctx context.Context, name string, body DeleteApiSnapraidNameJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiSnapraidNameResponse, error) {
|
|
rsp, err := c.DeleteApiSnapraidName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiSnapraidNameResponse(rsp)
|
|
}
|
|
|
|
// PostApiSnapraidNameWithBodyWithResponse Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/snapraid/{name} (the `PostApiSnapraidName` operationId).
|
|
func (c *ClientWithResponses) PostApiSnapraidNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSnapraidNameResponse, error) {
|
|
rsp, err := c.PostApiSnapraidNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiSnapraidNameResponse(rsp)
|
|
}
|
|
|
|
// PostApiSnapraidNameWithResponse Update or delete a SnapRAID configuration by name
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/snapraid/{name} (the `PostApiSnapraidName` operationId).
|
|
func (c *ClientWithResponses) PostApiSnapraidNameWithResponse(ctx context.Context, name string, body PostApiSnapraidNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSnapraidNameResponse, error) {
|
|
rsp, err := c.PostApiSnapraidName(ctx, name, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiSnapraidNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiSnapraidNameActionWithResponse Run a SnapRAID action (sync, scrub, fix, enable, disable)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/snapraid/{name}/{action} (the `GetApiSnapraidNameAction` operationId).
|
|
func (c *ClientWithResponses) GetApiSnapraidNameActionWithResponse(ctx context.Context, name string, action GetApiSnapraidNameActionParamsAction, reqEditors ...RequestEditorFn) (*GetApiSnapraidNameActionResponse, error) {
|
|
rsp, err := c.GetApiSnapraidNameAction(ctx, name, action, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiSnapraidNameActionResponse(rsp)
|
|
}
|
|
|
|
// GetApiStatusWithResponse Get server status
|
|
//
|
|
// # Returns the current server status including configuration, resource info, and system state
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/status (the `GetApiStatus` operationId).
|
|
func (c *ClientWithResponses) GetApiStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiStatusResponse, error) {
|
|
rsp, err := c.GetApiStatus(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiStatusResponse(rsp)
|
|
}
|
|
|
|
// PostApiSudoWithBodyWithResponse Elevate to sudo mode
|
|
//
|
|
// Re-authenticates the user with their password to grant elevated (sudo) permissions.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/sudo (the `PostApiSudo` operationId).
|
|
func (c *ClientWithResponses) PostApiSudoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSudoResponse, error) {
|
|
rsp, err := c.PostApiSudoWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiSudoResponse(rsp)
|
|
}
|
|
|
|
// PostApiSudoWithResponse Elevate to sudo mode
|
|
//
|
|
// Re-authenticates the user with their password to grant elevated (sudo) permissions.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/sudo (the `PostApiSudo` operationId).
|
|
func (c *ClientWithResponses) PostApiSudoWithResponse(ctx context.Context, body PostApiSudoJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSudoResponse, error) {
|
|
rsp, err := c.PostApiSudo(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiSudoResponse(rsp)
|
|
}
|
|
|
|
// PostApiUnmountWithBodyWithResponse Unmount a filesystem
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/unmount (the `PostApiUnmount` operationId).
|
|
func (c *ClientWithResponses) PostApiUnmountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiUnmountResponse, error) {
|
|
rsp, err := c.PostApiUnmountWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiUnmountResponse(rsp)
|
|
}
|
|
|
|
// PostApiUnmountWithResponse Unmount a filesystem
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/unmount (the `PostApiUnmount` operationId).
|
|
func (c *ClientWithResponses) PostApiUnmountWithResponse(ctx context.Context, body PostApiUnmountJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiUnmountResponse, error) {
|
|
rsp, err := c.PostApiUnmount(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiUnmountResponse(rsp)
|
|
}
|
|
|
|
// PostApiUploadNameWithBodyWithResponse Upload an image
|
|
//
|
|
// Uploads an image file to the server (supports jpg, jpeg, png, gif, bmp, svg, webp, tiff, avif)
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/upload/{name} (the `PostApiUploadName` operationId).
|
|
func (c *ClientWithResponses) PostApiUploadNameWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiUploadNameResponse, error) {
|
|
rsp, err := c.PostApiUploadNameWithBody(ctx, name, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiUploadNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiUsersWithResponse List all users
|
|
//
|
|
// Returns a list of all users with optional limit.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/users (the `GetApiUsers` operationId).
|
|
func (c *ClientWithResponses) GetApiUsersWithResponse(ctx context.Context, params *GetApiUsersParams, reqEditors ...RequestEditorFn) (*GetApiUsersResponse, error) {
|
|
rsp, err := c.GetApiUsers(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiUsersResponse(rsp)
|
|
}
|
|
|
|
// PostApiUsersWithBodyWithResponse Create a new user
|
|
//
|
|
// Creates a new user account with a registration key for invite-based onboarding.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/users (the `PostApiUsers` operationId).
|
|
func (c *ClientWithResponses) PostApiUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiUsersResponse, error) {
|
|
rsp, err := c.PostApiUsersWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiUsersResponse(rsp)
|
|
}
|
|
|
|
// PostApiUsersWithResponse Create a new user
|
|
//
|
|
// Creates a new user account with a registration key for invite-based onboarding.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/users (the `PostApiUsers` operationId).
|
|
func (c *ClientWithResponses) PostApiUsersWithResponse(ctx context.Context, body PostApiUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiUsersResponse, error) {
|
|
rsp, err := c.PostApiUsers(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiUsersResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiUsersNicknameWithResponse Delete a user
|
|
//
|
|
// Deletes a user account by nickname.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/users/{nickname} (the `DeleteApiUsersNickname` operationId).
|
|
func (c *ClientWithResponses) DeleteApiUsersNicknameWithResponse(ctx context.Context, nickname string, reqEditors ...RequestEditorFn) (*DeleteApiUsersNicknameResponse, error) {
|
|
rsp, err := c.DeleteApiUsersNickname(ctx, nickname, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiUsersNicknameResponse(rsp)
|
|
}
|
|
|
|
// GetApiUsersNicknameWithResponse Get a user by nickname
|
|
//
|
|
// Returns user details for the specified nickname.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/users/{nickname} (the `GetApiUsersNickname` operationId).
|
|
func (c *ClientWithResponses) GetApiUsersNicknameWithResponse(ctx context.Context, nickname string, reqEditors ...RequestEditorFn) (*GetApiUsersNicknameResponse, error) {
|
|
rsp, err := c.GetApiUsersNickname(ctx, nickname, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiUsersNicknameResponse(rsp)
|
|
}
|
|
|
|
// PatchApiUsersNicknameWithBodyWithResponse Edit a user
|
|
//
|
|
// Updates user details such as email and role.
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/users/{nickname} (the `PatchApiUsersNickname` operationId).
|
|
func (c *ClientWithResponses) PatchApiUsersNicknameWithBodyWithResponse(ctx context.Context, nickname string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiUsersNicknameResponse, error) {
|
|
rsp, err := c.PatchApiUsersNicknameWithBody(ctx, nickname, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchApiUsersNicknameResponse(rsp)
|
|
}
|
|
|
|
// PatchApiUsersNicknameWithResponse Edit a user
|
|
//
|
|
// Updates user details such as email and role.
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PATCH /api/users/{nickname} (the `PatchApiUsersNickname` operationId).
|
|
func (c *ClientWithResponses) PatchApiUsersNicknameWithResponse(ctx context.Context, nickname string, body PatchApiUsersNicknameJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiUsersNicknameResponse, error) {
|
|
rsp, err := c.PatchApiUsersNickname(ctx, nickname, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchApiUsersNicknameResponse(rsp)
|
|
}
|
|
|
|
// DeleteApiVolumeVolumeNameWithResponse Delete a Docker volume by name
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /api/volume/{volumeName} (the `DeleteApiVolumeVolumeName` operationId).
|
|
func (c *ClientWithResponses) DeleteApiVolumeVolumeNameWithResponse(ctx context.Context, volumeName string, reqEditors ...RequestEditorFn) (*DeleteApiVolumeVolumeNameResponse, error) {
|
|
rsp, err := c.DeleteApiVolumeVolumeName(ctx, volumeName, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteApiVolumeVolumeNameResponse(rsp)
|
|
}
|
|
|
|
// GetApiVolumesWithResponse List all Docker volumes
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /api/volumes (the `GetApiVolumes` operationId).
|
|
func (c *ClientWithResponses) GetApiVolumesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiVolumesResponse, error) {
|
|
rsp, err := c.GetApiVolumes(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApiVolumesResponse(rsp)
|
|
}
|
|
|
|
// PostApiVolumesWithBodyWithResponse Create a new Docker volume
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/volumes (the `PostApiVolumes` operationId).
|
|
func (c *ClientWithResponses) PostApiVolumesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiVolumesResponse, error) {
|
|
rsp, err := c.PostApiVolumesWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiVolumesResponse(rsp)
|
|
}
|
|
|
|
// PostApiVolumesWithResponse Create a new Docker volume
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /api/volumes (the `PostApiVolumes` operationId).
|
|
func (c *ClientWithResponses) PostApiVolumesWithResponse(ctx context.Context, body PostApiVolumesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiVolumesResponse, error) {
|
|
rsp, err := c.PostApiVolumes(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostApiVolumesResponse(rsp)
|
|
}
|
|
|
|
// GetLogoWithResponse Get Cosmos logo
|
|
//
|
|
// Returns the Cosmos server logo as a PNG image.
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /logo (the `GetLogo` operationId).
|
|
func (c *ClientWithResponses) GetLogoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogoResponse, error) {
|
|
rsp, err := c.GetLogo(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLogoResponse(rsp)
|
|
}
|
|
|
|
// PostRcloneConfigCreateWithBodyWithResponse Create a new RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/config/create (the `PostRcloneConfigCreate` operationId).
|
|
func (c *ClientWithResponses) PostRcloneConfigCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRcloneConfigCreateResponse, error) {
|
|
rsp, err := c.PostRcloneConfigCreateWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostRcloneConfigCreateResponse(rsp)
|
|
}
|
|
|
|
// PostRcloneConfigCreateWithResponse Create a new RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/config/create (the `PostRcloneConfigCreate` operationId).
|
|
func (c *ClientWithResponses) PostRcloneConfigCreateWithResponse(ctx context.Context, body PostRcloneConfigCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRcloneConfigCreateResponse, error) {
|
|
rsp, err := c.PostRcloneConfigCreate(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostRcloneConfigCreateResponse(rsp)
|
|
}
|
|
|
|
// DeleteRcloneConfigDeleteWithBodyWithResponse Delete an RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /rclone/config/delete (the `DeleteRcloneConfigDelete` operationId).
|
|
func (c *ClientWithResponses) DeleteRcloneConfigDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteRcloneConfigDeleteResponse, error) {
|
|
rsp, err := c.DeleteRcloneConfigDeleteWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteRcloneConfigDeleteResponse(rsp)
|
|
}
|
|
|
|
// DeleteRcloneConfigDeleteWithResponse Delete an RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with DELETE /rclone/config/delete (the `DeleteRcloneConfigDelete` operationId).
|
|
func (c *ClientWithResponses) DeleteRcloneConfigDeleteWithResponse(ctx context.Context, body DeleteRcloneConfigDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteRcloneConfigDeleteResponse, error) {
|
|
rsp, err := c.DeleteRcloneConfigDelete(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteRcloneConfigDeleteResponse(rsp)
|
|
}
|
|
|
|
// GetRcloneConfigDumpWithResponse Dump the full RClone configuration
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /rclone/config/dump (the `GetRcloneConfigDump` operationId).
|
|
func (c *ClientWithResponses) GetRcloneConfigDumpWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRcloneConfigDumpResponse, error) {
|
|
rsp, err := c.GetRcloneConfigDump(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetRcloneConfigDumpResponse(rsp)
|
|
}
|
|
|
|
// GetRcloneConfigListremotesWithResponse List RClone remotes (name and type only, no credentials)
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /rclone/config/listremotes (the `GetRcloneConfigListremotes` operationId).
|
|
func (c *ClientWithResponses) GetRcloneConfigListremotesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRcloneConfigListremotesResponse, error) {
|
|
rsp, err := c.GetRcloneConfigListremotes(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetRcloneConfigListremotesResponse(rsp)
|
|
}
|
|
|
|
// PostRcloneConfigSaveWithResponse Save the RClone configuration
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/config/save (the `PostRcloneConfigSave` operationId).
|
|
func (c *ClientWithResponses) PostRcloneConfigSaveWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostRcloneConfigSaveResponse, error) {
|
|
rsp, err := c.PostRcloneConfigSave(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostRcloneConfigSaveResponse(rsp)
|
|
}
|
|
|
|
// PutRcloneConfigUpdateWithBodyWithResponse Update an existing RClone remote
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /rclone/config/update (the `PutRcloneConfigUpdate` operationId).
|
|
func (c *ClientWithResponses) PutRcloneConfigUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutRcloneConfigUpdateResponse, error) {
|
|
rsp, err := c.PutRcloneConfigUpdateWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutRcloneConfigUpdateResponse(rsp)
|
|
}
|
|
|
|
// PutRcloneConfigUpdateWithResponse Update an existing RClone remote
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with PUT /rclone/config/update (the `PutRcloneConfigUpdate` operationId).
|
|
func (c *ClientWithResponses) PutRcloneConfigUpdateWithResponse(ctx context.Context, body PutRcloneConfigUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*PutRcloneConfigUpdateResponse, error) {
|
|
rsp, err := c.PutRcloneConfigUpdate(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePutRcloneConfigUpdateResponse(rsp)
|
|
}
|
|
|
|
// GetRcloneCoreStatsWithResponse Get global RClone transfer stats
|
|
//
|
|
// Returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with GET /rclone/core/stats (the `GetRcloneCoreStats` operationId).
|
|
func (c *ClientWithResponses) GetRcloneCoreStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRcloneCoreStatsResponse, error) {
|
|
rsp, err := c.GetRcloneCoreStats(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetRcloneCoreStatsResponse(rsp)
|
|
}
|
|
|
|
// PostRcloneOperationsAboutWithBodyWithResponse Get storage usage info for a remote (total, used, free)
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/operations/about (the `PostRcloneOperationsAbout` operationId).
|
|
func (c *ClientWithResponses) PostRcloneOperationsAboutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRcloneOperationsAboutResponse, error) {
|
|
rsp, err := c.PostRcloneOperationsAboutWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostRcloneOperationsAboutResponse(rsp)
|
|
}
|
|
|
|
// PostRcloneOperationsAboutWithResponse Get storage usage info for a remote (total, used, free)
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/operations/about (the `PostRcloneOperationsAbout` operationId).
|
|
func (c *ClientWithResponses) PostRcloneOperationsAboutWithResponse(ctx context.Context, body PostRcloneOperationsAboutJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRcloneOperationsAboutResponse, error) {
|
|
rsp, err := c.PostRcloneOperationsAbout(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostRcloneOperationsAboutResponse(rsp)
|
|
}
|
|
|
|
// PostRcloneVfsStatsWithBodyWithResponse Get VFS stats for a mounted remote
|
|
//
|
|
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/vfs/stats (the `PostRcloneVfsStats` operationId).
|
|
func (c *ClientWithResponses) PostRcloneVfsStatsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRcloneVfsStatsResponse, error) {
|
|
rsp, err := c.PostRcloneVfsStatsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostRcloneVfsStatsResponse(rsp)
|
|
}
|
|
|
|
// PostRcloneVfsStatsWithResponse Get VFS stats for a mounted remote
|
|
//
|
|
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
|
|
//
|
|
// Corresponds with POST /rclone/vfs/stats (the `PostRcloneVfsStats` operationId).
|
|
func (c *ClientWithResponses) PostRcloneVfsStatsWithResponse(ctx context.Context, body PostRcloneVfsStatsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRcloneVfsStatsResponse, error) {
|
|
rsp, err := c.PostRcloneVfsStats(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePostRcloneVfsStatsResponse(rsp)
|
|
}
|
|
|
|
// ParseGetLogsResponse parses an HTTP response from a GetLogsWithResponse call
|
|
func ParseGetLogsResponse(rsp *http.Response) (*GetLogsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLogsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiMemoryResponse parses an HTTP response from a GetApiMemoryWithResponse call
|
|
func ParseGetApiMemoryResponse(rsp *http.Response) (*GetApiMemoryResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiMemoryResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiAlertsResponse parses an HTTP response from a GetApiAlertsWithResponse call
|
|
func ParseGetApiAlertsResponse(rsp *http.Response) (*GetApiAlertsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiAlertsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiAlertsResponse parses an HTTP response from a PostApiAlertsWithResponse call
|
|
func ParsePostApiAlertsResponse(rsp *http.Response) (*PostApiAlertsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiAlertsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiAlertsNameResponse parses an HTTP response from a DeleteApiAlertsNameWithResponse call
|
|
func ParseDeleteApiAlertsNameResponse(rsp *http.Response) (*DeleteApiAlertsNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiAlertsNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiAlertsNameResponse parses an HTTP response from a GetApiAlertsNameWithResponse call
|
|
func ParseGetApiAlertsNameResponse(rsp *http.Response) (*GetApiAlertsNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiAlertsNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutApiAlertsNameResponse parses an HTTP response from a PutApiAlertsNameWithResponse call
|
|
func ParsePutApiAlertsNameResponse(rsp *http.Response) (*PutApiAlertsNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutApiAlertsNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiApiTokensResponse parses an HTTP response from a DeleteApiApiTokensWithResponse call
|
|
func ParseDeleteApiApiTokensResponse(rsp *http.Response) (*DeleteApiApiTokensResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiApiTokensResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiApiTokensResponse parses an HTTP response from a GetApiApiTokensWithResponse call
|
|
func ParseGetApiApiTokensResponse(rsp *http.Response) (*GetApiApiTokensResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiApiTokensResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiApiTokensResponse parses an HTTP response from a PostApiApiTokensWithResponse call
|
|
func ParsePostApiApiTokensResponse(rsp *http.Response) (*PostApiApiTokensResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiApiTokensResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutApiApiTokensNameResponse parses an HTTP response from a PutApiApiTokensNameWithResponse call
|
|
func ParsePutApiApiTokensNameResponse(rsp *http.Response) (*PutApiApiTokensNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutApiApiTokensNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiBackupsResponse parses an HTTP response from a PostApiBackupsWithResponse call
|
|
func ParsePostApiBackupsResponse(rsp *http.Response) (*PostApiBackupsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiBackupsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiBackupsConfigResponse parses an HTTP response from a GetApiBackupsConfigWithResponse call
|
|
func ParseGetApiBackupsConfigResponse(rsp *http.Response) (*GetApiBackupsConfigResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiBackupsConfigResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiBackupsConfigNameResponse parses an HTTP response from a GetApiBackupsConfigNameWithResponse call
|
|
func ParseGetApiBackupsConfigNameResponse(rsp *http.Response) (*GetApiBackupsConfigNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiBackupsConfigNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiBackupsRepositoryResponse parses an HTTP response from a GetApiBackupsRepositoryWithResponse call
|
|
func ParseGetApiBackupsRepositoryResponse(rsp *http.Response) (*GetApiBackupsRepositoryResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiBackupsRepositoryResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiBackupsRepositoryNameSnapshotsResponse parses an HTTP response from a GetApiBackupsRepositoryNameSnapshotsWithResponse call
|
|
func ParseGetApiBackupsRepositoryNameSnapshotsResponse(rsp *http.Response) (*GetApiBackupsRepositoryNameSnapshotsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiBackupsRepositoryNameSnapshotsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiBackupsRepositoryNameStatsResponse parses an HTTP response from a GetApiBackupsRepositoryNameStatsWithResponse call
|
|
func ParseGetApiBackupsRepositoryNameStatsResponse(rsp *http.Response) (*GetApiBackupsRepositoryNameStatsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiBackupsRepositoryNameStatsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiBackupsEditResponse parses an HTTP response from a PostApiBackupsEditWithResponse call
|
|
func ParsePostApiBackupsEditResponse(rsp *http.Response) (*PostApiBackupsEditResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiBackupsEditResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiBackupsNameResponse parses an HTTP response from a DeleteApiBackupsNameWithResponse call
|
|
func ParseDeleteApiBackupsNameResponse(rsp *http.Response) (*DeleteApiBackupsNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiBackupsNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiBackupsNameRestoreResponse parses an HTTP response from a PostApiBackupsNameRestoreWithResponse call
|
|
func ParsePostApiBackupsNameRestoreResponse(rsp *http.Response) (*PostApiBackupsNameRestoreResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiBackupsNameRestoreResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiBackupsNameSnapshotsResponse parses an HTTP response from a GetApiBackupsNameSnapshotsWithResponse call
|
|
func ParseGetApiBackupsNameSnapshotsResponse(rsp *http.Response) (*GetApiBackupsNameSnapshotsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiBackupsNameSnapshotsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiBackupsNameUnlockResponse parses an HTTP response from a PostApiBackupsNameUnlockWithResponse call
|
|
func ParsePostApiBackupsNameUnlockResponse(rsp *http.Response) (*PostApiBackupsNameUnlockResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiBackupsNameUnlockResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiBackupsNameSnapshotFoldersResponse parses an HTTP response from a GetApiBackupsNameSnapshotFoldersWithResponse call
|
|
func ParseGetApiBackupsNameSnapshotFoldersResponse(rsp *http.Response) (*GetApiBackupsNameSnapshotFoldersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiBackupsNameSnapshotFoldersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiBackupsNameSnapshotForgetResponse parses an HTTP response from a DeleteApiBackupsNameSnapshotForgetWithResponse call
|
|
func ParseDeleteApiBackupsNameSnapshotForgetResponse(rsp *http.Response) (*DeleteApiBackupsNameSnapshotForgetResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiBackupsNameSnapshotForgetResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiBackupsNameSnapshotSubfolderRestoreSizeResponse parses an HTTP response from a GetApiBackupsNameSnapshotSubfolderRestoreSizeWithResponse call
|
|
func ParseGetApiBackupsNameSnapshotSubfolderRestoreSizeResponse(rsp *http.Response) (*GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiBackupsNameSnapshotSubfolderRestoreSizeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiCanSendEmailResponse parses an HTTP response from a GetApiCanSendEmailWithResponse call
|
|
func ParseGetApiCanSendEmailResponse(rsp *http.Response) (*GetApiCanSendEmailResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiCanSendEmailResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConfigResponse parses an HTTP response from a GetApiConfigWithResponse call
|
|
func ParseGetApiConfigResponse(rsp *http.Response) (*GetApiConfigResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConfigResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *GithubComAzukaarCosmosServerSrcUtilsConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePatchApiConfigResponse parses an HTTP response from a PatchApiConfigWithResponse call
|
|
func ParsePatchApiConfigResponse(rsp *http.Response) (*PatchApiConfigResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PatchApiConfigResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutApiConfigResponse parses an HTTP response from a PutApiConfigWithResponse call
|
|
func ParsePutApiConfigResponse(rsp *http.Response) (*PutApiConfigResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutApiConfigResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePatchApiConfigDnsResponse parses an HTTP response from a PatchApiConfigDnsWithResponse call
|
|
func ParsePatchApiConfigDnsResponse(rsp *http.Response) (*PatchApiConfigDnsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PatchApiConfigDnsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationBlockResponse parses an HTTP response from a PostApiConstellationBlockWithResponse call
|
|
func ParsePostApiConstellationBlockResponse(rsp *http.Response) (*PostApiConstellationBlockResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationBlockResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationConfigResponse parses an HTTP response from a GetApiConstellationConfigWithResponse call
|
|
func ParseGetApiConstellationConfigResponse(rsp *http.Response) (*GetApiConstellationConfigResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationConfigResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationConnectResponse parses an HTTP response from a PostApiConstellationConnectWithResponse call
|
|
func ParsePostApiConstellationConnectResponse(rsp *http.Response) (*PostApiConstellationConnectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationConnectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationCreateResponse parses an HTTP response from a PostApiConstellationCreateWithResponse call
|
|
func ParsePostApiConstellationCreateResponse(rsp *http.Response) (*PostApiConstellationCreateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationCreateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationDeploymentsResponse parses an HTTP response from a GetApiConstellationDeploymentsWithResponse call
|
|
func ParseGetApiConstellationDeploymentsResponse(rsp *http.Response) (*GetApiConstellationDeploymentsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationDeploymentsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationDeploymentsResponse parses an HTTP response from a PostApiConstellationDeploymentsWithResponse call
|
|
func ParsePostApiConstellationDeploymentsResponse(rsp *http.Response) (*PostApiConstellationDeploymentsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationDeploymentsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationDeploymentsHealthResponse parses an HTTP response from a GetApiConstellationDeploymentsHealthWithResponse call
|
|
func ParseGetApiConstellationDeploymentsHealthResponse(rsp *http.Response) (*GetApiConstellationDeploymentsHealthResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationDeploymentsHealthResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON503 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiConstellationDeploymentsNameResponse parses an HTTP response from a DeleteApiConstellationDeploymentsNameWithResponse call
|
|
func ParseDeleteApiConstellationDeploymentsNameResponse(rsp *http.Response) (*DeleteApiConstellationDeploymentsNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiConstellationDeploymentsNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationDeploymentsNameResponse parses an HTTP response from a GetApiConstellationDeploymentsNameWithResponse call
|
|
func ParseGetApiConstellationDeploymentsNameResponse(rsp *http.Response) (*GetApiConstellationDeploymentsNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationDeploymentsNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutApiConstellationDeploymentsNameResponse parses an HTTP response from a PutApiConstellationDeploymentsNameWithResponse call
|
|
func ParsePutApiConstellationDeploymentsNameResponse(rsp *http.Response) (*PutApiConstellationDeploymentsNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutApiConstellationDeploymentsNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationDeploymentsNameUnbrokeResponse parses an HTTP response from a PostApiConstellationDeploymentsNameUnbrokeWithResponse call
|
|
func ParsePostApiConstellationDeploymentsNameUnbrokeResponse(rsp *http.Response) (*PostApiConstellationDeploymentsNameUnbrokeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationDeploymentsNameUnbrokeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationDevicesResponse parses an HTTP response from a GetApiConstellationDevicesWithResponse call
|
|
func ParseGetApiConstellationDevicesResponse(rsp *http.Response) (*GetApiConstellationDevicesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationDevicesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationDevicesResponse parses an HTTP response from a PostApiConstellationDevicesWithResponse call
|
|
func ParsePostApiConstellationDevicesResponse(rsp *http.Response) (*PostApiConstellationDevicesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationDevicesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationDevicesIdPingResponse parses an HTTP response from a GetApiConstellationDevicesIdPingWithResponse call
|
|
func ParseGetApiConstellationDevicesIdPingResponse(rsp *http.Response) (*GetApiConstellationDevicesIdPingResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationDevicesIdPingResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationDnsResponse parses an HTTP response from a GetApiConstellationDnsWithResponse call
|
|
func ParseGetApiConstellationDnsResponse(rsp *http.Response) (*GetApiConstellationDnsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationDnsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationDnsResponse parses an HTTP response from a PostApiConstellationDnsWithResponse call
|
|
func ParsePostApiConstellationDnsResponse(rsp *http.Response) (*PostApiConstellationDnsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationDnsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiConstellationDnsKeyResponse parses an HTTP response from a DeleteApiConstellationDnsKeyWithResponse call
|
|
func ParseDeleteApiConstellationDnsKeyResponse(rsp *http.Response) (*DeleteApiConstellationDnsKeyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiConstellationDnsKeyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationDnsKeyResponse parses an HTTP response from a GetApiConstellationDnsKeyWithResponse call
|
|
func ParseGetApiConstellationDnsKeyResponse(rsp *http.Response) (*GetApiConstellationDnsKeyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationDnsKeyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutApiConstellationDnsKeyResponse parses an HTTP response from a PutApiConstellationDnsKeyWithResponse call
|
|
func ParsePutApiConstellationDnsKeyResponse(rsp *http.Response) (*PutApiConstellationDnsKeyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutApiConstellationDnsKeyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationEditDeviceResponse parses an HTTP response from a PostApiConstellationEditDeviceWithResponse call
|
|
func ParsePostApiConstellationEditDeviceResponse(rsp *http.Response) (*PostApiConstellationEditDeviceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationEditDeviceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationForceReformResponse parses an HTTP response from a PostApiConstellationForceReformWithResponse call
|
|
func ParsePostApiConstellationForceReformResponse(rsp *http.Response) (*PostApiConstellationForceReformResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationForceReformResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationGetNextIpResponse parses an HTTP response from a GetApiConstellationGetNextIpWithResponse call
|
|
func ParseGetApiConstellationGetNextIpResponse(rsp *http.Response) (*GetApiConstellationGetNextIpResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationGetNextIpResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationLogsResponse parses an HTTP response from a GetApiConstellationLogsWithResponse call
|
|
func ParseGetApiConstellationLogsResponse(rsp *http.Response) (*GetApiConstellationLogsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationLogsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationNatsStatusResponse parses an HTTP response from a GetApiConstellationNatsStatusWithResponse call
|
|
func ParseGetApiConstellationNatsStatusResponse(rsp *http.Response) (*GetApiConstellationNatsStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationNatsStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiConstellationNodesNameUnbrokeResponse parses an HTTP response from a PostApiConstellationNodesNameUnbrokeWithResponse call
|
|
func ParsePostApiConstellationNodesNameUnbrokeResponse(rsp *http.Response) (*PostApiConstellationNodesNameUnbrokeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiConstellationNodesNameUnbrokeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationPingResponse parses an HTTP response from a GetApiConstellationPingWithResponse call
|
|
func ParseGetApiConstellationPingResponse(rsp *http.Response) (*GetApiConstellationPingResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationPingResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationPublicDevicesResponse parses an HTTP response from a GetApiConstellationPublicDevicesWithResponse call
|
|
func ParseGetApiConstellationPublicDevicesResponse(rsp *http.Response) (*GetApiConstellationPublicDevicesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationPublicDevicesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationResetResponse parses an HTTP response from a GetApiConstellationResetWithResponse call
|
|
func ParseGetApiConstellationResetResponse(rsp *http.Response) (*GetApiConstellationResetResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationResetResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationRestartResponse parses an HTTP response from a GetApiConstellationRestartWithResponse call
|
|
func ParseGetApiConstellationRestartResponse(rsp *http.Response) (*GetApiConstellationRestartResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationRestartResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiConstellationTunnelsResponse parses an HTTP response from a GetApiConstellationTunnelsWithResponse call
|
|
func ParseGetApiConstellationTunnelsResponse(rsp *http.Response) (*GetApiConstellationTunnelsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiConstellationTunnelsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiCronResponse parses an HTTP response from a GetApiCronWithResponse call
|
|
func ParseGetApiCronResponse(rsp *http.Response) (*GetApiCronResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiCronResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiCronResponse parses an HTTP response from a PostApiCronWithResponse call
|
|
func ParsePostApiCronResponse(rsp *http.Response) (*PostApiCronResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiCronResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiCronNameResponse parses an HTTP response from a DeleteApiCronNameWithResponse call
|
|
func ParseDeleteApiCronNameResponse(rsp *http.Response) (*DeleteApiCronNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiCronNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiCronNameResponse parses an HTTP response from a GetApiCronNameWithResponse call
|
|
func ParseGetApiCronNameResponse(rsp *http.Response) (*GetApiCronNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiCronNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutApiCronNameResponse parses an HTTP response from a PutApiCronNameWithResponse call
|
|
func ParsePutApiCronNameResponse(rsp *http.Response) (*PutApiCronNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutApiCronNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiDashboardResponse parses an HTTP response from a GetApiDashboardWithResponse call
|
|
func ParseGetApiDashboardResponse(rsp *http.Response) (*GetApiDashboardResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiDashboardResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *[]ConfigapiDashboardRoute `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiDisksResponse parses an HTTP response from a GetApiDisksWithResponse call
|
|
func ParseGetApiDisksResponse(rsp *http.Response) (*GetApiDisksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiDisksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiDisksFormatResponse parses an HTTP response from a PostApiDisksFormatWithResponse call
|
|
func ParsePostApiDisksFormatResponse(rsp *http.Response) (*PostApiDisksFormatResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiDisksFormatResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiDnsResponse parses an HTTP response from a GetApiDnsWithResponse call
|
|
func ParseGetApiDnsResponse(rsp *http.Response) (*GetApiDnsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiDnsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *string `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiDnsCheckResponse parses an HTTP response from a GetApiDnsCheckWithResponse call
|
|
func ParseGetApiDnsCheckResponse(rsp *http.Response) (*GetApiDnsCheckResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiDnsCheckResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiDockerServiceResponse parses an HTTP response from a PostApiDockerServiceWithResponse call
|
|
func ParsePostApiDockerServiceResponse(rsp *http.Response) (*PostApiDockerServiceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiDockerServiceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiEventsResponse parses an HTTP response from a GetApiEventsWithResponse call
|
|
func ParseGetApiEventsResponse(rsp *http.Response) (*GetApiEventsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiEventsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiFaviconResponse parses an HTTP response from a GetApiFaviconWithResponse call
|
|
func ParseGetApiFaviconResponse(rsp *http.Response) (*GetApiFaviconResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiFaviconResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiForceServerUpdateResponse parses an HTTP response from a PostApiForceServerUpdateWithResponse call
|
|
func ParsePostApiForceServerUpdateResponse(rsp *http.Response) (*PostApiForceServerUpdateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiForceServerUpdateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiGetBackupResponse parses an HTTP response from a GetApiGetBackupWithResponse call
|
|
func ParseGetApiGetBackupResponse(rsp *http.Response) (*GetApiGetBackupResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiGetBackupResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest openapi_types.File
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiGroupsResponse parses an HTTP response from a GetApiGroupsWithResponse call
|
|
func ParseGetApiGroupsResponse(rsp *http.Response) (*GetApiGroupsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiGroupsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiGroupsResponse parses an HTTP response from a PostApiGroupsWithResponse call
|
|
func ParsePostApiGroupsResponse(rsp *http.Response) (*PostApiGroupsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiGroupsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiGroupsIdResponse parses an HTTP response from a DeleteApiGroupsIdWithResponse call
|
|
func ParseDeleteApiGroupsIdResponse(rsp *http.Response) (*DeleteApiGroupsIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiGroupsIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutApiGroupsIdResponse parses an HTTP response from a PutApiGroupsIdWithResponse call
|
|
func ParsePutApiGroupsIdResponse(rsp *http.Response) (*PutApiGroupsIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutApiGroupsIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiImageNameResponse parses an HTTP response from a GetApiImageNameWithResponse call
|
|
func ParseGetApiImageNameResponse(rsp *http.Response) (*GetApiImageNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiImageNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiImagesResponse parses an HTTP response from a GetApiImagesWithResponse call
|
|
func ParseGetApiImagesResponse(rsp *http.Response) (*GetApiImagesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiImagesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TypesImageInspect
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiImagesPullResponse parses an HTTP response from a GetApiImagesPullWithResponse call
|
|
func ParseGetApiImagesPullResponse(rsp *http.Response) (*GetApiImagesPullResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiImagesPullResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiImagesPullIfMissingResponse parses an HTTP response from a GetApiImagesPullIfMissingWithResponse call
|
|
func ParseGetApiImagesPullIfMissingResponse(rsp *http.Response) (*GetApiImagesPullIfMissingResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiImagesPullIfMissingResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiInviteResponse parses an HTTP response from a PostApiInviteWithResponse call
|
|
func ParsePostApiInviteResponse(rsp *http.Response) (*PostApiInviteResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiInviteResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiJobsResponse parses an HTTP response from a GetApiJobsWithResponse call
|
|
func ParseGetApiJobsResponse(rsp *http.Response) (*GetApiJobsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiJobsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiJobsDeleteResponse parses an HTTP response from a PostApiJobsDeleteWithResponse call
|
|
func ParsePostApiJobsDeleteResponse(rsp *http.Response) (*PostApiJobsDeleteResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiJobsDeleteResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiJobsGetResponse parses an HTTP response from a PostApiJobsGetWithResponse call
|
|
func ParsePostApiJobsGetResponse(rsp *http.Response) (*PostApiJobsGetResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiJobsGetResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiJobsRunResponse parses an HTTP response from a PostApiJobsRunWithResponse call
|
|
func ParsePostApiJobsRunResponse(rsp *http.Response) (*PostApiJobsRunResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiJobsRunResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiJobsRunningResponse parses an HTTP response from a GetApiJobsRunningWithResponse call
|
|
func ParseGetApiJobsRunningResponse(rsp *http.Response) (*GetApiJobsRunningResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiJobsRunningResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiJobsStopResponse parses an HTTP response from a PostApiJobsStopWithResponse call
|
|
func ParsePostApiJobsStopResponse(rsp *http.Response) (*PostApiJobsStopResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiJobsStopResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiListDirResponse parses an HTTP response from a GetApiListDirWithResponse call
|
|
func ParseGetApiListDirResponse(rsp *http.Response) (*GetApiListDirResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiListDirResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiListMetricsResponse parses an HTTP response from a GetApiListMetricsWithResponse call
|
|
func ParseGetApiListMetricsResponse(rsp *http.Response) (*GetApiListMetricsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiListMetricsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiLoginResponse parses an HTTP response from a PostApiLoginWithResponse call
|
|
func ParsePostApiLoginResponse(rsp *http.Response) (*PostApiLoginResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiLoginResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiLogoutResponse parses an HTTP response from a GetApiLogoutWithResponse call
|
|
func ParseGetApiLogoutResponse(rsp *http.Response) (*GetApiLogoutResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiLogoutResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiMarketsResponse parses an HTTP response from a GetApiMarketsWithResponse call
|
|
func ParseGetApiMarketsResponse(rsp *http.Response) (*GetApiMarketsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiMarketsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiMeResponse parses an HTTP response from a GetApiMeWithResponse call
|
|
func ParseGetApiMeResponse(rsp *http.Response) (*GetApiMeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiMeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *UtilsUser `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiMergeResponse parses an HTTP response from a PostApiMergeWithResponse call
|
|
func ParsePostApiMergeResponse(rsp *http.Response) (*PostApiMergeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiMergeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiMetricsResponse parses an HTTP response from a GetApiMetricsWithResponse call
|
|
func ParseGetApiMetricsResponse(rsp *http.Response) (*GetApiMetricsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiMetricsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiMfaResponse parses an HTTP response from a DeleteApiMfaWithResponse call
|
|
func ParseDeleteApiMfaResponse(rsp *http.Response) (*DeleteApiMfaResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiMfaResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiMfaResponse parses an HTTP response from a GetApiMfaWithResponse call
|
|
func ParseGetApiMfaResponse(rsp *http.Response) (*GetApiMfaResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiMfaResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiMfaResponse parses an HTTP response from a PostApiMfaWithResponse call
|
|
func ParsePostApiMfaResponse(rsp *http.Response) (*PostApiMfaResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiMfaResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiMigrateHostResponse parses an HTTP response from a PostApiMigrateHostWithResponse call
|
|
func ParsePostApiMigrateHostResponse(rsp *http.Response) (*PostApiMigrateHostResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiMigrateHostResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiMountResponse parses an HTTP response from a PostApiMountWithResponse call
|
|
func ParsePostApiMountResponse(rsp *http.Response) (*PostApiMountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiMountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiMountsResponse parses an HTTP response from a GetApiMountsWithResponse call
|
|
func ParseGetApiMountsResponse(rsp *http.Response) (*GetApiMountsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiMountsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiNetworkNetworkIDResponse parses an HTTP response from a DeleteApiNetworkNetworkIDWithResponse call
|
|
func ParseDeleteApiNetworkNetworkIDResponse(rsp *http.Response) (*DeleteApiNetworkNetworkIDResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiNetworkNetworkIDResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiNetworksResponse parses an HTTP response from a GetApiNetworksWithResponse call
|
|
func ParseGetApiNetworksResponse(rsp *http.Response) (*GetApiNetworksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiNetworksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiNetworksResponse parses an HTTP response from a PostApiNetworksWithResponse call
|
|
func ParsePostApiNetworksResponse(rsp *http.Response) (*PostApiNetworksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiNetworksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiNewDirResponse parses an HTTP response from a PostApiNewDirWithResponse call
|
|
func ParsePostApiNewDirResponse(rsp *http.Response) (*PostApiNewDirResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiNewDirResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiNewInstallResponse parses an HTTP response from a PostApiNewInstallWithResponse call
|
|
func ParsePostApiNewInstallResponse(rsp *http.Response) (*PostApiNewInstallResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiNewInstallResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiNotificationsResponse parses an HTTP response from a GetApiNotificationsWithResponse call
|
|
func ParseGetApiNotificationsResponse(rsp *http.Response) (*GetApiNotificationsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiNotificationsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiNotificationsReadResponse parses an HTTP response from a GetApiNotificationsReadWithResponse call
|
|
func ParseGetApiNotificationsReadResponse(rsp *http.Response) (*GetApiNotificationsReadResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiNotificationsReadResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiOpenidResponse parses an HTTP response from a GetApiOpenidWithResponse call
|
|
func ParseGetApiOpenidResponse(rsp *http.Response) (*GetApiOpenidResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiOpenidResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *[]UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiOpenidResponse parses an HTTP response from a PostApiOpenidWithResponse call
|
|
func ParsePostApiOpenidResponse(rsp *http.Response) (*PostApiOpenidResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiOpenidResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiOpenidIdResponse parses an HTTP response from a DeleteApiOpenidIdWithResponse call
|
|
func ParseDeleteApiOpenidIdResponse(rsp *http.Response) (*DeleteApiOpenidIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiOpenidIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiOpenidIdResponse parses an HTTP response from a GetApiOpenidIdWithResponse call
|
|
func ParseGetApiOpenidIdResponse(rsp *http.Response) (*GetApiOpenidIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiOpenidIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutApiOpenidIdResponse parses an HTTP response from a PutApiOpenidIdWithResponse call
|
|
func ParsePutApiOpenidIdResponse(rsp *http.Response) (*PutApiOpenidIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutApiOpenidIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *UtilsOpenIDClient `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiPasswordResetResponse parses an HTTP response from a PostApiPasswordResetWithResponse call
|
|
func ParsePostApiPasswordResetResponse(rsp *http.Response) (*PostApiPasswordResetResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiPasswordResetResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiPingResponse parses an HTTP response from a GetApiPingWithResponse call
|
|
func ParseGetApiPingResponse(rsp *http.Response) (*GetApiPingResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiPingResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiRcloneRestartResponse parses an HTTP response from a GetApiRcloneRestartWithResponse call
|
|
func ParseGetApiRcloneRestartResponse(rsp *http.Response) (*GetApiRcloneRestartResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiRcloneRestartResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiRegisterResponse parses an HTTP response from a PostApiRegisterWithResponse call
|
|
func ParsePostApiRegisterResponse(rsp *http.Response) (*PostApiRegisterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiRegisterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiResetMetricsResponse parses an HTTP response from a GetApiResetMetricsWithResponse call
|
|
func ParseGetApiResetMetricsResponse(rsp *http.Response) (*GetApiResetMetricsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiResetMetricsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiRestartResponse parses an HTTP response from a GetApiRestartWithResponse call
|
|
func ParseGetApiRestartResponse(rsp *http.Response) (*GetApiRestartResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiRestartResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiRestartServerResponse parses an HTTP response from a GetApiRestartServerWithResponse call
|
|
func ParseGetApiRestartServerResponse(rsp *http.Response) (*GetApiRestartServerResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiRestartServerResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiRoutesResponse parses an HTTP response from a GetApiRoutesWithResponse call
|
|
func ParseGetApiRoutesResponse(rsp *http.Response) (*GetApiRoutesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiRoutesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *[]UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiRoutesResponse parses an HTTP response from a PostApiRoutesWithResponse call
|
|
func ParsePostApiRoutesResponse(rsp *http.Response) (*PostApiRoutesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiRoutesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiRoutesNameResponse parses an HTTP response from a DeleteApiRoutesNameWithResponse call
|
|
func ParseDeleteApiRoutesNameResponse(rsp *http.Response) (*DeleteApiRoutesNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiRoutesNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiRoutesNameResponse parses an HTTP response from a GetApiRoutesNameWithResponse call
|
|
func ParseGetApiRoutesNameResponse(rsp *http.Response) (*GetApiRoutesNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiRoutesNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutApiRoutesNameResponse parses an HTTP response from a PutApiRoutesNameWithResponse call
|
|
func ParsePutApiRoutesNameResponse(rsp *http.Response) (*PutApiRoutesNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutApiRoutesNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *UtilsProxyRouteConfig `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiServappsResponse parses an HTTP response from a GetApiServappsWithResponse call
|
|
func ParseGetApiServappsResponse(rsp *http.Response) (*GetApiServappsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiServappsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiServappsContainerIdResponse parses an HTTP response from a GetApiServappsContainerIdWithResponse call
|
|
func ParseGetApiServappsContainerIdResponse(rsp *http.Response) (*GetApiServappsContainerIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiServappsContainerIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiServappsContainerIdAutoUpdateStatusResponse parses an HTTP response from a GetApiServappsContainerIdAutoUpdateStatusWithResponse call
|
|
func ParseGetApiServappsContainerIdAutoUpdateStatusResponse(rsp *http.Response) (*GetApiServappsContainerIdAutoUpdateStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiServappsContainerIdAutoUpdateStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiServappsContainerIdCheckUpdateResponse parses an HTTP response from a GetApiServappsContainerIdCheckUpdateWithResponse call
|
|
func ParseGetApiServappsContainerIdCheckUpdateResponse(rsp *http.Response) (*GetApiServappsContainerIdCheckUpdateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiServappsContainerIdCheckUpdateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiServappsContainerIdExportResponse parses an HTTP response from a GetApiServappsContainerIdExportWithResponse call
|
|
func ParseGetApiServappsContainerIdExportResponse(rsp *http.Response) (*GetApiServappsContainerIdExportResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiServappsContainerIdExportResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiServappsContainerIdLogsResponse parses an HTTP response from a GetApiServappsContainerIdLogsWithResponse call
|
|
func ParseGetApiServappsContainerIdLogsResponse(rsp *http.Response) (*GetApiServappsContainerIdLogsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiServappsContainerIdLogsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiServappsContainerIdManageActionResponse parses an HTTP response from a GetApiServappsContainerIdManageActionWithResponse call
|
|
func ParseGetApiServappsContainerIdManageActionResponse(rsp *http.Response) (*GetApiServappsContainerIdManageActionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiServappsContainerIdManageActionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiServappsContainerIdNetworkNetworkIdResponse parses an HTTP response from a DeleteApiServappsContainerIdNetworkNetworkIdWithResponse call
|
|
func ParseDeleteApiServappsContainerIdNetworkNetworkIdResponse(rsp *http.Response) (*DeleteApiServappsContainerIdNetworkNetworkIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiServappsContainerIdNetworkNetworkIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiServappsContainerIdNetworkNetworkIdResponse parses an HTTP response from a PostApiServappsContainerIdNetworkNetworkIdWithResponse call
|
|
func ParsePostApiServappsContainerIdNetworkNetworkIdResponse(rsp *http.Response) (*PostApiServappsContainerIdNetworkNetworkIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiServappsContainerIdNetworkNetworkIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiServappsContainerIdNetworksResponse parses an HTTP response from a GetApiServappsContainerIdNetworksWithResponse call
|
|
func ParseGetApiServappsContainerIdNetworksResponse(rsp *http.Response) (*GetApiServappsContainerIdNetworksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiServappsContainerIdNetworksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiServappsContainerIdSecureStatusResponse parses an HTTP response from a GetApiServappsContainerIdSecureStatusWithResponse call
|
|
func ParseGetApiServappsContainerIdSecureStatusResponse(rsp *http.Response) (*GetApiServappsContainerIdSecureStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiServappsContainerIdSecureStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiServappsContainerIdUpdateResponse parses an HTTP response from a PostApiServappsContainerIdUpdateWithResponse call
|
|
func ParsePostApiServappsContainerIdUpdateResponse(rsp *http.Response) (*PostApiServappsContainerIdUpdateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiServappsContainerIdUpdateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiSetupResponse parses an HTTP response from a PostApiSetupWithResponse call
|
|
func ParsePostApiSetupResponse(rsp *http.Response) (*PostApiSetupResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiSetupResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiSmartDefResponse parses an HTTP response from a GetApiSmartDefWithResponse call
|
|
func ParseGetApiSmartDefResponse(rsp *http.Response) (*GetApiSmartDefResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiSmartDefResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiSnapraidResponse parses an HTTP response from a GetApiSnapraidWithResponse call
|
|
func ParseGetApiSnapraidResponse(rsp *http.Response) (*GetApiSnapraidResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiSnapraidResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiSnapraidResponse parses an HTTP response from a PostApiSnapraidWithResponse call
|
|
func ParsePostApiSnapraidResponse(rsp *http.Response) (*PostApiSnapraidResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiSnapraidResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiSnapraidNameResponse parses an HTTP response from a DeleteApiSnapraidNameWithResponse call
|
|
func ParseDeleteApiSnapraidNameResponse(rsp *http.Response) (*DeleteApiSnapraidNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiSnapraidNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiSnapraidNameResponse parses an HTTP response from a PostApiSnapraidNameWithResponse call
|
|
func ParsePostApiSnapraidNameResponse(rsp *http.Response) (*PostApiSnapraidNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiSnapraidNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiSnapraidNameActionResponse parses an HTTP response from a GetApiSnapraidNameActionWithResponse call
|
|
func ParseGetApiSnapraidNameActionResponse(rsp *http.Response) (*GetApiSnapraidNameActionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiSnapraidNameActionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON404 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiStatusResponse parses an HTTP response from a GetApiStatusWithResponse call
|
|
func ParseGetApiStatusResponse(rsp *http.Response) (*GetApiStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiSudoResponse parses an HTTP response from a PostApiSudoWithResponse call
|
|
func ParsePostApiSudoResponse(rsp *http.Response) (*PostApiSudoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiSudoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiUnmountResponse parses an HTTP response from a PostApiUnmountWithResponse call
|
|
func ParsePostApiUnmountResponse(rsp *http.Response) (*PostApiUnmountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiUnmountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiUploadNameResponse parses an HTTP response from a PostApiUploadNameWithResponse call
|
|
func ParsePostApiUploadNameResponse(rsp *http.Response) (*PostApiUploadNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiUploadNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiUsersResponse parses an HTTP response from a GetApiUsersWithResponse call
|
|
func ParseGetApiUsersResponse(rsp *http.Response) (*GetApiUsersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiUsersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *[]UtilsUser `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiUsersResponse parses an HTTP response from a PostApiUsersWithResponse call
|
|
func ParsePostApiUsersResponse(rsp *http.Response) (*PostApiUsersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiUsersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON409 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiUsersNicknameResponse parses an HTTP response from a DeleteApiUsersNicknameWithResponse call
|
|
func ParseDeleteApiUsersNicknameResponse(rsp *http.Response) (*DeleteApiUsersNicknameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiUsersNicknameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiUsersNicknameResponse parses an HTTP response from a GetApiUsersNicknameWithResponse call
|
|
func ParseGetApiUsersNicknameResponse(rsp *http.Response) (*GetApiUsersNicknameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiUsersNicknameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
Data *UtilsUser `json:"data,omitempty"`
|
|
|
|
// Status Example: OK
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePatchApiUsersNicknameResponse parses an HTTP response from a PatchApiUsersNicknameWithResponse call
|
|
func ParsePatchApiUsersNicknameResponse(rsp *http.Response) (*PatchApiUsersNicknameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PatchApiUsersNicknameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON401 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON405 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteApiVolumeVolumeNameResponse parses an HTTP response from a DeleteApiVolumeVolumeNameWithResponse call
|
|
func ParseDeleteApiVolumeVolumeNameResponse(rsp *http.Response) (*DeleteApiVolumeVolumeNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteApiVolumeVolumeNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApiVolumesResponse parses an HTTP response from a GetApiVolumesWithResponse call
|
|
func ParseGetApiVolumesResponse(rsp *http.Response) (*GetApiVolumesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApiVolumesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostApiVolumesResponse parses an HTTP response from a PostApiVolumesWithResponse call
|
|
func ParsePostApiVolumesResponse(rsp *http.Response) (*PostApiVolumesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostApiVolumesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UtilsAPIResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetLogoResponse parses an HTTP response from a GetLogoWithResponse call
|
|
func ParseGetLogoResponse(rsp *http.Response) (*GetLogoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLogoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostRcloneConfigCreateResponse parses an HTTP response from a PostRcloneConfigCreateWithResponse call
|
|
func ParsePostRcloneConfigCreateResponse(rsp *http.Response) (*PostRcloneConfigCreateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostRcloneConfigCreateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteRcloneConfigDeleteResponse parses an HTTP response from a DeleteRcloneConfigDeleteWithResponse call
|
|
func ParseDeleteRcloneConfigDeleteResponse(rsp *http.Response) (*DeleteRcloneConfigDeleteResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteRcloneConfigDeleteResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetRcloneConfigDumpResponse parses an HTTP response from a GetRcloneConfigDumpWithResponse call
|
|
func ParseGetRcloneConfigDumpResponse(rsp *http.Response) (*GetRcloneConfigDumpResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetRcloneConfigDumpResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetRcloneConfigListremotesResponse parses an HTTP response from a GetRcloneConfigListremotesWithResponse call
|
|
func ParseGetRcloneConfigListremotesResponse(rsp *http.Response) (*GetRcloneConfigListremotesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetRcloneConfigListremotesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostRcloneConfigSaveResponse parses an HTTP response from a PostRcloneConfigSaveWithResponse call
|
|
func ParsePostRcloneConfigSaveResponse(rsp *http.Response) (*PostRcloneConfigSaveResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostRcloneConfigSaveResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePutRcloneConfigUpdateResponse parses an HTTP response from a PutRcloneConfigUpdateWithResponse call
|
|
func ParsePutRcloneConfigUpdateResponse(rsp *http.Response) (*PutRcloneConfigUpdateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PutRcloneConfigUpdateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetRcloneCoreStatsResponse parses an HTTP response from a GetRcloneCoreStatsWithResponse call
|
|
func ParseGetRcloneCoreStatsResponse(rsp *http.Response) (*GetRcloneCoreStatsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetRcloneCoreStatsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostRcloneOperationsAboutResponse parses an HTTP response from a PostRcloneOperationsAboutWithResponse call
|
|
func ParsePostRcloneOperationsAboutResponse(rsp *http.Response) (*PostRcloneOperationsAboutResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostRcloneOperationsAboutResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON500 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON501 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePostRcloneVfsStatsResponse parses an HTTP response from a PostRcloneVfsStatsWithResponse call
|
|
func ParsePostRcloneVfsStatsResponse(rsp *http.Response) (*PostRcloneVfsStatsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PostRcloneVfsStatsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]interface{}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON400 = &dest
|
|
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
|
|
var dest UtilsHTTPErrorResult
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON403 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// Base64 encoded, compressed with deflate, json marshaled OpenAPI spec.
|
|
// Stored as a slice of fixed-width chunks rather than one concatenated
|
|
// const string: with thousands of chunks the chained `+` fold is several
|
|
// times slower for the Go compiler than parsing a slice literal.
|
|
var swaggerSpec = []string{
|
|
"7L3rcts41ij6KiidXdVOlSyn0z1f7UnV/uFYdrdnYsdHcjK19ziVDyKXJLRJgAOActSpVJ2HOE94nuQU",
|
|
"FkCKlACJlO3ETvPHTDsi7lg3rOuXXiTSTHDgWvVef+lJ+E8OSr8RMQP84Y2Il+a/keAauDZ/0ixLWEQ1",
|
|
"E/zoDyW4+U1Fc0ip+UsvM+i97onJHxDp3tevX/u9GFQkWWY69F733uEXcsf0nEwVmTJIYqIyiNh0yfiM",
|
|
"6DkQCanQ0OvjepiEuPdayxy+9nuRFHzwDzEZ2YX+Y/zustXy/oeEae917/86Wu37yH5VR76xPRv4h5gQ",
|
|
"FgPXbMpA+haZa5aowXECUj/Y4qpjehaFH0gk+JTNyMHVu/E1ETxZvujVl/PqW63nfRZTDTGh9XW931jW",
|
|
"yejd5Ql+fuClVQbesj7TqtnyXn3T9dXX5bnOMafZ6Ph8+Chntzb4lvMrWrZY66tvvtiti/zad7Mpt64p",
|
|
"m9GMDU4kUA3HV+fX4ha4owmmSSZFBlI7AlmbqSR/SkvGZ+YE4HPG5HJIl6rymXENM5DmO8v+NWcaEmYH",
|
|
"ZxpS5R3I/UClpEvzb05T8DbMQKZMKSa4qo24+ySvyp6+CSXQ+B1PlpVJJ0IkQLn9alYQ6WtxIrjSkCR0",
|
|
"7UzKxl+rJPPfdiMf++uco1+5i+Hl2N5u8BqiXGmRDi/Hp1xL91uLndfW7EZZ+g4h5uo4jplpRpM3iYhu",
|
|
"zc2pdlcXc4Vd3yTU9vcfaczVGU2SCY1uvcPGXF0JqT3fvm4/TarmE0FlPBK5hs2zPBFcU8ZBnkcBoC5b",
|
|
"jHLOzW/riLBqQRifCnIwFZKMT0cfjq+uiDTTqhe9vmfPwx3o9DuL4UyKtNyD/+h+F0p7+we3dCFiPzpd",
|
|
"hvDsiur5lYQp++z9fE3lDPyLeK9gbYGVpb9X4B25ij7bLhcSaEC2AtSjPWpaRnBvMrk3GXw8ateGnu08",
|
|
"IES18G3AXYmLDRYuxeclti9YXr9nRqPB00WMu2x05auBAve+OovBEBYsAiRla/J4fXsT0yJA43CIYmkp",
|
|
"/fwW+EzPe69/edXvpYyX/+xv7oqz6Jbv0XNtx5UlVMZsunsrJmzd/lU+SVhkMD7IsyOhUqEu6zSoIiXc",
|
|
"55gYXzDFJgn4b4BlfoRUp5+ZXltRtZt6y2ZzPRe5gk3yb8h9Un5HUctL7pl6K2j8hiaURyBDM40goQGx",
|
|
"owoDm0uwx6aK+dfObVNyCnLTILywrDGknMZMb4WTtkf+CMep6ayVLBMgfZb1D1Zvk/pGqZypUxXRDOLN",
|
|
"e7uWORA2JZFIU8pjwhShiZE9lwRsH3KQAuWoKzDIR6gitGyeMA4vyMG/GI/FnXKKBRa9GHjhj2pNo/lY",
|
|
"xyDl5lKO8StqJJSmPKYyJiClkNvHYrzZUIxnue6TlN6CIplQiKQkVyg0aZA0ws5b5xK5bjaZyHWWa+9g",
|
|
"URr7BDh7nloQmXNyNwduBpO60NGU12ywoLnoK1LKuB9jh6tvHuQEI5JngnHPhk/Lbw+9XuCLzeneMqWJ",
|
|
"mBLgCyYFT4FrsqCSUXN/WhAFmjB+n1k/Z0JBbKR7izBJ8m7ae/3v7dIBp3pguoxB975+7IcWbccmGQ7+",
|
|
"td+bA030PJqD5dHN5loh+e/YvZBENqb9fTU6sV8moMhc3JmDsj/Xzsngu10RnsS8wjXXBi6++FheSmee",
|
|
"LoZmmyMwE2ITQzqYJndUkYwqcyqTJX61UpCQ5AAGswGJRJ7EZAJELdOJSFj0wjdrQieQ2Psqn4hXNcK3",
|
|
"+YTzXpEdCMFIC6LnTNXgaIPipjQ6jmMJalPU7l3QiLiPxdZXd3fDb/gQMgkR1RC/tlNZjSxTJC6/EMV4",
|
|
"BOT46pwsfh78+uuAvFdATnmMODcGbbBMDS7KdRBm+B+NB75z4qDvhLwdMmUQxkN7zhVxbUhcNPIRLsHf",
|
|
"5CzxDPDu8s3787dDkoKmMdWU6DnV5A4kkBimjENMBK+AwVBEtyCnLIFWaCoy4AF6/y5D+mO++Vau5pAk",
|
|
"m73G5mdiJBdscDgVMjW3Nnp/2ScnF8M+Ob28Hv3vq3fnl9etVooreccjD1KcT4mWOfRJlAgFds2ETjVI",
|
|
"PKCfieU1EJMoYYbSxUxFgnOItPIzVaVFNmYzTn07xN+RSGqRId/eAOzVNkyba5aCl8u5D+SAcaIgEjxW",
|
|
"L7YPXBGotV4G+WbJM5WRL1JlBqVE62WfMB4leWxYij0nNjX0gynChbYHGPvPxHD1zQnfKzxlA5ssSZBx",
|
|
"WQRF3nugXhg8YjHU0bZPaKIEUXlmaDgKDK9nUuSZ7wgXIslTaEKVVvTET5XcSOQgFTnX6oWZOEZgXWd0",
|
|
"GwMaVGZ8NmSeMzjJpbRgJSHSQi7JwdW/hi9WDNTKIXhAEyAJzbmBxl6/odLLx6Y2RW8jby0swDZjgJql",
|
|
"MBjm7q28yff+D0hBjJyK4MP4HCTTA1L0UIRKMLzYUEuIkRFZ6CSccuHgeWA1EaVGsz7FyH4w4GdOiufp",
|
|
"BKS5KfP6gCjXbAFkSlmSSzAUFWJAec58ZjHIKpKYBeTcMd7BDa8sv1i7F49QxDp/8NO7NqTZjYropzWk",
|
|
"mSYVWUURqkmcy0K+w5WQDCQTcbmyK/vPB11XdaJN8Le3zTSjCfsTyASmQoIzatrrwv7KXkRuAF/ccbxo",
|
|
"7XRDa1OC0sUVmxamYwYSWUNFhKI6KEcNbvgxJ+b8lkQlLIINuMSuMUxpnujBDb9GCagE09c3/MtX8rps",
|
|
"XLmEG/7lpnf57vL0pmdaOG690eLkYnjT6xPz7hsMBqYlfIbI/Ds3wrNyyJ8si9aH499P3741fRz+mz6G",
|
|
"PK7IgZ4TtVQa0p9UsXTLNVsxRr3iLg8EIY4rFTfGUnwS3FGmC2Ao8K98mdgrFGROF0DmOZ8NAtTMb/z2",
|
|
"a3bbKYnM9uI8sUzqHso0J5GvhvNpR2IUtwaljaCmQyt/9Rh5aPaJxnE7BbHpFEuRtexl4SygrHMr/BTW",
|
|
"52X5JzWnEgJWvyjLq18s6S4+gP609r36YMiAx+qTVfSGOPo2AG52+EM7zztufun5gNHp1lpbvlp3+KSA",
|
|
"ymjesl9Nz7BDmeD5XD7s201rH9dt+2hJP5mHbsuzmbHYD11rL/r7Q0PlEb/+KA+/vT0qZZGEbRR7vJ43",
|
|
"YDJh/LblIaY0MjSleDxvtE8h/ZSwlGmf/KVELiNL0LWkjGvlE8HNEBKUEWaCu3fv3U9pyAzpGqhHQfsx",
|
|
"SNRp2zm8R5sVuqgWpjmh9CfGlab2rduip2QLlsAM4rCzAZU6bOtqbQv0mNQ2LII5N9zcO6kRtyXTy08i",
|
|
"a0kx8B35SWTA/Vs1r9lPM0kj+JSVwqxPDhfZJ1U+un0vaUlnUKxvfxRTSxXp++Kpe317nskhkla8n7e9",
|
|
"bxvdNz5eBxfm/33X4V6qn2Imd1uCLKnbX8KpM9lNcUdwe8B+OA/iwNe9F/R7nXGE38ibF1R5pQZeiVvh",
|
|
"t3j77CW5rw/X+gAKwrdpqUKNEA0aT2PJFgHABG66fWLZ4r8ChjhznnV8rZllaeoFCae/aATsTTZ9fnV8",
|
|
"ESZ6wQ162e8DsHC/st/8StJcmTcUyTn7Tw7NFEAtT2DjwGdUw13NWlqhqfmEw4Mg4Br/3QTDhFHVVtZm",
|
|
"2eLXraKNAc0tDVrv4gOSYo/vTxhJvjPE9HtWgvNPFHLganIwZ0J60PfDwzKr4Ctyr7cZ8MUHKtsCWVja",
|
|
"L0zYC8/t3AGava3BiRLGNVGisNKQiHLCZlxIIC+9WseHAJsU0reFXB+StoNOgUYafsN4zPhs5yUWZtkL",
|
|
"mlX49pVIWOSnKwFZZwvYWfuVoyI1nPT5mj3iQ2LbC0LZ5anHVVx4p25gBNl7Zkf1Nqfdcl+2z46L2kI2",
|
|
"7+m96VYR4fzuyq7oMhE0DolAJ+ig1loICjupUwncGg6mNECAt/HXNvtM2UxSDdfid6F0gdL1Tc619rvB",
|
|
"mQ9q9xKwf9Hat5QZ0/N88ikS6Sf6Z35Lqfxkff4ODVqA/KRk9Kn0RfeKIoWP7d5g7EJ23DAbMt9qsSOR",
|
|
"wD1nMUNsmYHGKeM1x9pwZAG2Lb2Dz69acig6A64vgk51NNfCuuj6v09odJtnzTb9Btuutm37vkPPqyHz",
|
|
"Y8gENLXzB7ALnWchPjFCwEZkQwM9duWMV5DVMiJitSU0WcllGblwrmp+2x7nMrm/qnozUMqH5FTTCVUN",
|
|
"faeHrvVqQGezKmjDv6gsIho8lM62fZcBPx8O0Wa1teF7BfKCcjqDQpXsaYpEqs3VDKs9jOCWUpa0GeC0",
|
|
"0gHVuSlkdAZthvi93sdRyqjNCNfXV6vejEfyTQN0SVgEPMAvEjGbMT57CwvwK8FSKm9Bt9nmRbWHGUFw",
|
|
"poUZDyMf70uKbfSkTzgt56l6SW0CT5rF/JN/r1mcfwrItnfnK6Wsx6sKofsEnX3a6lHfVfr6oypSoWFs",
|
|
"lZENOUm1y+omHPe9ODsO6E2RrVqqGXi+YwvkhdtUpg2DENfXp+eQtsKo60qHdfGiiuE1TPOJGvgkG1w4",
|
|
"17dNOSKhSl/T2TXzPZvfrj4WJmzDmwi6ApsfzQttzpx3sfWeu6OKmEGJprMZ+Hz+vCBOGR9clrDoN2bT",
|
|
"JBF3hlK8FRFNzq+Oo6iurKiHy53MaZIAn8GVFAsWB4TSmKuoaLi6of1fklvNYSgSnpjhpiyiGoJPylTw",
|
|
"mYgnwe/VSIeNjyJl6CCzDAjbSt0J6bdmK5UgPwjgAPjlYp3gpkLf/gnBp+2/WBJHVMaVM2kaVIUgMwad",
|
|
"Z35oGV6OTx7yYttAX5QArXDxdW9Qu4DXBJsVccjOH0SZHfk98/3SW2jwmsxGnJOmT+tlX37HRrAu6V9w",
|
|
"xdiWoBSOHsAae/iWW4hilyIuY5VCw4oFSMlicL5rIgYSmVcxJ4KTFLRkkSJS3KkBGVrvHmWdoYEU+Gad",
|
|
"/BHs+44oMUXu5lQTShTjswQOcWBngyR3lNd8VmskoRntgCCqbPFUv76+GvtmbUwbKlJP6DyvpCCuGbmF",
|
|
"Jfn//p//lxgOtnJ1rsRjOfijPL7hC5owG8u/YJSU5lAD6W/deM63DHhMxNSCq/cU10jYWnRHIafviORb",
|
|
"c8k1YOfrspWmZULpmQQ1rLwNgo2KUNzQybq4kjl6+cZ4GpSgc09MrtwYhb974WKfGIJBxv/3W3sH3g24",
|
|
"rldNNmIeEkHiv5WCfx9CjXrrN4zH9hiVx5KFZAVV2+t+ONXwPsFHEOVSOS3yZgszKp2VjhW7telXlQ6V",
|
|
"rAZnQkZQm2vd2cPXjkjKFChCuQ0MI8zeP05FIsq5QANESmMgsuiVLImZ9lDwZOl3Fy9Wdbm2f/+aqq1c",
|
|
"ONlqEVzwQ+/MfTLJNVGaJQlJgC5qvcoeN/wg5wkoRWqzsFV4CsbrIbv5I+cYsuYNtgvDyUmSKw2yAiqh",
|
|
"hoIrpjRwqzgHnqdGOo6Knw2vi6jzDo8hgZmha/g3cpCKuOwgvd/7fGiGOVxQxC9lxqtMc5ajP2nll5Ni",
|
|
"/Mpvw8pUtZ/drOUGhqWmtFE0vnmLlWeyrxgTPndrV9qM1q6j7W6MquI5SkLr17l7iDUQcKJP5a4bDFHp",
|
|
"sJatpI41zpdcrWB8hRMGf4tITH9sS2kvXItrsZ5gLty0kGoq8WZ2kcS6fDA+QzEHUc1M0kf+csNTujTk",
|
|
"grpgCzeCJBSFHpJRPe+bf8MCChNZPLjhbnYXh+ICQ4rgjDSbKnJQmEJp4Qm+oEkO3jg2Hc5cgYO1utnr",
|
|
"ao8SFhv1NC1L402rST/UumxBgas69ygoiswkW1DMQLb6S1qe3+v3yj+kSugC/Z3xv83IS2XO0VU5euVX",
|
|
"74+jcTFp5Uffb6OxW1O1nV1eue3rtWusE4DCB7GZQ7xQgzOWWNl10x3e/FyggIXEPDNvE8P9HQdW7E94",
|
|
"s9S+CJcx+xOfRxadTMPaWH3DdyamK0YyXhsRrYgTigRfACKBFgboXV4LPnNRA2VkuEWEGx5XMbN4ZgzI",
|
|
"mcG2zzTNEuibLwnj+ec+Ro16ZrrhRrym5Kfbn/rkp/Qng6s/zX4iask1/Twgb8ZDg+oin80RVe9YbHjy",
|
|
"CmPvmJ7fcKsT7pMcZQuCzqWzuca92vXihq9ARsA1nYENJ6ohvy9eJ4wI1w4tCwwwTKBX4F7PIX6v3+MZ",
|
|
"y8y/HZFvCPJm9Dd2RPPnh2JU849rN7L52zwa4ys7g/n3STFLuc4P68TAZzNtpnarseSH8kURJyIL2LFU",
|
|
"PjH0u6Flv/AacF4Gm1s1z5bzzB8XfX5VKO+QbZxfFSHA3leoULrII7U5lPlSGwxjDp2rSb/NTi5otu1w",
|
|
"G2mZ10/F5xcYmn8MW1xfMQR2s2+VuL3+0psKmVLde93LGde/vPL6pmRSuNxxv0mRZ20zMD1WRqOmNnOz",
|
|
"/CFkiVgWJqt1D8S0CHFo4DKxxTGl4h1QiTf6r193hipJwHyBllUxzlJDsX72ByeWGvw1vmI/EMzdRkYn",
|
|
"b99dnrqkoyhyKfvcj8tzIC7uhgg+ICdziG4hvuFcxHCI8bmMY0RbruE4y5JlodkrHEdw4+4UiMy5QvUM",
|
|
"JXhbfHbD3dyZFHEegSJjTXWuzihLUPM+TcSdWZNExoG6mM9MITebUpYcYqDy7Q3/T04l5ZpxQFFxQC6F",
|
|
"JpRkCY3QAkmmLNEgXxdbdnogpoij54dqySOztQWjpKZ97BMljNgplwQSNsNUJagOmVPHnY2o6vahQA9u",
|
|
"+P/44i5gcHl8cfrVPhIRemyOASOBK5Hgw1NU3p5m6YbVUnOUg5Zx7pJqmC19V26/EAUJRFo5heFVcTTl",
|
|
"d9xLEb5mObAN8jTy+QoiBuQUxWhDGvF6MYb3pidFzuNDKSaM3/Sw54RGt4dm41Q79v7PDwSsMZ/cSaY1",
|
|
"8FWcaJmAAW/YsvFSLF2N3ev3EqBKH05ytdzkwpVUPmvhiXSmHBSs7nEFH+ZG1YAcV0EfQy1Nv//175ve",
|
|
"LMtveh9vOAo/+GJKDIAKbruSu7m53no6RXRGHODMLnTOHBSONLjhF3miWZYAMQtGMeb4cvhT/JoUs/Vv",
|
|
"enyRwk3vI3EUTJGJMNBtb8AGs3Jxw92+ELf40oInU+U+24DSGrksqF6/CHAsiVCIhlqfjqfGAjad8hyG",
|
|
"niFnGzJ16zetxEz5k1AWLLGd2Wk9pZYZvRyr0vPjliVfgJyFvecmkvJo3tpdZi7ueMA8l3N9FYwYFJlW",
|
|
"waukPOD9sXYM5Zpr0209A9MsnBR1391wQFAIaFz9Qmy7rVYW4Eb0bbMebF0VwBjX//WrP7PHMgM1+E3S",
|
|
"bG5l+6HXCl78um+qHnF3mMACEuKuosw10zdcfMFiyxBuYXmEDzaSUSYr71TG7V6Y4JhrB5d6WDxK+8j2",
|
|
"V0KHy3CAMx3atjecccOebFM1L1IUlVk5KjPQhGS5NBTM5sLDZYzcdbxGFa4vbYffhlfNolRs3i5pEB50",
|
|
"2wPB3th5Smdwzs0JeED53JcmaFg8TFw26UMXzIA5CM6HZpGUWyeFysGXqdsxtZy3b8xmoDSJaBLlCfL2",
|
|
"qRSpmeqG43A/KSc7OdgkB87+iPlhnPrPjqJsRqclSGXvZrK84aXzxAtc2KURmlwOBwMMdvqYTaemVzE3",
|
|
"+e8RZGJoR/1vMoFE3DnD5w2fCyNQVaa0vhkp5WyKP+HwEqYg0aZXrsBryfvApM5pMmZ/egCg8rFMcyA0",
|
|
"TWoKGjv9Kl8OTZLiFDBjzg13PDUmYrojEZVIjZAUE2eAxhRU1npxC5kuhaw7KmNiBS02YQnTS5unyi50",
|
|
"IyFVhWZQGc2Zhkjn0meDrHwtn8JUxndGWDm5ek+q3VepOOwJoLQvuPeUaa7nwpd3EH8v87pU8M32cIES",
|
|
"tExvCLG1hUciNUflEks4WEWFca1t8ZC4OD6/vD4+vzwdkYNVsq8y9c4qK5Z39WYy8GXjO7EfEL24SyRC",
|
|
"E5Ia7Jq5A4oox3xqoDdWLgxpSzOxSt0XhtNmDocbGSmrSRy25q62N2BJyVqal+IKEKe1KPwkVut1ML1S",
|
|
"KmLSu5rXlO0T96vw7kwAqKRvjxd/a4YXgbN04Q0r15mWuQCDWQBP6mOvg4bdkRunkrCxQmDtBRiqsXED",
|
|
"6HvmAKjEBFQw1+AHNaYSFkzkiixAonhtxrVwTiY5S2L75IurB21TikmwDQgaGPs3HHOTlrm/GCc21omg",
|
|
"ApgvUyHh8a6v9OHxZe50z9E27nslIFqRwa7qho/OTsgvv/zyd8xJdeiSUpEDFMtGZyfm0yXl4kVQrMEX",
|
|
"Il1QliBfZVOSSVBIHCr599xpFuch9BzkHVN+lLc6lQ/2/nxJRCufizNwt1257A30tZf7sNjrW/5sJZi2",
|
|
"SDrklWk30azSgliBoHofdCJy7RHbyjOwYF5Hs58UAk8h9RhuYA0oAxtEt/IybbaVNe9Uj8WoyNm4JkhU",
|
|
"/GoQBYMwZ9s4jVJMIRXcysgGTzMq9drIWkEyHVhtr8cPaFwA0bvSgjS2FqTKGArhp8w+G+D3QgXB9p0K",
|
|
"g2zzyW+4nZ0cAHJ7miRLpCMuHfKLgd+VSnr5+BX+vskEM/f7Q+GJ9UMrqIURCfD5kqJda5W5Ezd55Aaz",
|
|
"t5wsB+S6HBTHsCOy6doasjxJCjG+eBMQCTOmtPQjqlzJ2j7Pm/KjfUUkLkli+DVh3wF21SuS6GS0dTm9",
|
|
"drul0G7XPyClymzVK6L8hmPDAvJRH1t9+4BaLcVIrrnKcS2bNLp+dMAMPXYneMPtEZZnh9Kl57jV3Jle",
|
|
"Ky0rPprA7SOo2IH5dQbcALl5OCNvVZvvsHbaYHOF11416Mh9qV+eXT8aAI5QG1mjOvYr0h68JHfe7jVl",
|
|
"6FB52OUF2T44lpF4AxdkyROOgUuxyHHDS1jmwo7heb6hDdwebEQV1CDnht/0cm698m966y2ZlcKtA9gE",
|
|
"qmA2WeLxnw9bnrcQ+mzclq2NbK9NTmA/rHTGfl5WcCbbupqiFRkZvjnJ+dDm0lTeB+39XrKk+pBdaTG3",
|
|
"6agwWbiP5H6wH4rFbDwuXUdy4MSoZEmORxfouvRi0EbbMiqvaj04xGysZSYW5zvQYPJcleawrUkMw27W",
|
|
"+xb9MNCZQCBbTM0yuq0CCK5/ZyGH8Oq3rME/1zlfsB1nZeDt2n8FD1YjZfehvBUzxrcnptz75qqGhErP",
|
|
"n1/9z1rX/9l4FzssDLihwi97BAoaXvd3KV9jZ+83uKIRMmKQ3/eW/u6VtezKnDd6pffffq5P/PM+d1yf",
|
|
"IHg+4zwWW8/moeBwN/C9VyBfnR2jp0HQvKMDoYtrs9lmu6aqgvl2qLgPpSgyEIxAZYIrX7Ig+5q0ScO0",
|
|
"zW/j/O/MM+mfzZicN9VBIAYhPta7DT6hyo6gAr0fvq6juOOBoKQnUAOtb8Hsd6r8tkH8Os6n/mp5W64w",
|
|
"jlFFeIamfRW6yeCh6RBjRKNcu6UU9XzXQlQjvcfB42DHkQ6cfC31X8PRTso+Zfa5QNQ4RgBLNpuBhLhl",
|
|
"3pb1HH7VeOoFSBYIQdVzKbQOrkhLGt0yPrvAwL97pHzZPN1NsrnFvb2FJOs7+I25ijoyobOMgmkh1uFz",
|
|
"u6i4mX5k0yECv94zY8EYoyrX85xs5uSwSQuahov5KkFveB3uTsft/yrN58mWFI0BkLxnjqVwFpWNzZ0x",
|
|
"CXc0seVkIfZlXtjJNS6Pr8ejimOkJ+V4dSnbixF+u1q69CFq6U6a1dKNt2bSiLma7ii2GygP2O/F4lLo",
|
|
"8ZJHlyIOpfHZCmssk5QH8ugVgdKXMMkTWlQI3J45S8+ZGtZKRm42yTl37u4Pmif5azNcKOFiAxtuAxGp",
|
|
"+3DyKqbehkR/X16gTQEjGNLeOJB9WxDwPQKVb9CB/6ZHhCT279cGUG96jxl0HL7l4Vo6o/UywBgSabZ7",
|
|
"FXIjU7csu5I5B/QICqBT2aiSM7U5qzmtZ0zy5Bw5xwo6Eq7fjvfA56kUaTBJgF/gEppNl6hECXndbb2x",
|
|
"AGXKVXgH+T7XW8na9PjpN6IIMn2cJMVleLhWNZNbi2wd2HaMdSVO+YzxcHK4uYvGCwXKYxMs8BtqEdEo",
|
|
"FIAf0Wz76I5nVUL5UCUQzoATVbJYFF3+RZkOlBWud2iWMmdknfalCvkDR4AZLyp5A0bAjYTjX3Vh9rmw",
|
|
"wRDHuZ6vZSyoNN6Za6dAhWpMyQ4NkkvEETVIxIEN95qiYBNFVgVb7DTgM2y4bJvcUVeVDqa/gUc1vxhe",
|
|
"jkPJsZLp9dtxMDGE+x6CytVng5HKhcS3K3tgh/hAExa/5zqUfkglsC2zRbQls0VQjsBPey9cJ2qxfdFa",
|
|
"5kpDbO6kdbrGXMGZkHdUxhCfCRkk3M1zc9SylK5KppaoUoXpj1vJ/qmUQo5A5Yk3LCyU1sp6/QWySxUa",
|
|
"vub8ZyNX4eYrd4ZxMiGdHeVxiG3fsXgG+t4FsO1KDRfCeGxP/roWkSBSaBGJJFzqZH/BXbm6rfcsCPJA",
|
|
"GdQ9CRc3jsnO1fbRYse0ORLa3GCtX/Mry2XSasu1nImbVTcCEh+KHKHqOPF6atJapRrZJKkyi7eQg4ra",
|
|
"eBUz/nP/Vf/nl/2ff+6/etl/9XP/l5f9X37u//qy//NL87+fP25YwstYcedKjBu+Oh1dfDoeXpxf9l73",
|
|
"nLOTyNRr4hKn94ma5zoWd7xPcgyy6hNt1sNp0utXun8anR4P0V0d7kgiZqr4evLu8uz8t/ej4+vzdzgJ",
|
|
"6KOM6mjuXE77xDBOX+PakFGRj9G2G50OTy+vz4/fjuutJGDAAU0UOQC+IAsqVZ8U4rzqE3sj6kUx0tt3",
|
|
"v+Hej/nSLHsG8aGN9JB9cnF2TMpbqrb/9K/T438GOnGB/WxZF9dpdDp+9350cjrGEtEcPVsKPZpZkyVX",
|
|
"feIqCfSJUx/2CSb0XR9l/WCaDtQvXsjFiO/Hp6Nx6cRquiVg/gsxs5VuVZ+8wkNQoGudakvAIvoJU/oo",
|
|
"Bk1ZgqlHHLBVns+YnKAKH+3hLTBdv/EO7nNke91cHXhDwN8eeBvA607o/OjPmLKG01Us98BADZT8kLqB",
|
|
"BWFs9xKNENLXUHgTPz+uKGhdxK/T/EcqYRZmQRt9N5PPl/LBNTL1lnLt2zfBJ9XbN2PNotvllhTtqAco",
|
|
"lQDmbXm9LlnU8sXXTIZtDXNeg6Mvr3ycsm1Z63M9P92mI0Kt9fHV+fEkV7ClyYlIU8HfCB1KPCqkEpLV",
|
|
"FUfNrdhF+nOgMcjfzcNjZ/rztzCj0dLcg+2ltrYObB+rXlb63yP9LovhTIp0SNV8IqiMw5oDv6U+ChxN",
|
|
"Sj+/oTy+YzVFZUV9Ei7WGLThL0DeSaZRlWV3Hwid1vMrCX5reSH9WcExqOGvNho5kfD96FwFq8k1NvWr",
|
|
"W5a9H709wX/7W6RU6vGcQRI3NCyuOrjKOGaUTIjpdqWfWXV25TutqnV5i8XX2aWvQF4wnmsIlKdbFZtr",
|
|
"URy6sLJsMcBA/HsILnMFv786CaoA1vrVP+46kbuynAafmMdyy6oa/qLP7pjDz4ZGT+FV2eQWVHvbY7sF",
|
|
"H6xULXmKyRqCNvhNG0auxViLrIy7U+HqHCHruPt2JoLIs6W6zxZjhYRMKKZFIC2/BG1ETsG3VMgK6hz8",
|
|
"gFmZMQycmxRo09FzGz9P6effEjGhyZileaIpB5EHTPEZyPcK5JulhvUSZJutnE/e7oaN571mKbzJ4/qt",
|
|
"rorHZbj7MbIDXreg1NJcFSV6MceJaueqMuY0Gx2fD4P+HuY18I6fhehX3DZ7w8Y69vH9wFAp5+HUQtUd",
|
|
"yXxysgXR1JJH4e9bDnEHIXVn3JYqrd1NC8p0Xa95seY8K1lK5fJEJAF3KBteuqVJeOL3ypdVd7t7Z9iw",
|
|
"kFCl1y2x9a+F+fxkTvksOEPC+G37Ug5rvtDbvp9+zrY2Ca6sbSiE6/HRl1y4KH09NkBkD/4NUAnyOLdy",
|
|
"sznH3tzKugVquRQH7E8rKa1ALGNm31+/YkmgqXA1bzVFbeZGFpbR6fgaY6enQhJboo6cJCKPiS3uQtJV",
|
|
"8SUjxGl0InYNx7bJ8dV5r99bFIGZvZeDV78MXh7mXGlDIV6+/KUoikMz1nvd+2XwcvDSJa3B3R59QuXR",
|
|
"6y89R1HXQ810LrnLkWanTMQMA2kJVTY7G+NEw2dNbK09t1yXsVTw87j3uvcbGJhUyM2s7zRO+erly+KM",
|
|
"CldC+KyPcEwkAojatdQ5E8apXHr8qDeO990/zdZ/fflzwymaFX2q2pE8k77n1MEGxHb6X77l9GdCTlgc",
|
|
"A/KBvzU+3QeZ+9xVhC5AE5vXkAxD6qro9e+PXz/2eypPDW3F8Pc7nggaV0ANHY8wCvLfPRu63ftoxjyi",
|
|
"GTv6lELqJLGt0GubkRwzeDglp8sy5NaMgZE2WHySY+IaHwwfZ+zCzrgTkGmG7oym99EfSrQ+8GqYQQvg",
|
|
"vu+0DwLi32ARNUD/9eXfvv0KLkDPRYw5Ko+TRNyZw2gD67+BXoGfA1BnUt4C8bQs3OYA3gejrrqbZYeg",
|
|
"9BsRB9PQr5ow2Kjsdi8Yb5GqNgzfL7/9xb6hMamkeX0K4P33b78CIwgnbE1K2gnUbzEWXRbphFaFAAkt",
|
|
"YLIA7QtnB/rofDY3gflKqA6aO2h+ZtBcp9RHX8yT4asVTRKwGto6mA/x9xLQL4vwT0lTsCagf2+kWDMt",
|
|
"iXvc4AsFk1CW75NSc1S8hiycrg51XXj+eD/setWh19NBr1+//QqMEHSGbmttRaCVV4KQztmA0A1MI5Ml",
|
|
"KdX0m+xjpyjU4VSHUx1OtcKpLPdJZHmHUx1OdTi1F06VgmHGDjGhgKpLheuqq1QsbG3GsmxtZfiQCJmx",
|
|
"azv0BqI8yElbLzuasYGb0uWoKEFr88zxu00DrIU7ug2c//pU9GlPATU7nd4zow9DRw/WKkw7ClDB94qw",
|
|
"6ldU0yQpMwdDvBpOkYM7pudF1jga6RyzhBrUmlM1B/Rh9QrANYrQqayfBHi3VkIYuFgBQxi4Mm+Q9W8u",
|
|
"RlERSjjcVRgKVsdB216ZXr3iEITmEFmxAEp65zoeqLm44zb7puARbIJfob37ZhzJuqw35khFEUeycnrv",
|
|
"eFLHk56w6tJn0f0GC3gAu65FzXXqEyJjm4JyRYvq3qVroIKyuS1kXpSWK6f5SZFK636VwPXJ+RUpvUlR",
|
|
"tq8lmiGFY7F18/A+hgv61uQ9vJKFH+09/MBE1Z5sA6J6ZmviaeEeSh057cjpDyTiWzxoJOIX5KuSsswv",
|
|
"llmqaIQy27QoaIn5wznTjCbsT5eZZ+UEjBm1AWKIB2RUVBTMJKQsT0nCIkywbQsG8MNVvZFUxFiRwiuk",
|
|
"vXFLfRxqEk6+5sOUykkUoQgPTUo6Jd6jeZg9Q3lk4ge5ArcL3NhA7MNV+abtb3qS0gyruSWJd7JKjTTn",
|
|
"91YEs97C0uazd92MfDAIPPTdOk+K0NinwWyf4Tvbe0UtAKIirO6AC4Uk0TthACQaXX4TSfTNCqAeUhTt",
|
|
"QO7ZWTZ2wOGmRSMM//XYqC1WeTfEaNX+KXD050uryoPHotxOp8ckSUR0u+lU2uQCHRE7Upxmai52upxu",
|
|
"3KghQuOyc3NqRA6Kel6uvHpF9H3xREjVDwBt359MPV/pscS+EjmwgOIGMi7JQQVHDfa92BcLNd0TA7Fj",
|
|
"h30d9v0w2GdElgqKGdRgSrNIkQPF/oS+jU2LRM51n4COBo2Q7ghiG6C81RXddT81bb+/rsTqpOLQA7bT",
|
|
"mTxBnUkbSDdgVjNp7KupaOOE7gZ5nm/IjjX8pVmD9Zlb16cXL9miLKeqvEqaos6RBCwv3JRDGPQZuS7f",
|
|
"B4v2Y007kcRtirgJ7GOzONHzuE9sGh1bE7SskG7LTwKxUecda+p8cn84ymPRAguMuzrNBRUqsKMNuWmp",
|
|
"dtlX2dKx7Q55nog+ZaVLmQpJaOGQGDksaoM8OU+ErYPUlFW/tz06xOkQ5zkhjgVbv+ZRWllYaZpgCfjb",
|
|
"ZsrHAoe+FPj49WgqkiLNaTtOdOY6fnO06m+USHcrIudD/xQVHn2PaYaYpdQcvxkdZWNXg78yPs7+nxzQ",
|
|
"6OWmd4vpCEVHKB6Pwzo8rtkq9pFNa6RBli4OzfVKK/qAvZ8UeSBakGmxrociFB32dth7D+y1eEIOLI69",
|
|
"qArHBTiuPTll1bFiH8RW+cSSi0On+DpU7E9oLwKMi3HcA3lsRvnLyAPl7jt5oKMoT8+GalVWBrHRilq+",
|
|
"vEuodQBLm4kJEeWHCnh8WOam3er+eDcHPQdZ9XGcU0WwMzHjMD4jEc3ohCXMwGclMDbgBXlC+Rh4jPVR",
|
|
"n4wH7BNKTbjyf55DdEvYdO20mSJFYuktKQgbuj2be53mSVJ3YC2MMQcKuGKaLYBMbeRQStUtxAiDGLlQ",
|
|
"Fu+xZYdC8c0P4+9Mk+TdFNGm5b33N2oEu9ze28aZMT3PJ58ikX6if+a3lMpPEWb1PbRn9UnJ6FNZdtpa",
|
|
"/zfo8senHmL9THNy+sC1gg4O+j/aMifRfBMBrkBOhUwVwUJIpARaRQ5oHPeNcJbQqFJbKxUL+JRn7o9Y",
|
|
"3PEXRHCCdVSJq6a0Ebhj5q6D/+OHAWKNpS0xgPjdxf+t9t1FAnaRgD+QyzxinsPtJkQi9/JIJAGWSRou",
|
|
"JyHAJh1XrHBDxy6pBJJJwF6xff6VfkJ2jBeBiOVHJRn7sLZN2MgraVDsQTiu92RJSYfGT4nnP2OTjmWe",
|
|
"TYWQukx+FNucYiHBxPwMigwvx4cSEvQdLaooOxcdQz0yIXWfTGmSTGh02ydYxy9hSivr1RPlShtqw7Vk",
|
|
"OyWT4bdIRXY5tpNtEU2Gl+P1ALsuYUEnpvwF6gw4irKBADvIySoJytGkkTtFrfLiG+dP8UiIv5poMMRC",
|
|
"wTifA9h/jN9dekkAtrTk7Cjn+F+S0WUiaPx0kb8L8d+PkSJEECFJcdOU1CDUVZiuY0GldGgIGTa0XwGl",
|
|
"1KpLF5H/QwDUb2BzL0a5lMA1uYRJntBtNLUZNHGIdDvieuI6NSWvnw+XNE28jt7h6llue//7+OLtI0cW",
|
|
"dZD9vbOhWHgies4U4SLGRL3VuKM64fxwdUk46Dshb9vDOyZeaQnuts8jBjXU91cmhnSyATmwrOKSptAn",
|
|
"TL1ls7mei1xBn8xdeec+YdmI8hnmweyeEV3CosdMWPRw6BhDlohlara1O11NkpBVexLDFHOU1dIX1UY/",
|
|
"rIxO/vmBHFxJQaZAdS5hizVvNcCwsrpOz/e8kxdHSa40SBLX7rSA1uqv4TTGq3x5Bgu8sEicf809ANHH",
|
|
"gtYh8eEftZkUg9Us/uerZ78dt3nySqtnU+2sxmM28TWIrjtZy9EcaGKrKW/lMDEoA8hkoQZFhnsJeFgE",
|
|
"zWUI+1ltUSRLcnXDzQnFeQKS/CenknLNuPVpgjqyD8gIaHwoeLJ8TRSdoqQb0SS54daBki9RAO4TLjT5",
|
|
"I1f2ybcaPsFC0IOW3Ot3u/+Oh5Vo8bfvwcOM+MUiIO85XVCW0EkCLTHEIYWFZ+suV5OK1D2QxJejIVAS",
|
|
"pooADyF7lU76IQBukg2iwp9+xKyCT4KXPL+SKG0YSb9hvky/5Hef50UH3x1875M4cxO4PfkyNx43TSsY",
|
|
"7APnpYvPU4Tz7/FsKpJk1ehP92Z62m+m51cX4GEfTGUig4kUtxCuILBdIiyfLT+p2rsINFHCtLjhHD5r",
|
|
"IiESPMKsecsoAUK1hjTT6BuDDy/CNKEzytaIz6Ct7sSmWrB76rht56Df3pnlJAEqa+Beg+3WKGfeg6qN",
|
|
"MX/ounQ2z+dtUEHFtM8hxEbBVQ39uQJJDtxbn00JjVPGX2yxtfRbGDer8PRtXKWsmq+Zr9S6KbSz/f+F",
|
|
"DIsWH9Dld+YKSGL+xAikZlOzNVB7WBwR3o++sPjrUWa4cnviex5fmY47JQhcvpERjkJh3ix+nuJDZ8rv",
|
|
"or/3x/krrFfux3YtSITBwRJoNLex18v2WM7bCVW8E6juY1u3ARn1+xxejishGg8iqvDHLRBXn+xyfMq1",
|
|
"XIZiOczWlgitVe+wTqfzREn18zSC+zFqL3J49OUWls0ysK8j3T9huVPWKTHiFht7RB37oSvn9UPHJpdW",
|
|
"twDkkkkBIWGG0IJpd5DZQeY+hebuAZ3OeLbb6PVdofO7i0iF1avKszoBqXvLPmgl7EB8yP5yEsRMH7q4",
|
|
"vFYhIqcx08Minu9bKVLNpM3UqGZfnQr1R1WhYpmmqsHAq1ipZAlrixZTISM4lDAVMg3bgn8/JoInywF5",
|
|
"k6eZzSwjssNEzAhkIpr3SSxFpkgiIpqQf4Aeawk0tV6yLsmD64Vp+VLK6QykQv2vBKWp1IpcHl+P+yQB",
|
|
"ujB4vwoYu5NM00kChHFilmm3nppPShQZr6w3YkQ5mQABLkWSQDwgQwEK/W21yCOsXEpOjrH2teoXJfGF",
|
|
"LM4xppo2MzyfmWMb2VPrmF0Xg/UAaXgj2HS1tcUyDw2YESoNP7V44RCoNbbPQB9y+KwPWdZGh/ob6Ev4",
|
|
"rM+zTpP6gwSao29O6alOzq8IjWMJShVBTnU+c3I+HBFJ+ax9ToNEzFrp69+a9h2YPX8wc0H+H64uMeOU",
|
|
"4a+Jvdt2AMSpVoeuzngoymcIUUIlFhfORCJmS3IgRQJ98vsxCgov+iRhC0ARw+W/OooSBlwfldLK0T8/",
|
|
"FAKLy5yAAdsiN4KFEVRuubjjpezSKE7nkmo1LkqkdyDdVuGoKUsgxls7qkuVuXWliWGSz2bWYN8SqkQM",
|
|
"+/hCokTaxAvSibagFWFa3fApJkM2O7h1HpLE6yDJFJlKgJV/5J2Qt0RwwvQN39tR8tJst4WLpGlf5CZ4",
|
|
"0XlJdl6SG16SBhHu4x/Z1j/HueV0RLTldRXZ2A3BQfZn+V6VxzFFqGGPrYlolk8SFh3u4ep6hT2fmsPr",
|
|
"kwhefcY+rxYeCOMrNQ2diNx6knDBD1ETBLHfObY1+CF7bQN1I+zQEZG2RATPzVKQlVB/v+RkTuvX8vaw",
|
|
"S3d/e9yfObn1GyyeZUZUNZO7l1Hru9Q555C0ov/Xrkt3l3t75tEIK5zUSakuz3XnFUq7q203JsskMBWb",
|
|
"l2/zqyYMSnvy6N2lTU/5qtdVYe+85dp6yyGgC+mcMIkBJ/KHmNT5ThXSEVx3u512QN0B9bMD6irV9mZz",
|
|
"Cfl7SsGbBOaXC3nUsPz2WNYhWedGtJdDYN9VXuhb837huurFN09ejZKX7BCPOtzqcKvDrT1xa5u/bYdb",
|
|
"HW51uLUvbhXiYkzVfCKojHfnxyxauupzVR3uHdNzM7OmjIOs2l/Hp6MPx1dXoUKSlk8Oy0U8uUKqTEOq",
|
|
"WhSDKnaCxSh7q7qpVEq6fJaFVLuyR3uWcl0hDALTloJHMVO3u5SjQ2zTFV5/5gYwzNjqrrKAh7EWks5g",
|
|
"HSCOLH0N+5yc4XfrNq0yiNiUQYyjW4Jsfp+xBXAyZQnYStrOP3qALJhJUCSjSt0JGVvO4Sj6gFhXGkUy",
|
|
"KWbo9idyneU66EyC8GlX9EhREMoe08BOYuYLBT7YFvYk3Er2CHzQ8FkfZQllvGXxGnt0EBMzgjs34oqc",
|
|
"48X8+93V6ej4+vzdJRm/Pzk5PR2eDj/6BbLQIr5N+r1HnX03q3nU6XfQlEed+2H8wQ2MUwvlQpKMSs3W",
|
|
"LK0eysLDPpJl6XCKUVSJELd5ViakspTk/eitc1xb1dmXoESygJicXy1+LdyEQ6Ie6i63vtjMFOjVjqMW",
|
|
"T7b/5IAxXe7Nlsvkm3qVPbxkub7CVpJhV+k2gD5Vi7YBH4RkTJVuQLeCGpYd1jHjEJPPBPHjA0jDYg3Q",
|
|
"U40DM0UiISVEOlmWLy+IN3EmjA3oftUQJWxuHLejJ4IYnbtlV0F6w5vQU++4EQqK6BbkofM62RmEO8Tm",
|
|
"rq7CIwmddkmD2lS1HIbbSj08QALD+wuh5SKsIPoUxMxOztsjJZAFwdIl6wDXpeAwYbfwwr4rXCE21ScL",
|
|
"keQpFCXTC8VcrUAIDldBPlisFWLzMazThaszspVdjdGXDAP1GSejs5Nffvnl7+7lSQ5evXz5X4cvfz58",
|
|
"+er657+9fvnr65d/+z8vAtxsKkXa28a++utzn/L4QWbWot28F4yzNE9JImYkgQUk5ABjT/qoKO0TlUcR",
|
|
"KNUnd1Ryxs3vaSakplz3CRi4CK0kEbO3ZsDaemKYUgN0r3tm+F5/9wLP8iQ5xBepAiqjOdGAocm+KW2L",
|
|
"dgdwxhINklDzfDAPc+LkWP8MxT9bTHBFZ4y7Ipm5VEKSA4RZwuLQ0WUU4xEf8VnQGWE6pR6xpNPS4Cmi",
|
|
"Aea45DHJSpitkN4L0JJF1cCXKV2wqOZtuXZUoKM52CDDiOKf5nnhum0+N/rufW6WwTTiJCcstdjgo+tn",
|
|
"bgG73yGHwCMRQ0wU00Dcw2Rq1lddTgjrWz1NNihAIVfRLLPZHaYJnQVJmFzQLHtA7BeRBn2IAXppHRgL",
|
|
"RW1vwji1mWd2iWdNXj3hCb/D6+eRF7PPK+iRl/RAUc5VJN35ArLJVqyX/aG184b1/9eSzWySFJJSntPE",
|
|
"KQhwpjJy3w7mjMYqpL7H9BJ2ozbFUhdy1RlB72kEtSlLVjC5AYlBNJiBPpzQ6DbPdrolGL5nm5JIqFSo",
|
|
"Q/cwskLolCUhnvcb6Dd2jnuC+iOR/w64O7VbG0bjsMBBfNDZYCZFnjUruO5Se0uRALHdbNYMcj4kN/nL",
|
|
"l7/A/yK/hKod/mbn6djI8y6dPiuusQAo90PTQukbMORUVTS1YYUZyJQphZX8G5VGr8DV41T0s+vHabbo",
|
|
"ePH7SrkaYyoS1SU6ffLV/bpYpP3S0SPy+uhAnbFgbZ1tdaRt5JEhDxukYUDODBIRNsWyV4pQCURpliSE",
|
|
"KsVmHPM3EaYHTUtKW2JxHu9SbFhsvl+hHsY1zEB2lXo6pH+C5YKeEdkp6wgESU6LMsbY5ydlBQ4h28gb",
|
|
"uf6+FORxxBt7SLvEmzMGSYw1WPOVOqgTbDoa19G4B6FxZeXmnWIVmm0qEd3bX+0kk7BgIlfJkuRZImgM",
|
|
"sbX8VGKBfM/1c9OmSUAdNkQtg6WpB4xHSY7OzfBZAzek9cV3yQX4KAaa72iAaEVmOmPRj2AsonwNa7dp",
|
|
"ybHBLo+dc9toVzZPlI5sDkDnaGSJhnlucZWFHTlYhW48Da9TM5ca4L7P3dK7aKYHh1Z3tCvHtHUmE3Q0",
|
|
"s2B7lOVJ0gh2r0zDe8BvZvt/S+C9v9emWXTNY7PzmWxRYtYc3hpgYkZmSiTMmKpXB9oGoIdseojPxZ2p",
|
|
"aFewej69cD06oO2A9l5AK3iyJGxKmCbMVqmhiQQaL42Yr4BrW1An2Q7OfMG2uZH85sqrFxYbhyLWrnEL",
|
|
"SzTTiMy6OSZLooDH1qEMB7axZy6GFBOuEkgpS0L2m3O7nEcqVKdADuwMO4pjXbLotjRCYfkUhPMnq+bo",
|
|
"VAxPRMXQ+Srck9CNDOWKC+qRMH5boV5o96kQrz/EZNcL5x+mSZcYYS/rflGeIiZ/2FMMpIkxX49WFr2t",
|
|
"YVnmPqwKf58smpEUfPAPMamR7+52ny+6l9acP8RkVRcF8xWFEoT7gM8RgJ2Q9xvoDux+KJb7nH3ynFsQ",
|
|
"CpmJmCnz3KNFspbIoMQOsJc5bwT2o5x3YN9R294FBgIkS6JtcICju1oQmfPdsMZ3KzoctPEHqLbzV5S6",
|
|
"XJneZEnccTeRvJQWWSMyMDYNOzrQ0QEDCIRWYSwMYglT+jBmcgfiG/AdMrk7+BtzDjnjsItTfm0VVaE4",
|
|
"XZfaq1088JBJiLSQS5JRPa9MdRQOB9bzpx8O3El8zzoY2JVo1hgSjOJeXADq1sxciIWpCw3ejYlFEHEH",
|
|
"sT9ARshVtKYFACw/j48GPQcmSUIn9Zo9myHkiZgxHlbymwUA1+ZMUNGfK5AuEqOqCC8U+X2CdUn/8a9r",
|
|
"Eglxy4AIXqSwCCn23+IKHlGvjxPsUOtjGxJJiM1u6VOOyOgSXj2LRHLvDaYkDrYL/DPHWEc+keugd95b",
|
|
"fPnnjjfYB4DFwMmSRAlQmy9ihaK2rrTBu1Aexbd2xqcCy08oOnnj4uw5BW4upfIWdLNwSNvW1lxWIpcR",
|
|
"VGl0ZcuqT7Ikd4l55+Iuoso5IBQhyonI41B98Au3pI6zP2/dn7l9zFRSAZvERiXUWDl+roIkNAp6z6RA",
|
|
"J9xqHn7nTLLSMVRoCsRIckJAB08v9/7ucQyKP8uk+h3bfQAEq3HSIg1agMyDnO22XF5gq8fNXo5zbAm8",
|
|
"we/3yFre5SvrGNM2+wCCV5onmmUJVAoDKJIrI4ViA3k23qqraKamWKkotldoEmlKDxWYRoZLJVgBcVp7",
|
|
"CmM+cC0ZBBOCp+VknXrvgewVGJAwm0mY4b24E16vZrKpikindFsA+AhSsXAZ7F6dHaOLoU2OtSpigST9",
|
|
"gMYp46QErS1x3hdT+piaByNnvDo7xirnW2h36VPo5DDchU1lDxr3alPjdQqJp+ti+Jy96koYcwq+TXmo",
|
|
"739XrLsAX7+7virxckNpsV7/IZNiwRQTaGkKJ7svcLQD9WcueVtYQUBx9NsHaH499AeaMBekb6FMi1vg",
|
|
"fjjTgpi9ovsYSiyHUxppA901TVlIH/1teAImvN/CE1ab7Aj/D4gNWBNkiXhQXHLoCcpmBm0O5w4vtr9E",
|
|
"bePfhdKPW9jArepamKkuROyFE3OUSPXNH2OSCak3fDe77BDdW/Wh36oWNskJKs0r9UW1IAaLinoHmAt6",
|
|
"WwRUKnLeAOew1SNrf8wc27Q/5nun/ekw6pEwCsGLVtQ+29U8pvlOLY9t1KlWfgA/FLxwiKtqwa0A4gjw",
|
|
"0Rf3x/lwLfVfQF1zaZtfFr12Rko7Qh9Kr8UrAz3D0mcd3N4ztMgFTRfywGRpISUoEBSFknaQtsuiWQco",
|
|
"PwiBqwOKtx5Wf7uUWIOJR3uWYV5hcHNduepxPo2zg/gHqDTXPcg6NGqTD7iOStup7V0RXrADte5axhc8",
|
|
"ZDjBFUXNY1yLKtg3kGCzOppIYnNaNMX0Lha/Q0XvsO23LW/cBS78lQMXaohdgt82uf/unCtNbQYvv6b/",
|
|
"d8rjBJTT3CsNWVEAhtmulmGtskfGVNMJVUAU6DzrO2VjTc9o61laszCaCAq+F7IBXK4W+jj8OqWMD1az",
|
|
"hNzSz6tbxrNwVvQnyqW7kjBP3zH9SooIlEKcZevwtbW8EheaTQtf5V1voFrbHbzZU6KzOhdhtjS644XV",
|
|
"kfcuANtxvmfuxVkDg9IQ7HVcLgC6DpMBuD6SQOM2wD0CGu/rq7YG5SqUui9Wz0+s615snWh5n4QU8nYN",
|
|
"x6ki0uLaLoQWGXAWN6tV5uREiMm7DPj5kJwIziHSJEqYedjVBMlQWNU7O+GTC4VgqIpvdK129ye46d4q",
|
|
"NIJKSZfPMlbiGaZVcxBoIa8qijmAblo8rQEkh14+FUh+BAcoD6R5oKh6Co/sMPI9oo/W9t8Ks7qqJV05",
|
|
"tn3LsfE6ffGRlzoD3VmTrXDJXw29jeSU9rWAddeSnt0lk+r04X6lk56eUbfDricgN+9jTW6AXv1dVXgU",
|
|
"47ME9uLfVUH0meLQc2PGHao+M1R1pXLqwL/u9VGVtXMvtmJMfr1c4F4Sd/40MPZ7yfm2lllMOnm/k/c7",
|
|
"MveAZK4oEthC4C8SeB1izGnYOju2RTy8lTuIFqvwVTZ1PzJV0bGFtA5XbjiMRnzM6KvaRG1KfdjNTDeK",
|
|
"lnTRWV3CknuZYx0QbuBUOCIsqydbXlMRzCG6xVLolLwfvTXoJ4FGc8wSWI3ApYQLfvi3z59JAa6BJ8VV",
|
|
"g5JU70dvD4FHIoaYKKYBp9aCZLavz6b1n1aCSn+TEMkFi1ymJBEDmSY0NJUCuaBZ1uve/x3afquqXJiZ",
|
|
"z0W1Bx0qZJQIDobnair1DqPzCBuPXNvOfaFllgNzamhkGZ2YcyQSUqGBOJ9PkhbhSGHvNVvgDGRYOjpx",
|
|
"YefKykC1img2TQ7dLJN2UKlo9CIkII2KuR9RNirm2CEWjaobKApVrNzxilNy8f2dcNRR2fsIRw6YrF3T",
|
|
"n5xkhZ8KmqbCRvm/y4X9o+SvwSBEl2cKX2sLTKO+M+XUJuddy8Jhq6EoLLhPI5jmSeGNLEtGHICvh2DT",
|
|
"nVXph/QO3kd0waTACHoViLaalU2APnQtG8C161HkHsMECSmN5owDeuFWkszfzYGXpUEYVywGQlf5FV5s",
|
|
"x4VxsfgOI7qsZfen+iVSVCF262NL5BpUW6fATIrPS+L6BuC7+Ph8nf+uzC5xHyeWonQOgN/FAXAN2gpY",
|
|
"dj80df+rjNLM6a8CwY9lDNyEMM/L0rvi528A9Oy9MwJ2Tn/fxOlvnSD4qEqdQx594TSFZn5/YVJDJssi",
|
|
"1Drg7meJzqVts9W6YOlCNXB7LY2L/dI5+3Wm9W/l7LcLpZp6+m3FH6aVH4eqcuezRKDnyIU7XH2O3n41",
|
|
"DFvxJJ9k3djZrz3Ts65+3xthv6dsXzj7yU7G72T8jsI9rKNfUwHfOcLsMo6Ni2Y7qNQF/czSPCU8Tycg",
|
|
"iZiudMFF6ZVc8oBTTsJSpn0uOYxrmGF9ri7R4g+WP28FHtvyfhVQevSlbH8efz1qCLQnqz67szIUmaHP",
|
|
"h0TILfw2qg3apQr9y0DwOVcZRHr1YFuH5N1JQwPgTHMtDnMk4EdflKY6V1/bg/hxroXlAmMc4vuDfN9T",
|
|
"QrrYKLH7JAdmEDP9lCYKXvgXoIoNdej2l0G3U46GZiFJzJR1Wa5Aj61QtI6Be+BeNIfo1o3aHufQxdoi",
|
|
"XcdhOpC/bw5FA03kbg56jn5uJSD8pAhL6QzInDrDHkiyAKmY4CunjD2gHz5nYqe3sQfuT22/DuQ7kL8n",
|
|
"lUdAqsL6mhoNAV65CI8YpowzpyhqC+uJmKn2kP5WzJ6iJLX53k7EjCSMw4M8tzeTD7NE21r4yoi5CqiM",
|
|
"5sStLxRqY9q0y3F8zVJQmqaZ2cQUdDS3U+ZcsyS0Har0CCJgCyhuq8WM1gxDBE+WROkYpN1kYC4wEP6O",
|
|
"J0vfJBMhEqC8I0s/glOZrRRsoe/BhM2UcjqDoy80Mkv9GnRAO8bv6jVRWmR9gg5u/cI9s09uWZL0MWpl",
|
|
"AX2S0VxBn+Tc/SHBpgbvk7wQTBvSugtcnp38SdI8s7wUuCa0WKNnvvJbeCrgeYqOgVpgKODKP9v9ZU4Y",
|
|
"fzBHjEeRY1CkO2T8VCZgd8f8sf90xZMuAeczjh8EORUyJZSk6whAjID0EIRpowpT3KwKk4eIrBVmip8g",
|
|
"IWlaC+qZvkU6ZH/O9ag0jeab9aimUqTVV9IeZYc6XO30Bj8MnhxrP55osQtLmnHCPTQFlbJenVasg+4H",
|
|
"MZYX0IiRrHoOlR8qGjObV4lDpCEmWuwB9biy+xgfxzjAkzU8FlzE7jP+yxgfO1Hw+RKBMWgDmjlXsKpT",
|
|
"zpRwJXoe6um3Mn22lR6flN3z0epolus/EzINBOW4DTrbdFdAs6MKj0YVSj/PddT/SREFWjM+2+FRp/Ms",
|
|
"nLbIKZsUChvANZNA0ORGE1tUjzC+8oCKaJK8LqvuuXp7/Up1vT4Rmc2HQk4EVxqKAmNOXrHV+Mo2tuPx",
|
|
"1TnR4hZ4WZtvQN7xZLmefmCVBsFIQIyTVRE9zAM3CMW4jvEMHrGaH04QSpqEHx/Z7b0jFT8wqShpwTsO",
|
|
"h2oudIEFmRQLppjg1igbTH+gUir1YWxWuV3ON+2GMO2yIrUONhpfHI+uCdVaskmuq54L1px4fH2MpO/y",
|
|
"wwWQWLIFbE84pzjNJGW7qtGNi2YbxM13IKsmDIpjMSOMjs+HNnTlVe9rVz+uo0L31mUIV2cXSAFfm8XU",
|
|
"NoF/l0K7A/YO2H8YYF+n9N7cCyEzrOvTJJ50bU2PG1m6HyJ2eNjh4YO8koUkcZGlwY+Lnjjw1vynw7oO",
|
|
"6zqsezCsCzBCn9fktieQwcpmroyPiJt9v2cnumjnD+C/uOQReiLLfNLr96bsc6/fA+6CQVzc1GM4Jnao",
|
|
"/hdMMTDKeRWjnQvigQHCPkEY7JMp+9wnFgL7ReDei+1obs2ru3Jx6jmQKJcSeKnuckbcVb75Go1Bf2mR",
|
|
"ywgI41NhNc1WFYY9g37RK3NvlxYsfnK5kmtathogbNV45rEIGz1GcGh2DFybTYFala66Y3pu/sUqtZ60",
|
|
"IDNJuSaQwAIT2RyY4V+QDGTKlPLWhi9ERrOOR6zbYMbfUbOhKHuFakizcLePJ22G6LDgR6iEc2oRxmAQ",
|
|
"Al4qYgjXcMg5FmLZ6Znw3rV7HLRyRWEGF2aOUnTwgQuugrg1PHwiq07i+os/rhyAUTJlCTgOt02wyrNE",
|
|
"0Koa0c/83mMzzGpnY8zN8EX9RsdgD1SeZUJqRf7IZn3yRwazPsn4rE9mbNonkzTrE7WY9ckdTLI+0Ww6",
|
|
"7RO6YNNgESM7axPNyRuqbPo7ZFjImbEvxLjSb5EUL80TzTIq9dFUyPSwyAS3Gq2eKQ6PcfOgz2unazdh",
|
|
"Hm1CplT3XvcmjFOMNd14RFb28W83+kcv1ndOBF1Cu2dR9eQ567gM3pbUctujw0jkDYpMkASNRlN0+MY+",
|
|
"9tlRekUV8fq+1+p7ZTOotUzOZ6d5Ann5vmupC3N4XXmLjq48qZCPXNVzItp/N633gVoLGkUoKiIZ8ZSZ",
|
|
"NIKUrTR5OKEKYiL4RFAZW7cxv7zmVvVomgu7jR26C7OK0im0KDjZaS062tCMNnznmh3PODFZtYLIWuXN",
|
|
"gj7VpJ6jL9xVzN9aPMQ6sBjaVaNbkyUpuodrhiBFulw1216U3AxfGdP3ZFx97aqHdKTmLyqGlEVNAli+",
|
|
"o5gJonFRCLrQ16gMIjZlEIexuvKYee4o/T0qDtiHTPdw6SjGt6cYtrQKIn6db3seMFRHc58GOqZlofyC",
|
|
"eKg8mhOqCKSUJWi7lyLxVFMxQz4p0vFI76PTmOkdr6MzBkmsrHLZReZ2D6OO9vzIBuWY6bCsUrxIFiLJ",
|
|
"Uzj6Yv972dir/gO2/1D22kVWTJuidrady+Cim8ZLZRbVsbv8Ln+hLF9OynZB3A5aNr1iN8K3bctd2Yk+",
|
|
"uFYdnPxYRXMW5b22Tf5WhYhHS5VhJ6lpcn0HY5ut9LhdvozObebbqC5raBQis4mYiUbuyCdCpUIVPjKm",
|
|
"m81Wf3X5W2kc3qDOb83oOwEbux9lfFY/1N2+IgEY/lvTGb5Z7gLzbHQHmNgj8drRZZQIDkfWs/vIpVze",
|
|
"6hE4wh42pOmkSNG8L9Hb6Vk3glSURSytwc2w8D4xPa3PeUVm7JwCO+r2eNRtdGIgH/PC12o/2t+9CFU1",
|
|
"zGx7DVWRalg8aB4Nqd7hlxU2mUeV3VXtQdXh0hPEpX2eQXwv0M3TbNszqAaypm2XxKbV3eRphlLONE+S",
|
|
"4n7Wk1Y1uKaEKW2vVTW9rbeVLt2ltX4v1nBJkQOkoJg/dpkBFrrpEy7M8ysGrhlN1ItmV6noooXsNaYL",
|
|
"6K6vXcZPugDEuf3RrZLNM/ddUl67o/dVO8FjyscuM+aKo3eCcScYf4s0mZzAZ6Y047OWMoYEjExuxLRs",
|
|
"4uuOWT13M/YsERNaCjtaUq6mLrxY7QCYEjbUEZ2IXDfhk+/KPsfYZY88LtiyI5YdsdyAfbOan79Paonz",
|
|
"NEuwShXE7XHQxduSXJn/Z3wqXPk9pwA40ELTpE9yBXGfTCXALul1MVUrUr4LJz9M1YqWd8j4l1BDGLD7",
|
|
"cDa2dN5BG8baQrxNWsApDMpZX4BcJr3XvaMIddq9rx+//v8BAAD//w==",
|
|
}
|
|
|
|
// decodeSpec returns the embedded OpenAPI spec as raw JSON bytes,
|
|
// after base64-decoding and flate-decompressing the embedded blob.
|
|
func decodeSpec() ([]byte, error) {
|
|
encoded := strings.Join(swaggerSpec, "")
|
|
compressed, err := base64.StdEncoding.DecodeString(encoded)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error base64 decoding spec: %w", err)
|
|
}
|
|
zr := flate.NewReader(bytes.NewReader(compressed))
|
|
var buf bytes.Buffer
|
|
if _, err := buf.ReadFrom(zr); err != nil {
|
|
return nil, fmt.Errorf("read flate: %w", err)
|
|
}
|
|
if err := zr.Close(); err != nil {
|
|
return nil, fmt.Errorf("close flate reader: %w", err)
|
|
}
|
|
|
|
return buf.Bytes(), nil
|
|
}
|
|
|
|
var rawSpec = decodeSpecCached()
|
|
|
|
// a naive cache of the decoded OpenAPI spec
|
|
func decodeSpecCached() func() ([]byte, error) {
|
|
data, err := decodeSpec()
|
|
return func() ([]byte, error) {
|
|
return data, err
|
|
}
|
|
}
|
|
|
|
// Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
|
|
func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) {
|
|
res := make(map[string]func() ([]byte, error))
|
|
if len(pathToFile) > 0 {
|
|
res[pathToFile] = rawSpec
|
|
}
|
|
|
|
return res
|
|
}
|
|
|
|
// GetSpec returns the OpenAPI specification corresponding to the generated
|
|
// code in this file. External references in the spec are resolved through
|
|
// PathToRawSpec; externally-referenced files must be embedded in their
|
|
// corresponding Go packages (via the import-mapping feature). URL-based
|
|
// external refs are not supported.
|
|
func GetSpec() (swagger *openapi3.T, err error) {
|
|
resolvePath := PathToRawSpec("")
|
|
|
|
loader := openapi3.NewLoader()
|
|
loader.IsExternalRefsAllowed = true
|
|
loader.ReadFromURIFunc = func(loader *openapi3.Loader, url *url.URL) ([]byte, error) {
|
|
pathToFile := url.String()
|
|
pathToFile = path.Clean(pathToFile)
|
|
getSpec, ok := resolvePath[pathToFile]
|
|
if !ok {
|
|
err1 := fmt.Errorf("path not found: %s", pathToFile)
|
|
return nil, err1
|
|
}
|
|
return getSpec()
|
|
}
|
|
var specData []byte
|
|
specData, err = rawSpec()
|
|
if err != nil {
|
|
return
|
|
}
|
|
swagger, err = loader.LoadFromData(specData)
|
|
if err != nil {
|
|
return
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI
|
|
// specification: decompressed but not unmarshaled. External references
|
|
// are not resolved here; the bytes are the spec exactly as embedded by
|
|
// codegen. The result is cached at package init time, so repeated calls
|
|
// are cheap.
|
|
func GetSpecJSON() ([]byte, error) {
|
|
return rawSpec()
|
|
}
|
|
|
|
// GetSwagger returns the OpenAPI specification corresponding to the
|
|
// generated code in this file.
|
|
//
|
|
// Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger
|
|
// to openapi3.T. Use [GetSpec] instead. This wrapper is retained for
|
|
// backwards compatibility.
|
|
func GetSwagger() (*openapi3.T, error) {
|
|
return GetSpec()
|
|
}
|