README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/network/2022-09-01/applicationsecuritygroups
Documentation
The applicationsecuritygroups
SDK allows for interaction with the Azure Resource Manager Service network
(API Version 2022-09-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/2022-09-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 ¶
- func PossibleValuesForProvisioningState() []string
- func ValidateApplicationSecurityGroupID(input interface{}, key string) (warnings []string, errors []error)
- type ApplicationSecurityGroup
- type ApplicationSecurityGroupId
- func NewApplicationSecurityGroupID(subscriptionId string, resourceGroupName string, ...) ApplicationSecurityGroupId
- func ParseApplicationSecurityGroupID(input string) (*ApplicationSecurityGroupId, error)
- func ParseApplicationSecurityGroupIDInsensitively(input string) (*ApplicationSecurityGroupId, error)
- type ApplicationSecurityGroupOperationPredicate
- type ApplicationSecurityGroupPropertiesFormat
- type ApplicationSecurityGroupsClient
- func (c ApplicationSecurityGroupsClient) CreateOrUpdate(ctx context.Context, id ApplicationSecurityGroupId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ApplicationSecurityGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id ApplicationSecurityGroupId, ...) error
- func (c ApplicationSecurityGroupsClient) Delete(ctx context.Context, id ApplicationSecurityGroupId) (result DeleteOperationResponse, err error)
- func (c ApplicationSecurityGroupsClient) DeleteThenPoll(ctx context.Context, id ApplicationSecurityGroupId) error
- func (c ApplicationSecurityGroupsClient) Get(ctx context.Context, id ApplicationSecurityGroupId) (result GetOperationResponse, err error)
- func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error)
- func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error)
- func (c ApplicationSecurityGroupsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error)
- func (c ApplicationSecurityGroupsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListAllCompleteResult, err error)
- func (c ApplicationSecurityGroupsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error)
- func (c ApplicationSecurityGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListCompleteResult, err error)
- func (c ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, id ApplicationSecurityGroupId, input TagsObject) (result UpdateTagsOperationResponse, err error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListAllCompleteResult
- type ListAllOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ProvisioningState
- type TagsObject
- type UpdateTagsOperationResponse
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) ID ¶
func (id ApplicationSecurityGroupId) ID() string
ID returns the formatted Application Security Group ID
func (ApplicationSecurityGroupId) Segments ¶
func (id ApplicationSecurityGroupId) Segments() []resourceids.Segment
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 ¶
func (p ApplicationSecurityGroupOperationPredicate) Matches(input ApplicationSecurityGroup) bool
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(api environments.Api) (*ApplicationSecurityGroupsClient, error)
func (ApplicationSecurityGroupsClient) CreateOrUpdate ¶
func (c ApplicationSecurityGroupsClient) CreateOrUpdate(ctx context.Context, id ApplicationSecurityGroupId, input ApplicationSecurityGroup) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ApplicationSecurityGroupsClient) CreateOrUpdateThenPoll ¶
func (c ApplicationSecurityGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id ApplicationSecurityGroupId, input ApplicationSecurityGroup) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ApplicationSecurityGroupsClient) Delete ¶
func (c ApplicationSecurityGroupsClient) Delete(ctx context.Context, id ApplicationSecurityGroupId) (result DeleteOperationResponse, err error)
Delete ...
func (ApplicationSecurityGroupsClient) DeleteThenPoll ¶
func (c ApplicationSecurityGroupsClient) DeleteThenPoll(ctx context.Context, id ApplicationSecurityGroupId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ApplicationSecurityGroupsClient) Get ¶
func (c ApplicationSecurityGroupsClient) Get(ctx context.Context, id ApplicationSecurityGroupId) (result GetOperationResponse, err error)
Get ...
func (ApplicationSecurityGroupsClient) List ¶
func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error)
List ...
func (ApplicationSecurityGroupsClient) ListAll ¶
func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error)
ListAll ...
func (ApplicationSecurityGroupsClient) ListAllComplete ¶
func (c ApplicationSecurityGroupsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error)
ListAllComplete retrieves all the results into a single object
func (ApplicationSecurityGroupsClient) ListAllCompleteMatchingPredicate ¶
func (c ApplicationSecurityGroupsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ApplicationSecurityGroupOperationPredicate) (result ListAllCompleteResult, err error)
ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ApplicationSecurityGroupsClient) ListComplete ¶
func (c ApplicationSecurityGroupsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ApplicationSecurityGroupsClient) ListCompleteMatchingPredicate ¶
func (c ApplicationSecurityGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ApplicationSecurityGroupOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ApplicationSecurityGroupsClient) UpdateTags ¶
func (c ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, id ApplicationSecurityGroupId, input TagsObject) (result UpdateTagsOperationResponse, err error)
UpdateTags ...
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApplicationSecurityGroup }
type ListAllCompleteResult ¶
type ListAllCompleteResult struct {
Items []ApplicationSecurityGroup
}
type ListAllOperationResponse ¶
type ListAllOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ApplicationSecurityGroup }
type ListCompleteResult ¶
type ListCompleteResult struct {
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 UpdateTagsOperationResponse ¶
type UpdateTagsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApplicationSecurityGroup }