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

values:
  google_cloudfunctions2_function.function:
    build_config:
    - source:
      - repo_source: []
        storage_source:
        - bucket: bucket
          object: sample-function.zip
    name: test-cf-vpc
    project: test-project
    location: region
    service_config:
    - service_account_email: test-cf-vpc@test-project.iam.gserviceaccount.com
      vpc_connector: projects/test-project/locations/region/connectors/vpc-connector
      vpc_connector_egress_settings: ALL_TRAFFIC

counts:
  google_cloudfunctions2_function: 1

outputs:
  bucket: null
  bucket_name: bucket
  function: __missing__
  function_name: test-cf-vpc
  id: __missing__
  invoke_command: __missing__
  service_account: __missing__
  service_account_email: test-cf-vpc@test-project.iam.gserviceaccount.com
  service_account_iam_email: serviceAccount:test-cf-vpc@test-project.iam.gserviceaccount.com
  vpc_connector: null
