envs

package
v1.59.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var States = struct {
	Enabled  State
	Disabled State
}{
	Enabled:  State("ENABLED"),
	Disabled: State("DISABLED"),
}

Functions

This section is empty.

Types

type Environment

type Environment struct {
	ID      *string           `json:"id,omitempty"`      // The ID of the environment
	Name    string            `json:"name"`              // The display name of the environment
	Trial   *bool             `json:"trial"`             // Specifies whether the environment is a trial environment or a non-trial environment. Creating a trial environment is only possible if your license allows that. The default value is false (non-trial)
	State   State             `json:"state"`             // Indicates whether the environment is enabled or disabled. The default value is ENABLED
	Tags    []string          `json:"tags,omitempty"`    // A set of tags that are assigned to this environment. Every tag can have a maximum length of 100 characters
	Quotas  *quota.Settings   `json:"quotas,omitempty"`  // Environment level consumption and quotas information. Only returned if includeConsumptionInfo or includeUncachedConsumptionInfo param is true
	Storage *storage.Settings `json:"storage,omitempty"` // Environment level storage usage and limit information. Not returned if includeStorageInfo param is not true. If skipped when editing via PUT method then already set limits will remain
}

Environment representas basic configuration for an environment

func (*Environment) MarshalHCL

func (me *Environment) MarshalHCL(properties hcl.Properties) error

func (*Environment) Schema

func (me *Environment) Schema() map[string]*schema.Schema

func (*Environment) UnmarshalHCL

func (me *Environment) UnmarshalHCL(decoder hcl.Decoder) error

type EnvironmentList

type EnvironmentList struct {
	Environments []*Environment `json:"environments"`
}

type ServiceClient

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

ServiceClient TODO: documentation

func NewService

func NewService(baseURL string, token string) *ServiceClient

NewService creates a new Service Client baseURL should look like this: "https://siz65484.live.dynatrace.com/api/config/v1" token is an API Token

func (*ServiceClient) Create

func (cs *ServiceClient) Create(environment *Environment) (*api.Stub, error)

Create TODO: documentation

func (*ServiceClient) Delete

func (cs *ServiceClient) Delete(id string) error

Delete TODO: documentation

func (*ServiceClient) Get

func (cs *ServiceClient) Get(id string) (*Environment, error)

Get TODO: documentation

func (*ServiceClient) ListAll

func (cs *ServiceClient) ListAll() (*EnvironmentList, error)

ListAll TODO: documentation

func (*ServiceClient) Update

func (cs *ServiceClient) Update(environment *Environment) error

Update TODO: documentation

type State

type State string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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