Skip to content

Commit 54d775b

Browse files
authored
Release refresh all package 1679898838 (Azure#20473)
* [Release] sdk/resourcemanager/operationalinsights/armoperationalinsights/2.0.0-beta.3 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/apimanagement/armapimanagement/1.1.0 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/redis/armredis/2.2.0 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/security/armsecurity/0.10.0 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/eventgrid/armeventgrid/2.1.0 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/cdn/armcdn/1.1.0 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * update changelog and readme
1 parent 915ebd4 commit 54d775b

File tree

646 files changed

+90838
-37722
lines changed

Some content is hidden

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

646 files changed

+90838
-37722
lines changed

sdk/resourcemanager/apimanagement/armapimanagement/CHANGELOG.md

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

3+
## 1.1.0 (2023-03-27)
4+
### Features Added
5+
6+
- New struct `ClientFactory` which is a client factory used to create any client in this module
7+
8+
39
## 1.0.0 (2022-05-17)
410

511
The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 1.0.0, which contains breaking changes.

sdk/resourcemanager/apimanagement/armapimanagement/README.md

Lines changed: 12 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 API Management 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 API Management 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 := armapimanagement.NewTagClient(<subscription ID>, cred, nil)
41+
clientFactory, err := armapimanagement.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,7 +49,15 @@ options := arm.ClientOptions {
4949
Cloud: cloud.AzureChina,
5050
},
5151
}
52-
client, err := armapimanagement.NewTagClient(<subscription ID>, cred, &options)
52+
clientFactory, err := armapimanagement.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.NewServiceClient()
5361
```
5462

5563
## More sample code

sdk/resourcemanager/apimanagement/armapimanagement/zz_generated_api_client.go renamed to sdk/resourcemanager/apimanagement/armapimanagement/api_client.go

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

sdk/resourcemanager/apimanagement/armapimanagement/api_client_example_test.go

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

sdk/resourcemanager/apimanagement/armapimanagement/zz_generated_apidiagnostic_client.go renamed to sdk/resourcemanager/apimanagement/armapimanagement/apidiagnostic_client.go

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

0 commit comments

Comments
 (0)