-
Notifications
You must be signed in to change notification settings - Fork 83
importer-data-plane - add first pass Data Plane importing
#5169
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
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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
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,42 @@ | ||
| --- | ||
| name: Verify All Resource Manager Services can be Imported and Generated | ||
| on: | ||
| pull_request: | ||
| types: ['opened', 'synchronize'] | ||
| paths: | ||
| - '.github/workflows/unit-test-end-to-end-data-plane.yaml' | ||
| - 'config/data-plane.hcl' | ||
| - 'tools/generator-go-sdk/**' | ||
| - 'tools/importer-rest-api-specs/**' | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: custom-linux-xl | ||
| steps: | ||
| - name: mount a ramdisk to working dir | ||
| run: | | ||
| sudo mount -t tmpfs -o size=32G tmpfs $GITHUB_WORKSPACE | ||
|
|
||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 | ||
| with: | ||
| go-version-file: ./.go-version | ||
|
|
||
| - name: Install tools | ||
| run: | | ||
| go install golang.org/x/tools/cmd/goimports@latest | ||
|
|
||
| - name: "Build and Run importer-rest-api-specs" | ||
| id: import-data | ||
| run: | | ||
| cd ./tools/importer-rest-api-specs | ||
| make tools | ||
| make build | ||
| make import-data-plane | ||
| # Uncomment after the first data-plane files are present in go-azure-sdk | ||
| # - name: "Run the Go SDK Generator" | ||
| # run: | | ||
| # ./scripts/automation-generate-go-sdk.sh data-plane | ||
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
13 changes: 13 additions & 0 deletions
13
api-definitions/data-plane/AppConfiguration/1.0/ApiVersionDefinition.json
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,13 @@ | ||
| { | ||
| "apiVersion": "1.0", | ||
| "isPreview": false, | ||
| "generate": true, | ||
| "resources": [ | ||
| "KeyValues", | ||
| "Keys", | ||
| "Labels", | ||
| "Locks", | ||
| "Revisions" | ||
| ], | ||
| "source": "Azure/azure-rest-api-specs" | ||
| } |
127 changes: 127 additions & 0 deletions
127
api-definitions/data-plane/AppConfiguration/1.0/KeyValues/Model-KeyValue.json
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,127 @@ | ||
| { | ||
| "name": "KeyValue", | ||
| "fields": [ | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "jsonName": "content_type", | ||
| "name": "ContentType", | ||
| "objectDefinition": { | ||
| "type": "String", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| }, | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "jsonName": "etag", | ||
| "name": "Etag", | ||
| "objectDefinition": { | ||
| "type": "String", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| }, | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "jsonName": "key", | ||
| "name": "Key", | ||
| "objectDefinition": { | ||
| "type": "String", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| }, | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "jsonName": "label", | ||
| "name": "Label", | ||
| "objectDefinition": { | ||
| "type": "String", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| }, | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "dateFormat": "RFC3339", | ||
| "jsonName": "last_modified", | ||
| "name": "LastModified", | ||
| "objectDefinition": { | ||
| "type": "DateTime", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| }, | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "jsonName": "locked", | ||
| "name": "Locked", | ||
| "objectDefinition": { | ||
| "type": "Boolean", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| }, | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "jsonName": "tags", | ||
| "name": "Tags", | ||
| "objectDefinition": { | ||
| "type": "Tags", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| }, | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "jsonName": "value", | ||
| "name": "Value", | ||
| "objectDefinition": { | ||
| "type": "String", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| } | ||
| ], | ||
| "IsParent": false | ||
| } |
42 changes: 42 additions & 0 deletions
42
api-definitions/data-plane/AppConfiguration/1.0/KeyValues/Model-KeyValueListResult.json
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,42 @@ | ||
| { | ||
| "name": "KeyValueListResult", | ||
| "fields": [ | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "jsonName": "items", | ||
| "name": "Items", | ||
| "objectDefinition": { | ||
| "type": "List", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null, | ||
| "nestedItem": { | ||
| "type": "Reference", | ||
| "nullable": false, | ||
| "referenceName": "KeyValue", | ||
| "referenceNameIsCommonType": null | ||
| } | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| }, | ||
| { | ||
| "containsDiscriminatedTypeValue": false, | ||
| "jsonName": "@nextLink", | ||
| "name": "NextLink", | ||
| "objectDefinition": { | ||
| "type": "String", | ||
| "nullable": false, | ||
| "referenceName": null, | ||
| "referenceNameIsCommonType": null | ||
| }, | ||
| "optional": true, | ||
| "readOnly": false, | ||
| "required": false, | ||
| "sensitive": false | ||
| } | ||
| ], | ||
| "IsParent": false | ||
| } |
83 changes: 83 additions & 0 deletions
83
api-definitions/data-plane/AppConfiguration/1.0/KeyValues/Operation-CheckKeyValue.json
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,83 @@ | ||
| { | ||
| "name": "CheckKeyValue", | ||
| "contentType": "application/json; charset=utf-8", | ||
| "description": "", | ||
| "expectedStatusCodes": [ | ||
| 200 | ||
| ], | ||
| "longRunning": false, | ||
| "httpMethod": "HEAD", | ||
| "options": [ | ||
| { | ||
| "type": "Data", | ||
| "headerName": "Accept-Datetime", | ||
| "optional": true, | ||
| "required": false, | ||
| "field": "AcceptDatetime", | ||
| "optionsObjectDefinition": { | ||
| "type": "String", | ||
| "referenceName": null | ||
| } | ||
| }, | ||
| { | ||
| "type": "Data", | ||
| "headerName": "If-Match", | ||
| "optional": true, | ||
| "required": false, | ||
| "field": "IfMatch", | ||
| "optionsObjectDefinition": { | ||
| "type": "String", | ||
| "referenceName": null | ||
| } | ||
| }, | ||
| { | ||
| "type": "Data", | ||
| "headerName": "If-None-Match", | ||
| "optional": true, | ||
| "required": false, | ||
| "field": "IfNoneMatch", | ||
| "optionsObjectDefinition": { | ||
| "type": "String", | ||
| "referenceName": null | ||
| } | ||
| }, | ||
| { | ||
| "type": "Data", | ||
| "optional": true, | ||
| "queryString": "label", | ||
| "required": false, | ||
| "field": "Label", | ||
| "optionsObjectDefinition": { | ||
| "type": "String", | ||
| "referenceName": null | ||
| } | ||
| }, | ||
| { | ||
| "type": "Data", | ||
| "optional": true, | ||
| "queryString": "$Select", | ||
| "required": false, | ||
| "field": "Select", | ||
| "optionsObjectDefinition": { | ||
| "type": "Csv", | ||
| "referenceName": null, | ||
| "nestedItem": { | ||
| "type": "String", | ||
| "referenceName": null | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "type": "Data", | ||
| "headerName": "Sync-Token", | ||
| "optional": true, | ||
| "required": false, | ||
| "field": "SyncToken", | ||
| "optionsObjectDefinition": { | ||
| "type": "String", | ||
| "referenceName": null | ||
| } | ||
| } | ||
| ], | ||
| "resourceIdName": "KvId" | ||
| } |
Oops, something went wrong.
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.