Documentation ¶
Index ¶
- type ActionType
- type AllowedEnvironmentType
- type AllowedEnvironmentTypeListResult
- type AllowedEnvironmentTypeProperties
- type AttachedNetworkConnection
- type AttachedNetworkConnectionProperties
- type AttachedNetworkListResult
- type AttachedNetworksClient
- func (client *AttachedNetworksClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[AttachedNetworksClientCreateOrUpdateResponse], error)
- func (client *AttachedNetworksClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[AttachedNetworksClientDeleteResponse], error)
- func (client *AttachedNetworksClient) GetByDevCenter(ctx context.Context, resourceGroupName string, devCenterName string, ...) (AttachedNetworksClientGetByDevCenterResponse, error)
- func (client *AttachedNetworksClient) GetByProject(ctx context.Context, resourceGroupName string, projectName string, ...) (AttachedNetworksClientGetByProjectResponse, error)
- func (client *AttachedNetworksClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, ...) *runtime.Pager[AttachedNetworksClientListByDevCenterResponse]
- func (client *AttachedNetworksClient) NewListByProjectPager(resourceGroupName string, projectName string, ...) *runtime.Pager[AttachedNetworksClientListByProjectResponse]
- type AttachedNetworksClientBeginCreateOrUpdateOptions
- type AttachedNetworksClientBeginDeleteOptions
- type AttachedNetworksClientCreateOrUpdateResponse
- type AttachedNetworksClientDeleteResponse
- type AttachedNetworksClientGetByDevCenterOptions
- type AttachedNetworksClientGetByDevCenterResponse
- type AttachedNetworksClientGetByProjectOptions
- type AttachedNetworksClientGetByProjectResponse
- type AttachedNetworksClientListByDevCenterOptions
- type AttachedNetworksClientListByDevCenterResponse
- type AttachedNetworksClientListByProjectOptions
- type AttachedNetworksClientListByProjectResponse
- type Capability
- type Catalog
- type CatalogListResult
- type CatalogProperties
- type CatalogSyncState
- type CatalogUpdate
- type CatalogUpdateProperties
- type CatalogsClient
- func (client *CatalogsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[CatalogsClientCreateOrUpdateResponse], error)
- func (client *CatalogsClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[CatalogsClientDeleteResponse], error)
- func (client *CatalogsClient) BeginSync(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[CatalogsClientSyncResponse], error)
- func (client *CatalogsClient) BeginUpdate(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[CatalogsClientUpdateResponse], error)
- func (client *CatalogsClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, ...) (CatalogsClientGetResponse, error)
- func (client *CatalogsClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, ...) *runtime.Pager[CatalogsClientListByDevCenterResponse]
- type CatalogsClientBeginCreateOrUpdateOptions
- type CatalogsClientBeginDeleteOptions
- type CatalogsClientBeginSyncOptions
- type CatalogsClientBeginUpdateOptions
- type CatalogsClientCreateOrUpdateResponse
- type CatalogsClientDeleteResponse
- type CatalogsClientGetOptions
- type CatalogsClientGetResponse
- type CatalogsClientListByDevCenterOptions
- type CatalogsClientListByDevCenterResponse
- type CatalogsClientSyncResponse
- type CatalogsClientUpdateResponse
- type CreatedByType
- type DevBoxDefinition
- type DevBoxDefinitionListResult
- type DevBoxDefinitionProperties
- type DevBoxDefinitionUpdate
- type DevBoxDefinitionUpdateProperties
- type DevBoxDefinitionsClient
- func (client *DevBoxDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[DevBoxDefinitionsClientCreateOrUpdateResponse], error)
- func (client *DevBoxDefinitionsClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[DevBoxDefinitionsClientDeleteResponse], error)
- func (client *DevBoxDefinitionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[DevBoxDefinitionsClientUpdateResponse], error)
- func (client *DevBoxDefinitionsClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, ...) (DevBoxDefinitionsClientGetResponse, error)
- func (client *DevBoxDefinitionsClient) GetByProject(ctx context.Context, resourceGroupName string, projectName string, ...) (DevBoxDefinitionsClientGetByProjectResponse, error)
- func (client *DevBoxDefinitionsClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, ...) *runtime.Pager[DevBoxDefinitionsClientListByDevCenterResponse]
- func (client *DevBoxDefinitionsClient) NewListByProjectPager(resourceGroupName string, projectName string, ...) *runtime.Pager[DevBoxDefinitionsClientListByProjectResponse]
- type DevBoxDefinitionsClientBeginCreateOrUpdateOptions
- type DevBoxDefinitionsClientBeginDeleteOptions
- type DevBoxDefinitionsClientBeginUpdateOptions
- type DevBoxDefinitionsClientCreateOrUpdateResponse
- type DevBoxDefinitionsClientDeleteResponse
- type DevBoxDefinitionsClientGetByProjectOptions
- type DevBoxDefinitionsClientGetByProjectResponse
- type DevBoxDefinitionsClientGetOptions
- type DevBoxDefinitionsClientGetResponse
- type DevBoxDefinitionsClientListByDevCenterOptions
- type DevBoxDefinitionsClientListByDevCenterResponse
- type DevBoxDefinitionsClientListByProjectOptions
- type DevBoxDefinitionsClientListByProjectResponse
- type DevBoxDefinitionsClientUpdateResponse
- type DevCenter
- type DevCentersClient
- func (client *DevCentersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[DevCentersClientCreateOrUpdateResponse], error)
- func (client *DevCentersClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[DevCentersClientDeleteResponse], error)
- func (client *DevCentersClient) BeginUpdate(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[DevCentersClientUpdateResponse], error)
- func (client *DevCentersClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, ...) (DevCentersClientGetResponse, error)
- func (client *DevCentersClient) NewListByResourceGroupPager(resourceGroupName string, options *DevCentersClientListByResourceGroupOptions) *runtime.Pager[DevCentersClientListByResourceGroupResponse]
- func (client *DevCentersClient) NewListBySubscriptionPager(options *DevCentersClientListBySubscriptionOptions) *runtime.Pager[DevCentersClientListBySubscriptionResponse]
- type DevCentersClientBeginCreateOrUpdateOptions
- type DevCentersClientBeginDeleteOptions
- type DevCentersClientBeginUpdateOptions
- type DevCentersClientCreateOrUpdateResponse
- type DevCentersClientDeleteResponse
- type DevCentersClientGetOptions
- type DevCentersClientGetResponse
- type DevCentersClientListByResourceGroupOptions
- type DevCentersClientListByResourceGroupResponse
- type DevCentersClientListBySubscriptionOptions
- type DevCentersClientListBySubscriptionResponse
- type DevCentersClientUpdateResponse
- type DomainJoinType
- type EnableStatus
- type EnvironmentRole
- type EnvironmentType
- type EnvironmentTypeListResult
- type EnvironmentTypeProperties
- type EnvironmentTypeUpdate
- type EnvironmentTypesClient
- func (client *EnvironmentTypesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, ...) (EnvironmentTypesClientCreateOrUpdateResponse, error)
- func (client *EnvironmentTypesClient) Delete(ctx context.Context, resourceGroupName string, devCenterName string, ...) (EnvironmentTypesClientDeleteResponse, error)
- func (client *EnvironmentTypesClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, ...) (EnvironmentTypesClientGetResponse, error)
- func (client *EnvironmentTypesClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, ...) *runtime.Pager[EnvironmentTypesClientListByDevCenterResponse]
- func (client *EnvironmentTypesClient) Update(ctx context.Context, resourceGroupName string, devCenterName string, ...) (EnvironmentTypesClientUpdateResponse, error)
- type EnvironmentTypesClientCreateOrUpdateOptions
- type EnvironmentTypesClientCreateOrUpdateResponse
- type EnvironmentTypesClientDeleteOptions
- type EnvironmentTypesClientDeleteResponse
- type EnvironmentTypesClientGetOptions
- type EnvironmentTypesClientGetResponse
- type EnvironmentTypesClientListByDevCenterOptions
- type EnvironmentTypesClientListByDevCenterResponse
- type EnvironmentTypesClientUpdateOptions
- type EnvironmentTypesClientUpdateResponse
- type ErrorAdditionalInfo
- type ErrorDetail
- type GalleriesClient
- func (client *GalleriesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[GalleriesClientCreateOrUpdateResponse], error)
- func (client *GalleriesClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, ...) (*runtime.Poller[GalleriesClientDeleteResponse], error)
- func (client *GalleriesClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, ...) (GalleriesClientGetResponse, error)
- func (client *GalleriesClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, ...) *runtime.Pager[GalleriesClientListByDevCenterResponse]
- type GalleriesClientBeginCreateOrUpdateOptions
- type GalleriesClientBeginDeleteOptions
- type GalleriesClientCreateOrUpdateResponse
- type GalleriesClientDeleteResponse
- type GalleriesClientGetOptions
- type GalleriesClientGetResponse
- type GalleriesClientListByDevCenterOptions
- type GalleriesClientListByDevCenterResponse
- type Gallery
- type GalleryListResult
- type GalleryProperties
- type GitCatalog
- type HealthCheck
- type HealthCheckStatus
- type HealthCheckStatusDetails
- type HealthCheckStatusDetailsListResult
- type HealthCheckStatusDetailsProperties
- type Image
- type ImageListResult
- type ImageProperties
- type ImageReference
- type ImageValidationErrorDetails
- type ImageValidationStatus
- type ImageVersion
- type ImageVersionListResult
- type ImageVersionProperties
- type ImageVersionsClient
- func (client *ImageVersionsClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, ...) (ImageVersionsClientGetResponse, error)
- func (client *ImageVersionsClient) NewListByImagePager(resourceGroupName string, devCenterName string, galleryName string, ...) *runtime.Pager[ImageVersionsClientListByImageResponse]
- type ImageVersionsClientGetOptions
- type ImageVersionsClientGetResponse
- type ImageVersionsClientListByImageOptions
- type ImageVersionsClientListByImageResponse
- type ImagesClient
- func (client *ImagesClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, ...) (ImagesClientGetResponse, error)
- func (client *ImagesClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, ...) *runtime.Pager[ImagesClientListByDevCenterResponse]
- func (client *ImagesClient) NewListByGalleryPager(resourceGroupName string, devCenterName string, galleryName string, ...) *runtime.Pager[ImagesClientListByGalleryResponse]
- type ImagesClientGetOptions
- type ImagesClientGetResponse
- type ImagesClientListByDevCenterOptions
- type ImagesClientListByDevCenterResponse
- type ImagesClientListByGalleryOptions
- type ImagesClientListByGalleryResponse
- type LicenseType
- type ListResult
- type ListUsagesResult
- type LocalAdminStatus
- type ManagedServiceIdentity
- type ManagedServiceIdentityType
- type NetworkConnection
- type NetworkConnectionListResult
- type NetworkConnectionUpdate
- type NetworkConnectionUpdateProperties
- type NetworkConnectionsClient
- func (client *NetworkConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkConnectionName string, ...) (*runtime.Poller[NetworkConnectionsClientCreateOrUpdateResponse], error)
- func (client *NetworkConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkConnectionName string, ...) (*runtime.Poller[NetworkConnectionsClientDeleteResponse], error)
- func (client *NetworkConnectionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, networkConnectionName string, ...) (*runtime.Poller[NetworkConnectionsClientUpdateResponse], error)
- func (client *NetworkConnectionsClient) Get(ctx context.Context, resourceGroupName string, networkConnectionName string, ...) (NetworkConnectionsClientGetResponse, error)
- func (client *NetworkConnectionsClient) GetHealthDetails(ctx context.Context, resourceGroupName string, networkConnectionName string, ...) (NetworkConnectionsClientGetHealthDetailsResponse, error)
- func (client *NetworkConnectionsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[NetworkConnectionsClientListByResourceGroupResponse]
- func (client *NetworkConnectionsClient) NewListBySubscriptionPager(options *NetworkConnectionsClientListBySubscriptionOptions) *runtime.Pager[NetworkConnectionsClientListBySubscriptionResponse]
- func (client *NetworkConnectionsClient) NewListHealthDetailsPager(resourceGroupName string, networkConnectionName string, ...) *runtime.Pager[NetworkConnectionsClientListHealthDetailsResponse]
- func (client *NetworkConnectionsClient) RunHealthChecks(ctx context.Context, resourceGroupName string, networkConnectionName string, ...) (NetworkConnectionsClientRunHealthChecksResponse, error)
- type NetworkConnectionsClientBeginCreateOrUpdateOptions
- type NetworkConnectionsClientBeginDeleteOptions
- type NetworkConnectionsClientBeginUpdateOptions
- type NetworkConnectionsClientCreateOrUpdateResponse
- type NetworkConnectionsClientDeleteResponse
- type NetworkConnectionsClientGetHealthDetailsOptions
- type NetworkConnectionsClientGetHealthDetailsResponse
- type NetworkConnectionsClientGetOptions
- type NetworkConnectionsClientGetResponse
- type NetworkConnectionsClientListByResourceGroupOptions
- type NetworkConnectionsClientListByResourceGroupResponse
- type NetworkConnectionsClientListBySubscriptionOptions
- type NetworkConnectionsClientListBySubscriptionResponse
- type NetworkConnectionsClientListHealthDetailsOptions
- type NetworkConnectionsClientListHealthDetailsResponse
- type NetworkConnectionsClientRunHealthChecksOptions
- type NetworkConnectionsClientRunHealthChecksResponse
- type NetworkConnectionsClientUpdateResponse
- type NetworkProperties
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationStatus
- type OperationStatusResult
- type OperationStatusesClient
- type OperationStatusesClientGetOptions
- type OperationStatusesClientGetResponse
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type Pool
- type PoolListResult
- type PoolProperties
- type PoolUpdate
- type PoolUpdateProperties
- type PoolsClient
- func (client *PoolsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, projectName string, ...) (*runtime.Poller[PoolsClientCreateOrUpdateResponse], error)
- func (client *PoolsClient) BeginDelete(ctx context.Context, resourceGroupName string, projectName string, ...) (*runtime.Poller[PoolsClientDeleteResponse], error)
- func (client *PoolsClient) BeginUpdate(ctx context.Context, resourceGroupName string, projectName string, ...) (*runtime.Poller[PoolsClientUpdateResponse], error)
- func (client *PoolsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (PoolsClientGetResponse, error)
- func (client *PoolsClient) NewListByProjectPager(resourceGroupName string, projectName string, ...) *runtime.Pager[PoolsClientListByProjectResponse]
- type PoolsClientBeginCreateOrUpdateOptions
- type PoolsClientBeginDeleteOptions
- type PoolsClientBeginUpdateOptions
- type PoolsClientCreateOrUpdateResponse
- type PoolsClientDeleteResponse
- type PoolsClientGetOptions
- type PoolsClientGetResponse
- type PoolsClientListByProjectOptions
- type PoolsClientListByProjectResponse
- type PoolsClientUpdateResponse
- type Project
- type ProjectAllowedEnvironmentTypesClient
- func (client *ProjectAllowedEnvironmentTypesClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectAllowedEnvironmentTypesClientGetResponse, error)
- func (client *ProjectAllowedEnvironmentTypesClient) NewListPager(resourceGroupName string, projectName string, ...) *runtime.Pager[ProjectAllowedEnvironmentTypesClientListResponse]
- type ProjectAllowedEnvironmentTypesClientGetOptions
- type ProjectAllowedEnvironmentTypesClientGetResponse
- type ProjectAllowedEnvironmentTypesClientListOptions
- type ProjectAllowedEnvironmentTypesClientListResponse
- type ProjectEnvironmentType
- type ProjectEnvironmentTypeListResult
- type ProjectEnvironmentTypeProperties
- type ProjectEnvironmentTypeUpdate
- type ProjectEnvironmentTypeUpdateProperties
- type ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment
- type ProjectEnvironmentTypesClient
- func (client *ProjectEnvironmentTypesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectEnvironmentTypesClientCreateOrUpdateResponse, error)
- func (client *ProjectEnvironmentTypesClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectEnvironmentTypesClientDeleteResponse, error)
- func (client *ProjectEnvironmentTypesClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectEnvironmentTypesClientGetResponse, error)
- func (client *ProjectEnvironmentTypesClient) NewListPager(resourceGroupName string, projectName string, ...) *runtime.Pager[ProjectEnvironmentTypesClientListResponse]
- func (client *ProjectEnvironmentTypesClient) Update(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectEnvironmentTypesClientUpdateResponse, error)
- type ProjectEnvironmentTypesClientCreateOrUpdateOptions
- type ProjectEnvironmentTypesClientCreateOrUpdateResponse
- type ProjectEnvironmentTypesClientDeleteOptions
- type ProjectEnvironmentTypesClientDeleteResponse
- type ProjectEnvironmentTypesClientGetOptions
- type ProjectEnvironmentTypesClientGetResponse
- type ProjectEnvironmentTypesClientListOptions
- type ProjectEnvironmentTypesClientListResponse
- type ProjectEnvironmentTypesClientUpdateOptions
- type ProjectEnvironmentTypesClientUpdateResponse
- type ProjectListResult
- type ProjectProperties
- type ProjectUpdate
- type ProjectUpdateProperties
- type ProjectsClient
- func (client *ProjectsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, projectName string, ...) (*runtime.Poller[ProjectsClientCreateOrUpdateResponse], error)
- func (client *ProjectsClient) BeginDelete(ctx context.Context, resourceGroupName string, projectName string, ...) (*runtime.Poller[ProjectsClientDeleteResponse], error)
- func (client *ProjectsClient) BeginUpdate(ctx context.Context, resourceGroupName string, projectName string, ...) (*runtime.Poller[ProjectsClientUpdateResponse], error)
- func (client *ProjectsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectsClientGetResponse, error)
- func (client *ProjectsClient) NewListByResourceGroupPager(resourceGroupName string, options *ProjectsClientListByResourceGroupOptions) *runtime.Pager[ProjectsClientListByResourceGroupResponse]
- func (client *ProjectsClient) NewListBySubscriptionPager(options *ProjectsClientListBySubscriptionOptions) *runtime.Pager[ProjectsClientListBySubscriptionResponse]
- type ProjectsClientBeginCreateOrUpdateOptions
- type ProjectsClientBeginDeleteOptions
- type ProjectsClientBeginUpdateOptions
- type ProjectsClientCreateOrUpdateResponse
- type ProjectsClientDeleteResponse
- type ProjectsClientGetOptions
- type ProjectsClientGetResponse
- type ProjectsClientListByResourceGroupOptions
- type ProjectsClientListByResourceGroupResponse
- type ProjectsClientListBySubscriptionOptions
- type ProjectsClientListBySubscriptionResponse
- type ProjectsClientUpdateResponse
- type Properties
- type ProxyResource
- type RecommendedMachineConfiguration
- type Resource
- type ResourceRange
- type SKU
- type SKUInfo
- type SKUListResult
- type SKUTier
- type SKUsClient
- type SKUsClientListBySubscriptionOptions
- type SKUsClientListBySubscriptionResponse
- type Schedule
- type ScheduleListResult
- type ScheduleProperties
- type ScheduleUpdate
- type ScheduleUpdateProperties
- type ScheduledFrequency
- type ScheduledType
- type SchedulesClient
- func (client *SchedulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, projectName string, ...) (*runtime.Poller[SchedulesClientCreateOrUpdateResponse], error)
- func (client *SchedulesClient) BeginDelete(ctx context.Context, resourceGroupName string, projectName string, ...) (*runtime.Poller[SchedulesClientDeleteResponse], error)
- func (client *SchedulesClient) BeginUpdate(ctx context.Context, resourceGroupName string, projectName string, ...) (*runtime.Poller[SchedulesClientUpdateResponse], error)
- func (client *SchedulesClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (SchedulesClientGetResponse, error)
- func (client *SchedulesClient) NewListByPoolPager(resourceGroupName string, projectName string, poolName string, ...) *runtime.Pager[SchedulesClientListByPoolResponse]
- type SchedulesClientBeginCreateOrUpdateOptions
- type SchedulesClientBeginDeleteOptions
- type SchedulesClientBeginUpdateOptions
- type SchedulesClientCreateOrUpdateResponse
- type SchedulesClientDeleteResponse
- type SchedulesClientGetOptions
- type SchedulesClientGetResponse
- type SchedulesClientListByPoolOptions
- type SchedulesClientListByPoolResponse
- type SchedulesClientUpdateResponse
- type SystemData
- type TrackedResource
- type TrackedResourceUpdate
- type Update
- type Usage
- type UsageName
- type UsageUnit
- type UsagesClient
- type UsagesClientListByLocationOptions
- type UsagesClientListByLocationResponse
- type UserAssignedIdentity
- type UserRoleAssignmentValue
Examples ¶
- AttachedNetworksClient.BeginCreateOrUpdate
- AttachedNetworksClient.BeginDelete
- AttachedNetworksClient.GetByDevCenter
- AttachedNetworksClient.GetByProject
- AttachedNetworksClient.NewListByDevCenterPager
- AttachedNetworksClient.NewListByProjectPager
- CatalogsClient.BeginCreateOrUpdate (CatalogsCreateOrUpdateAdo)
- CatalogsClient.BeginCreateOrUpdate (CatalogsCreateOrUpdateGitHub)
- CatalogsClient.BeginDelete
- CatalogsClient.BeginSync
- CatalogsClient.BeginUpdate
- CatalogsClient.Get
- CatalogsClient.NewListByDevCenterPager
- DevBoxDefinitionsClient.BeginCreateOrUpdate
- DevBoxDefinitionsClient.BeginDelete
- DevBoxDefinitionsClient.BeginUpdate
- DevBoxDefinitionsClient.Get
- DevBoxDefinitionsClient.GetByProject
- DevBoxDefinitionsClient.NewListByDevCenterPager
- DevBoxDefinitionsClient.NewListByProjectPager
- DevCentersClient.BeginCreateOrUpdate (DevCentersCreate)
- DevCentersClient.BeginCreateOrUpdate (DevCentersCreateWithUserIdentity)
- DevCentersClient.BeginDelete
- DevCentersClient.BeginUpdate
- DevCentersClient.Get
- DevCentersClient.NewListByResourceGroupPager
- DevCentersClient.NewListBySubscriptionPager
- EnvironmentTypesClient.CreateOrUpdate
- EnvironmentTypesClient.Delete
- EnvironmentTypesClient.Get
- EnvironmentTypesClient.NewListByDevCenterPager
- EnvironmentTypesClient.Update
- GalleriesClient.BeginCreateOrUpdate
- GalleriesClient.BeginDelete
- GalleriesClient.Get
- GalleriesClient.NewListByDevCenterPager
- ImageVersionsClient.Get
- ImageVersionsClient.NewListByImagePager
- ImagesClient.Get
- ImagesClient.NewListByDevCenterPager
- ImagesClient.NewListByGalleryPager
- NetworkConnectionsClient.BeginCreateOrUpdate
- NetworkConnectionsClient.BeginDelete
- NetworkConnectionsClient.BeginUpdate
- NetworkConnectionsClient.Get
- NetworkConnectionsClient.GetHealthDetails
- NetworkConnectionsClient.NewListByResourceGroupPager
- NetworkConnectionsClient.NewListBySubscriptionPager
- NetworkConnectionsClient.NewListHealthDetailsPager
- NetworkConnectionsClient.RunHealthChecks
- OperationStatusesClient.Get
- OperationsClient.NewListPager
- PoolsClient.BeginCreateOrUpdate
- PoolsClient.BeginDelete
- PoolsClient.BeginUpdate
- PoolsClient.Get
- PoolsClient.NewListByProjectPager
- ProjectAllowedEnvironmentTypesClient.Get
- ProjectAllowedEnvironmentTypesClient.NewListPager
- ProjectEnvironmentTypesClient.CreateOrUpdate
- ProjectEnvironmentTypesClient.Delete
- ProjectEnvironmentTypesClient.Get
- ProjectEnvironmentTypesClient.NewListPager
- ProjectEnvironmentTypesClient.Update
- ProjectsClient.BeginCreateOrUpdate
- ProjectsClient.BeginDelete
- ProjectsClient.BeginUpdate
- ProjectsClient.Get
- ProjectsClient.NewListByResourceGroupPager
- ProjectsClient.NewListBySubscriptionPager
- SKUsClient.NewListBySubscriptionPager
- SchedulesClient.BeginCreateOrUpdate
- SchedulesClient.BeginDelete
- SchedulesClient.BeginUpdate
- SchedulesClient.Get
- SchedulesClient.NewListByPoolPager
- UsagesClient.NewListByLocationPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType string
ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const (
ActionTypeInternal ActionType = "Internal"
)
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type AllowedEnvironmentType ¶ added in v0.2.0
type AllowedEnvironmentType struct { // Properties of an allowed environment type. Properties *AllowedEnvironmentTypeProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
AllowedEnvironmentType - Represents an allowed environment type.
func (AllowedEnvironmentType) MarshalJSON ¶ added in v0.2.0
func (a AllowedEnvironmentType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AllowedEnvironmentType.
func (*AllowedEnvironmentType) UnmarshalJSON ¶ added in v0.2.0
func (a *AllowedEnvironmentType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AllowedEnvironmentType.
type AllowedEnvironmentTypeListResult ¶ added in v0.2.0
type AllowedEnvironmentTypeListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*AllowedEnvironmentType `json:"value,omitempty" azure:"ro"` }
AllowedEnvironmentTypeListResult - Result of the allowed environment type list operation.
func (AllowedEnvironmentTypeListResult) MarshalJSON ¶ added in v0.2.0
func (a AllowedEnvironmentTypeListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AllowedEnvironmentTypeListResult.
func (*AllowedEnvironmentTypeListResult) UnmarshalJSON ¶ added in v0.2.0
func (a *AllowedEnvironmentTypeListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AllowedEnvironmentTypeListResult.
type AllowedEnvironmentTypeProperties ¶ added in v0.2.0
type AllowedEnvironmentTypeProperties struct { // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
AllowedEnvironmentTypeProperties - Properties of an allowed environment type.
func (AllowedEnvironmentTypeProperties) MarshalJSON ¶ added in v0.2.0
func (a AllowedEnvironmentTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AllowedEnvironmentTypeProperties.
func (*AllowedEnvironmentTypeProperties) UnmarshalJSON ¶ added in v0.2.0
func (a *AllowedEnvironmentTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AllowedEnvironmentTypeProperties.
type AttachedNetworkConnection ¶
type AttachedNetworkConnection struct { // Attached NetworkConnection properties. Properties *AttachedNetworkConnectionProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
AttachedNetworkConnection - Represents an attached NetworkConnection.
func (AttachedNetworkConnection) MarshalJSON ¶
func (a AttachedNetworkConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AttachedNetworkConnection.
func (*AttachedNetworkConnection) UnmarshalJSON ¶
func (a *AttachedNetworkConnection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AttachedNetworkConnection.
type AttachedNetworkConnectionProperties ¶
type AttachedNetworkConnectionProperties struct { // REQUIRED; The resource ID of the NetworkConnection you want to attach. NetworkConnectionID *string `json:"networkConnectionId,omitempty"` // READ-ONLY; AAD Join type of the network. This is populated based on the referenced Network Connection. DomainJoinType *DomainJoinType `json:"domainJoinType,omitempty" azure:"ro"` // READ-ONLY; Health check status values HealthCheckStatus *HealthCheckStatus `json:"healthCheckStatus,omitempty" azure:"ro"` // READ-ONLY; The geo-location where the NetworkConnection resource specified in 'networkConnectionResourceId' property lives. NetworkConnectionLocation *string `json:"networkConnectionLocation,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
AttachedNetworkConnectionProperties - Properties of an attached NetworkConnection.
func (AttachedNetworkConnectionProperties) MarshalJSON ¶
func (a AttachedNetworkConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AttachedNetworkConnectionProperties.
func (*AttachedNetworkConnectionProperties) UnmarshalJSON ¶
func (a *AttachedNetworkConnectionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AttachedNetworkConnectionProperties.
type AttachedNetworkListResult ¶
type AttachedNetworkListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*AttachedNetworkConnection `json:"value,omitempty" azure:"ro"` }
AttachedNetworkListResult - Results of the Attached Networks list operation.
func (AttachedNetworkListResult) MarshalJSON ¶
func (a AttachedNetworkListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AttachedNetworkListResult.
func (*AttachedNetworkListResult) UnmarshalJSON ¶
func (a *AttachedNetworkListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AttachedNetworkListResult.
type AttachedNetworksClient ¶
type AttachedNetworksClient struct {
// contains filtered or unexported fields
}
AttachedNetworksClient contains the methods for the AttachedNetworks group. Don't use this type directly, use NewAttachedNetworksClient() instead.
func NewAttachedNetworksClient ¶
func NewAttachedNetworksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AttachedNetworksClient, error)
NewAttachedNetworksClient creates a new instance of AttachedNetworksClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AttachedNetworksClient) BeginCreateOrUpdate ¶
func (client *AttachedNetworksClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, attachedNetworkConnectionName string, body AttachedNetworkConnection, options *AttachedNetworksClientBeginCreateOrUpdateOptions) (*runtime.Poller[AttachedNetworksClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates an attached NetworkConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. attachedNetworkConnectionName - The name of the attached NetworkConnection. body - Represents an attached NetworkConnection. options - AttachedNetworksClientBeginCreateOrUpdateOptions contains the optional parameters for the AttachedNetworksClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/AttachedNetworks_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewAttachedNetworksClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "Contoso", "{attachedNetworkConnectionName}", armdevcenter.AttachedNetworkConnection{ Properties: &armdevcenter.AttachedNetworkConnectionProperties{ NetworkConnectionID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*AttachedNetworksClient) BeginDelete ¶
func (client *AttachedNetworksClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, attachedNetworkConnectionName string, options *AttachedNetworksClientBeginDeleteOptions) (*runtime.Poller[AttachedNetworksClientDeleteResponse], error)
BeginDelete - Un-attach a NetworkConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. attachedNetworkConnectionName - The name of the attached NetworkConnection. options - AttachedNetworksClientBeginDeleteOptions contains the optional parameters for the AttachedNetworksClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/AttachedNetworks_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewAttachedNetworksClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "Contoso", "{attachedNetworkConnectionName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*AttachedNetworksClient) GetByDevCenter ¶
func (client *AttachedNetworksClient) GetByDevCenter(ctx context.Context, resourceGroupName string, devCenterName string, attachedNetworkConnectionName string, options *AttachedNetworksClientGetByDevCenterOptions) (AttachedNetworksClientGetByDevCenterResponse, error)
GetByDevCenter - Gets an attached NetworkConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. attachedNetworkConnectionName - The name of the attached NetworkConnection. options - AttachedNetworksClientGetByDevCenterOptions contains the optional parameters for the AttachedNetworksClient.GetByDevCenter method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/AttachedNetworks_GetByDevCenter.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewAttachedNetworksClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetByDevCenter(ctx, "rg1", "Contoso", "network-uswest3", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*AttachedNetworksClient) GetByProject ¶
func (client *AttachedNetworksClient) GetByProject(ctx context.Context, resourceGroupName string, projectName string, attachedNetworkConnectionName string, options *AttachedNetworksClientGetByProjectOptions) (AttachedNetworksClientGetByProjectResponse, error)
GetByProject - Gets an attached NetworkConnection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. attachedNetworkConnectionName - The name of the attached NetworkConnection. options - AttachedNetworksClientGetByProjectOptions contains the optional parameters for the AttachedNetworksClient.GetByProject method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/AttachedNetworks_GetByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewAttachedNetworksClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetByProject(ctx, "rg1", "{projectName}", "network-uswest3", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*AttachedNetworksClient) NewListByDevCenterPager ¶
func (client *AttachedNetworksClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, options *AttachedNetworksClientListByDevCenterOptions) *runtime.Pager[AttachedNetworksClientListByDevCenterResponse]
NewListByDevCenterPager - Lists the attached NetworkConnections for a DevCenter. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. options - AttachedNetworksClientListByDevCenterOptions contains the optional parameters for the AttachedNetworksClient.ListByDevCenter method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/AttachedNetworks_ListByDevCenter.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewAttachedNetworksClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByDevCenterPager("rg1", "Contoso", &armdevcenter.AttachedNetworksClientListByDevCenterOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AttachedNetworksClient) NewListByProjectPager ¶
func (client *AttachedNetworksClient) NewListByProjectPager(resourceGroupName string, projectName string, options *AttachedNetworksClientListByProjectOptions) *runtime.Pager[AttachedNetworksClientListByProjectResponse]
NewListByProjectPager - Lists the attached NetworkConnections for a Project. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. options - AttachedNetworksClientListByProjectOptions contains the optional parameters for the AttachedNetworksClient.ListByProject method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/AttachedNetworks_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewAttachedNetworksClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByProjectPager("rg1", "{projectName}", &armdevcenter.AttachedNetworksClientListByProjectOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AttachedNetworksClientBeginCreateOrUpdateOptions ¶
type AttachedNetworksClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AttachedNetworksClientBeginCreateOrUpdateOptions contains the optional parameters for the AttachedNetworksClient.BeginCreateOrUpdate method.
type AttachedNetworksClientBeginDeleteOptions ¶
type AttachedNetworksClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AttachedNetworksClientBeginDeleteOptions contains the optional parameters for the AttachedNetworksClient.BeginDelete method.
type AttachedNetworksClientCreateOrUpdateResponse ¶
type AttachedNetworksClientCreateOrUpdateResponse struct {
AttachedNetworkConnection
}
AttachedNetworksClientCreateOrUpdateResponse contains the response from method AttachedNetworksClient.CreateOrUpdate.
type AttachedNetworksClientDeleteResponse ¶
type AttachedNetworksClientDeleteResponse struct { }
AttachedNetworksClientDeleteResponse contains the response from method AttachedNetworksClient.Delete.
type AttachedNetworksClientGetByDevCenterOptions ¶
type AttachedNetworksClientGetByDevCenterOptions struct { }
AttachedNetworksClientGetByDevCenterOptions contains the optional parameters for the AttachedNetworksClient.GetByDevCenter method.
type AttachedNetworksClientGetByDevCenterResponse ¶
type AttachedNetworksClientGetByDevCenterResponse struct {
AttachedNetworkConnection
}
AttachedNetworksClientGetByDevCenterResponse contains the response from method AttachedNetworksClient.GetByDevCenter.
type AttachedNetworksClientGetByProjectOptions ¶
type AttachedNetworksClientGetByProjectOptions struct { }
AttachedNetworksClientGetByProjectOptions contains the optional parameters for the AttachedNetworksClient.GetByProject method.
type AttachedNetworksClientGetByProjectResponse ¶
type AttachedNetworksClientGetByProjectResponse struct {
AttachedNetworkConnection
}
AttachedNetworksClientGetByProjectResponse contains the response from method AttachedNetworksClient.GetByProject.
type AttachedNetworksClientListByDevCenterOptions ¶
type AttachedNetworksClientListByDevCenterOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
AttachedNetworksClientListByDevCenterOptions contains the optional parameters for the AttachedNetworksClient.ListByDevCenter method.
type AttachedNetworksClientListByDevCenterResponse ¶
type AttachedNetworksClientListByDevCenterResponse struct {
AttachedNetworkListResult
}
AttachedNetworksClientListByDevCenterResponse contains the response from method AttachedNetworksClient.ListByDevCenter.
type AttachedNetworksClientListByProjectOptions ¶
type AttachedNetworksClientListByProjectOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
AttachedNetworksClientListByProjectOptions contains the optional parameters for the AttachedNetworksClient.ListByProject method.
type AttachedNetworksClientListByProjectResponse ¶
type AttachedNetworksClientListByProjectResponse struct {
AttachedNetworkListResult
}
AttachedNetworksClientListByProjectResponse contains the response from method AttachedNetworksClient.ListByProject.
type Capability ¶
type Capability struct { // READ-ONLY; Name of the capability. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Value of the capability. Value *string `json:"value,omitempty" azure:"ro"` }
Capability - A name/value pair to describe a capability.
func (Capability) MarshalJSON ¶
func (c Capability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Capability.
func (*Capability) UnmarshalJSON ¶
func (c *Capability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Capability.
type Catalog ¶
type Catalog struct { // Catalog properties. Properties *CatalogProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Catalog - Represents a catalog.
func (Catalog) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Catalog.
func (*Catalog) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Catalog.
type CatalogListResult ¶
type CatalogListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*Catalog `json:"value,omitempty" azure:"ro"` }
CatalogListResult - Results of the catalog list operation.
func (CatalogListResult) MarshalJSON ¶
func (c CatalogListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CatalogListResult.
func (*CatalogListResult) UnmarshalJSON ¶
func (c *CatalogListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CatalogListResult.
type CatalogProperties ¶
type CatalogProperties struct { // Properties for an Azure DevOps catalog type. AdoGit *GitCatalog `json:"adoGit,omitempty"` // Properties for a GitHub catalog type. GitHub *GitCatalog `json:"gitHub,omitempty"` // READ-ONLY; When the catalog was last synced. LastSyncTime *time.Time `json:"lastSyncTime,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The synchronization state of the catalog. SyncState *CatalogSyncState `json:"syncState,omitempty" azure:"ro"` }
CatalogProperties - Properties of a catalog.
func (CatalogProperties) MarshalJSON ¶
func (c CatalogProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CatalogProperties.
func (*CatalogProperties) UnmarshalJSON ¶
func (c *CatalogProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CatalogProperties.
type CatalogSyncState ¶ added in v0.3.0
type CatalogSyncState string
CatalogSyncState - The synchronization state of the catalog.
const ( CatalogSyncStateCanceled CatalogSyncState = "Canceled" CatalogSyncStateFailed CatalogSyncState = "Failed" CatalogSyncStateInProgress CatalogSyncState = "InProgress" CatalogSyncStateSucceeded CatalogSyncState = "Succeeded" )
func PossibleCatalogSyncStateValues ¶ added in v0.3.0
func PossibleCatalogSyncStateValues() []CatalogSyncState
PossibleCatalogSyncStateValues returns the possible values for the CatalogSyncState const type.
type CatalogUpdate ¶
type CatalogUpdate struct { // Catalog properties for update. Properties *CatalogUpdateProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
CatalogUpdate - The catalog's properties for partial update. Properties not provided in the update request will not be changed.
func (CatalogUpdate) MarshalJSON ¶
func (c CatalogUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CatalogUpdate.
func (*CatalogUpdate) UnmarshalJSON ¶
func (c *CatalogUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CatalogUpdate.
type CatalogUpdateProperties ¶
type CatalogUpdateProperties struct { // Properties for an Azure DevOps catalog type. AdoGit *GitCatalog `json:"adoGit,omitempty"` // Properties for a GitHub catalog type. GitHub *GitCatalog `json:"gitHub,omitempty"` }
CatalogUpdateProperties - Properties of a catalog. These properties can be updated after the resource has been created.
func (CatalogUpdateProperties) MarshalJSON ¶
func (c CatalogUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CatalogUpdateProperties.
func (*CatalogUpdateProperties) UnmarshalJSON ¶
func (c *CatalogUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CatalogUpdateProperties.
type CatalogsClient ¶
type CatalogsClient struct {
// contains filtered or unexported fields
}
CatalogsClient contains the methods for the Catalogs group. Don't use this type directly, use NewCatalogsClient() instead.
func NewCatalogsClient ¶
func NewCatalogsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CatalogsClient, error)
NewCatalogsClient creates a new instance of CatalogsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*CatalogsClient) BeginCreateOrUpdate ¶
func (client *CatalogsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, catalogName string, body Catalog, options *CatalogsClientBeginCreateOrUpdateOptions) (*runtime.Poller[CatalogsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a catalog. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. catalogName - The name of the Catalog. body - Represents a catalog. options - CatalogsClientBeginCreateOrUpdateOptions contains the optional parameters for the CatalogsClient.BeginCreateOrUpdate method.
Example (CatalogsCreateOrUpdateAdo) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Catalogs_CreateAdo.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewCatalogsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "Contoso", "{catalogName}", armdevcenter.Catalog{ Properties: &armdevcenter.CatalogProperties{ AdoGit: &armdevcenter.GitCatalog{ Path: to.Ptr("/templates"), Branch: to.Ptr("main"), SecretIdentifier: to.Ptr("https://contosokv.vault.azure.net/secrets/CentralRepoPat"), URI: to.Ptr("https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
Example (CatalogsCreateOrUpdateGitHub) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Catalogs_CreateGitHub.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewCatalogsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "Contoso", "{catalogName}", armdevcenter.Catalog{ Properties: &armdevcenter.CatalogProperties{ GitHub: &armdevcenter.GitCatalog{ Path: to.Ptr("/templates"), Branch: to.Ptr("main"), SecretIdentifier: to.Ptr("https://contosokv.vault.azure.net/secrets/CentralRepoPat"), URI: to.Ptr("https://github.com/Contoso/centralrepo-fake.git"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*CatalogsClient) BeginDelete ¶
func (client *CatalogsClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, catalogName string, options *CatalogsClientBeginDeleteOptions) (*runtime.Poller[CatalogsClientDeleteResponse], error)
BeginDelete - Deletes a catalog resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. catalogName - The name of the Catalog. options - CatalogsClientBeginDeleteOptions contains the optional parameters for the CatalogsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Catalogs_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewCatalogsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "Contoso", "{catalogName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*CatalogsClient) BeginSync ¶
func (client *CatalogsClient) BeginSync(ctx context.Context, resourceGroupName string, devCenterName string, catalogName string, options *CatalogsClientBeginSyncOptions) (*runtime.Poller[CatalogsClientSyncResponse], error)
BeginSync - Syncs templates for a template source. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. catalogName - The name of the Catalog. options - CatalogsClientBeginSyncOptions contains the optional parameters for the CatalogsClient.BeginSync method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Catalogs_Sync.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewCatalogsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginSync(ctx, "rg1", "Contoso", "{catalogName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*CatalogsClient) BeginUpdate ¶
func (client *CatalogsClient) BeginUpdate(ctx context.Context, resourceGroupName string, devCenterName string, catalogName string, body CatalogUpdate, options *CatalogsClientBeginUpdateOptions) (*runtime.Poller[CatalogsClientUpdateResponse], error)
BeginUpdate - Partially updates a catalog. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. catalogName - The name of the Catalog. body - Updatable catalog properties. options - CatalogsClientBeginUpdateOptions contains the optional parameters for the CatalogsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Catalogs_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewCatalogsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "rg1", "Contoso", "{catalogName}", armdevcenter.CatalogUpdate{ Properties: &armdevcenter.CatalogUpdateProperties{ GitHub: &armdevcenter.GitCatalog{ Path: to.Ptr("/environments"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*CatalogsClient) Get ¶
func (client *CatalogsClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, catalogName string, options *CatalogsClientGetOptions) (CatalogsClientGetResponse, error)
Get - Gets a catalog If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. catalogName - The name of the Catalog. options - CatalogsClientGetOptions contains the optional parameters for the CatalogsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Catalogs_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewCatalogsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "Contoso", "{catalogName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*CatalogsClient) NewListByDevCenterPager ¶
func (client *CatalogsClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, options *CatalogsClientListByDevCenterOptions) *runtime.Pager[CatalogsClientListByDevCenterResponse]
NewListByDevCenterPager - Lists catalogs for a devcenter. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. options - CatalogsClientListByDevCenterOptions contains the optional parameters for the CatalogsClient.ListByDevCenter method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Catalogs_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewCatalogsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByDevCenterPager("rg1", "Contoso", &armdevcenter.CatalogsClientListByDevCenterOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type CatalogsClientBeginCreateOrUpdateOptions ¶
type CatalogsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CatalogsClientBeginCreateOrUpdateOptions contains the optional parameters for the CatalogsClient.BeginCreateOrUpdate method.
type CatalogsClientBeginDeleteOptions ¶
type CatalogsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CatalogsClientBeginDeleteOptions contains the optional parameters for the CatalogsClient.BeginDelete method.
type CatalogsClientBeginSyncOptions ¶
type CatalogsClientBeginSyncOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CatalogsClientBeginSyncOptions contains the optional parameters for the CatalogsClient.BeginSync method.
type CatalogsClientBeginUpdateOptions ¶
type CatalogsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
CatalogsClientBeginUpdateOptions contains the optional parameters for the CatalogsClient.BeginUpdate method.
type CatalogsClientCreateOrUpdateResponse ¶
type CatalogsClientCreateOrUpdateResponse struct {
Catalog
}
CatalogsClientCreateOrUpdateResponse contains the response from method CatalogsClient.CreateOrUpdate.
type CatalogsClientDeleteResponse ¶
type CatalogsClientDeleteResponse struct { }
CatalogsClientDeleteResponse contains the response from method CatalogsClient.Delete.
type CatalogsClientGetOptions ¶
type CatalogsClientGetOptions struct { }
CatalogsClientGetOptions contains the optional parameters for the CatalogsClient.Get method.
type CatalogsClientGetResponse ¶
type CatalogsClientGetResponse struct {
Catalog
}
CatalogsClientGetResponse contains the response from method CatalogsClient.Get.
type CatalogsClientListByDevCenterOptions ¶
type CatalogsClientListByDevCenterOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
CatalogsClientListByDevCenterOptions contains the optional parameters for the CatalogsClient.ListByDevCenter method.
type CatalogsClientListByDevCenterResponse ¶
type CatalogsClientListByDevCenterResponse struct {
CatalogListResult
}
CatalogsClientListByDevCenterResponse contains the response from method CatalogsClient.ListByDevCenter.
type CatalogsClientSyncResponse ¶
type CatalogsClientSyncResponse struct { }
CatalogsClientSyncResponse contains the response from method CatalogsClient.Sync.
type CatalogsClientUpdateResponse ¶
type CatalogsClientUpdateResponse struct {
Catalog
}
CatalogsClientUpdateResponse contains the response from method CatalogsClient.Update.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type DevBoxDefinition ¶
type DevBoxDefinition struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Dev Box definition properties Properties *DevBoxDefinitionProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
DevBoxDefinition - Represents a definition for a Developer Machine.
func (DevBoxDefinition) MarshalJSON ¶
func (d DevBoxDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevBoxDefinition.
func (*DevBoxDefinition) UnmarshalJSON ¶
func (d *DevBoxDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevBoxDefinition.
type DevBoxDefinitionListResult ¶
type DevBoxDefinitionListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*DevBoxDefinition `json:"value,omitempty" azure:"ro"` }
DevBoxDefinitionListResult - Results of the Dev Box definition list operation.
func (DevBoxDefinitionListResult) MarshalJSON ¶
func (d DevBoxDefinitionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevBoxDefinitionListResult.
func (*DevBoxDefinitionListResult) UnmarshalJSON ¶
func (d *DevBoxDefinitionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevBoxDefinitionListResult.
type DevBoxDefinitionProperties ¶
type DevBoxDefinitionProperties struct { // Image reference information. ImageReference *ImageReference `json:"imageReference,omitempty"` // The storage type used for the Operating System disk of Dev Boxes created using this definition. OSStorageType *string `json:"osStorageType,omitempty"` // The SKU for Dev Boxes created using this definition. SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Image reference information for the currently active image (only populated during updates). ActiveImageReference *ImageReference `json:"activeImageReference,omitempty" azure:"ro"` // READ-ONLY; Details for image validator error. Populated when the image validation is not successful. ImageValidationErrorDetails *ImageValidationErrorDetails `json:"imageValidationErrorDetails,omitempty" azure:"ro"` // READ-ONLY; Validation status of the configured image. ImageValidationStatus *ImageValidationStatus `json:"imageValidationStatus,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
DevBoxDefinitionProperties - Properties of a Dev Box definition.
func (DevBoxDefinitionProperties) MarshalJSON ¶
func (d DevBoxDefinitionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevBoxDefinitionProperties.
func (*DevBoxDefinitionProperties) UnmarshalJSON ¶
func (d *DevBoxDefinitionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevBoxDefinitionProperties.
type DevBoxDefinitionUpdate ¶
type DevBoxDefinitionUpdate struct { // The geo-location where the resource lives Location *string `json:"location,omitempty"` // Properties of a Dev Box definition to be updated. Properties *DevBoxDefinitionUpdateProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
DevBoxDefinitionUpdate - Partial update of a Dev Box definition resource.
func (DevBoxDefinitionUpdate) MarshalJSON ¶
func (d DevBoxDefinitionUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevBoxDefinitionUpdate.
func (*DevBoxDefinitionUpdate) UnmarshalJSON ¶
func (d *DevBoxDefinitionUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevBoxDefinitionUpdate.
type DevBoxDefinitionUpdateProperties ¶
type DevBoxDefinitionUpdateProperties struct { // Image reference information. ImageReference *ImageReference `json:"imageReference,omitempty"` // The storage type used for the Operating System disk of Dev Boxes created using this definition. OSStorageType *string `json:"osStorageType,omitempty"` // The SKU for Dev Boxes created using this definition. SKU *SKU `json:"sku,omitempty"` }
DevBoxDefinitionUpdateProperties - Properties of a Dev Box definition. These properties can be updated after the resource has been created.
func (DevBoxDefinitionUpdateProperties) MarshalJSON ¶
func (d DevBoxDefinitionUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DevBoxDefinitionUpdateProperties.
func (*DevBoxDefinitionUpdateProperties) UnmarshalJSON ¶
func (d *DevBoxDefinitionUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DevBoxDefinitionUpdateProperties.
type DevBoxDefinitionsClient ¶
type DevBoxDefinitionsClient struct {
// contains filtered or unexported fields
}
DevBoxDefinitionsClient contains the methods for the DevBoxDefinitions group. Don't use this type directly, use NewDevBoxDefinitionsClient() instead.
func NewDevBoxDefinitionsClient ¶
func NewDevBoxDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DevBoxDefinitionsClient, error)
NewDevBoxDefinitionsClient creates a new instance of DevBoxDefinitionsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DevBoxDefinitionsClient) BeginCreateOrUpdate ¶
func (client *DevBoxDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, devBoxDefinitionName string, body DevBoxDefinition, options *DevBoxDefinitionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DevBoxDefinitionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a Dev Box definition. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. devBoxDefinitionName - The name of the Dev Box definition. body - Represents a Dev Box definition. options - DevBoxDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the DevBoxDefinitionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevBoxDefinitions_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevBoxDefinitionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "Contoso", "WebDevBox", armdevcenter.DevBoxDefinition{ Location: to.Ptr("centralus"), Properties: &armdevcenter.DevBoxDefinitionProperties{ ImageReference: &armdevcenter.ImageReference{ ID: to.Ptr("/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/1.0.0"), }, OSStorageType: to.Ptr("SSD_1024"), SKU: &armdevcenter.SKU{ Name: to.Ptr("Preview"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*DevBoxDefinitionsClient) BeginDelete ¶
func (client *DevBoxDefinitionsClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, devBoxDefinitionName string, options *DevBoxDefinitionsClientBeginDeleteOptions) (*runtime.Poller[DevBoxDefinitionsClientDeleteResponse], error)
BeginDelete - Deletes a Dev Box definition If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. devBoxDefinitionName - The name of the Dev Box definition. options - DevBoxDefinitionsClientBeginDeleteOptions contains the optional parameters for the DevBoxDefinitionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevBoxDefinitions_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevBoxDefinitionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "Contoso", "WebDevBox", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DevBoxDefinitionsClient) BeginUpdate ¶
func (client *DevBoxDefinitionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, devCenterName string, devBoxDefinitionName string, body DevBoxDefinitionUpdate, options *DevBoxDefinitionsClientBeginUpdateOptions) (*runtime.Poller[DevBoxDefinitionsClientUpdateResponse], error)
BeginUpdate - Partially updates a Dev Box definition. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. devBoxDefinitionName - The name of the Dev Box definition. body - Represents a Dev Box definition. options - DevBoxDefinitionsClientBeginUpdateOptions contains the optional parameters for the DevBoxDefinitionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevBoxDefinitions_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevBoxDefinitionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "rg1", "Contoso", "WebDevBox", armdevcenter.DevBoxDefinitionUpdate{ Properties: &armdevcenter.DevBoxDefinitionUpdateProperties{ ImageReference: &armdevcenter.ImageReference{ ID: to.Ptr("/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/2.0.0"), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*DevBoxDefinitionsClient) Get ¶
func (client *DevBoxDefinitionsClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, devBoxDefinitionName string, options *DevBoxDefinitionsClientGetOptions) (DevBoxDefinitionsClientGetResponse, error)
Get - Gets a Dev Box definition If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. devBoxDefinitionName - The name of the Dev Box definition. options - DevBoxDefinitionsClientGetOptions contains the optional parameters for the DevBoxDefinitionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevBoxDefinitions_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevBoxDefinitionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "Contoso", "WebDevBox", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*DevBoxDefinitionsClient) GetByProject ¶
func (client *DevBoxDefinitionsClient) GetByProject(ctx context.Context, resourceGroupName string, projectName string, devBoxDefinitionName string, options *DevBoxDefinitionsClientGetByProjectOptions) (DevBoxDefinitionsClientGetByProjectResponse, error)
GetByProject - Gets a Dev Box definition configured for a project If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. devBoxDefinitionName - The name of the Dev Box definition. options - DevBoxDefinitionsClientGetByProjectOptions contains the optional parameters for the DevBoxDefinitionsClient.GetByProject method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevBoxDefinitions_GetByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevBoxDefinitionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetByProject(ctx, "rg1", "ContosoProject", "WebDevBox", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*DevBoxDefinitionsClient) NewListByDevCenterPager ¶
func (client *DevBoxDefinitionsClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, options *DevBoxDefinitionsClientListByDevCenterOptions) *runtime.Pager[DevBoxDefinitionsClientListByDevCenterResponse]
NewListByDevCenterPager - List Dev Box definitions for a devcenter. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. options - DevBoxDefinitionsClientListByDevCenterOptions contains the optional parameters for the DevBoxDefinitionsClient.ListByDevCenter method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevBoxDefinitions_ListByDevCenter.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevBoxDefinitionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByDevCenterPager("rg1", "Contoso", &armdevcenter.DevBoxDefinitionsClientListByDevCenterOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*DevBoxDefinitionsClient) NewListByProjectPager ¶
func (client *DevBoxDefinitionsClient) NewListByProjectPager(resourceGroupName string, projectName string, options *DevBoxDefinitionsClientListByProjectOptions) *runtime.Pager[DevBoxDefinitionsClientListByProjectResponse]
NewListByProjectPager - List Dev Box definitions configured for a project. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. options - DevBoxDefinitionsClientListByProjectOptions contains the optional parameters for the DevBoxDefinitionsClient.ListByProject method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevBoxDefinitions_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevBoxDefinitionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByProjectPager("rg1", "ContosoProject", &armdevcenter.DevBoxDefinitionsClientListByProjectOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type DevBoxDefinitionsClientBeginCreateOrUpdateOptions ¶
type DevBoxDefinitionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DevBoxDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the DevBoxDefinitionsClient.BeginCreateOrUpdate method.
type DevBoxDefinitionsClientBeginDeleteOptions ¶
type DevBoxDefinitionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DevBoxDefinitionsClientBeginDeleteOptions contains the optional parameters for the DevBoxDefinitionsClient.BeginDelete method.
type DevBoxDefinitionsClientBeginUpdateOptions ¶
type DevBoxDefinitionsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DevBoxDefinitionsClientBeginUpdateOptions contains the optional parameters for the DevBoxDefinitionsClient.BeginUpdate method.
type DevBoxDefinitionsClientCreateOrUpdateResponse ¶
type DevBoxDefinitionsClientCreateOrUpdateResponse struct {
DevBoxDefinition
}
DevBoxDefinitionsClientCreateOrUpdateResponse contains the response from method DevBoxDefinitionsClient.CreateOrUpdate.
type DevBoxDefinitionsClientDeleteResponse ¶
type DevBoxDefinitionsClientDeleteResponse struct { }
DevBoxDefinitionsClientDeleteResponse contains the response from method DevBoxDefinitionsClient.Delete.
type DevBoxDefinitionsClientGetByProjectOptions ¶
type DevBoxDefinitionsClientGetByProjectOptions struct { }
DevBoxDefinitionsClientGetByProjectOptions contains the optional parameters for the DevBoxDefinitionsClient.GetByProject method.
type DevBoxDefinitionsClientGetByProjectResponse ¶
type DevBoxDefinitionsClientGetByProjectResponse struct {
DevBoxDefinition
}
DevBoxDefinitionsClientGetByProjectResponse contains the response from method DevBoxDefinitionsClient.GetByProject.
type DevBoxDefinitionsClientGetOptions ¶
type DevBoxDefinitionsClientGetOptions struct { }
DevBoxDefinitionsClientGetOptions contains the optional parameters for the DevBoxDefinitionsClient.Get method.
type DevBoxDefinitionsClientGetResponse ¶
type DevBoxDefinitionsClientGetResponse struct {
DevBoxDefinition
}
DevBoxDefinitionsClientGetResponse contains the response from method DevBoxDefinitionsClient.Get.
type DevBoxDefinitionsClientListByDevCenterOptions ¶
type DevBoxDefinitionsClientListByDevCenterOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
DevBoxDefinitionsClientListByDevCenterOptions contains the optional parameters for the DevBoxDefinitionsClient.ListByDevCenter method.
type DevBoxDefinitionsClientListByDevCenterResponse ¶
type DevBoxDefinitionsClientListByDevCenterResponse struct {
DevBoxDefinitionListResult
}
DevBoxDefinitionsClientListByDevCenterResponse contains the response from method DevBoxDefinitionsClient.ListByDevCenter.
type DevBoxDefinitionsClientListByProjectOptions ¶
type DevBoxDefinitionsClientListByProjectOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
DevBoxDefinitionsClientListByProjectOptions contains the optional parameters for the DevBoxDefinitionsClient.ListByProject method.
type DevBoxDefinitionsClientListByProjectResponse ¶
type DevBoxDefinitionsClientListByProjectResponse struct {
DevBoxDefinitionListResult
}
DevBoxDefinitionsClientListByProjectResponse contains the response from method DevBoxDefinitionsClient.ListByProject.
type DevBoxDefinitionsClientUpdateResponse ¶
type DevBoxDefinitionsClientUpdateResponse struct {
DevBoxDefinition
}
DevBoxDefinitionsClientUpdateResponse contains the response from method DevBoxDefinitionsClient.Update.
type DevCenter ¶
type DevCenter struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Managed identity properties Identity *ManagedServiceIdentity `json:"identity,omitempty"` // DevCenter properties Properties *Properties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
DevCenter - Represents a devcenter resource.
func (DevCenter) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type DevCenter.
func (*DevCenter) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type DevCenter.
type DevCentersClient ¶
type DevCentersClient struct {
// contains filtered or unexported fields
}
DevCentersClient contains the methods for the DevCenters group. Don't use this type directly, use NewDevCentersClient() instead.
func NewDevCentersClient ¶
func NewDevCentersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DevCentersClient, error)
NewDevCentersClient creates a new instance of DevCentersClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DevCentersClient) BeginCreateOrUpdate ¶
func (client *DevCentersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, body DevCenter, options *DevCentersClientBeginCreateOrUpdateOptions) (*runtime.Poller[DevCentersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a devcenter resource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. body - Represents a devcenter. options - DevCentersClientBeginCreateOrUpdateOptions contains the optional parameters for the DevCentersClient.BeginCreateOrUpdate method.
Example (DevCentersCreate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevCenters_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevCentersClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "Contoso", armdevcenter.DevCenter{ Location: to.Ptr("centralus"), Tags: map[string]*string{ "CostCode": to.Ptr("12345"), }, Properties: &armdevcenter.Properties{}, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
Example (DevCentersCreateWithUserIdentity) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevCenters_CreateWithUserIdentity.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevCentersClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "Contoso", armdevcenter.DevCenter{ Location: to.Ptr("centralus"), Tags: map[string]*string{ "CostCode": to.Ptr("12345"), }, Identity: &armdevcenter.ManagedServiceIdentity{ Type: to.Ptr(armdevcenter.ManagedServiceIdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armdevcenter.UserAssignedIdentity{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {}, }, }, Properties: &armdevcenter.Properties{}, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*DevCentersClient) BeginDelete ¶
func (client *DevCentersClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, options *DevCentersClientBeginDeleteOptions) (*runtime.Poller[DevCentersClientDeleteResponse], error)
BeginDelete - Deletes a devcenter If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. options - DevCentersClientBeginDeleteOptions contains the optional parameters for the DevCentersClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevCenters_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevCentersClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "Contoso", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DevCentersClient) BeginUpdate ¶
func (client *DevCentersClient) BeginUpdate(ctx context.Context, resourceGroupName string, devCenterName string, body Update, options *DevCentersClientBeginUpdateOptions) (*runtime.Poller[DevCentersClientUpdateResponse], error)
BeginUpdate - Partially updates a devcenter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. body - Updatable devcenter properties. options - DevCentersClientBeginUpdateOptions contains the optional parameters for the DevCentersClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevCenters_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevCentersClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "rg1", "Contoso", armdevcenter.Update{ Tags: map[string]*string{ "CostCode": to.Ptr("12345"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*DevCentersClient) Get ¶
func (client *DevCentersClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, options *DevCentersClientGetOptions) (DevCentersClientGetResponse, error)
Get - Gets a devcenter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. options - DevCentersClientGetOptions contains the optional parameters for the DevCentersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevCenters_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevCentersClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "Contoso", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*DevCentersClient) NewListByResourceGroupPager ¶
func (client *DevCentersClient) NewListByResourceGroupPager(resourceGroupName string, options *DevCentersClientListByResourceGroupOptions) *runtime.Pager[DevCentersClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all devcenters in a resource group. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - DevCentersClientListByResourceGroupOptions contains the optional parameters for the DevCentersClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevCenters_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevCentersClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", &armdevcenter.DevCentersClientListByResourceGroupOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*DevCentersClient) NewListBySubscriptionPager ¶
func (client *DevCentersClient) NewListBySubscriptionPager(options *DevCentersClientListBySubscriptionOptions) *runtime.Pager[DevCentersClientListBySubscriptionResponse]
NewListBySubscriptionPager - Lists all devcenters in a subscription. Generated from API version 2022-10-12-preview options - DevCentersClientListBySubscriptionOptions contains the optional parameters for the DevCentersClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/DevCenters_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewDevCentersClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(&armdevcenter.DevCentersClientListBySubscriptionOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type DevCentersClientBeginCreateOrUpdateOptions ¶
type DevCentersClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DevCentersClientBeginCreateOrUpdateOptions contains the optional parameters for the DevCentersClient.BeginCreateOrUpdate method.
type DevCentersClientBeginDeleteOptions ¶
type DevCentersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DevCentersClientBeginDeleteOptions contains the optional parameters for the DevCentersClient.BeginDelete method.
type DevCentersClientBeginUpdateOptions ¶
type DevCentersClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DevCentersClientBeginUpdateOptions contains the optional parameters for the DevCentersClient.BeginUpdate method.
type DevCentersClientCreateOrUpdateResponse ¶
type DevCentersClientCreateOrUpdateResponse struct {
DevCenter
}
DevCentersClientCreateOrUpdateResponse contains the response from method DevCentersClient.CreateOrUpdate.
type DevCentersClientDeleteResponse ¶
type DevCentersClientDeleteResponse struct { }
DevCentersClientDeleteResponse contains the response from method DevCentersClient.Delete.
type DevCentersClientGetOptions ¶
type DevCentersClientGetOptions struct { }
DevCentersClientGetOptions contains the optional parameters for the DevCentersClient.Get method.
type DevCentersClientGetResponse ¶
type DevCentersClientGetResponse struct {
DevCenter
}
DevCentersClientGetResponse contains the response from method DevCentersClient.Get.
type DevCentersClientListByResourceGroupOptions ¶
type DevCentersClientListByResourceGroupOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
DevCentersClientListByResourceGroupOptions contains the optional parameters for the DevCentersClient.ListByResourceGroup method.
type DevCentersClientListByResourceGroupResponse ¶
type DevCentersClientListByResourceGroupResponse struct {
ListResult
}
DevCentersClientListByResourceGroupResponse contains the response from method DevCentersClient.ListByResourceGroup.
type DevCentersClientListBySubscriptionOptions ¶
type DevCentersClientListBySubscriptionOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
DevCentersClientListBySubscriptionOptions contains the optional parameters for the DevCentersClient.ListBySubscription method.
type DevCentersClientListBySubscriptionResponse ¶
type DevCentersClientListBySubscriptionResponse struct {
ListResult
}
DevCentersClientListBySubscriptionResponse contains the response from method DevCentersClient.ListBySubscription.
type DevCentersClientUpdateResponse ¶
type DevCentersClientUpdateResponse struct {
DevCenter
}
DevCentersClientUpdateResponse contains the response from method DevCentersClient.Update.
type DomainJoinType ¶
type DomainJoinType string
DomainJoinType - Active Directory join type
const ( DomainJoinTypeAzureADJoin DomainJoinType = "AzureADJoin" DomainJoinTypeHybridAzureADJoin DomainJoinType = "HybridAzureADJoin" )
func PossibleDomainJoinTypeValues ¶
func PossibleDomainJoinTypeValues() []DomainJoinType
PossibleDomainJoinTypeValues returns the possible values for the DomainJoinType const type.
type EnableStatus ¶
type EnableStatus string
EnableStatus - Enable or disable status. Indicates whether the property applied to is either enabled or disabled.
const ( EnableStatusDisabled EnableStatus = "Disabled" EnableStatusEnabled EnableStatus = "Enabled" )
func PossibleEnableStatusValues ¶
func PossibleEnableStatusValues() []EnableStatus
PossibleEnableStatusValues returns the possible values for the EnableStatus const type.
type EnvironmentRole ¶
type EnvironmentRole struct { // READ-ONLY; This is a description of the Role Assignment. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The common name of the Role Assignment. This is a descriptive name such as 'AcrPush'. RoleName *string `json:"roleName,omitempty" azure:"ro"` }
EnvironmentRole - A role that can be assigned to a user.
func (EnvironmentRole) MarshalJSON ¶
func (e EnvironmentRole) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnvironmentRole.
func (*EnvironmentRole) UnmarshalJSON ¶
func (e *EnvironmentRole) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentRole.
type EnvironmentType ¶
type EnvironmentType struct { // Properties of an environment type. Properties *EnvironmentTypeProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
EnvironmentType - Represents an environment type.
func (EnvironmentType) MarshalJSON ¶
func (e EnvironmentType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnvironmentType.
func (*EnvironmentType) UnmarshalJSON ¶
func (e *EnvironmentType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentType.
type EnvironmentTypeListResult ¶
type EnvironmentTypeListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*EnvironmentType `json:"value,omitempty" azure:"ro"` }
EnvironmentTypeListResult - Result of the environment type list operation.
func (EnvironmentTypeListResult) MarshalJSON ¶
func (e EnvironmentTypeListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnvironmentTypeListResult.
func (*EnvironmentTypeListResult) UnmarshalJSON ¶
func (e *EnvironmentTypeListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentTypeListResult.
type EnvironmentTypeProperties ¶
type EnvironmentTypeProperties struct { // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
EnvironmentTypeProperties - Properties of an environment type.
func (EnvironmentTypeProperties) MarshalJSON ¶
func (e EnvironmentTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnvironmentTypeProperties.
func (*EnvironmentTypeProperties) UnmarshalJSON ¶
func (e *EnvironmentTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentTypeProperties.
type EnvironmentTypeUpdate ¶
type EnvironmentTypeUpdate struct { // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
EnvironmentTypeUpdate - The environment type for partial update. Properties not provided in the update request will not be changed.
func (EnvironmentTypeUpdate) MarshalJSON ¶
func (e EnvironmentTypeUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnvironmentTypeUpdate.
func (*EnvironmentTypeUpdate) UnmarshalJSON ¶
func (e *EnvironmentTypeUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentTypeUpdate.
type EnvironmentTypesClient ¶
type EnvironmentTypesClient struct {
// contains filtered or unexported fields
}
EnvironmentTypesClient contains the methods for the EnvironmentTypes group. Don't use this type directly, use NewEnvironmentTypesClient() instead.
func NewEnvironmentTypesClient ¶
func NewEnvironmentTypesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EnvironmentTypesClient, error)
NewEnvironmentTypesClient creates a new instance of EnvironmentTypesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*EnvironmentTypesClient) CreateOrUpdate ¶
func (client *EnvironmentTypesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, environmentTypeName string, body EnvironmentType, options *EnvironmentTypesClientCreateOrUpdateOptions) (EnvironmentTypesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates an environment type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. environmentTypeName - The name of the environment type. body - Represents an Environment Type. options - EnvironmentTypesClientCreateOrUpdateOptions contains the optional parameters for the EnvironmentTypesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/EnvironmentTypes_Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "rg1", "Contoso", "{environmentTypeName}", armdevcenter.EnvironmentType{ Tags: map[string]*string{ "Owner": to.Ptr("superuser"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*EnvironmentTypesClient) Delete ¶
func (client *EnvironmentTypesClient) Delete(ctx context.Context, resourceGroupName string, devCenterName string, environmentTypeName string, options *EnvironmentTypesClientDeleteOptions) (EnvironmentTypesClientDeleteResponse, error)
Delete - Deletes an environment type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. environmentTypeName - The name of the environment type. options - EnvironmentTypesClientDeleteOptions contains the optional parameters for the EnvironmentTypesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/EnvironmentTypes_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "rg1", "Contoso", "{environmentTypeName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*EnvironmentTypesClient) Get ¶
func (client *EnvironmentTypesClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, environmentTypeName string, options *EnvironmentTypesClientGetOptions) (EnvironmentTypesClientGetResponse, error)
Get - Gets an environment type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. environmentTypeName - The name of the environment type. options - EnvironmentTypesClientGetOptions contains the optional parameters for the EnvironmentTypesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/EnvironmentTypes_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "Contoso", "{environmentTypeName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*EnvironmentTypesClient) NewListByDevCenterPager ¶
func (client *EnvironmentTypesClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, options *EnvironmentTypesClientListByDevCenterOptions) *runtime.Pager[EnvironmentTypesClientListByDevCenterResponse]
NewListByDevCenterPager - Lists environment types for the devcenter. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. options - EnvironmentTypesClientListByDevCenterOptions contains the optional parameters for the EnvironmentTypesClient.ListByDevCenter method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/EnvironmentTypes_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByDevCenterPager("rg1", "Contoso", &armdevcenter.EnvironmentTypesClientListByDevCenterOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*EnvironmentTypesClient) Update ¶
func (client *EnvironmentTypesClient) Update(ctx context.Context, resourceGroupName string, devCenterName string, environmentTypeName string, body EnvironmentTypeUpdate, options *EnvironmentTypesClientUpdateOptions) (EnvironmentTypesClientUpdateResponse, error)
Update - Partially updates an environment type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. environmentTypeName - The name of the environment type. body - Updatable environment type properties. options - EnvironmentTypesClientUpdateOptions contains the optional parameters for the EnvironmentTypesClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/EnvironmentTypes_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "rg1", "Contoso", "{environmentTypeName}", armdevcenter.EnvironmentTypeUpdate{ Tags: map[string]*string{ "Owner": to.Ptr("superuser"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type EnvironmentTypesClientCreateOrUpdateOptions ¶
type EnvironmentTypesClientCreateOrUpdateOptions struct { }
EnvironmentTypesClientCreateOrUpdateOptions contains the optional parameters for the EnvironmentTypesClient.CreateOrUpdate method.
type EnvironmentTypesClientCreateOrUpdateResponse ¶
type EnvironmentTypesClientCreateOrUpdateResponse struct {
EnvironmentType
}
EnvironmentTypesClientCreateOrUpdateResponse contains the response from method EnvironmentTypesClient.CreateOrUpdate.
type EnvironmentTypesClientDeleteOptions ¶
type EnvironmentTypesClientDeleteOptions struct { }
EnvironmentTypesClientDeleteOptions contains the optional parameters for the EnvironmentTypesClient.Delete method.
type EnvironmentTypesClientDeleteResponse ¶
type EnvironmentTypesClientDeleteResponse struct { }
EnvironmentTypesClientDeleteResponse contains the response from method EnvironmentTypesClient.Delete.
type EnvironmentTypesClientGetOptions ¶
type EnvironmentTypesClientGetOptions struct { }
EnvironmentTypesClientGetOptions contains the optional parameters for the EnvironmentTypesClient.Get method.
type EnvironmentTypesClientGetResponse ¶
type EnvironmentTypesClientGetResponse struct {
EnvironmentType
}
EnvironmentTypesClientGetResponse contains the response from method EnvironmentTypesClient.Get.
type EnvironmentTypesClientListByDevCenterOptions ¶
type EnvironmentTypesClientListByDevCenterOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
EnvironmentTypesClientListByDevCenterOptions contains the optional parameters for the EnvironmentTypesClient.ListByDevCenter method.
type EnvironmentTypesClientListByDevCenterResponse ¶
type EnvironmentTypesClientListByDevCenterResponse struct {
EnvironmentTypeListResult
}
EnvironmentTypesClientListByDevCenterResponse contains the response from method EnvironmentTypesClient.ListByDevCenter.
type EnvironmentTypesClientUpdateOptions ¶
type EnvironmentTypesClientUpdateOptions struct { }
EnvironmentTypesClientUpdateOptions contains the optional parameters for the EnvironmentTypesClient.Update method.
type EnvironmentTypesClientUpdateResponse ¶
type EnvironmentTypesClientUpdateResponse struct {
EnvironmentType
}
EnvironmentTypesClientUpdateResponse contains the response from method EnvironmentTypesClient.Update.
type ErrorAdditionalInfo ¶ added in v0.3.0
type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. Info interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` }
ErrorAdditionalInfo - The resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶ added in v0.3.0
func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.
func (*ErrorAdditionalInfo) UnmarshalJSON ¶ added in v0.3.0
func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.
type ErrorDetail ¶ added in v0.3.0
type ErrorDetail struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; The error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; The error details. Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` // READ-ONLY; The error message. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The error target. Target *string `json:"target,omitempty" azure:"ro"` }
ErrorDetail - The error detail.
func (ErrorDetail) MarshalJSON ¶ added in v0.3.0
func (e ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetail.
func (*ErrorDetail) UnmarshalJSON ¶ added in v0.3.0
func (e *ErrorDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.
type GalleriesClient ¶
type GalleriesClient struct {
// contains filtered or unexported fields
}
GalleriesClient contains the methods for the Galleries group. Don't use this type directly, use NewGalleriesClient() instead.
func NewGalleriesClient ¶
func NewGalleriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleriesClient, error)
NewGalleriesClient creates a new instance of GalleriesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*GalleriesClient) BeginCreateOrUpdate ¶
func (client *GalleriesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, devCenterName string, galleryName string, body Gallery, options *GalleriesClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleriesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a gallery. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. galleryName - The name of the gallery. body - Represents a gallery. options - GalleriesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleriesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Galleries_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewGalleriesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "Contoso", "{galleryName}", armdevcenter.Gallery{ Properties: &armdevcenter.GalleryProperties{ GalleryResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.Compute/galleries/{galleryName}"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*GalleriesClient) BeginDelete ¶
func (client *GalleriesClient) BeginDelete(ctx context.Context, resourceGroupName string, devCenterName string, galleryName string, options *GalleriesClientBeginDeleteOptions) (*runtime.Poller[GalleriesClientDeleteResponse], error)
BeginDelete - Deletes a gallery resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. galleryName - The name of the gallery. options - GalleriesClientBeginDeleteOptions contains the optional parameters for the GalleriesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Galleries_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewGalleriesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "Contoso", "{galleryName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*GalleriesClient) Get ¶
func (client *GalleriesClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, galleryName string, options *GalleriesClientGetOptions) (GalleriesClientGetResponse, error)
Get - Gets a gallery If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. galleryName - The name of the gallery. options - GalleriesClientGetOptions contains the optional parameters for the GalleriesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Galleries_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewGalleriesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "Contoso", "{galleryName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*GalleriesClient) NewListByDevCenterPager ¶
func (client *GalleriesClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, options *GalleriesClientListByDevCenterOptions) *runtime.Pager[GalleriesClientListByDevCenterResponse]
NewListByDevCenterPager - Lists galleries for a devcenter. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. options - GalleriesClientListByDevCenterOptions contains the optional parameters for the GalleriesClient.ListByDevCenter method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Galleries_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewGalleriesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByDevCenterPager("rg1", "Contoso", &armdevcenter.GalleriesClientListByDevCenterOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type GalleriesClientBeginCreateOrUpdateOptions ¶
type GalleriesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
GalleriesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleriesClient.BeginCreateOrUpdate method.
type GalleriesClientBeginDeleteOptions ¶
type GalleriesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
GalleriesClientBeginDeleteOptions contains the optional parameters for the GalleriesClient.BeginDelete method.
type GalleriesClientCreateOrUpdateResponse ¶
type GalleriesClientCreateOrUpdateResponse struct {
Gallery
}
GalleriesClientCreateOrUpdateResponse contains the response from method GalleriesClient.CreateOrUpdate.
type GalleriesClientDeleteResponse ¶
type GalleriesClientDeleteResponse struct { }
GalleriesClientDeleteResponse contains the response from method GalleriesClient.Delete.
type GalleriesClientGetOptions ¶
type GalleriesClientGetOptions struct { }
GalleriesClientGetOptions contains the optional parameters for the GalleriesClient.Get method.
type GalleriesClientGetResponse ¶
type GalleriesClientGetResponse struct {
Gallery
}
GalleriesClientGetResponse contains the response from method GalleriesClient.Get.
type GalleriesClientListByDevCenterOptions ¶
type GalleriesClientListByDevCenterOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
GalleriesClientListByDevCenterOptions contains the optional parameters for the GalleriesClient.ListByDevCenter method.
type GalleriesClientListByDevCenterResponse ¶
type GalleriesClientListByDevCenterResponse struct {
GalleryListResult
}
GalleriesClientListByDevCenterResponse contains the response from method GalleriesClient.ListByDevCenter.
type Gallery ¶
type Gallery struct { // Gallery properties. Properties *GalleryProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Gallery - Represents a gallery.
func (Gallery) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Gallery.
func (*Gallery) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Gallery.
type GalleryListResult ¶
type GalleryListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*Gallery `json:"value,omitempty" azure:"ro"` }
GalleryListResult - Results of the gallery list operation.
func (GalleryListResult) MarshalJSON ¶
func (g GalleryListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GalleryListResult.
func (*GalleryListResult) UnmarshalJSON ¶
func (g *GalleryListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GalleryListResult.
type GalleryProperties ¶
type GalleryProperties struct { // REQUIRED; The resource ID of the backing Azure Compute Gallery. GalleryResourceID *string `json:"galleryResourceId,omitempty"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
GalleryProperties - Properties of a gallery.
func (GalleryProperties) MarshalJSON ¶
func (g GalleryProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GalleryProperties.
func (*GalleryProperties) UnmarshalJSON ¶
func (g *GalleryProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GalleryProperties.
type GitCatalog ¶
type GitCatalog struct { // Git branch. Branch *string `json:"branch,omitempty"` // The folder where the catalog items can be found inside the repository. Path *string `json:"path,omitempty"` // A reference to the Key Vault secret containing a security token to authenticate to a Git repository. SecretIdentifier *string `json:"secretIdentifier,omitempty"` // Git URI. URI *string `json:"uri,omitempty"` }
GitCatalog - Properties for a Git repository catalog.
func (GitCatalog) MarshalJSON ¶
func (g GitCatalog) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GitCatalog.
func (*GitCatalog) UnmarshalJSON ¶
func (g *GitCatalog) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GitCatalog.
type HealthCheck ¶
type HealthCheck struct { // READ-ONLY; Additional details about the health check or the recommended action. AdditionalDetails *string `json:"additionalDetails,omitempty" azure:"ro"` // READ-ONLY; The display name of this health check item. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; End time of the health check item. EndDateTime *time.Time `json:"endDateTime,omitempty" azure:"ro"` // READ-ONLY; The type of error that occurred during this health check. ErrorType *string `json:"errorType,omitempty" azure:"ro"` // READ-ONLY; The recommended action to fix the corresponding error. RecommendedAction *string `json:"recommendedAction,omitempty" azure:"ro"` // READ-ONLY; Start time of health check item. StartDateTime *time.Time `json:"startDateTime,omitempty" azure:"ro"` // READ-ONLY; The status of the health check item. Status *HealthCheckStatus `json:"status,omitempty" azure:"ro"` }
HealthCheck - An individual health check item
func (HealthCheck) MarshalJSON ¶
func (h HealthCheck) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HealthCheck.
func (*HealthCheck) UnmarshalJSON ¶
func (h *HealthCheck) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HealthCheck.
type HealthCheckStatus ¶
type HealthCheckStatus string
HealthCheckStatus - Health check status values
const ( HealthCheckStatusFailed HealthCheckStatus = "Failed" HealthCheckStatusPassed HealthCheckStatus = "Passed" HealthCheckStatusPending HealthCheckStatus = "Pending" HealthCheckStatusRunning HealthCheckStatus = "Running" HealthCheckStatusUnknown HealthCheckStatus = "Unknown" HealthCheckStatusWarning HealthCheckStatus = "Warning" )
func PossibleHealthCheckStatusValues ¶
func PossibleHealthCheckStatusValues() []HealthCheckStatus
PossibleHealthCheckStatusValues returns the possible values for the HealthCheckStatus const type.
type HealthCheckStatusDetails ¶
type HealthCheckStatusDetails struct { // Health check status details properties. Properties *HealthCheckStatusDetailsProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
HealthCheckStatusDetails - Health Check details.
func (HealthCheckStatusDetails) MarshalJSON ¶
func (h HealthCheckStatusDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HealthCheckStatusDetails.
func (*HealthCheckStatusDetails) UnmarshalJSON ¶
func (h *HealthCheckStatusDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HealthCheckStatusDetails.
type HealthCheckStatusDetailsListResult ¶
type HealthCheckStatusDetailsListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*HealthCheckStatusDetails `json:"value,omitempty" azure:"ro"` }
HealthCheckStatusDetailsListResult - Result of the network health check list operation.
func (HealthCheckStatusDetailsListResult) MarshalJSON ¶
func (h HealthCheckStatusDetailsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HealthCheckStatusDetailsListResult.
func (*HealthCheckStatusDetailsListResult) UnmarshalJSON ¶
func (h *HealthCheckStatusDetailsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HealthCheckStatusDetailsListResult.
type HealthCheckStatusDetailsProperties ¶
type HealthCheckStatusDetailsProperties struct { // READ-ONLY; End time of last execution of the health checks. EndDateTime *time.Time `json:"endDateTime,omitempty" azure:"ro"` // READ-ONLY; Details for each health check item. HealthChecks []*HealthCheck `json:"healthChecks,omitempty" azure:"ro"` // READ-ONLY; Start time of last execution of the health checks. StartDateTime *time.Time `json:"startDateTime,omitempty" azure:"ro"` }
HealthCheckStatusDetailsProperties - Health Check properties.
func (HealthCheckStatusDetailsProperties) MarshalJSON ¶
func (h HealthCheckStatusDetailsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HealthCheckStatusDetailsProperties.
func (*HealthCheckStatusDetailsProperties) UnmarshalJSON ¶
func (h *HealthCheckStatusDetailsProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HealthCheckStatusDetailsProperties.
type Image ¶
type Image struct { // Image properties. Properties *ImageProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Image - Represents an image.
func (Image) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Image.
func (*Image) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Image.
type ImageListResult ¶
type ImageListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*Image `json:"value,omitempty" azure:"ro"` }
ImageListResult - Results of the image list operation.
func (ImageListResult) MarshalJSON ¶
func (i ImageListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageListResult.
func (*ImageListResult) UnmarshalJSON ¶
func (i *ImageListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageListResult.
type ImageProperties ¶
type ImageProperties struct { // READ-ONLY; The description of the image. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The name of the image offer. Offer *string `json:"offer,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The publisher of the image. Publisher *string `json:"publisher,omitempty" azure:"ro"` // READ-ONLY; The recommended machine configuration to use with the image. RecommendedMachineConfiguration *RecommendedMachineConfiguration `json:"recommendedMachineConfiguration,omitempty" azure:"ro"` // READ-ONLY; The SKU name for the image. SKU *string `json:"sku,omitempty" azure:"ro"` }
ImageProperties - Properties of an image.
func (ImageProperties) MarshalJSON ¶
func (i ImageProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageProperties.
func (*ImageProperties) UnmarshalJSON ¶
func (i *ImageProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageProperties.
type ImageReference ¶
type ImageReference struct { // Image ID, or Image version ID. When Image ID is provided, its latest version will be used. ID *string `json:"id,omitempty"` // The image offer. Offer *string `json:"offer,omitempty"` // The image publisher. Publisher *string `json:"publisher,omitempty"` // The image sku. SKU *string `json:"sku,omitempty"` // READ-ONLY; The actual version of the image after use. When id references a gallery image latest version, this will indicate // the actual version in use. ExactVersion *string `json:"exactVersion,omitempty" azure:"ro"` }
ImageReference - Image reference information
func (ImageReference) MarshalJSON ¶
func (i ImageReference) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageReference.
func (*ImageReference) UnmarshalJSON ¶
func (i *ImageReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageReference.
type ImageValidationErrorDetails ¶
type ImageValidationErrorDetails struct { // An identifier for the error. Code *string `json:"code,omitempty"` // A message describing the error. Message *string `json:"message,omitempty"` }
ImageValidationErrorDetails - Image validation error details
func (ImageValidationErrorDetails) MarshalJSON ¶
func (i ImageValidationErrorDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageValidationErrorDetails.
func (*ImageValidationErrorDetails) UnmarshalJSON ¶
func (i *ImageValidationErrorDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageValidationErrorDetails.
type ImageValidationStatus ¶
type ImageValidationStatus string
ImageValidationStatus - Image validation status
const ( ImageValidationStatusFailed ImageValidationStatus = "Failed" ImageValidationStatusPending ImageValidationStatus = "Pending" ImageValidationStatusSucceeded ImageValidationStatus = "Succeeded" ImageValidationStatusTimedOut ImageValidationStatus = "TimedOut" ImageValidationStatusUnknown ImageValidationStatus = "Unknown" )
func PossibleImageValidationStatusValues ¶
func PossibleImageValidationStatusValues() []ImageValidationStatus
PossibleImageValidationStatusValues returns the possible values for the ImageValidationStatus const type.
type ImageVersion ¶
type ImageVersion struct { // Image version properties. Properties *ImageVersionProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ImageVersion - Represents an image version.
func (ImageVersion) MarshalJSON ¶
func (i ImageVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageVersion.
func (*ImageVersion) UnmarshalJSON ¶
func (i *ImageVersion) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageVersion.
type ImageVersionListResult ¶
type ImageVersionListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*ImageVersion `json:"value,omitempty" azure:"ro"` }
ImageVersionListResult - Results of the image version list operation.
func (ImageVersionListResult) MarshalJSON ¶
func (i ImageVersionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageVersionListResult.
func (*ImageVersionListResult) UnmarshalJSON ¶
func (i *ImageVersionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageVersionListResult.
type ImageVersionProperties ¶
type ImageVersionProperties struct { // READ-ONLY; If the version should be excluded from being treated as the latest version. ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty" azure:"ro"` // READ-ONLY; The semantic version string. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The size of the OS disk image, in GB. OSDiskImageSizeInGb *int32 `json:"osDiskImageSizeInGb,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The datetime that the backing image version was published. PublishedDate *time.Time `json:"publishedDate,omitempty" azure:"ro"` }
ImageVersionProperties - Properties of an image version.
func (ImageVersionProperties) MarshalJSON ¶
func (i ImageVersionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageVersionProperties.
func (*ImageVersionProperties) UnmarshalJSON ¶
func (i *ImageVersionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageVersionProperties.
type ImageVersionsClient ¶
type ImageVersionsClient struct {
// contains filtered or unexported fields
}
ImageVersionsClient contains the methods for the ImageVersions group. Don't use this type directly, use NewImageVersionsClient() instead.
func NewImageVersionsClient ¶
func NewImageVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ImageVersionsClient, error)
NewImageVersionsClient creates a new instance of ImageVersionsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ImageVersionsClient) Get ¶
func (client *ImageVersionsClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, galleryName string, imageName string, versionName string, options *ImageVersionsClientGetOptions) (ImageVersionsClientGetResponse, error)
Get - Gets an image version. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. galleryName - The name of the gallery. imageName - The name of the image. versionName - The version of the image. options - ImageVersionsClientGetOptions contains the optional parameters for the ImageVersionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/ImageVersions_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewImageVersionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "Contoso", "DefaultDevGallery", "Win11", "{versionName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ImageVersionsClient) NewListByImagePager ¶
func (client *ImageVersionsClient) NewListByImagePager(resourceGroupName string, devCenterName string, galleryName string, imageName string, options *ImageVersionsClientListByImageOptions) *runtime.Pager[ImageVersionsClientListByImageResponse]
NewListByImagePager - Lists versions for an image. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. galleryName - The name of the gallery. imageName - The name of the image. options - ImageVersionsClientListByImageOptions contains the optional parameters for the ImageVersionsClient.ListByImage method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/ImageVersions_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewImageVersionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByImagePager("rg1", "Contoso", "DefaultDevGallery", "Win11", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ImageVersionsClientGetOptions ¶
type ImageVersionsClientGetOptions struct { }
ImageVersionsClientGetOptions contains the optional parameters for the ImageVersionsClient.Get method.
type ImageVersionsClientGetResponse ¶
type ImageVersionsClientGetResponse struct {
ImageVersion
}
ImageVersionsClientGetResponse contains the response from method ImageVersionsClient.Get.
type ImageVersionsClientListByImageOptions ¶
type ImageVersionsClientListByImageOptions struct { }
ImageVersionsClientListByImageOptions contains the optional parameters for the ImageVersionsClient.ListByImage method.
type ImageVersionsClientListByImageResponse ¶
type ImageVersionsClientListByImageResponse struct {
ImageVersionListResult
}
ImageVersionsClientListByImageResponse contains the response from method ImageVersionsClient.ListByImage.
type ImagesClient ¶
type ImagesClient struct {
// contains filtered or unexported fields
}
ImagesClient contains the methods for the Images group. Don't use this type directly, use NewImagesClient() instead.
func NewImagesClient ¶
func NewImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ImagesClient, error)
NewImagesClient creates a new instance of ImagesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ImagesClient) Get ¶
func (client *ImagesClient) Get(ctx context.Context, resourceGroupName string, devCenterName string, galleryName string, imageName string, options *ImagesClientGetOptions) (ImagesClientGetResponse, error)
Get - Gets a gallery image. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. galleryName - The name of the gallery. imageName - The name of the image. options - ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Images_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewImagesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "Contoso", "DefaultDevGallery", "{imageName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ImagesClient) NewListByDevCenterPager ¶
func (client *ImagesClient) NewListByDevCenterPager(resourceGroupName string, devCenterName string, options *ImagesClientListByDevCenterOptions) *runtime.Pager[ImagesClientListByDevCenterResponse]
NewListByDevCenterPager - Lists images for a devcenter. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. options - ImagesClientListByDevCenterOptions contains the optional parameters for the ImagesClient.ListByDevCenter method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Images_ListByDevCenter.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewImagesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByDevCenterPager("rg1", "Contoso", &armdevcenter.ImagesClientListByDevCenterOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ImagesClient) NewListByGalleryPager ¶
func (client *ImagesClient) NewListByGalleryPager(resourceGroupName string, devCenterName string, galleryName string, options *ImagesClientListByGalleryOptions) *runtime.Pager[ImagesClientListByGalleryResponse]
NewListByGalleryPager - Lists images for a gallery. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. devCenterName - The name of the devcenter. galleryName - The name of the gallery. options - ImagesClientListByGalleryOptions contains the optional parameters for the ImagesClient.ListByGallery method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Images_ListByGallery.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewImagesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByGalleryPager("rg1", "Contoso", "DevGallery", &armdevcenter.ImagesClientListByGalleryOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ImagesClientGetOptions ¶
type ImagesClientGetOptions struct { }
ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method.
type ImagesClientGetResponse ¶
type ImagesClientGetResponse struct {
Image
}
ImagesClientGetResponse contains the response from method ImagesClient.Get.
type ImagesClientListByDevCenterOptions ¶
type ImagesClientListByDevCenterOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
ImagesClientListByDevCenterOptions contains the optional parameters for the ImagesClient.ListByDevCenter method.
type ImagesClientListByDevCenterResponse ¶
type ImagesClientListByDevCenterResponse struct {
ImageListResult
}
ImagesClientListByDevCenterResponse contains the response from method ImagesClient.ListByDevCenter.
type ImagesClientListByGalleryOptions ¶
type ImagesClientListByGalleryOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
ImagesClientListByGalleryOptions contains the optional parameters for the ImagesClient.ListByGallery method.
type ImagesClientListByGalleryResponse ¶
type ImagesClientListByGalleryResponse struct {
ImageListResult
}
ImagesClientListByGalleryResponse contains the response from method ImagesClient.ListByGallery.
type LicenseType ¶
type LicenseType string
LicenseType - License Types
const (
LicenseTypeWindowsClient LicenseType = "Windows_Client"
)
func PossibleLicenseTypeValues ¶
func PossibleLicenseTypeValues() []LicenseType
PossibleLicenseTypeValues returns the possible values for the LicenseType const type.
type ListResult ¶
type ListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*DevCenter `json:"value,omitempty" azure:"ro"` }
ListResult - Result of the list devcenters operation
func (ListResult) MarshalJSON ¶
func (l ListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListResult.
func (*ListResult) UnmarshalJSON ¶
func (l *ListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ListResult.
type ListUsagesResult ¶
type ListUsagesResult struct { // READ-ONLY; The link to get the next page of Usage result. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The array page of Usages. Value []*Usage `json:"value,omitempty" azure:"ro"` }
ListUsagesResult - List of Core Usages.
func (ListUsagesResult) MarshalJSON ¶
func (l ListUsagesResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListUsagesResult.
func (*ListUsagesResult) UnmarshalJSON ¶
func (l *ListUsagesResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ListUsagesResult.
type LocalAdminStatus ¶
type LocalAdminStatus string
const ( LocalAdminStatusDisabled LocalAdminStatus = "Disabled" LocalAdminStatusEnabled LocalAdminStatus = "Enabled" )
func PossibleLocalAdminStatusValues ¶
func PossibleLocalAdminStatusValues() []LocalAdminStatus
PossibleLocalAdminStatusValues returns the possible values for the LocalAdminStatus const type.
type ManagedServiceIdentity ¶
type ManagedServiceIdentity struct { // REQUIRED; Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). Type *ManagedServiceIdentityType `json:"type,omitempty"` // The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM // resource ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. // The dictionary values can be empty objects ({}) in // requests. UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` // READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned // identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities)
func (ManagedServiceIdentity) MarshalJSON ¶
func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity.
func (*ManagedServiceIdentity) UnmarshalJSON ¶
func (m *ManagedServiceIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentity.
type ManagedServiceIdentityType ¶
type ManagedServiceIdentityType string
ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
const ( ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned, UserAssigned" ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" )
func PossibleManagedServiceIdentityTypeValues ¶
func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
type NetworkConnection ¶
type NetworkConnection struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Properties of a Network Connection Properties *NetworkProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
NetworkConnection - Network related settings
func (NetworkConnection) MarshalJSON ¶
func (n NetworkConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkConnection.
func (*NetworkConnection) UnmarshalJSON ¶
func (n *NetworkConnection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkConnection.
type NetworkConnectionListResult ¶
type NetworkConnectionListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*NetworkConnection `json:"value,omitempty" azure:"ro"` }
NetworkConnectionListResult - Result of the network connection list operation.
func (NetworkConnectionListResult) MarshalJSON ¶
func (n NetworkConnectionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkConnectionListResult.
func (*NetworkConnectionListResult) UnmarshalJSON ¶
func (n *NetworkConnectionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkConnectionListResult.
type NetworkConnectionUpdate ¶
type NetworkConnectionUpdate struct { // The geo-location where the resource lives Location *string `json:"location,omitempty"` // Properties of a network connection resource to be updated. Properties *NetworkConnectionUpdateProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
NetworkConnectionUpdate - The network connection properties for partial update. Properties not provided in the update request will not be changed.
func (NetworkConnectionUpdate) MarshalJSON ¶
func (n NetworkConnectionUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkConnectionUpdate.
func (*NetworkConnectionUpdate) UnmarshalJSON ¶
func (n *NetworkConnectionUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkConnectionUpdate.
type NetworkConnectionUpdateProperties ¶
type NetworkConnectionUpdateProperties struct { // Active Directory domain name DomainName *string `json:"domainName,omitempty"` // The password for the account used to join domain DomainPassword *string `json:"domainPassword,omitempty"` // The username of an Active Directory account (user or service account) that has permissions to create computer objects in // Active Directory. Required format: admin@contoso.com. DomainUsername *string `json:"domainUsername,omitempty"` // Active Directory domain Organization Unit (OU) OrganizationUnit *string `json:"organizationUnit,omitempty"` // The subnet to attach Virtual Machines to SubnetID *string `json:"subnetId,omitempty"` }
NetworkConnectionUpdateProperties - Properties of network connection. These properties can be updated after the resource has been created.
func (NetworkConnectionUpdateProperties) MarshalJSON ¶
func (n NetworkConnectionUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkConnectionUpdateProperties.
func (*NetworkConnectionUpdateProperties) UnmarshalJSON ¶
func (n *NetworkConnectionUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkConnectionUpdateProperties.
type NetworkConnectionsClient ¶
type NetworkConnectionsClient struct {
// contains filtered or unexported fields
}
NetworkConnectionsClient contains the methods for the NetworkConnections group. Don't use this type directly, use NewNetworkConnectionsClient() instead.
func NewNetworkConnectionsClient ¶
func NewNetworkConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NetworkConnectionsClient, error)
NewNetworkConnectionsClient creates a new instance of NetworkConnectionsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*NetworkConnectionsClient) BeginCreateOrUpdate ¶
func (client *NetworkConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, networkConnectionName string, body NetworkConnection, options *NetworkConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[NetworkConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a Network Connections resource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. networkConnectionName - Name of the Network Connection that can be applied to a Pool. body - Represents network connection options - NetworkConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the NetworkConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/NetworkConnections_Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewNetworkConnectionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "uswest3network", armdevcenter.NetworkConnection{ Location: to.Ptr("centralus"), Properties: &armdevcenter.NetworkProperties{ DomainName: to.Ptr("mydomaincontroller.local"), DomainPassword: to.Ptr("Password value for user"), DomainUsername: to.Ptr("testuser@mydomaincontroller.local"), SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default"), DomainJoinType: to.Ptr(armdevcenter.DomainJoinTypeHybridAzureADJoin), NetworkingResourceGroupName: to.Ptr("NetworkInterfaces"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*NetworkConnectionsClient) BeginDelete ¶
func (client *NetworkConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, networkConnectionName string, options *NetworkConnectionsClientBeginDeleteOptions) (*runtime.Poller[NetworkConnectionsClientDeleteResponse], error)
BeginDelete - Deletes a Network Connections resource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. networkConnectionName - Name of the Network Connection that can be applied to a Pool. options - NetworkConnectionsClientBeginDeleteOptions contains the optional parameters for the NetworkConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/NetworkConnections_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewNetworkConnectionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "{networkConnectionName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*NetworkConnectionsClient) BeginUpdate ¶
func (client *NetworkConnectionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, networkConnectionName string, body NetworkConnectionUpdate, options *NetworkConnectionsClientBeginUpdateOptions) (*runtime.Poller[NetworkConnectionsClientUpdateResponse], error)
BeginUpdate - Partially updates a Network Connection If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. networkConnectionName - Name of the Network Connection that can be applied to a Pool. body - Represents network connection options - NetworkConnectionsClientBeginUpdateOptions contains the optional parameters for the NetworkConnectionsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/NetworkConnections_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewNetworkConnectionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "rg1", "uswest3network", armdevcenter.NetworkConnectionUpdate{ Properties: &armdevcenter.NetworkConnectionUpdateProperties{ DomainPassword: to.Ptr("New Password value for user"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*NetworkConnectionsClient) Get ¶
func (client *NetworkConnectionsClient) Get(ctx context.Context, resourceGroupName string, networkConnectionName string, options *NetworkConnectionsClientGetOptions) (NetworkConnectionsClientGetResponse, error)
Get - Gets a network connection resource If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. networkConnectionName - Name of the Network Connection that can be applied to a Pool. options - NetworkConnectionsClientGetOptions contains the optional parameters for the NetworkConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/NetworkConnections_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewNetworkConnectionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "uswest3network", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*NetworkConnectionsClient) GetHealthDetails ¶
func (client *NetworkConnectionsClient) GetHealthDetails(ctx context.Context, resourceGroupName string, networkConnectionName string, options *NetworkConnectionsClientGetHealthDetailsOptions) (NetworkConnectionsClientGetHealthDetailsResponse, error)
GetHealthDetails - Gets health check status details. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. networkConnectionName - Name of the Network Connection that can be applied to a Pool. options - NetworkConnectionsClientGetHealthDetailsOptions contains the optional parameters for the NetworkConnectionsClient.GetHealthDetails method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/NetworkConnections_GetHealthDetails.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewNetworkConnectionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetHealthDetails(ctx, "rg1", "{networkConnectionName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*NetworkConnectionsClient) NewListByResourceGroupPager ¶
func (client *NetworkConnectionsClient) NewListByResourceGroupPager(resourceGroupName string, options *NetworkConnectionsClientListByResourceGroupOptions) *runtime.Pager[NetworkConnectionsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists network connections in a resource group Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - NetworkConnectionsClientListByResourceGroupOptions contains the optional parameters for the NetworkConnectionsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/NetworkConnections_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewNetworkConnectionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", &armdevcenter.NetworkConnectionsClientListByResourceGroupOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*NetworkConnectionsClient) NewListBySubscriptionPager ¶
func (client *NetworkConnectionsClient) NewListBySubscriptionPager(options *NetworkConnectionsClientListBySubscriptionOptions) *runtime.Pager[NetworkConnectionsClientListBySubscriptionResponse]
NewListBySubscriptionPager - Lists network connections in a subscription Generated from API version 2022-10-12-preview options - NetworkConnectionsClientListBySubscriptionOptions contains the optional parameters for the NetworkConnectionsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/NetworkConnections_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewNetworkConnectionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(&armdevcenter.NetworkConnectionsClientListBySubscriptionOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*NetworkConnectionsClient) NewListHealthDetailsPager ¶
func (client *NetworkConnectionsClient) NewListHealthDetailsPager(resourceGroupName string, networkConnectionName string, options *NetworkConnectionsClientListHealthDetailsOptions) *runtime.Pager[NetworkConnectionsClientListHealthDetailsResponse]
NewListHealthDetailsPager - Lists health check status details Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. networkConnectionName - Name of the Network Connection that can be applied to a Pool. options - NetworkConnectionsClientListHealthDetailsOptions contains the optional parameters for the NetworkConnectionsClient.ListHealthDetails method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/NetworkConnections_ListHealthDetails.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewNetworkConnectionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListHealthDetailsPager("rg1", "uswest3network", &armdevcenter.NetworkConnectionsClientListHealthDetailsOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*NetworkConnectionsClient) RunHealthChecks ¶
func (client *NetworkConnectionsClient) RunHealthChecks(ctx context.Context, resourceGroupName string, networkConnectionName string, options *NetworkConnectionsClientRunHealthChecksOptions) (NetworkConnectionsClientRunHealthChecksResponse, error)
RunHealthChecks - Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. networkConnectionName - Name of the Network Connection that can be applied to a Pool. options - NetworkConnectionsClientRunHealthChecksOptions contains the optional parameters for the NetworkConnectionsClient.RunHealthChecks method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/NetworkConnections_RunHealthChecks.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewNetworkConnectionsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.RunHealthChecks(ctx, "rg1", "uswest3network", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
type NetworkConnectionsClientBeginCreateOrUpdateOptions ¶
type NetworkConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
NetworkConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the NetworkConnectionsClient.BeginCreateOrUpdate method.
type NetworkConnectionsClientBeginDeleteOptions ¶
type NetworkConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
NetworkConnectionsClientBeginDeleteOptions contains the optional parameters for the NetworkConnectionsClient.BeginDelete method.
type NetworkConnectionsClientBeginUpdateOptions ¶
type NetworkConnectionsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
NetworkConnectionsClientBeginUpdateOptions contains the optional parameters for the NetworkConnectionsClient.BeginUpdate method.
type NetworkConnectionsClientCreateOrUpdateResponse ¶
type NetworkConnectionsClientCreateOrUpdateResponse struct {
NetworkConnection
}
NetworkConnectionsClientCreateOrUpdateResponse contains the response from method NetworkConnectionsClient.CreateOrUpdate.
type NetworkConnectionsClientDeleteResponse ¶
type NetworkConnectionsClientDeleteResponse struct { }
NetworkConnectionsClientDeleteResponse contains the response from method NetworkConnectionsClient.Delete.
type NetworkConnectionsClientGetHealthDetailsOptions ¶
type NetworkConnectionsClientGetHealthDetailsOptions struct { }
NetworkConnectionsClientGetHealthDetailsOptions contains the optional parameters for the NetworkConnectionsClient.GetHealthDetails method.
type NetworkConnectionsClientGetHealthDetailsResponse ¶
type NetworkConnectionsClientGetHealthDetailsResponse struct {
HealthCheckStatusDetails
}
NetworkConnectionsClientGetHealthDetailsResponse contains the response from method NetworkConnectionsClient.GetHealthDetails.
type NetworkConnectionsClientGetOptions ¶
type NetworkConnectionsClientGetOptions struct { }
NetworkConnectionsClientGetOptions contains the optional parameters for the NetworkConnectionsClient.Get method.
type NetworkConnectionsClientGetResponse ¶
type NetworkConnectionsClientGetResponse struct {
NetworkConnection
}
NetworkConnectionsClientGetResponse contains the response from method NetworkConnectionsClient.Get.
type NetworkConnectionsClientListByResourceGroupOptions ¶
type NetworkConnectionsClientListByResourceGroupOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
NetworkConnectionsClientListByResourceGroupOptions contains the optional parameters for the NetworkConnectionsClient.ListByResourceGroup method.
type NetworkConnectionsClientListByResourceGroupResponse ¶
type NetworkConnectionsClientListByResourceGroupResponse struct {
NetworkConnectionListResult
}
NetworkConnectionsClientListByResourceGroupResponse contains the response from method NetworkConnectionsClient.ListByResourceGroup.
type NetworkConnectionsClientListBySubscriptionOptions ¶
type NetworkConnectionsClientListBySubscriptionOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
NetworkConnectionsClientListBySubscriptionOptions contains the optional parameters for the NetworkConnectionsClient.ListBySubscription method.
type NetworkConnectionsClientListBySubscriptionResponse ¶
type NetworkConnectionsClientListBySubscriptionResponse struct {
NetworkConnectionListResult
}
NetworkConnectionsClientListBySubscriptionResponse contains the response from method NetworkConnectionsClient.ListBySubscription.
type NetworkConnectionsClientListHealthDetailsOptions ¶
type NetworkConnectionsClientListHealthDetailsOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
NetworkConnectionsClientListHealthDetailsOptions contains the optional parameters for the NetworkConnectionsClient.ListHealthDetails method.
type NetworkConnectionsClientListHealthDetailsResponse ¶
type NetworkConnectionsClientListHealthDetailsResponse struct {
HealthCheckStatusDetailsListResult
}
NetworkConnectionsClientListHealthDetailsResponse contains the response from method NetworkConnectionsClient.ListHealthDetails.
type NetworkConnectionsClientRunHealthChecksOptions ¶
type NetworkConnectionsClientRunHealthChecksOptions struct { }
NetworkConnectionsClientRunHealthChecksOptions contains the optional parameters for the NetworkConnectionsClient.RunHealthChecks method.
type NetworkConnectionsClientRunHealthChecksResponse ¶
type NetworkConnectionsClientRunHealthChecksResponse struct { }
NetworkConnectionsClientRunHealthChecksResponse contains the response from method NetworkConnectionsClient.RunHealthChecks.
type NetworkConnectionsClientUpdateResponse ¶
type NetworkConnectionsClientUpdateResponse struct {
NetworkConnection
}
NetworkConnectionsClientUpdateResponse contains the response from method NetworkConnectionsClient.Update.
type NetworkProperties ¶
type NetworkProperties struct { // REQUIRED; AAD Join type. DomainJoinType *DomainJoinType `json:"domainJoinType,omitempty"` // Active Directory domain name DomainName *string `json:"domainName,omitempty"` // The password for the account used to join domain DomainPassword *string `json:"domainPassword,omitempty"` // The username of an Active Directory account (user or service account) that has permissions to create computer objects in // Active Directory. Required format: admin@contoso.com. DomainUsername *string `json:"domainUsername,omitempty"` // The name for resource group where NICs will be placed. NetworkingResourceGroupName *string `json:"networkingResourceGroupName,omitempty"` // Active Directory domain Organization Unit (OU) OrganizationUnit *string `json:"organizationUnit,omitempty"` // The subnet to attach Virtual Machines to SubnetID *string `json:"subnetId,omitempty"` // READ-ONLY; Overall health status of the network connection. Health checks are run on creation, update, and periodically // to validate the network connection. HealthCheckStatus *HealthCheckStatus `json:"healthCheckStatus,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
NetworkProperties - Network properties
func (NetworkProperties) MarshalJSON ¶
func (n NetworkProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkProperties.
func (*NetworkProperties) UnmarshalJSON ¶
func (n *NetworkProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkProperties.
type Operation ¶
type Operation struct { // Localized display information for this particular operation. Display *OperationDisplay `json:"display,omitempty"` // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" Origin *Origin `json:"origin,omitempty" azure:"ro"` }
Operation - Details of a REST API operation, returned from the Resource Provider Operations API
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". Operation *string `json:"operation,omitempty" azure:"ro"` // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". Provider *string `json:"provider,omitempty" azure:"ro"` // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". Resource *string `json:"resource,omitempty" azure:"ro"` }
OperationDisplay - Localized display information for this particular operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of operations supported by the resource provider Value []*Operation `json:"value,omitempty" azure:"ro"` }
OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationStatus ¶
type OperationStatus struct { // REQUIRED; Operation status. Status *string `json:"status,omitempty"` // The end time of the operation. EndTime *time.Time `json:"endTime,omitempty"` // If present, details of the operation error. Error *ErrorDetail `json:"error,omitempty"` // Fully qualified ID for the async operation. ID *string `json:"id,omitempty"` // Name of the async operation. Name *string `json:"name,omitempty"` // The operations list. Operations []*OperationStatusResult `json:"operations,omitempty"` // Percent of the operation that is complete. PercentComplete *float32 `json:"percentComplete,omitempty"` // The start time of the operation. StartTime *time.Time `json:"startTime,omitempty"` // READ-ONLY; Custom operation properties, populated only for a successful operation. Properties interface{} `json:"properties,omitempty" azure:"ro"` // READ-ONLY; The id of the resource. ResourceID *string `json:"resourceId,omitempty" azure:"ro"` }
OperationStatus - The current status of an async operation
func (OperationStatus) MarshalJSON ¶
func (o OperationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationStatus.
func (*OperationStatus) UnmarshalJSON ¶
func (o *OperationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationStatus.
type OperationStatusResult ¶ added in v0.3.0
type OperationStatusResult struct { // REQUIRED; Operation status. Status *string `json:"status,omitempty"` // The end time of the operation. EndTime *time.Time `json:"endTime,omitempty"` // If present, details of the operation error. Error *ErrorDetail `json:"error,omitempty"` // Fully qualified ID for the async operation. ID *string `json:"id,omitempty"` // Name of the async operation. Name *string `json:"name,omitempty"` // The operations list. Operations []*OperationStatusResult `json:"operations,omitempty"` // Percent of the operation that is complete. PercentComplete *float32 `json:"percentComplete,omitempty"` // The start time of the operation. StartTime *time.Time `json:"startTime,omitempty"` }
OperationStatusResult - The current status of an async operation.
func (OperationStatusResult) MarshalJSON ¶ added in v0.3.0
func (o OperationStatusResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationStatusResult.
func (*OperationStatusResult) UnmarshalJSON ¶ added in v0.3.0
func (o *OperationStatusResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationStatusResult.
type OperationStatusesClient ¶
type OperationStatusesClient struct {
// contains filtered or unexported fields
}
OperationStatusesClient contains the methods for the OperationStatuses group. Don't use this type directly, use NewOperationStatusesClient() instead.
func NewOperationStatusesClient ¶
func NewOperationStatusesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationStatusesClient, error)
NewOperationStatusesClient creates a new instance of OperationStatusesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationStatusesClient) Get ¶
func (client *OperationStatusesClient) Get(ctx context.Context, location string, operationID string, options *OperationStatusesClientGetOptions) (OperationStatusesClientGetResponse, error)
Get - Gets the current status of an async operation. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview location - The Azure region operationID - The ID of an ongoing async operation options - OperationStatusesClientGetOptions contains the optional parameters for the OperationStatusesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/OperationStatus_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewOperationStatusesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "{location}", "{operationId}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type OperationStatusesClientGetOptions ¶
type OperationStatusesClientGetOptions struct { }
OperationStatusesClientGetOptions contains the optional parameters for the OperationStatusesClient.Get method.
type OperationStatusesClientGetResponse ¶
type OperationStatusesClientGetResponse struct {
OperationStatus
}
OperationStatusesClientGetResponse contains the response from method OperationStatusesClient.Get.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available resource provider operations. Generated from API version 2022-10-12-preview options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Operations_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type Origin ¶
type Origin string
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type Pool ¶
type Pool struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Pool properties Properties *PoolProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Pool - A pool of Virtual Machines.
func (Pool) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Pool.
func (*Pool) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Pool.
type PoolListResult ¶
type PoolListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*Pool `json:"value,omitempty" azure:"ro"` }
PoolListResult - Results of the machine pool list operation.
func (PoolListResult) MarshalJSON ¶
func (p PoolListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PoolListResult.
func (*PoolListResult) UnmarshalJSON ¶
func (p *PoolListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PoolListResult.
type PoolProperties ¶
type PoolProperties struct { // Name of a Dev Box definition in parent Project of this Pool DevBoxDefinitionName *string `json:"devBoxDefinitionName,omitempty"` // Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. LicenseType *LicenseType `json:"licenseType,omitempty"` // Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. LocalAdministrator *LocalAdminStatus `json:"localAdministrator,omitempty"` // Name of a Network Connection in parent Project of this Pool NetworkConnectionName *string `json:"networkConnectionName,omitempty"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
PoolProperties - Properties of a Pool
func (PoolProperties) MarshalJSON ¶
func (p PoolProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PoolProperties.
func (*PoolProperties) UnmarshalJSON ¶
func (p *PoolProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PoolProperties.
type PoolUpdate ¶
type PoolUpdate struct { // The geo-location where the resource lives Location *string `json:"location,omitempty"` // Properties of a pool to be updated. Properties *PoolUpdateProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
PoolUpdate - The pool properties for partial update. Properties not provided in the update request will not be changed.
func (PoolUpdate) MarshalJSON ¶
func (p PoolUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PoolUpdate.
func (*PoolUpdate) UnmarshalJSON ¶
func (p *PoolUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PoolUpdate.
type PoolUpdateProperties ¶
type PoolUpdateProperties struct { // Name of a Dev Box definition in parent Project of this Pool DevBoxDefinitionName *string `json:"devBoxDefinitionName,omitempty"` // Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. LicenseType *LicenseType `json:"licenseType,omitempty"` // Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. LocalAdministrator *LocalAdminStatus `json:"localAdministrator,omitempty"` // Name of a Network Connection in parent Project of this Pool NetworkConnectionName *string `json:"networkConnectionName,omitempty"` }
PoolUpdateProperties - Properties of a Pool. These properties can be updated after the resource has been created.
func (PoolUpdateProperties) MarshalJSON ¶
func (p PoolUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PoolUpdateProperties.
func (*PoolUpdateProperties) UnmarshalJSON ¶
func (p *PoolUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PoolUpdateProperties.
type PoolsClient ¶
type PoolsClient struct {
// contains filtered or unexported fields
}
PoolsClient contains the methods for the Pools group. Don't use this type directly, use NewPoolsClient() instead.
func NewPoolsClient ¶
func NewPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PoolsClient, error)
NewPoolsClient creates a new instance of PoolsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PoolsClient) BeginCreateOrUpdate ¶
func (client *PoolsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, projectName string, poolName string, body Pool, options *PoolsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PoolsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a machine pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. poolName - Name of the pool. body - Represents a machine pool options - PoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the PoolsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Pools_Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewPoolsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "{projectName}", "{poolName}", armdevcenter.Pool{ Location: to.Ptr("centralus"), Properties: &armdevcenter.PoolProperties{ DevBoxDefinitionName: to.Ptr("WebDevBox"), LicenseType: to.Ptr(armdevcenter.LicenseTypeWindowsClient), LocalAdministrator: to.Ptr(armdevcenter.LocalAdminStatusEnabled), NetworkConnectionName: to.Ptr("Network1-westus2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*PoolsClient) BeginDelete ¶
func (client *PoolsClient) BeginDelete(ctx context.Context, resourceGroupName string, projectName string, poolName string, options *PoolsClientBeginDeleteOptions) (*runtime.Poller[PoolsClientDeleteResponse], error)
BeginDelete - Deletes a machine pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. poolName - Name of the pool. options - PoolsClientBeginDeleteOptions contains the optional parameters for the PoolsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Pools_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewPoolsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "{projectName}", "poolName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*PoolsClient) BeginUpdate ¶
func (client *PoolsClient) BeginUpdate(ctx context.Context, resourceGroupName string, projectName string, poolName string, body PoolUpdate, options *PoolsClientBeginUpdateOptions) (*runtime.Poller[PoolsClientUpdateResponse], error)
BeginUpdate - Partially updates a machine pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. poolName - Name of the pool. body - Represents a machine pool options - PoolsClientBeginUpdateOptions contains the optional parameters for the PoolsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Pools_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewPoolsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "rg1", "{projectName}", "{poolName}", armdevcenter.PoolUpdate{ Properties: &armdevcenter.PoolUpdateProperties{ DevBoxDefinitionName: to.Ptr("WebDevBox2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*PoolsClient) Get ¶
func (client *PoolsClient) Get(ctx context.Context, resourceGroupName string, projectName string, poolName string, options *PoolsClientGetOptions) (PoolsClientGetResponse, error)
Get - Gets a machine pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. poolName - Name of the pool. options - PoolsClientGetOptions contains the optional parameters for the PoolsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Pools_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewPoolsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "{projectName}", "{poolName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PoolsClient) NewListByProjectPager ¶
func (client *PoolsClient) NewListByProjectPager(resourceGroupName string, projectName string, options *PoolsClientListByProjectOptions) *runtime.Pager[PoolsClientListByProjectResponse]
NewListByProjectPager - Lists pools for a project Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. options - PoolsClientListByProjectOptions contains the optional parameters for the PoolsClient.ListByProject method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Pools_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewPoolsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByProjectPager("rg1", "{projectName}", &armdevcenter.PoolsClientListByProjectOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PoolsClientBeginCreateOrUpdateOptions ¶
type PoolsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the PoolsClient.BeginCreateOrUpdate method.
type PoolsClientBeginDeleteOptions ¶
type PoolsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PoolsClientBeginDeleteOptions contains the optional parameters for the PoolsClient.BeginDelete method.
type PoolsClientBeginUpdateOptions ¶
type PoolsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PoolsClientBeginUpdateOptions contains the optional parameters for the PoolsClient.BeginUpdate method.
type PoolsClientCreateOrUpdateResponse ¶
type PoolsClientCreateOrUpdateResponse struct {
Pool
}
PoolsClientCreateOrUpdateResponse contains the response from method PoolsClient.CreateOrUpdate.
type PoolsClientDeleteResponse ¶
type PoolsClientDeleteResponse struct { }
PoolsClientDeleteResponse contains the response from method PoolsClient.Delete.
type PoolsClientGetOptions ¶
type PoolsClientGetOptions struct { }
PoolsClientGetOptions contains the optional parameters for the PoolsClient.Get method.
type PoolsClientGetResponse ¶
type PoolsClientGetResponse struct {
Pool
}
PoolsClientGetResponse contains the response from method PoolsClient.Get.
type PoolsClientListByProjectOptions ¶
type PoolsClientListByProjectOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
PoolsClientListByProjectOptions contains the optional parameters for the PoolsClient.ListByProject method.
type PoolsClientListByProjectResponse ¶
type PoolsClientListByProjectResponse struct {
PoolListResult
}
PoolsClientListByProjectResponse contains the response from method PoolsClient.ListByProject.
type PoolsClientUpdateResponse ¶
type PoolsClientUpdateResponse struct {
Pool
}
PoolsClientUpdateResponse contains the response from method PoolsClient.Update.
type Project ¶
type Project struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Properties of a project. Properties *ProjectProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Project - Represents a project resource.
func (Project) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Project.
func (*Project) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Project.
type ProjectAllowedEnvironmentTypesClient ¶ added in v0.2.0
type ProjectAllowedEnvironmentTypesClient struct {
// contains filtered or unexported fields
}
ProjectAllowedEnvironmentTypesClient contains the methods for the ProjectAllowedEnvironmentTypes group. Don't use this type directly, use NewProjectAllowedEnvironmentTypesClient() instead.
func NewProjectAllowedEnvironmentTypesClient ¶ added in v0.2.0
func NewProjectAllowedEnvironmentTypesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProjectAllowedEnvironmentTypesClient, error)
NewProjectAllowedEnvironmentTypesClient creates a new instance of ProjectAllowedEnvironmentTypesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ProjectAllowedEnvironmentTypesClient) Get ¶ added in v0.2.0
func (client *ProjectAllowedEnvironmentTypesClient) Get(ctx context.Context, resourceGroupName string, projectName string, environmentTypeName string, options *ProjectAllowedEnvironmentTypesClientGetOptions) (ProjectAllowedEnvironmentTypesClientGetResponse, error)
Get - Gets an allowed environment type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. environmentTypeName - The name of the environment type. options - ProjectAllowedEnvironmentTypesClientGetOptions contains the optional parameters for the ProjectAllowedEnvironmentTypesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/ProjectAllowedEnvironmentTypes_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectAllowedEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "Contoso", "{environmentTypeName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProjectAllowedEnvironmentTypesClient) NewListPager ¶ added in v0.2.0
func (client *ProjectAllowedEnvironmentTypesClient) NewListPager(resourceGroupName string, projectName string, options *ProjectAllowedEnvironmentTypesClientListOptions) *runtime.Pager[ProjectAllowedEnvironmentTypesClientListResponse]
NewListPager - Lists allowed environment types for a project. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. options - ProjectAllowedEnvironmentTypesClientListOptions contains the optional parameters for the ProjectAllowedEnvironmentTypesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/ProjectAllowedEnvironmentTypes_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectAllowedEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "Contoso", &armdevcenter.ProjectAllowedEnvironmentTypesClientListOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ProjectAllowedEnvironmentTypesClientGetOptions ¶ added in v0.2.0
type ProjectAllowedEnvironmentTypesClientGetOptions struct { }
ProjectAllowedEnvironmentTypesClientGetOptions contains the optional parameters for the ProjectAllowedEnvironmentTypesClient.Get method.
type ProjectAllowedEnvironmentTypesClientGetResponse ¶ added in v0.2.0
type ProjectAllowedEnvironmentTypesClientGetResponse struct {
AllowedEnvironmentType
}
ProjectAllowedEnvironmentTypesClientGetResponse contains the response from method ProjectAllowedEnvironmentTypesClient.Get.
type ProjectAllowedEnvironmentTypesClientListOptions ¶ added in v0.2.0
type ProjectAllowedEnvironmentTypesClientListOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
ProjectAllowedEnvironmentTypesClientListOptions contains the optional parameters for the ProjectAllowedEnvironmentTypesClient.List method.
type ProjectAllowedEnvironmentTypesClientListResponse ¶ added in v0.2.0
type ProjectAllowedEnvironmentTypesClientListResponse struct {
AllowedEnvironmentTypeListResult
}
ProjectAllowedEnvironmentTypesClientListResponse contains the response from method ProjectAllowedEnvironmentTypesClient.List.
type ProjectEnvironmentType ¶
type ProjectEnvironmentType struct { // Managed identity properties Identity *ManagedServiceIdentity `json:"identity,omitempty"` // The geo-location for the environment type Location *string `json:"location,omitempty"` // Properties of an environment type. Properties *ProjectEnvironmentTypeProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ProjectEnvironmentType - Represents an environment type.
func (ProjectEnvironmentType) MarshalJSON ¶
func (p ProjectEnvironmentType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectEnvironmentType.
func (*ProjectEnvironmentType) UnmarshalJSON ¶
func (p *ProjectEnvironmentType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectEnvironmentType.
type ProjectEnvironmentTypeListResult ¶
type ProjectEnvironmentTypeListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*ProjectEnvironmentType `json:"value,omitempty" azure:"ro"` }
ProjectEnvironmentTypeListResult - Result of the project environment type list operation.
func (ProjectEnvironmentTypeListResult) MarshalJSON ¶
func (p ProjectEnvironmentTypeListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectEnvironmentTypeListResult.
func (*ProjectEnvironmentTypeListResult) UnmarshalJSON ¶
func (p *ProjectEnvironmentTypeListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectEnvironmentTypeListResult.
type ProjectEnvironmentTypeProperties ¶
type ProjectEnvironmentTypeProperties struct { // The role definition assigned to the environment creator on backing resources. CreatorRoleAssignment *ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment `json:"creatorRoleAssignment,omitempty"` // Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this // subscription. DeploymentTargetID *string `json:"deploymentTargetId,omitempty"` // Defines whether this Environment Type can be used in this Project. Status *EnableStatus `json:"status,omitempty"` // Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role // definition IDs. UserRoleAssignments map[string]*UserRoleAssignmentValue `json:"userRoleAssignments,omitempty"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
ProjectEnvironmentTypeProperties - Properties of a project environment type.
func (ProjectEnvironmentTypeProperties) MarshalJSON ¶
func (p ProjectEnvironmentTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectEnvironmentTypeProperties.
func (*ProjectEnvironmentTypeProperties) UnmarshalJSON ¶
func (p *ProjectEnvironmentTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectEnvironmentTypeProperties.
type ProjectEnvironmentTypeUpdate ¶
type ProjectEnvironmentTypeUpdate struct { // Managed identity properties Identity *ManagedServiceIdentity `json:"identity,omitempty"` // Properties to configure an environment type. Properties *ProjectEnvironmentTypeUpdateProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
ProjectEnvironmentTypeUpdate - The project environment type for partial update. Properties not provided in the update request will not be changed.
func (ProjectEnvironmentTypeUpdate) MarshalJSON ¶
func (p ProjectEnvironmentTypeUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectEnvironmentTypeUpdate.
func (*ProjectEnvironmentTypeUpdate) UnmarshalJSON ¶
func (p *ProjectEnvironmentTypeUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectEnvironmentTypeUpdate.
type ProjectEnvironmentTypeUpdateProperties ¶
type ProjectEnvironmentTypeUpdateProperties struct { // The role definition assigned to the environment creator on backing resources. CreatorRoleAssignment *ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment `json:"creatorRoleAssignment,omitempty"` // Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this // subscription. DeploymentTargetID *string `json:"deploymentTargetId,omitempty"` // Defines whether this Environment Type can be used in this Project. Status *EnableStatus `json:"status,omitempty"` // Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role // definition IDs. UserRoleAssignments map[string]*UserRoleAssignmentValue `json:"userRoleAssignments,omitempty"` }
ProjectEnvironmentTypeUpdateProperties - Properties of a project environment type. These properties can be updated after the resource has been created.
func (ProjectEnvironmentTypeUpdateProperties) MarshalJSON ¶
func (p ProjectEnvironmentTypeUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectEnvironmentTypeUpdateProperties.
func (*ProjectEnvironmentTypeUpdateProperties) UnmarshalJSON ¶
func (p *ProjectEnvironmentTypeUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectEnvironmentTypeUpdateProperties.
type ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment ¶
type ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment struct { // A map of roles to assign to the environment creator. Roles map[string]*EnvironmentRole `json:"roles,omitempty"` }
ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment - The role definition assigned to the environment creator on backing resources.
func (ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) MarshalJSON ¶
func (p ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.
func (*ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) UnmarshalJSON ¶
func (p *ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.
type ProjectEnvironmentTypesClient ¶
type ProjectEnvironmentTypesClient struct {
// contains filtered or unexported fields
}
ProjectEnvironmentTypesClient contains the methods for the ProjectEnvironmentTypes group. Don't use this type directly, use NewProjectEnvironmentTypesClient() instead.
func NewProjectEnvironmentTypesClient ¶
func NewProjectEnvironmentTypesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProjectEnvironmentTypesClient, error)
NewProjectEnvironmentTypesClient creates a new instance of ProjectEnvironmentTypesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ProjectEnvironmentTypesClient) CreateOrUpdate ¶
func (client *ProjectEnvironmentTypesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, projectName string, environmentTypeName string, body ProjectEnvironmentType, options *ProjectEnvironmentTypesClientCreateOrUpdateOptions) (ProjectEnvironmentTypesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates a project environment type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. environmentTypeName - The name of the environment type. body - Represents a Project Environment Type. options - ProjectEnvironmentTypesClientCreateOrUpdateOptions contains the optional parameters for the ProjectEnvironmentTypesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/ProjectEnvironmentTypes_Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "rg1", "ContosoProj", "{environmentTypeName}", armdevcenter.ProjectEnvironmentType{ Identity: &armdevcenter.ManagedServiceIdentity{ Type: to.Ptr(armdevcenter.ManagedServiceIdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armdevcenter.UserAssignedIdentity{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {}, }, }, Properties: &armdevcenter.ProjectEnvironmentTypeProperties{ CreatorRoleAssignment: &armdevcenter.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment{ Roles: map[string]*armdevcenter.EnvironmentRole{ "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {}, }, }, DeploymentTargetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000"), Status: to.Ptr(armdevcenter.EnableStatusEnabled), UserRoleAssignments: map[string]*armdevcenter.UserRoleAssignmentValue{ "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { Roles: map[string]*armdevcenter.EnvironmentRole{ "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {}, }, }, }, }, Tags: map[string]*string{ "CostCenter": to.Ptr("RnD"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProjectEnvironmentTypesClient) Delete ¶
func (client *ProjectEnvironmentTypesClient) Delete(ctx context.Context, resourceGroupName string, projectName string, environmentTypeName string, options *ProjectEnvironmentTypesClientDeleteOptions) (ProjectEnvironmentTypesClientDeleteResponse, error)
Delete - Deletes a project environment type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. environmentTypeName - The name of the environment type. options - ProjectEnvironmentTypesClientDeleteOptions contains the optional parameters for the ProjectEnvironmentTypesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/ProjectEnvironmentTypes_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "rg1", "ContosoProj", "{environmentTypeName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ProjectEnvironmentTypesClient) Get ¶
func (client *ProjectEnvironmentTypesClient) Get(ctx context.Context, resourceGroupName string, projectName string, environmentTypeName string, options *ProjectEnvironmentTypesClientGetOptions) (ProjectEnvironmentTypesClientGetResponse, error)
Get - Gets a project environment type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. environmentTypeName - The name of the environment type. options - ProjectEnvironmentTypesClientGetOptions contains the optional parameters for the ProjectEnvironmentTypesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/ProjectEnvironmentTypes_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "ContosoProj", "{environmentTypeName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProjectEnvironmentTypesClient) NewListPager ¶
func (client *ProjectEnvironmentTypesClient) NewListPager(resourceGroupName string, projectName string, options *ProjectEnvironmentTypesClientListOptions) *runtime.Pager[ProjectEnvironmentTypesClientListResponse]
NewListPager - Lists environment types for a project. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. options - ProjectEnvironmentTypesClientListOptions contains the optional parameters for the ProjectEnvironmentTypesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/ProjectEnvironmentTypes_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("rg1", "ContosoProj", &armdevcenter.ProjectEnvironmentTypesClientListOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ProjectEnvironmentTypesClient) Update ¶
func (client *ProjectEnvironmentTypesClient) Update(ctx context.Context, resourceGroupName string, projectName string, environmentTypeName string, body ProjectEnvironmentTypeUpdate, options *ProjectEnvironmentTypesClientUpdateOptions) (ProjectEnvironmentTypesClientUpdateResponse, error)
Update - Partially updates a project environment type. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. environmentTypeName - The name of the environment type. body - Updatable project environment type properties. options - ProjectEnvironmentTypesClientUpdateOptions contains the optional parameters for the ProjectEnvironmentTypesClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/ProjectEnvironmentTypes_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectEnvironmentTypesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "rg1", "ContosoProj", "{environmentTypeName}", armdevcenter.ProjectEnvironmentTypeUpdate{ Identity: &armdevcenter.ManagedServiceIdentity{ Type: to.Ptr(armdevcenter.ManagedServiceIdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armdevcenter.UserAssignedIdentity{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {}, }, }, Properties: &armdevcenter.ProjectEnvironmentTypeUpdateProperties{ DeploymentTargetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000"), Status: to.Ptr(armdevcenter.EnableStatusEnabled), UserRoleAssignments: map[string]*armdevcenter.UserRoleAssignmentValue{ "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { Roles: map[string]*armdevcenter.EnvironmentRole{ "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {}, }, }, }, }, Tags: map[string]*string{ "CostCenter": to.Ptr("RnD"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ProjectEnvironmentTypesClientCreateOrUpdateOptions ¶
type ProjectEnvironmentTypesClientCreateOrUpdateOptions struct { }
ProjectEnvironmentTypesClientCreateOrUpdateOptions contains the optional parameters for the ProjectEnvironmentTypesClient.CreateOrUpdate method.
type ProjectEnvironmentTypesClientCreateOrUpdateResponse ¶
type ProjectEnvironmentTypesClientCreateOrUpdateResponse struct {
ProjectEnvironmentType
}
ProjectEnvironmentTypesClientCreateOrUpdateResponse contains the response from method ProjectEnvironmentTypesClient.CreateOrUpdate.
type ProjectEnvironmentTypesClientDeleteOptions ¶
type ProjectEnvironmentTypesClientDeleteOptions struct { }
ProjectEnvironmentTypesClientDeleteOptions contains the optional parameters for the ProjectEnvironmentTypesClient.Delete method.
type ProjectEnvironmentTypesClientDeleteResponse ¶
type ProjectEnvironmentTypesClientDeleteResponse struct { }
ProjectEnvironmentTypesClientDeleteResponse contains the response from method ProjectEnvironmentTypesClient.Delete.
type ProjectEnvironmentTypesClientGetOptions ¶
type ProjectEnvironmentTypesClientGetOptions struct { }
ProjectEnvironmentTypesClientGetOptions contains the optional parameters for the ProjectEnvironmentTypesClient.Get method.
type ProjectEnvironmentTypesClientGetResponse ¶
type ProjectEnvironmentTypesClientGetResponse struct {
ProjectEnvironmentType
}
ProjectEnvironmentTypesClientGetResponse contains the response from method ProjectEnvironmentTypesClient.Get.
type ProjectEnvironmentTypesClientListOptions ¶
type ProjectEnvironmentTypesClientListOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
ProjectEnvironmentTypesClientListOptions contains the optional parameters for the ProjectEnvironmentTypesClient.List method.
type ProjectEnvironmentTypesClientListResponse ¶
type ProjectEnvironmentTypesClientListResponse struct {
ProjectEnvironmentTypeListResult
}
ProjectEnvironmentTypesClientListResponse contains the response from method ProjectEnvironmentTypesClient.List.
type ProjectEnvironmentTypesClientUpdateOptions ¶
type ProjectEnvironmentTypesClientUpdateOptions struct { }
ProjectEnvironmentTypesClientUpdateOptions contains the optional parameters for the ProjectEnvironmentTypesClient.Update method.
type ProjectEnvironmentTypesClientUpdateResponse ¶
type ProjectEnvironmentTypesClientUpdateResponse struct {
ProjectEnvironmentType
}
ProjectEnvironmentTypesClientUpdateResponse contains the response from method ProjectEnvironmentTypesClient.Update.
type ProjectListResult ¶
type ProjectListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*Project `json:"value,omitempty" azure:"ro"` }
ProjectListResult - Results of the project list operation.
func (ProjectListResult) MarshalJSON ¶
func (p ProjectListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectListResult.
func (*ProjectListResult) UnmarshalJSON ¶
func (p *ProjectListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectListResult.
type ProjectProperties ¶
type ProjectProperties struct { // Description of the project. Description *string `json:"description,omitempty"` // Resource Id of an associated DevCenter DevCenterID *string `json:"devCenterId,omitempty"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
ProjectProperties - Properties of a project.
func (ProjectProperties) MarshalJSON ¶
func (p ProjectProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectProperties.
func (*ProjectProperties) UnmarshalJSON ¶
func (p *ProjectProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectProperties.
type ProjectUpdate ¶
type ProjectUpdate struct { // The geo-location where the resource lives Location *string `json:"location,omitempty"` // Properties of a project to be updated. Properties *ProjectUpdateProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
ProjectUpdate - The project properties for partial update. Properties not provided in the update request will not be changed.
func (ProjectUpdate) MarshalJSON ¶
func (p ProjectUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectUpdate.
func (*ProjectUpdate) UnmarshalJSON ¶
func (p *ProjectUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectUpdate.
type ProjectUpdateProperties ¶
type ProjectUpdateProperties struct { // Description of the project. Description *string `json:"description,omitempty"` // Resource Id of an associated DevCenter DevCenterID *string `json:"devCenterId,omitempty"` }
ProjectUpdateProperties - Properties of a project. These properties can be updated after the resource has been created.
func (ProjectUpdateProperties) MarshalJSON ¶
func (p ProjectUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectUpdateProperties.
func (*ProjectUpdateProperties) UnmarshalJSON ¶
func (p *ProjectUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectUpdateProperties.
type ProjectsClient ¶
type ProjectsClient struct {
// contains filtered or unexported fields
}
ProjectsClient contains the methods for the Projects group. Don't use this type directly, use NewProjectsClient() instead.
func NewProjectsClient ¶
func NewProjectsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProjectsClient, error)
NewProjectsClient creates a new instance of ProjectsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ProjectsClient) BeginCreateOrUpdate ¶
func (client *ProjectsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, projectName string, body Project, options *ProjectsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ProjectsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a project. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. body - Represents a project. options - ProjectsClientBeginCreateOrUpdateOptions contains the optional parameters for the ProjectsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Projects_Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "{projectName}", armdevcenter.Project{ Location: to.Ptr("centralus"), Tags: map[string]*string{ "CostCenter": to.Ptr("R&D"), }, Properties: &armdevcenter.ProjectProperties{ Description: to.Ptr("This is my first project."), DevCenterID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/{devCenterName}"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProjectsClient) BeginDelete ¶
func (client *ProjectsClient) BeginDelete(ctx context.Context, resourceGroupName string, projectName string, options *ProjectsClientBeginDeleteOptions) (*runtime.Poller[ProjectsClientDeleteResponse], error)
BeginDelete - Deletes a project resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. options - ProjectsClientBeginDeleteOptions contains the optional parameters for the ProjectsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Projects_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "{projectName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*ProjectsClient) BeginUpdate ¶
func (client *ProjectsClient) BeginUpdate(ctx context.Context, resourceGroupName string, projectName string, body ProjectUpdate, options *ProjectsClientBeginUpdateOptions) (*runtime.Poller[ProjectsClientUpdateResponse], error)
BeginUpdate - Partially updates a project. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. body - Updatable project properties. options - ProjectsClientBeginUpdateOptions contains the optional parameters for the ProjectsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Projects_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "rg1", "{projectName}", armdevcenter.ProjectUpdate{ Tags: map[string]*string{ "CostCenter": to.Ptr("R&D"), }, Properties: &armdevcenter.ProjectUpdateProperties{ Description: to.Ptr("This is my first project."), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProjectsClient) Get ¶
func (client *ProjectsClient) Get(ctx context.Context, resourceGroupName string, projectName string, options *ProjectsClientGetOptions) (ProjectsClientGetResponse, error)
Get - Gets a specific project. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. options - ProjectsClientGetOptions contains the optional parameters for the ProjectsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Projects_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "{projectName}", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ProjectsClient) NewListByResourceGroupPager ¶
func (client *ProjectsClient) NewListByResourceGroupPager(resourceGroupName string, options *ProjectsClientListByResourceGroupOptions) *runtime.Pager[ProjectsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all projects in the resource group. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - ProjectsClientListByResourceGroupOptions contains the optional parameters for the ProjectsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Projects_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("rg1", &armdevcenter.ProjectsClientListByResourceGroupOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ProjectsClient) NewListBySubscriptionPager ¶
func (client *ProjectsClient) NewListBySubscriptionPager(options *ProjectsClientListBySubscriptionOptions) *runtime.Pager[ProjectsClientListBySubscriptionResponse]
NewListBySubscriptionPager - Lists all projects in the subscription. Generated from API version 2022-10-12-preview options - ProjectsClientListBySubscriptionOptions contains the optional parameters for the ProjectsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Projects_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewProjectsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(&armdevcenter.ProjectsClientListBySubscriptionOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ProjectsClientBeginCreateOrUpdateOptions ¶
type ProjectsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ProjectsClientBeginCreateOrUpdateOptions contains the optional parameters for the ProjectsClient.BeginCreateOrUpdate method.
type ProjectsClientBeginDeleteOptions ¶
type ProjectsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ProjectsClientBeginDeleteOptions contains the optional parameters for the ProjectsClient.BeginDelete method.
type ProjectsClientBeginUpdateOptions ¶
type ProjectsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ProjectsClientBeginUpdateOptions contains the optional parameters for the ProjectsClient.BeginUpdate method.
type ProjectsClientCreateOrUpdateResponse ¶
type ProjectsClientCreateOrUpdateResponse struct {
Project
}
ProjectsClientCreateOrUpdateResponse contains the response from method ProjectsClient.CreateOrUpdate.
type ProjectsClientDeleteResponse ¶
type ProjectsClientDeleteResponse struct { }
ProjectsClientDeleteResponse contains the response from method ProjectsClient.Delete.
type ProjectsClientGetOptions ¶
type ProjectsClientGetOptions struct { }
ProjectsClientGetOptions contains the optional parameters for the ProjectsClient.Get method.
type ProjectsClientGetResponse ¶
type ProjectsClientGetResponse struct {
Project
}
ProjectsClientGetResponse contains the response from method ProjectsClient.Get.
type ProjectsClientListByResourceGroupOptions ¶
type ProjectsClientListByResourceGroupOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
ProjectsClientListByResourceGroupOptions contains the optional parameters for the ProjectsClient.ListByResourceGroup method.
type ProjectsClientListByResourceGroupResponse ¶
type ProjectsClientListByResourceGroupResponse struct {
ProjectListResult
}
ProjectsClientListByResourceGroupResponse contains the response from method ProjectsClient.ListByResourceGroup.
type ProjectsClientListBySubscriptionOptions ¶
type ProjectsClientListBySubscriptionOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
ProjectsClientListBySubscriptionOptions contains the optional parameters for the ProjectsClient.ListBySubscription method.
type ProjectsClientListBySubscriptionResponse ¶
type ProjectsClientListBySubscriptionResponse struct {
ProjectListResult
}
ProjectsClientListBySubscriptionResponse contains the response from method ProjectsClient.ListBySubscription.
type ProjectsClientUpdateResponse ¶
type ProjectsClientUpdateResponse struct {
Project
}
ProjectsClientUpdateResponse contains the response from method ProjectsClient.Update.
type Properties ¶
type Properties struct { // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
Properties of the devcenter.
func (Properties) MarshalJSON ¶
func (p Properties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Properties.
func (*Properties) UnmarshalJSON ¶
func (p *Properties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Properties.
type ProxyResource ¶
type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
func (ProxyResource) MarshalJSON ¶
func (p ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProxyResource.
func (*ProxyResource) UnmarshalJSON ¶
func (p *ProxyResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.
type RecommendedMachineConfiguration ¶
type RecommendedMachineConfiguration struct { // READ-ONLY; Recommended memory range. Memory *ResourceRange `json:"memory,omitempty" azure:"ro"` // READ-ONLY; Recommended vCPU range. VCPUs *ResourceRange `json:"vCPUs,omitempty" azure:"ro"` }
RecommendedMachineConfiguration - Properties for a recommended machine configuration.
func (RecommendedMachineConfiguration) MarshalJSON ¶
func (r RecommendedMachineConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RecommendedMachineConfiguration.
func (*RecommendedMachineConfiguration) UnmarshalJSON ¶
func (r *RecommendedMachineConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RecommendedMachineConfiguration.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type ResourceRange ¶
type ResourceRange struct { // READ-ONLY; Maximum value. Max *int32 `json:"max,omitempty" azure:"ro"` // READ-ONLY; Minimum value. Min *int32 `json:"min,omitempty" azure:"ro"` }
ResourceRange - Properties for a range of values.
func (ResourceRange) MarshalJSON ¶
func (r ResourceRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceRange.
func (*ResourceRange) UnmarshalJSON ¶
func (r *ResourceRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceRange.
type SKU ¶
type SKU struct { // REQUIRED; The name of the SKU. Ex - P3. It is typically a letter+number code Name *string `json:"name,omitempty"` // If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the // resource this may be omitted. Capacity *int32 `json:"capacity,omitempty"` // If the service has different generations of hardware, for the same SKU, then that can be captured here. Family *string `json:"family,omitempty"` // The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Size *string `json:"size,omitempty"` // This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required // on a PUT. Tier *SKUTier `json:"tier,omitempty"` }
SKU - The resource model definition representing SKU
func (SKU) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type SKU.
func (*SKU) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type SKU.
type SKUInfo ¶
type SKUInfo struct { // REQUIRED; The name of the SKU. Ex - P3. It is typically a letter+number code Name *string `json:"name,omitempty"` // If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the // resource this may be omitted. Capacity *int32 `json:"capacity,omitempty"` // If the service has different generations of hardware, for the same SKU, then that can be captured here. Family *string `json:"family,omitempty"` // The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Size *string `json:"size,omitempty"` // This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required // on a PUT. Tier *SKUTier `json:"tier,omitempty"` // READ-ONLY; Collection of name/value pairs to describe the SKU capabilities. Capabilities []*Capability `json:"capabilities,omitempty" azure:"ro"` // READ-ONLY; SKU supported locations. Locations []*string `json:"locations,omitempty" azure:"ro"` // READ-ONLY; The name of the resource type ResourceType *string `json:"resourceType,omitempty" azure:"ro"` }
SKUInfo - The resource model definition representing SKU for DevCenter resources
func (SKUInfo) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type SKUInfo.
func (*SKUInfo) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type SKUInfo.
type SKUListResult ¶
type SKUListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*SKUInfo `json:"value,omitempty" azure:"ro"` }
SKUListResult - Results of the Microsoft.DevCenter SKU list operation.
func (SKUListResult) MarshalJSON ¶
func (s SKUListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SKUListResult.
func (*SKUListResult) UnmarshalJSON ¶
func (s *SKUListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SKUListResult.
type SKUTier ¶
type SKUTier string
SKUTier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
func PossibleSKUTierValues ¶
func PossibleSKUTierValues() []SKUTier
PossibleSKUTierValues returns the possible values for the SKUTier const type.
type SKUsClient ¶
type SKUsClient struct {
// contains filtered or unexported fields
}
SKUsClient contains the methods for the SKUs group. Don't use this type directly, use NewSKUsClient() instead.
func NewSKUsClient ¶
func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUsClient, error)
NewSKUsClient creates a new instance of SKUsClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SKUsClient) NewListBySubscriptionPager ¶
func (client *SKUsClient) NewListBySubscriptionPager(options *SKUsClientListBySubscriptionOptions) *runtime.Pager[SKUsClientListBySubscriptionResponse]
NewListBySubscriptionPager - Lists the Microsoft.DevCenter SKUs available in a subscription Generated from API version 2022-10-12-preview options - SKUsClientListBySubscriptionOptions contains the optional parameters for the SKUsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Skus_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewSKUsClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(&armdevcenter.SKUsClientListBySubscriptionOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SKUsClientListBySubscriptionOptions ¶
type SKUsClientListBySubscriptionOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
SKUsClientListBySubscriptionOptions contains the optional parameters for the SKUsClient.ListBySubscription method.
type SKUsClientListBySubscriptionResponse ¶
type SKUsClientListBySubscriptionResponse struct {
SKUListResult
}
SKUsClientListBySubscriptionResponse contains the response from method SKUsClient.ListBySubscription.
type Schedule ¶
type Schedule struct { // Properties of a Schedule resource Properties *ScheduleProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Schedule - Represents a Schedule to execute a task.
func (Schedule) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Schedule.
func (*Schedule) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Schedule.
type ScheduleListResult ¶
type ScheduleListResult struct { // READ-ONLY; URL to get the next set of results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Current page of results. Value []*Schedule `json:"value,omitempty" azure:"ro"` }
ScheduleListResult - Result of the schedule list operation.
func (ScheduleListResult) MarshalJSON ¶
func (s ScheduleListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ScheduleListResult.
func (*ScheduleListResult) UnmarshalJSON ¶
func (s *ScheduleListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleListResult.
type ScheduleProperties ¶
type ScheduleProperties struct { // The frequency of this scheduled task. Frequency *ScheduledFrequency `json:"frequency,omitempty"` // Indicates whether or not this scheduled task is enabled. State *EnableStatus `json:"state,omitempty"` // The target time to trigger the action. The format is HH:MM. Time *string `json:"time,omitempty"` // The IANA timezone id at which the schedule should execute. TimeZone *string `json:"timeZone,omitempty"` // Supported type this scheduled task represents. Type *ScheduledType `json:"type,omitempty"` // READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
ScheduleProperties - The Schedule properties defining when and what to execute.
func (ScheduleProperties) MarshalJSON ¶
func (s ScheduleProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ScheduleProperties.
func (*ScheduleProperties) UnmarshalJSON ¶
func (s *ScheduleProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleProperties.
type ScheduleUpdate ¶
type ScheduleUpdate struct { // The geo-location where the resource lives Location *string `json:"location,omitempty"` // Properties of a schedule resource to be updated. Properties *ScheduleUpdateProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
ScheduleUpdate - The schedule properties for partial update. Properties not provided in the update request will not be changed.
func (ScheduleUpdate) MarshalJSON ¶
func (s ScheduleUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ScheduleUpdate.
func (*ScheduleUpdate) UnmarshalJSON ¶
func (s *ScheduleUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleUpdate.
type ScheduleUpdateProperties ¶
type ScheduleUpdateProperties struct { // The frequency of this scheduled task. Frequency *ScheduledFrequency `json:"frequency,omitempty"` // Indicates whether or not this scheduled task is enabled. State *EnableStatus `json:"state,omitempty"` // The target time to trigger the action. The format is HH:MM. Time *string `json:"time,omitempty"` // The IANA timezone id at which the schedule should execute. TimeZone *string `json:"timeZone,omitempty"` // Supported type this scheduled task represents. Type *ScheduledType `json:"type,omitempty"` }
ScheduleUpdateProperties - Updatable properties of a Schedule.
func (ScheduleUpdateProperties) MarshalJSON ¶
func (s ScheduleUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ScheduleUpdateProperties.
func (*ScheduleUpdateProperties) UnmarshalJSON ¶
func (s *ScheduleUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleUpdateProperties.
type ScheduledFrequency ¶
type ScheduledFrequency string
ScheduledFrequency - The frequency of task execution.
const (
ScheduledFrequencyDaily ScheduledFrequency = "Daily"
)
func PossibleScheduledFrequencyValues ¶
func PossibleScheduledFrequencyValues() []ScheduledFrequency
PossibleScheduledFrequencyValues returns the possible values for the ScheduledFrequency const type.
type ScheduledType ¶
type ScheduledType string
ScheduledType - The supported types for a scheduled task.
const (
ScheduledTypeStopDevBox ScheduledType = "StopDevBox"
)
func PossibleScheduledTypeValues ¶
func PossibleScheduledTypeValues() []ScheduledType
PossibleScheduledTypeValues returns the possible values for the ScheduledType const type.
type SchedulesClient ¶
type SchedulesClient struct {
// contains filtered or unexported fields
}
SchedulesClient contains the methods for the Schedules group. Don't use this type directly, use NewSchedulesClient() instead.
func NewSchedulesClient ¶
func NewSchedulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SchedulesClient, error)
NewSchedulesClient creates a new instance of SchedulesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SchedulesClient) BeginCreateOrUpdate ¶
func (client *SchedulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, projectName string, poolName string, scheduleName string, body Schedule, options *SchedulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[SchedulesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a Schedule. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. poolName - Name of the pool. scheduleName - The name of the schedule that uniquely identifies it. body - Represents a scheduled task options - SchedulesClientBeginCreateOrUpdateOptions contains the optional parameters for the SchedulesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewSchedulesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "DevProject", "DevPool", "autoShutdown", armdevcenter.Schedule{ Properties: &armdevcenter.ScheduleProperties{ Type: to.Ptr(armdevcenter.ScheduledTypeStopDevBox), Frequency: to.Ptr(armdevcenter.ScheduledFrequencyDaily), State: to.Ptr(armdevcenter.EnableStatusEnabled), Time: to.Ptr("17:30"), TimeZone: to.Ptr("America/Los_Angeles"), }, }, &armdevcenter.SchedulesClientBeginCreateOrUpdateOptions{Top: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*SchedulesClient) BeginDelete ¶
func (client *SchedulesClient) BeginDelete(ctx context.Context, resourceGroupName string, projectName string, poolName string, scheduleName string, options *SchedulesClientBeginDeleteOptions) (*runtime.Poller[SchedulesClientDeleteResponse], error)
BeginDelete - Deletes a Scheduled. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. poolName - Name of the pool. scheduleName - The name of the schedule that uniquely identifies it. options - SchedulesClientBeginDeleteOptions contains the optional parameters for the SchedulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Schedules_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewSchedulesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "rg1", "TestProject", "DevPool", "autoShutdown", &armdevcenter.SchedulesClientBeginDeleteOptions{Top: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*SchedulesClient) BeginUpdate ¶
func (client *SchedulesClient) BeginUpdate(ctx context.Context, resourceGroupName string, projectName string, poolName string, scheduleName string, body ScheduleUpdate, options *SchedulesClientBeginUpdateOptions) (*runtime.Poller[SchedulesClientUpdateResponse], error)
BeginUpdate - Partially updates a Scheduled. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. poolName - Name of the pool. scheduleName - The name of the schedule that uniquely identifies it. body - Represents a scheduled task. options - SchedulesClientBeginUpdateOptions contains the optional parameters for the SchedulesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Schedules_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewSchedulesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "rg1", "TestProject", "DevPool", "autoShutdown", armdevcenter.ScheduleUpdate{ Properties: &armdevcenter.ScheduleUpdateProperties{ Time: to.Ptr("18:00"), }, }, &armdevcenter.SchedulesClientBeginUpdateOptions{Top: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*SchedulesClient) Get ¶
func (client *SchedulesClient) Get(ctx context.Context, resourceGroupName string, projectName string, poolName string, scheduleName string, options *SchedulesClientGetOptions) (SchedulesClientGetResponse, error)
Get - Gets a schedule resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. poolName - Name of the pool. scheduleName - The name of the schedule that uniquely identifies it. options - SchedulesClientGetOptions contains the optional parameters for the SchedulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Schedules_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewSchedulesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "rg1", "TestProject", "DevPool", "autoShutdown", &armdevcenter.SchedulesClientGetOptions{Top: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SchedulesClient) NewListByPoolPager ¶
func (client *SchedulesClient) NewListByPoolPager(resourceGroupName string, projectName string, poolName string, options *SchedulesClientListByPoolOptions) *runtime.Pager[SchedulesClientListByPoolResponse]
NewListByPoolPager - Lists schedules for a pool Generated from API version 2022-10-12-preview resourceGroupName - The name of the resource group. The name is case insensitive. projectName - The name of the project. poolName - Name of the pool. options - SchedulesClientListByPoolOptions contains the optional parameters for the SchedulesClient.ListByPool method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Schedules_ListByPool.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewSchedulesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByPoolPager("rg1", "TestProject", "DevPool", &armdevcenter.SchedulesClientListByPoolOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SchedulesClientBeginCreateOrUpdateOptions ¶
type SchedulesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
SchedulesClientBeginCreateOrUpdateOptions contains the optional parameters for the SchedulesClient.BeginCreateOrUpdate method.
type SchedulesClientBeginDeleteOptions ¶
type SchedulesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
SchedulesClientBeginDeleteOptions contains the optional parameters for the SchedulesClient.BeginDelete method.
type SchedulesClientBeginUpdateOptions ¶
type SchedulesClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
SchedulesClientBeginUpdateOptions contains the optional parameters for the SchedulesClient.BeginUpdate method.
type SchedulesClientCreateOrUpdateResponse ¶
type SchedulesClientCreateOrUpdateResponse struct {
Schedule
}
SchedulesClientCreateOrUpdateResponse contains the response from method SchedulesClient.CreateOrUpdate.
type SchedulesClientDeleteResponse ¶
type SchedulesClientDeleteResponse struct { }
SchedulesClientDeleteResponse contains the response from method SchedulesClient.Delete.
type SchedulesClientGetOptions ¶
type SchedulesClientGetOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
SchedulesClientGetOptions contains the optional parameters for the SchedulesClient.Get method.
type SchedulesClientGetResponse ¶
type SchedulesClientGetResponse struct {
Schedule
}
SchedulesClientGetResponse contains the response from method SchedulesClient.Get.
type SchedulesClientListByPoolOptions ¶
type SchedulesClientListByPoolOptions struct { // The maximum number of resources to return from the operation. Example: '$top=10'. Top *int32 }
SchedulesClientListByPoolOptions contains the optional parameters for the SchedulesClient.ListByPool method.
type SchedulesClientListByPoolResponse ¶
type SchedulesClientListByPoolResponse struct {
ScheduleListResult
}
SchedulesClientListByPoolResponse contains the response from method SchedulesClient.ListByPool.
type SchedulesClientUpdateResponse ¶
type SchedulesClientUpdateResponse struct {
Schedule
}
SchedulesClientUpdateResponse contains the response from method SchedulesClient.Update.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
func (*TrackedResource) UnmarshalJSON ¶
func (t *TrackedResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.
type TrackedResourceUpdate ¶
type TrackedResourceUpdate struct { // The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
TrackedResourceUpdate - Base tracked resource type for PATCH updates
func (TrackedResourceUpdate) MarshalJSON ¶
func (t TrackedResourceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResourceUpdate.
func (*TrackedResourceUpdate) UnmarshalJSON ¶
func (t *TrackedResourceUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResourceUpdate.
type Update ¶
type Update struct { // Managed identity properties Identity *ManagedServiceIdentity `json:"identity,omitempty"` // The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
Update - The devcenter resource for partial updates. Properties not provided in the update request will not be changed.
func (Update) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Update.
func (*Update) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Update.
type Usage ¶
type Usage struct { // The current usage. CurrentValue *int64 `json:"currentValue,omitempty"` // The limit integer. Limit *int64 `json:"limit,omitempty"` // The name. Name *UsageName `json:"name,omitempty"` // The unit details. Unit *UsageUnit `json:"unit,omitempty"` }
Usage - The core usage details.
func (Usage) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Usage.
func (*Usage) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Usage.
type UsageName ¶
type UsageName struct { // The localized name of the resource. LocalizedValue *string `json:"localizedValue,omitempty"` // The name of the resource. Value *string `json:"value,omitempty"` }
UsageName - The Usage Names.
func (UsageName) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type UsageName.
func (*UsageName) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type UsageName.
type UsageUnit ¶
type UsageUnit string
UsageUnit - The unit details.
const (
UsageUnitCount UsageUnit = "Count"
)
func PossibleUsageUnitValues ¶
func PossibleUsageUnitValues() []UsageUnit
PossibleUsageUnitValues returns the possible values for the UsageUnit const type.
type UsagesClient ¶
type UsagesClient struct {
// contains filtered or unexported fields
}
UsagesClient contains the methods for the Usages group. Don't use this type directly, use NewUsagesClient() instead.
func NewUsagesClient ¶
func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsagesClient, error)
NewUsagesClient creates a new instance of UsagesClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*UsagesClient) NewListByLocationPager ¶
func (client *UsagesClient) NewListByLocationPager(location string, options *UsagesClientListByLocationOptions) *runtime.Pager[UsagesClientListByLocationResponse]
NewListByLocationPager - Lists the current usages and limits in this location for the provided subscription. Generated from API version 2022-10-12-preview location - The Azure region options - UsagesClientListByLocationOptions contains the optional parameters for the UsagesClient.ListByLocation method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-10-12-preview/examples/Usages_ListByLocation.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdevcenter.NewUsagesClient("{subscriptionId}", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByLocationPager("westus", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type UsagesClientListByLocationOptions ¶
type UsagesClientListByLocationOptions struct { }
UsagesClientListByLocationOptions contains the optional parameters for the UsagesClient.ListByLocation method.
type UsagesClientListByLocationResponse ¶
type UsagesClientListByLocationResponse struct {
ListUsagesResult
}
UsagesClientListByLocationResponse contains the response from method UsagesClient.ListByLocation.
type UserAssignedIdentity ¶
type UserAssignedIdentity struct { // READ-ONLY; The client ID of the assigned identity. ClientID *string `json:"clientId,omitempty" azure:"ro"` // READ-ONLY; The principal ID of the assigned identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` }
UserAssignedIdentity - User assigned identity properties
func (UserAssignedIdentity) MarshalJSON ¶
func (u UserAssignedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity.
func (*UserAssignedIdentity) UnmarshalJSON ¶
func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity.
type UserRoleAssignmentValue ¶
type UserRoleAssignmentValue struct { // A map of roles to assign to the parent user. Roles map[string]*EnvironmentRole `json:"roles,omitempty"` }
UserRoleAssignmentValue - Mapping of user object ID to role assignments.
func (UserRoleAssignmentValue) MarshalJSON ¶
func (u UserRoleAssignmentValue) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserRoleAssignmentValue.
func (*UserRoleAssignmentValue) UnmarshalJSON ¶
func (u *UserRoleAssignmentValue) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserRoleAssignmentValue.
Source Files ¶
- attachednetworks_client.go
- build.go
- catalogs_client.go
- constants.go
- devboxdefinitions_client.go
- devcenters_client.go
- environmenttypes_client.go
- galleries_client.go
- images_client.go
- imageversions_client.go
- models.go
- models_serde.go
- networkconnections_client.go
- operations_client.go
- operationstatuses_client.go
- pools_client.go
- projectallowedenvironmenttypes_client.go
- projectenvironmenttypes_client.go
- projects_client.go
- response_types.go
- schedules_client.go
- skus_client.go
- time_rfc3339.go
- usages_client.go