Skip to content

Commit

Permalink
Release refresh all package 1680078104 (#20509)
Browse files Browse the repository at this point in the history
* [Release] sdk/resourcemanager/workloadmonitor/armworkloadmonitor/0.6.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/saas/armsaas/1.0.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/servicenetworking/armservicenetworking/0.2.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/support/armsupport/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* reset workloadmonitor

* update changelog and readme
  • Loading branch information
Alancere authored Mar 31, 2023
1 parent e800948 commit d967e0f
Show file tree
Hide file tree
Showing 75 changed files with 7,073 additions and 2,265 deletions.
6 changes: 6 additions & 0 deletions sdk/resourcemanager/saas/armsaas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

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

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


## 0.5.0 (2022-05-17)

The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/saas/armsaas` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 0.5.0, which contains breaking changes.
Expand Down
16 changes: 12 additions & 4 deletions sdk/resourcemanager/saas/armsaas/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 SaaS 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 SaaS 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 := armsaas.NewApplicationsClient(<subscription ID>, cred, nil)
clientFactory, err := armsaas.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 := armsaas.NewApplicationsClient(<subscription ID>, cred, &options)
clientFactory, err := armsaas.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.NewClient()
```

## Provide Feedback
Expand Down

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.

2 changes: 1 addition & 1 deletion sdk/resourcemanager/saas/armsaas/autorest.md
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/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/saas/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/saas/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
module-version: 0.5.0
module-version: 0.6.0

```
Loading

0 comments on commit d967e0f

Please sign in to comment.