@@ -109,6 +109,7 @@ pub async fn sandbox_provider_attach(
109109
110110 let response = match client
111111 . attach_sandbox_provider ( AttachSandboxProviderRequest {
112+ request_id : String :: new ( ) ,
112113 sandbox_name : name. to_string ( ) ,
113114 provider_name : provider. to_string ( ) ,
114115 expected_resource_version : resource_version,
@@ -165,6 +166,7 @@ pub async fn sandbox_provider_detach(
165166
166167 let response = match client
167168 . detach_sandbox_provider ( DetachSandboxProviderRequest {
169+ request_id : String :: new ( ) ,
168170 sandbox_name : name. to_string ( ) ,
169171 provider_name : provider. to_string ( ) ,
170172 expected_resource_version : resource_version,
@@ -477,6 +479,7 @@ async fn auto_create_provider(
477479 if let Some ( exact_name) = preferred_name {
478480 // Explicit name: create with exactly that name, no retries.
479481 let request = CreateProviderRequest {
482+ request_id : String :: new ( ) ,
480483 provider : Some ( Provider {
481484 metadata : Some ( openshell_core:: proto:: datamodel:: v1:: ObjectMeta {
482485 id : String :: new ( ) ,
@@ -525,6 +528,7 @@ async fn auto_create_provider(
525528 } ;
526529
527530 let request = CreateProviderRequest {
531+ request_id : String :: new ( ) ,
528532 provider : Some ( Provider {
529533 metadata : Some ( openshell_core:: proto:: datamodel:: v1:: ObjectMeta {
530534 id : String :: new ( ) ,
@@ -676,6 +680,7 @@ async fn rollback_provider_create_after_gcloud_adc_failure(
676680) -> Result < ( ) > {
677681 match client
678682 . delete_provider ( DeleteProviderRequest {
683+ request_id : String :: new ( ) ,
679684 allow_missing : true ,
680685 name : provider_name. to_string ( ) ,
681686 workspace_scope : Some ( openshell_core:: proto:: workspace_selector ( workspace) ) ,
@@ -1107,6 +1112,7 @@ pub async fn provider_create_with_options(options: ProviderCreateOptions<'_>) ->
11071112
11081113 let response = client
11091114 . create_provider ( CreateProviderRequest {
1115+ request_id : String :: new ( ) ,
11101116 provider : Some ( Provider {
11111117 metadata : Some ( openshell_core:: proto:: datamodel:: v1:: ObjectMeta {
11121118 id : String :: new ( ) ,
@@ -1153,6 +1159,7 @@ pub async fn provider_create_with_options(options: ProviderCreateOptions<'_>) ->
11531159
11541160 if let Err ( configure_err) = client
11551161 . configure_provider_refresh ( ConfigureProviderRefreshRequest {
1162+ request_id : String :: new ( ) ,
11561163 provider : provider_name. clone ( ) ,
11571164 credential_key : adc_credential_key. clone ( ) ,
11581165 strategy : ProviderCredentialRefreshStrategy :: Oauth2RefreshToken as i32 ,
@@ -1178,6 +1185,7 @@ pub async fn provider_create_with_options(options: ProviderCreateOptions<'_>) ->
11781185
11791186 if let Err ( rotate_err) = client
11801187 . rotate_provider_credential ( RotateProviderCredentialRequest {
1188+ request_id : String :: new ( ) ,
11811189 provider : provider_name. clone ( ) ,
11821190 credential_key : adc_credential_key,
11831191 workspace_scope : Some ( openshell_core:: proto:: workspace_selector ( workspace) ) ,
@@ -1601,6 +1609,7 @@ pub async fn provider_profile_import(
16011609 if !items. is_empty ( ) {
16021610 let response = client
16031611 . import_provider_profiles ( ImportProviderProfilesRequest {
1612+ request_id : String :: new ( ) ,
16041613 profiles : items,
16051614 workspace : workspace. to_string ( ) ,
16061615 } )
@@ -1650,6 +1659,7 @@ pub async fn provider_profile_update(
16501659 . map_or ( 0 , |profile| profile. resource_version ) ;
16511660 let response = client
16521661 . update_provider_profiles ( UpdateProviderProfilesRequest {
1662+ request_id : String :: new ( ) ,
16531663 profile : Some ( item) ,
16541664 expected_resource_version,
16551665 id : id. to_string ( ) ,
@@ -1714,6 +1724,7 @@ pub async fn provider_profile_delete(
17141724 for id in ids {
17151725 let response = match client
17161726 . delete_provider_profile ( DeleteProviderProfileRequest {
1727+ request_id : String :: new ( ) ,
17171728 allow_missing : true ,
17181729 id : id. clone ( ) ,
17191730 workspace : workspace. to_string ( ) ,
@@ -1826,6 +1837,7 @@ pub async fn provider_refresh_config(
18261837 let mut client = grpc_client ( server, tls) . await ?;
18271838 let status = client
18281839 . configure_provider_refresh ( ConfigureProviderRefreshRequest {
1840+ request_id : String :: new ( ) ,
18291841 provider : input. name . to_string ( ) ,
18301842 credential_key : input. credential_key . to_string ( ) ,
18311843 strategy : strategy as i32 ,
@@ -1863,6 +1875,7 @@ pub async fn provider_rotate(
18631875 let mut client = grpc_client ( server, tls) . await ?;
18641876 let status = client
18651877 . rotate_provider_credential ( RotateProviderCredentialRequest {
1878+ request_id : String :: new ( ) ,
18661879 provider : name. to_string ( ) ,
18671880 credential_key : credential_key. to_string ( ) ,
18681881 workspace_scope : Some ( openshell_core:: proto:: workspace_selector ( workspace) ) ,
@@ -1900,6 +1913,7 @@ pub async fn provider_refresh_delete(
19001913 let mut client = grpc_client ( server, tls) . await ?;
19011914 let response = client
19021915 . delete_provider_refresh ( DeleteProviderRefreshRequest {
1916+ request_id : String :: new ( ) ,
19031917 allow_missing : true ,
19041918 provider : name. to_string ( ) ,
19051919 credential_key : credential_key. to_string ( ) ,
@@ -2337,6 +2351,7 @@ pub async fn provider_update(options: ProviderUpdateOptions<'_>) -> Result<()> {
23372351
23382352 let response = client
23392353 . update_provider ( UpdateProviderRequest {
2354+ request_id : String :: new ( ) ,
23402355 provider : Some ( Provider {
23412356 metadata : Some ( openshell_core:: proto:: datamodel:: v1:: ObjectMeta {
23422357 id : String :: new ( ) ,
@@ -2399,6 +2414,7 @@ pub async fn provider_delete(
23992414 for name in names {
24002415 let response = match client
24012416 . delete_provider ( DeleteProviderRequest {
2417+ request_id : String :: new ( ) ,
24022418 allow_missing : true ,
24032419 name : name. clone ( ) ,
24042420 workspace_scope : Some ( openshell_core:: proto:: workspace_selector ( workspace) ) ,
0 commit comments