diff --git a/src/v1beta1/doc/google/cloud/asset/v1beta1/doc_assets.js b/src/v1beta1/doc/google/cloud/asset/v1beta1/doc_assets.js index de6df65b..a3fc72ca 100644 --- a/src/v1beta1/doc/google/cloud/asset/v1beta1/doc_assets.js +++ b/src/v1beta1/doc/google/cloud/asset/v1beta1/doc_assets.js @@ -102,7 +102,7 @@ const Asset = { * @property {string} discoveryDocumentUri * The URL of the discovery document containing the resource's JSON schema. * For example: - * `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. + * [`"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`](https://www.googleapis.com/discovery/v1/apis/compute/v1/rest). * It will be left unspecified for resources without a discovery-based API, * such as Cloud Bigtable. * @@ -141,4 +141,4 @@ const Asset = { */ const Resource = { // This is for documentation. Actual contents will be loaded by gRPC. -}; \ No newline at end of file +}; diff --git a/synth.py b/synth.py index e943f386..d99c9cd7 100644 --- a/synth.py +++ b/synth.py @@ -34,6 +34,11 @@ s.copy(templates) # [START fix-dead-link] +discovery_url = 'https://www.googleapis.com/discovery/v1/apis/compute/v1/rest' +s.replace('**/doc/google/cloud/asset/v1beta1/doc_assets.js', + f'`"{discovery_url}"`' + f'[`"{discovery_url}"`]({discovery_url})') + s.replace('**/doc/google/protobuf/doc_timestamp.js', 'https:\/\/cloud\.google\.com[\s\*]*http:\/\/(.*)[\s\*]*\)', r"https://\1)")