securitypartnerproviders

package
v0.20240903.1131440 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/securitypartnerproviders Documentation

The securitypartnerproviders SDK allows for interaction with the Azure Resource Manager Service network (API Version 2024-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/securitypartnerproviders"

Client Initialization

client := securitypartnerproviders.NewSecurityPartnerProvidersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SecurityPartnerProvidersClient.CreateOrUpdate

ctx := context.TODO()
id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderValue")

payload := securitypartnerproviders.SecurityPartnerProvider{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: SecurityPartnerProvidersClient.Delete

ctx := context.TODO()
id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: SecurityPartnerProvidersClient.Get

ctx := context.TODO()
id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderValue")

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

ctx := context.TODO()
id := commonids.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
}

Example Usage: SecurityPartnerProvidersClient.ListByResourceGroup

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

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

Example Usage: SecurityPartnerProvidersClient.UpdateTags

ctx := context.TODO()
id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderValue")

payload := securitypartnerproviders.TagsObject{
	// ...
}


read, err := client.UpdateTags(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 PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForSecurityPartnerProviderConnectionStatus

func PossibleValuesForSecurityPartnerProviderConnectionStatus() []string

func PossibleValuesForSecurityProviderName

func PossibleValuesForSecurityProviderName() []string

func ValidateSecurityPartnerProviderID

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

ValidateSecurityPartnerProviderID checks that 'input' can be parsed as a Security Partner Provider ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SecurityPartnerProvider
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

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

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SecurityPartnerProvider
}

type ListByResourceGroupCustomPager added in v0.20240628.1153531

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

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SecurityPartnerProvider
}

type ListCompleteResult

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

type ListCustomPager added in v0.20240628.1153531

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        *[]SecurityPartnerProvider
}

type ProvisioningState

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

func (*ProvisioningState) UnmarshalJSON

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

type SecurityPartnerProvider

type SecurityPartnerProvider struct {
	Etag       *string                                  `json:"etag,omitempty"`
	Id         *string                                  `json:"id,omitempty"`
	Location   *string                                  `json:"location,omitempty"`
	Name       *string                                  `json:"name,omitempty"`
	Properties *SecurityPartnerProviderPropertiesFormat `json:"properties,omitempty"`
	Tags       *map[string]string                       `json:"tags,omitempty"`
	Type       *string                                  `json:"type,omitempty"`
}

type SecurityPartnerProviderConnectionStatus

type SecurityPartnerProviderConnectionStatus string
const (
	SecurityPartnerProviderConnectionStatusConnected          SecurityPartnerProviderConnectionStatus = "Connected"
	SecurityPartnerProviderConnectionStatusNotConnected       SecurityPartnerProviderConnectionStatus = "NotConnected"
	SecurityPartnerProviderConnectionStatusPartiallyConnected SecurityPartnerProviderConnectionStatus = "PartiallyConnected"
	SecurityPartnerProviderConnectionStatusUnknown            SecurityPartnerProviderConnectionStatus = "Unknown"
)

func (*SecurityPartnerProviderConnectionStatus) UnmarshalJSON

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

type SecurityPartnerProviderId

type SecurityPartnerProviderId struct {
	SubscriptionId              string
	ResourceGroupName           string
	SecurityPartnerProviderName string
}

SecurityPartnerProviderId is a struct representing the Resource ID for a Security Partner Provider

func NewSecurityPartnerProviderID

func NewSecurityPartnerProviderID(subscriptionId string, resourceGroupName string, securityPartnerProviderName string) SecurityPartnerProviderId

NewSecurityPartnerProviderID returns a new SecurityPartnerProviderId struct

func ParseSecurityPartnerProviderID

func ParseSecurityPartnerProviderID(input string) (*SecurityPartnerProviderId, error)

ParseSecurityPartnerProviderID parses 'input' into a SecurityPartnerProviderId

func ParseSecurityPartnerProviderIDInsensitively

func ParseSecurityPartnerProviderIDInsensitively(input string) (*SecurityPartnerProviderId, error)

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

func (*SecurityPartnerProviderId) FromParseResult

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

func (SecurityPartnerProviderId) ID

ID returns the formatted Security Partner Provider ID

func (SecurityPartnerProviderId) Segments

Segments returns a slice of Resource ID Segments which comprise this Security Partner Provider ID

func (SecurityPartnerProviderId) String

func (id SecurityPartnerProviderId) String() string

String returns a human-readable description of this Security Partner Provider ID

type SecurityPartnerProviderOperationPredicate

type SecurityPartnerProviderOperationPredicate struct {
	Etag     *string
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (SecurityPartnerProviderOperationPredicate) Matches

type SecurityPartnerProviderPropertiesFormat

type SecurityPartnerProviderPropertiesFormat struct {
	ConnectionStatus     *SecurityPartnerProviderConnectionStatus `json:"connectionStatus,omitempty"`
	ProvisioningState    *ProvisioningState                       `json:"provisioningState,omitempty"`
	SecurityProviderName *SecurityProviderName                    `json:"securityProviderName,omitempty"`
	VirtualHub           *SubResource                             `json:"virtualHub,omitempty"`
}

type SecurityPartnerProvidersClient

type SecurityPartnerProvidersClient struct {
	Client *resourcemanager.Client
}

func NewSecurityPartnerProvidersClientWithBaseURI

func NewSecurityPartnerProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityPartnerProvidersClient, error)

func (SecurityPartnerProvidersClient) CreateOrUpdate

CreateOrUpdate ...

func (SecurityPartnerProvidersClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (SecurityPartnerProvidersClient) Delete

Delete ...

func (SecurityPartnerProvidersClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (SecurityPartnerProvidersClient) Get

Get ...

func (SecurityPartnerProvidersClient) List

List ...

func (SecurityPartnerProvidersClient) ListByResourceGroup

ListByResourceGroup ...

func (SecurityPartnerProvidersClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (SecurityPartnerProvidersClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SecurityPartnerProvidersClient) ListComplete

ListComplete retrieves all the results into a single object

func (SecurityPartnerProvidersClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SecurityPartnerProvidersClient) UpdateTags

UpdateTags ...

type SecurityProviderName

type SecurityProviderName string
const (
	SecurityProviderNameCheckpoint SecurityProviderName = "Checkpoint"
	SecurityProviderNameIBoss      SecurityProviderName = "IBoss"
	SecurityProviderNameZScaler    SecurityProviderName = "ZScaler"
)

func (*SecurityProviderName) UnmarshalJSON

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

type SubResource

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

type TagsObject

type TagsObject struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type UpdateTagsOperationResponse

type UpdateTagsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SecurityPartnerProvider
}

Jump to

Keyboard shortcuts

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