models

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleProtobufAny

type GoogleProtobufAny struct {

	// A URL/resource name that uniquely identifies the type of the serialized
	// protocol buffer message. This string must contain at least
	// one "/" character. The last segment of the URL's path must represent
	// the fully qualified name of the type (as in
	// `path/google.protobuf.Duration`). The name should be in a canonical form
	// (e.g., leading "." is not accepted).
	//
	// In practice, teams usually precompile into the binary all types that they
	// expect it to use in the context of Any. However, for URLs which use the
	// scheme `http`, `https`, or no scheme, one can optionally set up a type
	// server that maps type URLs to message definitions as follows:
	//
	// * If no scheme is provided, `https` is assumed.
	// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
	//   value in binary format, or produce an error.
	// * Applications are allowed to cache lookup results based on the
	//   URL, or have them precompiled into a binary to avoid any
	//   lookup. Therefore, binary compatibility needs to be preserved
	//   on changes to types. (Use versioned type names to manage
	//   breaking changes.)
	//
	// Note: this functionality is not currently available in the official
	// protobuf release, and it is not used for type URLs beginning with
	// type.googleapis.com.
	//
	// Schemes other than `http`, `https` (or the empty scheme) might be
	// used with implementation specific semantics.
	TypeURL string `json:"typeUrl,omitempty"`

	// Must be a valid serialized protocol buffer of the above specified type.
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

GoogleProtobufAny `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message.

Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type.

Example 1: Pack and unpack a message in C++.

Foo foo = ...;
Any any;
any.PackFrom(foo);
...
if (any.UnpackTo(&foo)) {
  ...
}

Example 2: Pack and unpack a message in Java.

   Foo foo = ...;
   Any any = Any.pack(foo);
   ...
   if (any.is(Foo.class)) {
     foo = any.unpack(Foo.class);
   }

Example 3: Pack and unpack a message in Python.

   foo = Foo(...)
   any = Any()
   any.Pack(foo)
   ...
   if any.Is(Foo.DESCRIPTOR):
     any.Unpack(foo)
     ...

Example 4: Pack and unpack a message in Go

    foo := &pb.Foo{...}
    any, err := ptypes.MarshalAny(foo)
    ...
    foo := &pb.Foo{}
    if err := ptypes.UnmarshalAny(any, foo); err != nil {
      ...
    }

The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example "foo.bar.com/x/y.z" will yield type name "y.z".

JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example:

package google.profile;
message Person {
  string first_name = 1;
  string last_name = 2;
}

{
  "@type": "type.googleapis.com/google.profile.Person",
  "firstName": <string>,
  "lastName": <string>
}

If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]):

{
  "@type": "type.googleapis.com/google.protobuf.Duration",
  "value": "1.212s"
}

swagger:model google.protobuf.Any

func (*GoogleProtobufAny) MarshalBinary

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

MarshalBinary interface implementation

func (*GoogleProtobufAny) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GoogleProtobufAny) Validate

func (m *GoogleProtobufAny) Validate(formats strfmt.Registry) error

Validate validates this google protobuf any

type GoogleProtobufEmpty

type GoogleProtobufEmpty interface{}

GoogleProtobufEmpty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:

service Foo {
      rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    }

The JSON representation for `Empty` is empty JSON object `{}`.

swagger:model google.protobuf.Empty

type GoogleRPCStatus

type GoogleRPCStatus struct {

	// The status code, which should be an enum value of
	// [google.rpc.Code][google.rpc.Code].
	Code int32 `json:"code,omitempty"`

	// A list of messages that carry the error details.  There is a common set of
	// message types for APIs to use.
	Details []*GoogleProtobufAny `json:"details"`

	// A developer-facing error message, which should be in English. Any
	// user-facing error message should be localized and sent in the
	// [google.rpc.Status.details][google.rpc.Status.details] field, or localized
	// by the client.
	Message string `json:"message,omitempty"`
}

GoogleRPCStatus The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model is designed to be:

- Simple to use and understand for most users - Flexible enough to meet unexpected needs

Overview

The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of [google.rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` that can be used for common error conditions.

Language mapping

The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.

Other uses

The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.

Example uses of this error model include:

  • Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors.
  • Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting.
  • Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response.
  • Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message.
  • Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.

swagger:model google.rpc.Status

func (*GoogleRPCStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*GoogleRPCStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GoogleRPCStatus) Validate

func (m *GoogleRPCStatus) Validate(formats strfmt.Registry) error

Validate validates this google rpc status

type GrpcGatewayRuntimeError added in v0.3.0

type GrpcGatewayRuntimeError struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*GoogleProtobufAny `json:"details"`

	// error
	Error string `json:"error,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

GrpcGatewayRuntimeError grpc gateway runtime error

swagger:model grpc.gateway.runtime.Error

func (*GrpcGatewayRuntimeError) MarshalBinary added in v0.3.0

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

MarshalBinary interface implementation

func (*GrpcGatewayRuntimeError) UnmarshalBinary added in v0.3.0

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

UnmarshalBinary interface implementation

func (*GrpcGatewayRuntimeError) Validate added in v0.3.0

func (m *GrpcGatewayRuntimeError) Validate(formats strfmt.Registry) error

Validate validates this grpc gateway runtime error

type HashicorpCloudConsulamaAmaACLToken

type HashicorpCloudConsulamaAmaACLToken struct {

	// accessor Id
	AccessorID string `json:"accessorId,omitempty"`

	// secret Id
	SecretID string `json:"secretId,omitempty"`
}

HashicorpCloudConsulamaAmaACLToken ACLToken represents the Consul 1.4+ ACL token we just created.

swagger:model hashicorp.cloud.consulama.ama.ACLToken

func (*HashicorpCloudConsulamaAmaACLToken) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaACLToken) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaACLToken) Validate

Validate validates this hashicorp cloud consulama ama ACL token

type HashicorpCloudConsulamaAmaAuditLoggingUpdate added in v0.3.0

type HashicorpCloudConsulamaAmaAuditLoggingUpdate struct {

	// enabled should be set to TRUE to enable audit logging.
	Enabled HashicorpCloudConsulamaAmaBoolean `json:"enabled,omitempty"`

	// storage_container_url is the URL of an Azure blob container to write
	// the Consul audit logs to. The vmss_identity must have write permissions
	// for this storage container.
	StorageContainerURL string `json:"storageContainerUrl,omitempty"`
}

HashicorpCloudConsulamaAmaAuditLoggingUpdate AuditLoggingUpdate contains the details required to configure Consul audit logging for the cluster.

swagger:model hashicorp.cloud.consulama.ama.AuditLoggingUpdate

func (*HashicorpCloudConsulamaAmaAuditLoggingUpdate) MarshalBinary added in v0.3.0

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaAuditLoggingUpdate) UnmarshalBinary added in v0.3.0

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaAuditLoggingUpdate) Validate added in v0.3.0

Validate validates this hashicorp cloud consulama ama audit logging update

type HashicorpCloudConsulamaAmaBilledUsage

type HashicorpCloudConsulamaAmaBilledUsage struct {

	// cost is the total cost billed for the time frame.
	Cost float64 `json:"cost,omitempty"`

	// details contains usage by plan. Because there can be multiple settings
	// applied to one time frame, this needs to be a list.
	Details []*HashicorpCloudConsulamaAmaBilledUsagePlanUsage `json:"details"`

	// end is the end time of the time frame.
	End string `json:"end,omitempty"`

	// start is the start time of the time frame.
	Start string `json:"start,omitempty"`
}

HashicorpCloudConsulamaAmaBilledUsage BilledUsage describes the usage that was recorded and billed for a specific time frame.

swagger:model hashicorp.cloud.consulama.ama.BilledUsage

func (*HashicorpCloudConsulamaAmaBilledUsage) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBilledUsage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBilledUsage) Validate

Validate validates this hashicorp cloud consulama ama billed usage

type HashicorpCloudConsulamaAmaBilledUsagePlanUsage

type HashicorpCloudConsulamaAmaBilledUsagePlanUsage struct {

	// hours describes how many hours were consumed on this plan.
	Hours float64 `json:"hours,omitempty"`

	// plan is the name of the billing plan.
	Plan string `json:"plan,omitempty"`
}

HashicorpCloudConsulamaAmaBilledUsagePlanUsage PlanUsage describes the usage billed based on a single plan.

swagger:model hashicorp.cloud.consulama.ama.BilledUsage.PlanUsage

func (*HashicorpCloudConsulamaAmaBilledUsagePlanUsage) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBilledUsagePlanUsage) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBilledUsagePlanUsage) Validate

Validate validates this hashicorp cloud consulama ama billed usage plan usage

type HashicorpCloudConsulamaAmaBillingSettings

type HashicorpCloudConsulamaAmaBillingSettings struct {

	// active_since is the time since when the billing settings are active.
	ActiveSince string `json:"activeSince,omitempty"`

	// plan is the name of the billing plan. This is a simplified version of the
	// internal plan identifier:
	//    e.g. "annual" instead of "production-annual-through-hc"
	Plan string `json:"plan,omitempty"`

	// prices represents the prices of the current plan.
	Prices *HashicorpCloudConsulamaAmaBillingSettingsPrices `json:"prices,omitempty"`
}

HashicorpCloudConsulamaAmaBillingSettings BillingSettings is the representation of the billing settings of a managed app that is exposed to users.

swagger:model hashicorp.cloud.consulama.ama.BillingSettings

func (*HashicorpCloudConsulamaAmaBillingSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBillingSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBillingSettings) Validate

Validate validates this hashicorp cloud consulama ama billing settings

type HashicorpCloudConsulamaAmaBillingSettingsPrices

type HashicorpCloudConsulamaAmaBillingSettingsPrices struct {

	// dimensions contains all dimensions and their prices that are applied
	// to apps on this billing plan.
	Dimensions []*HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimension `json:"dimensions"`

	// hourly is the flat hourly fee billed for the usage of this plan
	// independent of other billing dimensions.
	Hourly float64 `json:"hourly,omitempty"`
}

HashicorpCloudConsulamaAmaBillingSettingsPrices Prices represents prices of a billing plan.

swagger:model hashicorp.cloud.consulama.ama.BillingSettings.Prices

func (*HashicorpCloudConsulamaAmaBillingSettingsPrices) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBillingSettingsPrices) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBillingSettingsPrices) Validate

Validate validates this hashicorp cloud consulama ama billing settings prices

type HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimension

type HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimension struct {

	// minimum is the minimum number of billed units of this dimension.
	Minimum int32 `json:"minimum,omitempty"`

	// name is the dimension's name.
	Name string `json:"name,omitempty"`

	// tiers is the list of tiers to use for progressive discounting.
	//
	// Example:
	//     label: 1-50,     unit_price: 0.022
	//     label: 51-250,   unit_price: 0.018
	//     label: 250-∞,    unit_price: 0.014
	Tiers []*HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimensionTier `json:"tiers"`
}

HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimension PriceDimension represents the prices of one billing dimension.

swagger:model hashicorp.cloud.consulama.ama.BillingSettings.Prices.PriceDimension

func (*HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimension) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimension) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimension) Validate

Validate validates this hashicorp cloud consulama ama billing settings prices price dimension

type HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimensionTier

type HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimensionTier struct {

	// label is a string description of this pricing tier.
	Label string `json:"label,omitempty"`

	// unit_price is the price per unit billed based on this tier.
	UnitPrice float64 `json:"unitPrice,omitempty"`
}

HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimensionTier Tier represents one billing tier of a price dimension.

swagger:model hashicorp.cloud.consulama.ama.BillingSettings.Prices.PriceDimension.Tier

func (*HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimensionTier) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimensionTier) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaBillingSettingsPricesPriceDimensionTier) Validate

Validate validates this hashicorp cloud consulama ama billing settings prices price dimension tier

type HashicorpCloudConsulamaAmaBoolean

type HashicorpCloudConsulamaAmaBoolean string

HashicorpCloudConsulamaAmaBoolean Boolean is an enum for handling true/false values as Azure swagger validation doesn't like bools: https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/openapi-authoring-automated-guidelines.md#r3018

swagger:model hashicorp.cloud.consulama.ama.Boolean

const (

	// HashicorpCloudConsulamaAmaBooleanFALSE captures enum value "FALSE"
	HashicorpCloudConsulamaAmaBooleanFALSE HashicorpCloudConsulamaAmaBoolean = "FALSE"

	// HashicorpCloudConsulamaAmaBooleanTRUE captures enum value "TRUE"
	HashicorpCloudConsulamaAmaBooleanTRUE HashicorpCloudConsulamaAmaBoolean = "TRUE"
)

func (HashicorpCloudConsulamaAmaBoolean) Validate

Validate validates this hashicorp cloud consulama ama boolean

type HashicorpCloudConsulamaAmaClusterMode

type HashicorpCloudConsulamaAmaClusterMode string

HashicorpCloudConsulamaAmaClusterMode ClusterMode defines what type of cluster is going to be deployed. Some modes will have different billing and options than others. PRODUCTION is the default value for this property, that's why it's set to be value 0 of the enum.

swagger:model hashicorp.cloud.consulama.ama.ClusterMode

const (

	// HashicorpCloudConsulamaAmaClusterModePRODUCTION captures enum value "PRODUCTION"
	HashicorpCloudConsulamaAmaClusterModePRODUCTION HashicorpCloudConsulamaAmaClusterMode = "PRODUCTION"

	// HashicorpCloudConsulamaAmaClusterModeDEVELOPMENT captures enum value "DEVELOPMENT"
	HashicorpCloudConsulamaAmaClusterModeDEVELOPMENT HashicorpCloudConsulamaAmaClusterMode = "DEVELOPMENT"
)

func (HashicorpCloudConsulamaAmaClusterMode) Validate

Validate validates this hashicorp cloud consulama ama cluster mode

type HashicorpCloudConsulamaAmaClusterProperties

type HashicorpCloudConsulamaAmaClusterProperties struct {

	// audit_log_storage_container_url is an Azure blob container URL for where
	// the log exfiltration process will copy audit logs.
	AuditLogStorageContainerURL string `json:"auditLogStorageContainerURL,omitempty"`

	// audit_logging_enabled controls whether Consul should emit audit logs
	AuditLoggingEnabled HashicorpCloudConsulamaAmaBoolean `json:"auditLoggingEnabled,omitempty"`

	// blob_container_name is the blob container to use to upload the Consul
	// configuration and certificates to.
	BlobContainerName string `json:"blobContainerName,omitempty"`

	// consul_automatic_upgrades are either 'enabled' or 'disabled'.
	ConsulAutomaticUpgrades string `json:"consulAutomaticUpgrades,omitempty"`

	// consul_ca_file is a base64-encoded ca chain file in PEM format that
	// should be used by the client agent to verify the authenticity of the
	// server
	ConsulCaFile string `json:"consulCaFile,omitempty"`

	// consul_cluster_id is the HCS-internal ID of the Consul cluster.
	ConsulClusterID string `json:"consulClusterId,omitempty"`

	// ClusterMode defines the purpose of the cluster, it can override
	// other cluster definitions (e.g. development will always have 1 node only).
	ConsulClusterMode HashicorpCloudConsulamaAmaClusterMode `json:"consulClusterMode,omitempty"`

	// consul_config_file is a base64-encoded JSON config file for a Consul
	// agent running in client mode.
	ConsulConfigFile string `json:"consulConfigFile,omitempty"`

	// consul_connect toggles the Consul Connect feature
	ConsulConnect string `json:"consulConnect,omitempty"`

	// consul_current_version is the Consul version currently running in the
	// cluster.
	ConsulCurrentVersion string `json:"consulCurrentVersion,omitempty"`

	// consul_datacenter is the datacenter name to configure the Consul cluster
	// as.
	// See: https://www.consul.io/docs/agent/options.html#_datacenter
	ConsulDatacenter string `json:"consulDatacenter,omitempty"`

	// consul_external_endpoint can be 'enabled' or 'disabled'.
	ConsulExternalEndpoint string `json:"consulExternalEndpoint,omitempty"`

	// consul_external_endpoint_url is the URL under which the Consul UI and API
	// are exposed.
	ConsulExternalEndpointURL string `json:"consulExternalEndpointUrl,omitempty"`

	// consul_initial_version is the initial Consul version to launch the cluster
	// with.
	ConsulInitialVersion string `json:"consulInitialVersion,omitempty"`

	// consul_num_servers is the number of Consul servers to provision.
	ConsulNumServers string `json:"consulNumServers,omitempty"`

	// consul_private_endpoint_url is the URL under which the Consul UI and API
	// are exposed on a private network. This is only accessible from a VNET
	// that is peered to the managed app's VNET.
	ConsulPrivateEndpointURL string `json:"consulPrivateEndpointUrl,omitempty"`

	// consul_snapshot_interval is the interval in which to take snapshots.
	ConsulSnapshotInterval string `json:"consulSnapshotInterval,omitempty"`

	// consul_snapshot_retention is the interval for how long to keep snapshots.
	ConsulSnapshotRetention string `json:"consulSnapshotRetention,omitempty"`

	// consul_vnet_cidr contains the Consul Cluster's VNet CIDR
	ConsulVnetCidr string `json:"consulVnetCidr,omitempty"`

	// email is the customer's email address
	Email string `json:"email,omitempty"`

	// federation_token is the token of the primary consul cluster in a federation.
	// It is only provided when federation is being requested.
	FederationToken string `json:"federationToken,omitempty"`

	// location is the Azure region the Consul cluster is being launched into.
	Location string `json:"location,omitempty"`

	// managed_app_id is the Azure Resource Manager ID of the managed app
	// instance. This ID is required to identified managed apps.
	ManagedAppID string `json:"managedAppId,omitempty"`

	// managedidentity is the Azure managed identity that should be assigned to
	// vmss resources created within the app
	ManagedIdentity string `json:"managedIdentity,omitempty"`

	// source_channel indicates which mechanism was used to create this cluster.
	// This typically should be: terraform-provider-hcs, azure-portal, hcs-cli.
	// This is synonymous to a user-agent.
	SourceChannel string `json:"sourceChannel,omitempty"`

	// state is the cluster's current state.
	// This is used in HTTP responses to Azure, but when this pb message is used
	// to persist cluster data in the DB, this attribute is either ignored or
	// stored with its default value of UNSET.
	State HashicorpCloudConsulamaAmaClusterState `json:"state,omitempty"`

	// storage_account_name is the storage account to use to upload the Consul
	// configuration and certificates to.
	StorageAccountName string `json:"storageAccountName,omitempty"`

	// storage_account_resource_group is the resource group of the storage account
	// to use to upload the Consul configuration and certificates to.
	StorageAccountResourceGroup string `json:"storageAccountResourceGroup,omitempty"`

	// vnet_name is the name of the Azure Virtual Network the consul cluster
	// is deployed in.
	VnetName string `json:"vnetName,omitempty"`
}

HashicorpCloudConsulamaAmaClusterProperties ClusterProperties contains properties the user selected when creating the managed app instance.

swagger:model hashicorp.cloud.consulama.ama.ClusterProperties

func (*HashicorpCloudConsulamaAmaClusterProperties) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaClusterProperties) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaClusterProperties) Validate

Validate validates this hashicorp cloud consulama ama cluster properties

type HashicorpCloudConsulamaAmaClusterResponse

type HashicorpCloudConsulamaAmaClusterResponse struct {

	// id is the complete resource ID.
	// Read Only: true
	ID string `json:"id,omitempty"`

	// name is the resource name as given by Azure in the GetClusterRequest.
	// Read Only: true
	Name string `json:"name,omitempty"`

	// properties are the properties of the cluster.
	Properties *HashicorpCloudConsulamaAmaClusterProperties `json:"properties,omitempty"`

	// type is the resource type as given by Azure in the GetClusterRequest.
	// Read Only: true
	Type string `json:"type,omitempty"`
}

HashicorpCloudConsulamaAmaClusterResponse See ConsulAMAService.GetCluster, ConsulAMAService.CreateCluster.

swagger:model hashicorp.cloud.consulama.ama.ClusterResponse

func (*HashicorpCloudConsulamaAmaClusterResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaClusterResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaClusterResponse) Validate

Validate validates this hashicorp cloud consulama ama cluster response

type HashicorpCloudConsulamaAmaClusterState

type HashicorpCloudConsulamaAmaClusterState string

HashicorpCloudConsulamaAmaClusterState ClusterState describes the current state a cluster is in. There is no DELETED state because after deletion clusters do not exist anymore and requests to retrieve them are responded to with not-found errors.

These values are specific to our comminication with Azure, and they're not backed by our persistence layer. When the consul-ama service has to produce a cluster state to respond to a request from Azure, it reads the state from the consul-service and then translates the state value to one compatible with this enum.

swagger:model hashicorp.cloud.consulama.ama.ClusterState

const (

	// HashicorpCloudConsulamaAmaClusterStateUNSET captures enum value "UNSET"
	HashicorpCloudConsulamaAmaClusterStateUNSET HashicorpCloudConsulamaAmaClusterState = "UNSET"

	// HashicorpCloudConsulamaAmaClusterStatePENDING captures enum value "PENDING"
	HashicorpCloudConsulamaAmaClusterStatePENDING HashicorpCloudConsulamaAmaClusterState = "PENDING"

	// HashicorpCloudConsulamaAmaClusterStateCREATING captures enum value "CREATING"
	HashicorpCloudConsulamaAmaClusterStateCREATING HashicorpCloudConsulamaAmaClusterState = "CREATING"

	// HashicorpCloudConsulamaAmaClusterStateRUNNING captures enum value "RUNNING"
	HashicorpCloudConsulamaAmaClusterStateRUNNING HashicorpCloudConsulamaAmaClusterState = "RUNNING"

	// HashicorpCloudConsulamaAmaClusterStateFAILED captures enum value "FAILED"
	HashicorpCloudConsulamaAmaClusterStateFAILED HashicorpCloudConsulamaAmaClusterState = "FAILED"

	// HashicorpCloudConsulamaAmaClusterStateDELETING captures enum value "DELETING"
	HashicorpCloudConsulamaAmaClusterStateDELETING HashicorpCloudConsulamaAmaClusterState = "DELETING"
)

func (HashicorpCloudConsulamaAmaClusterState) Validate

Validate validates this hashicorp cloud consulama ama cluster state

type HashicorpCloudConsulamaAmaClusterUpdate

type HashicorpCloudConsulamaAmaClusterUpdate struct {

	// audit_logging is the configuration for enabling Consul audit logs.
	AuditLogging *HashicorpCloudConsulamaAmaAuditLoggingUpdate `json:"auditLogging,omitempty"`

	// consul_version is the Consul version to upgrade the cluster to.
	ConsulVersion string `json:"consulVersion,omitempty"`
}

HashicorpCloudConsulamaAmaClusterUpdate ClusterUpdate contains the details of the cluster which are requested to be updated.

swagger:model hashicorp.cloud.consulama.ama.ClusterUpdate

func (*HashicorpCloudConsulamaAmaClusterUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaClusterUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaClusterUpdate) Validate

Validate validates this hashicorp cloud consulama ama cluster update

type HashicorpCloudConsulamaAmaCreateClusterRequest

type HashicorpCloudConsulamaAmaCreateClusterRequest struct {

	// id is the Azure resource ID of the new cluster.
	// Passed in the request body.
	ID string `json:"id,omitempty"`

	// name is the resource name of the new Consul cluster resource.
	// Passed in the request path and in the request body.
	Name string `json:"name,omitempty"`

	// properties are the properties of the new cluster.
	// Passed in the request body.
	Properties *HashicorpCloudConsulamaAmaClusterProperties `json:"properties,omitempty"`

	// resource_group is the resource group in which the new Consul cluster
	// should be created. This is the AMA instance's managed resource group.
	// Passed in the request path.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription_id is the ID of the Azure subscription the new Consul
	// cluster should be created in. This is the customer's subscription ID.
	// Passed in the request path.
	SubscriptionID string `json:"subscriptionId,omitempty"`

	// type is the Azure resource type of the new cluster.
	// Passed in the request body.
	Type string `json:"type,omitempty"`
}

HashicorpCloudConsulamaAmaCreateClusterRequest See ConsulAMAService.CreateCluster

swagger:model hashicorp.cloud.consulama.ama.CreateClusterRequest

func (*HashicorpCloudConsulamaAmaCreateClusterRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateClusterRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateClusterRequest) Validate

Validate validates this hashicorp cloud consulama ama create cluster request

type HashicorpCloudConsulamaAmaCreateFederationTokenRequest

type HashicorpCloudConsulamaAmaCreateFederationTokenRequest struct {

	// resource group
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription Id
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaCreateFederationTokenRequest CreateFederationTokenRequest creates a federation token for the sole cluster found using this subscription ID and managed resource group.

swagger:model hashicorp.cloud.consulama.ama.CreateFederationTokenRequest

func (*HashicorpCloudConsulamaAmaCreateFederationTokenRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateFederationTokenRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateFederationTokenRequest) Validate

Validate validates this hashicorp cloud consulama ama create federation token request

type HashicorpCloudConsulamaAmaCreateFederationTokenResponse

type HashicorpCloudConsulamaAmaCreateFederationTokenResponse struct {

	// federation token
	FederationToken string `json:"federationToken,omitempty"`
}

HashicorpCloudConsulamaAmaCreateFederationTokenResponse CreateFederationTokenResponse contains the new Consul Federation Token.

swagger:model hashicorp.cloud.consulama.ama.CreateFederationTokenResponse

func (*HashicorpCloudConsulamaAmaCreateFederationTokenResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateFederationTokenResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateFederationTokenResponse) Validate

Validate validates this hashicorp cloud consulama ama create federation token response

type HashicorpCloudConsulamaAmaCreateSnapshotRequest

type HashicorpCloudConsulamaAmaCreateSnapshotRequest struct {

	// name is the resource name of the new Consul snapshot resource.
	// Passed in the request path.
	Name string `json:"name,omitempty"`

	// resource_group is the resource group in which the new Consul snapshot
	// should be created. This is the AMA instance's managed resource group.
	// Passed in the request path.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription_id is the ID of the Azure subscription the new Consul
	// snapshot should be created in. This is the customer's subscription ID.
	// Passed in the request path.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaCreateSnapshotRequest See ConsulAMAService.CreateSnapshot

swagger:model hashicorp.cloud.consulama.ama.CreateSnapshotRequest

func (*HashicorpCloudConsulamaAmaCreateSnapshotRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateSnapshotRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateSnapshotRequest) Validate

Validate validates this hashicorp cloud consulama ama create snapshot request

type HashicorpCloudConsulamaAmaCreateSnapshotResponse

type HashicorpCloudConsulamaAmaCreateSnapshotResponse struct {

	// operation used to track the progress of the snapshot create
	Operation *HashicorpCloudConsulamaAmaOperation `json:"operation,omitempty"`

	// snapshot_id is the ID of the Consul snapshot to create.
	SnapshotID string `json:"snapshotId,omitempty"`
}

HashicorpCloudConsulamaAmaCreateSnapshotResponse See ConsulAMAService.CreateSnapshot

swagger:model hashicorp.cloud.consulama.ama.CreateSnapshotResponse

func (*HashicorpCloudConsulamaAmaCreateSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateSnapshotResponse) Validate

Validate validates this hashicorp cloud consulama ama create snapshot response

type HashicorpCloudConsulamaAmaCreateTokenRequest

type HashicorpCloudConsulamaAmaCreateTokenRequest struct {

	// resource group
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription Id
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaCreateTokenRequest CreateTokenRequest creates a token for the sole cluster found using this subscription ID and managed resource group.

swagger:model hashicorp.cloud.consulama.ama.CreateTokenRequest

func (*HashicorpCloudConsulamaAmaCreateTokenRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateTokenRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateTokenRequest) Validate

Validate validates this hashicorp cloud consulama ama create token request

type HashicorpCloudConsulamaAmaCreateTokenResponse

type HashicorpCloudConsulamaAmaCreateTokenResponse struct {

	// master token
	MasterToken *HashicorpCloudConsulamaAmaACLToken `json:"masterToken,omitempty"`
}

HashicorpCloudConsulamaAmaCreateTokenResponse CreateTokenResponse contains the new Consul Master Token.

swagger:model hashicorp.cloud.consulama.ama.CreateTokenResponse

func (*HashicorpCloudConsulamaAmaCreateTokenResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateTokenResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaCreateTokenResponse) Validate

Validate validates this hashicorp cloud consulama ama create token response

type HashicorpCloudConsulamaAmaDeleteSnapshotRequest

type HashicorpCloudConsulamaAmaDeleteSnapshotRequest struct {

	// resource_group is the resource group in which the Consul snapshot exists.
	// This is the AMA instance's managed resource group.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// snapshot_id is the ID of the Consul snapshot to delete:.
	SnapshotID string `json:"snapshotId,omitempty"`

	// subscription_id is the ID of the Azure subscription the Consul snapshot
	// exists in. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaDeleteSnapshotRequest See ConsulAMAService.DeleteSnapshot

swagger:model hashicorp.cloud.consulama.ama.DeleteSnapshotRequest

func (*HashicorpCloudConsulamaAmaDeleteSnapshotRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaDeleteSnapshotRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaDeleteSnapshotRequest) Validate

Validate validates this hashicorp cloud consulama ama delete snapshot request

type HashicorpCloudConsulamaAmaDeleteSnapshotResponse

type HashicorpCloudConsulamaAmaDeleteSnapshotResponse struct {

	// operation used to track the progress of the snapshot delete
	Operation *HashicorpCloudConsulamaAmaOperation `json:"operation,omitempty"`
}

HashicorpCloudConsulamaAmaDeleteSnapshotResponse See ConsulAMAService.DeleteSnapshot

swagger:model hashicorp.cloud.consulama.ama.DeleteSnapshotResponse

func (*HashicorpCloudConsulamaAmaDeleteSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaDeleteSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaDeleteSnapshotResponse) Validate

Validate validates this hashicorp cloud consulama ama delete snapshot response

type HashicorpCloudConsulamaAmaFederatedClusterResponse

type HashicorpCloudConsulamaAmaFederatedClusterResponse struct {

	// id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// resource group
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription Id
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaFederatedClusterResponse FederatedClusterResponse contains minimal cluster information for identifying a cluster in a federation.

swagger:model hashicorp.cloud.consulama.ama.FederatedClusterResponse

func (*HashicorpCloudConsulamaAmaFederatedClusterResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaFederatedClusterResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaFederatedClusterResponse) Validate

Validate validates this hashicorp cloud consulama ama federated cluster response

type HashicorpCloudConsulamaAmaGetBillingInfoRequest

type HashicorpCloudConsulamaAmaGetBillingInfoRequest struct {

	// resource_group is the managed resource group of the Managed App.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription_id is the ID of the Azure subscription the Managed App is
	// deployed to. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaGetBillingInfoRequest See ConsulAMAService.GetBillingInfo.

swagger:model hashicorp.cloud.consulama.ama.GetBillingInfoRequest

func (*HashicorpCloudConsulamaAmaGetBillingInfoRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingInfoRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingInfoRequest) Validate

Validate validates this hashicorp cloud consulama ama get billing info request

type HashicorpCloudConsulamaAmaGetBillingInfoResponse

type HashicorpCloudConsulamaAmaGetBillingInfoResponse struct {

	// current_settings represents the currently active billing settings of the
	// app.
	CurrentSettings *HashicorpCloudConsulamaAmaBillingSettings `json:"currentSettings,omitempty"`

	// usage represents the billed usage of the current time period.
	Usage *HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsage `json:"usage,omitempty"`
}

HashicorpCloudConsulamaAmaGetBillingInfoResponse See ConsulAMAService.GetBillingInfo.

swagger:model hashicorp.cloud.consulama.ama.GetBillingInfoResponse

func (*HashicorpCloudConsulamaAmaGetBillingInfoResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingInfoResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingInfoResponse) Validate

Validate validates this hashicorp cloud consulama ama get billing info response

type HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsage

type HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsage struct {

	// time_period has usage data for multiple time frames.
	TimePeriod *HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsagePeriods `json:"timePeriod,omitempty"`
}

HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsage CurrentUsage describes what has been billed for a managed app in the current time period(s).

swagger:model hashicorp.cloud.consulama.ama.GetBillingInfoResponse.CurrentUsage

func (*HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsage) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsage) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsage) Validate

Validate validates this hashicorp cloud consulama ama get billing info response current usage

type HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsagePeriods

type HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsagePeriods struct {

	// this_moneth describes usage billed to the current month.
	ThisMonth *HashicorpCloudConsulamaAmaBilledUsage `json:"thisMonth,omitempty"`

	// today describes usage billed to the current day.
	Today *HashicorpCloudConsulamaAmaBilledUsage `json:"today,omitempty"`
}

HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsagePeriods CurrentUsagePeriods contains usage data for several time periods.

swagger:model hashicorp.cloud.consulama.ama.GetBillingInfoResponse.CurrentUsagePeriods

func (*HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsagePeriods) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsagePeriods) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingInfoResponseCurrentUsagePeriods) Validate

Validate validates this hashicorp cloud consulama ama get billing info response current usage periods

type HashicorpCloudConsulamaAmaGetBillingReportRequest

type HashicorpCloudConsulamaAmaGetBillingReportRequest struct {

	// month indicates from which month to fetch usage information.
	// Format: 2020/07
	Month string `json:"month,omitempty"`

	// resource_group is the managed resource group of the Managed App.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription_id is the ID of the Azure subscription the Managed App is
	// deployed to. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaGetBillingReportRequest See ConsulAMAService.GetBillingReport.

swagger:model hashicorp.cloud.consulama.ama.GetBillingReportRequest

func (*HashicorpCloudConsulamaAmaGetBillingReportRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportRequest) Validate

Validate validates this hashicorp cloud consulama ama get billing report request

type HashicorpCloudConsulamaAmaGetBillingReportResponse

type HashicorpCloudConsulamaAmaGetBillingReportResponse struct {

	// usage contains the usage that was recorded for the requested month.
	// There is one entry in this list per applied plan per hour.
	Usage []*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItem `json:"usage"`
}

HashicorpCloudConsulamaAmaGetBillingReportResponse See ConsulAMAService.GetBillingReport.

swagger:model hashicorp.cloud.consulama.ama.GetBillingReportResponse

func (*HashicorpCloudConsulamaAmaGetBillingReportResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportResponse) Validate

Validate validates this hashicorp cloud consulama ama get billing report response

type HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItem

type HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItem struct {

	// cost is the total cost billed for the time frame.
	Cost float64 `json:"cost,omitempty"`

	// dimensions details what billing dimensions caused the cost.
	Dimensions []*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimension `json:"dimensions"`

	// end is the end time of the time frame.
	End string `json:"end,omitempty"`

	// plan is the name of the billing plan applied to the time frame.
	Plan string `json:"plan,omitempty"`

	// start is the start time of the time frame.
	Start string `json:"start,omitempty"`
}

HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItem BilledItem represents one time frame for which a specific billing plan was applied to the managed app.

swagger:model hashicorp.cloud.consulama.ama.GetBillingReportResponse.BilledItem

func (*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItem) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItem) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItem) Validate

Validate validates this hashicorp cloud consulama ama get billing report response billed item

type HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimension

type HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimension struct {

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

	// tiers is the usage per tier in this dimension.
	Tiers []*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimensionTier `json:"tiers"`
}

HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimension Dimension represents a billing dimension.

swagger:model hashicorp.cloud.consulama.ama.GetBillingReportResponse.BilledItem.Dimension

func (*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimension) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimension) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimension) Validate

Validate validates this hashicorp cloud consulama ama get billing report response billed item dimension

type HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimensionTier

type HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimensionTier struct {

	// label is a string description of this tier.
	Label string `json:"label,omitempty"`

	// units is the number of consumed units in this tier.
	Units int32 `json:"units,omitempty"`
}

HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimensionTier Tier represents the usage that is billed according to one tier.

swagger:model hashicorp.cloud.consulama.ama.GetBillingReportResponse.BilledItem.Dimension.Tier

func (*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimensionTier) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimensionTier) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetBillingReportResponseBilledItemDimensionTier) Validate

Validate validates this hashicorp cloud consulama ama get billing report response billed item dimension tier

type HashicorpCloudConsulamaAmaGetConfigRequest

type HashicorpCloudConsulamaAmaGetConfigRequest struct {

	// resource_group is the resource group in which the new Consul cluster
	// should be created. This is the AMA instance's managed resource group.
	// Passed in the request path.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription_id is the ID of the Azure subscription the new Consul
	// cluster should be created in. This is the customer's subscription ID.
	// Passed in the request path.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaGetConfigRequest hashicorp cloud consulama ama get config request

swagger:model hashicorp.cloud.consulama.ama.GetConfigRequest

func (*HashicorpCloudConsulamaAmaGetConfigRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetConfigRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetConfigRequest) Validate

Validate validates this hashicorp cloud consulama ama get config request

type HashicorpCloudConsulamaAmaGetConfigResponse

type HashicorpCloudConsulamaAmaGetConfigResponse struct {

	// ca file
	CaFile string `json:"caFile,omitempty"`

	// client config
	ClientConfig string `json:"clientConfig,omitempty"`
}

HashicorpCloudConsulamaAmaGetConfigResponse hashicorp cloud consulama ama get config response

swagger:model hashicorp.cloud.consulama.ama.GetConfigResponse

func (*HashicorpCloudConsulamaAmaGetConfigResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetConfigResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetConfigResponse) Validate

Validate validates this hashicorp cloud consulama ama get config response

type HashicorpCloudConsulamaAmaGetFederationRequest

type HashicorpCloudConsulamaAmaGetFederationRequest struct {

	// resource group
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription Id
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaGetFederationRequest GetFederationRequest gets a complete federation view for the sole cluster found using the subscription ID and managed resource group. This can target a primary or secondary clusters.

swagger:model hashicorp.cloud.consulama.ama.GetFederationRequest

func (*HashicorpCloudConsulamaAmaGetFederationRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetFederationRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetFederationRequest) Validate

Validate validates this hashicorp cloud consulama ama get federation request

type HashicorpCloudConsulamaAmaGetFederationResponse

type HashicorpCloudConsulamaAmaGetFederationResponse struct {

	// primary_datacenter is the primary datacenter of a federation.
	PrimaryDatacenter *HashicorpCloudConsulamaAmaFederatedClusterResponse `json:"primaryDatacenter,omitempty"`

	// secondary_datacenters are a list of all secondary datacenters of a federation.
	SecondaryDatacenters []*HashicorpCloudConsulamaAmaFederatedClusterResponse `json:"secondaryDatacenters"`

	// state is the state of the federation. See FederationState for possible values.
	State HashicorpCloudConsulamaAmaGetFederationResponseFederationState `json:"state,omitempty"`
}

HashicorpCloudConsulamaAmaGetFederationResponse GetFederationResponse contains the primary cluster and all secondary clusters.

swagger:model hashicorp.cloud.consulama.ama.GetFederationResponse

func (*HashicorpCloudConsulamaAmaGetFederationResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetFederationResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetFederationResponse) Validate

Validate validates this hashicorp cloud consulama ama get federation response

type HashicorpCloudConsulamaAmaGetFederationResponseFederationState

type HashicorpCloudConsulamaAmaGetFederationResponseFederationState string

HashicorpCloudConsulamaAmaGetFederationResponseFederationState FederationState describes the current state of a federation.

  • UNKNOWN: UNKNOWN is the default value; it indicates that the value is not set.
  • RUNNING: RUNNING means the federation is in a healthy state.
  • PRIMARY_DATACENTER_MISSING: PRIMARY_DATACENTER_MISSING means the federation's primary cluster has been deleted.

Any remaining secondary clusters can still communicate, but new clusters cannot be added to the federation.

swagger:model hashicorp.cloud.consulama.ama.GetFederationResponse.FederationState

const (

	// HashicorpCloudConsulamaAmaGetFederationResponseFederationStateUNKNOWN captures enum value "UNKNOWN"
	HashicorpCloudConsulamaAmaGetFederationResponseFederationStateUNKNOWN HashicorpCloudConsulamaAmaGetFederationResponseFederationState = "UNKNOWN"

	// HashicorpCloudConsulamaAmaGetFederationResponseFederationStateRUNNING captures enum value "RUNNING"
	HashicorpCloudConsulamaAmaGetFederationResponseFederationStateRUNNING HashicorpCloudConsulamaAmaGetFederationResponseFederationState = "RUNNING"

	// HashicorpCloudConsulamaAmaGetFederationResponseFederationStatePRIMARYDATACENTERMISSING captures enum value "PRIMARY_DATACENTER_MISSING"
	HashicorpCloudConsulamaAmaGetFederationResponseFederationStatePRIMARYDATACENTERMISSING HashicorpCloudConsulamaAmaGetFederationResponseFederationState = "PRIMARY_DATACENTER_MISSING"
)

func (HashicorpCloudConsulamaAmaGetFederationResponseFederationState) Validate

Validate validates this hashicorp cloud consulama ama get federation response federation state

type HashicorpCloudConsulamaAmaGetOperationRequest

type HashicorpCloudConsulamaAmaGetOperationRequest struct {

	// operation_id is the ID of the operation to fetch
	OperationID string `json:"operationId,omitempty"`

	// resource_group is the resource group in which the Consul cluster is
	// running. This is the AMA instance's managed resource group.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription_id is the ID of the Azure subscription the Consul cluster
	// exists in. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaGetOperationRequest See ConsulAMAService.GetOperation

swagger:model hashicorp.cloud.consulama.ama.GetOperationRequest

func (*HashicorpCloudConsulamaAmaGetOperationRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetOperationRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetOperationRequest) Validate

Validate validates this hashicorp cloud consulama ama get operation request

type HashicorpCloudConsulamaAmaGetOperationResponse

type HashicorpCloudConsulamaAmaGetOperationResponse struct {

	// operation
	Operation *HashicorpCloudConsulamaAmaOperation `json:"operation,omitempty"`
}

HashicorpCloudConsulamaAmaGetOperationResponse See ConsulAMAService.GetOperation

swagger:model hashicorp.cloud.consulama.ama.GetOperationResponse

func (*HashicorpCloudConsulamaAmaGetOperationResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetOperationResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetOperationResponse) Validate

Validate validates this hashicorp cloud consulama ama get operation response

type HashicorpCloudConsulamaAmaGetSnapshotRequest

type HashicorpCloudConsulamaAmaGetSnapshotRequest struct {

	// resource_group is the resource group in which the Consul snapshot exists
	// in. This is the AMA instance's managed resource group.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// snapshot_id is the ID of the Consul snapshot to fetch.
	SnapshotID string `json:"snapshotId,omitempty"`

	// subscription_id is the ID of the Azure subscription the Consul snapshot
	// exists in. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaGetSnapshotRequest See ConsulAMAService.GetSnapshot

swagger:model hashicorp.cloud.consulama.ama.GetSnapshotRequest

func (*HashicorpCloudConsulamaAmaGetSnapshotRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetSnapshotRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetSnapshotRequest) Validate

Validate validates this hashicorp cloud consulama ama get snapshot request

type HashicorpCloudConsulamaAmaGetSnapshotResponse

type HashicorpCloudConsulamaAmaGetSnapshotResponse struct {

	// snapshot contains the properties of the snapshot.
	Snapshot *HashicorpCloudConsulamaAmaSnapshotProperties `json:"snapshot,omitempty"`
}

HashicorpCloudConsulamaAmaGetSnapshotResponse See ConsulAMAService.GetSnapshot

swagger:model hashicorp.cloud.consulama.ama.GetSnapshotResponse

func (*HashicorpCloudConsulamaAmaGetSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaGetSnapshotResponse) Validate

Validate validates this hashicorp cloud consulama ama get snapshot response

type HashicorpCloudConsulamaAmaListClustersResponse

type HashicorpCloudConsulamaAmaListClustersResponse struct {

	// value is the list of cluster in the format of ClusterResponses.
	Value []*HashicorpCloudConsulamaAmaClusterResponse `json:"value"`
}

HashicorpCloudConsulamaAmaListClustersResponse See ConsulAMAService.ListCluster

swagger:model hashicorp.cloud.consulama.ama.ListClustersResponse

func (*HashicorpCloudConsulamaAmaListClustersResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListClustersResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListClustersResponse) Validate

Validate validates this hashicorp cloud consulama ama list clusters response

type HashicorpCloudConsulamaAmaListConsulUpgradeVersionsRequest

type HashicorpCloudConsulamaAmaListConsulUpgradeVersionsRequest struct {

	// resource_group is the resource group in which the Consul cluster is
	// running. This is the AMA instance's managed resource group.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription_id is the ID of the Azure subscription the Consul cluster
	// exists in. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaListConsulUpgradeVersionsRequest See ConsulAMAService.ListUpdateVersion

swagger:model hashicorp.cloud.consulama.ama.ListConsulUpgradeVersionsRequest

func (*HashicorpCloudConsulamaAmaListConsulUpgradeVersionsRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListConsulUpgradeVersionsRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListConsulUpgradeVersionsRequest) Validate

Validate validates this hashicorp cloud consulama ama list consul upgrade versions request

type HashicorpCloudConsulamaAmaListConsulUpgradeVersionsResponse

type HashicorpCloudConsulamaAmaListConsulUpgradeVersionsResponse struct {

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

HashicorpCloudConsulamaAmaListConsulUpgradeVersionsResponse hashicorp cloud consulama ama list consul upgrade versions response

swagger:model hashicorp.cloud.consulama.ama.ListConsulUpgradeVersionsResponse

func (*HashicorpCloudConsulamaAmaListConsulUpgradeVersionsResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListConsulUpgradeVersionsResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListConsulUpgradeVersionsResponse) Validate

Validate validates this hashicorp cloud consulama ama list consul upgrade versions response

type HashicorpCloudConsulamaAmaListSnapshotsRequest

type HashicorpCloudConsulamaAmaListSnapshotsRequest struct {

	// resource_group is the resource group in which the Consul snapshots are
	// persisted. This is the AMA instance's managed resource group.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// subscription_id is the ID of the Azure subscription the Consul snapshots
	// exist in. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaListSnapshotsRequest See ConsulAMAService.ListSnapshots

swagger:model hashicorp.cloud.consulama.ama.ListSnapshotsRequest

func (*HashicorpCloudConsulamaAmaListSnapshotsRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListSnapshotsRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListSnapshotsRequest) Validate

Validate validates this hashicorp cloud consulama ama list snapshots request

type HashicorpCloudConsulamaAmaListSnapshotsResponse

type HashicorpCloudConsulamaAmaListSnapshotsResponse struct {

	// snapshots is the list of snapshots in the format of SnapshotResponses.
	Snapshots []*HashicorpCloudConsulamaAmaSnapshotProperties `json:"snapshots"`
}

HashicorpCloudConsulamaAmaListSnapshotsResponse See ConsulAMAService.ListSnapshots

swagger:model hashicorp.cloud.consulama.ama.ListSnapshotsResponse

func (*HashicorpCloudConsulamaAmaListSnapshotsResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListSnapshotsResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaListSnapshotsResponse) Validate

Validate validates this hashicorp cloud consulama ama list snapshots response

type HashicorpCloudConsulamaAmaOperation

type HashicorpCloudConsulamaAmaOperation struct {

	// error is the error that occurred in the operation.
	Error *GoogleRPCStatus `json:"error,omitempty"`

	// id is the unique ID for this operation. This is only unique within the
	// context of a single managed app.
	ID string `json:"id,omitempty"`

	// response is the result of the operation. See the documentation for the API
	// call creating the operation to understand what the value of this is.
	Response *GoogleProtobufAny `json:"response,omitempty"`

	// state is the current state of the operation. This is a simple tri-state:
	// PENDING means the operation is created but not yet started, RUNNING means
	// the operation is currently running (though it may be very long-running),
	// and DONE means the operation is complete whether successfully or not.
	State HashicorpCloudConsulamaAmaOperationState `json:"state,omitempty"`
}

HashicorpCloudConsulamaAmaOperation Operation represents a single operation.

swagger:model hashicorp.cloud.consulama.ama.Operation

func (*HashicorpCloudConsulamaAmaOperation) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaOperation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaOperation) Validate

Validate validates this hashicorp cloud consulama ama operation

type HashicorpCloudConsulamaAmaOperationState

type HashicorpCloudConsulamaAmaOperationState string

HashicorpCloudConsulamaAmaOperationState State is one of the states that an Operation can be in.

The states are purposely coarse grained to make it easy to understand the operation state machine: pending => running => done. No other state transitions are possible. Success/failure can be determined based on the result oneof.

swagger:model hashicorp.cloud.consulama.ama.Operation.State

const (

	// HashicorpCloudConsulamaAmaOperationStatePENDING captures enum value "PENDING"
	HashicorpCloudConsulamaAmaOperationStatePENDING HashicorpCloudConsulamaAmaOperationState = "PENDING"

	// HashicorpCloudConsulamaAmaOperationStateRUNNING captures enum value "RUNNING"
	HashicorpCloudConsulamaAmaOperationStateRUNNING HashicorpCloudConsulamaAmaOperationState = "RUNNING"

	// HashicorpCloudConsulamaAmaOperationStateDONE captures enum value "DONE"
	HashicorpCloudConsulamaAmaOperationStateDONE HashicorpCloudConsulamaAmaOperationState = "DONE"
)

func (HashicorpCloudConsulamaAmaOperationState) Validate

Validate validates this hashicorp cloud consulama ama operation state

type HashicorpCloudConsulamaAmaRenameSnapshotRequest

type HashicorpCloudConsulamaAmaRenameSnapshotRequest struct {

	// name is the name that the snapshot will be renamed to.
	Name string `json:"name,omitempty"`

	// resource_group is the resource group in which the Consul snapshot exists.
	// This is the AMA instance's managed resource group.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// snapshot_id is the ID of the Consul snapshot to rename.
	SnapshotID string `json:"snapshotId,omitempty"`

	// subscription_id is the ID of the Azure subscription the Consul snapshot
	// exists in. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

HashicorpCloudConsulamaAmaRenameSnapshotRequest See ConsulAMAService.RenameSnapshot

swagger:model hashicorp.cloud.consulama.ama.RenameSnapshotRequest

func (*HashicorpCloudConsulamaAmaRenameSnapshotRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaRenameSnapshotRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaRenameSnapshotRequest) Validate

Validate validates this hashicorp cloud consulama ama rename snapshot request

type HashicorpCloudConsulamaAmaRenameSnapshotResponse

type HashicorpCloudConsulamaAmaRenameSnapshotResponse struct {

	// snapshot is contains all relevant fields/properties of the snapshot.
	Snapshot *HashicorpCloudConsulamaAmaSnapshotProperties `json:"snapshot,omitempty"`
}

HashicorpCloudConsulamaAmaRenameSnapshotResponse See ConsulAMAService.RenameSnapshot

swagger:model hashicorp.cloud.consulama.ama.RenameSnapshotResponse

func (*HashicorpCloudConsulamaAmaRenameSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaRenameSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaRenameSnapshotResponse) Validate

Validate validates this hashicorp cloud consulama ama rename snapshot response

type HashicorpCloudConsulamaAmaResourceNotificationRequest

type HashicorpCloudConsulamaAmaResourceNotificationRequest struct {

	// application_definition_id is the complete ARM ID of the AMA instance's
	// application definition.
	ApplicationDefinitionID string `json:"applicationDefinitionId,omitempty"`

	// application_id is the AMA instance's complete ARM ID.
	ApplicationID string `json:"applicationId,omitempty"`

	// billing_details contains billing related information about a managed app
	// that is being provisioned.
	BillingDetails *HashicorpCloudConsulamaAmaResourceNotificationRequestBillingDetails `json:"billingDetails,omitempty"`

	// error is added in case provosioning_state is "Failed" and describes the
	// error that lead to this condition.
	Error *HashicorpCloudConsulamaAmaResourceNotificationRequestError `json:"error,omitempty"`

	// event_time is the time at which the event occurred.
	// Format: 2006-01-02T15:04:05.999999999Z
	EventTime string `json:"eventTime,omitempty"`

	// event_type is the request type that lead to the notification. Can be
	// "PUT", "PATCH" (not observed yet), or "DELETE".
	EventType string `json:"eventType,omitempty"`

	// plan is information about the Azure Marketplace plan select before
	// provisioning the managed app.
	Plan *HashicorpCloudConsulamaAmaResourceNotificationRequestPlan `json:"plan,omitempty"`

	// provisioning_state is the state in which the AMA instance is. Can be
	// "Accepted",  "Succeeded", "Failed", "Deleting", or "Deleted".
	ProvisioningState string `json:"provisioningState,omitempty"`
}

HashicorpCloudConsulamaAmaResourceNotificationRequest See ConsulAMAService.ResourceNotification

swagger:model hashicorp.cloud.consulama.ama.ResourceNotificationRequest

func (*HashicorpCloudConsulamaAmaResourceNotificationRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaResourceNotificationRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaResourceNotificationRequest) Validate

Validate validates this hashicorp cloud consulama ama resource notification request

type HashicorpCloudConsulamaAmaResourceNotificationRequestBillingDetails

type HashicorpCloudConsulamaAmaResourceNotificationRequestBillingDetails struct {

	// resource_usage_id is the id used identify the managed app when
	// emitting metered billing events to azure.
	ResourceUsageID string `json:"resourceUsageId,omitempty"`
}

HashicorpCloudConsulamaAmaResourceNotificationRequestBillingDetails BillingDetails contains billing related information about a managed app.

swagger:model hashicorp.cloud.consulama.ama.ResourceNotificationRequest.BillingDetails

func (*HashicorpCloudConsulamaAmaResourceNotificationRequestBillingDetails) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaResourceNotificationRequestBillingDetails) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaResourceNotificationRequestBillingDetails) Validate

Validate validates this hashicorp cloud consulama ama resource notification request billing details

type HashicorpCloudConsulamaAmaResourceNotificationRequestError

type HashicorpCloudConsulamaAmaResourceNotificationRequestError struct {

	// code is the error code of the failed operation, e.g.
	// "ResourceGroupDeletionBlocked"
	Code string `json:"code,omitempty"`

	// message is a human-readable description of the error.
	Message string `json:"message,omitempty"`
}

HashicorpCloudConsulamaAmaResourceNotificationRequestError Error represents an error that happened in Azure when interacting with a managed app instance. It is optionally included in a ResourceNotificationRequest.

swagger:model hashicorp.cloud.consulama.ama.ResourceNotificationRequest.Error

func (*HashicorpCloudConsulamaAmaResourceNotificationRequestError) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaResourceNotificationRequestError) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaResourceNotificationRequestError) Validate

Validate validates this hashicorp cloud consulama ama resource notification request error

type HashicorpCloudConsulamaAmaResourceNotificationRequestPlan

type HashicorpCloudConsulamaAmaResourceNotificationRequestPlan struct {

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

	// product is the name of the Marketplace offer.
	Product string `json:"product,omitempty"`

	// publisher is the plan's publisher organization.
	Publisher string `json:"publisher,omitempty"`

	// version is the version of the Marketplace plan.
	Version string `json:"version,omitempty"`
}

HashicorpCloudConsulamaAmaResourceNotificationRequestPlan Plan represents an Azure Marketplace plan.

swagger:model hashicorp.cloud.consulama.ama.ResourceNotificationRequest.Plan

func (*HashicorpCloudConsulamaAmaResourceNotificationRequestPlan) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaResourceNotificationRequestPlan) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaResourceNotificationRequestPlan) Validate

Validate validates this hashicorp cloud consulama ama resource notification request plan

type HashicorpCloudConsulamaAmaRestoreSnapshotRequest

type HashicorpCloudConsulamaAmaRestoreSnapshotRequest struct {

	// resource_group is the resource group in which the Consul snapshot exists.
	// This is the AMA instance's managed resource group.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// snapshot_id is the ID of the Consul snapshot to restore.
	SnapshotID string `json:"snapshotId,omitempty"`

	// subscription_id is the ID of the Azure subscription the Consul snapshot
	// exists in. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`

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

HashicorpCloudConsulamaAmaRestoreSnapshotRequest See ConsulAMAService.RestoreSnapshot

swagger:model hashicorp.cloud.consulama.ama.RestoreSnapshotRequest

func (*HashicorpCloudConsulamaAmaRestoreSnapshotRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaRestoreSnapshotRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaRestoreSnapshotRequest) Validate

Validate validates this hashicorp cloud consulama ama restore snapshot request

type HashicorpCloudConsulamaAmaRestoreSnapshotResponse

type HashicorpCloudConsulamaAmaRestoreSnapshotResponse struct {

	// operation used to track the progress of the snapshot restore
	Operation *HashicorpCloudConsulamaAmaOperation `json:"operation,omitempty"`
}

HashicorpCloudConsulamaAmaRestoreSnapshotResponse See ConsulAMAService.RestoreSnapshot

swagger:model hashicorp.cloud.consulama.ama.RestoreSnapshotResponse

func (*HashicorpCloudConsulamaAmaRestoreSnapshotResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaRestoreSnapshotResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaRestoreSnapshotResponse) Validate

Validate validates this hashicorp cloud consulama ama restore snapshot response

type HashicorpCloudConsulamaAmaSnapshotProperties

type HashicorpCloudConsulamaAmaSnapshotProperties struct {

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

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

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

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

	// requested_at notes the time that this snapshot was requested.
	// Format: date-time
	RequestedAt strfmt.DateTime `json:"requestedAt,omitempty"`

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

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

	// state is the current state of the snapshot.
	State string `json:"state,omitempty"`

	// type is the type of snapshot; MANUAL or AUTOMATIC
	Type string `json:"type,omitempty"`
}

HashicorpCloudConsulamaAmaSnapshotProperties SnapshotProperties contains properties of the Consul snapshot

swagger:model hashicorp.cloud.consulama.ama.SnapshotProperties

func (*HashicorpCloudConsulamaAmaSnapshotProperties) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaSnapshotProperties) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaSnapshotProperties) Validate

