Documentation ¶
Index ¶
- Constants
- func Service(credentials *settings.Credentials) settings.CRUDService[*mgmz.Permission]
- type ListResponse
- type ServiceClient
- func (cs *ServiceClient) Create(permission *mgmz.Permission) (*api.Stub, error)
- func (cs *ServiceClient) Delete(id string) error
- func (cs *ServiceClient) Get(id string, permission *mgmz.Permission) error
- func (cs *ServiceClient) List() (api.Stubs, error)
- func (cs *ServiceClient) SchemaID() string
- func (cs *ServiceClient) Update(permission *mgmz.Permission) error
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) SchemaID ¶ added in v1.52.0
func (cs *ServiceClient) SchemaID() string
func (*ServiceClient) Update ¶
func (cs *ServiceClient) Update(permission *mgmz.Permission) error
Click to show internal directories.
Click to hide internal directories.