Skip to content

Commit

Permalink
[Release] sdk/resourcemanager/workloads/armworkloads/1.0.0 (#20359)
Browse files Browse the repository at this point in the history
* [Release] sdk/resourcemanager/workloads/armworkloads/1.0.0 generation from spec commit: 1e7b408f3323e7f5424745718fe62c7a043a2337

* client factoru

* fix

* update README

* fix

* update any type

---------

Co-authored-by: ReleaseHelper <ReleaseHelper>
Co-authored-by: Alancere <[email protected]>
  • Loading branch information
azure-sdk and Alancere authored Apr 24, 2023
1 parent ef32ca1 commit 52f5b62
Show file tree
Hide file tree
Showing 27 changed files with 2,376 additions and 1,635 deletions.
11 changes: 11 additions & 0 deletions sdk/resourcemanager/workloads/armworkloads/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Release History

## 1.0.0 (2023-04-28)
### Breaking Changes

- Field `ExactVersion` of struct `ImageReference` has been removed
- Field `SharedGalleryImageID` of struct `ImageReference` has been removed

### Features Added

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


## 0.3.0 (2023-02-24)
### Breaking Changes

Expand Down
19 changes: 14 additions & 5 deletions sdk/resourcemanager/workloads/armworkloads/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,34 @@ 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 Workloads 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 Workloads 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 := armworkloads.NewProviderInstancesClient(<subscription ID>, cred, nil)
clientFactory, err := armworkloads.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).

```go
options := arm.ClientOptions{
options := arm.ClientOptions {
ClientOptions: azcore.ClientOptions {
Cloud: cloud.AzureChina,
},
}
client, err := armworkloads.NewProviderInstancesClient(<subscription ID>, cred, &options)
clientFactory, err := armworkloads.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.NewProviderInstancesClient()
```


## Provide Feedback

If you encounter bugs or have suggestions, please
Expand Down
6 changes: 3 additions & 3 deletions sdk/resourcemanager/workloads/armworkloads/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
``` yaml
azure-arm: true
require:
- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/readme.go.md
- https://github.com/Azure/azure-rest-api-specs/blob/1e7b408f3323e7f5424745718fe62c7a043a2337/specification/workloads/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/1e7b408f3323e7f5424745718fe62c7a043a2337/specification/workloads/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
module-version: 0.3.0
module-version: 1.0.0

```
49 changes: 19 additions & 30 deletions sdk/resourcemanager/workloads/armworkloads/client.go

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

Loading

0 comments on commit 52f5b62

Please sign in to comment.