mgmz

package
v1.58.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SchemaID = "accounts:groups-mgmz"

Variables

This section is empty.

Functions

func Service added in v1.52.0

func Service(credentials *settings.Credentials) settings.CRUDService[*mgmz.Permission]

Types

type ListResponse added in v1.52.0

type ListResponse []struct {
	GroupId                     string `json:"groupId"`
	MzPermissionsPerEnvironment []struct {
		EnvironmentUuid string `json:"environmentUuid"`
		MzPermissions   []struct {
			MzId        string   `json:"mzId"`
			Permissions []string `json:"permissions"`
		} `json:"mzPermissions"`
	} `json:"mzPermissionsPerEnvironment"`
}

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://#######.live.dynatrace.com/api/config/v1" token is an API Token

func (*ServiceClient) Create

func (cs *ServiceClient) Create(permission *mgmz.Permission) (*api.Stub, error)

func (*ServiceClient) Delete

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

func (*ServiceClient) Get

func (cs *ServiceClient) Get(id string, permission *mgmz.Permission) error

func (*ServiceClient) List added in v1.52.0

func (cs *ServiceClient) List() (api.Stubs, error)

func (*ServiceClient) SchemaID added in v1.52.0

func (cs *ServiceClient) SchemaID() string

func (*ServiceClient) Update

func (cs *ServiceClient) Update(permission *mgmz.Permission) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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