-
Notifications
You must be signed in to change notification settings - Fork 945
[aznamespaces] Moving to new folder site, updating readme and autorest #22441
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
Merged
richardpark-msft
merged 9 commits into
Azure:main
from
richardpark-msft:eg-aznamespaces
Feb 28, 2024
Merged
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3fa1d3a
starting the module
8fdd789
Starting migration of the newer EventGrid client into it's own module.
d25ee6b
- Update version of autorest used
2f75056
We were still referencing the old eventgrid package! Everything's bee…
1726748
Remove eng/, it's only for certain packages.
a95ea62
Bringing back the old azeventgrid module contents. It's temporary, bu…
887da25
Applying Charles' suggested changes.
richardpark-msft fec144f
Shuld use 1.18 as our base version, not 1.20.
19535df
Merge branch 'eg-aznamespaces' of github.com:richardpark-msft/azure-s…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # Release History | ||
|
|
||
| ## 0.4.1 (Unreleased) | ||
|
|
||
| ### Features Added | ||
|
|
||
| ### Breaking Changes | ||
|
|
||
| - This module has been moved from it's previous location in `azeventgrid` to this location (`github.com/Azure/azure-sdk-for-go/sdk/messaging/eventgrid/aznamespaces`). | ||
|
|
||
| ### Bugs Fixed | ||
|
|
||
| ### Other Changes | ||
|
|
||
| ## 0.4.0 (2023-11-27) | ||
|
|
||
| ### Features Added | ||
|
|
||
| - New functionality for Event Grid namespaces: | ||
| - Client.PublishCloudEvent can be used to publish a single `messaging.CloudEvent`. | ||
| - Client.RenewCloudEventLocks can extend the lock time for a set of events. | ||
| - Client.ReleaseCloudEvents (via ReleaseCloudEventsOptions.ReleaseDelayInSeconds) can release an event with a | ||
| server-side delay, allowing the message to remain unavailable for a configured period of time. | ||
|
|
||
| ### Breaking Changes | ||
|
|
||
| - FailedLockToken, included in the response for settlement functions, has an `Error` field, which contains the data previously | ||
| in `ErrorDescription` and `ErrorCode`. | ||
| - Settlement functions (AcknowledgeCloudEvents, ReleaseCloudEvents, RejectCloudEvents) take lock tokens as a parameter. | ||
|
|
||
| ## 0.3.0 (2023-10-17) | ||
|
|
||
| ### Breaking Changes | ||
|
|
||
| - Client constructors that take a `key string` parameter for a credential now require an `*azcore.KeyCredential` or `*azcore.SASCredential`. | ||
|
|
||
| ## 0.2.0 (2023-09-12) | ||
|
|
||
| ### Features Added | ||
|
|
||
| - The publisher client for Event Grid topics has been added as a sub-package under `publisher`. | ||
|
|
||
| ### Other Changes | ||
|
|
||
| - Documentation and examples added for Event Grid namespace client. | ||
|
|
||
| ## 0.1.0 (2023-07-11) | ||
|
|
||
| ### Features Added | ||
|
|
||
| - Initial preview for the Event Grid package for Event Grid Namespaces | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) Microsoft Corporation. | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,12 +9,12 @@ go: true | |
| input-file: | ||
| - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/2264262e0c7575a794cc395609d2342c7e598149/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/EventGrid.json | ||
| license-header: MICROSOFT_MIT_NO_VERSION | ||
| module: github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventgrid | ||
| module: github.com/Azure/azure-sdk-for-go/sdk/messaging/eventgrid/aznamespaces | ||
| openapi-type: "data-plane" | ||
| output-folder: ../azeventgrid | ||
| output-folder: ../aznamespaces | ||
| override-client-name: Client | ||
| security: "AADToken" | ||
| use: "@autorest/[email protected].52" | ||
| use: "@autorest/[email protected].63" | ||
| version: "^3.0.0" | ||
| slice-elements-byval: true | ||
| remove-non-reference-schema: true | ||
|
|
@@ -82,7 +82,7 @@ Trim out the 'Interface any' for types that are empty. | |
|
|
||
| ```yaml | ||
| directive: | ||
| - from: response_types.go | ||
| - from: responses.go | ||
| where: $ | ||
| transform: $.replace(/\s+\/\/ Anything\s+Interface any/sg, "$1"); | ||
| ``` | ||
|
|
@@ -113,7 +113,7 @@ directive: | |
| - from: | ||
| - client.go | ||
| - models.go | ||
| - response_types.go | ||
| - responses.go | ||
| - options.go | ||
| where: $ | ||
| transform: | | ||
|
|
@@ -131,7 +131,7 @@ directive: | |
| - from: | ||
| - client.go | ||
| - models.go | ||
| - response_types.go | ||
| - responses.go | ||
| - options.go | ||
| where: $ | ||
| transform: return $.replace(/Client(\w+)((?:Options|Response))/g, "$1$2"); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,4 @@ | |
| //go:generate autorest ./autorest.md | ||
| //go:generate goimports -w . | ||
|
|
||
| package azeventgrid | ||
| package aznamespaces | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. | ||
| trigger: | ||
| branches: | ||
| include: | ||
| - main | ||
| - feature/* | ||
| - hotfix/* | ||
| - release/* | ||
| paths: | ||
| include: | ||
| - sdk/messaging/eventgrid/aznamespaces | ||
| - eng/ | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - main | ||
| - feature/* | ||
| - hotfix/* | ||
| - release/* | ||
| paths: | ||
| include: | ||
| - sdk/messaging/eventgrid/aznamespaces | ||
|
|
||
| stages: | ||
| - template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| ServiceDirectory: "messaging/eventgrid/aznamespaces" | ||
| RunLiveTests: true | ||
| UsePipelineProxy: false | ||
| Location: westus2 | ||
| EnvVars: | ||
| AZURE_CLIENT_ID: $(AZNAMESPACES_CLIENT_ID) | ||
| AZURE_TENANT_ID: $(AZNAMESPACES_TENANT_ID) | ||
| AZURE_CLIENT_SECRET: $(AZNAMESPACES_CLIENT_SECRET) | ||
| AZURE_SUBSCRIPTION_ID: $(AZNAMESPACES_SUBSCRIPTION_ID) |
4 changes: 2 additions & 2 deletions
4
sdk/messaging/azeventgrid/client.go → ...essaging/eventgrid/aznamespaces/client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.