Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2
modulepackage
2.0.0-beta.5
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Selfhelp Module for Go

PkgGoDev

The armselfhelp module provides operations for working with Azure Selfhelp.

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 Selfhelp module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Selfhelp. 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 Selfhelp 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 := armselfhelp.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 := armselfhelp.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.NewDiscoverySolutionNLPSubscriptionScopeClient()

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 Selfhelp 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

NewCheckNameAvailabilityClient creates a new instance of CheckNameAvailabilityClient with the specified values.
NewClientFactory creates a new instance of ClientFactory with the specified values.
NewDiagnosticsClient creates a new instance of DiagnosticsClient with the specified values.
NewDiscoverySolutionClient creates a new instance of DiscoverySolutionClient with the specified values.
NewDiscoverySolutionNLPClient creates a new instance of DiscoverySolutionNLPClient with the specified values.
NewOperationsClient creates a new instance of OperationsClient with the specified values.
NewSimplifiedSolutionsClient creates a new instance of SimplifiedSolutionsClient with the specified values.
NewSolutionClient creates a new instance of SolutionClient with the specified values.
NewSolutionSelfHelpClient creates a new instance of SolutionSelfHelpClient with the specified values.
NewTroubleshootersClient creates a new instance of TroubleshootersClient with the specified values.
PossibleActionTypeValues returns the possible values for the ActionType const type.
PossibleAggregationTypeValues returns the possible values for the AggregationType const type.
PossibleAutomatedCheckResultTypeValues returns the possible values for the AutomatedCheckResultType const type.
PossibleConfidenceValues returns the possible values for the Confidence const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleDiagnosticProvisioningStateValues returns the possible values for the DiagnosticProvisioningState const type.
PossibleExecutionStatusValues returns the possible values for the ExecutionStatus const type.
PossibleImportanceLevelValues returns the possible values for the ImportanceLevel const type.
PossibleNameValues returns the possible values for the Name const type.
PossibleOriginValues returns the possible values for the Origin const type.
PossibleQuestionContentTypeValues returns the possible values for the QuestionContentType const type.
PossibleQuestionTypeValues returns the possible values for the QuestionType const type.
PossibleResultTypeValues returns the possible values for the ResultType const type.
PossibleSolutionProvisioningStateValues returns the possible values for the SolutionProvisioningState const type.
PossibleSolutionTypeValues returns the possible values for the SolutionType const type.
PossibleStatusValues returns the possible values for the Status const type.
PossibleTroubleshooterProvisioningStateValues returns the possible values for the TroubleshooterProvisioningState const type.
PossibleTypeValues returns the possible values for the Type const type.
PossibleValidationScopeValues returns the possible values for the ValidationScope 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
No description provided by the author
No description provided by the author
DiagnosticProvisioningStateCanceled - When Diagnostic request gets canceled.
DiagnosticProvisioningStateFailed - All Diagnostics failed to run.
DiagnosticProvisioningStatePartialComplete - Some Diagnostics are still running or failed.
DiagnosticProvisioningStateRunning - All Diagnostics are still running.
DiagnosticProvisioningStateSucceeded - All Diagnostics in the Batch succeeded.
ExecutionStatusFailed - Step execution failed.
ExecutionStatusRunning - Step execution running.
ExecutionStatusSuccess - Step execution succeeded.
ExecutionStatusWarning - Step execution warning.
ImportanceLevelCritical - A critical insight has been found after running the diagnostic.
ImportanceLevelInformation - An information insight has been found after running the diagnostic.
ImportanceLevelWarning - A warning insight has been found after running the diagnostic.
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
QuestionTypeDateTimePicker - DateTime Picker.
QuestionTypeDropdown - SingleChoice dropdown.
QuestionTypeMultiLineInfoBox - MultiLineInfoBox.
QuestionTypeMultiSelect - Multi Select.
QuestionTypeRadioButton - SingleChoice radio button.
QuestionTypeTextInput - Text Input.
No description provided by the author
No description provided by the author
SolutionProvisioningStateCanceled - When Solutions request gets canceled.
SolutionProvisioningStateFailed - All Solutions failed to run.
SolutionProvisioningStatePartialComplete - Some Solutions are still running or failed.
SolutionProvisioningStateRunning - All Solutions are still running.
SolutionProvisioningStateSucceeded - All Solutions in the Batch succeeded.
SolutionTypeDiagnostics - Diagnostics resource type.
SolutionTypeSelfHelp - SelfHelp resource type.
SolutionTypeSolutions - Solutions resource type.
SolutionTypeTroubleshooters - Troubleshooters resource type.
StatusFailed - Diagnostic creation failed.
StatusMissingInputs - Request is missing required inputs to run.
StatusRunning - Diagnostic is still running.
StatusSucceeded - Diagnostic creation succeeded.
StatusTimeout - Diagnostic was timed out.
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

