@@ -401,11 +401,11 @@ def _create_repo_metadata_from_service_config(
401401 with open (full_service_config_path , "r" ) as f :
402402 service_config = yaml .safe_load (f )
403403
404+ api_id = service_config .get ("name" , {})
404405 publishing = service_config .get ("publishing" , {})
405406 name_pretty = service_config .get ("title" , "" )
406- product_documentation = publishing .get ("product_documentation " , "" )
407+ product_documentation = publishing .get ("documentation_uri " , "" )
407408 api_shortname = service_config .get ("name" , "" ).split ("." )[0 ]
408- distribution_name = publishing .get ("library_name" , library_id )
409409 documentation = service_config .get ("documentation" , {})
410410 api_description = documentation .get ("summary" , "" )
411411 issue_tracker = service_config .get ("new_issue_uri" , "https://github.com/googleapis/google-cloud-python/issues" )
@@ -419,14 +419,14 @@ def _create_repo_metadata_from_service_config(
419419 "name_pretty" : name_pretty ,
420420 "product_documentation" : product_documentation ,
421421 "api_description" : api_description ,
422- "client_documentation" : f"https://cloud.google.com/python/docs/reference/{ distribution_name } /latest" ,
422+ "client_documentation" : f"https://cloud.google.com/python/docs/reference/{ library_id } /latest" ,
423423 "issue_tracker" : issue_tracker ,
424424 "release_level" : release_level ,
425425 "language" : "python" ,
426426 "library_type" : "GAPIC_AUTO" ,
427427 "repo" : "googleapis/google-cloud-python" ,
428- "distribution_name" : distribution_name ,
429- "api_id" : "" , # This can be added later if needed
428+ "distribution_name" : library_id ,
429+ "api_id" : api_id ,
430430 }
431431
432432
0 commit comments