@@ -103,6 +103,7 @@ pub async fn sandbox_provider_attach(
103103
104104 let response = match client
105105 . attach_sandbox_provider ( AttachSandboxProviderRequest {
106+ request_id : String :: new ( ) ,
106107 sandbox_name : name. to_string ( ) ,
107108 provider_name : provider. to_string ( ) ,
108109 expected_resource_version : resource_version,
@@ -159,6 +160,7 @@ pub async fn sandbox_provider_detach(
159160
160161 let response = match client
161162 . detach_sandbox_provider ( DetachSandboxProviderRequest {
163+ request_id : String :: new ( ) ,
162164 sandbox_name : name. to_string ( ) ,
163165 provider_name : provider. to_string ( ) ,
164166 expected_resource_version : resource_version,
@@ -471,6 +473,7 @@ async fn auto_create_provider(
471473 if let Some ( exact_name) = preferred_name {
472474 // Explicit name: create with exactly that name, no retries.
473475 let request = CreateProviderRequest {
476+ request_id : String :: new ( ) ,
474477 provider : Some ( Provider {
475478 metadata : Some ( openshell_core:: proto:: datamodel:: v1:: ObjectMeta {
476479 id : String :: new ( ) ,
@@ -519,6 +522,7 @@ async fn auto_create_provider(
519522 } ;
520523
521524 let request = CreateProviderRequest {
525+ request_id : String :: new ( ) ,
522526 provider : Some ( Provider {
523527 metadata : Some ( openshell_core:: proto:: datamodel:: v1:: ObjectMeta {
524528 id : String :: new ( ) ,
@@ -670,6 +674,7 @@ async fn rollback_provider_create_after_gcloud_adc_failure(
670674) -> Result < ( ) > {
671675 match client
672676 . delete_provider ( DeleteProviderRequest {
677+ request_id : String :: new ( ) ,
673678 allow_missing : true ,
674679 name : provider_name. to_string ( ) ,
675680 workspace_scope : Some ( openshell_core:: proto:: workspace_selector ( workspace) ) ,
@@ -1101,6 +1106,7 @@ pub async fn provider_create_with_options(options: ProviderCreateOptions<'_>) ->
11011106
11021107 let response = client
11031108 . create_provider ( CreateProviderRequest {
1109+ request_id : String :: new ( ) ,
11041110 provider : Some ( Provider {
11051111 metadata : Some ( openshell_core:: proto:: datamodel:: v1:: ObjectMeta {
11061112 id : String :: new ( ) ,
@@ -1140,6 +1146,7 @@ pub async fn provider_create_with_options(options: ProviderCreateOptions<'_>) ->
11401146
11411147 if let Err ( configure_err) = client
11421148 . configure_provider_refresh ( ConfigureProviderRefreshRequest {
1149+ request_id : String :: new ( ) ,
11431150 provider : provider_name. clone ( ) ,
11441151 credential_key : adc_credential_key. clone ( ) ,
11451152 strategy : ProviderCredentialRefreshStrategy :: Oauth2RefreshToken as i32 ,
@@ -1165,6 +1172,7 @@ pub async fn provider_create_with_options(options: ProviderCreateOptions<'_>) ->
11651172
11661173 if let Err ( rotate_err) = client
11671174 . rotate_provider_credential ( RotateProviderCredentialRequest {
1175+ request_id : String :: new ( ) ,
11681176 provider : provider_name. clone ( ) ,
11691177 credential_key : adc_credential_key,
11701178 workspace_scope : Some ( openshell_core:: proto:: workspace_selector ( workspace) ) ,
@@ -1581,6 +1589,7 @@ pub async fn provider_profile_import(
15811589 if !items. is_empty ( ) {
15821590 let response = client
15831591 . import_provider_profiles ( ImportProviderProfilesRequest {
1592+ request_id : String :: new ( ) ,
15841593 profiles : items,
15851594 workspace : workspace. to_string ( ) ,
15861595 } )
@@ -1630,6 +1639,7 @@ pub async fn provider_profile_update(
16301639 . map_or ( 0 , |profile| profile. resource_version ) ;
16311640 let response = client
16321641 . update_provider_profiles ( UpdateProviderProfilesRequest {
1642+ request_id : String :: new ( ) ,
16331643 profile : Some ( item) ,
16341644 expected_resource_version,
16351645 id : id. to_string ( ) ,
@@ -1694,6 +1704,7 @@ pub async fn provider_profile_delete(
16941704 for id in ids {
16951705 let response = match client
16961706 . delete_provider_profile ( DeleteProviderProfileRequest {
1707+ request_id : String :: new ( ) ,
16971708 allow_missing : true ,
16981709 id : id. clone ( ) ,
16991710 workspace : workspace. to_string ( ) ,
@@ -1806,6 +1817,7 @@ pub async fn provider_refresh_config(
18061817 let mut client = grpc_client ( server, tls) . await ?;
18071818 let status = client
18081819 . configure_provider_refresh ( ConfigureProviderRefreshRequest {
1820+ request_id : String :: new ( ) ,
18091821 provider : input. name . to_string ( ) ,
18101822 credential_key : input. credential_key . to_string ( ) ,
18111823 strategy : strategy as i32 ,
@@ -1839,6 +1851,7 @@ pub async fn provider_rotate(
18391851 let mut client = grpc_client ( server, tls) . await ?;
18401852 let status = client
18411853 . rotate_provider_credential ( RotateProviderCredentialRequest {
1854+ request_id : String :: new ( ) ,
18421855 provider : name. to_string ( ) ,
18431856 credential_key : credential_key. to_string ( ) ,
18441857 workspace_scope : Some ( openshell_core:: proto:: workspace_selector ( workspace) ) ,
@@ -1876,6 +1889,7 @@ pub async fn provider_refresh_delete(
18761889 let mut client = grpc_client ( server, tls) . await ?;
18771890 let response = client
18781891 . delete_provider_refresh ( DeleteProviderRefreshRequest {
1892+ request_id : String :: new ( ) ,
18791893 allow_missing : true ,
18801894 provider : name. to_string ( ) ,
18811895 credential_key : credential_key. to_string ( ) ,
@@ -2313,6 +2327,7 @@ pub async fn provider_update(options: ProviderUpdateOptions<'_>) -> Result<()> {
23132327
23142328 let response = client
23152329 . update_provider ( UpdateProviderRequest {
2330+ request_id : String :: new ( ) ,
23162331 provider : Some ( Provider {
23172332 metadata : Some ( openshell_core:: proto:: datamodel:: v1:: ObjectMeta {
23182333 id : String :: new ( ) ,
@@ -2367,6 +2382,7 @@ pub async fn provider_delete(
23672382 for name in names {
23682383 let response = match client
23692384 . delete_provider ( DeleteProviderRequest {
2385+ request_id : String :: new ( ) ,
23702386 allow_missing : true ,
23712387 name : name. clone ( ) ,
23722388 workspace_scope : Some ( openshell_core:: proto:: workspace_selector ( workspace) ) ,
0 commit comments