Skip to content

Commit e746aba

Browse files
authored
Release refresh all package 1679885182 (Azure#20472)
* [Release] sdk/resourcemanager/privatedns/armprivatedns/2.0.0 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/sql/armsql/1.0.1-beta.1 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/servicebus/armservicebus/2.0.0-beta.3 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/postgresql/armpostgresql/3.0.0 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/2.0.1 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * [Release] sdk/resourcemanager/eventhub/armeventhub/1.1.0-beta.2 generation from spec commit: 2ac8dec9cbc4ad4db7537de603339f069d482078 * update changelog and readme * fix privatedns * fix privatedns * fix * fix sql version
1 parent ced51d5 commit e746aba

File tree

584 files changed

+89412
-32896
lines changed

Some content is hidden

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

584 files changed

+89412
-32896
lines changed

sdk/resourcemanager/eventhub/armeventhub/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-beta.2 (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.1.0-beta.1 (2022-05-19)
410
### Features Added
511

sdk/resourcemanager/eventhub/armeventhub/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 Event Hubs 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 Event Hubs 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 := armeventhub.NewPrivateEndpointConnectionsClient(<subscription ID>, cred, nil)
41+
clientFactory, err := armeventhub.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 := armeventhub.NewPrivateEndpointConnectionsClient(<subscription ID>, cred, &options)
52+
clientFactory, err := armeventhub.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.NewNamespacesClient()
5361
```
5462

5563
## More sample code

sdk/resourcemanager/eventhub/armeventhub/zz_generated_applicationgroup_client.go renamed to sdk/resourcemanager/eventhub/armeventhub/applicationgroup_client.go

Lines changed: 38 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)