Validate validates this hashicorp cloud consulama ama snapshot properties

type HashicorpCloudConsulamaAmaUpdateClusterRequest

type HashicorpCloudConsulamaAmaUpdateClusterRequest struct {

	// resource_group is the resource group in which the Consul cluster is
	// running. This is the AMA instance's managed resource group.
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// source_channel indicates which mechanism was used to initiate an update
	// of this cluster.
	// This typically should be: terraform-provider-hcs, azure-portal, hcs-cli.
	SourceChannel string `json:"sourceChannel,omitempty"`

	// subscription_id is the ID of the Azure subscription the Consul cluster
	// exists in. This is the customer's subscription ID.
	SubscriptionID string `json:"subscriptionId,omitempty"`

	// update contains the details of the Consul cluster to be updated.
	Update *HashicorpCloudConsulamaAmaClusterUpdate `json:"update,omitempty"`
}

HashicorpCloudConsulamaAmaUpdateClusterRequest See ConsulAMAService.UpdateCluster

swagger:model hashicorp.cloud.consulama.ama.UpdateClusterRequest

func (*HashicorpCloudConsulamaAmaUpdateClusterRequest) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaUpdateClusterRequest) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaUpdateClusterRequest) Validate

Validate validates this hashicorp cloud consulama ama update cluster request

