README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-04-01/datacollectionruleassociations
Documentation
The datacollectionruleassociations
SDK allows for interaction with the Azure Resource Manager Service insights
(API Version 2021-04-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/insights/2021-04-01/datacollectionruleassociations"
Client Initialization
client := datacollectionruleassociations.NewDataCollectionRuleAssociationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: DataCollectionRuleAssociationsClient.Create
ctx := context.TODO()
id := datacollectionruleassociations.NewScopedDataCollectionRuleAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "dataCollectionRuleAssociationValue")
payload := datacollectionruleassociations.DataCollectionRuleAssociationProxyOnlyResource{
// ...
}
read, err := client.Create(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DataCollectionRuleAssociationsClient.Delete
ctx := context.TODO()
id := datacollectionruleassociations.NewScopedDataCollectionRuleAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "dataCollectionRuleAssociationValue")
read, err := client.Delete(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DataCollectionRuleAssociationsClient.Get
ctx := context.TODO()
id := datacollectionruleassociations.NewScopedDataCollectionRuleAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "dataCollectionRuleAssociationValue")
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: DataCollectionRuleAssociationsClient.ListByResource
ctx := context.TODO()
id := datacollectionruleassociations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")
// alternatively `client.ListByResource(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: DataCollectionRuleAssociationsClient.ListByRule
ctx := context.TODO()
id := datacollectionruleassociations.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleValue")
// alternatively `client.ListByRule(ctx, id)` can be used to do batched pagination
items, err := client.ListByRuleComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForKnownDataCollectionRuleAssociationProvisioningState() []string
- func ValidateDataCollectionRuleID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateScopedDataCollectionRuleAssociationID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DataCollectionRuleAssociation
- type DataCollectionRuleAssociationProxyOnlyResource
- type DataCollectionRuleAssociationProxyOnlyResourceOperationPredicate
- type DataCollectionRuleAssociationsClient
- func (c DataCollectionRuleAssociationsClient) Create(ctx context.Context, id ScopedDataCollectionRuleAssociationId, ...) (result CreateOperationResponse, err error)
- func (c DataCollectionRuleAssociationsClient) Delete(ctx context.Context, id ScopedDataCollectionRuleAssociationId) (result DeleteOperationResponse, err error)
- func (c DataCollectionRuleAssociationsClient) Get(ctx context.Context, id ScopedDataCollectionRuleAssociationId) (result GetOperationResponse, err error)
- func (c DataCollectionRuleAssociationsClient) ListByResource(ctx context.Context, id commonids.ScopeId) (resp ListByResourceOperationResponse, err error)
- func (c DataCollectionRuleAssociationsClient) ListByResourceComplete(ctx context.Context, id commonids.ScopeId) (ListByResourceCompleteResult, error)
- func (c DataCollectionRuleAssociationsClient) ListByResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (resp ListByResourceCompleteResult, err error)
- func (c DataCollectionRuleAssociationsClient) ListByRule(ctx context.Context, id DataCollectionRuleId) (resp ListByRuleOperationResponse, err error)
- func (c DataCollectionRuleAssociationsClient) ListByRuleComplete(ctx context.Context, id DataCollectionRuleId) (ListByRuleCompleteResult, error)
- func (c DataCollectionRuleAssociationsClient) ListByRuleCompleteMatchingPredicate(ctx context.Context, id DataCollectionRuleId, ...) (resp ListByRuleCompleteResult, err error)
- type DataCollectionRuleId
- type DeleteOperationResponse
- type GetOperationResponse
- type KnownDataCollectionRuleAssociationProvisioningState
- type ListByResourceCompleteResult
- type ListByResourceOperationResponse
- type ListByRuleCompleteResult
- type ListByRuleOperationResponse
- type ScopedDataCollectionRuleAssociationId
- func NewScopedDataCollectionRuleAssociationID(resourceUri string, dataCollectionRuleAssociationName string) ScopedDataCollectionRuleAssociationId
- func ParseScopedDataCollectionRuleAssociationID(input string) (*ScopedDataCollectionRuleAssociationId, error)
- func ParseScopedDataCollectionRuleAssociationIDInsensitively(input string) (*ScopedDataCollectionRuleAssociationId, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForKnownDataCollectionRuleAssociationProvisioningState ¶
func PossibleValuesForKnownDataCollectionRuleAssociationProvisioningState() []string
func ValidateDataCollectionRuleID ¶
func ValidateDataCollectionRuleID(input interface{}, key string) (warnings []string, errors []error)
ValidateDataCollectionRuleID checks that 'input' can be parsed as a Data Collection Rule ID
func ValidateScopedDataCollectionRuleAssociationID ¶
func ValidateScopedDataCollectionRuleAssociationID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedDataCollectionRuleAssociationID checks that 'input' can be parsed as a Scoped Data Collection Rule Association ID
Types ¶
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response Model *DataCollectionRuleAssociationProxyOnlyResource }
type DataCollectionRuleAssociation ¶
type DataCollectionRuleAssociation struct { DataCollectionEndpointId *string `json:"dataCollectionEndpointId,omitempty"` DataCollectionRuleId *string `json:"dataCollectionRuleId,omitempty"` Description *string `json:"description,omitempty"` ProvisioningState *KnownDataCollectionRuleAssociationProvisioningState `json:"provisioningState,omitempty"` }
type DataCollectionRuleAssociationProxyOnlyResource ¶
type DataCollectionRuleAssociationProxyOnlyResource struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DataCollectionRuleAssociation `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type DataCollectionRuleAssociationProxyOnlyResourceOperationPredicate ¶
type DataCollectionRuleAssociationProxyOnlyResourceOperationPredicate struct { Etag *string Id *string Name *string Type *string }
type DataCollectionRuleAssociationsClient ¶
type DataCollectionRuleAssociationsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewDataCollectionRuleAssociationsClientWithBaseURI ¶
func NewDataCollectionRuleAssociationsClientWithBaseURI(endpoint string) DataCollectionRuleAssociationsClient
func (DataCollectionRuleAssociationsClient) Create ¶
func (c DataCollectionRuleAssociationsClient) Create(ctx context.Context, id ScopedDataCollectionRuleAssociationId, input DataCollectionRuleAssociationProxyOnlyResource) (result CreateOperationResponse, err error)
Create ...
func (DataCollectionRuleAssociationsClient) Delete ¶
func (c DataCollectionRuleAssociationsClient) Delete(ctx context.Context, id ScopedDataCollectionRuleAssociationId) (result DeleteOperationResponse, err error)
Delete ...
func (DataCollectionRuleAssociationsClient) Get ¶
func (c DataCollectionRuleAssociationsClient) Get(ctx context.Context, id ScopedDataCollectionRuleAssociationId) (result GetOperationResponse, err error)
Get ...
func (DataCollectionRuleAssociationsClient) ListByResource ¶
func (c DataCollectionRuleAssociationsClient) ListByResource(ctx context.Context, id commonids.ScopeId) (resp ListByResourceOperationResponse, err error)
ListByResource ...
func (DataCollectionRuleAssociationsClient) ListByResourceComplete ¶
func (c DataCollectionRuleAssociationsClient) ListByResourceComplete(ctx context.Context, id commonids.ScopeId) (ListByResourceCompleteResult, error)
ListByResourceComplete retrieves all of the results into a single object
func (DataCollectionRuleAssociationsClient) ListByResourceCompleteMatchingPredicate ¶
func (c DataCollectionRuleAssociationsClient) ListByResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate DataCollectionRuleAssociationProxyOnlyResourceOperationPredicate) (resp ListByResourceCompleteResult, err error)
ListByResourceCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (DataCollectionRuleAssociationsClient) ListByRule ¶
func (c DataCollectionRuleAssociationsClient) ListByRule(ctx context.Context, id DataCollectionRuleId) (resp ListByRuleOperationResponse, err error)
ListByRule ...
func (DataCollectionRuleAssociationsClient) ListByRuleComplete ¶
func (c DataCollectionRuleAssociationsClient) ListByRuleComplete(ctx context.Context, id DataCollectionRuleId) (ListByRuleCompleteResult, error)
ListByRuleComplete retrieves all of the results into a single object
func (DataCollectionRuleAssociationsClient) ListByRuleCompleteMatchingPredicate ¶
func (c DataCollectionRuleAssociationsClient) ListByRuleCompleteMatchingPredicate(ctx context.Context, id DataCollectionRuleId, predicate DataCollectionRuleAssociationProxyOnlyResourceOperationPredicate) (resp ListByRuleCompleteResult, err error)
ListByRuleCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type DataCollectionRuleId ¶
type DataCollectionRuleId struct { SubscriptionId string ResourceGroupName string DataCollectionRuleName string }
DataCollectionRuleId is a struct representing the Resource ID for a Data Collection Rule
func NewDataCollectionRuleID ¶
func NewDataCollectionRuleID(subscriptionId string, resourceGroupName string, dataCollectionRuleName string) DataCollectionRuleId
NewDataCollectionRuleID returns a new DataCollectionRuleId struct
func ParseDataCollectionRuleID ¶
func ParseDataCollectionRuleID(input string) (*DataCollectionRuleId, error)
ParseDataCollectionRuleID parses 'input' into a DataCollectionRuleId
func ParseDataCollectionRuleIDInsensitively ¶
func ParseDataCollectionRuleIDInsensitively(input string) (*DataCollectionRuleId, error)
ParseDataCollectionRuleIDInsensitively parses 'input' case-insensitively into a DataCollectionRuleId note: this method should only be used for API response data and not user input
func (DataCollectionRuleId) ID ¶
func (id DataCollectionRuleId) ID() string
ID returns the formatted Data Collection Rule ID
func (DataCollectionRuleId) Segments ¶
func (id DataCollectionRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Data Collection Rule ID
func (DataCollectionRuleId) String ¶
func (id DataCollectionRuleId) String() string
String returns a human-readable description of this Data Collection Rule ID
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *DataCollectionRuleAssociationProxyOnlyResource }
type KnownDataCollectionRuleAssociationProvisioningState ¶
type KnownDataCollectionRuleAssociationProvisioningState string
const ( KnownDataCollectionRuleAssociationProvisioningStateCreating KnownDataCollectionRuleAssociationProvisioningState = "Creating" KnownDataCollectionRuleAssociationProvisioningStateDeleting KnownDataCollectionRuleAssociationProvisioningState = "Deleting" KnownDataCollectionRuleAssociationProvisioningStateFailed KnownDataCollectionRuleAssociationProvisioningState = "Failed" KnownDataCollectionRuleAssociationProvisioningStateSucceeded KnownDataCollectionRuleAssociationProvisioningState = "Succeeded" KnownDataCollectionRuleAssociationProvisioningStateUpdating KnownDataCollectionRuleAssociationProvisioningState = "Updating" )
type ListByResourceCompleteResult ¶
type ListByResourceCompleteResult struct {
Items []DataCollectionRuleAssociationProxyOnlyResource
}
type ListByResourceOperationResponse ¶
type ListByResourceOperationResponse struct { HttpResponse *http.Response Model *[]DataCollectionRuleAssociationProxyOnlyResource // contains filtered or unexported fields }
func (ListByResourceOperationResponse) HasMore ¶
func (r ListByResourceOperationResponse) HasMore() bool
func (ListByResourceOperationResponse) LoadMore ¶
func (r ListByResourceOperationResponse) LoadMore(ctx context.Context) (resp ListByResourceOperationResponse, err error)
type ListByRuleCompleteResult ¶
type ListByRuleCompleteResult struct {
Items []DataCollectionRuleAssociationProxyOnlyResource
}
type ListByRuleOperationResponse ¶
type ListByRuleOperationResponse struct { HttpResponse *http.Response Model *[]DataCollectionRuleAssociationProxyOnlyResource // contains filtered or unexported fields }
func (ListByRuleOperationResponse) HasMore ¶
func (r ListByRuleOperationResponse) HasMore() bool
func (ListByRuleOperationResponse) LoadMore ¶
func (r ListByRuleOperationResponse) LoadMore(ctx context.Context) (resp ListByRuleOperationResponse, err error)
type ScopedDataCollectionRuleAssociationId ¶
type ScopedDataCollectionRuleAssociationId struct { ResourceUri string DataCollectionRuleAssociationName string }
ScopedDataCollectionRuleAssociationId is a struct representing the Resource ID for a Scoped Data Collection Rule Association
func NewScopedDataCollectionRuleAssociationID ¶
func NewScopedDataCollectionRuleAssociationID(resourceUri string, dataCollectionRuleAssociationName string) ScopedDataCollectionRuleAssociationId
NewScopedDataCollectionRuleAssociationID returns a new ScopedDataCollectionRuleAssociationId struct
func ParseScopedDataCollectionRuleAssociationID ¶
func ParseScopedDataCollectionRuleAssociationID(input string) (*ScopedDataCollectionRuleAssociationId, error)
ParseScopedDataCollectionRuleAssociationID parses 'input' into a ScopedDataCollectionRuleAssociationId
func ParseScopedDataCollectionRuleAssociationIDInsensitively ¶
func ParseScopedDataCollectionRuleAssociationIDInsensitively(input string) (*ScopedDataCollectionRuleAssociationId, error)
ParseScopedDataCollectionRuleAssociationIDInsensitively parses 'input' case-insensitively into a ScopedDataCollectionRuleAssociationId note: this method should only be used for API response data and not user input
func (ScopedDataCollectionRuleAssociationId) ID ¶
func (id ScopedDataCollectionRuleAssociationId) ID() string
ID returns the formatted Scoped Data Collection Rule Association ID
func (ScopedDataCollectionRuleAssociationId) Segments ¶
func (id ScopedDataCollectionRuleAssociationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Data Collection Rule Association ID
func (ScopedDataCollectionRuleAssociationId) String ¶
func (id ScopedDataCollectionRuleAssociationId) String() string
String returns a human-readable description of this Scoped Data Collection Rule Association ID
Source Files ¶
- client.go
- constants.go
- id_datacollectionrule.go
- id_scopeddatacollectionruleassociation.go
- method_create_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyresource_autorest.go
- method_listbyrule_autorest.go
- model_datacollectionruleassociation.go
- model_datacollectionruleassociationproxyonlyresource.go
- predicates.go
- version.go