Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization/2.0.0 #20401

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,118 +1,98 @@
# Release History

## 2.0.0-beta.1 (2022-05-24)
## 2.0.0 (2023-03-24)
### Breaking Changes

- Type of `ScalingSchedule.RampUpStartTime` has been changed from `*time.Time` to `*Time`
- Type of `ScalingSchedule.RampDownStartTime` has been changed from `*time.Time` to `*Time`
- Type of `ScalingPlanProperties.HostPoolType` has been changed from `*HostPoolType` to `*ScalingHostPoolType`
- Type of `ScalingSchedule.OffPeakStartTime` has been changed from `*time.Time` to `*Time`
- Type of `ScalingSchedule.PeakStartTime` has been changed from `*time.Time` to `*Time`
- Type of `ScalingPlanProperties.HostPoolType` has been changed from `*HostPoolType` to `*ScalingHostPoolType`
- Function `*DesktopsClient.List` has been removed
- Function `*ScalingSchedule.UnmarshalJSON` has been removed
- Function `*OperationsClient.List` has been removed
- Type of `ScalingSchedule.RampDownStartTime` has been changed from `*time.Time` to `*Time`
- Type of `ScalingSchedule.RampUpStartTime` has been changed from `*time.Time` to `*Time`
- Type alias `Operation` has been removed
- Operation `*DesktopsClient.List` has supported pagination, use `*DesktopsClient.NewListPager` instead.
- Operation `*OperationsClient.List` has supported pagination, use `*OperationsClient.NewListPager` instead.
- Struct `MigrationRequestProperties` has been removed
- Field `MigrationRequest` of struct `ApplicationGroupProperties` has been removed
- Field `MigrationRequest` of struct `HostPoolProperties` has been removed
- Field `HostPoolType` of struct `ScalingPlanPatchProperties` has been removed

### Features Added

