To support global file edits during library onboarding, the configure command needs to be updated so that the container will receive the context of all libraries in the repository to correctly regenerate manifests and dependency files.
configure-request.json is modified to include a list of all libraries in the repository.
- Each API in the request includes a
status field to indicate if it is "new" or "existing".
Example:
{
"libraries": [
{
"id": "google-cloud-secretmanager",
"apis": [
{
"path": "google/cloud/secretmanager/v1",
"service_config": "secretmanager_v1.yaml",
"status": "existing"
},
{
"path": "google/cloud/secretmanager/v1beta1",
"service_config": "secretmanager_v1beta1.yaml",
"status": "new"
}
],
"source_roots": [ "secretmanager" ],
...
},
{
"id": "google-cloud-pubsub-v1",
"apis": [
{
"path": "google/cloud/pubsub/v1",
"service_config": "pubsub_v1.yaml",
"status": "existing"
}
],
"source_roots": [ "pubsub" ],
...
}
]
}
See: go/librarian:global-file-edits
To support global file edits during library onboarding, the
configurecommand needs to be updated so that the container will receive the context of all libraries in the repository to correctly regenerate manifests and dependency files.configure-request.jsonis modified to include a list of all libraries in the repository.statusfield to indicate if it is"new"or"existing".Example:
{ "libraries": [ { "id": "google-cloud-secretmanager", "apis": [ { "path": "google/cloud/secretmanager/v1", "service_config": "secretmanager_v1.yaml", "status": "existing" }, { "path": "google/cloud/secretmanager/v1beta1", "service_config": "secretmanager_v1beta1.yaml", "status": "new" } ], "source_roots": [ "secretmanager" ], ... }, { "id": "google-cloud-pubsub-v1", "apis": [ { "path": "google/cloud/pubsub/v1", "service_config": "pubsub_v1.yaml", "status": "existing" } ], "source_roots": [ "pubsub" ], ... } ] }See: go/librarian:global-file-edits