From 359f0633f8cb49df1420b0651491335916cff27d Mon Sep 17 00:00:00 2001 From: yupwei68 Date: Tue, 23 Jun 2020 10:29:58 +0800 Subject: [PATCH] update --- provider/CONTRIBUTE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/CONTRIBUTE.md b/provider/CONTRIBUTE.md index 0b32035c..e12b39b4 100644 --- a/provider/CONTRIBUTE.md +++ b/provider/CONTRIBUTE.md @@ -206,7 +206,7 @@ The file for a data source is named following the convention: *NAME_OF_THE_DATA_ A data source is composed of two relevant functions: -- The function that creates a `schema.Resource` object that returns the schema (definition) of the data source,i.e. the property that compose the data source, and some rules about those properties. You only need to provide required properties to locate that resource, and mark all other properties returned from the service as `Computed`. This function is named by convention dataSource*NAME_OF_THE_DATA_SOURCE*, for example `dataSourceArmBatchAccount` for a Batch Account. +- The function that creates a `schema.Resource` object that returns the schema (definition) of the data source,i.e. the property that compose the data source, and some rules about those properties. You only need to provide required properties to locate that resource, and mark all other properties returned from the service as `Computed`. This function is named by convention dataSourceArm*NAME_OF_THE_DATA_SOURCE*, for example `dataSourceArmBatchAccount` for a Batch Account. - The function that retrieves the data from Azure using the Azure SDK for Go client and set all the values related to the data source. This function is named by convention dataSourceArm*NAME_OF_THE_DATA_SOURCE*Read, for example `dataSourceArmBatchAccountRead` for a Batch Account. This function takes a `schema.ResourceData` in parameter. You can get the name of the object to retrieve and any property that is defined by the user on that object: