securitysolutions

package
v0.20231004.1141559 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

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

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

Client Initialization

client := securitysolutions.NewSecuritySolutionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SecuritySolutionsClient.Get

ctx := context.TODO()
id := securitysolutions.NewSecuritySolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "securitySolutionValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SecuritySolutionsClient.List

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

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

func PossibleValuesForProvisioningState() []string

func PossibleValuesForSecurityFamily

func PossibleValuesForSecurityFamily() []string

func ValidateSecuritySolutionID

func ValidateSecuritySolutionID(input interface{}, key string) (warnings []string, errors []error)

ValidateSecuritySolutionID checks that 'input' can be parsed as a Security Solution ID

Types

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *SecuritySolution
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []SecuritySolution
}

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

type SecurityFamily

type SecurityFamily string
const (
	SecurityFamilyNgfw    SecurityFamily = "Ngfw"
	SecurityFamilySaasWaf SecurityFamily = "SaasWaf"
	SecurityFamilyVa      SecurityFamily = "Va"
	SecurityFamilyWaf     SecurityFamily = "Waf"
)

type SecuritySolution

type SecuritySolution struct {
	Id         *string                     `json:"id,omitempty"`
	Location   *string                     `json:"location,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties *SecuritySolutionProperties `json:"properties,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type SecuritySolutionId

type SecuritySolutionId struct {
	SubscriptionId       string
	ResourceGroupName    string
	LocationName         string
	SecuritySolutionName string
}

SecuritySolutionId is a struct representing the Resource ID for a Security Solution

func NewSecuritySolutionID

func NewSecuritySolutionID(subscriptionId string, resourceGroupName string, locationName string, securitySolutionName string) SecuritySolutionId

NewSecuritySolutionID returns a new SecuritySolutionId struct

func ParseSecuritySolutionID

func ParseSecuritySolutionID(input string) (*SecuritySolutionId, error)

ParseSecuritySolutionID parses 'input' into a SecuritySolutionId

func ParseSecuritySolutionIDInsensitively

func ParseSecuritySolutionIDInsensitively(input string) (*SecuritySolutionId, error)

ParseSecuritySolutionIDInsensitively parses 'input' case-insensitively into a SecuritySolutionId note: this method should only be used for API response data and not user input

func (SecuritySolutionId) ID

func (id SecuritySolutionId) ID() string

ID returns the formatted Security Solution ID

func (SecuritySolutionId) Segments

func (id SecuritySolutionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Security Solution ID

func (SecuritySolutionId) String

func (id SecuritySolutionId) String() string

String returns a human-readable description of this Security Solution ID

type SecuritySolutionOperationPredicate

type SecuritySolutionOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (SecuritySolutionOperationPredicate) Matches

type SecuritySolutionProperties

type SecuritySolutionProperties struct {
	ProtectionStatus  string            `json:"protectionStatus"`
	ProvisioningState ProvisioningState `json:"provisioningState"`
	SecurityFamily    SecurityFamily    `json:"securityFamily"`
	Template          string            `json:"template"`
}

type SecuritySolutionsClient

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

func NewSecuritySolutionsClientWithBaseURI

func NewSecuritySolutionsClientWithBaseURI(endpoint string) SecuritySolutionsClient

func (SecuritySolutionsClient) Get

Get ...

func (SecuritySolutionsClient) List

List ...

func (SecuritySolutionsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (SecuritySolutionsClient) ListCompleteMatchingPredicate

func (c SecuritySolutionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SecuritySolutionOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

Jump to

Keyboard shortcuts

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