Skip to content

Commit

Permalink
Release refresh all package 1679987491 (#20490)
Browse files Browse the repository at this point in the history
* [Release] sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/hdinsight/armhdinsight/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/healthbot/armhealthbot/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/healthcareapis/armhealthcareapis/1.1.0-beta.2 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/hybridcompute/armhybridcompute/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/hybridconnectivity/armhybridconnectivity/0.6.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/hybriddatamanager/armhybriddatamanager/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/hybridkubernetes/armhybridkubernetes/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/hybridnetwork/armhybridnetwork/2.0.0-beta.2 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* update changelog and readme
  • Loading branch information
Alancere authored Mar 30, 2023
1 parent fa4e866 commit 7ea57e9
Show file tree
Hide file tree
Showing 277 changed files with 37,186 additions and 12,945 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

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

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


## 1.0.0 (2022-05-18)

The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules` 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
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 Dedicated HSM 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 Dedicated HSM 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 := armhardwaresecuritymodules.NewDedicatedHsmClient(<subscription ID>, cred, nil)
clientFactory, err := armhardwaresecuritymodules.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 := armhardwaresecuritymodules.NewDedicatedHsmClient(<subscription ID>, cred, &options)
clientFactory, err := armhardwaresecuritymodules.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.NewDedicatedHsmClient()
```

## Provide Feedback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ require:
- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hardwaresecuritymodules/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hardwaresecuritymodules/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
module-version: 1.0.0
module-version: 1.1.0

```

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

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

Loading

0 comments on commit 7ea57e9

Please sign in to comment.