From 5b3bd638c26b8dae4b6c92a581df5c71313819ff Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Sat, 27 Jan 2024 15:37:02 +1100 Subject: [PATCH] postgresql fix --- .../v00.00.00000/services/postgresql.yaml | 87 +++++++++++++++---- 1 file changed, 71 insertions(+), 16 deletions(-) diff --git a/providers/src/azure/v00.00.00000/services/postgresql.yaml b/providers/src/azure/v00.00.00000/services/postgresql.yaml index c482078c..a15d4165 100644 --- a/providers/src/azure/v00.00.00000/services/postgresql.yaml +++ b/providers/src/azure/v00.00.00000/services/postgresql.yaml @@ -8,7 +8,7 @@ info: name: StackQL Studios url: 'https://stackql.io/' email: info@stackql.io - version: 2024-01-25-stackql-generated + version: 2024-01-27-stackql-generated security: - azure_auth: - user_impersonation @@ -1538,6 +1538,59 @@ components: Server: description: Represents a server. properties: + id: + readOnly: true + type: string + description: 'Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' + name: + readOnly: true + type: string + description: The name of the resource + type: + readOnly: true + type: string + description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + systemData: + type: object + readOnly: true + description: Metadata pertaining to creation and last modification of the resource. + properties: + createdBy: + type: string + description: The identity that created the resource. + createdByType: + type: string + description: The type of identity that created the resource. + enum: + - User + - Application + - ManagedIdentity + - Key + x-ms-enum: + name: createdByType + modelAsString: true + createdAt: + type: string + format: date-time + description: The timestamp of resource creation (UTC). + lastModifiedBy: + type: string + description: The identity that last modified the resource. + lastModifiedByType: + type: string + description: The type of identity that last modified the resource. + enum: + - User + - Application + - ManagedIdentity + - Key + x-ms-enum: + name: lastModifiedByType + modelAsString: true + lastModifiedAt: + type: string + format: date-time + description: The timestamp of resource last modification (UTC) sku: $ref: '#/components/schemas/Sku' description: The SKU (pricing tier) of the server. @@ -3894,21 +3947,22 @@ components: name: location_based_capabilities title: Location Based Capabilities methods: - execute: + list: operation: $ref: '#/paths/~1subscriptions~1{subscriptionId}~1providers~1Microsoft.DBforPostgreSQL~1locations~1{locationName}~1capabilities~1?api-version=2023-06-01-preview/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.value - _execute: + _list: operation: $ref: '#/paths/~1subscriptions~1{subscriptionId}~1providers~1Microsoft.DBforPostgreSQL~1locations~1{locationName}~1capabilities~1?api-version=2023-06-01-preview/get' response: mediaType: application/json openAPIDocKey: '200' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/location_based_capabilities/methods/list' insert: [] update: [] delete: [] @@ -4074,10 +4128,10 @@ components: insert: [] update: [] delete: [] - flexible_server: - id: azure.postgresql.flexible_server - name: flexible_server - title: Flexible Server + flexible_server_ltr_backup: + id: azure.postgresql.flexible_server_ltr_backup + name: flexible_server_ltr_backup + title: Flexible Server Ltr Backup methods: trigger_ltr_pre_backup: operation: @@ -4132,14 +4186,15 @@ components: name: virtual_network_subnet_usage title: Virtual Network Subnet Usage methods: - execute: + get: operation: $ref: '#/paths/~1subscriptions~1{subscriptionId}~1providers~1Microsoft.DBforPostgreSQL~1locations~1{locationName}~1checkVirtualNetworkSubnetUsage~1?api-version=2023-06-01-preview/post' response: mediaType: application/json openAPIDocKey: '200' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/virtual_network_subnet_usage/methods/get' insert: [] update: [] delete: [] @@ -5304,8 +5359,8 @@ paths: x-ms-pageable: nextLinkName: nextLink x-stackQL-resource: location_based_capabilities - x-stackQL-method: execute - x-stackQL-verb: exec + x-stackQL-method: list + x-stackQL-verb: select x-stackQL-objectKey: $.value '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/capabilities/?api-version=2023-06-01-preview': get: @@ -5919,7 +5974,7 @@ paths: type: string description: 'A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging.' deprecated: false - x-stackQL-resource: flexible_server + x-stackQL-resource: flexible_server_ltr_backup x-stackQL-method: trigger_ltr_pre_backup x-stackQL-verb: exec '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/startLtrBackup/?api-version=2023-06-01-preview': @@ -5990,7 +6045,7 @@ paths: x-ms-long-running-operation: true x-ms-long-running-operation-options: final-state-via: location - x-stackQL-resource: flexible_server + x-stackQL-resource: flexible_server_ltr_backup x-stackQL-method: start_ltr_backup x-stackQL-verb: exec '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/ltrBackupOperations/{backupName}/?api-version=2023-06-01-preview': @@ -6080,8 +6135,8 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' x-stackQL-resource: virtual_network_subnet_usage - x-stackQL-method: execute - x-stackQL-verb: exec + x-stackQL-method: get + x-stackQL-verb: select /providers/Microsoft.DBforPostgreSQL/operations/?api-version=2023-06-01-preview: get: tags: