Skip to content

Commit

Permalink
Release refresh all package 1679885182 (#20472)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
Alancere authored Mar 28, 2023
1 parent ced51d5 commit e746aba
Show file tree
Hide file tree
Showing 584 changed files with 89,412 additions and 32,896 deletions.
6 changes: 6 additions & 0 deletions sdk/resourcemanager/eventhub/armeventhub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.1.0-beta.2 (2023-03-27)
### Features Added

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


## 1.1.0-beta.1 (2022-05-19)
### Features Added

Expand Down
16 changes: 12 additions & 4 deletions sdk/resourcemanager/eventhub/armeventhub/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 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.
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.

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

## More sample code
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e746aba

Please sign in to comment.