Skip to content

Commit 127a997

Browse files
committed
regenerating netsec
1 parent b1e0482 commit 127a997

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

netsec/services/ikegateways/service.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,13 @@ Parent chains:
102102
103103
Args:
104104
105+
Param Folder (string): the Folder param.
106+
105107
Param Id (string, required): the Id param.
106108
*/
107109
type ReadInput struct {
108-
Id string `json:"id"`
110+
Folder *string `json:"folder,omitempty"`
111+
Id string `json:"id"`
109112
}
110113

111114
// Read returns the configuration of the specified object.
@@ -118,6 +121,12 @@ func (c *Client) Read(ctx context.Context, input ReadInput) (yJkkSzS.Config, err
118121
var ans yJkkSzS.Config
119122
path := "/ike-gateways/{id}"
120123

124+
// Query parameter handling.
125+
uv := url.Values{}
126+
if input.Folder != nil {
127+
uv.Set("folder", *input.Folder)
128+
}
129+
121130
// Path param handling.
122131
path = strings.ReplaceAll(path, "{id}", input.Id)
123132
prefix, ok := Servers[c.client.GetHost()]
@@ -129,7 +138,7 @@ func (c *Client) Read(ctx context.Context, input ReadInput) (yJkkSzS.Config, err
129138
}
130139

131140
// Execute the command.
132-
_, err = c.client.Do(ctx, "GET", path, nil, nil, &ans)
141+
_, err = c.client.Do(ctx, "GET", path, uv, nil, &ans)
133142

134143
// Done.
135144
return ans, err

0 commit comments

Comments
 (0)