defenderforaisettings

package
v0.20241206.1180327 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/defenderforaisettings Documentation

The defenderforaisettings SDK allows for interaction with Azure Resource Manager cognitive (API Version 2024-10-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/cognitive/2024-10-01/defenderforaisettings"

Client Initialization

client := defenderforaisettings.NewDefenderForAISettingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DefenderForAISettingsClient.CreateOrUpdate

ctx := context.TODO()
id := defenderforaisettings.NewDefenderForAISettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "defenderForAISettingName")

payload := defenderforaisettings.DefenderForAISetting{
	// ...
}


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

Example Usage: DefenderForAISettingsClient.Get

ctx := context.TODO()
id := defenderforaisettings.NewDefenderForAISettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "defenderForAISettingName")

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: DefenderForAISettingsClient.List

ctx := context.TODO()
id := defenderforaisettings.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName")

// 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
}

Example Usage: DefenderForAISettingsClient.Update

ctx := context.TODO()
id := defenderforaisettings.NewDefenderForAISettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "defenderForAISettingName")

payload := defenderforaisettings.DefenderForAISetting{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDefenderForAISettingState

func PossibleValuesForDefenderForAISettingState() []string

func ValidateAccountID

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

ValidateAccountID checks that 'input' can be parsed as a Account ID

func ValidateDefenderForAISettingID

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

ValidateDefenderForAISettingID checks that 'input' can be parsed as a Defender For A I Setting ID

Types

type AccountId

type AccountId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
}

AccountId is a struct representing the Resource ID for a Account

func NewAccountID

func NewAccountID(subscriptionId string, resourceGroupName string, accountName string) AccountId

NewAccountID returns a new AccountId struct

func ParseAccountID

func ParseAccountID(input string) (*AccountId, error)

ParseAccountID parses 'input' into a AccountId

func ParseAccountIDInsensitively

func ParseAccountIDInsensitively(input string) (*AccountId, error)

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

func (*AccountId) FromParseResult

func (id *AccountId) FromParseResult(input resourceids.ParseResult) error

func (AccountId) ID

func (id AccountId) ID() string

ID returns the formatted Account ID

func (AccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Account ID

func (AccountId) String

func (id AccountId) String() string

String returns a human-readable description of this Account ID

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DefenderForAISetting
}

type DefenderForAISetting

type DefenderForAISetting struct {
	Etag       *string                         `json:"etag,omitempty"`
	Id         *string                         `json:"id,omitempty"`
	Name       *string                         `json:"name,omitempty"`
	Properties *DefenderForAISettingProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData          `json:"systemData,omitempty"`
	Tags       *map[string]string              `json:"tags,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type DefenderForAISettingId

type DefenderForAISettingId struct {
	SubscriptionId           string
	ResourceGroupName        string
	AccountName              string
	DefenderForAISettingName string
}

DefenderForAISettingId is a struct representing the Resource ID for a Defender For A I Setting

func NewDefenderForAISettingID

func NewDefenderForAISettingID(subscriptionId string, resourceGroupName string, accountName string, defenderForAISettingName string) DefenderForAISettingId

NewDefenderForAISettingID returns a new DefenderForAISettingId struct

func ParseDefenderForAISettingID

func ParseDefenderForAISettingID(input string) (*DefenderForAISettingId, error)

ParseDefenderForAISettingID parses 'input' into a DefenderForAISettingId

func ParseDefenderForAISettingIDInsensitively

func ParseDefenderForAISettingIDInsensitively(input string) (*DefenderForAISettingId, error)

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

func (*DefenderForAISettingId) FromParseResult

func (id *DefenderForAISettingId) FromParseResult(input resourceids.ParseResult) error

func (DefenderForAISettingId) ID

ID returns the formatted Defender For A I Setting ID

func (DefenderForAISettingId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Defender For A I Setting ID

func (DefenderForAISettingId) String

func (id DefenderForAISettingId) String() string

String returns a human-readable description of this Defender For A I Setting ID

type DefenderForAISettingOperationPredicate

type DefenderForAISettingOperationPredicate struct {
	Etag *string
	Id   *string
	Name *string
	Type *string
}

func (DefenderForAISettingOperationPredicate) Matches

type DefenderForAISettingProperties

type DefenderForAISettingProperties struct {
	State *DefenderForAISettingState `json:"state,omitempty"`
}

type DefenderForAISettingState

type DefenderForAISettingState string
const (
	DefenderForAISettingStateDisabled DefenderForAISettingState = "Disabled"
	DefenderForAISettingStateEnabled  DefenderForAISettingState = "Enabled"
)

func (*DefenderForAISettingState) UnmarshalJSON

func (s *DefenderForAISettingState) UnmarshalJSON(bytes []byte) error

type DefenderForAISettingsClient

type DefenderForAISettingsClient struct {
	Client *resourcemanager.Client
}

func NewDefenderForAISettingsClientWithBaseURI

func NewDefenderForAISettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*DefenderForAISettingsClient, error)

func (DefenderForAISettingsClient) CreateOrUpdate

CreateOrUpdate ...

func (DefenderForAISettingsClient) Get

Get ...

func (DefenderForAISettingsClient) List

List ...

func (DefenderForAISettingsClient) ListComplete

ListComplete retrieves all the results into a single object

func (DefenderForAISettingsClient) ListCompleteMatchingPredicate

func (c DefenderForAISettingsClient) ListCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate DefenderForAISettingOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DefenderForAISettingsClient) Update

Update ...

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DefenderForAISetting
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DefenderForAISetting
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DefenderForAISetting
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DefenderForAISetting
}

Jump to

Keyboard shortcuts

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