-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
track2 autorest generated servicebus #15144
Conversation
Alancere
commented
Jul 26, 2021
- The purpose of this PR is explained in this or a referenced issue.
- The PR does not update generated files.
- These files are managed by the codegen framework at Azure/autorest.go.
- Tests are included and/or updated for code changes.
- Updates to CHANGELOG.md are included.
- MIT license headers are included in each file.
"tag": "package-2018-01-preview", | ||
"use": "@autorest/[email protected]", | ||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git", | ||
"autorest_command": "autorest --use=@autorest/[email protected] --version:3.3.2 --go --track2 --go-sdk-folder=/_/azure-sdk-for-go --file-prefix=\"zz_generated_\" --clear-output-folder=false /_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We no longer have the option version
in the autorest command any more
"autorest_command": "autorest --use=@autorest/[email protected] --version:3.3.2 --go --track2 --go-sdk-folder=/_/azure-sdk-for-go --file-prefix=\"zz_generated_\" --clear-output-folder=false /_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", | |
"autorest_command": "autorest --use=@autorest/[email protected] --go --track2 --go-sdk-folder=/_/azure-sdk-for-go --file-prefix=\"zz_generated_\" --clear-output-folder=false /_/azure-rest-api-specs/specification/servicebus/resource-manager/readme.md", |
|
||
package armservicebus | ||
|
||
const telemetryInfo = "azsdk-go-armservicebus/<version>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After every generation we need to manually change the version number here
const telemetryInfo = "azsdk-go-armservicebus/<version>" | |
const telemetryInfo = "azsdk-go-armservicebus/v0.1.0" |
@@ -0,0 +1,76 @@ | |||
# Azure Container Registry Module for Go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the module name correspondingly
# Azure Container Registry Module for Go | |
# Azure Service Bus Module for Go |
|
||
[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/servicebus/armservicebus)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/servicebus/armservicebus) | ||
|
||
The `armservicebus` module provides operations for working with Azure Container Registry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The `armservicebus` module provides operations for working with Azure Container Registry. | |
The `armservicebus` module provides operations for working with Azure Service Bus. |
|
||
This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management. | ||
|
||
Install the Azure Container Registry module: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Install the Azure Container Registry module: | |
Install the Azure Service Bus module: |
|
||
## Authorization | ||
|
||
When creating a client, you will need to provide a credential for authenticating with Azure Container Registry. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When creating a client, you will need to provide a credential for authenticating with Azure Container Registry. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. | |
When creating a client, you will need to provide a credential for authenticating with Azure Service Bus. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. |
|
||
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). | ||
|
||
## Connecting to Azure servicebus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Connecting to Azure servicebus | |
## Connecting to Azure Service Bus |
|
||
## Clients | ||
|
||
Azure Container Registry 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 `armcore.Connection`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Azure Container Registry 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 `armcore.Connection`. | |
Azure Service Bus 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 `armcore.Connection`. |
Azure Container Registry 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 `armcore.Connection`. | ||
|
||
```go | ||
client := armservicebus.NewRegistriesClient(con, "<subscription ID>") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please confirm we have a function NewRegistriesClient
in this package. If not, please randomly choose one NewXXXClient
function in this module and put it here.
## Provide Feedback | ||
|
||
If you encounter bugs or have suggestions, please | ||
[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `servicebus` label. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `servicebus` label. | |
[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `Service Bus` label. |
This repository is protected by Check Enforcer. The check-enforcer check-run will not pass until there is at least one more check-run successfully passing. Check Enforcer supports the following comment commands:
|