-
Notifications
You must be signed in to change notification settings - Fork 0
/
applyoperationids.go
101 lines (87 loc) · 2.43 KB
/
applyoperationids.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package operations
import (
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/sdkerrors"
"io"
"net/http"
)
// ApplyOperationIDsRequestBody - Apply options
type ApplyOperationIDsRequestBody struct {
// Whether to apply the suggestions as an overlay or replace the existing operationIDs. Default: false
AsOverlay *bool `json:"as_overlay,omitempty"`
}
func (o *ApplyOperationIDsRequestBody) GetAsOverlay() *bool {
if o == nil {
return nil
}
return o.AsOverlay
}
type ApplyOperationIDsRequest struct {
// Apply options
RequestBody *ApplyOperationIDsRequestBody `request:"mediaType=application/json"`
XSessionID string `header:"style=simple,explode=false,name=x-session-id"`
}
func (o *ApplyOperationIDsRequest) GetRequestBody() *ApplyOperationIDsRequestBody {
if o == nil {
return nil
}
return o.RequestBody
}
func (o *ApplyOperationIDsRequest) GetXSessionID() string {
if o == nil {
return ""
}
return o.XSessionID
}
type ApplyOperationIDsResponse struct {
// OK
// The Close method must be called on this field, even if it is not used, to prevent resource leaks.
TwoHundredApplicationJSONSchema io.ReadCloser
// OK
// The Close method must be called on this field, even if it is not used, to prevent resource leaks.
TwoHundredApplicationXYamlSchema io.ReadCloser
// HTTP response content type for this operation
ContentType string
// Default error response
Error *sdkerrors.Error
// HTTP response status code for this operation
StatusCode int
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
func (o *ApplyOperationIDsResponse) GetTwoHundredApplicationJSONSchema() io.ReadCloser {
if o == nil {
return nil
}
return o.TwoHundredApplicationJSONSchema
}
func (o *ApplyOperationIDsResponse) GetTwoHundredApplicationXYamlSchema() io.ReadCloser {
if o == nil {
return nil
}
return o.TwoHundredApplicationXYamlSchema
}
func (o *ApplyOperationIDsResponse) GetContentType() string {
if o == nil {
return ""
}
return o.ContentType
}
func (o *ApplyOperationIDsResponse) GetError() *sdkerrors.Error {
if o == nil {
return nil
}
return o.Error
}
func (o *ApplyOperationIDsResponse) GetStatusCode() int {
if o == nil {
return 0
}
return o.StatusCode
}
func (o *ApplyOperationIDsResponse) GetRawResponse() *http.Response {
if o == nil {
return nil
}
return o.RawResponse
}