models

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashicorpCloudConsul20210204ACLToken

type HashicorpCloudConsul20210204ACLToken struct {

	// accessor_id is the Consul Accessor ID for this ACL token.
	AccessorID string `json:"accessor_id,omitempty"`

	// secret_id is the Consul Secret ID for this ACL Token, it is sensitive.
	SecretID string `json:"secret_id,omitempty"`
}

HashicorpCloudConsul20210204ACLToken ACLToken is represents a single ACL token for a cluster.

swagger:model hashicorp.cloud.consul_20210204.ACLToken

func (*HashicorpCloudConsul20210204ACLToken) ContextValidate added in v0.23.0

func (m *HashicorpCloudConsul20210204ACLToken) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this hashicorp cloud consul 20210204 ACL token based on context it is used

func (*HashicorpCloudConsul20210204ACLToken) MarshalBinary

func (m *HashicorpCloudConsul20210204ACLToken) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ACLToken) UnmarshalBinary

func (m *HashicorpCloudConsul20210204ACLToken) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ACLToken) Validate

Validate validates this hashicorp cloud consul 20210204 ACL token

type HashicorpCloudConsul20210204CapacityConfig

type HashicorpCloudConsul20210204CapacityConfig struct {

	// scale is the number of nodes this Consul cluster is provisioned with.
	Scale int32 `json:"scale,omitempty"`

	// size is the t-shirt size representation of the VM that this Consul cluster
	// is provisioned with.
	Size *HashicorpCloudConsul20210204CapacityConfigSize `json:"size,omitempty"`
}

HashicorpCloudConsul20210204CapacityConfig CapacityConfig configures capacity settings like number of nodes and vm sizes.

swagger:model hashicorp.cloud.consul_20210204.CapacityConfig

func (*HashicorpCloudConsul20210204CapacityConfig) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 capacity config based on the context it is used

func (*HashicorpCloudConsul20210204CapacityConfig) MarshalBinary

func (m *HashicorpCloudConsul20210204CapacityConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CapacityConfig) UnmarshalBinary

func (m *HashicorpCloudConsul20210204CapacityConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CapacityConfig) Validate

Validate validates this hashicorp cloud consul 20210204 capacity config

type HashicorpCloudConsul20210204CapacityConfigSize

type HashicorpCloudConsul20210204CapacityConfigSize string

HashicorpCloudConsul20210204CapacityConfigSize Size represents the different VM sizes a Consul cluster can be provisioned with. These are bucketed as "t-shirt" sizes which each correspond to a specific instance type depending on the cloud provider.

swagger:model hashicorp.cloud.consul_20210204.CapacityConfig.Size

const (

	// HashicorpCloudConsul20210204CapacityConfigSizeUNSET captures enum value "UNSET"
	HashicorpCloudConsul20210204CapacityConfigSizeUNSET HashicorpCloudConsul20210204CapacityConfigSize = "UNSET"

	// HashicorpCloudConsul20210204CapacityConfigSizeXSMALL captures enum value "X_SMALL"
	HashicorpCloudConsul20210204CapacityConfigSizeXSMALL HashicorpCloudConsul20210204CapacityConfigSize = "X_SMALL"

	// HashicorpCloudConsul20210204CapacityConfigSizeSMALL captures enum value "SMALL"
	HashicorpCloudConsul20210204CapacityConfigSizeSMALL HashicorpCloudConsul20210204CapacityConfigSize = "SMALL"

	// HashicorpCloudConsul20210204CapacityConfigSizeMEDIUM captures enum value "MEDIUM"
	HashicorpCloudConsul20210204CapacityConfigSizeMEDIUM HashicorpCloudConsul20210204CapacityConfigSize = "MEDIUM"

	// HashicorpCloudConsul20210204CapacityConfigSizeLARGE captures enum value "LARGE"
	HashicorpCloudConsul20210204CapacityConfigSizeLARGE HashicorpCloudConsul20210204CapacityConfigSize = "LARGE"
)

func (HashicorpCloudConsul20210204CapacityConfigSize) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 capacity config size based on context it is used

func (HashicorpCloudConsul20210204CapacityConfigSize) Pointer added in v0.23.0

Pointer returns a pointer to a freshly-allocated HashicorpCloudConsul20210204CapacityConfigSize.

func (HashicorpCloudConsul20210204CapacityConfigSize) Validate

Validate validates this hashicorp cloud consul 20210204 capacity config size

type HashicorpCloudConsul20210204CidrRange added in v0.34.0

type HashicorpCloudConsul20210204CidrRange struct {

	// The IPv4 or IPv6 address range including prefix.
	// E.g. 172.25.16.0/24 or 2001:d00::/24
	Address string `json:"address,omitempty"`

	// An optional description of the IP address range.
	Description string `json:"description,omitempty"`
}

HashicorpCloudConsul20210204CidrRange CidrRange specifies an IP address and prefix in CIDR format.

swagger:model hashicorp.cloud.consul_20210204.CidrRange

func (*HashicorpCloudConsul20210204CidrRange) ContextValidate added in v0.34.0

func (m *HashicorpCloudConsul20210204CidrRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this hashicorp cloud consul 20210204 cidr range based on context it is used

func (*HashicorpCloudConsul20210204CidrRange) MarshalBinary added in v0.34.0

func (m *HashicorpCloudConsul20210204CidrRange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CidrRange) UnmarshalBinary added in v0.34.0

func (m *HashicorpCloudConsul20210204CidrRange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CidrRange) Validate added in v0.34.0

Validate validates this hashicorp cloud consul 20210204 cidr range

type HashicorpCloudConsul20210204Cluster

type HashicorpCloudConsul20210204Cluster struct {

	// config holds the configuration of the cluster.
	Config *HashicorpCloudConsul20210204ClusterConfig `json:"config,omitempty"`

	// consul_version is the current Consul version the server nodes are running.
	ConsulVersion string `json:"consul_version,omitempty"`

	// created_at is the timestamp of when the cluster was first created.
	// Output only.
	// Read Only: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// dns_names holds the cluster's public and private DNS names.
	// Output only.
	// Read Only: true
	DNSNames *HashicorpCloudConsul20210204ClusterDNSNames `json:"dns_names,omitempty"`

	// id is ID of the Consul cluster.
	ID string `json:"id,omitempty"`

	// location is the location of the cluster.
	Location *cloud.HashicorpCloudLocationLocation `json:"location,omitempty"`

	// resource_id is the unique identifier for the consul cluster
	ResourceID string `json:"resource_id,omitempty"`

	// state is the current state of the cluster.
	// Output only.
	// Read Only: true
	State *HashicorpCloudConsul20210204ClusterState `json:"state,omitempty"`
}

HashicorpCloudConsul20210204Cluster Cluster represents a single Consul cluster.

swagger:model hashicorp.cloud.consul_20210204.Cluster

func (*HashicorpCloudConsul20210204Cluster) ContextValidate added in v0.23.0

func (m *HashicorpCloudConsul20210204Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hashicorp cloud consul 20210204 cluster based on the context it is used

func (*HashicorpCloudConsul20210204Cluster) MarshalBinary

func (m *HashicorpCloudConsul20210204Cluster) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204Cluster) UnmarshalBinary

func (m *HashicorpCloudConsul20210204Cluster) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204Cluster) Validate

