# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

sources:
  cloud-sql-admin-source:
    kind: cloud-sql-admin
    defaultProject: ${CLOUD_SQL_MSSQL_PROJECT:}

tools:
  create_instance:
    kind: cloud-sql-mssql-create-instance
    source: cloud-sql-admin-source
  get_instance:
    kind: cloud-sql-get-instance
    source: cloud-sql-admin-source
  list_instances:
    kind: cloud-sql-list-instances
    source: cloud-sql-admin-source
  create_database:
    kind: cloud-sql-create-database
    source: cloud-sql-admin-source
  list_databases:
    kind: cloud-sql-list-databases
    source: cloud-sql-admin-source
  create_user:
    kind: cloud-sql-create-users
    source: cloud-sql-admin-source
  wait_for_operation:
    kind: cloud-sql-wait-for-operation
    source: cloud-sql-admin-source
    multiplier: 4
  clone_instance:
    kind: cloud-sql-clone-instance
    source: cloud-sql-admin-source

toolsets:
  cloud_sql_mssql_admin_tools:
    - create_instance
    - get_instance
    - list_instances
    - create_database
    - list_databases
    - create_user
    - wait_for_operation
    - clone_instance
