MMv1 metadata reference#
This page documents all properties for metadata. Metadata does not impact the provider itself, but is used by Google internally for coverage metrics.
Required#
resource#
The name of the Terraform resource. For example, “google_cloudfunctions2_function”.
generation_type#
The generation method used to create the Terraform resource. For example, “mmv1”, “dcl”, “handwritten”.
Optional#
api_service_name#
The base name of the API used for this resource. For example, “cloudfunctions.googleapis.com”.
api_version#
The version of the API used for this resource. For example, “v2”.
api_resource_type_kind#
The API “resource type kind” used for this resource. For example, “Function”.
cai_asset_name_format#
The custom CAI asset name format for this resource is typically specified (for example, //cloudsql.googleapis.com/projects/{{project}}/instances/{{name}}). This should only have a value if it’s different than the Terraform resource ID format.
api_variant_patterns#
The API URL patterns used by this resource that represent variants. For example, “folders/{folder}/feeds/{feed}”. Each pattern must match the value defined in the API exactly. The use of api_variant_patterns is only meaningful when the resource type has multiple parent types available.
fields#
The list of fields used by this resource. Each field can contain the following attributes:
api_field: The name of the field in the REST API, including the path. For example, “buildConfig.source.storageSource.bucket”.field: The name of the field in Terraform, including the path. For example, “build_config.source.storage_source.bucket”. Defaults to the value ofapi_fieldconverted to snake_case.provider_only: If true, the field is only present in the provider. This primarily applies for virtual fields and url-only parameters. When set to true,fieldshould be set andapi_fieldshould be left empty. Default:false.json: If true, this is a JSON field which “covers” all child API fields. As a special case, JSON fields which cover an entire resource can haveapi_fieldset to*.