README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-04-01/datacollectionendpoints
Documentation
The datacollectionendpoints
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/datacollectionendpoints"
Client Initialization
client := datacollectionendpoints.NewDataCollectionEndpointsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: DataCollectionEndpointsClient.Create
ctx := context.TODO()
id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointValue")
payload := datacollectionendpoints.DataCollectionEndpointResource{
// ...
}
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: DataCollectionEndpointsClient.Delete
ctx := context.TODO()
id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointValue")
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: DataCollectionEndpointsClient.Get
ctx := context.TODO()
id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointValue")
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: DataCollectionEndpointsClient.ListByResourceGroup
ctx := context.TODO()
id := datacollectionendpoints.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: DataCollectionEndpointsClient.ListBySubscription
ctx := context.TODO()
id := datacollectionendpoints.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: DataCollectionEndpointsClient.Update
ctx := context.TODO()
id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointValue")
payload := datacollectionendpoints.ResourceForUpdate{
// ...
}
read, err := client.Update(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 PossibleValuesForKnownDataCollectionEndpointProvisioningState() []string
- func PossibleValuesForKnownDataCollectionEndpointResourceKind() []string
- func PossibleValuesForKnownPublicNetworkAccessOptions() []string
- func ValidateDataCollectionEndpointID(input interface{}, key string) (warnings []string, errors []error)
- type ConfigurationAccessEndpointSpec
- type CreateOperationResponse
- type DataCollectionEndpoint
- type DataCollectionEndpointId
- type DataCollectionEndpointResource
- type DataCollectionEndpointResourceOperationPredicate
- type DataCollectionEndpointsClient
- func (c DataCollectionEndpointsClient) Create(ctx context.Context, id DataCollectionEndpointId, ...) (result CreateOperationResponse, err error)
- func (c DataCollectionEndpointsClient) Delete(ctx context.Context, id DataCollectionEndpointId) (result DeleteOperationResponse, err error)
- func (c DataCollectionEndpointsClient) Get(ctx context.Context, id DataCollectionEndpointId) (result GetOperationResponse, err error)
- func (c DataCollectionEndpointsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp ListByResourceGroupOperationResponse, err error)
- func (c DataCollectionEndpointsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c DataCollectionEndpointsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (resp ListByResourceGroupCompleteResult, err error)
- func (c DataCollectionEndpointsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (resp ListBySubscriptionOperationResponse, err error)
- func (c DataCollectionEndpointsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
- func (c DataCollectionEndpointsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (resp ListBySubscriptionCompleteResult, err error)
- func (c DataCollectionEndpointsClient) Update(ctx context.Context, id DataCollectionEndpointId, input ResourceForUpdate) (result UpdateOperationResponse, err error)
- type DeleteOperationResponse
- type GetOperationResponse
- type KnownDataCollectionEndpointProvisioningState
- type KnownDataCollectionEndpointResourceKind
- type KnownPublicNetworkAccessOptions
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationResponse
- type LogsIngestionEndpointSpec
- type NetworkRuleSet
- type ResourceForUpdate
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForKnownDataCollectionEndpointProvisioningState ¶
func PossibleValuesForKnownDataCollectionEndpointProvisioningState() []string
func PossibleValuesForKnownDataCollectionEndpointResourceKind ¶
func PossibleValuesForKnownDataCollectionEndpointResourceKind() []string
func PossibleValuesForKnownPublicNetworkAccessOptions ¶
func PossibleValuesForKnownPublicNetworkAccessOptions() []string
func ValidateDataCollectionEndpointID ¶
func ValidateDataCollectionEndpointID(input interface{}, key string) (warnings []string, errors []error)
ValidateDataCollectionEndpointID checks that 'input' can be parsed as a Data Collection Endpoint ID
Types ¶
type ConfigurationAccessEndpointSpec ¶
type ConfigurationAccessEndpointSpec struct {
Endpoint *string `json:"endpoint,omitempty"`
}
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response Model *DataCollectionEndpointResource }
type DataCollectionEndpoint ¶
type DataCollectionEndpoint struct { ConfigurationAccess *ConfigurationAccessEndpointSpec `json:"configurationAccess,omitempty"` Description *string `json:"description,omitempty"` ImmutableId *string `json:"immutableId,omitempty"` LogsIngestion *LogsIngestionEndpointSpec `json:"logsIngestion,omitempty"` NetworkAcls *NetworkRuleSet `json:"networkAcls,omitempty"` ProvisioningState *KnownDataCollectionEndpointProvisioningState `json:"provisioningState,omitempty"` }
type DataCollectionEndpointId ¶
type DataCollectionEndpointId struct { SubscriptionId string ResourceGroupName string DataCollectionEndpointName string }
DataCollectionEndpointId is a struct representing the Resource ID for a Data Collection Endpoint
func NewDataCollectionEndpointID ¶
func NewDataCollectionEndpointID(subscriptionId string, resourceGroupName string, dataCollectionEndpointName string) DataCollectionEndpointId
NewDataCollectionEndpointID returns a new DataCollectionEndpointId struct
func ParseDataCollectionEndpointID ¶
func ParseDataCollectionEndpointID(input string) (*DataCollectionEndpointId, error)
ParseDataCollectionEndpointID parses 'input' into a DataCollectionEndpointId
func ParseDataCollectionEndpointIDInsensitively ¶
func ParseDataCollectionEndpointIDInsensitively(input string) (*DataCollectionEndpointId, error)
ParseDataCollectionEndpointIDInsensitively parses 'input' case-insensitively into a DataCollectionEndpointId note: this method should only be used for API response data and not user input
func (*DataCollectionEndpointId) FromParseResult ¶ added in v0.20231127.1171502
func (id *DataCollectionEndpointId) FromParseResult(input resourceids.ParseResult) error
func (DataCollectionEndpointId) ID ¶
func (id DataCollectionEndpointId) ID() string
ID returns the formatted Data Collection Endpoint ID
func (DataCollectionEndpointId) Segments ¶
func (id DataCollectionEndpointId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Data Collection Endpoint ID
func (DataCollectionEndpointId) String ¶
func (id DataCollectionEndpointId) String() string
String returns a human-readable description of this Data Collection Endpoint ID
type DataCollectionEndpointResource ¶
type DataCollectionEndpointResource struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Kind *KnownDataCollectionEndpointResourceKind `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *DataCollectionEndpoint `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type DataCollectionEndpointResourceOperationPredicate ¶
type DataCollectionEndpointResourceOperationPredicate struct { Etag *string Id *string Location *string Name *string Type *string }
func (DataCollectionEndpointResourceOperationPredicate) Matches ¶
func (p DataCollectionEndpointResourceOperationPredicate) Matches(input DataCollectionEndpointResource) bool
type DataCollectionEndpointsClient ¶
type DataCollectionEndpointsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewDataCollectionEndpointsClientWithBaseURI ¶
func NewDataCollectionEndpointsClientWithBaseURI(endpoint string) DataCollectionEndpointsClient
func (DataCollectionEndpointsClient) Create ¶
func (c DataCollectionEndpointsClient) Create(ctx context.Context, id DataCollectionEndpointId, input DataCollectionEndpointResource) (result CreateOperationResponse, err error)
Create ...
func (DataCollectionEndpointsClient) Delete ¶
func (c DataCollectionEndpointsClient) Delete(ctx context.Context, id DataCollectionEndpointId) (result DeleteOperationResponse, err error)
Delete ...
func (DataCollectionEndpointsClient) Get ¶
func (c DataCollectionEndpointsClient) Get(ctx context.Context, id DataCollectionEndpointId) (result GetOperationResponse, err error)
Get ...
func (DataCollectionEndpointsClient) ListByResourceGroup ¶
func (c DataCollectionEndpointsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (DataCollectionEndpointsClient) ListByResourceGroupComplete ¶
func (c DataCollectionEndpointsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all of the results into a single object
func (DataCollectionEndpointsClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c DataCollectionEndpointsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate DataCollectionEndpointResourceOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (DataCollectionEndpointsClient) ListBySubscription ¶
func (c DataCollectionEndpointsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (resp ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (DataCollectionEndpointsClient) ListBySubscriptionComplete ¶
func (c DataCollectionEndpointsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all of the results into a single object
func (DataCollectionEndpointsClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c DataCollectionEndpointsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DataCollectionEndpointResourceOperationPredicate) (resp ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (DataCollectionEndpointsClient) Update ¶
func (c DataCollectionEndpointsClient) Update(ctx context.Context, id DataCollectionEndpointId, input ResourceForUpdate) (result UpdateOperationResponse, err error)
Update ...
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *DataCollectionEndpointResource }
type KnownDataCollectionEndpointProvisioningState ¶
type KnownDataCollectionEndpointProvisioningState string
const ( KnownDataCollectionEndpointProvisioningStateCreating KnownDataCollectionEndpointProvisioningState = "Creating" KnownDataCollectionEndpointProvisioningStateDeleting KnownDataCollectionEndpointProvisioningState = "Deleting" KnownDataCollectionEndpointProvisioningStateFailed KnownDataCollectionEndpointProvisioningState = "Failed" KnownDataCollectionEndpointProvisioningStateSucceeded KnownDataCollectionEndpointProvisioningState = "Succeeded" KnownDataCollectionEndpointProvisioningStateUpdating KnownDataCollectionEndpointProvisioningState = "Updating" )
type KnownDataCollectionEndpointResourceKind ¶
type KnownDataCollectionEndpointResourceKind string
const ( KnownDataCollectionEndpointResourceKindLinux KnownDataCollectionEndpointResourceKind = "Linux" KnownDataCollectionEndpointResourceKindWindows KnownDataCollectionEndpointResourceKind = "Windows" )
type KnownPublicNetworkAccessOptions ¶
type KnownPublicNetworkAccessOptions string
const ( KnownPublicNetworkAccessOptionsDisabled KnownPublicNetworkAccessOptions = "Disabled" KnownPublicNetworkAccessOptionsEnabled KnownPublicNetworkAccessOptions = "Enabled" )
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []DataCollectionEndpointResource
}
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *[]DataCollectionEndpointResource // contains filtered or unexported fields }
func (ListByResourceGroupOperationResponse) HasMore ¶
func (r ListByResourceGroupOperationResponse) HasMore() bool
func (ListByResourceGroupOperationResponse) LoadMore ¶
func (r ListByResourceGroupOperationResponse) LoadMore(ctx context.Context) (resp ListByResourceGroupOperationResponse, err error)
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct {
Items []DataCollectionEndpointResource
}
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response Model *[]DataCollectionEndpointResource // contains filtered or unexported fields }
func (ListBySubscriptionOperationResponse) HasMore ¶
func (r ListBySubscriptionOperationResponse) HasMore() bool
func (ListBySubscriptionOperationResponse) LoadMore ¶
func (r ListBySubscriptionOperationResponse) LoadMore(ctx context.Context) (resp ListBySubscriptionOperationResponse, err error)
type LogsIngestionEndpointSpec ¶
type LogsIngestionEndpointSpec struct {
Endpoint *string `json:"endpoint,omitempty"`
}
type NetworkRuleSet ¶
type NetworkRuleSet struct {
PublicNetworkAccess *KnownPublicNetworkAccessOptions `json:"publicNetworkAccess,omitempty"`
}
type ResourceForUpdate ¶
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *DataCollectionEndpointResource }
Source Files ¶
- client.go
- constants.go
- id_datacollectionendpoint.go
- method_create_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyresourcegroup_autorest.go
- method_listbysubscription_autorest.go
- method_update_autorest.go
- model_configurationaccessendpointspec.go
- model_datacollectionendpoint.go
- model_datacollectionendpointresource.go
- model_logsingestionendpointspec.go
- model_networkruleset.go
- model_resourceforupdate.go
- predicates.go
- version.go