@@ -33,6 +33,7 @@ func (me IAMError) Error() string {
33
33
type IAMClient interface {
34
34
POST (ctx context.Context , url string , payload any , expectedResponseCode int , forceNewBearer bool ) ([]byte , error )
35
35
PUT (ctx context.Context , url string , payload any , expectedResponseCode int , forceNewBearer bool ) ([]byte , error )
36
+ PUT_MULTI_RESPONSE (ctx context.Context , url string , payload any , expectedResponseCodes []int , forceNewBearer bool ) ([]byte , error )
36
37
GET (ctx context.Context , url string , expectedResponseCode int , forceNewBearer bool ) ([]byte , error )
37
38
DELETE (ctx context.Context , url string , expectedResponseCode int , forceNewBearer bool ) ([]byte , error )
38
39
DELETE_MULTI_RESPONSE (ctx context.Context , url string , expectedResponseCodes []int , forceNewBearer bool ) ([]byte , error )
@@ -76,6 +77,10 @@ func (me *iamClient) PUT(ctx context.Context, url string, payload any, expectedR
76
77
return me .request (ctx , url , http .MethodPut , []int {expectedResponseCode }, forceNewBearer , 0 , payload , map [string ]string {"Content-Type" : "application/json" })
77
78
}
78
79
80
+ func (me * iamClient ) PUT_MULTI_RESPONSE (ctx context.Context , url string , payload any , expectedResponseCodes []int , forceNewBearer bool ) ([]byte , error ) {
81
+ return me .request (ctx , url , http .MethodPut , expectedResponseCodes , forceNewBearer , 0 , payload , map [string ]string {"Content-Type" : "application/json" })
82
+ }
83
+
79
84
func (me * iamClient ) GET (ctx context.Context , url string , expectedResponseCode int , forceNewBearer bool ) ([]byte , error ) {
80
85
return me .request (ctx , url , http .MethodGet , []int {expectedResponseCode }, forceNewBearer , 0 , nil , nil )
81
86
}
0 commit comments