Skip to content

Commit

Permalink
Release refresh all package 1679984976 (#20488)
Browse files Browse the repository at this point in the history
* [Release] sdk/resourcemanager/devhub/armdevhub/0.3.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/deviceupdate/armdeviceupdate/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/devops/armdevops/0.6.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/devtestlabs/armdevtestlabs/2.0.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/dns/armdns/2.0.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/dnsresolver/armdnsresolver/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/domainservices/armdomainservices/2.0.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/dynatrace/armdynatrace/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* [Release] sdk/resourcemanager/edgeorder/armedgeorder/1.1.0 generation from spec commit: 9d8a951af5d78e24d9d83592107f8d3c2cc417f5

* update changelog and readme
  • Loading branch information
Alancere authored Mar 30, 2023
1 parent 54d775b commit 1dd1711
Show file tree
Hide file tree
Showing 273 changed files with 35,360 additions and 14,385 deletions.
6 changes: 6 additions & 0 deletions sdk/resourcemanager/devhub/armdevhub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.3.0 (2023-03-28)
### Features Added

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


## 0.2.0 (2022-10-13)
### Breaking Changes

Expand Down
18 changes: 13 additions & 5 deletions sdk/resourcemanager/devhub/armdevhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,31 @@ 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 Devhub 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 Devhub 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 := armdevhub.(<subscription ID>, cred, nil)
clientFactory, err := armdevhub.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 := armdevhub.(<subscription ID>, cred, &options)
clientFactory, err := armdevhub.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.NewWorkflowClient()
```

## Provide Feedback
Expand Down
2 changes: 1 addition & 1 deletion sdk/resourcemanager/devhub/armdevhub/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/a5a115b149512b8807eab9d02bfcbd3ac0db3477/specification/developerhub/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/a5a115b149512b8807eab9d02bfcbd3ac0db3477/specification/developerhub/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
module-version: 0.2.0
module-version: 0.3.0

```
54 changes: 54 additions & 0 deletions sdk/resourcemanager/devhub/armdevhub/client_factory.go

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/devhub/armdevhub/constants.go

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

60 changes: 26 additions & 34 deletions sdk/resourcemanager/devhub/armdevhub/developerhubservice_client.go

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 1dd1711

Please sign in to comment.