Validate validates this hashicorp cloud consul 20210204 cluster

type HashicorpCloudConsul20210204ClusterConfig

type HashicorpCloudConsul20210204ClusterConfig struct {

	// auto_hvn_to_hvn_peering is only used together with the field
	// consul_config.primary when creating secondary clusters in a federation.
	// Enable auto_hvn_to_hvn_peering if the secondary HVN should be peered
	// automatically to every other cluster's HVN in the federation. If left
	// disabled, the peering has to be done manually.
	AutoHvnToHvnPeering bool `json:"auto_hvn_to_hvn_peering,omitempty"`

	// capacity_config contains the configuration for the cluster size settings.
	CapacityConfig *HashicorpCloudConsul20210204CapacityConfig `json:"capacity_config,omitempty"`

	// consul_config allows altering certain fields relating to the Consul
	// cluster’s configuration.
	ConsulConfig *HashicorpCloudConsul20210204ConsulConfig `json:"consul_config,omitempty"`

	// maintenance_config contains the configuration for maintenance events such
	// as auto upgrades.
	MaintenanceConfig HashicorpCloudConsul20210204MaintenanceConfig `json:"maintenance_config,omitempty"`

	// NetworkConfig contains the network to launch the Consul cluster into.
	NetworkConfig *HashicorpCloudConsul20210204NetworkConfig `json:"network_config,omitempty"`

	// primary is readonly and contains a link to the primary consul cluster in a
	// federation. If this link points to itself, this cluster is the primary of a
	// federation. If the link points to another cluster, this cluster is a
	// secondary in a federation. Use consul_config.primary to federate clusters.
	// The difference between these two fields is that this field is present on
	// primaries and secondaries. Whereas consul_config.primary is only present on
	// secondaries. Output only.
	// Read Only: true
	Primary *cloud.HashicorpCloudLocationLink `json:"primary,omitempty"`

	// snapshot_config contains the configuration for how often to snapshot and
	// how many to maintain.
	SnapshotConfig HashicorpCloudConsul20210204SnapshotConfig `json:"snapshot_config,omitempty"`

	// tier is the type of tier this Consul cluster should be provisioned as.
	Tier *HashicorpCloudConsul20210204ClusterConfigTier `json:"tier,omitempty"`
}

HashicorpCloudConsul20210204ClusterConfig ClusterConfig holds the configuration for a Consul cluster.

swagger:model hashicorp.cloud.consul_20210204.ClusterConfig

func (*HashicorpCloudConsul20210204ClusterConfig) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 cluster config based on the context it is used

func (*HashicorpCloudConsul20210204ClusterConfig) MarshalBinary

func (m *HashicorpCloudConsul20210204ClusterConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ClusterConfig) UnmarshalBinary

func (m *HashicorpCloudConsul20210204ClusterConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ClusterConfig) Validate

Validate validates this hashicorp cloud consul 20210204 cluster config

type HashicorpCloudConsul20210204ClusterConfigTier

type HashicorpCloudConsul20210204ClusterConfigTier string

HashicorpCloudConsul20210204ClusterConfigTier Tier represents the different tiers a Consul cluster can be provisioned as.

swagger:model hashicorp.cloud.consul_20210204.ClusterConfig.Tier

const (

	// HashicorpCloudConsul20210204ClusterConfigTierUNSET captures enum value "UNSET"
	HashicorpCloudConsul20210204ClusterConfigTierUNSET HashicorpCloudConsul20210204ClusterConfigTier = "UNSET"

	// HashicorpCloudConsul20210204ClusterConfigTierDEVELOPMENT captures enum value "DEVELOPMENT"
	HashicorpCloudConsul20210204ClusterConfigTierDEVELOPMENT HashicorpCloudConsul20210204ClusterConfigTier = "DEVELOPMENT"

	// HashicorpCloudConsul20210204ClusterConfigTierSTANDARD captures enum value "STANDARD"
	HashicorpCloudConsul20210204ClusterConfigTierSTANDARD HashicorpCloudConsul20210204ClusterConfigTier = "STANDARD"

	// HashicorpCloudConsul20210204ClusterConfigTierPLUS captures enum value "PLUS"
	HashicorpCloudConsul20210204ClusterConfigTierPLUS HashicorpCloudConsul20210204ClusterConfigTier = "PLUS"

	// HashicorpCloudConsul20210204ClusterConfigTierPREMIUM captures enum value "PREMIUM"
	HashicorpCloudConsul20210204ClusterConfigTierPREMIUM HashicorpCloudConsul20210204ClusterConfigTier = "PREMIUM"
)

func (HashicorpCloudConsul20210204ClusterConfigTier) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 cluster config tier based on context it is used

func (HashicorpCloudConsul20210204ClusterConfigTier) Pointer added in v0.23.0

Pointer returns a pointer to a freshly-allocated HashicorpCloudConsul20210204ClusterConfigTier.

func (HashicorpCloudConsul20210204ClusterConfigTier) Validate

Validate validates this hashicorp cloud consul 20210204 cluster config tier

type HashicorpCloudConsul20210204ClusterDNSNames

type HashicorpCloudConsul20210204ClusterDNSNames struct {

	// private is the DNS name pointing to the cluster's private IP addresses.
	Private string `json:"private,omitempty"`

	// public is the DNS name pointing to the cluster's public IP addresses.
	Public string `json:"public,omitempty"`
}

HashicorpCloudConsul20210204ClusterDNSNames DNSNames holds all of the cluster's DNS names.

swagger:model hashicorp.cloud.consul_20210204.Cluster.DNSNames

func (*HashicorpCloudConsul20210204ClusterDNSNames) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 cluster DNS names based on context it is used

func (*HashicorpCloudConsul20210204ClusterDNSNames) MarshalBinary

func (m *HashicorpCloudConsul20210204ClusterDNSNames) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ClusterDNSNames) UnmarshalBinary

func (m *HashicorpCloudConsul20210204ClusterDNSNames) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ClusterDNSNames) Validate

Validate validates this hashicorp cloud consul 20210204 cluster DNS names

type HashicorpCloudConsul20210204ClusterState

