Skip to content

Commit b1917f5

Browse files
committed
feature: update api v2 client
1 parent a3136a8 commit b1917f5

9 files changed

+949
-170
lines changed

qase-api-v2-client/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ ctx = context.WithValue(context.Background(), api_v2_client.ContextOperationServ
7676
"port": "8443",
7777
},
7878
})
79+
7980
```
8081

8182
## Example
@@ -106,11 +107,12 @@ func main() {
106107
return
107108
}
108109
}
110+
109111
```
110112

111113
## Documentation for API Endpoints
112114

113-
All URIs are relative to *<https://api.qase.io/v2>*
115+
All URIs are relative to *https://api.qase.io/v2*
114116

115117
Class | Method | HTTP request | Description
116118
--------------|-----------------------------------------------------------|-----------------------------------------------|------------------------------------
@@ -127,6 +129,7 @@ All URIs are relative to *<https://api.qase.io/v2>*
127129
- [RelationSuite](docs/RelationSuite.md)
128130
- [RelationSuiteItem](docs/RelationSuiteItem.md)
129131
- [ResultCreate](docs/ResultCreate.md)
132+
- [ResultCreateFields](docs/ResultCreateFields.md)
130133
- [ResultExecution](docs/ResultExecution.md)
131134
- [ResultRelations](docs/ResultRelations.md)
132135
- [ResultStep](docs/ResultStep.md)

qase-api-v2-client/docs/ResultCreate.md

Lines changed: 40 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ Name | Type | Description | Notes
99
**Signature** | Pointer to **string** | | [optional]
1010
**TestopsId** | Pointer to **NullableInt64** | | [optional]
1111
**Execution** | [**ResultExecution**](ResultExecution.md) | |
12-
**Fields** | Pointer to **map[string]string** | | [optional]
12+
**Fields** | Pointer to [**ResultCreateFields**](ResultCreateFields.md) | | [optional]
1313
**Attachments** | Pointer to **[]string** | | [optional]
1414
**Steps** | Pointer to [**[]ResultStep**](ResultStep.md) | | [optional]
1515
**StepsType** | Pointer to [**NullableResultStepsType**](ResultStepsType.md) | | [optional]
1616
**Params** | Pointer to **map[string]string** | | [optional]
17-
**Author** | Pointer to **string** | | [optional]
17+
**ParamGroups** | Pointer to **[][]string** | List parameter groups by name only. Add their values in the &#39;params&#39; field | [optional]
1818
**Relations** | Pointer to [**NullableResultRelations**](ResultRelations.md) | | [optional]
19-
**Muted** | Pointer to **bool** | | [optional]
2019
**Message** | Pointer to **NullableString** | | [optional]
21-
**CreatedAt** | Pointer to **NullableFloat64** | | [optional]
20+
**Defect** | Pointer to **bool** | If true and the result is failed, the defect associated with the result will be created | [optional]
2221

2322
## Methods
2423

@@ -166,20 +165,20 @@ SetExecution sets Execution field to given value.
166165

167166
### GetFields
168167

169-
`func (o *ResultCreate) GetFields() map[string]string`
168+
`func (o *ResultCreate) GetFields() ResultCreateFields`
170169

171170
GetFields returns the Fields field if non-nil, zero value otherwise.
172171

173172
### GetFieldsOk
174173

175-
`func (o *ResultCreate) GetFieldsOk() (*map[string]string, bool)`
174+
`func (o *ResultCreate) GetFieldsOk() (*ResultCreateFields, bool)`
176175

177176
GetFieldsOk returns a tuple with the Fields field if it's non-nil, zero value otherwise
178177
and a boolean to check if the value has been set.
179178

180179
### SetFields
181180

182-
`func (o *ResultCreate) SetFields(v map[string]string)`
181+
`func (o *ResultCreate) SetFields(v ResultCreateFields)`
183182

184183
SetFields sets Fields field to given value.
185184

@@ -299,31 +298,41 @@ SetParams sets Params field to given value.
299298

300299
HasParams returns a boolean if a field has been set.
301300

302-
### GetAuthor
301+
### GetParamGroups
303302

304-
`func (o *ResultCreate) GetAuthor() string`
303+
`func (o *ResultCreate) GetParamGroups() [][]string`
305304

306-
GetAuthor returns the Author field if non-nil, zero value otherwise.
305+
GetParamGroups returns the ParamGroups field if non-nil, zero value otherwise.
307306

308-
### GetAuthorOk
307+
### GetParamGroupsOk
309308

310-
`func (o *ResultCreate) GetAuthorOk() (*string, bool)`
309+
`func (o *ResultCreate) GetParamGroupsOk() (*[][]string, bool)`
311310

