forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move swagger from private repo to public repo (Azure#14648)
* Adding Swagger for AzureData on AzureArc * rename folder to AzureArcData * Adding Operations * Revert "Adding Operations". Keeping it the same with old approved swagger This reverts commit 83ff554. * Bump version to 2020-12-08 * Move 2021-06-01-preview to public repo * Fixing SDK generation Co-authored-by: Shuo Li <[email protected]>
- Loading branch information
1 parent
50fcece
commit 815582d
Showing
33 changed files
with
4,186 additions
and
0 deletions.
There are no files selected for viewing
2,223 changes: 2,223 additions & 0 deletions
2,223
...data/resource-manager/Microsoft.AzureArcData/preview/2021-06-01-preview/azurearcdata.json
Large diffs are not rendered by default.
Oops, something went wrong.
137 changes: 137 additions & 0 deletions
137
...rosoft.AzureArcData/preview/2021-06-01-preview/examples/CreateOrUpdateDataController.json
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,137 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"dataControllerName": "testdataController", | ||
"api-version": "2021-06-01-preview", | ||
"dataControllerResource": { | ||
"location": "northeurope", | ||
"tags": { | ||
"mytag": "myval" | ||
}, | ||
"extendedLocation": { | ||
"type": "CustomLocation", | ||
"name": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation" | ||
}, | ||
"properties": { | ||
"onPremiseProperty": { | ||
"id": "12345678-1234-1234-ab12-1a2b3c4d5e6f", | ||
"publicSigningKey": "publicOnPremSigningKey" | ||
}, | ||
"basicLoginInformation": { | ||
"username": "username", | ||
"password": "********" | ||
}, | ||
"logAnalyticsWorkspaceConfig": { | ||
"workspaceId": "00000000-1111-2222-3333-444444444444", | ||
"primaryKey": "********" | ||
}, | ||
"uploadServicePrincipal": { | ||
"clientId": "00000000-1111-2222-3333-444444444444", | ||
"tenantId": "00000000-1111-2222-3333-444444444444", | ||
"authority": "https://login.microsoftonline.com/", | ||
"clientSecret": "********" | ||
}, | ||
"uploadWatermark": { | ||
"metrics": "2020-01-01T17:18:19.1234567Z", | ||
"logs": "2020-01-01T17:18:19.1234567Z", | ||
"usages": "2020-01-01T17:18:19.1234567Z" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"onPremiseProperty": { | ||
"id": "12345678-1234-1234-ab12-1a2b3c4d5e6f", | ||
"publicSigningKey": "publicOnPremSigningKey", | ||
"signingCertificateThumbprint": "Unique thumbprint returned to customer to verify the certificate being uploaded" | ||
}, | ||
"basicLoginInformation": { | ||
"username": "username" | ||
}, | ||
"logAnalyticsWorkspaceConfig": { | ||
"workspaceId": "00000000-1111-2222-3333-444444444444" | ||
}, | ||
"uploadServicePrincipal": { | ||
"clientId": "00000000-1111-2222-3333-444444444444", | ||
"tenantId": "00000000-1111-2222-3333-444444444444", | ||
"authority": "https://login.microsoftonline.com/" | ||
}, | ||
"uploadWatermark": { | ||
"metrics": "2020-01-01T17:18:19.1234567Z", | ||
"logs": "2020-01-01T17:18:19.1234567Z", | ||
"usages": "2020-01-01T17:18:19.1234567Z" | ||
} | ||
}, | ||
"extendedLocation": { | ||
"type": "CustomLocation", | ||
"name": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation" | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"location": "northeurope", | ||
"tags": { | ||
"mytag": "myval" | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/dataControllers/testdataController", | ||
"name": "testdataController", | ||
"type": "Microsoft.AzureArcData/dataControllers" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"onPremiseProperty": { | ||
"id": "12345678-1234-1234-ab12-1a2b3c4d5e6f", | ||
"publicSigningKey": "publicOnPremSigningKey", | ||
"signingCertificateThumbprint": "Unique thumbprint returned to customer to verify the certificate being uploaded" | ||
}, | ||
"basicLoginInformation": { | ||
"username": "username" | ||
}, | ||
"logAnalyticsWorkspaceConfig": { | ||
"workspaceId": "00000000-1111-2222-3333-444444444444" | ||
}, | ||
"uploadServicePrincipal": { | ||
"clientId": "00000000-1111-2222-3333-444444444444", | ||
"tenantId": "00000000-1111-2222-3333-444444444444", | ||
"authority": "https://login.microsoftonline.com/" | ||
}, | ||
"uploadWatermark": { | ||
"metrics": "2020-01-01T17:18:19.1234567Z", | ||
"logs": "2020-01-01T17:18:19.1234567Z", | ||
"usages": "2020-01-01T17:18:19.1234567Z" | ||
} | ||
}, | ||
"extendedLocation": { | ||
"type": "CustomLocation", | ||
"name": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation" | ||
}, | ||
"location": "northeurope", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"tags": { | ||
"mytag": "myval" | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/dataControllers/testdataController", | ||
"name": "testdataController", | ||
"type": "Microsoft.AzureArcData/dataControllers" | ||
} | ||
} | ||
} | ||
} |
172 changes: 172 additions & 0 deletions
172
...soft.AzureArcData/preview/2021-06-01-preview/examples/CreateOrUpdatePostgresInstance.json
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,172 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"postgresInstanceName": "testpostgresInstance", | ||
"api-version": "2021-06-01-preview", | ||
"location": "northeurope", | ||
"tags": { | ||
"mytag": "myval" | ||
}, | ||
"resource": { | ||
"location": "eastus", | ||
"properties": { | ||
"dataControllerId": "dataControllerId", | ||
"admin": "admin", | ||
"basicLoginInformation": { | ||
"username": "username", | ||
"password": "********" | ||
}, | ||
"k8sRaw": { | ||
"apiVersion": "apiVersion", | ||
"kind": "postgresql-12", | ||
"metadata": { | ||
"creationTimestamp": "2020-08-25T14:55:10Z", | ||
"generation": 1, | ||
"name": "pg1", | ||
"namespace": "test", | ||
"resourceVersion": "527780", | ||
"selfLink": "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1", | ||
"uid": "1111aaaa-ffff-ffff-ffff-99999aaaaaaa" | ||
}, | ||
"spec": { | ||
"backups": { | ||
"deltaMinutes": 3, | ||
"fullMinutes": 10, | ||
"tiers": [ | ||
{ | ||
"retention": { | ||
"maximums": [ | ||
"6", | ||
"512MB" | ||
], | ||
"minimums": [ | ||
"3" | ||
] | ||
}, | ||
"storage": { | ||
"volumeSize": "1Gi" | ||
} | ||
} | ||
] | ||
}, | ||
"engine": { | ||
"extensions": [ | ||
{ | ||
"name": "citus" | ||
} | ||
] | ||
}, | ||
"scale": { | ||
"shards": 3 | ||
}, | ||
"scheduling": { | ||
"default": { | ||
"resources": { | ||
"requests": { | ||
"memory": "256Mi" | ||
} | ||
} | ||
} | ||
}, | ||
"service": { | ||
"type": "NodePort" | ||
}, | ||
"storage": { | ||
"data": { | ||
"className": "local-storage", | ||
"size": "5Gi" | ||
}, | ||
"logs": { | ||
"className": "local-storage", | ||
"size": "5Gi" | ||
} | ||
} | ||
}, | ||
"status": { | ||
"externalEndpoint": null, | ||
"readyPods": "4/4", | ||
"state": "Ready" | ||
} | ||
} | ||
}, | ||
"extendedLocation": { | ||
"type": "CustomLocation", | ||
"name": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation" | ||
}, | ||
"sku": { | ||
"name": "default", | ||
"tier": "Hyperscale", | ||
"dev": true | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"basicLoginInformation": { | ||
"username": "username" | ||
} | ||
}, | ||
"location": "northeurope", | ||
"extendedLocation": { | ||
"type": "CustomLocation", | ||
"name": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation" | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"tags": { | ||
"mytag": "myval" | ||
}, | ||
"sku": { | ||
"name": "default", | ||
"tier": "Hyperscale", | ||
"dev": true | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/PostgresInstance/testpostgresInstance", | ||
"name": "testpostgresInstance", | ||
"type": "Microsoft.AzureArcData/PostgresInstance" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"basicLoginInformation": { | ||
"username": "username" | ||
} | ||
}, | ||
"location": "northeurope", | ||
"extendedLocation": { | ||
"type": "CustomLocation", | ||
"name": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation" | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"tags": { | ||
"mytag": "myval" | ||
}, | ||
"sku": { | ||
"name": "default", | ||
"tier": "Hyperscale", | ||
"dev": true | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/PostgresInstance/testpostgresInstance", | ||
"name": "testsqlregistration", | ||
"type": "Microsoft.AzureArcData/PostgresInstance" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.