securityuserrulecollections

package
v0.20241209.1115630 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := securityuserrulecollections.NewSecurityUserRuleCollectionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SecurityUserRuleCollectionsClient.CreateOrUpdate

ctx := context.TODO()
id := securityuserrulecollections.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName")

payload := securityuserrulecollections.SecurityUserRuleCollection{
	// ...
}


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: SecurityUserRuleCollectionsClient.Delete

ctx := context.TODO()
id := securityuserrulecollections.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName")

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

Example Usage: SecurityUserRuleCollectionsClient.Get

ctx := context.TODO()
id := securityuserrulecollections.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName")

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

ctx := context.TODO()
id := securityuserrulecollections.NewSecurityUserConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName")

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

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

ValidateSecurityUserConfigurationID checks that 'input' can be parsed as a Security User Configuration ID

func ValidateSecurityUserConfigurationRuleCollectionID

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

ValidateSecurityUserConfigurationRuleCollectionID checks that 'input' can be parsed as a Security User Configuration Rule Collection ID

Types

type CreateOrUpdateOperationResponse

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

type DeleteOperationOptions

type DeleteOperationOptions struct {
	Force *bool
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

func (o DeleteOperationOptions) ToHeaders() *client.Headers

func (DeleteOperationOptions) ToOData

func (o DeleteOperationOptions) ToOData() *odata.Query

func (DeleteOperationOptions) ToQuery

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

type ListCompleteResult

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

type ListCustomPager

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

type ListOperationOptions

type ListOperationOptions struct {
	Top *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

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

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 SecurityUserConfigurationId

type SecurityUserConfigurationId struct {
	SubscriptionId                string
	ResourceGroupName             string
	NetworkManagerName            string
	SecurityUserConfigurationName string
}

SecurityUserConfigurationId is a struct representing the Resource ID for a Security User Configuration

func NewSecurityUserConfigurationID

func NewSecurityUserConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string) SecurityUserConfigurationId

NewSecurityUserConfigurationID returns a new SecurityUserConfigurationId struct

func ParseSecurityUserConfigurationID

func ParseSecurityUserConfigurationID(input string) (*SecurityUserConfigurationId, error)

ParseSecurityUserConfigurationID parses 'input' into a SecurityUserConfigurationId

func ParseSecurityUserConfigurationIDInsensitively

func ParseSecurityUserConfigurationIDInsensitively(input string) (*SecurityUserConfigurationId, error)

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

func (*SecurityUserConfigurationId) FromParseResult

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

func (SecurityUserConfigurationId) ID

ID returns the formatted Security User Configuration ID

func (SecurityUserConfigurationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Security User Configuration ID

func (SecurityUserConfigurationId) String

func (id SecurityUserConfigurationId) String() string

String returns a human-readable description of this Security User Configuration ID

type SecurityUserConfigurationRuleCollectionId

type SecurityUserConfigurationRuleCollectionId struct {
	SubscriptionId                string
	ResourceGroupName             string
	NetworkManagerName            string
	SecurityUserConfigurationName string
	RuleCollectionName            string
}

SecurityUserConfigurationRuleCollectionId is a struct representing the Resource ID for a Security User Configuration Rule Collection

func NewSecurityUserConfigurationRuleCollectionID

func NewSecurityUserConfigurationRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string, ruleCollectionName string) SecurityUserConfigurationRuleCollectionId

NewSecurityUserConfigurationRuleCollectionID returns a new SecurityUserConfigurationRuleCollectionId struct

func ParseSecurityUserConfigurationRuleCollectionID

func ParseSecurityUserConfigurationRuleCollectionID(input string) (*SecurityUserConfigurationRuleCollectionId, error)

ParseSecurityUserConfigurationRuleCollectionID parses 'input' into a SecurityUserConfigurationRuleCollectionId

func ParseSecurityUserConfigurationRuleCollectionIDInsensitively

func ParseSecurityUserConfigurationRuleCollectionIDInsensitively(input string) (*SecurityUserConfigurationRuleCollectionId, error)

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

func (*SecurityUserConfigurationRuleCollectionId) FromParseResult

func (SecurityUserConfigurationRuleCollectionId) ID

ID returns the formatted Security User Configuration Rule Collection ID

func (SecurityUserConfigurationRuleCollectionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Security User Configuration Rule Collection ID

func (SecurityUserConfigurationRuleCollectionId) String

String returns a human-readable description of this Security User Configuration Rule Collection ID

type SecurityUserGroupItem

type SecurityUserGroupItem struct {
	NetworkGroupId string `json:"networkGroupId"`
}

type SecurityUserRuleCollection

type SecurityUserRuleCollection struct {
	Etag       *string                                     `json:"etag,omitempty"`
	Id         *string                                     `json:"id,omitempty"`
	Name       *string                                     `json:"name,omitempty"`
	Properties *SecurityUserRuleCollectionPropertiesFormat `json:"properties,omitempty"`
	SystemData *systemdata.SystemData                      `json:"systemData,omitempty"`
	Type       *string                                     `json:"type,omitempty"`
}

type SecurityUserRuleCollectionOperationPredicate

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

func (SecurityUserRuleCollectionOperationPredicate) Matches

type SecurityUserRuleCollectionPropertiesFormat

type SecurityUserRuleCollectionPropertiesFormat struct {
	AppliesToGroups   []SecurityUserGroupItem `json:"appliesToGroups"`
	Description       *string                 `json:"description,omitempty"`
	ProvisioningState *ProvisioningState      `json:"provisioningState,omitempty"`
	ResourceGuid      *string                 `json:"resourceGuid,omitempty"`
}

type SecurityUserRuleCollectionsClient

type SecurityUserRuleCollectionsClient struct {
	Client *resourcemanager.Client
}

func NewSecurityUserRuleCollectionsClientWithBaseURI

func NewSecurityUserRuleCollectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityUserRuleCollectionsClient, error)

func (SecurityUserRuleCollectionsClient) CreateOrUpdate

CreateOrUpdate ...

func (SecurityUserRuleCollectionsClient) Delete

Delete ...

func (SecurityUserRuleCollectionsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (SecurityUserRuleCollectionsClient) Get

Get ...

func (SecurityUserRuleCollectionsClient) List

List ...

func (SecurityUserRuleCollectionsClient) ListComplete

ListComplete retrieves all the results into a single object

func (SecurityUserRuleCollectionsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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