securescorecontroldefinitions

package
v0.20230823.1052657 Latest Latest
Warning

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

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

README

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

The securescorecontroldefinitions 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/securescorecontroldefinitions"

Client Initialization

client := securescorecontroldefinitions.NewSecureScoreControlDefinitionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SecureScoreControlDefinitionsClient.SecureScoreControlDefinitionsList

ctx := context.TODO()


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

Example Usage: SecureScoreControlDefinitionsClient.SecureScoreControlDefinitionsListBySubscription

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

// alternatively `client.SecureScoreControlDefinitionsListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.SecureScoreControlDefinitionsListBySubscriptionComplete(ctx, id)
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

Types

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

type ControlType

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

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 SecureScoreControlDefinitionItemOperationPredicate

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

func (SecureScoreControlDefinitionItemOperationPredicate) Matches

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 SecureScoreControlDefinitionsClient

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

func NewSecureScoreControlDefinitionsClientWithBaseURI

func NewSecureScoreControlDefinitionsClientWithBaseURI(endpoint string) SecureScoreControlDefinitionsClient

func (SecureScoreControlDefinitionsClient) SecureScoreControlDefinitionsList

SecureScoreControlDefinitionsList ...

func (SecureScoreControlDefinitionsClient) SecureScoreControlDefinitionsListBySubscription

SecureScoreControlDefinitionsListBySubscription ...

func (SecureScoreControlDefinitionsClient) SecureScoreControlDefinitionsListBySubscriptionComplete

SecureScoreControlDefinitionsListBySubscriptionComplete retrieves all of the results into a single object

func (SecureScoreControlDefinitionsClient) SecureScoreControlDefinitionsListBySubscriptionCompleteMatchingPredicate

SecureScoreControlDefinitionsListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (SecureScoreControlDefinitionsClient) SecureScoreControlDefinitionsListComplete

SecureScoreControlDefinitionsListComplete retrieves all of the results into a single object

func (SecureScoreControlDefinitionsClient) SecureScoreControlDefinitionsListCompleteMatchingPredicate

func (c SecureScoreControlDefinitionsClient) SecureScoreControlDefinitionsListCompleteMatchingPredicate(ctx context.Context, predicate SecureScoreControlDefinitionItemOperationPredicate) (resp SecureScoreControlDefinitionsListCompleteResult, err error)

SecureScoreControlDefinitionsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type SecureScoreControlDefinitionsListBySubscriptionCompleteResult

type SecureScoreControlDefinitionsListBySubscriptionCompleteResult struct {
	Items []SecureScoreControlDefinitionItem
}

type SecureScoreControlDefinitionsListBySubscriptionOperationResponse

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

func (SecureScoreControlDefinitionsListBySubscriptionOperationResponse) HasMore

func (SecureScoreControlDefinitionsListBySubscriptionOperationResponse) LoadMore

type SecureScoreControlDefinitionsListCompleteResult

type SecureScoreControlDefinitionsListCompleteResult struct {
	Items []SecureScoreControlDefinitionItem
}

type SecureScoreControlDefinitionsListOperationResponse

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

func (SecureScoreControlDefinitionsListOperationResponse) HasMore

func (SecureScoreControlDefinitionsListOperationResponse) LoadMore

Jump to

Keyboard shortcuts

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