Skip to content

Commit 9a75b11

Browse files
chore: update auto-generated code
1 parent 5840200 commit 9a75b11

File tree

406 files changed

+3844
-1814
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

406 files changed

+3844
-1814
lines changed

mittwaldv2/generated/clients/appclientv2/deprecatedlinkdatabase_request.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,25 @@ type DeprecatedLinkDatabaseRequest struct {
3030
// BuildRequest builds an *http.Request instance from this request that may be used
3131
// with any regular *http.Client instance.
3232
func (r *DeprecatedLinkDatabaseRequest) BuildRequest() (*http.Request, error) {
33-
body, err := r.body()
33+
body, contentType, err := r.body()
3434
if err != nil {
3535
return nil, err
3636
}
3737

38-
return http.NewRequest(http.MethodPut, r.url(), body)
38+
req, err := http.NewRequest(http.MethodPut, r.url(), body)
39+
if err != nil {
40+
return nil, err
41+
}
42+
req.Header.Set("Content-Type", contentType)
43+
return req, nil
3944
}
4045

41-
func (r *DeprecatedLinkDatabaseRequest) body() (io.Reader, error) {
46+
func (r *DeprecatedLinkDatabaseRequest) body() (io.Reader, string, error) {
4247
out, err := json.Marshal(&r.Body)
4348
if err != nil {
44-
return nil, fmt.Errorf("error while marshalling JSON: %w", err)
49+
return nil, "", fmt.Errorf("error while marshalling JSON: %w", err)
4550
}
46-
return bytes.NewReader(out), nil
51+
return bytes.NewReader(out), "application/json", nil
4752
}
4853

4954
func (r *DeprecatedLinkDatabaseRequest) url() string {

mittwaldv2/generated/clients/appclientv2/executeaction_request.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,25 @@ type ExecuteActionRequest struct {
3131
// BuildRequest builds an *http.Request instance from this request that may be used
3232
// with any regular *http.Client instance.
3333
func (r *ExecuteActionRequest) BuildRequest() (*http.Request, error) {
34-
body, err := r.body()
34+
body, contentType, err := r.body()
3535
if err != nil {
3636
return nil, err
3737
}
3838

39-
return http.NewRequest(http.MethodPost, r.url(), body)
39+
req, err := http.NewRequest(http.MethodPost, r.url(), body)
40+
if err != nil {
41+
return nil, err
42+
}
43+
req.Header.Set("Content-Type", contentType)
44+
return req, nil
4045
}
4146

42-
func (r *ExecuteActionRequest) body() (io.Reader, error) {
47+
func (r *ExecuteActionRequest) body() (io.Reader, string, error) {
4348
out, err := json.Marshal(&r.Body)
4449
if err != nil {
45-
return nil, fmt.Errorf("error while marshalling JSON: %w", err)
50+
return nil, "", fmt.Errorf("error while marshalling JSON: %w", err)
4651
}
47-
return bytes.NewReader(out), nil
52+
return bytes.NewReader(out), "application/json", nil
4853
}
4954

5055
func (r *ExecuteActionRequest) url() string {

mittwaldv2/generated/clients/appclientv2/getapp_request.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,21 @@ type GetAppRequest struct {
2323
// BuildRequest builds an *http.Request instance from this request that may be used
2424
// with any regular *http.Client instance.
2525
func (r *GetAppRequest) BuildRequest() (*http.Request, error) {
26-
body, err := r.body()
26+
body, contentType, err := r.body()
2727
if err != nil {
2828
return nil, err
2929
}
3030

31-
return http.NewRequest(http.MethodGet, r.url(), body)
31+
req, err := http.NewRequest(http.MethodGet, r.url(), body)
32+
if err != nil {
33+
return nil, err
34+
}
35+
req.Header.Set("Content-Type", contentType)
36+
return req, nil
3237
}
3338

34-
func (r *GetAppRequest) body() (io.Reader, error) {
35-
return nil, nil
39+
func (r *GetAppRequest) body() (io.Reader, string, error) {
40+
return nil, "", nil
3641
}
3742

3843
func (r *GetAppRequest) url() string {

mittwaldv2/generated/clients/appclientv2/getappinstallation_request.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,21 @@ type GetAppinstallationRequest struct {
2323
// BuildRequest builds an *http.Request instance from this request that may be used
2424
// with any regular *http.Client instance.
2525
func (r *GetAppinstallationRequest) BuildRequest() (*http.Request, error) {
26-
body, err := r.body()
26+
body, contentType, err := r.body()
2727
if err != nil {
2828
return nil, err
2929
}
3030

31-
return http.NewRequest(http.MethodGet, r.url(), body)
31+
req, err := http.NewRequest(http.MethodGet, r.url(), body)
32+
if err != nil {
33+
return nil, err
34+
}
35+
req.Header.Set("Content-Type", contentType)
36+
return req, nil
3237
}
3338

34-
func (r *GetAppinstallationRequest) body() (io.Reader, error) {
35-
return nil, nil
39+
func (r *GetAppinstallationRequest) body() (io.Reader, string, error) {
40+
return nil, "", nil
3641
}
3742

3843
func (r *GetAppinstallationRequest) url() string {

mittwaldv2/generated/clients/appclientv2/getappversion_request.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,21 @@ type GetAppversionRequest struct {
2424
// BuildRequest builds an *http.Request instance from this request that may be used
2525
// with any regular *http.Client instance.
2626
func (r *GetAppversionRequest) BuildRequest() (*http.Request, error) {
27-
body, err := r.body()
27+
body, contentType, err := r.body()
2828
if err != nil {
2929
return nil, err
3030
}
3131

32-
return http.NewRequest(http.MethodGet, r.url(), body)
32+
req, err := http.NewRequest(http.MethodGet, r.url(), body)
33+
if err != nil {
34+
return nil, err
35+
}
36+
req.Header.Set("Content-Type", contentType)
37+
return req, nil
3338
}
3439

35-
func (r *GetAppversionRequest) body() (io.Reader, error) {
36-
return nil, nil
40+
func (r *GetAppversionRequest) body() (io.Reader, string, error) {
41+
return nil, "", nil
3742
}
3843

3944
func (r *GetAppversionRequest) url() string {

mittwaldv2/generated/clients/appclientv2/getinstalledsystemsoftwareforappinstallation_request.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,21 @@ type GetInstalledSystemsoftwareForAppinstallationRequest struct {
2626
// BuildRequest builds an *http.Request instance from this request that may be used
2727
// with any regular *http.Client instance.
2828
func (r *GetInstalledSystemsoftwareForAppinstallationRequest) BuildRequest() (*http.Request, error) {
29-
body, err := r.body()
29+
body, contentType, err := r.body()
3030
if err != nil {
3131
return nil, err
3232
}
3333

34-
return http.NewRequest(http.MethodGet, r.url(), body)
34+
req, err := http.NewRequest(http.MethodGet, r.url(), body)
35+
if err != nil {
36+
return nil, err
37+
}
38+
req.Header.Set("Content-Type", contentType)
39+
return req, nil
3540
}
3641

37-
func (r *GetInstalledSystemsoftwareForAppinstallationRequest) body() (io.Reader, error) {
38-
return nil, nil
42+
func (r *GetInstalledSystemsoftwareForAppinstallationRequest) body() (io.Reader, string, error) {
43+
return nil, "", nil
3944
}
4045

4146
func (r *GetInstalledSystemsoftwareForAppinstallationRequest) url() string {

mittwaldv2/generated/clients/appclientv2/getmissingdependenciesforappinstallation_request.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,21 @@ type GetMissingDependenciesForAppinstallationRequest struct {
2727
// BuildRequest builds an *http.Request instance from this request that may be used
2828
// with any regular *http.Client instance.
2929
func (r *GetMissingDependenciesForAppinstallationRequest) BuildRequest() (*http.Request, error) {
30-
body, err := r.body()
30+
body, contentType, err := r.body()
3131
if err != nil {
3232
return nil, err
3333
}
3434

35-
return http.NewRequest(http.MethodGet, r.url(), body)
35+
req, err := http.NewRequest(http.MethodGet, r.url(), body)
36+
if err != nil {
37+
return nil, err
38+
}
39+
req.Header.Set("Content-Type", contentType)
40+
return req, nil
3641
}
3742

38-
func (r *GetMissingDependenciesForAppinstallationRequest) body() (io.Reader, error) {
39-
return nil, nil
43+
func (r *GetMissingDependenciesForAppinstallationRequest) body() (io.Reader, string, error) {
44+
return nil, "", nil
4045
}
4146

4247
func (r *GetMissingDependenciesForAppinstallationRequest) url() string {

mittwaldv2/generated/clients/appclientv2/getsystemsoftware_request.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,21 @@ type GetSystemsoftwareRequest struct {
2323
// BuildRequest builds an *http.Request instance from this request that may be used
2424
// with any regular *http.Client instance.
2525
func (r *GetSystemsoftwareRequest) BuildRequest() (*http.Request, error) {
26-
body, err := r.body()
26+
body, contentType, err := r.body()
2727
if err != nil {
2828
return nil, err
2929
}
3030

31-
return http.NewRequest(http.MethodGet, r.url(), body)
31+
req, err := http.NewRequest(http.MethodGet, r.url(), body)
32+
if err != nil {
33+
return nil, err
34+
}
35+
req.Header.Set("Content-Type", contentType)
36+
return req, nil
3237
}
3338

34-
func (r *GetSystemsoftwareRequest) body() (io.Reader, error) {
35-
return nil, nil
39+
func (r *GetSystemsoftwareRequest) body() (io.Reader, string, error) {
40+
return nil, "", nil
3641
}
3742

3843
func (r *GetSystemsoftwareRequest) url() string {

mittwaldv2/generated/clients/appclientv2/getsystemsoftwareversion_request.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,21 @@ type GetSystemsoftwareversionRequest struct {
2525
// BuildRequest builds an *http.Request instance from this request that may be used
2626
// with any regular *http.Client instance.
2727
func (r *GetSystemsoftwareversionRequest) BuildRequest() (*http.Request, error) {
28-
body, err := r.body()
28+
body, contentType, err := r.body()
2929
if err != nil {
3030
return nil, err
3131
}
3232

33-
return http.NewRequest(http.MethodGet, r.url(), body)
33+
req, err := http.NewRequest(http.MethodGet, r.url(), body)
34+
if err != nil {
35+
return nil, err
36+
}
37+
req.Header.Set("Content-Type", contentType)
38+
return req, nil
3439
}
3540

36-
func (r *GetSystemsoftwareversionRequest) body() (io.Reader, error) {
37-
return nil, nil
41+
func (r *GetSystemsoftwareversionRequest) body() (io.Reader, string, error) {
42+
return nil, "", nil
3843
}
3944

4045
func (r *GetSystemsoftwareversionRequest) url() string {

mittwaldv2/generated/clients/appclientv2/linkdatabase_request.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,25 @@ type LinkDatabaseRequest struct {
2626
// BuildRequest builds an *http.Request instance from this request that may be used
2727
// with any regular *http.Client instance.
2828
func (r *LinkDatabaseRequest) BuildRequest() (*http.Request, error) {
29-
body, err := r.body()
29+
body, contentType, err := r.body()
3030
if err != nil {
3131
return nil, err
3232
}
3333

34-
return http.NewRequest(http.MethodPatch, r.url(), body)
34+
req, err := http.NewRequest(http.MethodPatch, r.url(), body)
35+
if err != nil {
36+
return nil, err
37+
}
38+
req.Header.Set("Content-Type", contentType)
39+
return req, nil
3540
}
3641

37-
func (r *LinkDatabaseRequest) body() (io.Reader, error) {
42+
func (r *LinkDatabaseRequest) body() (io.Reader, string, error) {
3843
out, err := json.Marshal(&r.Body)
3944
if err != nil {
40-
return nil, fmt.Errorf("error while marshalling JSON: %w", err)
45+
return nil, "", fmt.Errorf("error while marshalling JSON: %w", err)
4146
}
42-
return bytes.NewReader(out), nil
47+
return bytes.NewReader(out), "application/json", nil
4348
}
4449

4550
func (r *LinkDatabaseRequest) url() string {

0 commit comments

Comments
 (0)