diff --git a/README.md b/README.md index 9d92229..e85c35a 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ export SNOWFLAKE_PAT=abcd... ### 1. Download REST API specs for Snowflake and unzip to the `provider-dev/source` directory ```bash +rm -rf ./provider-dev/source/* wget https://github.com/snowflakedb/snowflake-rest-api-specs/archive/refs/heads/main.zip mkdir -p provider-dev/source unzip main.zip -d provider-dev/source @@ -57,7 +58,6 @@ bash ./bin/openapi-to-stackql.sh convert \ --skip common.yaml ``` -cortex-analyst.yaml,cortex-inference.yaml,cortex-search-service.yaml ### 5. Post process the specs Post process the specs to remove redundant reference paths: diff --git a/openapi_to_stackql/convert.py b/openapi_to_stackql/convert.py index a5b019a..d63e3f4 100644 --- a/openapi_to_stackql/convert.py +++ b/openapi_to_stackql/convert.py @@ -70,6 +70,12 @@ def run(input_dir: str, output_dir: str, config_path: str, provider_id: str, ser os.remove(file_path) print(f"🧹 Cleared all files in {services_path}") + # delete provider.yaml file + provider_manifest_file = os.path.join(output_dir, version, "provider.yaml") + if os.path.isfile(provider_manifest_file): + os.remove(provider_manifest_file) + print(f"🧹 Deleted {provider_manifest_file}") + manifest = load_manifest(config_path) provider_services = {} diff --git a/package-lock.json b/package-lock.json index 7b7fc40..5bed565 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "stackql-provider-snowflake", "version": "0.1.0", "dependencies": { - "@stackql/provider-utils": "^0.1.3" + "@stackql/provider-utils": "^0.1.4" }, "engines": { "node": ">=14.16.0" @@ -80,9 +80,9 @@ } }, "node_modules/@stackql/provider-utils": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@stackql/provider-utils/-/provider-utils-0.1.3.tgz", - "integrity": "sha512-iTLiiOO8Mii08dzbs7cx0GpJCpVYTsNk6R2LIYhODNsE/cZPNitTParuAL14vpjY7cGv0WIOgWTliT8R18/d2g==", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@stackql/provider-utils/-/provider-utils-0.1.4.tgz", + "integrity": "sha512-wf/RkjvjY5rDkEV8eQ5JDqVrJRBMWOb0e35A7hUnsYy32HjqZGP/hkVA8KL/n4Iq2j0aBvNTHzsrZidRyQRSew==", "license": "MIT", "dependencies": { "@apidevtools/swagger-parser": "^10.1.1", diff --git a/package.json b/package.json index a8b6910..87f336b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { - "@stackql/provider-utils": "^0.1.3" + "@stackql/provider-utils": "^0.1.4" }, "engines": { "node": ">=14.16.0" diff --git a/provider-dev/config/snowflake.csv b/provider-dev/config/snowflake.csv index 041db9a..91ba983 100644 --- a/provider-dev/config/snowflake.csv +++ b/provider-dev/config/snowflake.csv @@ -1,261 +1,261 @@ filename,path,verb,response_object,tags,stackql_service_name,stackql_resource_name,stackql_method_name,stackql_verb,operationId +database-role.yaml,/api/v2/databases/{database}/database-roles,post,,database-role,access,database_roles,create_database_role,insert,createDatabaseRole +database-role.yaml,/api/v2/databases/{database}/database-roles,get,DatabaseRole,database-role,access,database_roles,list_database_roles,select,listDatabaseRoles +database-role.yaml,/api/v2/databases/{database}/database-roles/{name},delete,,database-role,access,database_roles,delete_database_role,delete,deleteDatabaseRole +database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/future-grants,post,,database-role,access,future_grants,grant_future_privileges,insert,grantFuturePrivileges +database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/future-grants,get,Grant,database-role,access,future_grants,list_future_grants,select,listFutureGrants +database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/future-grants:revoke,post,,database-role,access,future_grants,revoke_future_grants,delete,revokeFutureGrants +database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/grants,post,,database-role,access,grants,grant_privileges,insert,grantPrivileges +database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/grants,get,Grant,database-role,access,grants,list_grants,select,listGrants +database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/grants:revoke,post,,database-role,access,grants,revoke_grants,delete,revokeGrants +database-role.yaml,/api/v2/databases/{database}/database-roles/{name}:clone,post,,database-role,access,database_roles,clone_database_role,,cloneDatabaseRole +grant.yaml,/api/v2/grants/{granteeType}/{granteeName},get,Grant,grant,access,grants_to,list_grants_to,select,listGrantsTo +grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{bulkGrantType}/{securableTypePlural}/{scopeType}/{scopeName}/privileges,post,,grant,access,privileges,grant_group_privilege,insert,grantGroupPrivilege +grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{bulkGrantType}/{securableTypePlural}/{scopeType}/{scopeName}/privileges/{privilege},delete,,grant,access,privileges,revoke_group_privilege,delete,revokeGroupPrivilege +grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{bulkGrantType}/{securableTypePlural}/{scopeType}/{scopeName}/privileges/{privilege}/grant-option,delete,,grant,access,grant_options,revoke_group_privilege_grant_option,delete,revokeGroupPrivilegeGrantOption +grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{securableType}/{securableName}/privileges,post,,grant,access,privileges,grant_privilege,insert,grantPrivilege +grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{securableType}/{securableName}/privileges/{privilege},delete,,grant,access,privileges,revoke_privilege,delete,revokePrivilege +grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{securableType}/{securableName}/privileges/{privilege}/grant-option,delete,,grant,access,grant_options,revoke_privilege_grant_option,delete,revokePrivilegeGrantOption +role.yaml,/api/v2/roles,post,,role,access,roles,create_role,insert,createRole +role.yaml,/api/v2/roles,get,Role,role,access,roles,list_roles,select,listRoles +role.yaml,/api/v2/roles/{name},delete,,role,access,roles,delete_role,delete,deleteRole +role.yaml,/api/v2/roles/{name}/future-grants,post,,role,access,future_grants,grant_future_privileges,insert,grantFuturePrivileges +role.yaml,/api/v2/roles/{name}/future-grants,get,Grant,role,access,future_grants,list_future_grants,select,listFutureGrants +role.yaml,/api/v2/roles/{name}/future-grants:revoke,post,,role,access,future_grants,revoke_future_grants,delete,revokeFutureGrants +role.yaml,/api/v2/roles/{name}/grants,post,,role,access,grants,grant_privileges,insert,grantPrivileges +role.yaml,/api/v2/roles/{name}/grants,get,Grant,role,access,grants,list_grants,select,listGrants +role.yaml,/api/v2/roles/{name}/grants:revoke,post,,role,access,grants,revoke_grants,delete,revokeGrants +role.yaml,/api/v2/roles/{name}/grants-of,get,GrantOf,role,access,grants_of,list_grants_of,select,listGrantsOf +role.yaml,/api/v2/roles/{name}/grants-on,get,GrantOn,role,access,grants_on,list_grants_on,select,listGrantsOn +user.yaml,/api/v2/users,post,,user,access,users,create_user,insert,createUser +user.yaml,/api/v2/users,get,User,user,access,users,list_users,select,listUsers +user.yaml,/api/v2/users/{name},delete,,user,access,users,delete_user,delete,deleteUser +user.yaml,/api/v2/users/{name},put,,user,access,users,create_or_alter_user,replace,createOrAlterUser +user.yaml,/api/v2/users/{name},get,User,user,access,users,fetch_user,select,fetchUser +user.yaml,/api/v2/users/{name}/grants,post,,user,access,grants,grant,insert,grant +user.yaml,/api/v2/users/{name}/grants,get,Grant,user,access,grants,list_grants,select,listGrants +user.yaml,/api/v2/users/{name}/grants:revoke,post,,user,access,grants,revoke_grants,delete,revokeGrants account.yaml,/api/v2/accounts,post,,account,account,accounts,create_account,insert,createAccount account.yaml,/api/v2/accounts,get,Account,account,account,accounts,list_accounts,select,listAccounts account.yaml,/api/v2/accounts/{name},delete,,account,account,accounts,delete_account,delete,deleteAccount account.yaml,/api/v2/accounts/{name}:undrop,post,,account,account,accounts,undrop_account,,UndropAccount -alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts,post,,alert,alert,alerts,create_alert,insert,createAlert -alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts,get,Alert,alert,alert,alerts,list_alerts,select,listAlerts -alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts/{name},delete,,alert,alert,alerts,delete_alert,delete,deleteAlert -alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts/{name},get,Alert,alert,alert,alerts,fetch_alert,select,fetchAlert -alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts/{name}:clone,post,,alert,alert,alerts,clone_alert,,cloneAlert -alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts/{name}:execute,post,,alert,alert,alerts,execute_alert,,executeAlert -api-integration.yaml,/api/v2/api-integrations,post,,api-integration,api_integration,api_integrations,create_api_integration,insert,createAPIIntegration -api-integration.yaml,/api/v2/api-integrations,get,ApiIntegration,api-integration,api_integration,api_integrations,list_api_integrations,select,listAPIIntegrations -api-integration.yaml,/api/v2/api-integrations/{name},delete,,api-integration,api_integration,api_integrations,delete_api_integration,delete,deleteAPIIntegration -api-integration.yaml,/api/v2/api-integrations/{name},put,,api-integration,api_integration,api_integrations,create_or_alter_api_integration,replace,createOrAlterAPIIntegration -api-integration.yaml,/api/v2/api-integrations/{name},get,ApiIntegration,api-integration,api_integration,api_integrations,fetch_api_integration,select,fetchAPIIntegration -catalog-integration.yaml,/api/v2/catalog-integrations,post,,catalog-integration,catalog_integration,catalog_integrations,create_catalog_integration,insert,createCatalogIntegration -catalog-integration.yaml,/api/v2/catalog-integrations,get,CatalogIntegration,catalog-integration,catalog_integration,catalog_integrations,list_catalog_integrations,select,listCatalogIntegrations -catalog-integration.yaml,/api/v2/catalog-integrations/{name},delete,,catalog-integration,catalog_integration,catalog_integrations,delete_catalog_integration,delete,deleteCatalogIntegration -catalog-integration.yaml,/api/v2/catalog-integrations/{name},get,CatalogIntegration,catalog-integration,catalog_integration,catalog_integrations,fetch_catalog_integration,select,fetchCatalogIntegration -compute-pool.yaml,/api/v2/compute-pools,post,,compute-pool,compute_pool,compute_pools,create_compute_pool,insert,createComputePool -compute-pool.yaml,/api/v2/compute-pools,get,ComputePool,compute-pool,compute_pool,compute_pools,list_compute_pools,select,listComputePools -compute-pool.yaml,/api/v2/compute-pools/{name},delete,,compute-pool,compute_pool,compute_pools,delete_compute_pool,delete,deleteComputePool -compute-pool.yaml,/api/v2/compute-pools/{name},put,,compute-pool,compute_pool,compute_pools,create_or_alter_compute_pool,replace,createOrAlterComputePool -compute-pool.yaml,/api/v2/compute-pools/{name},get,ComputePool,compute-pool,compute_pool,compute_pools,fetch_compute_pool,select,fetchComputePool -compute-pool.yaml,/api/v2/compute-pools/{name}:resume,post,,compute-pool,compute_pool,compute_pools,resume_compute_pool,,resumeComputePool -compute-pool.yaml,/api/v2/compute-pools/{name}:stopallservices,post,,compute-pool,compute_pool,compute_pools,stop_all_services_in_compute_pool_deprecated,,stopAllServicesInComputePoolDeprecated -compute-pool.yaml,/api/v2/compute-pools/{name}:stop-all-services,post,,compute-pool,compute_pool,compute_pools,stop_all_services_in_compute_pool,,stopAllServicesInComputePool -compute-pool.yaml,/api/v2/compute-pools/{name}:suspend,post,,compute-pool,compute_pool,compute_pools,suspend_compute_pool,,suspendComputePool -cortex-analyst.yaml,/api/v2/cortex/analyst/verified-query-suggestions,post,GenerateVerifiedQuerySuggestionsResponse,cortex-analyst,cortex_analyst,query_suggestions,generate_verified_query_suggestions,,generateVerifiedQuerySuggestions -cortex-analyst.yaml,/api/v2/cortex/analyst/feedback,post,,cortex-analyst,cortex_analyst,feedback,send_feedback,insert,sendFeedback -cortex-analyst.yaml,/api/v2/cortex/analyst/message,post,SendMessageResponse,cortex-analyst,cortex_analyst,messages,send_message,insert,sendMessage -cortex-analyst.yaml,/api/v2/cortex/analyst/token,get,TokenInfo,cortex-analyst,cortex_analyst,tokens,get_scoped_token,select,getScopedToken -cortex-inference.yaml,/api/v2/cortex/models,get,GetModelsResponse,cortex-inference,cortex_inference,models,get_models,select,getModels -cortex-inference.yaml,/api/v2/cortex/inference:complete,post,,cortex-inference,cortex_inference,inference,cortex_llm_inference_complete,,cortexLLMInferenceComplete -cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services,post,,cortex-search-service,cortex_search_service,search_services,create_cortex_search_service,insert,createCortexSearchService -cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services,get,CortexSearchService,cortex-search-service,cortex_search_service,search_services,list_cortex_search_services,select,listCortexSearchServices -cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name},delete,,cortex search service,cortex_search_service,search_services,delete_cortex_search_service,delete,deleteCortexSearchService -cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name},get,CortexSearchService,cortex-search-service,cortex_search_service,search_services,fetch_cortex_search_service,select,fetchCortexSearchService -cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name}:resume,post,,cortex-search-service,cortex_search_service,search_services,resume_cortex_search_service,,resumeCortexSearchService -cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name}:suspend,post,,cortex-search-service,cortex_search_service,search_services,suspend_cortex_search_service,,suspendCortexSearchService -cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{service_name}:query,post,QueryResponse,cortex-search-service,cortex_search_service,search_services,query_cortex_search_service,select,queryCortexSearchService -database.yaml,/api/v2/databases,post,,database,database,databases,create_database,insert,createDatabase -database.yaml,/api/v2/databases,get,Database,database,database,databases,list_databases,select,listDatabases -database.yaml,/api/v2/databases/{name},delete,,database,database,databases,delete_database,delete,deleteDatabase -database.yaml,/api/v2/databases/{name},put,,database,database,databases,create_or_alter_database,replace,createOrAlterDatabase -database.yaml,/api/v2/databases/{name},get,Database,database,database,databases,fetch_database,select,fetchDatabase -database.yaml,/api/v2/databases/{name}/failover:disable,post,,database,database,databases,disable_database_failover,,disableDatabaseFailover -database.yaml,/api/v2/databases/{name}/failover:enable,post,,database,database,databases,enable_database_failover,,enableDatabaseFailover -database.yaml,/api/v2/databases/{name}/failover:primary,post,,database,database,databases,primary_database_failover,,primaryDatabaseFailover -database.yaml,/api/v2/databases/{name}/replication:disable,post,,database,database,databases,disable_database_replication,,disableDatabaseReplication -database.yaml,/api/v2/databases/{name}/replication:enable,post,,database,database,databases,enable_database_replication,,enableDatabaseReplication -database.yaml,/api/v2/databases/{name}/replication:refresh,post,,database,database,databases,refresh_database_replication,,refreshDatabaseReplication -database.yaml,/api/v2/databases/{name}:clone,post,,database,database,databases,clone_database,,cloneDatabase -database.yaml,/api/v2/databases/{name}:from_share,post,,database,database,databases,create_database_from_share_deprecated,,createDatabaseFromShareDeprecated -database.yaml,/api/v2/databases/{name}:undrop,post,,database,database,databases,undrop_database,,undropDatabase -database.yaml,/api/v2/databases:from-share,post,,database,database,databases,create_database_from_share,,createDatabaseFromShare -database-role.yaml,/api/v2/databases/{database}/database-roles,post,,database-role,database_role,database_roles,create_database_role,insert,createDatabaseRole -database-role.yaml,/api/v2/databases/{database}/database-roles,get,DatabaseRole,database-role,database_role,database_roles,list_database_roles,select,listDatabaseRoles -database-role.yaml,/api/v2/databases/{database}/database-roles/{name},delete,,database-role,database_role,database_roles,delete_database_role,delete,deleteDatabaseRole -database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/future-grants,post,,database-role,database_role,future_grants,grant_future_privileges,insert,grantFuturePrivileges -database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/future-grants,get,Grant,database-role,database_role,future_grants,list_future_grants,select,listFutureGrants -database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/future-grants:revoke,post,,database-role,database_role,future_grants,revoke_future_grants,delete,revokeFutureGrants -database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/grants,post,,database-role,database_role,grants,grant_privileges,insert,grantPrivileges -database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/grants,get,Grant,database-role,database_role,grants,list_grants,select,listGrants -database-role.yaml,/api/v2/databases/{database}/database-roles/{name}/grants:revoke,post,,database-role,database_role,grants,revoke_grants,delete,revokeGrants -database-role.yaml,/api/v2/databases/{database}/database-roles/{name}:clone,post,,database-role,database_role,database_roles,clone_database_role,,cloneDatabaseRole -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables,post,,dynamic-table,dynamic_table,dynamic_tables,create_dynamic_table,insert,createDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables,get,DynamicTable,dynamic-table,dynamic_table,dynamic_tables,list_dynamic_tables,select,listDynamicTables -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name},delete,,dynamic-table,dynamic_table,dynamic_tables,delete_dynamic_table,delete,deleteDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name},get,DynamicTable,dynamic-table,dynamic_table,dynamic_tables,fetch_dynamic_table,select,fetchDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:clone,post,,dynamic-table,dynamic_table,dynamic_tables,clone_dynamic_table,,cloneDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:refresh,post,,dynamic-table,dynamic_table,dynamic_tables,refresh_dynamic_table,,refreshDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:resume,post,,dynamic-table,dynamic_table,dynamic_tables,resume_dynamic_table,,resumeDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:resume-recluster,post,,dynamic-table,dynamic_table,dynamic_tables,resume_recluster_dynamic_table,,resumeReclusterDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:suspend,post,,dynamic-table,dynamic_table,dynamic_tables,suspend_dynamic_table,,suspendDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:suspend-recluster,post,,dynamic-table,dynamic_table,dynamic_tables,suspend_recluster_dynamic_table,,suspendReclusterDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:swap-with,post,,dynamic-table,dynamic_table,dynamic_tables,swap_with_dynamic_table,,swapWithDynamicTable -dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:undrop,post,,dynamic-table,dynamic_table,dynamic_tables,undrop_dynamic_table,,undropDynamicTable -event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables,post,,event-table,event_table,event_tables,create_event_table,insert,createEventTable -event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables,get,EventTable,event-table,event_table,event_tables,list_event_tables,select,listEventTables -event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables/{name},delete,,event-table,event_table,event_tables,delete_event_table,delete,deleteEventTable -event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables/{name},get,EventTable,event-table,event_table,event_tables,fetch_event_table,select,fetchEventTable -event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables/{name}:rename,post,,event-table,event_table,event_tables,rename_event_table,,renameEventTable -external-volume.yaml,/api/v2/external-volumes,post,,external-volume,external_volume,external_volumes,create_external_volume,insert,createExternalVolume -external-volume.yaml,/api/v2/external-volumes,get,ExternalVolume,external-volume,external_volume,external_volumes,list_external_volumes,select,listExternalVolumes -external-volume.yaml,/api/v2/external-volumes/{name},delete,,external-volume,external_volume,external_volumes,delete_external_volume,delete,deleteExternalVolume -external-volume.yaml,/api/v2/external-volumes/{name},get,ExternalVolume,external-volume,external_volume,external_volumes,fetch_external_volume,select,fetchExternalVolume -external-volume.yaml,/api/v2/external-volumes/{name}:undrop,post,,external-volume,external_volume,external_volumes,undrop_external_volume,,undropExternalVolume -function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions,post,,function,function,functions,create_function,insert,createFunction -function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions,get,Function,function,function,functions,list_functions,select,listFunctions -function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions/{name}:execute,post,,function,function,functions,execute_function,,executeFunction -function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions/{nameWithArgs},delete,,function,function,functions,delete_function,delete,deleteFunction -function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions/{nameWithArgs},get,Function,function,function,functions,fetch_function,select,fetchFunction -grant.yaml,/api/v2/grants/{granteeType}/{granteeName},get,Grant,grant,grant,grants_to,list_grants_to,select,listGrantsTo -grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{bulkGrantType}/{securableTypePlural}/{scopeType}/{scopeName}/privileges,post,,grant,grant,privileges,grant_group_privilege,insert,grantGroupPrivilege -grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{bulkGrantType}/{securableTypePlural}/{scopeType}/{scopeName}/privileges/{privilege},delete,,grant,grant,privileges,revoke_group_privilege,delete,revokeGroupPrivilege -grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{bulkGrantType}/{securableTypePlural}/{scopeType}/{scopeName}/privileges/{privilege}/grant-option,delete,,grant,grant,grant_options,revoke_group_privilege_grant_option,delete,revokeGroupPrivilegeGrantOption -grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{securableType}/{securableName}/privileges,post,,grant,grant,privileges,grant_privilege,insert,grantPrivilege -grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{securableType}/{securableName}/privileges/{privilege},delete,,grant,grant,privileges,revoke_privilege,delete,revokePrivilege -grant.yaml,/api/v2/grants/{granteeType}/{granteeName}/{securableType}/{securableName}/privileges/{privilege}/grant-option,delete,,grant,grant,grant_options,revoke_privilege_grant_option,delete,revokePrivilegeGrantOption -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables,post,,iceberg-table,iceberg_table,iceberg_tables,create_snowflake_managed_iceberg_table,insert,createSnowflakeManagedIcebergTable -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables,get,IcebergTable,iceberg-table,iceberg_table,iceberg_tables,list_iceberg_tables,select,listIcebergTables -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name},delete,,iceberg-table,iceberg_table,iceberg_tables,drop_iceberg_table,delete,dropIcebergTable -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name},get,IcebergTable,iceberg-table,iceberg_table,iceberg_tables,fetch_iceberg_table,select,fetchIcebergTable -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:clone,post,,iceberg-table,iceberg_table,iceberg_tables,clone_snowflake_managed_iceberg_table,,cloneSnowflakeManagedIcebergTable -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:convert-to-managed,post,,iceberg-table,iceberg_table,iceberg_tables,convert_to_managed_iceberg_table,,convertToManagedIcebergTable -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:create-like,post,,iceberg-table,iceberg_table,iceberg_tables,create_snowflake_managed_iceberg_table_like,,createSnowflakeManagedIcebergTableLike -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:refresh,post,,iceberg-table,iceberg_table,iceberg_tables,refresh_iceberg_table,,refreshIcebergTable -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:resume-recluster,post,,iceberg-table,iceberg_table,iceberg_tables,resume_recluster_iceberg_table,,resumeReclusterIcebergTable -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:suspend-recluster,post,,iceberg-table,iceberg_table,iceberg_tables,suspend_recluster_iceberg_table,,suspendReclusterIcebergTable -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:undrop,post,,iceberg-table,iceberg_table,iceberg_tables,undrop_iceberg_table,,undropIcebergTable -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:as-select,post,,iceberg-table,iceberg_table,iceberg_tables,create_snowflake_managed_iceberg_table_as_select,,createSnowflakeManagedIcebergTableAsSelect -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:from-aws-glue-catalog,post,,iceberg-table,iceberg_table,iceberg_tables,create_unmanaged_iceberg_table_from_aws_glue_catalog,,createUnmanagedIcebergTableFromAWSGlueCatalog -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:from-delta,post,,iceberg-table,iceberg_table,iceberg_tables,create_unmanaged_iceberg_table_from_delta,,createUnmanagedIcebergTableFromDelta -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:from-iceberg-files,post,,iceberg-table,iceberg_table,iceberg_tables,create_unmanaged_iceberg_table_from_iceberg_files,,createUnmanagedIcebergTableFromIcebergFiles -iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:from-iceberg-rest,post,,iceberg-table,iceberg_table,iceberg_tables,create_unmanaged_iceberg_table_from_iceberg_rest,,createUnmanagedIcebergTableFromIcebergRest -image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories,post,,image-repository,image_repository,image_repositories,create_image_repository,insert,createImageRepository -image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories,get,ImageRepository,image-repository,image_repository,image_repositories,list_image_repositories,select,listImageRepositories -image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories/{name},delete,,image-repository,image_repository,image_repositories,delete_image_repository,delete,deleteImageRepository -image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories/{name},get,ImageRepository,image-repository,image_repository,image_repositories,fetch_image_repository,select,fetchImageRepository -image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories/{name}/images,get,Image,image-repository,image_repository,images,list_images_in_repository,select,listImagesInRepository -managed-account.yaml,/api/v2/managed-accounts,post,,managed-account,managed_account,managed_accounts,create_managed_account,insert,createManagedAccount -managed-account.yaml,/api/v2/managed-accounts,get,ManagedAccount,managed-account,managed_account,managed_accounts,list_managed_accounts,select,listManagedAccounts -managed-account.yaml,/api/v2/managed-accounts/{name},delete,,managed-account,managed_account,managed_accounts,delete_managed_account,delete,deleteManagedAccount -network-policy.yaml,/api/v2/network-policies,post,,network-policy,network_policy,network_policies,create_network_policy,insert,createNetworkPolicy -network-policy.yaml,/api/v2/network-policies,get,NetworkPolicy,network-policy,network_policy,network_policies,list_network_policies,select,listNetworkPolicies -network-policy.yaml,/api/v2/network-policies/{name},delete,,network-policy,network_policy,network_policies,delete_network_policy,delete,deleteNetworkPolicy -network-policy.yaml,/api/v2/network-policies/{name},get,NetworkPolicy,network-policy,network_policy,network_policies,fetch_network_policy,select,fetchNetworkPolicy -notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks,post,,notebook,notebook,notebooks,create_notebook,insert,createNotebook -notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks,get,Notebook,notebook,notebook,notebooks,list_notebooks,select,listNotebooks -notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name},delete,,notebook,notebook,notebooks,delete_notebook,delete,deleteNotebook -notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name},get,Notebook,notebook,notebook,notebooks,fetch_notebook,select,fetchNotebook -notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name}:add-live-version,post,,notebook,notebook,notebooks,add_live_version_notebook,,addLiveVersionNotebook -notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name}:commit,post,,notebook,notebook,notebooks,commit_notebook,,commitNotebook -notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name}:execute,post,,notebook,notebook,notebooks,execute_notebook,,executeNotebook -notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name}:rename,post,,notebook,notebook,notebooks,rename_notebook,,renameNotebook -notification-integration.yaml,/api/v2/notification-integrations,post,,notification-integration,notification_integration,notification_integrations,create_notification_integration,insert,createNotificationIntegration -notification-integration.yaml,/api/v2/notification-integrations,get,NotificationIntegration,notification-integration,notification_integration,notification_integrations,list_notification_integrations,select,listNotificationIntegrations -notification-integration.yaml,/api/v2/notification-integrations/{name},delete,,notification-integration,notification_integration,notification_integrations,delete_notification_integration,delete,deleteNotificationIntegration -notification-integration.yaml,/api/v2/notification-integrations/{name},get,NotificationIntegration,notification-integration,notification_integration,notification_integrations,fetch_notification_integration,select,fetchNotificationIntegration -pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes,post,,pipe,pipe,pipes,create_pipe,insert,createPipe -pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes,get,Pipe,pipe,pipe,pipes,list_pipes,select,listPipes -pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes/{name},delete,,pipe,pipe,pipes,delete_pipe,delete,deletePipe -pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes/{name},get,Pipe,pipe,pipe,pipes,fetch_pipe,select,fetchPipe -pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes/{name}:refresh,post,,pipe,pipe,pipes,refresh_pipe,,refreshPipe -procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures,post,,procedure,procedure,procedures,create_procedure,insert,createProcedure -procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures,get,Procedure,procedure,procedure,procedures,list_procedures,select,listProcedures -procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures/{nameWithArgs},delete,,procedure,procedure,procedures,delete_procedure,delete,deleteProcedure -procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures/{nameWithArgs},get,Procedure,procedure,procedure,procedures,fetch_procedure,select,fetchProcedure -procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures/{nameWithArgs}:call,post,,procedure,procedure,procedures,call_procedure,,callProcedure -result.yaml,/api/v2/results/{result_handler},get,,result,result,results,fetch_result,,fetchResult -role.yaml,/api/v2/roles,post,,role,role,roles,create_role,insert,createRole -role.yaml,/api/v2/roles,get,Role,role,role,roles,list_roles,select,listRoles -role.yaml,/api/v2/roles/{name},delete,,role,role,roles,delete_role,delete,deleteRole -role.yaml,/api/v2/roles/{name}/future-grants,post,,role,role,future_grants,grant_future_privileges,insert,grantFuturePrivileges -role.yaml,/api/v2/roles/{name}/future-grants,get,Grant,role,role,future_grants,list_future_grants,select,listFutureGrants -role.yaml,/api/v2/roles/{name}/future-grants:revoke,post,,role,role,future_grants,revoke_future_grants,delete,revokeFutureGrants -role.yaml,/api/v2/roles/{name}/grants,post,,role,role,grants,grant_privileges,insert,grantPrivileges -role.yaml,/api/v2/roles/{name}/grants,get,Grant,role,role,grants,list_grants,select,listGrants -role.yaml,/api/v2/roles/{name}/grants:revoke,post,,role,role,grants,revoke_grants,delete,revokeGrants -role.yaml,/api/v2/roles/{name}/grants-of,get,GrantOf,role,role,grants_of,list_grants_of,select,listGrantsOf -role.yaml,/api/v2/roles/{name}/grants-on,get,GrantOn,role,role,grants_on,list_grants_on,select,listGrantsOn -schema.yaml,/api/v2/databases/{database}/schemas,post,,schema,schema,schemas,create_schema,insert,createSchema -schema.yaml,/api/v2/databases/{database}/schemas,get,Schema,schema,schema,schemas,list_schemas,select,listSchemas -schema.yaml,/api/v2/databases/{database}/schemas/{name},delete,,schema,schema,schemas,delete_schema,delete,deleteSchema -schema.yaml,/api/v2/databases/{database}/schemas/{name},put,,schema,schema,schemas,create_or_alter_schema,replace,createOrAlterSchema -schema.yaml,/api/v2/databases/{database}/schemas/{name},get,Schema,schema,schema,schemas,fetch_schema,select,fetchSchema -schema.yaml,/api/v2/databases/{database}/schemas/{name}:clone,post,,schema,schema,schemas,clone_schema,,cloneSchema -schema.yaml,/api/v2/databases/{database}/schemas/{name}:undrop,post,,schema,schema,schemas,undrop_schema,,undropSchema -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services,post,,service,service,services,create_service,insert,createService -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services,get,Service,service,service,services,list_services,select,listServices -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name},delete,,service,service,services,delete_service,delete,deleteService -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name},put,SuccessResponse,service,service,services,create_or_alter_service,replace,createOrAlterService -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name},get,Service,service,service,services,fetch_service,select,fetchService -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/containers,get,ServiceContainer,service,service,containers,list_service_containers,select,listServiceContainers -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/endpoints,get,ServiceEndpoint,service,service,endpoints,show_service_endpoints,select,showServiceEndpoints -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/instances,get,ServiceInstance,service,service,instances,list_service_instances,select,listServiceInstances -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/logs,get,,service,service,logs,fetch_service_logs,select,fetchServiceLogs -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/roles,get,ServiceRole,service,service,roles,list_service_roles,select,listServiceRoles -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/status,get,,service,service,status,fetch_service_status,select,fetchServiceStatus -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}:resume,post,,service,service,services,resume_service,,resumeService -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}:suspend,post,,service,service,services,suspend_service,,suspendService -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{service}/roles/{name}/grants,get,ServiceRoleGrantTo,service,service,grants,list_service_role_grants_to,select,listServiceRoleGrantsTo -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{service}/roles/{name}/grants-of,get,GrantOf,service,service,grants_of,list_service_role_grants_of,select,listServiceRoleGrantsOf -service.yaml,/api/v2/databases/{database}/schemas/{schema}/services:execute-job,post,,service,service,services,execute_job_service,,executeJobService +managed-account.yaml,/api/v2/managed-accounts,post,,managed-account,account,managed_accounts,create_managed_account,insert,createManagedAccount +managed-account.yaml,/api/v2/managed-accounts,get,ManagedAccount,managed-account,account,managed_accounts,list_managed_accounts,select,listManagedAccounts +managed-account.yaml,/api/v2/managed-accounts/{name},delete,,managed-account,account,managed_accounts,delete_managed_account,delete,deleteManagedAccount +notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks,post,,notebook,analytics,notebooks,create_notebook,insert,createNotebook +notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks,get,Notebook,notebook,analytics,notebooks,list_notebooks,select,listNotebooks +notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name},delete,,notebook,analytics,notebooks,delete_notebook,delete,deleteNotebook +notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name},get,Notebook,notebook,analytics,notebooks,fetch_notebook,select,fetchNotebook +notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name}:add-live-version,post,,notebook,analytics,notebooks,add_live_version_notebook,,addLiveVersionNotebook +notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name}:commit,post,,notebook,analytics,notebooks,commit_notebook,,commitNotebook +notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name}:execute,post,,notebook,analytics,notebooks,execute_notebook,,executeNotebook +notebook.yaml,/api/v2/databases/{database}/schemas/{schema}/notebooks/{name}:rename,post,,notebook,analytics,notebooks,rename_notebook,,renameNotebook +database.yaml,/api/v2/databases,post,,database,catalog,databases,create_database,insert,createDatabase +database.yaml,/api/v2/databases,get,Database,database,catalog,databases,list_databases,select,listDatabases +database.yaml,/api/v2/databases/{name},delete,,database,catalog,databases,delete_database,delete,deleteDatabase +database.yaml,/api/v2/databases/{name},put,,database,catalog,databases,create_or_alter_database,replace,createOrAlterDatabase +database.yaml,/api/v2/databases/{name},get,Database,database,catalog,databases,fetch_database,select,fetchDatabase +database.yaml,/api/v2/databases/{name}/failover:disable,post,,database,catalog,databases,disable_database_failover,,disableDatabaseFailover +database.yaml,/api/v2/databases/{name}/failover:enable,post,,database,catalog,databases,enable_database_failover,,enableDatabaseFailover +database.yaml,/api/v2/databases/{name}/failover:primary,post,,database,catalog,databases,primary_database_failover,,primaryDatabaseFailover +database.yaml,/api/v2/databases/{name}/replication:disable,post,,database,catalog,databases,disable_database_replication,,disableDatabaseReplication +database.yaml,/api/v2/databases/{name}/replication:enable,post,,database,catalog,databases,enable_database_replication,,enableDatabaseReplication +database.yaml,/api/v2/databases/{name}/replication:refresh,post,,database,catalog,databases,refresh_database_replication,,refreshDatabaseReplication +database.yaml,/api/v2/databases/{name}:clone,post,,database,catalog,databases,clone_database,,cloneDatabase +database.yaml,/api/v2/databases/{name}:from_share,post,,database,catalog,databases,create_database_from_share_deprecated,,createDatabaseFromShareDeprecated +database.yaml,/api/v2/databases/{name}:undrop,post,,database,catalog,databases,undrop_database,,undropDatabase +database.yaml,/api/v2/databases:from-share,post,,database,catalog,databases,create_database_from_share,,createDatabaseFromShare +schema.yaml,/api/v2/databases/{database}/schemas,post,,schema,catalog,schemas,create_schema,insert,createSchema +schema.yaml,/api/v2/databases/{database}/schemas,get,Schema,schema,catalog,schemas,list_schemas,select,listSchemas +schema.yaml,/api/v2/databases/{database}/schemas/{name},delete,,schema,catalog,schemas,delete_schema,delete,deleteSchema +schema.yaml,/api/v2/databases/{database}/schemas/{name},put,,schema,catalog,schemas,create_or_alter_schema,replace,createOrAlterSchema +schema.yaml,/api/v2/databases/{database}/schemas/{name},get,Schema,schema,catalog,schemas,fetch_schema,select,fetchSchema +schema.yaml,/api/v2/databases/{database}/schemas/{name}:clone,post,,schema,catalog,schemas,clone_schema,,cloneSchema +schema.yaml,/api/v2/databases/{database}/schemas/{name}:undrop,post,,schema,catalog,schemas,undrop_schema,,undropSchema +compute-pool.yaml,/api/v2/compute-pools,post,,compute-pool,compute,compute_pools,create_compute_pool,insert,createComputePool +compute-pool.yaml,/api/v2/compute-pools,get,ComputePool,compute-pool,compute,compute_pools,list_compute_pools,select,listComputePools +compute-pool.yaml,/api/v2/compute-pools/{name},delete,,compute-pool,compute,compute_pools,delete_compute_pool,delete,deleteComputePool +compute-pool.yaml,/api/v2/compute-pools/{name},put,,compute-pool,compute,compute_pools,create_or_alter_compute_pool,replace,createOrAlterComputePool +compute-pool.yaml,/api/v2/compute-pools/{name},get,ComputePool,compute-pool,compute,compute_pools,fetch_compute_pool,select,fetchComputePool +compute-pool.yaml,/api/v2/compute-pools/{name}:resume,post,,compute-pool,compute,compute_pools,resume_compute_pool,,resumeComputePool +compute-pool.yaml,/api/v2/compute-pools/{name}:stopallservices,post,,compute-pool,compute,compute_pools,stop_all_services_in_compute_pool_deprecated,,stopAllServicesInComputePoolDeprecated +compute-pool.yaml,/api/v2/compute-pools/{name}:stop-all-services,post,,compute-pool,compute,compute_pools,stop_all_services_in_compute_pool,,stopAllServicesInComputePool +compute-pool.yaml,/api/v2/compute-pools/{name}:suspend,post,,compute-pool,compute,compute_pools,suspend_compute_pool,,suspendComputePool +image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories,post,,image-repository,compute,image_repositories,create_image_repository,insert,createImageRepository +image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories,get,ImageRepository,image-repository,compute,image_repositories,list_image_repositories,select,listImageRepositories +image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories/{name},delete,,image-repository,compute,image_repositories,delete_image_repository,delete,deleteImageRepository +image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories/{name},get,ImageRepository,image-repository,compute,image_repositories,fetch_image_repository,select,fetchImageRepository +image-repository.yaml,/api/v2/databases/{database}/schemas/{schema}/image-repositories/{name}/images,get,Image,image-repository,compute,images,list_images_in_repository,select,listImagesInRepository +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services,post,,service,compute,services,create_service,insert,createService +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services,get,Service,service,compute,services,list_services,select,listServices +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name},delete,,service,compute,services,delete_service,delete,deleteService +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name},put,SuccessResponse,service,compute,services,create_or_alter_service,replace,createOrAlterService +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name},get,Service,service,compute,services,fetch_service,select,fetchService +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/containers,get,ServiceContainer,service,compute,containers,list_service_containers,select,listServiceContainers +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/endpoints,get,ServiceEndpoint,service,compute,endpoints,show_service_endpoints,select,showServiceEndpoints +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/instances,get,ServiceInstance,service,compute,instances,list_service_instances,select,listServiceInstances +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/logs,get,,service,compute,logs,fetch_service_logs,select,fetchServiceLogs +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/roles,get,ServiceRole,service,compute,roles,list_service_roles,select,listServiceRoles +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}/status,get,,service,compute,status,fetch_service_status,select,fetchServiceStatus +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}:resume,post,,service,compute,services,resume_service,,resumeService +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{name}:suspend,post,,service,compute,services,suspend_service,,suspendService +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{service}/roles/{name}/grants,get,ServiceRoleGrantTo,service,compute,grants,list_service_role_grants_to,select,listServiceRoleGrantsTo +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services/{service}/roles/{name}/grants-of,get,GrantOf,service,compute,grants_of,list_service_role_grants_of,select,listServiceRoleGrantsOf +service.yaml,/api/v2/databases/{database}/schemas/{schema}/services:execute-job,post,,service,compute,services,execute_job_service,,executeJobService +warehouse.yaml,/api/v2/warehouses,post,,warehouse,compute,warehouses,create_warehouse,insert,createWarehouse +warehouse.yaml,/api/v2/warehouses,get,Warehouse,warehouse,compute,warehouses,list_warehouses,select,listWarehouses +warehouse.yaml,/api/v2/warehouses/{name},delete,,warehouse,compute,warehouses,delete_warehouse,delete,deleteWarehouse +warehouse.yaml,/api/v2/warehouses/{name},put,,warehouse,compute,warehouses,create_or_alter_warehouse,replace,createOrAlterWarehouse +warehouse.yaml,/api/v2/warehouses/{name},get,Warehouse,warehouse,compute,warehouses,fetch_warehouse,select,fetchWarehouse +warehouse.yaml,/api/v2/warehouses/{name}:abort,post,,warehouse,compute,warehouses,abort_all_queries_on_warehouse,,abortAllQueriesOnWarehouse +warehouse.yaml,/api/v2/warehouses/{name}:disable,post,,warehouse,compute,warehouses,disable_warehouse,,disableWarehouse +warehouse.yaml,/api/v2/warehouses/{name}:enable,post,,warehouse,compute,warehouses,enable_warehouse,,enableWarehouse +warehouse.yaml,/api/v2/warehouses/{name}:rename,post,,warehouse,compute,warehouses,rename_warehouse,,renameWarehouse +warehouse.yaml,/api/v2/warehouses/{name}:resume,post,,warehouse,compute,warehouses,resume_warehouse,,resumeWarehouse +warehouse.yaml,/api/v2/warehouses/{name}:suspend,post,,warehouse,compute,warehouses,suspend_warehouse,,suspendWarehouse +warehouse.yaml,/api/v2/warehouses/{name}:use,post,,warehouse,compute,warehouses,use_warehouse,,useWarehouse +cortex-analyst.yaml,/api/v2/cortex/analyst/verified-query-suggestions,post,GenerateVerifiedQuerySuggestionsResponse,cortex-analyst,cortex,query_suggestions,generate_verified_query_suggestions,,generateVerifiedQuerySuggestions +cortex-analyst.yaml,/api/v2/cortex/analyst/feedback,post,,cortex-analyst,cortex,feedback,send_feedback,insert,sendFeedback +cortex-analyst.yaml,/api/v2/cortex/analyst/message,post,SendMessageResponse,cortex-analyst,cortex,messages,send_message,insert,sendMessage +cortex-analyst.yaml,/api/v2/cortex/analyst/token,get,TokenInfo,cortex-analyst,cortex,tokens,get_scoped_token,select,getScopedToken +cortex-inference.yaml,/api/v2/cortex/models,get,GetModelsResponse,cortex-inference,cortex,models,get_models,select,getModels +cortex-inference.yaml,/api/v2/cortex/inference:complete,post,,cortex-inference,cortex,completions,cortex_llm_inference_complete,insert,cortexLLMInferenceComplete +cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services,post,,cortex-search-service,cortex,search_services,create_cortex_search_service,insert,createCortexSearchService +cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services,get,CortexSearchService,cortex-search-service,cortex,search_services,list_cortex_search_services,select,listCortexSearchServices +cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name},delete,,cortex search service,cortex,search_services,delete_cortex_search_service,delete,deleteCortexSearchService +cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name},get,CortexSearchService,cortex-search-service,cortex,search_services,fetch_cortex_search_service,select,fetchCortexSearchService +cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name}:resume,post,,cortex-search-service,cortex,search_services,resume_cortex_search_service,,resumeCortexSearchService +cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{name}:suspend,post,,cortex-search-service,cortex,search_services,suspend_cortex_search_service,,suspendCortexSearchService +cortex-search-service.yaml,/api/v2/databases/{database}/schemas/{schema}/cortex-search-services/{service_name}:query,post,QueryResponse,cortex-search-service,cortex,search_services,query_cortex_search_service,,queryCortexSearchService +pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes,post,,pipe,ingestion,pipes,create_pipe,insert,createPipe +pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes,get,Pipe,pipe,ingestion,pipes,list_pipes,select,listPipes +pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes/{name},delete,,pipe,ingestion,pipes,delete_pipe,delete,deletePipe +pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes/{name},get,Pipe,pipe,ingestion,pipes,fetch_pipe,select,fetchPipe +pipe.yaml,/api/v2/databases/{database}/schemas/{schema}/pipes/{name}:refresh,post,,pipe,ingestion,pipes,refresh_pipe,,refreshPipe +stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages,post,,stage,ingestion,stages,create_stage,insert,createStage +stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages,get,Stage,stage,ingestion,stages,list_stages,select,listStages +stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages/{name},delete,,stage,ingestion,stages,delete_stage,delete,deleteStage +stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages/{name},get,Stage,stage,ingestion,stages,fetch_stage,select,fetchStage +stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages/{name}/files,get,StageFile,stage,ingestion,stage_files,list_files,select,listFiles +stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages/{name}/files/{filePath}:presigned-url,post,FileTransferMaterial,stage,ingestion,presigned_url,get_presigned_url,select,getPresignedUrl +streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams,post,,stream,ingestion,streams,create_stream,insert,createStream +streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams,get,Stream,stream,ingestion,streams,list_streams,select,listStreams +streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams/{name},delete,,stream,ingestion,streams,delete_stream,delete,deleteStream +streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams/{name},get,Stream,stream,ingestion,streams,fetch_stream,select,fetchStream +streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams/{name}:clone,post,,stream,ingestion,streams,clone_stream,,cloneStream +api-integration.yaml,/api/v2/api-integrations,post,,api-integration,integration,api_integrations,create_api_integration,insert,createAPIIntegration +api-integration.yaml,/api/v2/api-integrations,get,ApiIntegration,api-integration,integration,api_integrations,list_api_integrations,select,listAPIIntegrations +api-integration.yaml,/api/v2/api-integrations/{name},delete,,api-integration,integration,api_integrations,delete_api_integration,delete,deleteAPIIntegration +api-integration.yaml,/api/v2/api-integrations/{name},put,,api-integration,integration,api_integrations,create_or_alter_api_integration,replace,createOrAlterAPIIntegration +api-integration.yaml,/api/v2/api-integrations/{name},get,ApiIntegration,api-integration,integration,api_integrations,fetch_api_integration,select,fetchAPIIntegration +catalog-integration.yaml,/api/v2/catalog-integrations,post,,catalog-integration,integration,catalog_integrations,create_catalog_integration,insert,createCatalogIntegration +catalog-integration.yaml,/api/v2/catalog-integrations,get,CatalogIntegration,catalog-integration,integration,catalog_integrations,list_catalog_integrations,select,listCatalogIntegrations +catalog-integration.yaml,/api/v2/catalog-integrations/{name},delete,,catalog-integration,integration,catalog_integrations,delete_catalog_integration,delete,deleteCatalogIntegration +catalog-integration.yaml,/api/v2/catalog-integrations/{name},get,CatalogIntegration,catalog-integration,integration,catalog_integrations,fetch_catalog_integration,select,fetchCatalogIntegration +external-volume.yaml,/api/v2/external-volumes,post,,external-volume,integration,external_volumes,create_external_volume,insert,createExternalVolume +external-volume.yaml,/api/v2/external-volumes,get,ExternalVolume,external-volume,integration,external_volumes,list_external_volumes,select,listExternalVolumes +external-volume.yaml,/api/v2/external-volumes/{name},delete,,external-volume,integration,external_volumes,delete_external_volume,delete,deleteExternalVolume +external-volume.yaml,/api/v2/external-volumes/{name},get,ExternalVolume,external-volume,integration,external_volumes,fetch_external_volume,select,fetchExternalVolume +external-volume.yaml,/api/v2/external-volumes/{name}:undrop,post,,external-volume,integration,external_volumes,undrop_external_volume,,undropExternalVolume +notification-integration.yaml,/api/v2/notification-integrations,post,,notification-integration,integration,notification_integrations,create_notification_integration,insert,createNotificationIntegration +notification-integration.yaml,/api/v2/notification-integrations,get,NotificationIntegration,notification-integration,integration,notification_integrations,list_notification_integrations,select,listNotificationIntegrations +notification-integration.yaml,/api/v2/notification-integrations/{name},delete,,notification-integration,integration,notification_integrations,delete_notification_integration,delete,deleteNotificationIntegration +notification-integration.yaml,/api/v2/notification-integrations/{name},get,NotificationIntegration,notification-integration,integration,notification_integrations,fetch_notification_integration,select,fetchNotificationIntegration +alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts,post,,alert,monitoring,alerts,create_alert,insert,createAlert +alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts,get,Alert,alert,monitoring,alerts,list_alerts,select,listAlerts +alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts/{name},delete,,alert,monitoring,alerts,delete_alert,delete,deleteAlert +alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts/{name},get,Alert,alert,monitoring,alerts,fetch_alert,select,fetchAlert +alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts/{name}:clone,post,,alert,monitoring,alerts,clone_alert,,cloneAlert +alert.yaml,/api/v2/databases/{database}/schemas/{schema}/alerts/{name}:execute,post,,alert,monitoring,alerts,execute_alert,,executeAlert +event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables,post,,event-table,monitoring,event_tables,create_event_table,insert,createEventTable +event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables,get,EventTable,event-table,monitoring,event_tables,list_event_tables,select,listEventTables +event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables/{name},delete,,event-table,monitoring,event_tables,delete_event_table,delete,deleteEventTable +event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables/{name},get,EventTable,event-table,monitoring,event_tables,fetch_event_table,select,fetchEventTable +event-table.yaml,/api/v2/databases/{database}/schemas/{schema}/event-tables/{name}:rename,post,,event-table,monitoring,event_tables,rename_event_table,,renameEventTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables,post,,dynamic-table,objects,dynamic_tables,create_dynamic_table,insert,createDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables,get,DynamicTable,dynamic-table,objects,dynamic_tables,list_dynamic_tables,select,listDynamicTables +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name},delete,,dynamic-table,objects,dynamic_tables,delete_dynamic_table,delete,deleteDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name},get,DynamicTable,dynamic-table,objects,dynamic_tables,fetch_dynamic_table,select,fetchDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:clone,post,,dynamic-table,objects,dynamic_tables,clone_dynamic_table,,cloneDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:refresh,post,,dynamic-table,objects,dynamic_tables,refresh_dynamic_table,,refreshDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:resume,post,,dynamic-table,objects,dynamic_tables,resume_dynamic_table,,resumeDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:resume-recluster,post,,dynamic-table,objects,dynamic_tables,resume_recluster_dynamic_table,,resumeReclusterDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:suspend,post,,dynamic-table,objects,dynamic_tables,suspend_dynamic_table,,suspendDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:suspend-recluster,post,,dynamic-table,objects,dynamic_tables,suspend_recluster_dynamic_table,,suspendReclusterDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:swap-with,post,,dynamic-table,objects,dynamic_tables,swap_with_dynamic_table,,swapWithDynamicTable +dynamic-table.yaml,/api/v2/databases/{database}/schemas/{schema}/dynamic-tables/{name}:undrop,post,,dynamic-table,objects,dynamic_tables,undrop_dynamic_table,,undropDynamicTable +function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions,post,,function,objects,functions,create_function,insert,createFunction +function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions,get,Function,function,objects,functions,list_functions,select,listFunctions +function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions/{name}:execute,post,,function,objects,functions,execute_function,,executeFunction +function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions/{nameWithArgs},delete,,function,objects,functions,delete_function,delete,deleteFunction +function.yaml,/api/v2/databases/{database}/schemas/{schema}/functions/{nameWithArgs},get,Function,function,objects,functions,fetch_function,select,fetchFunction +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables,post,,iceberg-table,objects,iceberg_tables,create_snowflake_managed_iceberg_table,insert,createSnowflakeManagedIcebergTable +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables,get,IcebergTable,iceberg-table,objects,iceberg_tables,list_iceberg_tables,select,listIcebergTables +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name},delete,,iceberg-table,objects,iceberg_tables,drop_iceberg_table,delete,dropIcebergTable +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name},get,IcebergTable,iceberg-table,objects,iceberg_tables,fetch_iceberg_table,select,fetchIcebergTable +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:clone,post,,iceberg-table,objects,iceberg_tables,clone_snowflake_managed_iceberg_table,,cloneSnowflakeManagedIcebergTable +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:convert-to-managed,post,,iceberg-table,objects,iceberg_tables,convert_to_managed_iceberg_table,,convertToManagedIcebergTable +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:create-like,post,,iceberg-table,objects,iceberg_tables,create_snowflake_managed_iceberg_table_like,,createSnowflakeManagedIcebergTableLike +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:refresh,post,,iceberg-table,objects,iceberg_tables,refresh_iceberg_table,,refreshIcebergTable +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:resume-recluster,post,,iceberg-table,objects,iceberg_tables,resume_recluster_iceberg_table,,resumeReclusterIcebergTable +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:suspend-recluster,post,,iceberg-table,objects,iceberg_tables,suspend_recluster_iceberg_table,,suspendReclusterIcebergTable +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables/{name}:undrop,post,,iceberg-table,objects,iceberg_tables,undrop_iceberg_table,,undropIcebergTable +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:as-select,post,,iceberg-table,objects,iceberg_tables,create_snowflake_managed_iceberg_table_as_select,,createSnowflakeManagedIcebergTableAsSelect +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:from-aws-glue-catalog,post,,iceberg-table,objects,iceberg_tables,create_unmanaged_iceberg_table_from_aws_glue_catalog,,createUnmanagedIcebergTableFromAWSGlueCatalog +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:from-delta,post,,iceberg-table,objects,iceberg_tables,create_unmanaged_iceberg_table_from_delta,,createUnmanagedIcebergTableFromDelta +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:from-iceberg-files,post,,iceberg-table,objects,iceberg_tables,create_unmanaged_iceberg_table_from_iceberg_files,,createUnmanagedIcebergTableFromIcebergFiles +iceberg-table.yaml,/api/v2/databases/{database}/schemas/{schema}/iceberg-tables:from-iceberg-rest,post,,iceberg-table,objects,iceberg_tables,create_unmanaged_iceberg_table_from_iceberg_rest,,createUnmanagedIcebergTableFromIcebergRest +procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures,post,,procedure,objects,procedures,create_procedure,insert,createProcedure +procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures,get,Procedure,procedure,objects,procedures,list_procedures,select,listProcedures +procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures/{nameWithArgs},delete,,procedure,objects,procedures,delete_procedure,delete,deleteProcedure +procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures/{nameWithArgs},get,Procedure,procedure,objects,procedures,fetch_procedure,select,fetchProcedure +procedure.yaml,/api/v2/databases/{database}/schemas/{schema}/procedures/{nameWithArgs}:call,post,,procedure,objects,procedures,call_procedure,,callProcedure +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables,post,,table,objects,tables,create_table,insert,createTable +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables,get,Table,table,objects,tables,list_tables,select,listTables +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name},delete,,table,objects,tables,delete_table,delete,deleteTable +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name},put,,table,objects,tables,create_or_alter_table,replace,createOrAlterTable +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name},get,Table,table,objects,tables,fetch_table,select,fetchTable +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:as_select,post,,table,objects,tables,create_table_as_select_deprecated,,createTableAsSelectDeprecated +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:clone,post,,table,objects,tables,clone_table,,cloneTable +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:create_like,post,,table,objects,tables,create_table_like_deprecated,,createTableLikeDeprecated +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:create-like,post,,table,objects,tables,create_table_like,,createTableLike +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:resume_recluster,post,,table,objects,tables,resume_recluster_table_deprecated,,resumeReclusterTableDeprecated +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:resume-recluster,post,,table,objects,tables,resume_recluster_table,,resumeReclusterTable +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:suspend_recluster,post,,table,objects,tables,suspend_recluster_table_deprecated,,suspendReclusterTableDeprecated +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:suspend-recluster,post,,table,objects,tables,suspend_recluster_table,,suspendReclusterTable +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:swapwith,post,,table,objects,tables,swap_with_table_deprecated,,swapWithTableDeprecated +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:swap-with,post,,table,objects,tables,swap_with_table,,swapWithTable +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:undrop,post,,table,objects,tables,undrop_table,,undropTable +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:using_template,post,,table,objects,tables,create_table_using_template_deprecated,,createTableUsingTemplateDeprecated +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables:as-select,post,,table,objects,tables,create_table_as_select,,createTableAsSelect +table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables:using-template,post,,table,objects,tables,create_table_using_template,,createTableUsingTemplate +user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions,post,,user-defined-function,objects,user_defined_functions,create_user_defined_function,insert,createUserDefinedFunction +user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions,get,UserDefinedFunction,user-defined-function,objects,user_defined_functions,list_user_defined_functions,select,listUserDefinedFunctions +user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions/{nameWithArgs},delete,,user-defined-function,objects,user_defined_functions,delete_user_defined_function,delete,deleteUserDefinedFunction +user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions/{nameWithArgs},get,UserDefinedFunction,user-defined-function,objects,user_defined_functions,fetch_user_defined_function,select,fetchUserDefinedFunction +user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions/{nameWithArgs}:rename,post,,user-defined-function,objects,user_defined_functions,rename_user_defined_function,,renameUserDefinedFunction +view.yaml,/api/v2/databases/{database}/schemas/{schema}/views,post,,view,objects,views,create_view,insert,createView +view.yaml,/api/v2/databases/{database}/schemas/{schema}/views,get,View,view,objects,views,list_views,select,listViews +view.yaml,/api/v2/databases/{database}/schemas/{schema}/views/{name},delete,,view,objects,views,delete_view,delete,deleteView +view.yaml,/api/v2/databases/{database}/schemas/{schema}/views/{name},get,View,view,objects,views,fetch_view,select,fetchView +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks,post,,task,scheduling,tasks,create_task,insert,createTask +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks,get,Task,task,scheduling,tasks,list_tasks,select,listTasks +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name},delete,,task,scheduling,tasks,delete_task,delete,deleteTask +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name},put,,task,scheduling,tasks,create_or_alter_task,replace,createOrAlterTask +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name},get,Task,task,scheduling,tasks,fetch_task,select,fetchTask +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/complete_graphs,get,TaskRun,task,scheduling,complete_graphs,get_complete_graphs_deprecated,select,getCompleteGraphsDeprecated +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/complete-graphs,get,TaskRun,task,scheduling,complete_graphs,get_complete_graphs,select,getCompleteGraphs +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/current_graphs,get,TaskRun,task,scheduling,current_graphs,get_current_graphs_deprecated,select,getCurrentGraphsDeprecated +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/current-graphs,get,TaskRun,task,scheduling,current_graphs,get_current_graphs,select,getCurrentGraphs +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/dependents,get,Task,task,scheduling,dependents,fetch_task_dependents,select,fetchTaskDependents +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}:execute,post,,task,scheduling,tasks,execute_task,,executeTask +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}:resume,post,,task,scheduling,tasks,resume_task,,resumeTask +task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}:suspend,post,,task,scheduling,tasks,suspend_task,,suspendTask +network-policy.yaml,/api/v2/network-policies,post,,network-policy,security,network_policies,create_network_policy,insert,createNetworkPolicy +network-policy.yaml,/api/v2/network-policies,get,NetworkPolicy,network-policy,security,network_policies,list_network_policies,select,listNetworkPolicies +network-policy.yaml,/api/v2/network-policies/{name},delete,,network-policy,security,network_policies,delete_network_policy,delete,deleteNetworkPolicy +network-policy.yaml,/api/v2/network-policies/{name},get,NetworkPolicy,network-policy,security,network_policies,fetch_network_policy,select,fetchNetworkPolicy +result.yaml,/api/v2/results/{result_handler},get,,result,sqlapi,results,fetch_result,,fetchResult sqlapi.yaml,/api/v2/statements,post,ResultSet,statements,sqlapi,statements,submit_statement,insert,SubmitStatement sqlapi.yaml,/api/v2/statements/{statementHandle},get,ResultSet,statements,sqlapi,statements,get_statement_status,select,GetStatementStatus sqlapi.yaml,/api/v2/statements/{statementHandle}/cancel,post,CancelStatus,statements,sqlapi,statements,cancel_statement,delete,CancelStatement -stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages,post,,stage,stage,stages,create_stage,insert,createStage -stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages,get,Stage,stage,stage,stages,list_stages,select,listStages -stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages/{name},delete,,stage,stage,stages,delete_stage,delete,deleteStage -stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages/{name},get,Stage,stage,stage,stages,fetch_stage,select,fetchStage -stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages/{name}/files,get,StageFile,stage,stage,files,list_files,select,listFiles -stage.yaml,/api/v2/databases/{database}/schemas/{schema}/stages/{name}/files/{filePath}:presigned-url,post,FileTransferMaterial,stage,stage,presigned_url,get_presigned_url,select,getPresignedUrl -streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams,post,,stream,stream,streams,create_stream,insert,createStream -streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams,get,Stream,stream,stream,streams,list_streams,select,listStreams -streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams/{name},delete,,stream,stream,streams,delete_stream,delete,deleteStream -streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams/{name},get,Stream,stream,stream,streams,fetch_stream,select,fetchStream -streams.yaml,/api/v2/databases/{database}/schemas/{schema}/streams/{name}:clone,post,,stream,stream,streams,clone_stream,,cloneStream -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables,post,,table,table,tables,create_table,insert,createTable -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables,get,Table,table,table,tables,list_tables,select,listTables -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name},delete,,table,table,tables,delete_table,delete,deleteTable -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name},put,,table,table,tables,create_or_alter_table,replace,createOrAlterTable -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name},get,Table,table,table,tables,fetch_table,select,fetchTable -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:as_select,post,,table,table,tables,create_table_as_select_deprecated,,createTableAsSelectDeprecated -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:clone,post,,table,table,tables,clone_table,,cloneTable -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:create_like,post,,table,table,tables,create_table_like_deprecated,,createTableLikeDeprecated -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:create-like,post,,table,table,tables,create_table_like,,createTableLike -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:resume_recluster,post,,table,table,tables,resume_recluster_table_deprecated,,resumeReclusterTableDeprecated -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:resume-recluster,post,,table,table,tables,resume_recluster_table,,resumeReclusterTable -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:suspend_recluster,post,,table,table,tables,suspend_recluster_table_deprecated,,suspendReclusterTableDeprecated -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:suspend-recluster,post,,table,table,tables,suspend_recluster_table,,suspendReclusterTable -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:swapwith,post,,table,table,tables,swap_with_table_deprecated,,swapWithTableDeprecated -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:swap-with,post,,table,table,tables,swap_with_table,,swapWithTable -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:undrop,post,,table,table,tables,undrop_table,,undropTable -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables/{name}:using_template,post,,table,table,tables,create_table_using_template_deprecated,,createTableUsingTemplateDeprecated -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables:as-select,post,,table,table,tables,create_table_as_select,,createTableAsSelect -table.yaml,/api/v2/databases/{database}/schemas/{schema}/tables:using-template,post,,table,table,tables,create_table_using_template,,createTableUsingTemplate -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks,post,,task,task,tasks,create_task,insert,createTask -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks,get,Task,task,task,tasks,list_tasks,select,listTasks -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name},delete,,task,task,tasks,delete_task,delete,deleteTask -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name},put,,task,task,tasks,create_or_alter_task,replace,createOrAlterTask -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name},get,Task,task,task,tasks,fetch_task,select,fetchTask -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/complete_graphs,get,TaskRun,task,task,complete_graphs,get_complete_graphs_deprecated,select,getCompleteGraphsDeprecated -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/complete-graphs,get,TaskRun,task,task,complete_graphs,get_complete_graphs,select,getCompleteGraphs -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/current_graphs,get,TaskRun,task,task,current_graphs,get_current_graphs_deprecated,select,getCurrentGraphsDeprecated -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/current-graphs,get,TaskRun,task,task,current_graphs,get_current_graphs,select,getCurrentGraphs -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}/dependents,get,Task,task,task,dependents,fetch_task_dependents,select,fetchTaskDependents -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}:execute,post,,task,task,tasks,execute_task,,executeTask -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}:resume,post,,task,task,tasks,resume_task,,resumeTask -task.yaml,/api/v2/databases/{database}/schemas/{schema}/tasks/{name}:suspend,post,,task,task,tasks,suspend_task,,suspendTask -user.yaml,/api/v2/users,post,,user,user,users,create_user,insert,createUser -user.yaml,/api/v2/users,get,User,user,user,users,list_users,select,listUsers -user.yaml,/api/v2/users/{name},delete,,user,user,users,delete_user,delete,deleteUser -user.yaml,/api/v2/users/{name},put,,user,user,users,create_or_alter_user,replace,createOrAlterUser -user.yaml,/api/v2/users/{name},get,User,user,user,users,fetch_user,select,fetchUser -user.yaml,/api/v2/users/{name}/grants,post,,user,user,grants,grant,insert,grant -user.yaml,/api/v2/users/{name}/grants,get,Grant,user,user,grants,list_grants,select,listGrants -user.yaml,/api/v2/users/{name}/grants:revoke,post,,user,user,grants,revoke_grants,delete,revokeGrants -user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions,post,,user-defined-function,user_defined_function,user_defined_functions,create_user_defined_function,insert,createUserDefinedFunction -user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions,get,UserDefinedFunction,user-defined-function,user_defined_function,user_defined_functions,list_user_defined_functions,select,listUserDefinedFunctions -user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions/{nameWithArgs},delete,,user-defined-function,user_defined_function,user_defined_functions,delete_user_defined_function,delete,deleteUserDefinedFunction -user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions/{nameWithArgs},get,UserDefinedFunction,user-defined-function,user_defined_function,user_defined_functions,fetch_user_defined_function,select,fetchUserDefinedFunction -user-defined-function.yaml,/api/v2/databases/{database}/schemas/{schema}/user-defined-functions/{nameWithArgs}:rename,post,,user-defined-function,user_defined_function,user_defined_functions,rename_user_defined_function,,renameUserDefinedFunction -view.yaml,/api/v2/databases/{database}/schemas/{schema}/views,post,,view,view,views,create_view,insert,createView -view.yaml,/api/v2/databases/{database}/schemas/{schema}/views,get,View,view,view,views,list_views,select,listViews -view.yaml,/api/v2/databases/{database}/schemas/{schema}/views/{name},delete,,view,view,views,delete_view,delete,deleteView -view.yaml,/api/v2/databases/{database}/schemas/{schema}/views/{name},get,View,view,view,views,fetch_view,select,fetchView -warehouse.yaml,/api/v2/warehouses,post,,warehouse,warehouse,warehouses,create_warehouse,insert,createWarehouse -warehouse.yaml,/api/v2/warehouses,get,Warehouse,warehouse,warehouse,warehouses,list_warehouses,select,listWarehouses -warehouse.yaml,/api/v2/warehouses/{name},delete,,warehouse,warehouse,warehouses,delete_warehouse,delete,deleteWarehouse -warehouse.yaml,/api/v2/warehouses/{name},put,,warehouse,warehouse,warehouses,create_or_alter_warehouse,replace,createOrAlterWarehouse -warehouse.yaml,/api/v2/warehouses/{name},get,Warehouse,warehouse,warehouse,warehouses,fetch_warehouse,select,fetchWarehouse -warehouse.yaml,/api/v2/warehouses/{name}:abort,post,,warehouse,warehouse,warehouses,abort_all_queries_on_warehouse,,abortAllQueriesOnWarehouse -warehouse.yaml,/api/v2/warehouses/{name}:disable,post,,warehouse,warehouse,warehouses,disable_warehouse,,disableWarehouse -warehouse.yaml,/api/v2/warehouses/{name}:enable,post,,warehouse,warehouse,warehouses,enable_warehouse,,enableWarehouse -warehouse.yaml,/api/v2/warehouses/{name}:rename,post,,warehouse,warehouse,warehouses,rename_warehouse,,renameWarehouse -warehouse.yaml,/api/v2/warehouses/{name}:resume,post,,warehouse,warehouse,warehouses,resume_warehouse,,resumeWarehouse -warehouse.yaml,/api/v2/warehouses/{name}:suspend,post,,warehouse,warehouse,warehouses,suspend_warehouse,,suspendWarehouse -warehouse.yaml,/api/v2/warehouses/{name}:use,post,,warehouse,warehouse,warehouses,use_warehouse,,useWarehouse diff --git a/provider-dev/docgen/provider-data/headerContent1.txt b/provider-dev/docgen/provider-data/headerContent1.txt index c408ab0..37a6760 100644 --- a/provider-dev/docgen/provider-data/headerContent1.txt +++ b/provider-dev/docgen/provider-data/headerContent1.txt @@ -11,6 +11,7 @@ keywords: description: Query, deploy and manage Snowflake resources using SQL custom_edit_url: null image: /img/providers/snowflake/stackql-snowflake-provider-featured-image.png +id: 'provider-intro' --- import CopyableCode from '@site/src/components/CopyableCode/CopyableCode'; diff --git a/provider-dev/scripts/post_process.py b/provider-dev/scripts/post_process.py index d84a9e2..defb488 100644 --- a/provider-dev/scripts/post_process.py +++ b/provider-dev/scripts/post_process.py @@ -1,10 +1,12 @@ import os -import sys import re +import sys services_dir = sys.argv[1] +# # Process all yaml files first for common replacements +# for filename in os.listdir(services_dir): if not filename.endswith('.yaml'): continue @@ -13,54 +15,36 @@ with open(file_path, 'r', encoding='utf-8') as f: content = f.read() - + # Common replacements for all files if './common.yaml' in content or 'common.yaml' in content: - content = content.replace('./common.yaml', "'").replace('common.yaml', "'") - - with open(file_path, 'w', encoding='utf-8') as f: - f.write(content) - print(f"✅ Replaced common.yaml references in: {filename}") + content = content.replace('./common.yaml', '').replace('common.yaml', '') -# Special processing for cortex-inference.yaml -cortex_file_path = os.path.join(services_dir, 'cortex-inference.yaml') -if os.path.exists(cortex_file_path): - with open(cortex_file_path, 'r', encoding='utf-8') as f: - content = f.read() - - # 1. Add the Any schema to components/schemas - if 'components:' in content and 'schemas:' in content: - # Find where to insert the Any schema - schemas_pattern = re.compile(r'(components:\s*\n\s*schemas:\s*\n)', re.MULTILINE) - match = schemas_pattern.search(content) - - if match: - any_schema = """ Any: - description: Generic schema that accepts any value - nullable: true - additionalProperties: true -""" - # Insert the Any schema after the schemas section start - content = content[:match.end()] + any_schema + content[match.end():] - print("✅ Added Any schema to components/schemas") - - # 2. Replace all references to common-cortex-tool.yaml - pattern = r'common-cortex-tool\.yaml#/components/schemas/[a-zA-Z0-9]+' - replacements = 0 - - for match in re.finditer(pattern, content): - content = content.replace(match.group(0), '#/components/schemas/Any') - replacements += 1 - - content = content.replace('#/components/schemas/Any', "'#/components/schemas/Any'") - - print(f"✅ Replaced {replacements} references to common-cortex-tool.yaml schemas") - - # Write the changes back to the file - with open(cortex_file_path, 'w', encoding='utf-8') as f: + # hack for this non existent file + if filename == "cortex-inference.yaml": + content = re.sub(r'common-cortex-tool\.yaml#/components/schemas/(\w+)', r"'#/components/schemas/\1'", content) + # pattern = r'common-cortex-tool\.yaml#/components/schemas/\w+' + # matches = re.findall(pattern, content) + + # if matches: + # print(f"\n=== MATCHES IN {filename} ===") + # for match in matches: + # print(f"Found: {match}") + # else: + # print(f"No matches found in {filename}") + + + lines = content.split('\n') + for i in range(len(lines)): + # Find all unquoted $ref entries and quote them (without escaping) + if '$ref: #' in lines[i] and not ('$ref: \'#' in lines[i] or '$ref: "#' in lines[i]): + ref_part = lines[i].split('$ref: ')[1] + lines[i] = lines[i].replace('$ref: ' + ref_part, '$ref: \'' + ref_part + '\'') + + content = '\n'.join(lines) + + with open(file_path, 'w', encoding='utf-8') as f: f.write(content) - print(f"✅ Updated cortex-inference.yaml") -else: - print("⚠️ cortex-inference.yaml not found in the specified directory") + print(f"✅ Replaced common.yaml references in: {filename}") print("✅ All processing completed") \ No newline at end of file diff --git a/provider-dev/scripts/pre_process.py b/provider-dev/scripts/pre_process.py index b32c8a4..4481d1e 100644 --- a/provider-dev/scripts/pre_process.py +++ b/provider-dev/scripts/pre_process.py @@ -5,6 +5,150 @@ import sys import copy +# declare custom inference schemas +custom_schemas = { + "TextContent": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["text"] + }, + "text": { + "type": "string" + } + }, + "required": ["type", "text"] + }, + "ToolResults": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["tool_results"] + }, + "tool_results": { + "type": "object", + "properties": { + "tool_use_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "content": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + "required": ["type", "tool_results"] + }, + "ToolUse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["tool_use"] + }, + "tool_use": { + "type": "object", + "properties": { + "tool_use_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "input": { + "type": "object" + } + } + } + }, + "required": ["type", "tool_use"] + }, + "StreamingTextContent": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["text"] + }, + "text": { + "type": "string" + } + }, + "required": ["type", "text"] + }, + "StreamingToolUse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["tool_use"] + }, + "tool_use": { + "type": "object", + "properties": { + "tool_use_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "input": { + "type": "object" + } + } + } + }, + "required": ["type", "tool_use"] + }, + "Tool": { + "type": "object", + "properties": { + "tool_spec": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "input_schema": { + "type": "object" + } + } + } + }, + "required": ["tool_spec"] + }, + "ToolChoice": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["auto", "required", "tool"] + }, + "name": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": ["type"] + } +} + def load_yaml(filepath): with open(filepath, "r", encoding="utf-8") as f: return yaml.safe_load(f) @@ -84,7 +228,12 @@ def run(input_dir, keywords_to_rename=None): # Merge components as in the original script merge_components(spec, common_spec) - + + if filename == "cortex-inference.yaml": + print(f"🔧 Adding schemas for: {filename}") + for schema_name, schema_def in custom_schemas.items(): + spec["components"]["schemas"][schema_name] = schema_def + # Rename path parameters in URL paths if 'paths' in spec: updated_paths = {} diff --git a/provider-dev/source/snowflake-rest-api-specs-main/specifications/cortex-inference.yaml b/provider-dev/source/snowflake-rest-api-specs-main/specifications/cortex-inference.yaml index 326c38b..033e03b 100644 --- a/provider-dev/source/snowflake-rest-api-specs-main/specifications/cortex-inference.yaml +++ b/provider-dev/source/snowflake-rest-api-specs-main/specifications/cortex-inference.yaml @@ -464,6 +464,120 @@ components: description: Downstream target lag allOf: - $ref: '#/components/schemas/TargetLag' + TextContent: + type: object + properties: + type: + type: string + enum: + - text + text: + type: string + required: + - type + - text + ToolResults: + type: object + properties: + type: + type: string + enum: + - tool_results + tool_results: + type: object + properties: + tool_use_id: + type: string + name: + type: string + content: + type: array + items: + type: object + required: + - type + - tool_results + ToolUse: + type: object + properties: + type: + type: string + enum: + - tool_use + tool_use: + type: object + properties: + tool_use_id: + type: string + name: + type: string + input: + type: object + required: + - type + - tool_use + StreamingTextContent: + type: object + properties: + type: + type: string + enum: + - text + text: + type: string + required: + - type + - text + StreamingToolUse: + type: object + properties: + type: + type: string + enum: + - tool_use + tool_use: + type: object + properties: + tool_use_id: + type: string + name: + type: string + input: + type: object + required: + - type + - tool_use + Tool: + type: object + properties: + tool_spec: + type: object + properties: + type: + type: string + name: + type: string + description: + type: string + input_schema: + type: object + required: + - tool_spec + ToolChoice: + type: object + properties: + type: + type: string + enum: + - auto + - required + - tool + name: + type: array + items: + type: string + required: + - type securitySchemes: KeyPair: type: http diff --git a/provider-dev/src/snowflake/v00.00.00000/services/cortex-inference.yaml b/provider-dev/src/snowflake/v00.00.00000/services/cortex-inference.yaml index f9753cb..bba23cb 100644 --- a/provider-dev/src/snowflake/v00.00.00000/services/cortex-inference.yaml +++ b/provider-dev/src/snowflake/v00.00.00000/services/cortex-inference.yaml @@ -81,10 +81,6 @@ paths: $ref: '#/components/responses/504GatewayTimeout' components: schemas: - Any: - description: Generic schema that accepts any value - nullable: true - additionalProperties: true GetModelsRequest: type: object properties: @@ -132,9 +128,9 @@ components: discriminator: propertyName: type mapping: - text: '#/components/schemas/Any' - tool_result: '#/components/schemas/Any' - tool_use: '#/components/schemas/Any' + text: '#/components/schemas/TextContent' + tool_result: '#/components/schemas/ToolResults' + tool_use: '#/components/schemas/ToolUse' required: - content minItems: 1 @@ -184,9 +180,9 @@ components: description: List of tools to be used during tool calling type: array items: - $ref: '#/components/schemas/Any' + $ref: '#/components/schemas/Tool' tool_choice: - $ref: '#/components/schemas/Any' + $ref: '#/components/schemas/ToolChoice' provisioned_throughput_id: type: string description: The provisioned throughput ID to be used with the request. @@ -244,8 +240,8 @@ components: discriminator: propertyName: type mapping: - text: '#/components/schemas/Any' - tool_use: '#/components/schemas/Any' + text: '#/components/schemas/TextContent' + tool_use: '#/components/schemas/ToolUse' usage: type: object title: Usage @@ -286,8 +282,8 @@ components: discriminator: propertyName: type mapping: - text: '#/components/schemas/Any' - tool_use: '#/components/schemas/Any' + text: '#/components/schemas/StreamingTextContent' + tool_use: '#/components/schemas/StreamingToolUse' Identifier: type: string description: A Snowflake object identifier. If the identifier contains spaces @@ -468,6 +464,120 @@ components: description: Downstream target lag allOf: - $ref: '#/components/schemas/TargetLag' + TextContent: + type: object + properties: + type: + type: string + enum: + - text + text: + type: string + required: + - type + - text + ToolResults: + type: object + properties: + type: + type: string + enum: + - tool_results + tool_results: + type: object + properties: + tool_use_id: + type: string + name: + type: string + content: + type: array + items: + type: object + required: + - type + - tool_results + ToolUse: + type: object + properties: + type: + type: string + enum: + - tool_use + tool_use: + type: object + properties: + tool_use_id: + type: string + name: + type: string + input: + type: object + required: + - type + - tool_use + StreamingTextContent: + type: object + properties: + type: + type: string + enum: + - text + text: + type: string + required: + - type + - text + StreamingToolUse: + type: object + properties: + type: + type: string + enum: + - tool_use + tool_use: + type: object + properties: + tool_use_id: + type: string + name: + type: string + input: + type: object + required: + - type + - tool_use + Tool: + type: object + properties: + tool_spec: + type: object + properties: + type: + type: string + name: + type: string + description: + type: string + input_schema: + type: object + required: + - tool_spec + ToolChoice: + type: object + properties: + type: + type: string + enum: + - auto + - required + - tool + name: + type: array + items: + type: string + required: + - type securitySchemes: KeyPair: type: http @@ -917,7 +1027,7 @@ components: id: snowflake.cortex_inference.models name: models title: Models - inference: + completions: methods: cortex_llm_inference_complete: operation: @@ -927,13 +1037,14 @@ components: openAPIDocKey: '200' sqlVerbs: select: [] - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/completions/methods/cortex_llm_inference_complete' update: [] delete: [] replace: [] - id: snowflake.cortex_inference.inference - name: inference - title: Inference + id: snowflake.cortex_inference.completions + name: completions + title: Completions security: - KeyPair: [] - ExternalOAuth: [] diff --git a/provider-dev/src/snowflake/v00.00.00000/services/cortex-search-service.yaml b/provider-dev/src/snowflake/v00.00.00000/services/cortex-search-service.yaml index 9b04948..c04c347 100644 --- a/provider-dev/src/snowflake/v00.00.00000/services/cortex-search-service.yaml +++ b/provider-dev/src/snowflake/v00.00.00000/services/cortex-search-service.yaml @@ -1301,7 +1301,6 @@ components: select: - $ref: '#/components/x-stackQL-resources/search_services/methods/list_cortex_search_services' - $ref: '#/components/x-stackQL-resources/search_services/methods/fetch_cortex_search_service' - - $ref: '#/components/x-stackQL-resources/search_services/methods/query_cortex_search_service' insert: - $ref: '#/components/x-stackQL-resources/search_services/methods/create_cortex_search_service' update: [] diff --git a/provider-dev/src/snowflake/v00.00.00000/services/stage.yaml b/provider-dev/src/snowflake/v00.00.00000/services/stage.yaml index 72cc8c9..86d7cb7 100644 --- a/provider-dev/src/snowflake/v00.00.00000/services/stage.yaml +++ b/provider-dev/src/snowflake/v00.00.00000/services/stage.yaml @@ -1147,7 +1147,7 @@ components: id: snowflake.stage.stages name: stages title: Stages - files: + stage_files: methods: list_files: operation: @@ -1157,14 +1157,14 @@ components: openAPIDocKey: '200' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/files/methods/list_files' + - $ref: '#/components/x-stackQL-resources/stage_files/methods/list_files' insert: [] update: [] delete: [] replace: [] - id: snowflake.stage.files - name: files - title: Files + id: snowflake.stage.stage_files + name: stage_files + title: Stage Files presigned_url: methods: get_presigned_url: diff --git a/website/docs/cortex_analyst/tokens/index.md b/website/docs/cortex_analyst/tokens/index.md index 4c6162d..2f6806b 100644 --- a/website/docs/cortex_analyst/tokens/index.md +++ b/website/docs/cortex_analyst/tokens/index.md @@ -39,8 +39,6 @@ The following fields are returned by `SELECT` queries: > -OK - diff --git a/website/docs/cortex_inference/completions/index.md b/website/docs/cortex_inference/completions/index.md new file mode 100644 index 0000000..29848f5 --- /dev/null +++ b/website/docs/cortex_inference/completions/index.md @@ -0,0 +1,218 @@ +--- +title: completions +hide_title: false +hide_table_of_contents: false +keywords: + - completions + - cortex_inference + - snowflake + - infrastructure-as-code + - configuration-as-data + - cloud inventory +description: Query, deploy and manage snowflake resources using SQL +custom_edit_url: null +image: /img/stackql-snowflake-provider-featured-image.png +--- + +import CopyableCode from '@site/src/components/CopyableCode/CopyableCode'; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +Creates, updates, deletes, gets or lists a completions resource. + +## Overview +
+ + + +
Namecompletions
TypeResource
Id
+ +## Fields + +The following fields are returned by `SELECT` queries: + +`SELECT` not supported for this resource, use `SHOW METHODS` to view available operations for the resource. + + +## Methods + +The following methods are available for this resource: + + + + + + + + + + + + + + + + + + + + +
NameAccessible byRequired ParamsOptional ParamsDescription
endpointPerform LLM text completion inference, similar to snowflake.cortex.Complete.
+ +## Parameters + +Parameters can be passed in the `WHERE` clause of a query. Check the [Methods](#methods) section to see which parameters are required or optional for each operation. + + + + + + + + + + + + + + + + +
NameDatatypeDescription
stringOrganization and Account Name (default: orgid-acctid)
+ +## `INSERT` examples + + + + +Perform LLM text completion inference, similar to snowflake.cortex.Complete. + +```sql +INSERT INTO snowflake.cortex_inference.completions ( +data__model, +data__messages, +data__temperature, +data__top_p, +data__max_tokens, +data__max_output_tokens, +data__response_format, +data__guardrails, +data__tools, +data__tool_choice, +data__provisioned_throughput_id, +data__sf-ml-xp-inflight-prompt-action, +data__sf-ml-xp-inflight-prompt-client-id, +data__sf-ml-xp-inflight-prompt-public-key, +data__stream, +endpoint +) +SELECT +'{{ model }}' --required, +'{{ messages }}' --required, +{{ temperature }}, +{{ top_p }}, +{{ max_tokens }}, +{{ max_output_tokens }}, +'{{ response_format }}', +'{{ guardrails }}', +'{{ tools }}', +'{{ tool_choice }}', +'{{ provisioned_throughput_id }}', +'{{ sf-ml-xp-inflight-prompt-action }}', +'{{ sf-ml-xp-inflight-prompt-client-id }}', +'{{ sf-ml-xp-inflight-prompt-public-key }}', +{{ stream }}, +'{{ endpoint }}' +; +``` + + + +```yaml +# Description fields are for documentation purposes +- name: completions + props: + - name: endpoint + value: string + description: Required parameter for the completions resource. + - name: model + value: string + description: > + The model name. See documentation for possible values. + + - name: messages + value: array + - name: temperature + value: number + description: > + Temperature controls the amount of randomness used in response generation. A higher temperature corresponds to more randomness. + + - name: top_p + value: number + description: > + Threshold probability for nucleus sampling. A higher top-p value increases the diversity of tokens that the model considers, while a lower value results in more predictable output. + + default: 1 + - name: max_tokens + value: integer + description: > + The maximum number of output tokens to produce. The default value is model-dependent. + + default: 4096 + - name: max_output_tokens + value: integer + description: > + Deprecated in favor of "max_tokens", which has identical behavior. + + - name: response_format + value: object + description: > + An object describing response format config for structured-output mode. + + - name: guardrails + value: object + description: > + Guardrails configuration + + - name: tools + value: array + description: > + List of tools to be used during tool calling + + - name: tool_choice + value: object + - name: provisioned_throughput_id + value: string + description: > + The provisioned throughput ID to be used with the request. + + - name: sf-ml-xp-inflight-prompt-action + value: string + description: > + Reserved + + - name: sf-ml-xp-inflight-prompt-client-id + value: string + description: > + Reserved + + - name: sf-ml-xp-inflight-prompt-public-key + value: string + description: > + Reserved + + - name: stream + value: boolean + description: > + Reserved + + default: true +``` + + diff --git a/website/docs/cortex_inference/index.md b/website/docs/cortex_inference/index.md index 0692313..418b314 100644 --- a/website/docs/cortex_inference/index.md +++ b/website/docs/cortex_inference/index.md @@ -25,7 +25,7 @@ total resources: __2__ ## Resources
models diff --git a/website/docs/cortex_inference/inference/index.md b/website/docs/cortex_inference/inference/index.md deleted file mode 100644 index f9533ba..0000000 --- a/website/docs/cortex_inference/inference/index.md +++ /dev/null @@ -1,118 +0,0 @@ ---- -title: inference -hide_title: false -hide_table_of_contents: false -keywords: - - inference - - cortex_inference - - snowflake - - infrastructure-as-code - - configuration-as-data - - cloud inventory -description: Query, deploy and manage snowflake resources using SQL -custom_edit_url: null -image: /img/stackql-snowflake-provider-featured-image.png ---- - -import CopyableCode from '@site/src/components/CopyableCode/CopyableCode'; -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -Creates, updates, deletes, gets or lists an inference resource. - -## Overview - - - - -
Nameinference
TypeResource
Id
- -## Fields - -The following fields are returned by `SELECT` queries: - -`SELECT` not supported for this resource, use `SHOW METHODS` to view available operations for the resource. - - -## Methods - -The following methods are available for this resource: - - - - - - - - - - - - - - - - - - - - -
NameAccessible byRequired ParamsOptional ParamsDescription
endpointPerform LLM text completion inference, similar to snowflake.cortex.Complete.
- -## Parameters - -Parameters can be passed in the `WHERE` clause of a query. Check the [Methods](#methods) section to see which parameters are required or optional for each operation. - - - - - - - - - - - - - - - - -
NameDatatypeDescription
stringOrganization and Account Name (default: orgid-acctid)
- -## Lifecycle Methods - - - - -Perform LLM text completion inference, similar to snowflake.cortex.Complete. - -```sql -EXEC snowflake.cortex_inference.inference.cortex_llm_inference_complete -@endpoint='{{ endpoint }}' --required -@@json= -'{ -"model": "{{ model }}", -"messages": "{{ messages }}", -"temperature": {{ temperature }}, -"top_p": {{ top_p }}, -"max_tokens": {{ max_tokens }}, -"max_output_tokens": {{ max_output_tokens }}, -"response_format": "{{ response_format }}", -"guardrails": "{{ guardrails }}", -"tools": "{{ tools }}", -"tool_choice": "{{ tool_choice }}", -"provisioned_throughput_id": "{{ provisioned_throughput_id }}", -"sf-ml-xp-inflight-prompt-action": "{{ sf-ml-xp-inflight-prompt-action }}", -"sf-ml-xp-inflight-prompt-client-id": "{{ sf-ml-xp-inflight-prompt-client-id }}", -"sf-ml-xp-inflight-prompt-public-key": "{{ sf-ml-xp-inflight-prompt-public-key }}", -"stream": {{ stream }} -}'; -``` - - diff --git a/website/docs/cortex_inference/models/index.md b/website/docs/cortex_inference/models/index.md index 5f6144d..b03668b 100644 --- a/website/docs/cortex_inference/models/index.md +++ b/website/docs/cortex_inference/models/index.md @@ -39,8 +39,6 @@ The following fields are returned by `SELECT` queries: > -OK - diff --git a/website/docs/cortex_search_service/search_services/index.md b/website/docs/cortex_search_service/search_services/index.md index a784294..524204d 100644 --- a/website/docs/cortex_search_service/search_services/index.md +++ b/website/docs/cortex_search_service/search_services/index.md @@ -35,8 +35,7 @@ The following fields are returned by `SELECT` queries: defaultValue="list_cortex_search_services" values={[ { label: 'list_cortex_search_services', value: 'list_cortex_search_services' }, - { label: 'fetch_cortex_search_service', value: 'fetch_cortex_search_service' }, - { label: 'query_cortex_search_service', value: 'query_cortex_search_service' } + { label: 'fetch_cortex_search_service', value: 'fetch_cortex_search_service' } ]} > @@ -241,32 +240,6 @@ A Snowflake cortex search service object.
- - -Search results. - - - - - - - - - - - - - - - - - - - - - -
NameDatatypeDescription
stringID of the request.
arrayList of result rows.
-
## Methods @@ -298,13 +271,6 @@ The following methods are available for this resource: Fetch a Cortex Search Service. - - - - database_name, schema_name, service_name, endpoint - - Query a Cortex Search Service to get search results. - @@ -319,6 +285,13 @@ The following methods are available for this resource: ifExists Delete a cortex search service with the given name. If ifExists is used, the operation will succeed even if the object does not exist. Otherwise, there will be a failure if the drop is unsuccessful. + + + + database_name, schema_name, service_name, endpoint + + Query a Cortex Search Service to get search results. + @@ -413,8 +386,7 @@ Parameters can be passed in the `WHERE` clause of a query. Check the [Methods](# defaultValue="list_cortex_search_services" values={[ { label: 'list_cortex_search_services', value: 'list_cortex_search_services' }, - { label: 'fetch_cortex_search_service', value: 'fetch_cortex_search_service' }, - { label: 'query_cortex_search_service', value: 'query_cortex_search_service' } + { label: 'fetch_cortex_search_service', value: 'fetch_cortex_search_service' } ]} > @@ -479,21 +451,6 @@ AND name = '{{ name }}' -- required AND endpoint = '{{ endpoint }}' -- required; ``` - - -Query a Cortex Search Service to get search results. - -```sql -SELECT -request_id, -results -FROM snowflake.cortex_search_service.search_services -WHERE database_name = '{{ database_name }}' -- required -AND schema_name = '{{ schema_name }}' -- required -AND service_name = '{{ service_name }}' -- required -AND endpoint = '{{ endpoint }}' -- required; -``` - @@ -641,12 +598,35 @@ AND ifExists = '{{ ifExists }}'; ## Lifecycle Methods + + +Query a Cortex Search Service to get search results. + +```sql +EXEC snowflake.cortex_search_service.search_services.query_cortex_search_service +@database_name='{{ database_name }}' --required, +@schema_name='{{ schema_name }}' --required, +@service_name='{{ service_name }}' --required, +@endpoint='{{ endpoint }}' --required +@@json= +'{ +"query": "{{ query }}", +"multi_index_query": "{{ multi_index_query }}", +"columns": "{{ columns }}", +"filter": "{{ filter }}", +"limit": {{ limit }}, +"scoring_config": "{{ scoring_config }}", +"experimental": "{{ experimental }}" +}'; +``` + Suspends one or both of the indexing or serving targets of a cortex search service. diff --git a/website/docs/index.md b/website/docs/index.md index ed5a97c..481c9db 100644 --- a/website/docs/index.md +++ b/website/docs/index.md @@ -10,22 +10,22 @@ keywords: - cloud inventory description: Query, deploy and manage Snowflake resources using SQL custom_edit_url: null -image: /img/stackql-snowflake-provider-featured-image.png -id: provider-intro +image: /img/providers/snowflake/stackql-snowflake-provider-featured-image.png +id: 'provider-intro' --- import CopyableCode from '@site/src/components/CopyableCode/CopyableCode'; Snowflake for managing data warehousing, analytics, and secure data sharing with scalable cloud-native architecture and pay-as-you-go pricing. - - -:::info[Provider Summary] - -total services: __36__ -total resources: __99__ - -::: - + + +:::info[Provider Summary] + +total services: __36__ +total resources: __99__ + +::: + See also: [[` SHOW `]](https://stackql.io/docs/language-spec/show) [[` DESCRIBE `]](https://stackql.io/docs/language-spec/describe) [[` REGISTRY `]](https://stackql.io/docs/language-spec/registry) * * * @@ -68,48 +68,48 @@ stackql.exe shell --auth=$Auth ``` - - -## Services - + + +## Services + diff --git a/website/docs/stage/index.md b/website/docs/stage/index.md index 7e8d97f..66bb14f 100644 --- a/website/docs/stage/index.md +++ b/website/docs/stage/index.md @@ -25,8 +25,8 @@ total resources: __3__ ## Resources
stages diff --git a/website/docs/stage/files/index.md b/website/docs/stage/stage_files/index.md similarity index 93% rename from website/docs/stage/files/index.md rename to website/docs/stage/stage_files/index.md index 7350cb3..18cc0c8 100644 --- a/website/docs/stage/files/index.md +++ b/website/docs/stage/stage_files/index.md @@ -1,9 +1,9 @@ --- -title: files +title: stage_files hide_title: false hide_table_of_contents: false keywords: - - files + - stage_files - stage - snowflake - infrastructure-as-code @@ -18,13 +18,13 @@ import CopyableCode from '@site/src/components/CopyableCode/CopyableCode'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -Creates, updates, deletes, gets or lists a files resource. +Creates, updates, deletes, gets or lists a stage_files resource. ## Overview - + - +
Namefiles
Namestage_files
TypeResource
Id
Id
## Fields @@ -159,7 +159,7 @@ name, last_modified, md5, size -FROM snowflake.stage.files +FROM snowflake.stage.stage_files WHERE database_name = '{{ database_name }}' -- required AND schema_name = '{{ schema_name }}' -- required AND name = '{{ name }}' -- required diff --git a/website/static/img/docusaurus-social-card.jpg b/website/static/img/docusaurus-social-card.jpg deleted file mode 100644 index ffcb448..0000000 Binary files a/website/static/img/docusaurus-social-card.jpg and /dev/null differ diff --git a/website/static/img/docusaurus.png b/website/static/img/docusaurus.png deleted file mode 100644 index f458149..0000000 Binary files a/website/static/img/docusaurus.png and /dev/null differ diff --git a/website/static/img/undraw_docusaurus_mountain.svg b/website/static/img/undraw_docusaurus_mountain.svg deleted file mode 100644 index af961c4..0000000 --- a/website/static/img/undraw_docusaurus_mountain.svg +++ /dev/null @@ -1,171 +0,0 @@ - - Easy to Use - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/website/static/img/undraw_docusaurus_react.svg b/website/static/img/undraw_docusaurus_react.svg deleted file mode 100644 index 94b5cf0..0000000 --- a/website/static/img/undraw_docusaurus_react.svg +++ /dev/null @@ -1,170 +0,0 @@ - - Powered by React - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/website/static/img/undraw_docusaurus_tree.svg b/website/static/img/undraw_docusaurus_tree.svg deleted file mode 100644 index d9161d3..0000000 --- a/website/static/img/undraw_docusaurus_tree.svg +++ /dev/null @@ -1,40 +0,0 @@ - - Focus on What Matters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -