/// # Parameters/// - `project_id`: the id of a Google Cloud project, or its numeric ID./// For example: `my-project`.pubasyncfnsample(project_id:&str)->anyhow::Result<()>{
letmutitems=client.list_secrets().set_parent(format!("projects/{project_id}")).by_item();println!("listing all secrets in project {project_id}");whileletSome(secret)=items.next().await.transpose()?{println!(" {secret:?}");}println!("DONE");
/// # Parameters/// - `project_id`: the id of a Google Cloud project, or its numeric ID./// For example: `my-project`./// - `region`: the id of a Gooogle Cloud region. For example `us-central1`.pubasyncfnsample(project_id:&str,region:&str)->anyhow::Result<()>{
letmutitems=client.list_secrets().set_parent(format!("projects/{project_id}/locations/{region}")).by_item();println!("listing all secrets in project {project_id} and region {region}");whileletSome(secret)=items.next().await.transpose()?{println!(" {secret:?}");}println!("DONE");