Skip to content

Commit

Permalink
Release refresh all package 1679898838 (#20473)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
Alancere authored Mar 30, 2023
1 parent 915ebd4 commit 54d775b
Show file tree
Hide file tree
Showing 646 changed files with 90,838 additions and 37,722 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.1.0 (2023-03-27)
### Features Added

- New struct `ClientFactory` which is a client factory used to create any client in this module


## 1.0.0 (2022-05-17)

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.
Expand Down
16 changes: 12 additions & 4 deletions sdk/resourcemanager/apimanagement/armapimanagement/README.md
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 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.
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.

```go
client, err := armapimanagement.NewTagClient(<subscription ID>, cred, nil)
clientFactory, err := armapimanagement.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 := armapimanagement.NewTagClient(<subscription ID>, cred, &options)
clientFactory, err := armapimanagement.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.NewServiceClient()
```

## More sample code
Expand Down

Large diffs are not rendered by default.

1,041 changes: 1,041 additions & 0 deletions sdk/resourcemanager/apimanagement/armapimanagement/api_client_example_test.go

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 54d775b

Please sign in to comment.