azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio Index | Files | Directories

package visualstudio

import "github.com/Azure/azure-sdk-for-go/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio"

Package visualstudio implements the Azure ARM Visualstudio service API version 2014-04-01-preview.

Use these APIs to manage Visual Studio Team Services resources through the Azure Resource Manager. All task operations conform to the HTTP/1.1 protocol specification and each operation returns an x-ms-request-id header that can be used to obtain information about the request. You must make sure that requests made to these resources are secure. For more information, see https://docs.microsoft.com/en-us/rest/api/index.

Index

Package Files

accounts.go client.go extensions.go models.go operations.go projects.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Visualstudio
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AccountResource Uses

type AccountResource struct {
    autorest.Response `json:"-"`
    // Properties - Resource properties.
    Properties map[string]*string `json:"properties"`
    // ID - READ-ONLY; Unique identifier of the resource.
    ID  *string `json:"id,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

AccountResource the response to an account resource GET request.

func (AccountResource) MarshalJSON Uses

func (ar AccountResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountResource.

type AccountResourceListResult Uses

type AccountResourceListResult struct {
    autorest.Response `json:"-"`
    // Value - Array of resource details.
    Value *[]AccountResource `json:"value,omitempty"`
}

AccountResourceListResult the response to an account resource list GET request.

type AccountResourceRequest Uses

type AccountResourceRequest struct {
    // AccountName - The account name.
    AccountName *string `json:"accountName,omitempty"`
    // Location - The Azure instance location.
    Location *string `json:"location,omitempty"`
    // OperationType - The type of the operation.
    OperationType interface{} `json:"operationType,omitempty"`
    // Properties - The custom properties of the resource.
    Properties map[string]*string `json:"properties"`
    // Tags - The custom tags of the resource.
    Tags map[string]*string `json:"tags"`
}

AccountResourceRequest the body of a PUT request to modify a Visual Studio account resource.

func (AccountResourceRequest) MarshalJSON Uses

func (arr AccountResourceRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountResourceRequest.

type AccountTagRequest Uses

type AccountTagRequest struct {
    // Tags - The custom tags of the resource.
    Tags map[string]*string `json:"tags"`
}

AccountTagRequest the body of a Patch request to add tags to a Visual Studio account resource.

func (AccountTagRequest) MarshalJSON Uses

func (atr AccountTagRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountTagRequest.

type AccountsClient Uses

type AccountsClient struct {
    BaseClient
}

AccountsClient is the use these APIs to manage Visual Studio Team Services resources through the Azure Resource Manager. All task operations conform to the HTTP/1.1 protocol specification and each operation returns an x-ms-request-id header that can be used to obtain information about the request. You must make sure that requests made to these resources are secure. For more information, see https://docs.microsoft.com/en-us/rest/api/index.

func NewAccountsClient Uses

func NewAccountsClient(subscriptionID string) AccountsClient

NewAccountsClient creates an instance of the AccountsClient client.

func NewAccountsClientWithBaseURI Uses

func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient

NewAccountsClientWithBaseURI creates an instance of the AccountsClient client.

func (AccountsClient) CheckNameAvailability Uses

func (client AccountsClient) CheckNameAvailability(ctx context.Context, body CheckNameAvailabilityParameter) (result CheckNameAvailabilityResult, err error)

CheckNameAvailability checks if the specified Visual Studio Team Services account name is available. Resource name can be either an account name or an account name and PUID. Parameters: body - parameters describing the name to check availability for.

func (AccountsClient) CheckNameAvailabilityPreparer Uses

func (client AccountsClient) CheckNameAvailabilityPreparer(ctx context.Context, body CheckNameAvailabilityParameter) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (AccountsClient) CheckNameAvailabilityResponder Uses

func (client AccountsClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (AccountsClient) CheckNameAvailabilitySender Uses

func (client AccountsClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.

func (AccountsClient) CreateOrUpdate Uses

func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, body AccountResourceRequest, resourceName string) (result AccountResource, err error)

CreateOrUpdate creates or updates a Visual Studio Team Services account resource. Parameters: resourceGroupName - name of the resource group within the Azure subscription. body - the request data. resourceName - name of the resource.

func (AccountsClient) CreateOrUpdatePreparer Uses

func (client AccountsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, body AccountResourceRequest, resourceName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AccountsClient) CreateOrUpdateResponder Uses

func (client AccountsClient) CreateOrUpdateResponder(resp *http.Response) (result AccountResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (AccountsClient) CreateOrUpdateSender Uses

func (client AccountsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (AccountsClient) Delete Uses

func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)

Delete deletes a Visual Studio Team Services account resource. Parameters: resourceGroupName - name of the resource group within the Azure subscription. resourceName - name of the resource.

func (AccountsClient) DeletePreparer Uses

func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AccountsClient) DeleteResponder Uses

func (client AccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AccountsClient) DeleteSender Uses

func (client AccountsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AccountsClient) Get Uses

func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result AccountResource, err error)

Get gets the Visual Studio Team Services account resource details. Parameters: resourceGroupName - name of the resource group within the Azure subscription. resourceName - name of the resource.

func (AccountsClient) GetPreparer Uses

func (client AccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AccountsClient) GetResponder Uses

func (client AccountsClient) GetResponder(resp *http.Response) (result AccountResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AccountsClient) GetSender Uses

func (client AccountsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AccountsClient) ListByResourceGroup Uses

func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountResourceListResult, err error)

ListByResourceGroup gets all Visual Studio Team Services account resources under the resource group linked to the specified Azure subscription. Parameters: resourceGroupName - name of the resource group within the Azure subscription.

func (AccountsClient) ListByResourceGroupPreparer Uses

func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AccountsClient) ListByResourceGroupResponder Uses

func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountResourceListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (AccountsClient) ListByResourceGroupSender Uses

func (client AccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (AccountsClient) Update Uses

func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, body AccountTagRequest, resourceName string) (result AccountResource, err error)

Update updates tags for Visual Studio Team Services account resource. Parameters: resourceGroupName - name of the resource group within the Azure subscription. body - the request data. resourceName - name of the resource.

func (AccountsClient) UpdatePreparer Uses

func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, body AccountTagRequest, resourceName string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AccountsClient) UpdateResponder Uses

func (client AccountsClient) UpdateResponder(resp *http.Response) (result AccountResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AccountsClient) UpdateSender Uses

func (client AccountsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Visualstudio.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type CheckNameAvailabilityParameter Uses

type CheckNameAvailabilityParameter struct {
    // ResourceName - The name of the resource to check availability for.
    ResourceName *string `json:"resourceName,omitempty"`
    // ResourceType - The type of resource to check availability for.
    ResourceType *string `json:"resourceType,omitempty"`
}

CheckNameAvailabilityParameter the body of a POST request to check name availability.

type CheckNameAvailabilityResult Uses

type CheckNameAvailabilityResult struct {
    autorest.Response `json:"-"`
    // Message - The message describing the detailed reason.
    Message *string `json:"message,omitempty"`
    // NameAvailable - The value which indicates whether the provided name is available.
    NameAvailable *bool `json:"nameAvailable,omitempty"`
}

CheckNameAvailabilityResult the response to a name availability request.

type ExtensionResource Uses

type ExtensionResource struct {
    autorest.Response `json:"-"`
    // Plan - The extension plan that was purchased.
    Plan *ExtensionResourcePlan `json:"plan,omitempty"`
    // Properties - Resource properties.
    Properties map[string]*string `json:"properties"`
    // ID - READ-ONLY; Unique identifier of the resource.
    ID  *string `json:"id,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

ExtensionResource the response to an extension resource GET request.

func (ExtensionResource) MarshalJSON Uses

func (er ExtensionResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExtensionResource.

type ExtensionResourceListResult Uses

type ExtensionResourceListResult struct {
    autorest.Response `json:"-"`
    // Value - Array of extension resource details.
    Value *[]ExtensionResource `json:"value,omitempty"`
}

ExtensionResourceListResult the response to an extension resource list GET request.

type ExtensionResourcePlan Uses

type ExtensionResourcePlan struct {
    // Name - Name of the plan.
    Name *string `json:"name,omitempty"`
    // Product - Product name.
    Product *string `json:"product,omitempty"`
    // PromotionCode - Optional: the promotion code associated with the plan.
    PromotionCode *string `json:"promotionCode,omitempty"`
    // Publisher - Name of the extension publisher.
    Publisher *string `json:"publisher,omitempty"`
    // Version - A string that uniquely identifies the plan version.
    Version *string `json:"version,omitempty"`
}

ExtensionResourcePlan plan data for an extension resource.

type ExtensionResourceRequest Uses

type ExtensionResourceRequest struct {
    // Location - The Azure region of the Visual Studio account associated with this request (i.e 'southcentralus'.)
    Location *string `json:"location,omitempty"`
    // Plan - Extended information about the plan being purchased for this extension resource.
    Plan *ExtensionResourcePlan `json:"plan,omitempty"`
    // Properties - A dictionary of extended properties. This property is currently unused.
    Properties map[string]*string `json:"properties"`
    // Tags - A dictionary of user-defined tags to be stored with the extension resource.
    Tags map[string]*string `json:"tags"`
}

ExtensionResourceRequest the body of an extension resource PUT request.

func (ExtensionResourceRequest) MarshalJSON Uses

func (errVar ExtensionResourceRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExtensionResourceRequest.

type ExtensionsClient Uses

type ExtensionsClient struct {
    BaseClient
}

ExtensionsClient is the use these APIs to manage Visual Studio Team Services resources through the Azure Resource Manager. All task operations conform to the HTTP/1.1 protocol specification and each operation returns an x-ms-request-id header that can be used to obtain information about the request. You must make sure that requests made to these resources are secure. For more information, see https://docs.microsoft.com/en-us/rest/api/index.

func NewExtensionsClient Uses

func NewExtensionsClient(subscriptionID string) ExtensionsClient

NewExtensionsClient creates an instance of the ExtensionsClient client.

func NewExtensionsClientWithBaseURI Uses

func NewExtensionsClientWithBaseURI(baseURI string, subscriptionID string) ExtensionsClient

NewExtensionsClientWithBaseURI creates an instance of the ExtensionsClient client.

func (ExtensionsClient) Create Uses

func (client ExtensionsClient) Create(ctx context.Context, resourceGroupName string, body ExtensionResourceRequest, accountResourceName string, extensionResourceName string) (result ExtensionResource, err error)

Create registers the extension with a Visual Studio Team Services account. Parameters: resourceGroupName - name of the resource group within the Azure subscription. body - an object containing additional information related to the extension request. accountResourceName - the name of the Visual Studio Team Services account resource. extensionResourceName - the name of the extension.

func (ExtensionsClient) CreatePreparer Uses

func (client ExtensionsClient) CreatePreparer(ctx context.Context, resourceGroupName string, body ExtensionResourceRequest, accountResourceName string, extensionResourceName string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ExtensionsClient) CreateResponder Uses

func (client ExtensionsClient) CreateResponder(resp *http.Response) (result ExtensionResource, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ExtensionsClient) CreateSender Uses

func (client ExtensionsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ExtensionsClient) Delete Uses

func (client ExtensionsClient) Delete(ctx context.Context, resourceGroupName string, accountResourceName string, extensionResourceName string) (result autorest.Response, err error)

Delete removes an extension resource registration for a Visual Studio Team Services account. Parameters: resourceGroupName - name of the resource group within the Azure subscription. accountResourceName - the name of the Visual Studio Team Services account resource. extensionResourceName - the name of the extension.

func (ExtensionsClient) DeletePreparer Uses

func (client ExtensionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountResourceName string, extensionResourceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ExtensionsClient) DeleteResponder Uses

func (client ExtensionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ExtensionsClient) DeleteSender Uses

func (client ExtensionsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ExtensionsClient) Get Uses

func (client ExtensionsClient) Get(ctx context.Context, resourceGroupName string, accountResourceName string, extensionResourceName string) (result ExtensionResource, err error)

Get gets the details of an extension associated with a Visual Studio Team Services account resource. Parameters: resourceGroupName - name of the resource group within the Azure subscription. accountResourceName - the name of the Visual Studio Team Services account resource. extensionResourceName - the name of the extension.

func (ExtensionsClient) GetPreparer Uses

func (client ExtensionsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountResourceName string, extensionResourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ExtensionsClient) GetResponder Uses

func (client ExtensionsClient) GetResponder(resp *http.Response) (result ExtensionResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ExtensionsClient) GetSender Uses

func (client ExtensionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ExtensionsClient) ListByAccount Uses

func (client ExtensionsClient) ListByAccount(ctx context.Context, resourceGroupName string, accountResourceName string) (result ExtensionResourceListResult, err error)

ListByAccount gets the details of the extension resources created within the resource group. Parameters: resourceGroupName - name of the resource group within the Azure subscription. accountResourceName - the name of the Visual Studio Team Services account resource.

func (ExtensionsClient) ListByAccountPreparer Uses

func (client ExtensionsClient) ListByAccountPreparer(ctx context.Context, resourceGroupName string, accountResourceName string) (*http.Request, error)

ListByAccountPreparer prepares the ListByAccount request.

func (ExtensionsClient) ListByAccountResponder Uses

func (client ExtensionsClient) ListByAccountResponder(resp *http.Response) (result ExtensionResourceListResult, err error)

ListByAccountResponder handles the response to the ListByAccount request. The method always closes the http.Response Body.

func (ExtensionsClient) ListByAccountSender Uses

func (client ExtensionsClient) ListByAccountSender(req *http.Request) (*http.Response, error)

ListByAccountSender sends the ListByAccount request. The method will close the http.Response Body if it receives an error.

func (ExtensionsClient) Update Uses

func (client ExtensionsClient) Update(ctx context.Context, resourceGroupName string, body ExtensionResourceRequest, accountResourceName string, extensionResourceName string) (result ExtensionResource, err error)

Update updates an existing extension registration for the Visual Studio Team Services account. Parameters: resourceGroupName - name of the resource group within the Azure subscription. body - an object containing additional information related to the extension request. accountResourceName - the name of the Visual Studio Team Services account resource. extensionResourceName - the name of the extension.

func (ExtensionsClient) UpdatePreparer Uses

func (client ExtensionsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, body ExtensionResourceRequest, accountResourceName string, extensionResourceName string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ExtensionsClient) UpdateResponder Uses

func (client ExtensionsClient) UpdateResponder(resp *http.Response) (result ExtensionResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ExtensionsClient) UpdateSender Uses

func (client ExtensionsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type Operation Uses

type Operation struct {
    // Display - The properties of the resource operation.
    Display *OperationProperties `json:"display,omitempty"`
    // Name - The name of the resource operation.
    Name *string `json:"name,omitempty"`
}

Operation properties of an operation supported by the resource provider.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - A list of operations supported by a resource provider.
    Value *[]Operation `json:"value,omitempty"`
}

OperationListResult container for a list of operations supported by a resource provider.

type OperationProperties Uses

type OperationProperties struct {
    // Description - The description of the resource operation.
    Description *string `json:"description,omitempty"`
    // Operation - The operation name.
    Operation *string `json:"operation,omitempty"`
    // Provider - The provider name.
    Provider *string `json:"provider,omitempty"`
    // Resource - The resource name.
    Resource *string `json:"resource,omitempty"`
}

OperationProperties properties of an operation supported by the resource provider.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the use these APIs to manage Visual Studio Team Services resources through the Azure Resource Manager. All task operations conform to the HTTP/1.1 protocol specification and each operation returns an x-ms-request-id header that can be used to obtain information about the request. You must make sure that requests made to these resources are secure. For more information, see https://docs.microsoft.com/en-us/rest/api/index.

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)

List gets the details of all operations possible on the Microsoft.VisualStudio resource provider.

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ProjectResource Uses

type ProjectResource struct {
    autorest.Response `json:"-"`
    // Properties - Key/value pair of resource properties.
    Properties map[string]*string `json:"properties"`
    // ID - READ-ONLY; Unique identifier of the resource.
    ID  *string `json:"id,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

ProjectResource a Visual Studio Team Services project resource.

func (ProjectResource) MarshalJSON Uses

func (pr ProjectResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProjectResource.

type ProjectResourceListResult Uses

type ProjectResourceListResult struct {
    autorest.Response `json:"-"`
    // Value - List of project resource details.
    Value *[]ProjectResource `json:"value,omitempty"`
}

ProjectResourceListResult the response to a request to list Team Services project resources in a resource group/account.

type ProjectsClient Uses

type ProjectsClient struct {
    BaseClient
}

ProjectsClient is the use these APIs to manage Visual Studio Team Services resources through the Azure Resource Manager. All task operations conform to the HTTP/1.1 protocol specification and each operation returns an x-ms-request-id header that can be used to obtain information about the request. You must make sure that requests made to these resources are secure. For more information, see https://docs.microsoft.com/en-us/rest/api/index.

func NewProjectsClient Uses

func NewProjectsClient(subscriptionID string) ProjectsClient

NewProjectsClient creates an instance of the ProjectsClient client.

func NewProjectsClientWithBaseURI Uses

func NewProjectsClientWithBaseURI(baseURI string, subscriptionID string) ProjectsClient

NewProjectsClientWithBaseURI creates an instance of the ProjectsClient client.

func (ProjectsClient) Create Uses

func (client ProjectsClient) Create(ctx context.Context, body ProjectResource, resourceGroupName string, rootResourceName string, resourceName string, validating string) (result ProjectsCreateFuture, err error)

Create creates a Team Services project in the collection with the specified name. 'VersionControlOption' and 'ProcessTemplateId' must be specified in the resource properties. Valid values for VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId: 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process templates). Parameters: body - the request data. resourceGroupName - name of the resource group within the Azure subscription. rootResourceName - name of the Team Services account. resourceName - name of the Team Services project. validating - this parameter is ignored and should be set to an empty string.

func (ProjectsClient) CreatePreparer Uses

func (client ProjectsClient) CreatePreparer(ctx context.Context, body ProjectResource, resourceGroupName string, rootResourceName string, resourceName string, validating string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ProjectsClient) CreateResponder Uses

func (client ProjectsClient) CreateResponder(resp *http.Response) (result ProjectResource, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ProjectsClient) CreateSender Uses

func (client ProjectsClient) CreateSender(req *http.Request) (future ProjectsCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ProjectsClient) Get Uses

func (client ProjectsClient) Get(ctx context.Context, resourceGroupName string, rootResourceName string, resourceName string) (result ProjectResource, err error)

Get gets the details of a Team Services project resource. Parameters: resourceGroupName - name of the resource group within the Azure subscription. rootResourceName - name of the Team Services account. resourceName - name of the Team Services project.

func (ProjectsClient) GetJobStatus Uses

func (client ProjectsClient) GetJobStatus(ctx context.Context, resourceGroupName string, rootResourceName string, resourceName string, subContainerName string, operation string, jobID *uuid.UUID) (result ProjectResource, err error)

GetJobStatus gets the status of the project resource creation job. Parameters: resourceGroupName - name of the resource group within the Azure subscription. rootResourceName - name of the Team Services account. resourceName - name of the Team Services project. subContainerName - this parameter should be set to the resourceName. operation - the operation type. The only supported value is 'put'. jobID - the job identifier.

func (ProjectsClient) GetJobStatusPreparer Uses

func (client ProjectsClient) GetJobStatusPreparer(ctx context.Context, resourceGroupName string, rootResourceName string, resourceName string, subContainerName string, operation string, jobID *uuid.UUID) (*http.Request, error)

GetJobStatusPreparer prepares the GetJobStatus request.

func (ProjectsClient) GetJobStatusResponder Uses

func (client ProjectsClient) GetJobStatusResponder(resp *http.Response) (result ProjectResource, err error)

GetJobStatusResponder handles the response to the GetJobStatus request. The method always closes the http.Response Body.

func (ProjectsClient) GetJobStatusSender Uses

func (client ProjectsClient) GetJobStatusSender(req *http.Request) (*http.Response, error)

GetJobStatusSender sends the GetJobStatus request. The method will close the http.Response Body if it receives an error.

func (ProjectsClient) GetPreparer Uses

func (client ProjectsClient) GetPreparer(ctx context.Context, resourceGroupName string, rootResourceName string, resourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProjectsClient) GetResponder Uses

func (client ProjectsClient) GetResponder(resp *http.Response) (result ProjectResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProjectsClient) GetSender Uses

func (client ProjectsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ProjectsClient) ListByResourceGroup Uses

func (client ProjectsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, rootResourceName string) (result ProjectResourceListResult, err error)

ListByResourceGroup gets all Visual Studio Team Services project resources created in the specified Team Services account. Parameters: resourceGroupName - name of the resource group within the Azure subscription. rootResourceName - name of the Team Services account.

func (ProjectsClient) ListByResourceGroupPreparer Uses

func (client ProjectsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, rootResourceName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ProjectsClient) ListByResourceGroupResponder Uses

func (client ProjectsClient) ListByResourceGroupResponder(resp *http.Response) (result ProjectResourceListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ProjectsClient) ListByResourceGroupSender Uses

func (client ProjectsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ProjectsClient) Update Uses

func (client ProjectsClient) Update(ctx context.Context, resourceGroupName string, body ProjectResource, rootResourceName string, resourceName string) (result ProjectResource, err error)

Update updates the tags of the specified Team Services project. Parameters: resourceGroupName - name of the resource group within the Azure subscription. body - the request data. rootResourceName - name of the Team Services account. resourceName - name of the Team Services project.

func (ProjectsClient) UpdatePreparer Uses

func (client ProjectsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, body ProjectResource, rootResourceName string, resourceName string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ProjectsClient) UpdateResponder Uses

func (client ProjectsClient) UpdateResponder(resp *http.Response) (result ProjectResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ProjectsClient) UpdateSender Uses

func (client ProjectsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ProjectsCreateFuture Uses

type ProjectsCreateFuture struct {
    azure.Future
}

ProjectsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ProjectsCreateFuture) Result Uses

func (future *ProjectsCreateFuture) Result(client ProjectsClient) (pr ProjectResource, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Resource Uses

type Resource struct {
    // ID - READ-ONLY; Unique identifier of the resource.
    ID  *string `json:"id,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

Resource a generic Azure Resource Manager resource.

func (Resource) MarshalJSON Uses

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

Directories

PathSynopsis
visualstudioapi

Package visualstudio imports 8 packages (graph) and is imported by 3 packages. Updated 2019-08-02. Refresh now. Tools for package owners.