type HashicorpCloudConsul20210204ClusterState string

HashicorpCloudConsul20210204ClusterState State is the state of the Consul cluster. Note that this state represents the abstract Consul cluster itself, not necessarily whether Consul cluster is currently available or not.

  • UNSET: UNSET is a sentinel zero value so that an uninitialized value can be

detected.

  • PENDING: PENDING is the state the cluster is in while it is waiting to be created.
  • CREATING: CREATING is the state the cluster is in while it is being provisioned for

the first time.

  • RUNNING: RUNNING is the steady state while the cluster is running.
  • FAILED: FAILED is a failure state in which the cluster is unavailable and may

required an operator restore action to recover.

  • UPDATING: UPDATING is the state the cluster is in while undergoing a version

update.

  • RESTORING: RESTORING is the state the cluster is in while restoring from a snapshot.
  • DELETING: DELETING is the state the cluster is in while it is being de-provisioned.
  • DELETED: DELETED is the state the cluster is in when it has been de-provisioned. At

this point, the cluster is eligible for garbage collection.

swagger:model hashicorp.cloud.consul_20210204.Cluster.State

const (

	// HashicorpCloudConsul20210204ClusterStateUNSET captures enum value "UNSET"
	HashicorpCloudConsul20210204ClusterStateUNSET HashicorpCloudConsul20210204ClusterState = "UNSET"

	// HashicorpCloudConsul20210204ClusterStatePENDING captures enum value "PENDING"
	HashicorpCloudConsul20210204ClusterStatePENDING HashicorpCloudConsul20210204ClusterState = "PENDING"

	// HashicorpCloudConsul20210204ClusterStateCREATING captures enum value "CREATING"
	HashicorpCloudConsul20210204ClusterStateCREATING HashicorpCloudConsul20210204ClusterState = "CREATING"

	// HashicorpCloudConsul20210204ClusterStateRUNNING captures enum value "RUNNING"
	HashicorpCloudConsul20210204ClusterStateRUNNING HashicorpCloudConsul20210204ClusterState = "RUNNING"

	// HashicorpCloudConsul20210204ClusterStateFAILED captures enum value "FAILED"
	HashicorpCloudConsul20210204ClusterStateFAILED HashicorpCloudConsul20210204ClusterState = "FAILED"

	// HashicorpCloudConsul20210204ClusterStateUPDATING captures enum value "UPDATING"
	HashicorpCloudConsul20210204ClusterStateUPDATING HashicorpCloudConsul20210204ClusterState = "UPDATING"

	// HashicorpCloudConsul20210204ClusterStateRESTORING captures enum value "RESTORING"
	HashicorpCloudConsul20210204ClusterStateRESTORING HashicorpCloudConsul20210204ClusterState = "RESTORING"

	// HashicorpCloudConsul20210204ClusterStateDELETING captures enum value "DELETING"
	HashicorpCloudConsul20210204ClusterStateDELETING HashicorpCloudConsul20210204ClusterState = "DELETING"

	// HashicorpCloudConsul20210204ClusterStateDELETED captures enum value "DELETED"
	HashicorpCloudConsul20210204ClusterStateDELETED HashicorpCloudConsul20210204ClusterState = "DELETED"
)

func NewHashicorpCloudConsul20210204ClusterState added in v0.23.0

func NewHashicorpCloudConsul20210204ClusterState(value HashicorpCloudConsul20210204ClusterState) *HashicorpCloudConsul20210204ClusterState

func (HashicorpCloudConsul20210204ClusterState) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 cluster state based on context it is used

func (HashicorpCloudConsul20210204ClusterState) Pointer added in v0.23.0

Pointer returns a pointer to a freshly-allocated HashicorpCloudConsul20210204ClusterState.

func (HashicorpCloudConsul20210204ClusterState) Validate

Validate validates this hashicorp cloud consul 20210204 cluster state

type HashicorpCloudConsul20210204ClusterTelemetry

type HashicorpCloudConsul20210204ClusterTelemetry struct {

	// client_count is the number of consul agents connected to this consul
	// cluster
	ClientCount int32 `json:"client_count,omitempty"`
}

HashicorpCloudConsul20210204ClusterTelemetry hashicorp cloud consul 20210204 cluster telemetry

swagger:model hashicorp.cloud.consul_20210204.ClusterTelemetry

func (*HashicorpCloudConsul20210204ClusterTelemetry) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 cluster telemetry based on context it is used

func (*HashicorpCloudConsul20210204ClusterTelemetry) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ClusterTelemetry) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ClusterTelemetry) Validate

Validate validates this hashicorp cloud consul 20210204 cluster telemetry

type HashicorpCloudConsul20210204ConsulConfig

type HashicorpCloudConsul20210204ConsulConfig struct {

	// connect_enabled toggles Consul Connect on the Consul servers.
	ConnectEnabled bool `json:"connect_enabled,omitempty"`

	// datacenter sets the datacenter the Consul servers will be running in. If
	// not set, a default value will be used.
	//
	// https://www.consul.io/docs/agent/options.html#datacenter
	Datacenter string `json:"datacenter,omitempty"`

	// primary contains a link to the primary consul cluster in a federation.
	Primary *cloud.HashicorpCloudLocationLink `json:"primary,omitempty"`
}

HashicorpCloudConsul20210204ConsulConfig ConsulConfig exposes user settable configurations for a Consul cluster.

swagger:model hashicorp.cloud.consul_20210204.ConsulConfig

func (*HashicorpCloudConsul20210204ConsulConfig) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 consul config based on the context it is used

func (*HashicorpCloudConsul20210204ConsulConfig) MarshalBinary

func (m *HashicorpCloudConsul20210204ConsulConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ConsulConfig) UnmarshalBinary

func (m *HashicorpCloudConsul20210204ConsulConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ConsulConfig) Validate

Validate validates this hashicorp cloud consul 20210204 consul config

type HashicorpCloudConsul20210204CreateCustomerMasterACLTokenRequest

type HashicorpCloudConsul20210204CreateCustomerMasterACLTokenRequest struct {

	// id is the ID of the cluster to create a token on.
	ID string `json:"id,omitempty"`

	// location is the location of the cluster.
	Location *cloud.HashicorpCloudLocationLocation `json:"location,omitempty"`
}

HashicorpCloudConsul20210204CreateCustomerMasterACLTokenRequest CreateCustomerMasterACLTokenRequest is used to create a master token on a specific cluster.

swagger:model hashicorp.cloud.consul_20210204.CreateCustomerMasterACLTokenRequest

func (*HashicorpCloudConsul20210204CreateCustomerMasterACLTokenRequest) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 create customer master ACL token request based on the context it is used

