@@ -328,7 +328,7 @@ func (a *ServiceAccountsApi) DeleteServiceAccountApplicationKey(ctx _context.Con
328328
329329// GetServiceAccountAccessToken Get an access token for a service account.
330330// Get a specific access token for a service account by its UUID.
331- func (a * ServiceAccountsApi ) GetServiceAccountAccessToken (ctx _context.Context , serviceAccountId string , patUuid string ) (PersonalAccessTokenResponse , * _nethttp.Response , error ) {
331+ func (a * ServiceAccountsApi ) GetServiceAccountAccessToken (ctx _context.Context , serviceAccountId string , patId string ) (PersonalAccessTokenResponse , * _nethttp.Response , error ) {
332332 var (
333333 localVarHTTPMethod = _nethttp .MethodGet
334334 localVarPostBody interface {}
@@ -340,9 +340,9 @@ func (a *ServiceAccountsApi) GetServiceAccountAccessToken(ctx _context.Context,
340340 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
341341 }
342342
343- localVarPath := localBasePath + "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid }"
343+ localVarPath := localBasePath + "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id }"
344344 localVarPath = datadog .ReplacePathParameter (localVarPath , "{service_account_id}" , _neturl .PathEscape (datadog .ParameterToString (serviceAccountId , "" )))
345- localVarPath = datadog .ReplacePathParameter (localVarPath , "{pat_uuid }" , _neturl .PathEscape (datadog .ParameterToString (patUuid , "" )))
345+ localVarPath = datadog .ReplacePathParameter (localVarPath , "{pat_id }" , _neturl .PathEscape (datadog .ParameterToString (patId , "" )))
346346
347347 localVarHeaderParams := make (map [string ]string )
348348 localVarQueryParams := _neturl.Values {}
@@ -778,7 +778,7 @@ func (a *ServiceAccountsApi) ListServiceAccountApplicationKeys(ctx _context.Cont
778778
779779// RevokeServiceAccountAccessToken Revoke an access token for a service account.
780780// Revoke a specific access token for a service account.
781- func (a * ServiceAccountsApi ) RevokeServiceAccountAccessToken (ctx _context.Context , serviceAccountId string , patUuid string ) (* _nethttp.Response , error ) {
781+ func (a * ServiceAccountsApi ) RevokeServiceAccountAccessToken (ctx _context.Context , serviceAccountId string , patId string ) (* _nethttp.Response , error ) {
782782 var (
783783 localVarHTTPMethod = _nethttp .MethodDelete
784784 localVarPostBody interface {}
@@ -789,9 +789,9 @@ func (a *ServiceAccountsApi) RevokeServiceAccountAccessToken(ctx _context.Contex
789789 return nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
790790 }
791791
792- localVarPath := localBasePath + "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid }"
792+ localVarPath := localBasePath + "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id }"
793793 localVarPath = datadog .ReplacePathParameter (localVarPath , "{service_account_id}" , _neturl .PathEscape (datadog .ParameterToString (serviceAccountId , "" )))
794- localVarPath = datadog .ReplacePathParameter (localVarPath , "{pat_uuid }" , _neturl .PathEscape (datadog .ParameterToString (patUuid , "" )))
794+ localVarPath = datadog .ReplacePathParameter (localVarPath , "{pat_id }" , _neturl .PathEscape (datadog .ParameterToString (patId , "" )))
795795
796796 localVarHeaderParams := make (map [string ]string )
797797 localVarQueryParams := _neturl.Values {}
@@ -847,7 +847,7 @@ func (a *ServiceAccountsApi) RevokeServiceAccountAccessToken(ctx _context.Contex
847847
848848// UpdateServiceAccountAccessToken Update an access token for a service account.
849849// Update a specific access token for a service account.
850- func (a * ServiceAccountsApi ) UpdateServiceAccountAccessToken (ctx _context.Context , serviceAccountId string , patUuid string , body PersonalAccessTokenUpdateRequest ) (PersonalAccessTokenResponse , * _nethttp.Response , error ) {
850+ func (a * ServiceAccountsApi ) UpdateServiceAccountAccessToken (ctx _context.Context , serviceAccountId string , patId string , body PersonalAccessTokenUpdateRequest ) (PersonalAccessTokenResponse , * _nethttp.Response , error ) {
851851 var (
852852 localVarHTTPMethod = _nethttp .MethodPatch
853853 localVarPostBody interface {}
@@ -859,9 +859,9 @@ func (a *ServiceAccountsApi) UpdateServiceAccountAccessToken(ctx _context.Contex
859859 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
860860 }
861861
862- localVarPath := localBasePath + "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid }"
862+ localVarPath := localBasePath + "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id }"
863863 localVarPath = datadog .ReplacePathParameter (localVarPath , "{service_account_id}" , _neturl .PathEscape (datadog .ParameterToString (serviceAccountId , "" )))
864- localVarPath = datadog .ReplacePathParameter (localVarPath , "{pat_uuid }" , _neturl .PathEscape (datadog .ParameterToString (patUuid , "" )))
864+ localVarPath = datadog .ReplacePathParameter (localVarPath , "{pat_id }" , _neturl .PathEscape (datadog .ParameterToString (patId , "" )))
865865
866866 localVarHeaderParams := make (map [string ]string )
867867 localVarQueryParams := _neturl.Values {}
0 commit comments