Documentation ¶
Index ¶
- func PossibleValuesForAssessmentStatusCode() []string
- func PossibleValuesForExpandEnum() []string
- func PossibleValuesForSource() []string
- func ValidateScopedAssessmentID(input interface{}, key string) (warnings []string, errors []error)
- type AssessmentLinks
- type AssessmentStatus
- type AssessmentStatusCode
- type AssessmentsClient
- func (c AssessmentsClient) CreateOrUpdate(ctx context.Context, id ScopedAssessmentId, input SecurityAssessment) (result CreateOrUpdateOperationResponse, err error)
- func (c AssessmentsClient) Delete(ctx context.Context, id ScopedAssessmentId) (result DeleteOperationResponse, err error)
- func (c AssessmentsClient) Get(ctx context.Context, id ScopedAssessmentId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
- func (c AssessmentsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
- func (c AssessmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListCompleteResult, err error)
- type AzureResourceDetails
- type BaseResourceDetailsImpl
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type ExpandEnum
- type GetOperationOptions
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type OnPremiseResourceDetails
- type RawResourceDetailsImpl
- type ResourceDetails
- type ScopedAssessmentId
- type SecurityAssessment
- type SecurityAssessmentOperationPredicate
- type SecurityAssessmentProperties
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAssessmentStatusCode ¶
func PossibleValuesForAssessmentStatusCode() []string
func PossibleValuesForExpandEnum ¶
func PossibleValuesForExpandEnum() []string
func PossibleValuesForSource ¶
func PossibleValuesForSource() []string
func ValidateScopedAssessmentID ¶
ValidateScopedAssessmentID checks that 'input' can be parsed as a Scoped Assessment ID
Types ¶
type AssessmentLinks ¶
type AssessmentLinks struct {
AzurePortalUri *string `json:"azurePortalUri,omitempty"`
}
type AssessmentStatus ¶
type AssessmentStatus struct { Cause *string `json:"cause,omitempty"` Code AssessmentStatusCode `json:"code"` Description *string `json:"description,omitempty"` }
type AssessmentStatusCode ¶
type AssessmentStatusCode string
const ( AssessmentStatusCodeHealthy AssessmentStatusCode = "Healthy" AssessmentStatusCodeNotApplicable AssessmentStatusCode = "NotApplicable" AssessmentStatusCodeUnhealthy AssessmentStatusCode = "Unhealthy" )
func (*AssessmentStatusCode) UnmarshalJSON ¶
func (s *AssessmentStatusCode) UnmarshalJSON(bytes []byte) error
type AssessmentsClient ¶
type AssessmentsClient struct {
Client *resourcemanager.Client
}
func NewAssessmentsClientWithBaseURI ¶
func NewAssessmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*AssessmentsClient, error)
func (AssessmentsClient) CreateOrUpdate ¶
func (c AssessmentsClient) CreateOrUpdate(ctx context.Context, id ScopedAssessmentId, input SecurityAssessment) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (AssessmentsClient) Delete ¶
func (c AssessmentsClient) Delete(ctx context.Context, id ScopedAssessmentId) (result DeleteOperationResponse, err error)
Delete ...
func (AssessmentsClient) Get ¶
func (c AssessmentsClient) Get(ctx context.Context, id ScopedAssessmentId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (AssessmentsClient) List ¶
func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
List ...
func (AssessmentsClient) ListComplete ¶
func (c AssessmentsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (AssessmentsClient) ListCompleteMatchingPredicate ¶
func (c AssessmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate SecurityAssessmentOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type AzureResourceDetails ¶
func (AzureResourceDetails) MarshalJSON ¶
func (s AzureResourceDetails) MarshalJSON() ([]byte, error)
func (AzureResourceDetails) ResourceDetails ¶
func (s AzureResourceDetails) ResourceDetails() BaseResourceDetailsImpl
type BaseResourceDetailsImpl ¶
type BaseResourceDetailsImpl struct {
Source Source `json:"source"`
}
func (BaseResourceDetailsImpl) ResourceDetails ¶
func (s BaseResourceDetailsImpl) ResourceDetails() BaseResourceDetailsImpl
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SecurityAssessment }
type DeleteOperationResponse ¶
type ExpandEnum ¶
type ExpandEnum string
const ( ExpandEnumLinks ExpandEnum = "links" ExpandEnumMetadata ExpandEnum = "metadata" )
func (*ExpandEnum) UnmarshalJSON ¶
func (s *ExpandEnum) UnmarshalJSON(bytes []byte) error
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *ExpandEnum
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SecurityAssessment }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []SecurityAssessment }
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SecurityAssessment }
type OnPremiseResourceDetails ¶
type OnPremiseResourceDetails struct { MachineName string `json:"machineName"` SourceComputerId string `json:"sourceComputerId"` VMuuid string `json:"vmuuid"` WorkspaceId string `json:"workspaceId"` Source Source `json:"source"` }
func (OnPremiseResourceDetails) MarshalJSON ¶
func (s OnPremiseResourceDetails) MarshalJSON() ([]byte, error)
func (OnPremiseResourceDetails) ResourceDetails ¶
func (s OnPremiseResourceDetails) ResourceDetails() BaseResourceDetailsImpl
type RawResourceDetailsImpl ¶
type RawResourceDetailsImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawResourceDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
func (RawResourceDetailsImpl) ResourceDetails ¶
func (s RawResourceDetailsImpl) ResourceDetails() BaseResourceDetailsImpl
type ResourceDetails ¶
type ResourceDetails interface {
ResourceDetails() BaseResourceDetailsImpl
}
func UnmarshalResourceDetailsImplementation ¶
func UnmarshalResourceDetailsImplementation(input []byte) (ResourceDetails, error)
type ScopedAssessmentId ¶
ScopedAssessmentId is a struct representing the Resource ID for a Scoped Assessment
func NewScopedAssessmentID ¶
func NewScopedAssessmentID(resourceId string, assessmentName string) ScopedAssessmentId
NewScopedAssessmentID returns a new ScopedAssessmentId struct
func ParseScopedAssessmentID ¶
func ParseScopedAssessmentID(input string) (*ScopedAssessmentId, error)
ParseScopedAssessmentID parses 'input' into a ScopedAssessmentId
func ParseScopedAssessmentIDInsensitively ¶
func ParseScopedAssessmentIDInsensitively(input string) (*ScopedAssessmentId, error)
ParseScopedAssessmentIDInsensitively parses 'input' case-insensitively into a ScopedAssessmentId note: this method should only be used for API response data and not user input
func (*ScopedAssessmentId) FromParseResult ¶
func (id *ScopedAssessmentId) FromParseResult(input resourceids.ParseResult) error
func (ScopedAssessmentId) ID ¶
func (id ScopedAssessmentId) ID() string
ID returns the formatted Scoped Assessment ID
func (ScopedAssessmentId) Segments ¶
func (id ScopedAssessmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Assessment ID
func (ScopedAssessmentId) String ¶
func (id ScopedAssessmentId) String() string
String returns a human-readable description of this Scoped Assessment ID
type SecurityAssessment ¶
type SecurityAssessment struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecurityAssessmentProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SecurityAssessmentOperationPredicate ¶
func (SecurityAssessmentOperationPredicate) Matches ¶
func (p SecurityAssessmentOperationPredicate) Matches(input SecurityAssessment) bool
type SecurityAssessmentProperties ¶
type SecurityAssessmentProperties struct { AdditionalData *map[string]string `json:"additionalData,omitempty"` DisplayName *string `json:"displayName,omitempty"` Links *AssessmentLinks `json:"links,omitempty"` ResourceDetails ResourceDetails `json:"resourceDetails"` Status AssessmentStatus `json:"status"` }
func (*SecurityAssessmentProperties) UnmarshalJSON ¶
func (s *SecurityAssessmentProperties) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_scopedassessment.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- model_assessmentlinks.go
- model_assessmentstatus.go
- model_azureresourcedetails.go
- model_onpremiseresourcedetails.go
- model_resourcedetails.go
- model_securityassessment.go
- model_securityassessmentproperties.go
- predicates.go
- version.go