Skip to content

Commit d4dafa3

Browse files
azure-sdktadeleshAlancere
authored
[Release] sdk/resourcemanager/netapp/armnetapp/4.0.0 (Azure#20361)
* [Release] sdk/resourcemanager/netapp/armnetapp/4.0.0 generation from spec commit: 1e7b408f3323e7f5424745718fe62c7a043a2337 * Update CHANGELOG.md * client factory * fix README * fix * fix * fix --------- Co-authored-by: ReleaseHelper <ReleaseHelper> Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn> Co-authored-by: Alancere <804873052@qq.com>
1 parent 06544c6 commit d4dafa3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4869
-2067
lines changed

sdk/resourcemanager/netapp/armnetapp/CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Release History
22

3+
## 4.0.0 (2023-03-24)
4+
### Breaking Changes
5+
6+
- Type of `Account.Identity` has been changed from `*Identity` to `*ManagedServiceIdentity`
7+
- Type alias `IdentityType` has been removed
8+
- Function `NewVaultsClient` has been removed
9+
- Function `*VaultsClient.NewListPager` has been removed
10+
- Struct `Identity` has been removed
11+
- Struct `Vault` has been removed
12+
- Struct `VaultList` has been removed
13+
- Struct `VaultProperties` has been removed
14+
- Struct `VaultsClient` has been removed
15+
- Field `VaultID` of struct `VolumeBackupProperties` has been removed
16+
17+
### Features Added
18+
19+
- New struct `ClientFactory` which is a client factory used to create any client in this module
20+
- New enum type `FileAccessLogs` with values `FileAccessLogsDisabled`, `FileAccessLogsEnabled`
21+
- New enum type `ManagedServiceIdentityType` with values `ManagedServiceIdentityTypeNone`, `ManagedServiceIdentityTypeSystemAssigned`, `ManagedServiceIdentityTypeSystemAssignedUserAssigned`, `ManagedServiceIdentityTypeUserAssigned`
22+
- New function `*BackupsClient.BeginRestoreFiles(context.Context, string, string, string, string, string, BackupRestoreFiles, *BackupsClientBeginRestoreFilesOptions) (*runtime.Poller[BackupsClientRestoreFilesResponse], error)`
23+
- New function `*VolumesClient.BeginBreakFileLocks(context.Context, string, string, string, string, *VolumesClientBeginBreakFileLocksOptions) (*runtime.Poller[VolumesClientBreakFileLocksResponse], error)`
24+
- New struct `BackupRestoreFiles`
25+
- New struct `BreakFileLocksRequest`
26+
- New struct `ManagedServiceIdentity`
27+
- New struct `VolumeRelocationProperties`
28+
- New field `PreferredServersForLdapClient` in struct `ActiveDirectory`
29+
- New field `SystemData` in struct `Backup`
30+
- New field `SystemData` in struct `Snapshot`
31+
- New field `DataStoreResourceID` in struct `VolumeProperties`
32+
- New field `FileAccessLogs` in struct `VolumeProperties`
33+
- New field `IsLargeVolume` in struct `VolumeProperties`
34+
- New field `ProvisionedAvailabilityZone` in struct `VolumeProperties`
35+
- New field `VolumeRelocation` in struct `VolumePropertiesDataProtection`
36+
- New field `Tags` in struct `VolumeQuotaRulePatch`
37+
38+
339
## 3.0.0 (2022-09-16)
440
### Breaking Changes
541

sdk/resourcemanager/netapp/armnetapp/README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ cred, err := azidentity.NewDefaultAzureCredential(nil)
3333

3434
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).
3535

36-
## Clients
36+
## Client Factory
3737

38-
Azure NetApp Files 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.
38+
Azure NetApp Files module consists of one or more clients. We provide a client factory which could be used to create any client in this module.
3939

4040
```go
41-
client, err := armnetapp.NewBackupsClient(<subscription ID>, cred, nil)
41+
clientFactory, err := armnetapp.NewClientFactory(<subscription ID>, cred, nil)
4242
```
4343

4444
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).
@@ -49,9 +49,18 @@ options := arm.ClientOptions {
4949
Cloud: cloud.AzureChina,
5050
},
5151
}
52-
client, err := armnetapp.NewBackupsClient(<subscription ID>, cred, &options)
52+
clientFactory, err := armnetapp.NewClientFactory(<subscription ID>, cred, &options)
53+
```
54+
55+
## Clients
56+
57+
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.
58+
59+
```go
60+
client := clientFactory.NewBackupsClient()
5361
```
5462

63+
5564
## Major Version Upgrade
5665

5766
Go uses [semantic import versioning](https://github.com/golang/go/wiki/Modules#semantic-import-versioning) to ensure a good backward compatibility for modules. For Azure Go management SDK, we usually upgrade module version according to cooresponding service's API version. Regarding it could be a complicated experience for major version upgrade, we will try our best to keep the SDK API stable and release new version in backward compatible way. However, if any unavoidable breaking changes and a new major version releases for SDK modules, you could use these commands under your module folder to upgrade:

sdk/resourcemanager/netapp/armnetapp/accountbackups_client.go

Lines changed: 37 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)