-
Notifications
You must be signed in to change notification settings - Fork 850
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
azfile: STG 91 code generation (#22134)
- Loading branch information
1 parent
f94bde2
commit d6fa08e
Showing
9 changed files
with
180 additions
and
96 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ go: true | |
clear-output-folder: false | ||
version: "^3.0.0" | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
input-file: "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7dcd41cd28d46eb256bac034760a7e2f0a036238/specification/storage/data-plane/Microsoft.FileStorage/preview/2022-11-02/file.json" | ||
input-file: "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/4bafbf3ab1532e390ad5757433679e9ebb5cbf38/specification/storage/data-plane/Microsoft.FileStorage/preview/2023-08-03/file.json" | ||
credential-scope: "https://storage.azure.com/.default" | ||
output-folder: ../generated | ||
file-prefix: "zz_" | ||
|
@@ -22,6 +22,22 @@ export-clients: true | |
use: "@autorest/[email protected]" | ||
``` | ||
### Updating service version to 2023-11-03 | ||
```yaml | ||
directive: | ||
- from: | ||
- zz_directory_client.go | ||
- zz_file_client.go | ||
- zz_share_client.go | ||
- zz_service_client.go | ||
where: $ | ||
transform: >- | ||
return $. | ||
replaceAll(`[]string{"2023-08-03"}`, `[]string{ServiceVersion}`). | ||
replaceAll(`2023-08-03`, `2023-11-03`); | ||
``` | ||
### Don't include share name, directory, or file name in path - we have direct URIs | ||
``` yaml | ||
|
This file contains 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,9 @@ | ||
//go:build go1.18 | ||
// +build go1.18 | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
package generated | ||
|
||
const ServiceVersion = "2023-11-03" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
36 changes: 18 additions & 18 deletions
36
sdk/storage/azfile/internal/generated/zz_directory_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.