Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure
modulepackage
1.0.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure DevOps Infrastructure Module for Go

The armdevopsinfrastructure module provides operations for working with Azure DevOps Infrastructure.

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 DevOps Infrastructure module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure

Authorization

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

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 DevOps Infrastructure 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

NewClientFactory creates a new instance of ClientFactory with the specified values.
NewImageVersionsClient creates a new instance of ImageVersionsClient with the specified values.
NewOperationsClient creates a new instance of OperationsClient with the specified values.
NewPoolsClient creates a new instance of PoolsClient with the specified values.
NewResourceDetailsClient creates a new instance of ResourceDetailsClient with the specified values.
NewSKUClient creates a new instance of SKUClient with the specified values.
NewSubscriptionUsagesClient creates a new instance of SubscriptionUsagesClient with the specified values.
PossibleActionTypeValues returns the possible values for the ActionType const type.
PossibleAzureDevOpsPermissionTypeValues returns the possible values for the AzureDevOpsPermissionType const type.
PossibleCachingTypeValues returns the possible values for the CachingType const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleLogonTypeValues returns the possible values for the LogonType const type.
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
PossibleOriginValues returns the possible values for the Origin const type.
PossibleOsDiskStorageAccountTypeValues returns the possible values for the OsDiskStorageAccountType const type.
PossiblePredictionPreferenceValues returns the possible values for the PredictionPreference const type.
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
PossibleResourcePredictionsProfileTypeValues returns the possible values for the ResourcePredictionsProfileType const type.
PossibleResourceSKURestrictionsReasonCodeValues returns the possible values for the ResourceSKURestrictionsReasonCode const type.
PossibleResourceSKURestrictionsTypeValues returns the possible values for the ResourceSKURestrictionsType const type.
PossibleResourceStatusValues returns the possible values for the ResourceStatus const type.
PossibleStorageAccountTypeValues returns the possible values for the StorageAccountType const type.

# Constants

ActionTypeInternal - Actions are for internal-only APIs.
AzureDevOpsPermissionTypeCreatorOnly - Only the pool creator will be an admin of the pool.
AzureDevOpsPermissionTypeInherit - Pool will inherit permissions from the project or organization.
AzureDevOpsPermissionTypeSpecificAccounts - Only the specified accounts will be admins of the pool.
CachingTypeNone - Don't use host caching.
CachingTypeReadOnly - For workloads that only do read operations.
CachingTypeReadWrite - For workloads that do a balance of read and write operations.
CreatedByTypeApplication - The entity was created by an application.
CreatedByTypeKey - The entity was created by a key.
CreatedByTypeManagedIdentity - The entity was created by a managed identity.
CreatedByTypeUser - The entity was created by a user.
LogonTypeInteractive - Run in interactive mode.
LogonTypeService - Run as a service.
ManagedServiceIdentityTypeNone - No managed identity.
ManagedServiceIdentityTypeSystemAssigned - System assigned managed identity.
ManagedServiceIdentityTypeSystemAssignedUserAssigned - System and user assigned managed identity.
ManagedServiceIdentityTypeUserAssigned - User assigned managed identity.
OriginSystem - Indicates the operation is initiated by a system.
OriginUser - Indicates the operation is initiated by a user.
OriginUserSystem - Indicates the operation is initiated by a user or system.
OsDiskStorageAccountTypePremium - Premium OS disk type.
OsDiskStorageAccountTypeStandard - Standard OS disk type.
OsDiskStorageAccountTypeStandardSSD - Standard SSD OS disk type.
PredictionPreferenceBalanced - Balance between cost and performance.
PredictionPreferenceBestPerformance - Optimizes for performance over cost.
PredictionPreferenceMoreCostEffective - Halfway through cost and balanced.
PredictionPreferenceMorePerformance - Halfway through balanced and performance.
PredictionPreferenceMostCostEffective - Optimizes for cost over performance.
ProvisioningStateAccepted - Represents an accepted operation.
ProvisioningStateCanceled - Represents a canceled operation.
ProvisioningStateDeleting - Represents an operation under deletion.
ProvisioningStateFailed - Represents a failed operation.
ProvisioningStateProvisioning - Represents a pending operation.
ProvisioningStateSucceeded - Represents a succeeded operation.
ProvisioningStateUpdating - Represents a pending operation.
ResourcePredictionsProfileTypeAutomatic - The stand-by agent scheme is determined based on historical demand.
ResourcePredictionsProfileTypeManual - Customer provides the stand-by agent scheme.
ResourceSKURestrictionsReasonCodeNotAvailableForSubscription - The restriction is not available for this subscription.
ResourceSKURestrictionsReasonCodeQuotaID - The restriction is due to exceeding a quota limitation.
ResourceSKURestrictionsTypeLocation - SKU restricted by location.
ResourceSKURestrictionsTypeZone - SKU restricted by availability zone.
ResourceStatusAllocated - Represents a machine resource that is allocated.
ResourceStatusLeased - Represents a machine resource that is leased.
ResourceStatusNotReady - Represents a machine resource that is not ready.
ResourceStatusPendingReimage - Represents a machine resource that is pending reimage.
ResourceStatusPendingReturn - Represents a machine resource that is pending return.
ResourceStatusProvisioning - Represents a machine resource that is provisioning.
ResourceStatusReady - Represents a machine resource that is ready.
ResourceStatusReimaging - Represents a machine resource that is reimaging.
ResourceStatusReturned - Represents a machine resource that is returned.
ResourceStatusStarting - Represents a machine resource that is starting.
ResourceStatusUpdating - Represents a machine resource that is updating.
StorageAccountTypePremiumLRS - The data disk should use premium locally redundant storage.
StorageAccountTypePremiumZRS - The data disk should use premium SSD zonal redundant storage.
StorageAccountTypeStandardLRS - The data disk should use standard locally redundant storage.
StorageAccountTypeStandardSSDLRS - The data disk should use standard SSD locally redundant storage.
StorageAccountTypeStandardSSDZRS - The data disk should use standard SSD zonal redundant storage.

