users

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-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 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(userConfig *UserConfig) (*UserConfig, 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) (*UserConfig, error)

Get TODO: documentation

func (*ServiceClient) ListAll

func (cs *ServiceClient) ListAll() ([]*UserConfig, error)

ListAll TODO: documentation

func (*ServiceClient) Update

func (cs *ServiceClient) Update(userConfig *UserConfig) error

Update TODO: documentation

type UserConfig

type UserConfig struct {
	UserName  string   `json:"id"`               // User ID
	Email     string   `json:"email"`            // User's email address
	FirstName string   `json:"firstName"`        // User's first name
	LastName  string   `json:"lastName"`         // User's last name
	Groups    []string `json:"groups,omitempty"` // List of user's user group IDs
}

The configuration of the user

func (*UserConfig) MarshalHCL

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

func (*UserConfig) Schema

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

func (*UserConfig) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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