func (*HashicorpCloudConsul20210204CreateCustomerMasterACLTokenRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateCustomerMasterACLTokenRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateCustomerMasterACLTokenRequest) Validate

Validate validates this hashicorp cloud consul 20210204 create customer master ACL token request

type HashicorpCloudConsul20210204CreateCustomerMasterACLTokenResponse

type HashicorpCloudConsul20210204CreateCustomerMasterACLTokenResponse struct {

	// acl_token is the newly created master token.
	ACLToken *HashicorpCloudConsul20210204ACLToken `json:"acl_token,omitempty"`
}

HashicorpCloudConsul20210204CreateCustomerMasterACLTokenResponse CreateCustomerMasterACLTokenResponse contains the newly created customer master ACL token.

swagger:model hashicorp.cloud.consul_20210204.CreateCustomerMasterACLTokenResponse

func (*HashicorpCloudConsul20210204CreateCustomerMasterACLTokenResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 create customer master ACL token response based on the context it is used

func (*HashicorpCloudConsul20210204CreateCustomerMasterACLTokenResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateCustomerMasterACLTokenResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateCustomerMasterACLTokenResponse) Validate

Validate validates this hashicorp cloud consul 20210204 create customer master ACL token response

type HashicorpCloudConsul20210204CreateRequest

type HashicorpCloudConsul20210204CreateRequest struct {

	// Cluster is the Consul Cluster to create.
	Cluster *HashicorpCloudConsul20210204Cluster `json:"cluster,omitempty"`
}

HashicorpCloudConsul20210204CreateRequest hashicorp cloud consul 20210204 create request

swagger:model hashicorp.cloud.consul_20210204.CreateRequest

func (*HashicorpCloudConsul20210204CreateRequest) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 create request based on the context it is used

func (*HashicorpCloudConsul20210204CreateRequest) MarshalBinary

func (m *HashicorpCloudConsul20210204CreateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateRequest) UnmarshalBinary

func (m *HashicorpCloudConsul20210204CreateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateRequest) Validate

Validate validates this hashicorp cloud consul 20210204 create request

type HashicorpCloudConsul20210204CreateResponse

type HashicorpCloudConsul20210204CreateResponse struct {

	// cluster is the newly created Consul cluster.
	Cluster *HashicorpCloudConsul20210204Cluster `json:"cluster,omitempty"`

	// operation tracks the asynchronous creation of the Consul cluster.
	Operation *cloud.HashicorpCloudOperationOperation `json:"operation,omitempty"`
}

HashicorpCloudConsul20210204CreateResponse hashicorp cloud consul 20210204 create response

swagger:model hashicorp.cloud.consul_20210204.CreateResponse

func (*HashicorpCloudConsul20210204CreateResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 create response based on the context it is used

func (*HashicorpCloudConsul20210204CreateResponse) MarshalBinary

func (m *HashicorpCloudConsul20210204CreateResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateResponse) UnmarshalBinary

func (m *HashicorpCloudConsul20210204CreateResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateResponse) Validate

Validate validates this hashicorp cloud consul 20210204 create response

type HashicorpCloudConsul20210204CreateSnapshotRequest

type HashicorpCloudConsul20210204CreateSnapshotRequest struct {

	// name identifies the name of the snapshot.
	Name string `json:"name,omitempty"`

	// resource identifies what resource to take a snapshot from.
	Resource *cloud.HashicorpCloudLocationLink `json:"resource,omitempty"`
}

HashicorpCloudConsul20210204CreateSnapshotRequest CreateSnapshotRequest is a request to create a new snapshot.

swagger:model hashicorp.cloud.consul_20210204.CreateSnapshotRequest

func (*HashicorpCloudConsul20210204CreateSnapshotRequest) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 create snapshot request based on the context it is used

func (*HashicorpCloudConsul20210204CreateSnapshotRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateSnapshotRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateSnapshotRequest) Validate

Validate validates this hashicorp cloud consul 20210204 create snapshot request

type HashicorpCloudConsul20210204CreateSnapshotResponse

type HashicorpCloudConsul20210204CreateSnapshotResponse struct {

	// operation represents the newly created snapshot.
	Operation *cloud.HashicorpCloudOperationOperation `json:"operation,omitempty"`

	// snapshot_id is the identifer of the newly created snapshot.
	SnapshotID string `json:"snapshot_id,omitempty"`
}

HashicorpCloudConsul20210204CreateSnapshotResponse CreateSnapshotResponse is a response from creating a snapshot.

swagger:model hashicorp.cloud.consul_20210204.CreateSnapshotResponse

func (*HashicorpCloudConsul20210204CreateSnapshotResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 create snapshot response based on the context it is used

func (*HashicorpCloudConsul20210204CreateSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204CreateSnapshotResponse) Validate

Validate validates this hashicorp cloud consul 20210204 create snapshot response

type HashicorpCloudConsul20210204DeleteResponse

type HashicorpCloudConsul20210204DeleteResponse struct {

	// operation is the operation used to track the deletion of the Consul
	// cluster.
	Operation *cloud.HashicorpCloudOperationOperation `json:"operation,omitempty"`
}

HashicorpCloudConsul20210204DeleteResponse hashicorp cloud consul 20210204 delete response

swagger:model hashicorp.cloud.consul_20210204.DeleteResponse

func (*HashicorpCloudConsul20210204DeleteResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 delete response based on the context it is used

func (*HashicorpCloudConsul20210204DeleteResponse) MarshalBinary

func (m *HashicorpCloudConsul20210204DeleteResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204DeleteResponse) UnmarshalBinary

func (m *HashicorpCloudConsul20210204DeleteResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204DeleteResponse) Validate

Validate validates this hashicorp cloud consul 20210204 delete response

type HashicorpCloudConsul20210204DeleteSnapshotResponse

type HashicorpCloudConsul20210204DeleteSnapshotResponse struct {

	// operation represents the deletion of the requested snapshot.
	Operation *cloud.HashicorpCloudOperationOperation `json:"operation,omitempty"`
}

HashicorpCloudConsul20210204DeleteSnapshotResponse DeleteSnapshotResponse is a response to deleting a snapshot.

swagger:model hashicorp.cloud.consul_20210204.DeleteSnapshotResponse

func (*HashicorpCloudConsul20210204DeleteSnapshotResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 delete snapshot response based on the context it is used

func (*HashicorpCloudConsul20210204DeleteSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204DeleteSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204DeleteSnapshotResponse) Validate

Validate validates this hashicorp cloud consul 20210204 delete snapshot response

type HashicorpCloudConsul20210204GetClientConfigResponse

type HashicorpCloudConsul20210204GetClientConfigResponse struct {

	// ca_file is the body of an intermediate certificate authority file.
	// Format: byte
	CaFile strfmt.Base64 `json:"ca_file,omitempty"`

	// consul_config_file is the body of JSON config file.
	// Format: byte
	ConsulConfigFile strfmt.Base64 `json:"consul_config_file,omitempty"`

	// file_bundle_zip is the contents of a zip archive containing the other
	// two files, if the request specified it.
	// Format: byte
	FileBundleZip strfmt.Base64 `json:"file_bundle_zip,omitempty"`
}

HashicorpCloudConsul20210204GetClientConfigResponse GetClientConfigResponse the client config files for a Consul agent.

swagger:model hashicorp.cloud.consul_20210204.GetClientConfigResponse

func (*HashicorpCloudConsul20210204GetClientConfigResponse) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 get client config response based on context it is used

func (*HashicorpCloudConsul20210204GetClientConfigResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204GetClientConfigResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204GetClientConfigResponse) Validate

Validate validates this hashicorp cloud consul 20210204 get client config response

type HashicorpCloudConsul20210204GetClusterTelemetryResponse

type HashicorpCloudConsul20210204GetClusterTelemetryResponse struct {

	// telemetry is the cluster telemetry associated with this cluster
	Telemetry *HashicorpCloudConsul20210204ClusterTelemetry `json:"telemetry,omitempty"`
}

HashicorpCloudConsul20210204GetClusterTelemetryResponse hashicorp cloud consul 20210204 get cluster telemetry response

swagger:model hashicorp.cloud.consul_20210204.GetClusterTelemetryResponse

func (*HashicorpCloudConsul20210204GetClusterTelemetryResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 get cluster telemetry response based on the context it is used

func (*HashicorpCloudConsul20210204GetClusterTelemetryResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204GetClusterTelemetryResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204GetClusterTelemetryResponse) Validate

Validate validates this hashicorp cloud consul 20210204 get cluster telemetry response

type HashicorpCloudConsul20210204GetResponse

type HashicorpCloudConsul20210204GetResponse struct {

	// cluster is the retrieved Consul cluster.
	Cluster *HashicorpCloudConsul20210204Cluster `json:"cluster,omitempty"`
}

HashicorpCloudConsul20210204GetResponse hashicorp cloud consul 20210204 get response

swagger:model hashicorp.cloud.consul_20210204.GetResponse

func (*HashicorpCloudConsul20210204GetResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 get response based on the context it is used

func (*HashicorpCloudConsul20210204GetResponse) MarshalBinary

func (m *HashicorpCloudConsul20210204GetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204GetResponse) UnmarshalBinary

func (m *HashicorpCloudConsul20210204GetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204GetResponse) Validate

Validate validates this hashicorp cloud consul 20210204 get response

type HashicorpCloudConsul20210204GetSnapshotResponse

type HashicorpCloudConsul20210204GetSnapshotResponse struct {

	// snapshot is the requested snapshot.
	Snapshot *HashicorpCloudConsul20210204Snapshot `json:"snapshot,omitempty"`
}

HashicorpCloudConsul20210204GetSnapshotResponse GetSnapshotResponse is a response for retrieving a snapshot's information.

swagger:model hashicorp.cloud.consul_20210204.GetSnapshotResponse

func (*HashicorpCloudConsul20210204GetSnapshotResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 get snapshot response based on the context it is used

func (*HashicorpCloudConsul20210204GetSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204GetSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204GetSnapshotResponse) Validate

Validate validates this hashicorp cloud consul 20210204 get snapshot response

type HashicorpCloudConsul20210204ListResponse

type HashicorpCloudConsul20210204ListResponse struct {

	// clusters are the retrieved Consul clusters.
	Clusters []*HashicorpCloudConsul20210204Cluster `json:"clusters"`

	// Pagination contains the pagination tokens for a subsequent request.
	Pagination *cloud.HashicorpCloudCommonPaginationResponse `json:"pagination,omitempty"`
}

HashicorpCloudConsul20210204ListResponse hashicorp cloud consul 20210204 list response

swagger:model hashicorp.cloud.consul_20210204.ListResponse

func (*HashicorpCloudConsul20210204ListResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 list response based on the context it is used

func (*HashicorpCloudConsul20210204ListResponse) MarshalBinary

func (m *HashicorpCloudConsul20210204ListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ListResponse) UnmarshalBinary

func (m *HashicorpCloudConsul20210204ListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ListResponse) Validate

Validate validates this hashicorp cloud consul 20210204 list response

type HashicorpCloudConsul20210204ListSnapshotsResponse

type HashicorpCloudConsul20210204ListSnapshotsResponse struct {

	// Pagination contains the pagination tokens for a subsequent request.
	Pagination *cloud.HashicorpCloudCommonPaginationResponse `json:"pagination,omitempty"`

	// snapshots is a list of available snapshots.
	Snapshots []*HashicorpCloudConsul20210204Snapshot `json:"snapshots"`
}

HashicorpCloudConsul20210204ListSnapshotsResponse ListSnapshotsResponse is a response from listing snapshots.

swagger:model hashicorp.cloud.consul_20210204.ListSnapshotsResponse

func (*HashicorpCloudConsul20210204ListSnapshotsResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 list snapshots response based on the context it is used

func (*HashicorpCloudConsul20210204ListSnapshotsResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ListSnapshotsResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ListSnapshotsResponse) Validate

Validate validates this hashicorp cloud consul 20210204 list snapshots response

type HashicorpCloudConsul20210204ListUpgradeVersionsResponse

type HashicorpCloudConsul20210204ListUpgradeVersionsResponse struct {

	// versions
	Versions []*HashicorpCloudConsul20210204Version `json:"versions"`
}

HashicorpCloudConsul20210204ListUpgradeVersionsResponse hashicorp cloud consul 20210204 list upgrade versions response

swagger:model hashicorp.cloud.consul_20210204.ListUpgradeVersionsResponse

func (*HashicorpCloudConsul20210204ListUpgradeVersionsResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 list upgrade versions response based on the context it is used

func (*HashicorpCloudConsul20210204ListUpgradeVersionsResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ListUpgradeVersionsResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ListUpgradeVersionsResponse) Validate

Validate validates this hashicorp cloud consul 20210204 list upgrade versions response

type HashicorpCloudConsul20210204ListVersionsResponse

type HashicorpCloudConsul20210204ListVersionsResponse struct {

	// versions
	Versions []*HashicorpCloudConsul20210204Version `json:"versions"`
}

HashicorpCloudConsul20210204ListVersionsResponse hashicorp cloud consul 20210204 list versions response

swagger:model hashicorp.cloud.consul_20210204.ListVersionsResponse

func (*HashicorpCloudConsul20210204ListVersionsResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 list versions response based on the context it is used

func (*HashicorpCloudConsul20210204ListVersionsResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ListVersionsResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204ListVersionsResponse) Validate

Validate validates this hashicorp cloud consul 20210204 list versions response

type HashicorpCloudConsul20210204MaintenanceConfig

type HashicorpCloudConsul20210204MaintenanceConfig interface{}

HashicorpCloudConsul20210204MaintenanceConfig MaintenanceConfig configures when maintenance events should be taken on the Consul cluster.

swagger:model hashicorp.cloud.consul_20210204.MaintenanceConfig

type HashicorpCloudConsul20210204NetworkConfig

type HashicorpCloudConsul20210204NetworkConfig struct {

	// A list of IP addresses used to restrict access to a cluster.
	IPAllowlist []*HashicorpCloudConsul20210204CidrRange `json:"ip_allowlist"`

	// network is the link of the HVN to launch the Consul cluster in.
	// The network cannot be updated once the cluster is created.
	Network *cloud.HashicorpCloudLocationLink `json:"network,omitempty"`

	// private indicates if this cluster's instances should be configured in a
	// non-externally accessible way.
	Private bool `json:"private,omitempty"`
}

HashicorpCloudConsul20210204NetworkConfig NetworkConfig configures the network of the Consul cluster.

swagger:model hashicorp.cloud.consul_20210204.NetworkConfig

func (*HashicorpCloudConsul20210204NetworkConfig) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 network config based on the context it is used

func (*HashicorpCloudConsul20210204NetworkConfig) MarshalBinary

func (m *HashicorpCloudConsul20210204NetworkConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204NetworkConfig) UnmarshalBinary

func (m *HashicorpCloudConsul20210204NetworkConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204NetworkConfig) Validate

Validate validates this hashicorp cloud consul 20210204 network config

type HashicorpCloudConsul20210204PlatformType

type HashicorpCloudConsul20210204PlatformType string

HashicorpCloudConsul20210204PlatformType PlatformType refers to the type of platform that the cluster was created with ex. HCP or HCS It determines which version list is returned. NOTSET will default to the HCP list.

swagger:model hashicorp.cloud.consul_20210204.PlatformType

const (

	// HashicorpCloudConsul20210204PlatformTypeNOTSET captures enum value "NOTSET"
	HashicorpCloudConsul20210204PlatformTypeNOTSET HashicorpCloudConsul20210204PlatformType = "NOTSET"

	// HashicorpCloudConsul20210204PlatformTypeHCP captures enum value "HCP"
	HashicorpCloudConsul20210204PlatformTypeHCP HashicorpCloudConsul20210204PlatformType = "HCP"

	// HashicorpCloudConsul20210204PlatformTypeHCS captures enum value "HCS"
	HashicorpCloudConsul20210204PlatformTypeHCS HashicorpCloudConsul20210204PlatformType = "HCS"
)

func NewHashicorpCloudConsul20210204PlatformType added in v0.23.0

func NewHashicorpCloudConsul20210204PlatformType(value HashicorpCloudConsul20210204PlatformType) *HashicorpCloudConsul20210204PlatformType

func (HashicorpCloudConsul20210204PlatformType) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 platform type based on context it is used

func (HashicorpCloudConsul20210204PlatformType) Pointer added in v0.23.0

Pointer returns a pointer to a freshly-allocated HashicorpCloudConsul20210204PlatformType.

func (HashicorpCloudConsul20210204PlatformType) Validate

Validate validates this hashicorp cloud consul 20210204 platform type

type HashicorpCloudConsul20210204RestoreSnapshotRequest

type HashicorpCloudConsul20210204RestoreSnapshotRequest struct {

	// cluster_id represents the cluster to restore to.
	ClusterID string `json:"cluster_id,omitempty"`

	// location specifies the location to the cluster is in.
	Location *cloud.HashicorpCloudLocationLocation `json:"location,omitempty"`

	// snapshot represents the snapshot to restore.
	Snapshot *cloud.HashicorpCloudLocationLink `json:"snapshot,omitempty"`

	// take_snapshot determines if a snapshot should be taken before performing a restore.
	TakeSnapshot bool `json:"take_snapshot,omitempty"`
}

HashicorpCloudConsul20210204RestoreSnapshotRequest RestoreSnapshotRequest is a request to restore a snapshot to a cluster.

swagger:model hashicorp.cloud.consul_20210204.RestoreSnapshotRequest

func (*HashicorpCloudConsul20210204RestoreSnapshotRequest) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 restore snapshot request based on the context it is used

func (*HashicorpCloudConsul20210204RestoreSnapshotRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204RestoreSnapshotRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204RestoreSnapshotRequest) Validate

Validate validates this hashicorp cloud consul 20210204 restore snapshot request

type HashicorpCloudConsul20210204RestoreSnapshotResponse

type HashicorpCloudConsul20210204RestoreSnapshotResponse struct {

	// operation represents the restore operation acting on the specified cluster.
	Operation *cloud.HashicorpCloudOperationOperation `json:"operation,omitempty"`
}

HashicorpCloudConsul20210204RestoreSnapshotResponse RestoreSnapshotResponse is a response to restoring a snapshot.

swagger:model hashicorp.cloud.consul_20210204.RestoreSnapshotResponse

func (*HashicorpCloudConsul20210204RestoreSnapshotResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 restore snapshot response based on the context it is used

func (*HashicorpCloudConsul20210204RestoreSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204RestoreSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204RestoreSnapshotResponse) Validate

Validate validates this hashicorp cloud consul 20210204 restore snapshot response

type HashicorpCloudConsul20210204Snapshot

type HashicorpCloudConsul20210204Snapshot struct {

	// created_at is the time that this snapshot was requested.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// finished_at is the time that this snapshot was finished.
	// Format: date-time
	FinishedAt strfmt.DateTime `json:"finished_at,omitempty"`

	// id is the snapshot’s ID.
	ID string `json:"id,omitempty"`

	// location is the snapshot’s location.
	Location *cloud.HashicorpCloudLocationLocation `json:"location,omitempty"`

	// meta is the snapshot metadata.
	Meta *HashicorpCloudConsul20210204SnapshotSnapshotMeta `json:"meta,omitempty"`

	// name is the name of the snapshot.
	Name string `json:"name,omitempty"`

	// resource is the resource the snapshot was taken from.
	Resource *cloud.HashicorpCloudLocationLink `json:"resource,omitempty"`

	// running_operation_id is the ID of an operation performing work related to the current state of the snapshot.
	RunningOperationID string `json:"running_operation_id,omitempty"`

	// self_link is a link referring to this snapshot.
	SelfLink *cloud.HashicorpCloudLocationLink `json:"self_link,omitempty"`

	// state represents the current status for this snapshot.
	State *HashicorpCloudConsul20210204SnapshotSnapshotState `json:"state,omitempty"`

	// type represents the type of this snapshot.
	Type *HashicorpCloudConsul20210204SnapshotSnapshotType `json:"type,omitempty"`
}

HashicorpCloudConsul20210204Snapshot Snapshot is our representation needed to back-up a cluster.

swagger:model hashicorp.cloud.consul_20210204.Snapshot

func (*HashicorpCloudConsul20210204Snapshot) ContextValidate added in v0.23.0

func (m *HashicorpCloudConsul20210204Snapshot) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hashicorp cloud consul 20210204 snapshot based on the context it is used

func (*HashicorpCloudConsul20210204Snapshot) MarshalBinary

func (m *HashicorpCloudConsul20210204Snapshot) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204Snapshot) UnmarshalBinary

func (m *HashicorpCloudConsul20210204Snapshot) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204Snapshot) Validate

Validate validates this hashicorp cloud consul 20210204 snapshot

type HashicorpCloudConsul20210204SnapshotConfig

type HashicorpCloudConsul20210204SnapshotConfig interface{}

HashicorpCloudConsul20210204SnapshotConfig SnapshotConfig configures how often cluster snapshot should be taken and how long they should be retained.

swagger:model hashicorp.cloud.consul_20210204.SnapshotConfig

type HashicorpCloudConsul20210204SnapshotSnapshotMeta

type HashicorpCloudConsul20210204SnapshotSnapshotMeta struct {

	// additional_meta contains additional metadata of the snapshot.
	AdditionalMeta map[string]string `json:"additional_meta,omitempty"`

	// product_version is the version of the product of the cluster at creation.
	ProductVersion string `json:"product_version,omitempty"`

	// restored_at notes the time that this snapshot was restored.
	// Format: date-time
	RestoredAt strfmt.DateTime `json:"restored_at,omitempty"`

	// size is the size of the snapshot in bytes.
	Size string `json:"size,omitempty"`
}

HashicorpCloudConsul20210204SnapshotSnapshotMeta hashicorp cloud consul 20210204 snapshot snapshot meta

swagger:model hashicorp.cloud.consul_20210204.Snapshot.SnapshotMeta

func (*HashicorpCloudConsul20210204SnapshotSnapshotMeta) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 snapshot snapshot meta based on context it is used

func (*HashicorpCloudConsul20210204SnapshotSnapshotMeta) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204SnapshotSnapshotMeta) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204SnapshotSnapshotMeta) Validate

Validate validates this hashicorp cloud consul 20210204 snapshot snapshot meta

type HashicorpCloudConsul20210204SnapshotSnapshotState

type HashicorpCloudConsul20210204SnapshotSnapshotState string

HashicorpCloudConsul20210204SnapshotSnapshotState SnapshotState represents the different states a snapshot can be in.

  • QUEUED: QUEUED is used for snapshots that haven’t started and are waiting for a cluster operation to finish before starting.
  • CREATING: CREATING is used for snapshots that are creating.
  • CREATING_FAILED: CREATING_FAILED is used for snapshots that failed creating.
  • READY: READY is used for snapshots that are ready to be restored.
  • DELETING: DELETING is used for snapshots that are deleting.
  • DELETING_FAILED: DELETING_FAILED is used for snapshots that failed deleting.
  • RESTORING: RESTORING is used for snapshots that are being restored.

Progress can be tracked using cluster operations.

swagger:model hashicorp.cloud.consul_20210204.Snapshot.SnapshotState

const (

	// HashicorpCloudConsul20210204SnapshotSnapshotStateSTATEUNSET captures enum value "STATE_UNSET"
	HashicorpCloudConsul20210204SnapshotSnapshotStateSTATEUNSET HashicorpCloudConsul20210204SnapshotSnapshotState = "STATE_UNSET"

	// HashicorpCloudConsul20210204SnapshotSnapshotStateQUEUED captures enum value "QUEUED"
	HashicorpCloudConsul20210204SnapshotSnapshotStateQUEUED HashicorpCloudConsul20210204SnapshotSnapshotState = "QUEUED"

	// HashicorpCloudConsul20210204SnapshotSnapshotStateCREATING captures enum value "CREATING"
	HashicorpCloudConsul20210204SnapshotSnapshotStateCREATING HashicorpCloudConsul20210204SnapshotSnapshotState = "CREATING"

	// HashicorpCloudConsul20210204SnapshotSnapshotStateCREATINGFAILED captures enum value "CREATING_FAILED"
	HashicorpCloudConsul20210204SnapshotSnapshotStateCREATINGFAILED HashicorpCloudConsul20210204SnapshotSnapshotState = "CREATING_FAILED"

	// HashicorpCloudConsul20210204SnapshotSnapshotStateREADY captures enum value "READY"
	HashicorpCloudConsul20210204SnapshotSnapshotStateREADY HashicorpCloudConsul20210204SnapshotSnapshotState = "READY"

	// HashicorpCloudConsul20210204SnapshotSnapshotStateDELETING captures enum value "DELETING"
	HashicorpCloudConsul20210204SnapshotSnapshotStateDELETING HashicorpCloudConsul20210204SnapshotSnapshotState = "DELETING"

	// HashicorpCloudConsul20210204SnapshotSnapshotStateDELETINGFAILED captures enum value "DELETING_FAILED"
	HashicorpCloudConsul20210204SnapshotSnapshotStateDELETINGFAILED HashicorpCloudConsul20210204SnapshotSnapshotState = "DELETING_FAILED"

	// HashicorpCloudConsul20210204SnapshotSnapshotStateRESTORING captures enum value "RESTORING"
	HashicorpCloudConsul20210204SnapshotSnapshotStateRESTORING HashicorpCloudConsul20210204SnapshotSnapshotState = "RESTORING"
)

func (HashicorpCloudConsul20210204SnapshotSnapshotState) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 snapshot snapshot state based on context it is used

func (HashicorpCloudConsul20210204SnapshotSnapshotState) Pointer added in v0.23.0

Pointer returns a pointer to a freshly-allocated HashicorpCloudConsul20210204SnapshotSnapshotState.

func (HashicorpCloudConsul20210204SnapshotSnapshotState) Validate

Validate validates this hashicorp cloud consul 20210204 snapshot snapshot state

type HashicorpCloudConsul20210204SnapshotSnapshotType

type HashicorpCloudConsul20210204SnapshotSnapshotType string

HashicorpCloudConsul20210204SnapshotSnapshotType SnapshotType represents the type of a snapshot.

  • AUTOMATIC: AUTOMATIC is used for snapshots generated automatically, like a snapshot before update.
  • MANUAL: MANUAL is used for snapshots that are initiated by a user's actions.
  • SCHEDULED: SCHEDULED is used for snapshots that are generated based on a schedule.

swagger:model hashicorp.cloud.consul_20210204.Snapshot.SnapshotType

const (

	// HashicorpCloudConsul20210204SnapshotSnapshotTypeTYPEUNSET captures enum value "TYPE_UNSET"
	HashicorpCloudConsul20210204SnapshotSnapshotTypeTYPEUNSET HashicorpCloudConsul20210204SnapshotSnapshotType = "TYPE_UNSET"

	// HashicorpCloudConsul20210204SnapshotSnapshotTypeAUTOMATIC captures enum value "AUTOMATIC"
	HashicorpCloudConsul20210204SnapshotSnapshotTypeAUTOMATIC HashicorpCloudConsul20210204SnapshotSnapshotType = "AUTOMATIC"

	// HashicorpCloudConsul20210204SnapshotSnapshotTypeMANUAL captures enum value "MANUAL"
	HashicorpCloudConsul20210204SnapshotSnapshotTypeMANUAL HashicorpCloudConsul20210204SnapshotSnapshotType = "MANUAL"

	// HashicorpCloudConsul20210204SnapshotSnapshotTypeSCHEDULED captures enum value "SCHEDULED"
	HashicorpCloudConsul20210204SnapshotSnapshotTypeSCHEDULED HashicorpCloudConsul20210204SnapshotSnapshotType = "SCHEDULED"
)

func (HashicorpCloudConsul20210204SnapshotSnapshotType) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 snapshot snapshot type based on context it is used

func (HashicorpCloudConsul20210204SnapshotSnapshotType) Pointer added in v0.23.0

Pointer returns a pointer to a freshly-allocated HashicorpCloudConsul20210204SnapshotSnapshotType.

func (HashicorpCloudConsul20210204SnapshotSnapshotType) Validate

Validate validates this hashicorp cloud consul 20210204 snapshot snapshot type

type HashicorpCloudConsul20210204UpdateResponse

type HashicorpCloudConsul20210204UpdateResponse struct {

	// operation is used to track the progress of the asynchronous update.
	// Depending on what was updated in the configuration the update may
	// require deploying new server nodes which may take some time to complete.
	Operation *cloud.HashicorpCloudOperationOperation `json:"operation,omitempty"`
}

HashicorpCloudConsul20210204UpdateResponse hashicorp cloud consul 20210204 update response

swagger:model hashicorp.cloud.consul_20210204.UpdateResponse

func (*HashicorpCloudConsul20210204UpdateResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 update response based on the context it is used

func (*HashicorpCloudConsul20210204UpdateResponse) MarshalBinary

func (m *HashicorpCloudConsul20210204UpdateResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204UpdateResponse) UnmarshalBinary

func (m *HashicorpCloudConsul20210204UpdateResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204UpdateResponse) Validate

Validate validates this hashicorp cloud consul 20210204 update response

type HashicorpCloudConsul20210204UpdateSnapshotResponse

type HashicorpCloudConsul20210204UpdateSnapshotResponse struct {

	// snapshot is the updated snapshot.
	Snapshot *HashicorpCloudConsul20210204Snapshot `json:"snapshot,omitempty"`
}

HashicorpCloudConsul20210204UpdateSnapshotResponse UpdateSnapshotResponse is a response to updating a snapshot.

swagger:model hashicorp.cloud.consul_20210204.UpdateSnapshotResponse

func (*HashicorpCloudConsul20210204UpdateSnapshotResponse) ContextValidate added in v0.23.0

ContextValidate validate this hashicorp cloud consul 20210204 update snapshot response based on the context it is used

func (*HashicorpCloudConsul20210204UpdateSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204UpdateSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204UpdateSnapshotResponse) Validate

Validate validates this hashicorp cloud consul 20210204 update snapshot response

type HashicorpCloudConsul20210204Version

type HashicorpCloudConsul20210204Version struct {

	// status defines the version availability.
	Status *HashicorpCloudConsul20210204VersionStatus `json:"status,omitempty"`

	// version is the string representation of the Consul version.
	Version string `json:"version,omitempty"`
}

HashicorpCloudConsul20210204Version hashicorp cloud consul 20210204 version

swagger:model hashicorp.cloud.consul_20210204.Version

func (*HashicorpCloudConsul20210204Version) ContextValidate added in v0.23.0

func (m *HashicorpCloudConsul20210204Version) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hashicorp cloud consul 20210204 version based on the context it is used

func (*HashicorpCloudConsul20210204Version) MarshalBinary

func (m *HashicorpCloudConsul20210204Version) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HashicorpCloudConsul20210204Version) UnmarshalBinary

func (m *HashicorpCloudConsul20210204Version) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HashicorpCloudConsul20210204Version) Validate

Validate validates this hashicorp cloud consul 20210204 version

type HashicorpCloudConsul20210204VersionStatus

type HashicorpCloudConsul20210204VersionStatus string

HashicorpCloudConsul20210204VersionStatus - AVAILABLE: AVAILABLE represents a version that is generally available but no longer the preferred/recommended version.

  • RECOMMENDED: RECOMMENDED represents a version that is generally available

and recommended by HashiCorp.

  • PREVIEW: PREVIEW represents a version that is not generally available.

swagger:model hashicorp.cloud.consul_20210204.Version.Status

const (

	// HashicorpCloudConsul20210204VersionStatusAVAILABLE captures enum value "AVAILABLE"
	HashicorpCloudConsul20210204VersionStatusAVAILABLE HashicorpCloudConsul20210204VersionStatus = "AVAILABLE"

	// HashicorpCloudConsul20210204VersionStatusRECOMMENDED captures enum value "RECOMMENDED"
	HashicorpCloudConsul20210204VersionStatusRECOMMENDED HashicorpCloudConsul20210204VersionStatus = "RECOMMENDED"

	// HashicorpCloudConsul20210204VersionStatusPREVIEW captures enum value "PREVIEW"
	HashicorpCloudConsul20210204VersionStatusPREVIEW HashicorpCloudConsul20210204VersionStatus = "PREVIEW"
)

func (HashicorpCloudConsul20210204VersionStatus) ContextValidate added in v0.23.0

ContextValidate validates this hashicorp cloud consul 20210204 version status based on context it is used

func (HashicorpCloudConsul20210204VersionStatus) Pointer added in v0.23.0

Pointer returns a pointer to a freshly-allocated HashicorpCloudConsul20210204VersionStatus.

func (HashicorpCloudConsul20210204VersionStatus) Validate

Validate validates this hashicorp cloud consul 20210204 version status

Source Files

Jump to

Keyboard shortcuts

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