AutomatedCheckResult - Only for AutomatedStep type.
CheckNameAvailabilityClient contains the methods for the CheckNameAvailability group.
CheckNameAvailabilityClientCheckAvailabilityOptions contains the optional parameters for the CheckNameAvailabilityClient.CheckAvailability method.
CheckNameAvailabilityClientCheckAvailabilityResponse contains the response from method CheckNameAvailabilityClient.CheckAvailability.
CheckNameAvailabilityRequest - The check availability request body.
CheckNameAvailabilityResponse - Response for whether the requested resource name is available or not.
ClassificationService - Service Classification result object.
ClientFactory is a client factory used to create any client in this module.
ContinueRequestBody - Troubleshooter ContinueRequest body.
Diagnostic - Properties returned with in an insight.
DiagnosticInvocation - Solution Invocation with additional params needed for invocation.
DiagnosticResource - Diagnostic resource.
DiagnosticResourceProperties - Diagnostic resource properties.
DiagnosticsClient contains the methods for the Diagnostics group.
DiagnosticsClientBeginCreateOptions contains the optional parameters for the DiagnosticsClient.BeginCreate method.
DiagnosticsClientCreateResponse contains the response from method DiagnosticsClient.BeginCreate.
DiagnosticsClientGetOptions contains the optional parameters for the DiagnosticsClient.Get method.
DiagnosticsClientGetResponse contains the response from method DiagnosticsClient.Get.
DiscoveryNlpRequest - Discover NLP request.
DiscoveryNlpResponse - Successfully fetched list of solution metadata.
DiscoveryResponse - Discovery response.
DiscoverySolutionClient contains the methods for the DiscoverySolution group.
DiscoverySolutionClientListOptions contains the optional parameters for the DiscoverySolutionClient.NewListPager method.
DiscoverySolutionClientListResponse contains the response from method DiscoverySolutionClient.NewListPager.
DiscoverySolutionNLPClient contains the methods for the DiscoverySolutionNLP group.
DiscoverySolutionNLPClientDiscoverSolutionsBySubscriptionOptions contains the optional parameters for the DiscoverySolutionNLPClient.DiscoverSolutionsBySubscription method.
DiscoverySolutionNLPClientDiscoverSolutionsBySubscriptionResponse contains the response from method DiscoverySolutionNLPClient.DiscoverSolutionsBySubscription.
DiscoverySolutionNLPClientDiscoverSolutionsOptions contains the optional parameters for the DiscoverySolutionNLPClient.DiscoverSolutions method.
DiscoverySolutionNLPClientDiscoverSolutionsResponse contains the response from method DiscoverySolutionNLPClient.DiscoverSolutions.
Error definition.
ErrorAdditionalInfo - The resource management error additional info.
ErrorDetail - The error detail.
Filter criterion.
FilterGroup - Filter group.
Insight - Detailed insights(s) obtained via the invocation of an insight diagnostic.
MetricsBasedChart - Solutions metrics based chart.
NlpSolutions - Nlp metadata.
Operation - Details of a REST API operation, returned from the Resource Provider Operations API.
OperationDisplay - Localized display information for this particular operation.
OperationListResult - A list of REST API operations supported by an Azure Resource Provider.
OperationsClient contains the methods for the Operations group.
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
ReplacementMaps - Solution replacement maps.
ReplacementMapsSelfHelp - Solution replacement maps.
ResponseOption - The status of the resource.
ResponseValidationProperties - Troubleshooter step input response validation properties.
RestartTroubleshooterResponse - Troubleshooter restart response.
SearchResult - Details of an AzureKB search result.
Section - Part of the solution and are dividers in the solution rendering.
SectionSelfHelp - Part of the solution and are dividers in the solution rendering.
SimplifiedSolutionsClient contains the methods for the SimplifiedSolutions group.
SimplifiedSolutionsClientBeginCreateOptions contains the optional parameters for the SimplifiedSolutionsClient.BeginCreate method.
SimplifiedSolutionsClientCreateResponse contains the response from method SimplifiedSolutionsClient.BeginCreate.
SimplifiedSolutionsClientGetOptions contains the optional parameters for the SimplifiedSolutionsClient.Get method.
SimplifiedSolutionsClientGetResponse contains the response from method SimplifiedSolutionsClient.Get.
SimplifiedSolutionsResource - Simplified Solutions response.
SimplifiedSolutionsResourceProperties - Simplified Solutions result.
SolutionClient contains the methods for the Solution group.
SolutionClientBeginCreateOptions contains the optional parameters for the SolutionClient.BeginCreate method.
SolutionClientBeginUpdateOptions contains the optional parameters for the SolutionClient.BeginUpdate method.
SolutionClientCreateResponse contains the response from method SolutionClient.BeginCreate.
SolutionClientGetOptions contains the optional parameters for the SolutionClient.Get method.
SolutionClientGetResponse contains the response from method SolutionClient.Get.
SolutionClientUpdateResponse contains the response from method SolutionClient.BeginUpdate.
SolutionClientWarmUpOptions contains the optional parameters for the SolutionClient.WarmUp method.
SolutionClientWarmUpResponse contains the response from method SolutionClient.WarmUp.
SolutionMetadataProperties - Metadata Properties.
SolutionMetadataResource - Metadata resource.
SolutionNlpMetadataResource - Nlp Metadata resource.
SolutionPatchRequestBody - Solution PatchRequest body.
SolutionResource - Solution response.
SolutionResourceProperties - Solution result.
SolutionResourceSelfHelp - Self Help Solution response.
Solutions - List of solutions.
SolutionsDiagnostic - Solutions Diagnostic.
SolutionSelfHelpClient contains the methods for the SolutionSelfHelp group.
SolutionSelfHelpClientGetOptions contains the optional parameters for the SolutionSelfHelpClient.Get method.
SolutionSelfHelpClientGetResponse contains the response from method SolutionSelfHelpClient.Get.
SolutionsResourcePropertiesSelfHelp - Solution result.
SolutionsTroubleshooters - Troubleshooters in Solutions.
SolutionWarmUpRequestBody - Solution WarmUpRequest body.
Step - Troubleshooter step.
StepInput - Details of step input.
SystemData - Metadata pertaining to creation and last modification of the resource.
TriggerCriterion - Solution request trigger criterion.
TroubleshooterInstanceProperties - Troubleshooter Instance properties.
TroubleshooterResource - Troubleshooter response.
TroubleshooterResponse - User Response for Troubleshooter continue request.
TroubleshootersClient contains the methods for the Troubleshooters group.
TroubleshootersClientContinueOptions contains the optional parameters for the TroubleshootersClient.Continue method.
TroubleshootersClientContinueResponse contains the response from method TroubleshootersClient.Continue.
TroubleshootersClientCreateOptions contains the optional parameters for the TroubleshootersClient.Create method.
TroubleshootersClientCreateResponse contains the response from method TroubleshootersClient.Create.
TroubleshootersClientEndOptions contains the optional parameters for the TroubleshootersClient.End method.
TroubleshootersClientEndResponse contains the response from method TroubleshootersClient.End.
TroubleshootersClientGetOptions contains the optional parameters for the TroubleshootersClient.Get method.
TroubleshootersClientGetResponse contains the response from method TroubleshootersClient.Get.
TroubleshootersClientRestartOptions contains the optional parameters for the TroubleshootersClient.Restart method.
TroubleshootersClientRestartResponse contains the response from method TroubleshootersClient.Restart.
Video detail.
VideoGroup - Video group detail.
VideoGroupVideo - VideoGroup video detail.
WebResult - AzureKB web result.

# Type aliases

ActionType - Enum.
AggregationType - Allowed values are Sum, Avg, Count, Min, Max.
AutomatedCheckResultType - Type of Result.
Confidence - Confidence of the search result.
CreatedByType - The type of identity that created the resource.
DiagnosticProvisioningState - Status of diagnostic provisioning.
ExecutionStatus - Status of Troubleshooter Step execution.
ImportanceLevel - Importance level of the insight.
Name - Trigger criterion name.
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX.
QuestionContentType - Default is Text.
QuestionType - Type of Question.
ResultType - Result type of the search result.
SolutionProvisioningState - Status of solution provisioning.
SolutionType - Solution Type.
Status - Denotes the status of the diagnostic resource.
TroubleshooterProvisioningState - Status of troubleshooter provisioning.
Type - Type of Troubleshooting step.
ValidationScope - Validation scope.