-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Update workspace/gateway APIs with new fields #31738
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
Changes from 1 commit
52c6159
4c40981
73abb84
6c58864
4b2a901
cc9cc0f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9232,13 +9232,71 @@ | |
| "description": { | ||
| "type": "string", | ||
| "description": "Description of the workspace." | ||
| }, | ||
| "kind": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The kind of Gateway.", | ||
|
halspang marked this conversation as resolved.
Outdated
|
||
| "enum": [ | ||
| "KubernetesManaged", | ||
| "Default" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "GatewayKind", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Samir Solanki (@solankisamir) Should we rename this to WorkspaceKind given this is on workspace resource, or should we keep calling it GatewayKind to keep enums aligned in generated code? I'm inclined to say - Should be renamed to
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed to |
||
| "modelAsString": true, | ||
| "values": [ | ||
| { | ||
| "value": "KubernetesManaged", | ||
| "description": "Gateway managed by Kubernetes resources." | ||
|
halspang marked this conversation as resolved.
Outdated
|
||
| }, | ||
| { | ||
| "value": "Default", | ||
| "description": "Default kind of gateway." | ||
|
halspang marked this conversation as resolved.
Outdated
|
||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "provisioningState": { | ||
|
halspang marked this conversation as resolved.
Outdated
|
||
| "type": "string", | ||
| "description": "Provisioning state.", | ||
| "enum": [ | ||
| "Created", | ||
| "Succeeded" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "ProvisioningState", | ||
| "modelAsString": false | ||
| } | ||
| }, | ||
| "configurationApi": { | ||
|
halspang marked this conversation as resolved.
|
||
| "type": "object", | ||
| "properties": { | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/ConfigurationApiProperties", | ||
| "description": "Configuration API properties." | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "displayName" | ||
| ], | ||
| "description": "Workspace entity properties." | ||
| }, | ||
| "ConfigurationApiProperties": { | ||
| "type": "object", | ||
| "properties": { | ||
| "hostname": { | ||
| "type": "string", | ||
| "description": "Hostname of the configuration API." | ||
| } | ||
| }, | ||
| "required": [ | ||
| "hostname" | ||
| ], | ||
| "description": "Configuration API properties." | ||
| }, | ||
| "ProductApiLinkCollection": { | ||
| "type": "object", | ||
| "properties": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| { | ||
| "parameters": { | ||
| "serviceName": "apimService1", | ||
| "resourceGroupName": "rg1", | ||
| "api-version": "2024-10-01-preview", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "workspaceId": "wks1", | ||
| "kind": "KubernetesManaged", | ||
|
halspang marked this conversation as resolved.
Outdated
|
||
| "parameters": { | ||
| "properties": { | ||
| "displayName": "my workspace", | ||
| "description": "workspace 1" | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "201": { | ||
| "body": { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1", | ||
| "type": "Microsoft.ApiManagement/service/workspaces", | ||
| "name": "wks1", | ||
| "kind": "KubernetesManaged", | ||
| "properties": { | ||
| "provisioningState": "Created", | ||
|
halspang marked this conversation as resolved.
Outdated
|
||
| "description": "workspace 1", | ||
| "displayName": "my workspace", | ||
| "configurationApi": { | ||
| "hostname": "example.eastus.configuration.gateway.azure-api.net" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1", | ||
| "type": "Microsoft.ApiManagement/service/workspaces", | ||
| "name": "wks1", | ||
| "kind": "KubernetesManaged", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
|
halspang marked this conversation as resolved.
Outdated
|
||
| "description": "workspace 1", | ||
| "displayName": "my workspace", | ||
| "configurationApi": { | ||
| "hostname": "example.eastus.configuration.gateway.azure-api.net" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,105 @@ | ||||
| { | ||||
| "parameters": { | ||||
| "gatewayName": "apimGateway1", | ||||
| "resourceGroupName": "rg1", | ||||
| "api-version": "2024-10-01-preview", | ||||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||||
| "parameters": { | ||||
| "properties": { | ||||
| "backend": { | ||||
| "subnet": { | ||||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1" | ||||
| } | ||||
| }, | ||||
| "virtualNetworkType": "External" | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't support external VNET so let's remove this.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still see it though
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
| }, | ||||
| "sku": { | ||||
| "name": "WorkspaceGatewayPremium", | ||||
| "capacity": 1 | ||||
| }, | ||||
| "location": "South Central US", | ||||
| "tags": { | ||||
| "Name": "Contoso", | ||||
| "Test": "User" | ||||
| }, | ||||
| "kind": "KubernetesManaged" | ||||
| } | ||||
| }, | ||||
| "responses": { | ||||
| "201": { | ||||
| "headers": { | ||||
| "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-10-01-preview&asyncResponse", | ||||
| "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-10-01-preview&asyncResponse" | ||||
| }, | ||||
| "body": { | ||||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1", | ||||
| "name": "apimGateway1", | ||||
| "type": "Microsoft.ApiManagement/gateway", | ||||
|
halspang marked this conversation as resolved.
|
||||
| "tags": { | ||||
| "api-version": "2024-10-01-preview" | ||||
| }, | ||||
| "location": "East US", | ||||
| "etag": "AAAAAAAmRAM=", | ||||
| "properties": { | ||||
| "provisioningState": "Created", | ||||
| "targetProvisioningState": "Activating", | ||||
| "createdAtUtc": "2022-07-11T18:41:01.2506031Z", | ||||
| "backend": { | ||||
| "subnet": { | ||||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1" | ||||
| } | ||||
| }, | ||||
| "virtualNetworkType": "External" | ||||
|
halspang marked this conversation as resolved.
Outdated
|
||||
| }, | ||||
| "sku": { | ||||
| "name": "WorkspaceGatewayPremium", | ||||
| "capacity": 1 | ||||
| }, | ||||
| "systemData": { | ||||
| "createdBy": "user@contoso.com", | ||||
| "createdByType": "User", | ||||
| "createdAt": "2022-07-11T18:41:00.9390609Z", | ||||
| "lastModifiedBy": "user@contoso.com", | ||||
| "lastModifiedByType": "User", | ||||
| "lastModifiedAt": "2022-07-11T18:41:00.9390609Z" | ||||
| } | ||||
| } | ||||
| }, | ||||
| "200": { | ||||
| "body": { | ||||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1", | ||||
| "name": "apimGateway1", | ||||
| "type": "Microsoft.ApiManagement/gateways", | ||||
|
halspang marked this conversation as resolved.
|
||||
| "tags": { | ||||
| "api-version": "2024-10-01-preview" | ||||
| }, | ||||
| "location": "East US", | ||||
| "etag": "AAAAAAAmREI=", | ||||
| "properties": { | ||||
| "provisioningState": "Succeeded", | ||||
| "targetProvisioningState": "", | ||||
| "createdAtUtc": "2022-07-11T18:41:01.2506031Z", | ||||
| "backend": { | ||||
| "subnet": { | ||||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1" | ||||
| } | ||||
| }, | ||||
| "virtualNetworkType": "External" | ||||
| }, | ||||
| "sku": { | ||||
| "name": "WorkspaceGatewayPremium", | ||||
| "capacity": 1 | ||||
| }, | ||||
| "systemData": { | ||||
| "createdBy": "user@contoso.com", | ||||
| "createdByType": "User", | ||||
| "createdAt": "2022-07-11T18:41:00.9390609Z", | ||||
| "lastModifiedBy": "user@contoso.com", | ||||
| "lastModifiedByType": "User", | ||||
| "lastModifiedAt": "2022-07-11T18:41:00.9390609Z" | ||||
| } | ||||
| } | ||||
| } | ||||
| } | ||||
| } | ||||
|
|
||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "parameters": { | ||
| "gatewayName": "apimService1", | ||
| "resourceGroupName": "rg1", | ||
| "api-version": "2024-10-01-preview", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateway/example-gateway", | ||
|
halspang marked this conversation as resolved.
|
||
| "name": "example-gateway", | ||
| "type": "Microsoft.ApiManagement/gateway", | ||
| "tags": { | ||
| "owner": "v-aswmoh", | ||
| "ReleaseName": "Z3" | ||
| }, | ||
| "location": "East US", | ||
| "etag": "AAAAAAAWN/4=", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "targetProvisioningState": "", | ||
| "createdAtUtc": "2021-06-16T09:40:00.9453556Z", | ||
| "frontend": { | ||
| "defaultHostname": "example-gateway.eastus.gateway.azure-api.net" | ||
| }, | ||
| "backend": { | ||
| "subnet": { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1" | ||
| } | ||
| }, | ||
| "configurationApi": { | ||
| "hostname": "example-gateway.eastus.configuration.gateway.azure-api.net" | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if we should keep showing this, if we can let's drop it
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a good rule of thumb for which APIs should return it and which should not? |
||
| }, | ||
| "sku": { | ||
| "name": "WorkspaceGatewayPremium", | ||
| "capacity": 1 | ||
| }, | ||
| "kind": "KubernetesManaged", | ||
| "systemData": { | ||
| "createdBy": "string", | ||
| "createdByType": "User", | ||
| "createdAt": "2021-06-16T09:40:00.7106733Z", | ||
| "lastModifiedBy": "foo@contoso.com", | ||
| "lastModifiedByType": "User", | ||
| "lastModifiedAt": "2021-06-20T06:33:09.6159006Z" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "parameters": { | ||
| "serviceName": "apimService1", | ||
| "resourceGroupName": "rg1", | ||
| "api-version": "2024-10-01-preview", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "workspaceId": "wks1" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1", | ||
| "type": "Microsoft.ApiManagement/service/workspaces", | ||
| "name": "wks1", | ||
| "kind": "KubernetesManaged", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
|
halspang marked this conversation as resolved.
Outdated
|
||
| "description": "workspace 1", | ||
| "displayName": "my workspace", | ||
| "configurationApi": { | ||
| "hostname": "example.eastus.configuration.gateway.azure-api.net" | ||
|
halspang marked this conversation as resolved.
Outdated
|
||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.