@@ -89,7 +89,7 @@ This type provides access to both the deserialized result of the service call, a
8989``` rust no_run
9090use azure_core :: http :: Response ;
9191use azure_identity :: DefaultAzureCredential ;
92- use azure_security_keyvault_secrets :: {models :: SecretBundle , SecretClient };
92+ use azure_security_keyvault_secrets :: {models :: Secret , SecretClient };
9393
9494#[tokio:: main]
9595async fn main () -> Result <(), Box <dyn std :: error :: Error >> {
@@ -109,7 +109,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
109109 let secret = response . into_body (). await ? ;
110110
111111 // get response again because it was moved in above statement
112- let response : Response <SecretBundle > = client . get_secret (" secret-name" , "" , None ). await ? ;
112+ let response : Response <Secret > = client . get_secret (" secret-name" , "" , None ). await ? ;
113113
114114 // 2. The deconstruct() method for accessing all the details of the HTTP response
115115 let (status , headers , body ) = response . deconstruct ();
@@ -184,7 +184,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
184184 )? ;
185185
186186 // get a stream
187- let mut pager = client . list_secrets (None )? . into_stream ();
187+ let mut pager = client . list_secret_properties (None )? . into_stream ();
188188
189189 // poll the pager until there are no more SecretListResults
190190 while let Some (secrets ) = pager . try_next (). await ? {
0 commit comments