-
Notifications
You must be signed in to change notification settings - Fork 118
Improve generated samples to show formatted resource names #2696
Copy link
Copy link
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Description
Updated get sample showing how to format resource names.
# use google_cloud_secret_manager_v1::client::SecretManagerService
async fn sample(
client: &SecretManagerService,
project_id: &str,
secret_id: &str,
) -> gax::Result<()> {
let secret = client
.get_secret()
.set_name(format!("projects/{project_id}/secrets/{secret_id}"))
.send()
.await?;
println!("{secret:?}");
Ok(());
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.