type HashicorpCloudConsulamaAmaUpdateClusterResponse

type HashicorpCloudConsulamaAmaUpdateClusterResponse struct {

	// operation used to track the progress of the cluster update
	Operation *HashicorpCloudConsulamaAmaOperation `json:"operation,omitempty"`
}

HashicorpCloudConsulamaAmaUpdateClusterResponse See ConsulAMAService.UpdateCluster

swagger:model hashicorp.cloud.consulama.ama.UpdateClusterResponse

func (*HashicorpCloudConsulamaAmaUpdateClusterResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaUpdateClusterResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaUpdateClusterResponse) Validate

Validate validates this hashicorp cloud consulama ama update cluster response

type HashicorpCloudConsulamaAmaVersion

type HashicorpCloudConsulamaAmaVersion struct {

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

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

HashicorpCloudConsulamaAmaVersion Version is a consul cluster version used in upgrade scenarios.

swagger:model hashicorp.cloud.consulama.ama.Version

func (*HashicorpCloudConsulamaAmaVersion) MarshalBinary

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

MarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaVersion) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HashicorpCloudConsulamaAmaVersion) Validate

Validate validates this hashicorp cloud consulama ama version

type HashicorpCloudConsulamaAmaVersionStatus

type HashicorpCloudConsulamaAmaVersionStatus string

HashicorpCloudConsulamaAmaVersionStatus Status defines the version availability metadata.

  • 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.consulama.ama.Version.Status

const (

	// HashicorpCloudConsulamaAmaVersionStatusAVAILABLE captures enum value "AVAILABLE"
	HashicorpCloudConsulamaAmaVersionStatusAVAILABLE HashicorpCloudConsulamaAmaVersionStatus = "AVAILABLE"

	// HashicorpCloudConsulamaAmaVersionStatusRECOMMENDED captures enum value "RECOMMENDED"
	HashicorpCloudConsulamaAmaVersionStatusRECOMMENDED HashicorpCloudConsulamaAmaVersionStatus = "RECOMMENDED"

	// HashicorpCloudConsulamaAmaVersionStatusPREVIEW captures enum value "PREVIEW"
	HashicorpCloudConsulamaAmaVersionStatusPREVIEW HashicorpCloudConsulamaAmaVersionStatus = "PREVIEW"
)

func (HashicorpCloudConsulamaAmaVersionStatus) Validate

Validate validates this hashicorp cloud consulama ama version status

Source Files

Jump to

Keyboard shortcuts

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