- New const `PrivateEndpointServiceConnectionStatusRejected`
- New const `HostpoolPublicNetworkAccessEnabledForClientsOnly`
- New const `DayOfWeekMonday`
- New const `CreatedByTypeApplication`
- New const `HostpoolPublicNetworkAccessEnabled`
- New const `PublicNetworkAccessDisabled`
- New const `DayOfWeekSunday`
- New const `DayOfWeekSaturday`
- New const `DayOfWeekFriday`
- New const `ScalingHostPoolTypePooled`
- New const `PrivateEndpointConnectionProvisioningStateDeleting`
- New const `SessionHostComponentUpdateTypeScheduled`
- New const `PrivateEndpointConnectionProvisioningStateSucceeded`
- New const `PrivateEndpointServiceConnectionStatusApproved`
- New const `PrivateEndpointConnectionProvisioningStateCreating`
- New const `PrivateEndpointConnectionProvisioningStateFailed`
- New const `HostpoolPublicNetworkAccessEnabledForSessionHostsOnly`
- New const `DayOfWeekThursday`
- New const `CreatedByTypeKey`
- New const `PrivateEndpointServiceConnectionStatusPending`
- New const `SessionHostComponentUpdateTypeDefault`
- New const `DayOfWeekTuesday`
- New const `HostpoolPublicNetworkAccessDisabled`
- New const `PublicNetworkAccessEnabled`
- New const `CreatedByTypeManagedIdentity`
- New const `DayOfWeekWednesday`
- New const `CreatedByTypeUser`
- New function `PossibleDayOfWeekValues() []DayOfWeek`
- New function `*DesktopsClient.NewListPager(string, string, *DesktopsClientListOptions) *runtime.Pager[DesktopsClientListResponse]`
- New function `PossibleCreatedByTypeValues() []CreatedByType`
- New function `AgentUpdatePatchProperties.MarshalJSON() ([]byte, error)`
- New function `PossiblePublicNetworkAccessValues() []PublicNetworkAccess`
- New function `PossibleScalingHostPoolTypeValues() []ScalingHostPoolType`
- New function `PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus`
- New function `AgentUpdateProperties.MarshalJSON() ([]byte, error)`
- New function `PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState`
- New function `SystemData.MarshalJSON() ([]byte, error)`
- New function `*SystemData.UnmarshalJSON([]byte) error`
- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]`
- New function `PossibleSessionHostComponentUpdateTypeValues() []SessionHostComponentUpdateType`
- New function `PrivateLinkResourceProperties.MarshalJSON() ([]byte, error)`
- New function `PossibleHostpoolPublicNetworkAccessValues() []HostpoolPublicNetworkAccess`
- New struct `ClientFactory` which is a client factory used to create any client in this module
- New enum type `CreatedByType` with values `CreatedByTypeApplication`, `CreatedByTypeKey`, `CreatedByTypeManagedIdentity`, `CreatedByTypeUser`
- New enum type `DayOfWeek` with values `DayOfWeekFriday`, `DayOfWeekMonday`, `DayOfWeekSaturday`, `DayOfWeekSunday`, `DayOfWeekThursday`, `DayOfWeekTuesday`, `DayOfWeekWednesday`
- New enum type `ScalingHostPoolType` with values `ScalingHostPoolTypePooled`
- New enum type `SessionHostComponentUpdateType` with values `SessionHostComponentUpdateTypeDefault`, `SessionHostComponentUpdateTypeScheduled`
- New function `NewScalingPlanPooledSchedulesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ScalingPlanPooledSchedulesClient, error)`
- New function `*ScalingPlanPooledSchedulesClient.Create(context.Context, string, string, string, ScalingPlanPooledSchedule, *ScalingPlanPooledSchedulesClientCreateOptions) (ScalingPlanPooledSchedulesClientCreateResponse, error)`
- New function `*ScalingPlanPooledSchedulesClient.Delete(context.Context, string, string, string, *ScalingPlanPooledSchedulesClientDeleteOptions) (ScalingPlanPooledSchedulesClientDeleteResponse, error)`
- New function `*ScalingPlanPooledSchedulesClient.Get(context.Context, string, string, string, *ScalingPlanPooledSchedulesClientGetOptions) (ScalingPlanPooledSchedulesClientGetResponse, error)`
- New function `*ScalingPlanPooledSchedulesClient.NewListPager(string, string, *ScalingPlanPooledSchedulesClientListOptions) *runtime.Pager[ScalingPlanPooledSchedulesClientListResponse]`
- New function `*ScalingPlanPooledSchedulesClient.Update(context.Context, string, string, string, *ScalingPlanPooledSchedulesClientUpdateOptions) (ScalingPlanPooledSchedulesClientUpdateResponse, error)`
- New struct `AgentUpdatePatchProperties`
- New struct `AgentUpdateProperties`
- New struct `MaintenanceWindowPatchProperties`
- New struct `MaintenanceWindowProperties`
- New struct `PrivateEndpoint`
- New struct `PrivateEndpointConnection`
- New struct `PrivateEndpointConnectionListResultWithSystemData`
- New struct `PrivateEndpointConnectionProperties`
- New struct `PrivateEndpointConnectionWithSystemData`
- New struct `PrivateEndpointConnectionsClientDeleteByHostPoolOptions`
- New struct `PrivateEndpointConnectionsClientDeleteByHostPoolResponse`
- New struct `PrivateEndpointConnectionsClientDeleteByWorkspaceOptions`
- New struct `PrivateEndpointConnectionsClientDeleteByWorkspaceResponse`
- New struct `PrivateEndpointConnectionsClientGetByHostPoolOptions`
- New struct `PrivateEndpointConnectionsClientGetByHostPoolResponse`
- New struct `PrivateEndpointConnectionsClientGetByWorkspaceOptions`
- New struct `PrivateEndpointConnectionsClientGetByWorkspaceResponse`
- New struct `PrivateEndpointConnectionsClientListByHostPoolOptions`
- New struct `PrivateEndpointConnectionsClientListByHostPoolResponse`
- New struct `PrivateEndpointConnectionsClientListByWorkspaceOptions`
- New struct `PrivateEndpointConnectionsClientListByWorkspaceResponse`
- New struct `PrivateEndpointConnectionsClientUpdateByHostPoolOptions`
- New struct `PrivateEndpointConnectionsClientUpdateByHostPoolResponse`
- New struct `PrivateEndpointConnectionsClientUpdateByWorkspaceOptions`
- New struct `PrivateEndpointConnectionsClientUpdateByWorkspaceResponse`
- New struct `PrivateLinkResource`
- New struct `PrivateLinkResourceListResult`
- New struct `PrivateLinkResourceProperties`
- New struct `PrivateLinkResourcesClientListByHostPoolOptions`
- New struct `PrivateLinkResourcesClientListByHostPoolResponse`
- New struct `PrivateLinkResourcesClientListByWorkspaceOptions`
- New struct `PrivateLinkResourcesClientListByWorkspaceResponse`
- New struct `PrivateLinkServiceConnectionState`
- New struct `ScalingPlanPooledSchedule`
- New struct `ScalingPlanPooledScheduleList`
- New struct `ScalingPlanPooledSchedulePatch`
- New struct `ScalingPlanPooledScheduleProperties`
- New struct `SystemData`
- New struct `Time`
- New field `FriendlyName` in struct `SessionHostProperties`
- New field `SystemData` in struct `UserSession`
- New field `PublicNetworkAccess` in struct `HostPoolPatchProperties`
- New field `AgentUpdate` in struct `HostPoolPatchProperties`
- New field `NextLink` in struct `ResourceProviderOperationList`
- New field `SystemData` in struct `SessionHost`
- New field `SystemData` in struct `MSIXPackage`
- New field `PrivateEndpointConnections` in struct `WorkspaceProperties`
- New field `PublicNetworkAccess` in struct `WorkspaceProperties`
- New field `SystemData` in struct `Workspace`
- New field `SystemData` in struct `Application`
- New field `SystemData` in struct `ScalingPlan`
- New field `PublicNetworkAccess` in struct `HostPoolProperties`
- New field `PrivateEndpointConnections` in struct `HostPoolProperties`
- New field `AgentUpdate` in struct `HostPoolProperties`
- New field `PublicNetworkAccess` in struct `WorkspacePatchProperties`
- New field `Force` in struct `SessionHostsClientUpdateOptions`
- New field `FriendlyName` in struct `SessionHostPatchProperties`
- New field `SystemData` in struct `ApplicationGroup`
- New field `InitialSkip` in struct `ApplicationGroupsClientListByResourceGroupOptions`
- New field `IsDescending` in struct `ApplicationGroupsClientListByResourceGroupOptions`
- New field `PageSize` in struct `ApplicationGroupsClientListByResourceGroupOptions`
- New field `InitialSkip` in struct `ApplicationsClientListOptions`
- New field `IsDescending` in struct `ApplicationsClientListOptions`
- New field `PageSize` in struct `ApplicationsClientListOptions`
- New field `SystemData` in struct `Desktop`
- New field `SystemData` in struct `HostPool`
- New field `AgentUpdate` in struct `HostPoolPatchProperties`
- New field `AgentUpdate` in struct `HostPoolProperties`
- New field `InitialSkip` in struct `HostPoolsClientListByResourceGroupOptions`
- New field `IsDescending` in struct `HostPoolsClientListByResourceGroupOptions`
- New field `PageSize` in struct `HostPoolsClientListByResourceGroupOptions`
- New field `InitialSkip` in struct `HostPoolsClientListOptions`
- New field `IsDescending` in struct `HostPoolsClientListOptions`
- New field `PageSize` in struct `HostPoolsClientListOptions`
- New field `SystemData` in struct `MSIXPackage`
- New field `InitialSkip` in struct `MSIXPackagesClientListOptions`
- New field `IsDescending` in struct `MSIXPackagesClientListOptions`
- New field `PageSize` in struct `MSIXPackagesClientListOptions`
- New field `NextLink` in struct `ResourceProviderOperationList`
- New field `SystemData` in struct `ScalingPlan`
- New field `InitialSkip` in struct `ScalingPlansClientListByHostPoolOptions`
- New field `IsDescending` in struct `ScalingPlansClientListByHostPoolOptions`
- New field `PageSize` in struct `ScalingPlansClientListByHostPoolOptions`
- New field `InitialSkip` in struct `ScalingPlansClientListByResourceGroupOptions`
- New field `IsDescending` in struct `ScalingPlansClientListByResourceGroupOptions`
- New field `PageSize` in struct `ScalingPlansClientListByResourceGroupOptions`
- New field `InitialSkip` in struct `ScalingPlansClientListBySubscriptionOptions`
- New field `IsDescending` in struct `ScalingPlansClientListBySubscriptionOptions`
- New field `PageSize` in struct `ScalingPlansClientListBySubscriptionOptions`
- New field `SystemData` in struct `SessionHost`
- New field `FriendlyName` in struct `SessionHostPatchProperties`
- New field `FriendlyName` in struct `SessionHostProperties`
- New field `InitialSkip` in struct `SessionHostsClientListOptions`
- New field `IsDescending` in struct `SessionHostsClientListOptions`
- New field `PageSize` in struct `SessionHostsClientListOptions`
- New field `Force` in struct `SessionHostsClientUpdateOptions`
- New field `InitialSkip` in struct `StartMenuItemsClientListOptions`
- New field `IsDescending` in struct `StartMenuItemsClientListOptions`
- New field `PageSize` in struct `StartMenuItemsClientListOptions`
- New field `SystemData` in struct `UserSession`
- New field `InitialSkip` in struct `UserSessionsClientListByHostPoolOptions`
- New field `IsDescending` in struct `UserSessionsClientListByHostPoolOptions`
- New field `PageSize` in struct `UserSessionsClientListByHostPoolOptions`
- New field `InitialSkip` in struct `UserSessionsClientListOptions`
- New field `IsDescending` in struct `UserSessionsClientListOptions`
- New field `PageSize` in struct `UserSessionsClientListOptions`
- New field `SystemData` in struct `Workspace`
- New field `InitialSkip` in struct `WorkspacesClientListByResourceGroupOptions`
- New field `IsDescending` in struct `WorkspacesClientListByResourceGroupOptions`
- New field `PageSize` in struct `WorkspacesClientListByResourceGroupOptions`


## 1.0.0 (2022-05-18)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity).

## Clients
## Client Factory

Azure Virtual Desktop modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential.
Azure Virtual Desktop modules consists of one or more clients. We provide a client factory which could be used to create any client in this module.

```go
client, err := armdesktopvirtualization.NewWorkspacesClient(<subscription ID>, cred, nil)
clientFactory, err := armdesktopvirtualization.NewClientFactory(<subscription ID>, cred, nil)
```

You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore).
Expand All @@ -49,7 +49,15 @@ options := arm.ClientOptions {
Cloud: cloud.AzureChina,
},
}
client, err := armdesktopvirtualization.NewWorkspacesClient(<subscription ID>, cred, &options)
clientFactory, err := armdesktopvirtualization.NewClientFactory(<subscription ID>, cred, &options)
```

## Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

```go
client := clientFactory.NewWorkspacesClient()
```

## Provide Feedback
Expand Down
Loading