applicationsecuritygroups

package
v0.20240131.1085516 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/applicationsecuritygroups Documentation

The applicationsecuritygroups SDK allows for interaction with the Azure Resource Manager Service network (API Version 2023-06-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/network/2023-06-01/applicationsecuritygroups"

Client Initialization

client := applicationsecuritygroups.NewApplicationSecurityGroupsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ApplicationSecurityGroupsClient.CreateOrUpdate

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

payload := applicationsecuritygroups.ApplicationSecurityGroup{
	// ...
}


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

Example Usage: ApplicationSecurityGroupsClient.Delete

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

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

Example Usage: ApplicationSecurityGroupsClient.Get

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

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

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

// 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: ApplicationSecurityGroupsClient.ListAll

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

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

Example Usage: ApplicationSecurityGroupsClient.UpdateTags

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

payload := applicationsecuritygroups.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 ValidateApplicationSecurityGroupID

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

ValidateApplicationSecurityGroupID checks that 'input' can be parsed as a Application Security Group ID

Types

type ApplicationSecurityGroup

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

type ApplicationSecurityGroupId

type ApplicationSecurityGroupId struct {
	SubscriptionId               string
	ResourceGroupName            string
	ApplicationSecurityGroupName string
}

ApplicationSecurityGroupId is a struct representing the Resource ID for a Application Security Group

func NewApplicationSecurityGroupID

func NewApplicationSecurityGroupID(subscriptionId string, resourceGroupName string, applicationSecurityGroupName string) ApplicationSecurityGroupId

NewApplicationSecurityGroupID returns a new ApplicationSecurityGroupId struct

func ParseApplicationSecurityGroupID

func ParseApplicationSecurityGroupID(input string) (*ApplicationSecurityGroupId, error)

ParseApplicationSecurityGroupID parses 'input' into a ApplicationSecurityGroupId

func ParseApplicationSecurityGroupIDInsensitively

func ParseApplicationSecurityGroupIDInsensitively(input string) (*ApplicationSecurityGroupId, error)

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

func (*ApplicationSecurityGroupId) FromParseResult

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

func (ApplicationSecurityGroupId) ID

ID returns the formatted Application Security Group ID

func (ApplicationSecurityGroupId) Segments

Segments returns a slice of Resource ID Segments which comprise this Application Security Group ID

func (ApplicationSecurityGroupId) String

func (id ApplicationSecurityGroupId) String() string

String returns a human-readable description of this Application Security Group ID

type ApplicationSecurityGroupOperationPredicate

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

func (ApplicationSecurityGroupOperationPredicate) Matches

type ApplicationSecurityGroupPropertiesFormat

type ApplicationSecurityGroupPropertiesFormat struct {
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
	ResourceGuid      *string            `json:"resourceGuid,omitempty"`
}

type ApplicationSecurityGroupsClient

type ApplicationSecurityGroupsClient struct {
	Client *resourcemanager.Client
}

func NewApplicationSecurityGroupsClientWithBaseURI

func NewApplicationSecurityGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationSecurityGroupsClient, error)

func (ApplicationSecurityGroupsClient) CreateOrUpdate

CreateOrUpdate ...

func (ApplicationSecurityGroupsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ApplicationSecurityGroupsClient) Delete

Delete ...

func (ApplicationSecurityGroupsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ApplicationSecurityGroupsClient) Get

Get ...

func (ApplicationSecurityGroupsClient) List

List ...

func (ApplicationSecurityGroupsClient) ListAll

ListAll ...

func (ApplicationSecurityGroupsClient) ListAllComplete

ListAllComplete retrieves all the results into a single object

func (ApplicationSecurityGroupsClient) ListAllCompleteMatchingPredicate

ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ApplicationSecurityGroupsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ApplicationSecurityGroupsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ApplicationSecurityGroupsClient) UpdateTags

UpdateTags ...

type CreateOrUpdateOperationResponse

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

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        *ApplicationSecurityGroup
}

type ListAllCompleteResult

type ListAllCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ApplicationSecurityGroup
}

type ListAllOperationResponse

type ListAllOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ApplicationSecurityGroup
}

type ListCompleteResult

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

type ListOperationResponse

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

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 TagsObject

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

type UpdateTagsOperationResponse

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

Jump to

Keyboard shortcuts

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