@@ -32,20 +32,20 @@ type gitSource struct {
32
32
33
33
// CreateDeploymentRequest defines the request the Vercel API expects in order to create a deployment.
34
34
type CreateDeploymentRequest struct {
35
- Files []DeploymentFile `json:"files,omitempty"`
36
- Functions map [string ]interface {} `json:"functions,omitempty"`
37
- Environment map [string ]string `json:"env,omitempty"`
35
+ Files []DeploymentFile `json:"files,omitempty"`
36
+ Functions map [string ]any `json:"functions,omitempty"`
37
+ Environment map [string ]string `json:"env,omitempty"`
38
38
Build struct {
39
39
Environment map [string ]string `json:"env,omitempty"`
40
40
} `json:"build,omitempty"`
41
- ProjectID string `json:"project,omitempty"`
42
- ProjectSettings map [string ]interface {} `json:"projectSettings"`
43
- Name string `json:"name"`
44
- Regions []string `json:"regions,omitempty"`
45
- Routes []interface {} `json:"routes,omitempty"`
46
- Target string `json:"target,omitempty"`
47
- GitSource * gitSource `json:"gitSource,omitempty"`
48
- Ref string `json:"-"`
41
+ ProjectID string `json:"project,omitempty"`
42
+ ProjectSettings map [string ]any `json:"projectSettings"`
43
+ Name string `json:"name"`
44
+ Regions []string `json:"regions,omitempty"`
45
+ Routes []any `json:"routes,omitempty"`
46
+ Target string `json:"target,omitempty"`
47
+ GitSource * gitSource `json:"gitSource,omitempty"`
48
+ Ref string `json:"-"`
49
49
}
50
50
51
51
// DeploymentResponse defines the response the Vercel API returns when a deployment is created or updated.
@@ -201,7 +201,7 @@ func (c *Client) CreateDeployment(ctx context.Context, request CreateDeploymentR
201
201
}
202
202
payload := string (mustMarshal (request ))
203
203
204
- tflog .Info (ctx , "creating deployment" , map [string ]interface {} {
204
+ tflog .Info (ctx , "creating deployment" , map [string ]any {
205
205
"url" : url ,
206
206
"payload" : payload ,
207
207
})
@@ -263,7 +263,7 @@ func (c *Client) DeleteDeployment(ctx context.Context, deploymentID string, team
263
263
url = fmt .Sprintf ("%s?teamId=%s" , url , c .teamID (teamID ))
264
264
}
265
265
266
- tflog .Info (ctx , "deleting deployment" , map [string ]interface {} {
266
+ tflog .Info (ctx , "deleting deployment" , map [string ]any {
267
267
"url" : url ,
268
268
})
269
269
err = c .doRequest (clientRequest {
@@ -282,7 +282,7 @@ func (c *Client) GetDeployment(ctx context.Context, deploymentID, teamID string)
282
282
url = fmt .Sprintf ("%s?teamId=%s" , url , c .teamID (teamID ))
283
283
}
284
284
285
- tflog .Info (ctx , "getting deployment" , map [string ]interface {} {
285
+ tflog .Info (ctx , "getting deployment" , map [string ]any {
286
286
"url" : url ,
287
287
})
288
288
err = c .doRequest (clientRequest {
0 commit comments