Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/visualstudio/armvisualstudio
modulepackage
0.6.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Visual Studio Module for Go

PkgGoDev

The armvisualstudio module provides operations for working with Azure Visual Studio.

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 Visual Studio module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/visualstudio/armvisualstudio

Authorization

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

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 Visual Studio 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

NewAccountsClient creates a new instance of AccountsClient with the specified values.
NewClientFactory creates a new instance of ClientFactory with the specified values.
NewExtensionsClient creates a new instance of ExtensionsClient with the specified values.
NewOperationsClient creates a new instance of OperationsClient with the specified values.
NewProjectsClient creates a new instance of ProjectsClient with the specified values.
PossibleAccountResourceRequestOperationTypeValues returns the possible values for the AccountResourceRequestOperationType 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

# Structs

AccountResource - The response to an account resource GET request.
AccountResourceListResult - The response to an account resource list GET request.
AccountResourceRequest - The body of a PUT request to modify a Visual Studio account resource.
AccountsClient contains the methods for the Accounts group.
AccountsClientCheckNameAvailabilityOptions contains the optional parameters for the AccountsClient.CheckNameAvailability method.
AccountsClientCheckNameAvailabilityResponse contains the response from method AccountsClient.CheckNameAvailability.
AccountsClientCreateOrUpdateOptions contains the optional parameters for the AccountsClient.CreateOrUpdate method.
AccountsClientCreateOrUpdateResponse contains the response from method AccountsClient.CreateOrUpdate.
AccountsClientDeleteOptions contains the optional parameters for the AccountsClient.Delete method.
AccountsClientDeleteResponse contains the response from method AccountsClient.Delete.
AccountsClientGetOptions contains the optional parameters for the AccountsClient.Get method.
AccountsClientGetResponse contains the response from method AccountsClient.Get.
AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.ListByResourceGroup method.
AccountsClientListByResourceGroupResponse contains the response from method AccountsClient.ListByResourceGroup.
AccountsClientUpdateOptions contains the optional parameters for the AccountsClient.Update method.
AccountsClientUpdateResponse contains the response from method AccountsClient.Update.
AccountTagRequest - The body of a Patch request to add tags to a Visual Studio account resource.
CheckNameAvailabilityParameter - The body of a POST request to check name availability.
CheckNameAvailabilityResult - The response to a name availability request.
ClientFactory is a client factory used to create any client in this module.
ExtensionResource - The response to an extension resource GET request.
ExtensionResourceListResult - The response to an extension resource list GET request.
ExtensionResourcePlan - Plan data for an extension resource.
ExtensionResourceRequest - The body of an extension resource PUT request.
ExtensionsClient contains the methods for the Extensions group.
ExtensionsClientCreateOptions contains the optional parameters for the ExtensionsClient.Create method.
ExtensionsClientCreateResponse contains the response from method ExtensionsClient.Create.
ExtensionsClientDeleteOptions contains the optional parameters for the ExtensionsClient.Delete method.
ExtensionsClientDeleteResponse contains the response from method ExtensionsClient.Delete.
ExtensionsClientGetOptions contains the optional parameters for the ExtensionsClient.Get method.
ExtensionsClientGetResponse contains the response from method ExtensionsClient.Get.
ExtensionsClientListByAccountOptions contains the optional parameters for the ExtensionsClient.ListByAccount method.
ExtensionsClientListByAccountResponse contains the response from method ExtensionsClient.ListByAccount.
ExtensionsClientUpdateOptions contains the optional parameters for the ExtensionsClient.Update method.
ExtensionsClientUpdateResponse contains the response from method ExtensionsClient.Update.
Operation - Properties of an operation supported by the resource provider.
OperationListResult - Container for a list of operations supported by a resource provider.
OperationProperties - Properties of an operation supported by the resource provider.
OperationsClient contains the methods for the Operations group.
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
OperationsClientListResponse contains the response from method OperationsClient.List.
ProjectResource - A Visual Studio Team Services project resource.
ProjectResourceListResult - The response to a request to list Team Services project resources in a resource group/account.
ProjectsClient contains the methods for the Projects group.
ProjectsClientBeginCreateOptions contains the optional parameters for the ProjectsClient.BeginCreate method.
ProjectsClientCreateResponse contains the response from method ProjectsClient.BeginCreate.
ProjectsClientGetJobStatusOptions contains the optional parameters for the ProjectsClient.GetJobStatus method.
ProjectsClientGetJobStatusResponse contains the response from method ProjectsClient.GetJobStatus.
ProjectsClientGetOptions contains the optional parameters for the ProjectsClient.Get method.
ProjectsClientGetResponse contains the response from method ProjectsClient.Get.
ProjectsClientListByResourceGroupOptions contains the optional parameters for the ProjectsClient.ListByResourceGroup method.
ProjectsClientListByResourceGroupResponse contains the response from method ProjectsClient.ListByResourceGroup.
ProjectsClientUpdateOptions contains the optional parameters for the ProjectsClient.Update method.
ProjectsClientUpdateResponse contains the response from method ProjectsClient.Update.
Resource - A generic Azure Resource Manager resource.

# Type aliases

AccountResourceRequestOperationType - The type of the operation.