// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 package resource // MetadataRequest represents a request for the Resource to return metadata, // such as its type name. An instance of this request struct is supplied as // an argument to the Resource type Metadata method. type MetadataRequest struct { // ProviderTypeName is the string returned from // [provider.MetadataResponse.TypeName], if the Provider type implements // the Metadata method. This string should prefix the Resource type name // with an underscore in the response. ProviderTypeName string } // MetadataResponse represents a response to a MetadataRequest. An // instance of this response struct is supplied as an argument to the // Resource type Metadata method. type MetadataResponse struct { // TypeName should be the full resource type, including the provider // type prefix and an underscore. For example, examplecloud_thing. TypeName string }