312-
GetAuthorOk returns a tuple with the Author field if it's non-nil, zero value otherwise
311+
GetParamGroupsOk returns a tuple with the ParamGroups field if it's non-nil, zero value otherwise
313312
and a boolean to check if the value has been set.
314313

315-
### SetAuthor
314+
### SetParamGroups
316315

317-
`func (o *ResultCreate) SetAuthor(v string)`
316+
`func (o *ResultCreate) SetParamGroups(v [][]string)`
318317

319-
SetAuthor sets Author field to given value.
318+
SetParamGroups sets ParamGroups field to given value.
320319

321-
### HasAuthor
320+
### HasParamGroups
322321

323-
`func (o *ResultCreate) HasAuthor() bool`
322+
`func (o *ResultCreate) HasParamGroups() bool`
324323

325-
HasAuthor returns a boolean if a field has been set.
324+
HasParamGroups returns a boolean if a field has been set.
326325

326+
### SetParamGroupsNil
327+
328+
`func (o *ResultCreate) SetParamGroupsNil(b bool)`
329+
330+
SetParamGroupsNil sets the value for ParamGroups to be an explicit nil
331+
332+
### UnsetParamGroups
333+
`func (o *ResultCreate) UnsetParamGroups()`
334+
335+
UnsetParamGroups ensures that no value is present for ParamGroups, not even an explicit nil
327336
### GetRelations
328337

329338
`func (o *ResultCreate) GetRelations() ResultRelations`
@@ -359,31 +368,6 @@ HasRelations returns a boolean if a field has been set.
359368
`func (o *ResultCreate) UnsetRelations()`
360369

361370
UnsetRelations ensures that no value is present for Relations, not even an explicit nil
362-
### GetMuted
363-
364-
`func (o *ResultCreate) GetMuted() bool`
365-
366-
GetMuted returns the Muted field if non-nil, zero value otherwise.
367-
368-
### GetMutedOk
369-
370-
`func (o *ResultCreate) GetMutedOk() (*bool, bool)`
371-
372-
GetMutedOk returns a tuple with the Muted field if it's non-nil, zero value otherwise
373-
and a boolean to check if the value has been set.
374-
375-
### SetMuted
376-
377-
`func (o *ResultCreate) SetMuted(v bool)`
378-
379-
SetMuted sets Muted field to given value.
380-
381-
### HasMuted
382-
383-
`func (o *ResultCreate) HasMuted() bool`
384-
385-
HasMuted returns a boolean if a field has been set.
386-
387371
### GetMessage
388372

389373
`func (o *ResultCreate) GetMessage() string`
@@ -419,41 +403,31 @@ HasMessage returns a boolean if a field has been set.
419403
`func (o *ResultCreate) UnsetMessage()`
420404

421405
UnsetMessage ensures that no value is present for Message, not even an explicit nil
422-
### GetCreatedAt
406+
### GetDefect
423407

424-
`func (o *ResultCreate) GetCreatedAt() float64`
408+
`func (o *ResultCreate) GetDefect() bool`
425409

426-
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
410+
GetDefect returns the Defect field if non-nil, zero value otherwise.
427411

428-
### GetCreatedAtOk
412+
### GetDefectOk
429413

430-
`func (o *ResultCreate) GetCreatedAtOk() (*float64, bool)`
414+
`func (o *ResultCreate) GetDefectOk() (*bool, bool)`
431415

432-
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise
416+
GetDefectOk returns a tuple with the Defect field if it's non-nil, zero value otherwise
433417
and a boolean to check if the value has been set.
434418

435-
### SetCreatedAt
436-
437-
`func (o *ResultCreate) SetCreatedAt(v float64)`
438-
439-
SetCreatedAt sets CreatedAt field to given value.
440-
441-
### HasCreatedAt
442-
443-
`func (o *ResultCreate) HasCreatedAt() bool`
419+
### SetDefect
444420

445-
HasCreatedAt returns a boolean if a field has been set.
421+
`func (o *ResultCreate) SetDefect(v bool)`
446422

447-
### SetCreatedAtNil
423+
SetDefect sets Defect field to given value.
448424

449-
`func (o *ResultCreate) SetCreatedAtNil(b bool)`
425+
### HasDefect
450426

451-
SetCreatedAtNil sets the value for CreatedAt to be an explicit nil
427+
`func (o *ResultCreate) HasDefect() bool`
452428

453-
### UnsetCreatedAt
454-
`func (o *ResultCreate) UnsetCreatedAt()`
429+
HasDefect returns a boolean if a field has been set.
455430

456-
UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil
457431

458432
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
459433

0 commit comments

Comments
 (0)