securescorecontrols

package
v0.20230717.1131407 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MPL-2.0 Imports: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/securescorecontrols Documentation

The securescorecontrols SDK allows for interaction with the Azure Resource Manager Service security (API Version 2020-01-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/securescorecontrols"

Client Initialization

client := securescorecontrols.NewSecureScoreControlsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SecureScoreControlsClient.SecureScoreControlsList

ctx := context.TODO()
id := securescorecontrols.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.SecureScoreControlsList(ctx, id, securescorecontrols.DefaultSecureScoreControlsListOperationOptions())` can be used to do batched pagination
items, err := client.SecureScoreControlsListComplete(ctx, id, securescorecontrols.DefaultSecureScoreControlsListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForControlType

func PossibleValuesForControlType() []string

func PossibleValuesForExpandControlsEnum

func PossibleValuesForExpandControlsEnum() []string

Types

type AzureResourceLink struct {
	Id *string `json:"id,omitempty"`
}

type ControlType

type ControlType string
const (
	ControlTypeBuiltIn ControlType = "BuiltIn"
	ControlTypeCustom  ControlType = "Custom"
)

type ExpandControlsEnum

type ExpandControlsEnum string
const (
	ExpandControlsEnumDefinition ExpandControlsEnum = "definition"
)

type ScoreDetails

type ScoreDetails struct {
	Current    *float64 `json:"current,omitempty"`
	Max        *int64   `json:"max,omitempty"`
	Percentage *float64 `json:"percentage,omitempty"`
}

type SecureScoreControlDefinitionItem

type SecureScoreControlDefinitionItem struct {
	Id         *string                                     `json:"id,omitempty"`
	Name       *string                                     `json:"name,omitempty"`
	Properties *SecureScoreControlDefinitionItemProperties `json:"properties,omitempty"`
	Type       *string                                     `json:"type,omitempty"`
}

type SecureScoreControlDefinitionItemProperties

type SecureScoreControlDefinitionItemProperties struct {
	AssessmentDefinitions *[]AzureResourceLink                `json:"assessmentDefinitions,omitempty"`
	Description           *string                             `json:"description,omitempty"`
	DisplayName           *string                             `json:"displayName,omitempty"`
	MaxScore              *int64                              `json:"maxScore,omitempty"`
	Source                *SecureScoreControlDefinitionSource `json:"source,omitempty"`
}

type SecureScoreControlDefinitionSource

type SecureScoreControlDefinitionSource struct {
	SourceType *ControlType `json:"sourceType,omitempty"`
}

type SecureScoreControlDetails

type SecureScoreControlDetails struct {
	Id         *string                         `json:"id,omitempty"`
	Name       *string                         `json:"name,omitempty"`
	Properties *SecureScoreControlScoreDetails `json:"properties,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type SecureScoreControlDetailsOperationPredicate

type SecureScoreControlDetailsOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (SecureScoreControlDetailsOperationPredicate) Matches

type SecureScoreControlScoreDetails

type SecureScoreControlScoreDetails struct {
	Definition                 *SecureScoreControlDefinitionItem `json:"definition,omitempty"`
	DisplayName                *string                           `json:"displayName,omitempty"`
	HealthyResourceCount       *int64                            `json:"healthyResourceCount,omitempty"`
	NotApplicableResourceCount *int64                            `json:"notApplicableResourceCount,omitempty"`
	Score                      *ScoreDetails                     `json:"score,omitempty"`
	UnhealthyResourceCount     *int64                            `json:"unhealthyResourceCount,omitempty"`
	Weight                     *int64                            `json:"weight,omitempty"`
}

type SecureScoreControlsClient

type SecureScoreControlsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewSecureScoreControlsClientWithBaseURI

func NewSecureScoreControlsClientWithBaseURI(endpoint string) SecureScoreControlsClient

func (SecureScoreControlsClient) SecureScoreControlsList

SecureScoreControlsList ...

func (SecureScoreControlsClient) SecureScoreControlsListComplete

SecureScoreControlsListComplete retrieves all of the results into a single object

func (SecureScoreControlsClient) SecureScoreControlsListCompleteMatchingPredicate

SecureScoreControlsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type SecureScoreControlsListCompleteResult

type SecureScoreControlsListCompleteResult struct {
	Items []SecureScoreControlDetails
}

type SecureScoreControlsListOperationOptions

type SecureScoreControlsListOperationOptions struct {
	Expand *ExpandControlsEnum
}

func DefaultSecureScoreControlsListOperationOptions

func DefaultSecureScoreControlsListOperationOptions() SecureScoreControlsListOperationOptions

type SecureScoreControlsListOperationResponse

type SecureScoreControlsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]SecureScoreControlDetails
	// contains filtered or unexported fields
}

func (SecureScoreControlsListOperationResponse) HasMore

func (SecureScoreControlsListOperationResponse) LoadMore

Jump to

Keyboard shortcuts

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