Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalDefinition ¶
type InternalDefinition struct {
Assembly []InternalPolicyAssembly `json:"assembly"`
}
type InternalEntry ¶
type InternalPolicy ¶
type InternalPolicy struct { PolicyID string `json:"policyId"` PolicyName string `json:"policyName"` PolicyDescription string `json:"policyDescription"` PolicyVersion string `json:"policyVersion"` PolicyType string `json:"policyType"` CreatedOn int64 `json:"createdOn"` CreatedBy string `json:"createdBy"` LastUpdatedBy string `json:"lastUpdatedBy"` LastUpdatedOn int64 `json:"lastUpdatedOn"` IsPolicyActivated bool `json:"isPolicyActivated"` RID int `json:"@rid"` PolicyDefinition string `json:"policyDefinition"` }
func (*InternalPolicy) ToPolicy ¶
func (p *InternalPolicy) ToPolicy() *vsmart.Policy
type InternalPolicyAssembly ¶
type InternalPolicyAssembly struct { DefinitionID string `json:"definitionId"` Type string `json:"type"` Entries []InternalEntry `json:"entries"` }
type UpdatePolicyRequestBody ¶
type UpdatePolicyRequestBody struct { PolicyDescription string `json:"policyDescription"` PolicyType string `json:"policyType"` PolicyName string `json:"policyName"` Definition InternalDefinition `json:"policyDefinition"` IsPolicyActivated bool `json:"isPolicyActivated"` }
func NewUpdatePolicyRequestBody ¶
func NewUpdatePolicyRequestBody(pol *vsmart.Policy) *UpdatePolicyRequestBody
Click to show internal directories.
Click to hide internal directories.