@azure/arm-cosmosdbforpostgresql 1.1.0-beta.1 → 1.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -2
- package/LICENSE +4 -4
- package/README.md +26 -17
- package/{dist-esm/src → dist/browser}/cosmosDBForPostgreSQL.d.ts +2 -2
- package/dist/browser/cosmosDBForPostgreSQL.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/cosmosDBForPostgreSQL.js +37 -24
- package/dist/browser/cosmosDBForPostgreSQL.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +18 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +206 -97
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/clusters.d.ts +3 -3
- package/dist/browser/operations/clusters.d.ts.map +1 -0
- package/dist/browser/operations/clusters.js +880 -0
- package/dist/browser/operations/clusters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/configurations.d.ts +3 -3
- package/dist/browser/operations/configurations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/configurations.js +143 -175
- package/dist/browser/operations/configurations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/firewallRules.d.ts +3 -3
- package/dist/browser/operations/firewallRules.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/firewallRules.js +102 -117
- package/dist/browser/operations/firewallRules.js.map +1 -0
- package/dist/browser/operations/index.d.ts +9 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +16 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +12 -29
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +3 -3
- package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +106 -121
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +3 -3
- package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +12 -29
- package/dist/browser/operations/privateLinkResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/roles.d.ts +3 -3
- package/dist/browser/operations/roles.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/roles.js +97 -112
- package/dist/browser/operations/roles.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/servers.d.ts +3 -3
- package/dist/browser/operations/servers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/servers.js +12 -29
- package/dist/browser/operations/servers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/clusters.d.ts +1 -1
- package/dist/browser/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/clusters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/configurations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/configurations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/configurations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/firewallRules.d.ts +1 -1
- package/dist/browser/operationsInterfaces/firewallRules.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/firewallRules.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +9 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +16 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.d.ts +1 -1
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/roles.d.ts +1 -1
- package/dist/browser/operationsInterfaces/roles.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/roles.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/servers.d.ts +1 -1
- package/dist/browser/operationsInterfaces/servers.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/servers.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/cosmosDBForPostgreSQL.d.ts +27 -0
- package/dist/commonjs/cosmosDBForPostgreSQL.d.ts.map +1 -0
- package/dist/commonjs/cosmosDBForPostgreSQL.js +125 -0
- package/dist/commonjs/cosmosDBForPostgreSQL.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +21 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-cosmosdbforpostgresql.d.ts → dist/commonjs/models/index.d.ts} +1214 -1829
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +121 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +57 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1893 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +24 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +220 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/clusters.d.ts +174 -0
- package/dist/commonjs/operations/clusters.d.ts.map +1 -0
- package/dist/commonjs/operations/clusters.js +885 -0
- package/dist/commonjs/operations/clusters.js.map +1 -0
- package/dist/commonjs/operations/configurations.d.ts +126 -0
- package/dist/commonjs/operations/configurations.d.ts.map +1 -0
- package/dist/commonjs/operations/configurations.js +548 -0
- package/dist/commonjs/operations/configurations.js.map +1 -0
- package/dist/commonjs/operations/firewallRules.d.ts +73 -0
- package/dist/commonjs/operations/firewallRules.d.ts.map +1 -0
- package/dist/commonjs/operations/firewallRules.js +317 -0
- package/dist/commonjs/operations/firewallRules.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +9 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +19 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +26 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +84 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts +78 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.js +332 -0
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts +38 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.js +125 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
- package/dist/commonjs/operations/roles.d.ts +73 -0
- package/dist/commonjs/operations/roles.d.ts.map +1 -0
- package/dist/commonjs/operations/roles.js +311 -0
- package/dist/commonjs/operations/roles.js.map +1 -0
- package/dist/commonjs/operations/servers.d.ts +38 -0
- package/dist/commonjs/operations/servers.d.ts.map +1 -0
- package/dist/commonjs/operations/servers.js +125 -0
- package/dist/commonjs/operations/servers.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/clusters.d.ts +138 -0
- package/dist/commonjs/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/clusters.js +10 -0
- package/dist/commonjs/operationsInterfaces/clusters.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/configurations.d.ts +82 -0
- package/dist/commonjs/operationsInterfaces/configurations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/configurations.js +10 -0
- package/dist/commonjs/operationsInterfaces/configurations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/firewallRules.d.ts +56 -0
- package/dist/commonjs/operationsInterfaces/firewallRules.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/firewallRules.js +10 -0
- package/dist/commonjs/operationsInterfaces/firewallRules.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +9 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +19 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +61 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/roles.d.ts +56 -0
- package/dist/commonjs/operationsInterfaces/roles.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/roles.js +10 -0
- package/dist/commonjs/operationsInterfaces/roles.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/servers.d.ts +21 -0
- package/dist/commonjs/operationsInterfaces/servers.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/servers.js +10 -0
- package/dist/commonjs/operationsInterfaces/servers.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/cosmosDBForPostgreSQL.d.ts +27 -0
- package/dist/esm/cosmosDBForPostgreSQL.d.ts.map +1 -0
- package/dist/esm/cosmosDBForPostgreSQL.js +120 -0
- package/dist/esm/cosmosDBForPostgreSQL.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +18 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +1214 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +118 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +57 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1889 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +24 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +217 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/clusters.d.ts +174 -0
- package/dist/esm/operations/clusters.d.ts.map +1 -0
- package/dist/esm/operations/clusters.js +880 -0
- package/dist/esm/operations/clusters.js.map +1 -0
- package/dist/esm/operations/configurations.d.ts +126 -0
- package/dist/esm/operations/configurations.d.ts.map +1 -0
- package/dist/esm/operations/configurations.js +543 -0
- package/dist/esm/operations/configurations.js.map +1 -0
- package/dist/esm/operations/firewallRules.d.ts +73 -0
- package/dist/esm/operations/firewallRules.d.ts.map +1 -0
- package/dist/esm/operations/firewallRules.js +312 -0
- package/dist/esm/operations/firewallRules.js.map +1 -0
- package/dist/esm/operations/index.d.ts +9 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +16 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +26 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +79 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts +78 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.js +327 -0
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operations/privateLinkResources.d.ts +38 -0
- package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operations/privateLinkResources.js +120 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -0
- package/dist/esm/operations/roles.d.ts +73 -0
- package/dist/esm/operations/roles.d.ts.map +1 -0
- package/dist/esm/operations/roles.js +306 -0
- package/dist/esm/operations/roles.js.map +1 -0
- package/dist/esm/operations/servers.d.ts +38 -0
- package/dist/esm/operations/servers.d.ts.map +1 -0
- package/dist/esm/operations/servers.js +120 -0
- package/dist/esm/operations/servers.js.map +1 -0
- package/dist/esm/operationsInterfaces/clusters.d.ts +138 -0
- package/dist/esm/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/clusters.js +9 -0
- package/dist/esm/operationsInterfaces/clusters.js.map +1 -0
- package/dist/esm/operationsInterfaces/configurations.d.ts +82 -0
- package/dist/esm/operationsInterfaces/configurations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/configurations.js +9 -0
- package/dist/esm/operationsInterfaces/configurations.js.map +1 -0
- package/dist/esm/operationsInterfaces/firewallRules.d.ts +56 -0
- package/dist/esm/operationsInterfaces/firewallRules.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/firewallRules.js +9 -0
- package/dist/esm/operationsInterfaces/firewallRules.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +9 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +16 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +61 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/esm/operationsInterfaces/roles.d.ts +56 -0
- package/dist/esm/operationsInterfaces/roles.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/roles.js +9 -0
- package/dist/esm/operationsInterfaces/roles.js.map +1 -0
- package/dist/esm/operationsInterfaces/servers.d.ts +21 -0
- package/dist/esm/operationsInterfaces/servers.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/servers.js +9 -0
- package/dist/esm/operationsInterfaces/servers.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/cosmosDBForPostgreSQL.d.ts +27 -0
- package/dist/react-native/cosmosDBForPostgreSQL.d.ts.map +1 -0
- package/dist/react-native/cosmosDBForPostgreSQL.js +120 -0
- package/dist/react-native/cosmosDBForPostgreSQL.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +18 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1214 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +118 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +57 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1889 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +24 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +217 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/clusters.d.ts +174 -0
- package/dist/react-native/operations/clusters.d.ts.map +1 -0
- package/dist/react-native/operations/clusters.js +880 -0
- package/dist/react-native/operations/clusters.js.map +1 -0
- package/dist/react-native/operations/configurations.d.ts +126 -0
- package/dist/react-native/operations/configurations.d.ts.map +1 -0
- package/dist/react-native/operations/configurations.js +543 -0
- package/dist/react-native/operations/configurations.js.map +1 -0
- package/dist/react-native/operations/firewallRules.d.ts +73 -0
- package/dist/react-native/operations/firewallRules.d.ts.map +1 -0
- package/dist/react-native/operations/firewallRules.js +312 -0
- package/dist/react-native/operations/firewallRules.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +9 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +16 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +26 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +79 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts +78 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.js +327 -0
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
- package/dist/react-native/operations/privateLinkResources.d.ts +38 -0
- package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/react-native/operations/privateLinkResources.js +120 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -0
- package/dist/react-native/operations/roles.d.ts +73 -0
- package/dist/react-native/operations/roles.d.ts.map +1 -0
- package/dist/react-native/operations/roles.js +306 -0
- package/dist/react-native/operations/roles.js.map +1 -0
- package/dist/react-native/operations/servers.d.ts +38 -0
- package/dist/react-native/operations/servers.d.ts.map +1 -0
- package/dist/react-native/operations/servers.js +120 -0
- package/dist/react-native/operations/servers.js.map +1 -0
- package/dist/react-native/operationsInterfaces/clusters.d.ts +138 -0
- package/dist/react-native/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/clusters.js +9 -0
- package/dist/react-native/operationsInterfaces/clusters.js.map +1 -0
- package/dist/react-native/operationsInterfaces/configurations.d.ts +82 -0
- package/dist/react-native/operationsInterfaces/configurations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/configurations.js +9 -0
- package/dist/react-native/operationsInterfaces/configurations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/firewallRules.d.ts +56 -0
- package/dist/react-native/operationsInterfaces/firewallRules.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/firewallRules.js +9 -0
- package/dist/react-native/operationsInterfaces/firewallRules.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +9 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +16 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +61 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/react-native/operationsInterfaces/roles.d.ts +56 -0
- package/dist/react-native/operationsInterfaces/roles.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/roles.js +9 -0
- package/dist/react-native/operationsInterfaces/roles.js.map +1 -0
- package/dist/react-native/operationsInterfaces/servers.d.ts +21 -0
- package/dist/react-native/operationsInterfaces/servers.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/servers.js +9 -0
- package/dist/react-native/operationsInterfaces/servers.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +85 -71
- package/dist/index.js +0 -5158
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.js +0 -41
- package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.js.map +0 -1
- package/dist-esm/samples-dev/clustersCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersCreateSample.js +0 -209
- package/dist-esm/samples-dev/clustersCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/clustersDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +0 -39
- package/dist-esm/samples-dev/clustersDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/clustersGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersGetSample.js +0 -39
- package/dist-esm/samples-dev/clustersGetSample.js.map +0 -1
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/clustersListSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersListSample.js +0 -53
- package/dist-esm/samples-dev/clustersListSample.js.map +0 -1
- package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.js +0 -39
- package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.js.map +0 -1
- package/dist-esm/samples-dev/clustersRestartSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersRestartSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersRestartSample.js +0 -39
- package/dist-esm/samples-dev/clustersRestartSample.js.map +0 -1
- package/dist-esm/samples-dev/clustersStartSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersStartSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersStartSample.js +0 -39
- package/dist-esm/samples-dev/clustersStartSample.js.map +0 -1
- package/dist-esm/samples-dev/clustersStopSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersStopSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersStopSample.js +0 -39
- package/dist-esm/samples-dev/clustersStopSample.js.map +0 -1
- package/dist-esm/samples-dev/clustersUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/clustersUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +0 -132
- package/dist-esm/samples-dev/clustersUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/configurationsGetCoordinatorSample.d.ts +0 -2
- package/dist-esm/samples-dev/configurationsGetCoordinatorSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/configurationsGetCoordinatorSample.js +0 -40
- package/dist-esm/samples-dev/configurationsGetCoordinatorSample.js.map +0 -1
- package/dist-esm/samples-dev/configurationsGetNodeSample.d.ts +0 -2
- package/dist-esm/samples-dev/configurationsGetNodeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/configurationsGetNodeSample.js +0 -40
- package/dist-esm/samples-dev/configurationsGetNodeSample.js.map +0 -1
- package/dist-esm/samples-dev/configurationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/configurationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/configurationsGetSample.js +0 -40
- package/dist-esm/samples-dev/configurationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/configurationsListByClusterSample.d.ts +0 -2
- package/dist-esm/samples-dev/configurationsListByClusterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/configurationsListByClusterSample.js +0 -55
- package/dist-esm/samples-dev/configurationsListByClusterSample.js.map +0 -1
- package/dist-esm/samples-dev/configurationsListByServerSample.d.ts +0 -2
- package/dist-esm/samples-dev/configurationsListByServerSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/configurationsListByServerSample.js +0 -56
- package/dist-esm/samples-dev/configurationsListByServerSample.js.map +0 -1
- package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.d.ts +0 -2
- package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.js +0 -41
- package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.js.map +0 -1
- package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.d.ts +0 -2
- package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.js +0 -41
- package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.js.map +0 -1
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +0 -44
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/firewallRulesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/firewallRulesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js +0 -40
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/firewallRulesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/firewallRulesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firewallRulesGetSample.js +0 -40
- package/dist-esm/samples-dev/firewallRulesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/firewallRulesListByClusterSample.d.ts +0 -2
- package/dist-esm/samples-dev/firewallRulesListByClusterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firewallRulesListByClusterSample.js +0 -55
- package/dist-esm/samples-dev/firewallRulesListByClusterSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -53
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +0 -46
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -40
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -40
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +0 -55
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +0 -40
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +0 -55
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +0 -1
- package/dist-esm/samples-dev/rolesCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/rolesCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/rolesCreateSample.js +0 -41
- package/dist-esm/samples-dev/rolesCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/rolesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/rolesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/rolesDeleteSample.js +0 -40
- package/dist-esm/samples-dev/rolesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/rolesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/rolesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/rolesGetSample.js +0 -40
- package/dist-esm/samples-dev/rolesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/rolesListByClusterSample.d.ts +0 -2
- package/dist-esm/samples-dev/rolesListByClusterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/rolesListByClusterSample.js +0 -55
- package/dist-esm/samples-dev/rolesListByClusterSample.js.map +0 -1
- package/dist-esm/samples-dev/serversGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/serversGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serversGetSample.js +0 -40
- package/dist-esm/samples-dev/serversGetSample.js.map +0 -1
- package/dist-esm/samples-dev/serversListByClusterSample.d.ts +0 -2
- package/dist-esm/samples-dev/serversListByClusterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serversListByClusterSample.js +0 -55
- package/dist-esm/samples-dev/serversListByClusterSample.js.map +0 -1
- package/dist-esm/src/cosmosDBForPostgreSQL.d.ts.map +0 -1
- package/dist-esm/src/cosmosDBForPostgreSQL.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -21
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/clusters.d.ts.map +0 -1
- package/dist-esm/src/operations/clusters.js +0 -907
- package/dist-esm/src/operations/clusters.js.map +0 -1
- package/dist-esm/src/operations/configurations.d.ts.map +0 -1
- package/dist-esm/src/operations/configurations.js.map +0 -1
- package/dist-esm/src/operations/firewallRules.d.ts.map +0 -1
- package/dist-esm/src/operations/firewallRules.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -9
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -16
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
- package/dist-esm/src/operations/roles.d.ts.map +0 -1
- package/dist-esm/src/operations/roles.js.map +0 -1
- package/dist-esm/src/operations/servers.d.ts.map +0 -1
- package/dist-esm/src/operations/servers.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/clusters.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/configurations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/firewallRules.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -9
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -16
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/roles.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/roles.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/servers.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/servers.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.js +0 -127
- package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.js.map +0 -1
- package/src/cosmosDBForPostgreSQL.ts +0 -173
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -1387
- package/src/models/mappers.ts +0 -1952
- package/src/models/parameters.ts +0 -253
- package/src/operations/clusters.ts +0 -1205
- package/src/operations/configurations.ts +0 -800
- package/src/operations/firewallRules.ts +0 -454
- package/src/operations/index.ts +0 -16
- package/src/operations/operations.ts +0 -103
- package/src/operations/privateEndpointConnections.ts +0 -471
- package/src/operations/privateLinkResources.ts +0 -179
- package/src/operations/roles.ts +0 -442
- package/src/operations/servers.ts +0 -179
- package/src/operationsInterfaces/clusters.ts +0 -260
- package/src/operationsInterfaces/configurations.ts +0 -164
- package/src/operationsInterfaces/firewallRules.ts +0 -115
- package/src/operationsInterfaces/index.ts +0 -16
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/privateEndpointConnections.ts +0 -120
- package/src/operationsInterfaces/privateLinkResources.ts +0 -44
- package/src/operationsInterfaces/roles.ts +0 -109
- package/src/operationsInterfaces/servers.ts +0 -44
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/clusters.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/configurations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/firewallRules.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/roles.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/servers.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/review/{arm-cosmosdbforpostgresql.api.md → arm-cosmosdbforpostgresql-node.api.md} +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PrivateEndpointConnections } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { CosmosDBForPostgreSQL } from "../cosmosDBForPostgreSQL.js";
|
|
4
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
import { PrivateEndpointConnection, PrivateEndpointConnectionsListByClusterOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsDeleteResponse } from "../models/index.js";
|
|
6
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
7
|
+
export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: CosmosDBForPostgreSQL);
|
|
14
|
+
/**
|
|
15
|
+
* Gets list of private endpoint connections on a cluster.
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param clusterName The name of the cluster.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
listByCluster(resourceGroupName: string, clusterName: string, options?: PrivateEndpointConnectionsListByClusterOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
|
|
21
|
+
private listByClusterPagingPage;
|
|
22
|
+
private listByClusterPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* Gets list of private endpoint connections on a cluster.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param clusterName The name of the cluster.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
private _listByCluster;
|
|
30
|
+
/**
|
|
31
|
+
* Gets private endpoint connection.
|
|
32
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
33
|
+
* @param clusterName The name of the cluster.
|
|
34
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
35
|
+
* cluster.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Approves or Rejects a private endpoint connection with a given name.
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param clusterName The name of the cluster.
|
|
43
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
44
|
+
* cluster.
|
|
45
|
+
* @param parameters The required parameters for approving a private endpoint connection.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
beginCreateOrUpdate(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>, PrivateEndpointConnectionsCreateOrUpdateResponse>>;
|
|
49
|
+
/**
|
|
50
|
+
* Approves or Rejects a private endpoint connection with a given name.
|
|
51
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
52
|
+
* @param clusterName The name of the cluster.
|
|
53
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
54
|
+
* cluster.
|
|
55
|
+
* @param parameters The required parameters for approving a private endpoint connection.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Deletes a private endpoint connection with a given name.
|
|
61
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
62
|
+
* @param clusterName The name of the cluster.
|
|
63
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
64
|
+
* cluster.
|
|
65
|
+
* @param options The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
beginDelete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsDeleteResponse>, PrivateEndpointConnectionsDeleteResponse>>;
|
|
68
|
+
/**
|
|
69
|
+
* Deletes a private endpoint connection with a given name.
|
|
70
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
71
|
+
* @param clusterName The name of the cluster.
|
|
72
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
73
|
+
* cluster.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
beginDeleteAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<PrivateEndpointConnectionsDeleteResponse>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=privateEndpointConnections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAI9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,yBAAyB,EACzB,qDAAqD,EAErD,2CAA2C,EAC3C,qCAAqC,EACrC,sDAAsD,EACtD,gDAAgD,EAChD,8CAA8C,EAC9C,wCAAwC,EACzC,MAAM,oBAAoB,CAAC;AAG5B,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IAErC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;;;OAKG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,yBAAyB,CAAC;YA2BzC,uBAAuB;YAWvB,sBAAsB;IAcrC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAYjD;;;;;;;;OAQG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,gDAAgD,CAAC,EAChE,gDAAgD,CACjD,CACF;IA8DD;;;;;;;;OAQG;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CAAC,gDAAgD,CAAC;IAW5D;;;;;;;OAOG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,wCAAwC,CAAC,EACxD,wCAAwC,CACzC,CACF;IA6DD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;CASrD"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
12
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
15
|
+
export class PrivateEndpointConnectionsImpl {
|
|
16
|
+
client;
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets list of private endpoint connections on a cluster.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param clusterName The name of the cluster.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByCluster(resourceGroupName, clusterName, options) {
|
|
31
|
+
const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: (settings) => {
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
|
+
}
|
|
43
|
+
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
async *listByClusterPagingPage(resourceGroupName, clusterName, options, _settings) {
|
|
48
|
+
let result;
|
|
49
|
+
result = await this._listByCluster(resourceGroupName, clusterName, options);
|
|
50
|
+
yield result.value || [];
|
|
51
|
+
}
|
|
52
|
+
async *listByClusterPagingAll(resourceGroupName, clusterName, options) {
|
|
53
|
+
for await (const page of this.listByClusterPagingPage(resourceGroupName, clusterName, options)) {
|
|
54
|
+
yield* page;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Gets list of private endpoint connections on a cluster.
|
|
59
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
60
|
+
* @param clusterName The name of the cluster.
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
_listByCluster(resourceGroupName, clusterName, options) {
|
|
64
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Gets private endpoint connection.
|
|
68
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
69
|
+
* @param clusterName The name of the cluster.
|
|
70
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
71
|
+
* cluster.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
get(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
75
|
+
return this.client.sendOperationRequest({
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
clusterName,
|
|
78
|
+
privateEndpointConnectionName,
|
|
79
|
+
options,
|
|
80
|
+
}, getOperationSpec);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Approves or Rejects a private endpoint connection with a given name.
|
|
84
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
85
|
+
* @param clusterName The name of the cluster.
|
|
86
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
87
|
+
* cluster.
|
|
88
|
+
* @param parameters The required parameters for approving a private endpoint connection.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
async beginCreateOrUpdate(resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options) {
|
|
92
|
+
const directSendOperation = async (args, spec) => {
|
|
93
|
+
return this.client.sendOperationRequest(args, spec);
|
|
94
|
+
};
|
|
95
|
+
const sendOperationFn = async (args, spec) => {
|
|
96
|
+
let currentRawResponse = undefined;
|
|
97
|
+
const providedCallback = args.options?.onResponse;
|
|
98
|
+
const callback = (rawResponse, flatResponse) => {
|
|
99
|
+
currentRawResponse = rawResponse;
|
|
100
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
101
|
+
};
|
|
102
|
+
const updatedArgs = {
|
|
103
|
+
...args,
|
|
104
|
+
options: {
|
|
105
|
+
...args.options,
|
|
106
|
+
onResponse: callback,
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
110
|
+
return {
|
|
111
|
+
flatResponse,
|
|
112
|
+
rawResponse: {
|
|
113
|
+
statusCode: currentRawResponse.status,
|
|
114
|
+
body: currentRawResponse.parsedBody,
|
|
115
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
const lro = createLroSpec({
|
|
120
|
+
sendOperationFn,
|
|
121
|
+
args: {
|
|
122
|
+
resourceGroupName,
|
|
123
|
+
clusterName,
|
|
124
|
+
privateEndpointConnectionName,
|
|
125
|
+
parameters,
|
|
126
|
+
options,
|
|
127
|
+
},
|
|
128
|
+
spec: createOrUpdateOperationSpec,
|
|
129
|
+
});
|
|
130
|
+
const poller = await createHttpPoller(lro, {
|
|
131
|
+
restoreFrom: options?.resumeFrom,
|
|
132
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
133
|
+
resourceLocationConfig: "azure-async-operation",
|
|
134
|
+
});
|
|
135
|
+
await poller.poll();
|
|
136
|
+
return poller;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Approves or Rejects a private endpoint connection with a given name.
|
|
140
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
141
|
+
* @param clusterName The name of the cluster.
|
|
142
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
143
|
+
* cluster.
|
|
144
|
+
* @param parameters The required parameters for approving a private endpoint connection.
|
|
145
|
+
* @param options The options parameters.
|
|
146
|
+
*/
|
|
147
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options) {
|
|
148
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options);
|
|
149
|
+
return poller.pollUntilDone();
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Deletes a private endpoint connection with a given name.
|
|
153
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
154
|
+
* @param clusterName The name of the cluster.
|
|
155
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
156
|
+
* cluster.
|
|
157
|
+
* @param options The options parameters.
|
|
158
|
+
*/
|
|
159
|
+
async beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
160
|
+
const directSendOperation = async (args, spec) => {
|
|
161
|
+
return this.client.sendOperationRequest(args, spec);
|
|
162
|
+
};
|
|
163
|
+
const sendOperationFn = async (args, spec) => {
|
|
164
|
+
let currentRawResponse = undefined;
|
|
165
|
+
const providedCallback = args.options?.onResponse;
|
|
166
|
+
const callback = (rawResponse, flatResponse) => {
|
|
167
|
+
currentRawResponse = rawResponse;
|
|
168
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
169
|
+
};
|
|
170
|
+
const updatedArgs = {
|
|
171
|
+
...args,
|
|
172
|
+
options: {
|
|
173
|
+
...args.options,
|
|
174
|
+
onResponse: callback,
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
178
|
+
return {
|
|
179
|
+
flatResponse,
|
|
180
|
+
rawResponse: {
|
|
181
|
+
statusCode: currentRawResponse.status,
|
|
182
|
+
body: currentRawResponse.parsedBody,
|
|
183
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
const lro = createLroSpec({
|
|
188
|
+
sendOperationFn,
|
|
189
|
+
args: {
|
|
190
|
+
resourceGroupName,
|
|
191
|
+
clusterName,
|
|
192
|
+
privateEndpointConnectionName,
|
|
193
|
+
options,
|
|
194
|
+
},
|
|
195
|
+
spec: deleteOperationSpec,
|
|
196
|
+
});
|
|
197
|
+
const poller = await createHttpPoller(lro, {
|
|
198
|
+
restoreFrom: options?.resumeFrom,
|
|
199
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
200
|
+
resourceLocationConfig: "location",
|
|
201
|
+
});
|
|
202
|
+
await poller.poll();
|
|
203
|
+
return poller;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Deletes a private endpoint connection with a given name.
|
|
207
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
208
|
+
* @param clusterName The name of the cluster.
|
|
209
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
210
|
+
* cluster.
|
|
211
|
+
* @param options The options parameters.
|
|
212
|
+
*/
|
|
213
|
+
async beginDeleteAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
214
|
+
const poller = await this.beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options);
|
|
215
|
+
return poller.pollUntilDone();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
// Operation Specifications
|
|
219
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
220
|
+
const listByClusterOperationSpec = {
|
|
221
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections",
|
|
222
|
+
httpMethod: "GET",
|
|
223
|
+
responses: {
|
|
224
|
+
200: {
|
|
225
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
226
|
+
},
|
|
227
|
+
default: {
|
|
228
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
queryParameters: [Parameters.apiVersion],
|
|
232
|
+
urlParameters: [
|
|
233
|
+
Parameters.$host,
|
|
234
|
+
Parameters.subscriptionId,
|
|
235
|
+
Parameters.resourceGroupName,
|
|
236
|
+
Parameters.clusterName,
|
|
237
|
+
],
|
|
238
|
+
headerParameters: [Parameters.accept],
|
|
239
|
+
serializer,
|
|
240
|
+
};
|
|
241
|
+
const getOperationSpec = {
|
|
242
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
243
|
+
httpMethod: "GET",
|
|
244
|
+
responses: {
|
|
245
|
+
200: {
|
|
246
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
247
|
+
},
|
|
248
|
+
default: {
|
|
249
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
queryParameters: [Parameters.apiVersion],
|
|
253
|
+
urlParameters: [
|
|
254
|
+
Parameters.$host,
|
|
255
|
+
Parameters.subscriptionId,
|
|
256
|
+
Parameters.resourceGroupName,
|
|
257
|
+
Parameters.clusterName,
|
|
258
|
+
Parameters.privateEndpointConnectionName,
|
|
259
|
+
],
|
|
260
|
+
headerParameters: [Parameters.accept],
|
|
261
|
+
serializer,
|
|
262
|
+
};
|
|
263
|
+
const createOrUpdateOperationSpec = {
|
|
264
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
265
|
+
httpMethod: "PUT",
|
|
266
|
+
responses: {
|
|
267
|
+
200: {
|
|
268
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
269
|
+
},
|
|
270
|
+
201: {
|
|
271
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
272
|
+
},
|
|
273
|
+
202: {
|
|
274
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
275
|
+
},
|
|
276
|
+
204: {
|
|
277
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
278
|
+
},
|
|
279
|
+
default: {
|
|
280
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
requestBody: Parameters.parameters5,
|
|
284
|
+
queryParameters: [Parameters.apiVersion],
|
|
285
|
+
urlParameters: [
|
|
286
|
+
Parameters.$host,
|
|
287
|
+
Parameters.subscriptionId,
|
|
288
|
+
Parameters.resourceGroupName,
|
|
289
|
+
Parameters.clusterName,
|
|
290
|
+
Parameters.privateEndpointConnectionName,
|
|
291
|
+
],
|
|
292
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
293
|
+
mediaType: "json",
|
|
294
|
+
serializer,
|
|
295
|
+
};
|
|
296
|
+
const deleteOperationSpec = {
|
|
297
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
298
|
+
httpMethod: "DELETE",
|
|
299
|
+
responses: {
|
|
300
|
+
200: {
|
|
301
|
+
headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,
|
|
302
|
+
},
|
|
303
|
+
201: {
|
|
304
|
+
headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,
|
|
305
|
+
},
|
|
306
|
+
202: {
|
|
307
|
+
headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,
|
|
308
|
+
},
|
|
309
|
+
204: {
|
|
310
|
+
headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,
|
|
311
|
+
},
|
|
312
|
+
default: {
|
|
313
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
queryParameters: [Parameters.apiVersion],
|
|
317
|
+
urlParameters: [
|
|
318
|
+
Parameters.$host,
|
|
319
|
+
Parameters.subscriptionId,
|
|
320
|
+
Parameters.resourceGroupName,
|
|
321
|
+
Parameters.clusterName,
|
|
322
|
+
Parameters.privateEndpointConnectionName,
|
|
323
|
+
],
|
|
324
|
+
headerParameters: [Parameters.accept],
|
|
325
|
+
serializer,
|
|
326
|
+
};
|
|
327
|
+
//# sourceMappingURL=privateEndpointConnections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAa9C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAGxB,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAA+D;QAE/D,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,C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QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,gMAAgM;IACtM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,uCAAuC;SAC/D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,uCAAuC;SAC/D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,uCAAuC;SAC/D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,uCAAuC;SAC/D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { PrivateEndpointConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CosmosDBForPostgreSQL } from \"../cosmosDBForPostgreSQL.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsListByClusterOptionalParams,\n PrivateEndpointConnectionsListByClusterResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsDeleteResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: CosmosDBForPostgreSQL;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: CosmosDBForPostgreSQL) {\n this.client = client;\n }\n\n /**\n * Gets list of private endpoint connections on a cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n public listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListByClusterOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listByClusterPagingAll(\n resourceGroupName,\n clusterName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByClusterPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListByClusterOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListByClusterResponse;\n result = await this._listByCluster(resourceGroupName, clusterName, options);\n yield result.value || [];\n }\n\n private async *listByClusterPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListByClusterOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets list of private endpoint connections on a cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n private _listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListByClusterOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listByClusterOperationSpec,\n );\n }\n\n /**\n * Gets private endpoint connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * cluster.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Approves or Rejects a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * cluster.\n * @param parameters The required parameters for approving a private endpoint connection.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n parameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Approves or Rejects a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * cluster.\n * @param parameters The required parameters for approving a private endpoint connection.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * cluster.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsDeleteResponse>,\n PrivateEndpointConnectionsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsDeleteResponse,\n OperationState<PrivateEndpointConnectionsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * cluster.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<PrivateEndpointConnectionsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PrivateLinkResources } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { CosmosDBForPostgreSQL } from "../cosmosDBForPostgreSQL.js";
|
|
4
|
+
import { PrivateLinkResource, PrivateLinkResourcesListByClusterOptionalParams, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing PrivateLinkResources operations. */
|
|
6
|
+
export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: CosmosDBForPostgreSQL);
|
|
13
|
+
/**
|
|
14
|
+
* Gets the private link resources for cluster.
|
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
+
* @param clusterName The name of the cluster.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
listByCluster(resourceGroupName: string, clusterName: string, options?: PrivateLinkResourcesListByClusterOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
|
|
20
|
+
private listByClusterPagingPage;
|
|
21
|
+
private listByClusterPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Gets the private link resources for cluster.
|
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
+
* @param clusterName The name of the cluster.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
private _listByCluster;
|
|
29
|
+
/**
|
|
30
|
+
* Gets a private link resource for cluster.
|
|
31
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
|
+
* @param clusterName The name of the cluster.
|
|
33
|
+
* @param privateLinkResourceName The name of the private link resource.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
get(resourceGroupName: string, clusterName: string, privateLinkResourceName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=privateLinkResources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,+CAA+C,EAE/C,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAG5B,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;;;OAKG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,mBAAmB,CAAC;YA2BnC,uBAAuB;YAWvB,sBAAsB;IAcrC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;CAM5C"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
/// <reference lib="esnext.asynciterable" />
|
|
12
|
+
/** Class containing PrivateLinkResources operations. */
|
|
13
|
+
export class PrivateLinkResourcesImpl {
|
|
14
|
+
client;
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets the private link resources for cluster.
|
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
+
* @param clusterName The name of the cluster.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listByCluster(resourceGroupName, clusterName, options) {
|
|
29
|
+
const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: (settings) => {
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
|
+
}
|
|
41
|
+
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
async *listByClusterPagingPage(resourceGroupName, clusterName, options, _settings) {
|
|
46
|
+
let result;
|
|
47
|
+
result = await this._listByCluster(resourceGroupName, clusterName, options);
|
|
48
|
+
yield result.value || [];
|
|
49
|
+
}
|
|
50
|
+
async *listByClusterPagingAll(resourceGroupName, clusterName, options) {
|
|
51
|
+
for await (const page of this.listByClusterPagingPage(resourceGroupName, clusterName, options)) {
|
|
52
|
+
yield* page;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Gets the private link resources for cluster.
|
|
57
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
58
|
+
* @param clusterName The name of the cluster.
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
_listByCluster(resourceGroupName, clusterName, options) {
|
|
62
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Gets a private link resource for cluster.
|
|
66
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
67
|
+
* @param clusterName The name of the cluster.
|
|
68
|
+
* @param privateLinkResourceName The name of the private link resource.
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
get(resourceGroupName, clusterName, privateLinkResourceName, options) {
|
|
72
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, privateLinkResourceName, options }, getOperationSpec);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// Operation Specifications
|
|
76
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
77
|
+
const listByClusterOperationSpec = {
|
|
78
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources",
|
|
79
|
+
httpMethod: "GET",
|
|
80
|
+
responses: {
|
|
81
|
+
200: {
|
|
82
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult,
|
|
83
|
+
},
|
|
84
|
+
default: {
|
|
85
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
queryParameters: [Parameters.apiVersion],
|
|
89
|
+
urlParameters: [
|
|
90
|
+
Parameters.$host,
|
|
91
|
+
Parameters.subscriptionId,
|
|
92
|
+
Parameters.resourceGroupName,
|
|
93
|
+
Parameters.clusterName,
|
|
94
|
+
],
|
|
95
|
+
headerParameters: [Parameters.accept],
|
|
96
|
+
serializer,
|
|
97
|
+
};
|
|
98
|
+
const getOperationSpec = {
|
|
99
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources/{privateLinkResourceName}",
|
|
100
|
+
httpMethod: "GET",
|
|
101
|
+
responses: {
|
|
102
|
+
200: {
|
|
103
|
+
bodyMapper: Mappers.PrivateLinkResource,
|
|
104
|
+
},
|
|
105
|
+
default: {
|
|
106
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
queryParameters: [Parameters.apiVersion],
|
|
110
|
+
urlParameters: [
|
|
111
|
+
Parameters.$host,
|
|
112
|
+
Parameters.subscriptionId,
|
|
113
|
+
Parameters.resourceGroupName,
|
|
114
|
+
Parameters.clusterName,
|
|
115
|
+
Parameters.privateLinkResourceName,
|
|
116
|
+
],
|
|
117
|
+
headerParameters: [Parameters.accept],
|
|
118
|
+
serializer,
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=privateLinkResources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5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Aa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { PrivateLinkResources } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CosmosDBForPostgreSQL } from \"../cosmosDBForPostgreSQL.js\";\nimport {\n PrivateLinkResource,\n PrivateLinkResourcesListByClusterOptionalParams,\n PrivateLinkResourcesListByClusterResponse,\n PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: CosmosDBForPostgreSQL;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: CosmosDBForPostgreSQL) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources for cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n public listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ): PagedAsyncIterableIterator<PrivateLinkResource> {\n const iter = this.listByClusterPagingAll(\n resourceGroupName,\n clusterName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByClusterPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateLinkResource[]> {\n let result: PrivateLinkResourcesListByClusterResponse;\n result = await this._listByCluster(resourceGroupName, clusterName, options);\n yield result.value || [];\n }\n\n private async *listByClusterPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ): AsyncIterableIterator<PrivateLinkResource> {\n for await (const page of this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the private link resources for cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n private _listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ): Promise<PrivateLinkResourcesListByClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listByClusterOperationSpec,\n );\n }\n\n /**\n * Gets a private link resource for cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateLinkResourceName The name of the private link resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n privateLinkResourceName: string,\n options?: PrivateLinkResourcesGetOptionalParams,\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, privateLinkResourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources/{privateLinkResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateLinkResourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|