# Structs

AgentProfile - The agent profile of the machines in the pool.
AutomaticResourcePredictionsProfile - The stand-by agent scheme is determined based on historical demand.
AzureDevOpsOrganizationProfile - Azure DevOps organization profile.
AzureDevOpsPermissionProfile - Defines the type of Azure DevOps pool permission.
ClientFactory is a client factory used to create any client in this module.
DataDisk - The data disk of the VMSS.
DevOpsAzureSKU - The Azure SKU of the machines in the pool.
FabricProfile - Defines the type of fabric the agent will run on.
GitHubOrganization - Defines a GitHub organization.
GitHubOrganizationProfile - GitHub organization profile.
ImageVersion - An image version object.
ImageVersionListResult - The response of a ImageVersion list operation.
ImageVersionProperties - Details of the ImageVersionProperties.
ImageVersionsClient contains the methods for the ImageVersions group.
ImageVersionsClientListByImageOptions contains the optional parameters for the ImageVersionsClient.NewListByImagePager method.
ImageVersionsClientListByImageResponse contains the response from method ImageVersionsClient.NewListByImagePager.
ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities).
ManualResourcePredictionsProfile - Customer provides the stand-by agent scheme.
NetworkProfile - The network profile of the machines in the pool.
Operation - Details of a REST API operation, returned from the Resource Provider Operations API.
OperationDisplay - Localized display information for and 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.
Organization - Defines an Azure DevOps organization.
OrganizationProfile - Defines the organization in which the pool will be used.
OsProfile - The OS profile of the machines in the pool.
PagedQuota - Paged collection of Quota items.
Pool - Concrete tracked resource types can be created by aliasing this type using a specific property type.
PoolImage - The VM image of the machines in the pool.
PoolListResult - The response of a Pool list operation.
PoolProperties - Pool properties.
PoolsClient contains the methods for the Pools group.
PoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the PoolsClient.BeginCreateOrUpdate method.
PoolsClientBeginDeleteOptions contains the optional parameters for the PoolsClient.BeginDelete method.
PoolsClientBeginUpdateOptions contains the optional parameters for the PoolsClient.BeginUpdate method.
PoolsClientCreateOrUpdateResponse contains the response from method PoolsClient.BeginCreateOrUpdate.
PoolsClientDeleteResponse contains the response from method PoolsClient.BeginDelete.
PoolsClientGetOptions contains the optional parameters for the PoolsClient.Get method.
PoolsClientGetResponse contains the response from method PoolsClient.Get.
PoolsClientListByResourceGroupOptions contains the optional parameters for the PoolsClient.NewListByResourceGroupPager method.
PoolsClientListByResourceGroupResponse contains the response from method PoolsClient.NewListByResourceGroupPager.
PoolsClientListBySubscriptionOptions contains the optional parameters for the PoolsClient.NewListBySubscriptionPager method.
PoolsClientListBySubscriptionResponse contains the response from method PoolsClient.NewListBySubscriptionPager.
PoolsClientUpdateResponse contains the response from method PoolsClient.BeginUpdate.
PoolUpdate - The type used for update operations of the Pool.
PoolUpdateProperties - The updatable properties of the Pool.
Quota - Describes Resource Quota.
QuotaName - The Quota Names.
ResourceDetailsClient contains the methods for the ResourceDetails group.
ResourceDetailsClientListByPoolOptions contains the optional parameters for the ResourceDetailsClient.NewListByPoolPager method.
ResourceDetailsClientListByPoolResponse contains the response from method ResourceDetailsClient.NewListByPoolPager.
ResourceDetailsObject - A ResourceDetailsObject.
ResourceDetailsObjectListResult - The response of a ResourceDetailsObject list operation.
ResourceDetailsObjectProperties - Details of the ResourceDetailsObject.
ResourcePredictions - Defines pool buffer.
ResourcePredictionsProfile - Determines how the stand-by scheme should be provided.
ResourceSKU - A ResourceSku.
ResourceSKUCapabilities - Describes The SKU capabilities object.
ResourceSKUListResult - The response of a ResourceSku list operation.
ResourceSKULocationInfo - Describes an available Compute SKU Location Information.
ResourceSKUProperties - Properties of a ResourceSku.
ResourceSKURestrictionInfo - Describes an available Compute SKU Restriction Information.
ResourceSKURestrictions - The restrictions of the SKU.
ResourceSKUZoneDetails - Describes The zonal capabilities of a SKU.
SecretsManagementSettings - The secret management settings of the machines in the pool.
SKUClient contains the methods for the SKU group.
SKUClientListByLocationOptions contains the optional parameters for the SKUClient.NewListByLocationPager method.
SKUClientListByLocationResponse contains the response from method SKUClient.NewListByLocationPager.
Stateful profile meaning that the machines will be returned to the pool after running a job.
StatelessAgentProfile - Stateless profile meaning that the machines will be cleaned up after running a job.
StorageProfile - The storage profile of the VMSS.
SubscriptionUsagesClient contains the methods for the SubscriptionUsages group.
SubscriptionUsagesClientUsagesOptions contains the optional parameters for the SubscriptionUsagesClient.NewUsagesPager method.
SubscriptionUsagesClientUsagesResponse contains the response from method SubscriptionUsagesClient.NewUsagesPager.
SystemData - Metadata pertaining to creation and last modification of the resource.
UserAssignedIdentity - User assigned identity properties.
VmssFabricProfile - The agents will run on Virtual Machine Scale Sets.

# Interfaces

AgentProfileClassification provides polymorphic access to related types.
FabricProfileClassification provides polymorphic access to related types.
OrganizationProfileClassification provides polymorphic access to related types.
ResourcePredictionsProfileClassification provides polymorphic access to related types.

# Type aliases

ActionType - Extensible enum.
AzureDevOpsPermissionType - Determines who has admin permissions to the Azure DevOps pool.
CachingType - The type of caching in a data disk.
CreatedByType - The kind of entity that created the resource.
LogonType - Determines how the service should be run.
ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX.
OsDiskStorageAccountType - The storage account type of the OS disk.
PredictionPreference - Determines the balance between cost and performance.
ProvisioningState - The status of the current operation.
ResourcePredictionsProfileType - Determines how the stand-by scheme should be provided.
ResourceSKURestrictionsReasonCode - Describes the reason for SKU restriction.
ResourceSKURestrictionsType - Describes the kind of SKU restrictions that can exist.
ResourceStatus - The status of the machine resource.
StorageAccountType - StorageAccountType enums.