# Copyright 2023 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.

values:
  module.gateway.google_api_gateway_api.api:
    api_id: api
    display_name: api
    labels: null
    project: my-project
  module.gateway.google_api_gateway_api_config.api_config:
    api: api
    gateway_config:
    - backend_config:
      - google_service_account: sa@my-project.iam.gserviceaccount.com
    grpc_services: []
    labels: null
    managed_service_configs: []
    project: my-project
  module.gateway.google_api_gateway_api_config_iam_binding.api_config_iam_bindings["roles/apigateway.admin"]:
    api: api
    api_config: api-cfg-api-8656c6040d6d9ba18a8b9b5f3955c223
    condition: []
    members:
    - user:user@example.com
    project: my-project
    role: roles/apigateway.admin
  module.gateway.google_api_gateway_api_iam_binding.api_iam_bindings["roles/apigateway.admin"]:
    api: api
    condition: []
    members:
    - user:user@example.com
    project: my-project
    role: roles/apigateway.admin
  module.gateway.google_api_gateway_gateway.gateway:
    display_name: gw-api
    gateway_id: gw-api
    labels: null
    project: my-project
    region: europe-west1
  module.gateway.google_api_gateway_gateway_iam_binding.gateway_iam_bindings["roles/apigateway.admin"]:
    condition: []
    gateway: gw-api
    members:
    - user:user@example.com
    project: my-project
    region: europe-west1
    role: roles/apigateway.admin
  module.gateway.google_project_service.service:
    disable_dependent_services: true
    disable_on_destroy: true
    project: my-project

counts:
  google_api_gateway_api: 1
  google_api_gateway_api_config: 1
  google_api_gateway_api_config_iam_binding: 1
  google_api_gateway_api_iam_binding: 1
  google_api_gateway_gateway: 1
  google_api_gateway_gateway_iam_binding: 1
  google_project_service: 1
