Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentPerms ¶
type EnvironmentPerms struct { EnvironmentUUID string `json:"environmentUuid"` ManagementPermissions []*ManagementZonePerms `json:"mzPermissions"` }
type ManagementZonePerms ¶
type Permission ¶
type Permission struct { EnvironmentID string GroupID string ManagementZoneID string Permissions []string }
func (*Permission) MarshalHCL ¶
func (me *Permission) MarshalHCL(properties hcl.Properties) error
func (*Permission) UnmarshalHCL ¶
func (me *Permission) UnmarshalHCL(decoder hcl.Decoder) error
type PermissionDTO ¶
type PermissionDTO struct { GroupID string `json:"groupId"` EnvironmentPermissions []*EnvironmentPerms `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 *Permission) (string, error)
func (*ServiceClient) Delete ¶
func (cs *ServiceClient) Delete(id string) error
func (*ServiceClient) Get ¶
func (cs *ServiceClient) Get(id string) (*Permission, error)
func (*ServiceClient) Update ¶
func (cs *ServiceClient) Update(permission *Permission) error
Click to show internal directories.
Click to hide internal directories.