Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkfunction/armnetworkfunction/v2
modulepackage
2.2.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Network Function Manager Module for Go

PkgGoDev

The armnetworkfunction module provides operations for working with Azure Network Function Manager.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Network Function Manager module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkfunction/armnetworkfunction

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Network Function Manager. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Network Function Manager module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armnetworkfunction.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armnetworkfunction.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Network Function Manager label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

# Packages

No description provided by the author

# Functions

NewAzureTrafficCollectorsByResourceGroupClient creates a new instance of AzureTrafficCollectorsByResourceGroupClient with the specified values.
NewAzureTrafficCollectorsBySubscriptionClient creates a new instance of AzureTrafficCollectorsBySubscriptionClient with the specified values.
NewAzureTrafficCollectorsClient creates a new instance of AzureTrafficCollectorsClient with the specified values.
NewClient creates a new instance of Client with the specified values.
NewClientFactory creates a new instance of ClientFactory with the specified values.
NewCollectorPoliciesClient creates a new instance of CollectorPoliciesClient with the specified values.
PossibleAPIVersionParameterValues returns the possible values for the APIVersionParameter const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleDestinationTypeValues returns the possible values for the DestinationType const type.
PossibleEmissionTypeValues returns the possible values for the EmissionType const type.
PossibleIngestionTypeValues returns the possible values for the IngestionType const type.
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
PossibleSourceTypeValues returns the possible values for the SourceType const type.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AzureTrafficCollector - Azure Traffic Collector resource.
AzureTrafficCollectorListResult - Response for the ListTrafficCollectors API service call.
AzureTrafficCollectorPropertiesFormat - Azure Traffic Collector resource properties.
AzureTrafficCollectorsByResourceGroupClient contains the methods for the AzureTrafficCollectorsByResourceGroup group.
AzureTrafficCollectorsByResourceGroupClientListOptions contains the optional parameters for the AzureTrafficCollectorsByResourceGroupClient.NewListPager method.
AzureTrafficCollectorsByResourceGroupClientListResponse contains the response from method AzureTrafficCollectorsByResourceGroupClient.NewListPager.
AzureTrafficCollectorsBySubscriptionClient contains the methods for the AzureTrafficCollectorsBySubscription group.
AzureTrafficCollectorsBySubscriptionClientListOptions contains the optional parameters for the AzureTrafficCollectorsBySubscriptionClient.NewListPager method.
AzureTrafficCollectorsBySubscriptionClientListResponse contains the response from method AzureTrafficCollectorsBySubscriptionClient.NewListPager.
AzureTrafficCollectorsClient contains the methods for the AzureTrafficCollectors group.
AzureTrafficCollectorsClientBeginCreateOrUpdateOptions contains the optional parameters for the AzureTrafficCollectorsClient.BeginCreateOrUpdate method.
AzureTrafficCollectorsClientBeginDeleteOptions contains the optional parameters for the AzureTrafficCollectorsClient.BeginDelete method.
AzureTrafficCollectorsClientCreateOrUpdateResponse contains the response from method AzureTrafficCollectorsClient.BeginCreateOrUpdate.
AzureTrafficCollectorsClientDeleteResponse contains the response from method AzureTrafficCollectorsClient.BeginDelete.
AzureTrafficCollectorsClientGetOptions contains the optional parameters for the AzureTrafficCollectorsClient.Get method.
AzureTrafficCollectorsClientGetResponse contains the response from method AzureTrafficCollectorsClient.Get.
AzureTrafficCollectorsClientUpdateTagsOptions contains the optional parameters for the AzureTrafficCollectorsClient.UpdateTags method.
AzureTrafficCollectorsClientUpdateTagsResponse contains the response from method AzureTrafficCollectorsClient.UpdateTags.
Client contains the methods for the NetworkFunction group.
ClientFactory is a client factory used to create any client in this module.
ClientListOperationsOptions contains the optional parameters for the Client.NewListOperationsPager method.
ClientListOperationsResponse contains the response from method Client.NewListOperationsPager.
CollectorPoliciesClient contains the methods for the CollectorPolicies group.
CollectorPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters for the CollectorPoliciesClient.BeginCreateOrUpdate method.
CollectorPoliciesClientBeginDeleteOptions contains the optional parameters for the CollectorPoliciesClient.BeginDelete method.
CollectorPoliciesClientCreateOrUpdateResponse contains the response from method CollectorPoliciesClient.BeginCreateOrUpdate.
CollectorPoliciesClientDeleteResponse contains the response from method CollectorPoliciesClient.BeginDelete.
CollectorPoliciesClientGetOptions contains the optional parameters for the CollectorPoliciesClient.Get method.
CollectorPoliciesClientGetResponse contains the response from method CollectorPoliciesClient.Get.
CollectorPoliciesClientListOptions contains the optional parameters for the CollectorPoliciesClient.NewListPager method.
CollectorPoliciesClientListResponse contains the response from method CollectorPoliciesClient.NewListPager.
CollectorPoliciesClientUpdateTagsOptions contains the optional parameters for the CollectorPoliciesClient.UpdateTags method.
CollectorPoliciesClientUpdateTagsResponse contains the response from method CollectorPoliciesClient.UpdateTags.
CollectorPolicy - Collector policy resource.
CollectorPolicyListResult - Response for the ListCollectorPolicies API service call.
CollectorPolicyPropertiesFormat - Collection policy properties.
EmissionPoliciesPropertiesFormat - Emission policy properties.
EmissionPolicyDestination - Emission policy destination properties.
IngestionPolicyPropertiesFormat - Ingestion Policy properties.
IngestionSourcesPropertiesFormat - Ingestion policy properties.
Operation - Azure Traffic Collector REST API operation definition.
OperationDisplay - Display metadata associated with the operation.
OperationListResult - Result of the request to list Azure Traffic Collector operations.
ProxyResource - An azure resource object.
ResourceReference - Resource reference properties.
SystemData - Metadata pertaining to creation and last modification of the resource.
TagsObject - Tags object for patch operations.
TrackedResource - Common resource representation.
TrackedResourceSystemData - Metadata pertaining to creation and last modification of the resource.

# Type aliases

No description provided by the author
CreatedByType - The type of identity that created the resource.
DestinationType - Emission destination type.
EmissionType - Emission format type.
IngestionType - The ingestion type.
ProvisioningState - The current provisioning state.
SourceType - Ingestion source type.