Repository: influxdata/influxdb-client-go
Pull request #204 (2020-09-30 09:38:04)

chore(swagger): syncing with the rc0 swagger
## Proposed Changes

Synced with Rc0 swagger: 
- added orgs Get* pagination
- added support for After
- disabled delete tests
- other fixes


## Checklist

- [X] Rebased/mergeable
- [X] A test has been added if appropriate
- [X] Tests pass
- [X] Commit messages are in [semantic format](https://seesparkbox.com/foundry/semantic_commit_messages)



Patch:
diff --git a/api/buckets.go b/api/buckets.go
index ca4f9c5..d4be149 100644
--- a/api/buckets.go
+++ b/api/buckets.go
@@ -13,13 +13,15 @@ import (
 
 // BucketsAPI provides methods for managing Buckets in a InfluxDB server.
 type BucketsAPI interface {
-	// GetBuckets returns all buckets, with the specified paging. Empty pagingOptions means the default paging (first 20 results).
+	// GetBuckets returns all buckets.
+	// GetBuckets supports PagingOptions: Offset, Limit, After. Empty pagingOptions means the default paging (first 20 results).
 	GetBuckets(ctx context.Context, pagingOptions ...PagingOption) (*[]domain.Bucket, error)
 	// FindBucketByName returns a bucket found using bucketName.
 	FindBucketByName(ctx context.Context, bucketName string) (*domain.Bucket, error)
 	// FindBucketByID returns a bucket found using bucketID.
 	FindBucketByID(ctx context.Context, bucketID string) (*domain.Bucket, error)
-	// FindBucketsByOrgID returns buckets belonging to the organization with ID orgID, with the specified paging. Empty pagingOptions means the default paging (first 20 results).
+	// FindBucketsByOrgID returns buckets belonging to the organization with ID orgID.
+	// FindBucketsByOrgID supports PagingOptions: Offset, Limit, After. Empty pagingOptions means the default paging (first 20 results).
 	FindBucketsByOrgID(ctx context.Context, orgID string, pagingOptions ...PagingOption) (*[]domain.Bucket, error)
 	// FindBucketsByOrgName returns buckets belonging to the organization with name orgName, with the specified paging. Empty pagingOptions means the default paging (first 20 results).
 	FindBucketsByOrgName(ctx context.Context, orgName string, pagingOptions ...PagingOption) (*[]domain.Bucket, error)
diff --git a/api/labels.go b/api/labels.go
index 1a3ac0a..5812939 100644
--- a/api/labels.go
+++ b/api/labels.go
@@ -111,7 +111,7 @@ func (u *labelsAPI) CreateLabelWithName(ctx context.Context, org *domain.Organiz
 
 func (u *labelsAPI) CreateLabelWithNameWithID(ctx context.Context, orgID, labelName string, properties map[string]string) (*domain.Label, error) {
 	props := &domain.LabelCreateRequest_Properties{AdditionalProperties: properties}
-	label := &domain.LabelCreateRequest{Name: &labelName, OrgID: orgID, Properties: props}
+	label := &domain.LabelCreateRequest{Name: labelName, OrgID: orgID, Properties: props}
 	return u.CreateLabel(ctx, label)
 }
 
diff --git a/api/organizations.go b/api/organizations.go
index 6671f5b..8e1ce5c 100644
--- a/api/organizations.go
+++ b/api/organizations.go
@@ -14,13 +14,15 @@ import (
 // OrganizationsAPI provides methods for managing Organizations in a InfluxDB server.
 type OrganizationsAPI interface {
 	// GetOrganizations returns all organizations.
-	GetOrganizations(ctx context.Context) (*[]domain.Organization, error)
+	// GetOrganizations supports PagingOptions: Offset, Limit, Descending
+	GetOrganizations(ctx context.Context, pagingOptions ...PagingOption) (*[]domain.Organization, error)
 	// FindOrganizationByName returns an organization found using orgName.
 	FindOrganizationByName(ctx context.Context, orgName string) (*domain.Organization, error)
 	// FindOrganizationByID returns an organization found using orgID.
 	FindOrganizationByID(ctx context.Context, orgID string) (*domain.Organization, error)
 	// FindOrganizationsByUserID returns organizations an user with userID belongs to.
-	FindOrganizationsByUserID(ctx context.Context, userID string) (*[]domain.Organization, error)
+	// FindOrganizationsByUserID supports PagingOptions: Offset, Limit, Descending
+	FindOrganizationsByUserID(ctx context.Context, userID string, pagingOptions ...PagingOption) (*[]domain.Organization, error)
 	// CreateOrganization creates new organization.
 	CreateOrganization(ctx context.Context, org *domain.Organization) (*domain.Organization, error)
 	// CreateOrganizationWithName creates new organization with orgName and with status active.
@@ -67,8 +69,14 @@ func NewOrganizationsAPI(apiClient *domain.ClientWithResponses) OrganizationsAPI
 	}
 }
 
-func (o *organizationsAPI) GetOrganizations(ctx context.Context) (*[]domain.Organization, error) {
-	params := &domain.GetOrgsParams{}
+func (o *organizationsAPI) getOrganizations(ctx context.Context, params *domain.GetOrgsParams, pagingOptions ...PagingOption) (*[]domain.Organization, error) {
+	options := defaultPaging()
+	for _, opt := range pagingOptions {
+		opt(options)
+	}
+	params.Limit = &options.limit
+	params.Offset = &options.offset
+	params.Descending = &options.descending
 	response, err := o.apiClient.GetOrgsWithResponse(ctx, params)
 	if err != nil {
 		return nil, err
@@ -78,18 +86,19 @@ func (o *organizationsAPI) GetOrganizations(ctx context.Context) (*[]domain.Orga
 	}
 	return response.JSON200.Orgs, nil
 }
+func (o *organizationsAPI) GetOrganizations(ctx context.Context, pagingOptions ...PagingOption) (*[]domain.Organization, error) {
+	params := &domain.GetOrgsParams{}
+	return o.getOrganizations(ctx, params, pagingOptions...)
+}
 
 func (o *organizationsAPI) FindOrganizationByName(ctx context.Context, orgName string) (*domain.Organization, error) {
 	params := &domain.GetOrgsParams{Org: &orgName}
-	response, err := o.apiClient.GetOrgsWithResponse(ctx, params)
+	organizations, err := o.getOrganizations(ctx, params)
 	if err != nil {
 		return nil, err
 	}
-	if response.JSONDefault != nil {
-		return nil, domain.DomainErrorToError(response.JSONDefault, response.StatusCode())
-	}
-	if response.JSON200.Orgs != nil && len(*response.JSON200.Orgs) > 0 {
-		return &(*response.JSON200.Orgs)[0], nil
+	if organizations != nil && len(*organizations) > 0 {
+		return &(*organizations)[0], nil
 	} else {
 		return nil, fmt.Errorf("organization '%s' not found", orgName)
 	}
@@ -107,16 +116,9 @@ func (o *organizationsAPI) FindOrganizationByID(ctx context.Context, orgID strin
 	return response.JSON200, nil
 }
 
-func (o *organizationsAPI) FindOrganizationsByUserID(ctx context.Context, userID string) (*[]domain.Organization, error) {
+func (o *organizationsAPI) FindOrganizationsByUserID(ctx context.Context, userID string, pagingOptions ...PagingOption) (*[]domain.Organization, error) {
 	params := &domain.GetOrgsParams{UserID: &userID}
-	response, err := o.apiClient.GetOrgsWithResponse(ctx, params)
-	if err != nil {
-		return nil, err
-	}
-	if response.JSONDefault != nil {
-		return nil, domain.DomainErrorToError(response.JSONDefault, response.StatusCode())
-	}
-	return response.JSON200.Orgs, nil
+	return o.getOrganizations(ctx, params, pagingOptions...)
 }
 
 func (o *organizationsAPI) CreateOrganization(ctx context.Context, org *domain.Organization) (*domain.Organization, error) {
diff --git a/api/paging.go b/api/paging.go
index 80acec5..feefd90 100644
--- a/api/paging.go
+++ b/api/paging.go
@@ -9,18 +9,30 @@ import "github.com/influxdata/influxdb-client-go/v2/domain"
 type PagingOption func(p *Paging)
 
 // Paging holds pagination parameters for various Get* functions of InfluxDB 2 API
+// Not the all options are usable for some Get* functions
 type Paging struct {
-	offset     domain.Offset
-	limit      domain.Limit
-	sortBy     string
-	descending bool
+	// Starting offset for returning items
+	// Default 0.
+	offset domain.Offset
+	// Maximum number of items returned.
+	// Default 20, minimum 1 and maximum 100.
+	limit domain.Limit
+	// What field should be used for sorting
+	sortBy string
+	// Changes sorting direction
+	descending domain.Descending
+	// The last resource ID from which to seek from (but not including).
+	// This is to be used instead of `offset`.
+	after domain.After
 }
 
 // defaultPagingOptions returns default paging options: offset 0, limit 20, default sorting, ascending
 func defaultPaging() *Paging {
-	return &Paging{limit: 20, offset: 0, sortBy: "", descending: false}
+	return &Paging{limit: 20, offset: 0, sortBy: "", descending: false, after: ""}
 }
 
+// PagingWithLimit sets limit option - maximum number of items returned.
+// Default 20, minimum 1 and maximum 100.
 func PagingWithLimit(limit int) PagingOption {
 	return func(p *Paging) {
 		if limit > 100 {
@@ -33,20 +45,31 @@ func PagingWithLimit(limit int) PagingOption {
 	}
 }
 
+// PagingWithOffset set starting offset for returning items. Default 0.
 func PagingWithOffset(offset int) PagingOption {
 	return func(p *Paging) {
 		p.offset = domain.Offset(offset)
 	}
 }
 
+// PagingWithSortBy sets field name which should be used for sorting
 func PagingWithSortBy(sortBy string) PagingOption {
 	return func(p *Paging) {
 		p.sortBy = sortBy
 	}
 }
 
+// PagingWithDescending changes sorting direction
 func PagingWithDescending(descending bool) PagingOption {
 	return func(p *Paging) {
-		p.descending = descending
+		p.descending = domain.Descending(descending)
+	}
+}
+
+// PagingWithAfter set after option - the last resource ID from which to seek from (but not including).
+// This is to be used instead of `offset`.
+func PagingWithAfter(after string) PagingOption {
+	return func(p *Paging) {
+		p.after = domain.After(after)
 	}
 }
diff --git a/domain/client.gen.go b/domain/client.gen.go
index be693cf..b54ac12 100644
--- a/domain/client.gen.go
+++ b/domain/client.gen.go
@@ -493,11 +493,6 @@ type ClientInterface interface {
 	// DeleteScrapersIDLabelsID request
 	DeleteScrapersIDLabelsID(ctx context.Context, scraperTargetID string, labelID string, params *DeleteScrapersIDLabelsIDParams) (*http.Response, error)
 
-	// PatchScrapersIDLabelsID request  with any body
-	PatchScrapersIDLabelsIDWithBody(ctx context.Context, scraperTargetID string, labelID string, params *PatchScrapersIDLabelsIDParams, contentType string, body io.Reader) (*http.Response, error)
-
-	PatchScrapersIDLabelsID(ctx context.Context, scraperTargetID string, labelID string, params *PatchScrapersIDLabelsIDParams, body PatchScrapersIDLabelsIDJSONRequestBody) (*http.Response, error)
-
 	// GetScrapersIDMembers request
 	GetScrapersIDMembers(ctx context.Context, scraperTargetID string, params *GetScrapersIDMembersParams) (*http.Response, error)
 
@@ -2310,24 +2305,6 @@ func (c *Client) DeleteScrapersIDLabelsID(ctx context.Context, scraperTargetID s
 	return c.service.DoHTTPRequestWithResponse(req, nil)
 }
 
-func (c *Client) PatchScrapersIDLabelsIDWithBody(ctx context.Context, scraperTargetID string, labelID string, params *PatchScrapersIDLabelsIDParams, contentType string, body io.Reader) (*http.Response, error) {
-	req, err := NewPatchScrapersIDLabelsIDRequestWithBody(c.service.ServerAPIURL(), scraperTargetID, labelID, params, contentType, body)
-	if err != nil {
-		return nil, err
-	}
-	req = req.WithContext(ctx)
-	return c.service.DoHTTPRequestWithResponse(req, nil)
-}
-
-func (c *Client) PatchScrapersIDLabelsID(ctx context.Context, scraperTargetID string, labelID string, params *PatchScrapersIDLabelsIDParams, body PatchScrapersIDLabelsIDJSONRequestBody) (*http.Response, error) {
-	req, err := NewPatchScrapersIDLabelsIDRequest(c.service.ServerAPIURL(), scraperTargetID, labelID, params, body)
-	if err != nil {
-		return nil, err
-	}
-	req = req.WithContext(ctx)
-	return c.service.DoHTTPRequestWithResponse(req, nil)
-}
-
 func (c *Client) GetScrapersIDMembers(ctx context.Context, scraperTargetID string, params *GetScrapersIDMembersParams) (*http.Response, error) {
 	req, err := NewGetScrapersIDMembersRequest(c.service.ServerAPIURL(), scraperTargetID, params)
 	if err != nil {
@@ -3676,6 +3653,22 @@ func NewGetBucketsRequest(server string, params *GetBucketsParams) (*http.Reques
 
 	}
 
+	if params.After != nil {
+
+		if queryFrag, err := runtime.StyleParam("form", true, "after", *params.After); err != nil {
+			return nil, err
+		} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
+			return nil, err
+		} else {
+			for k, v := range parsed {
+				for _, v2 := range v {
+					queryValues.Add(k, v2)
+				}
+			}
+		}
+
+	}
+
 	if params.Org != nil {
 
 		if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); err != nil {
@@ -4953,6 +4946,54 @@ func NewGetDashboardsRequest(server string, params *GetDashboardsParams) (*http.
 
 	queryValues := queryURL.Query()
 
+	if params.Offset != nil {
+
+		if queryFrag, err := runtime.StyleParam("form", true, "offset", *params.Offset); err != nil {
+			return nil, err
+		} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
+			return nil, err
+		} else {
+			for k, v := range parsed {
+				for _, v2 := range v {
+					queryValues.Add(k, v2)
+				}
+			}
+		}
+
+	}
+
+	if params.Limit != nil {
+
+		if queryFrag, err := runtime.StyleParam("form", true, "limit", *params.Limit); err != nil {
+			return nil, err
+		} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
+			return nil, err
+		} else {
+			for k, v := range parsed {
+				for _, v2 := range v {
+					queryValues.Add(k, v2)
+				}
+			}
+		}
+
+	}
+
+	if params.Descending != nil {
+
+		if queryFrag, err := runtime.StyleParam("form", true, "descending", *params.Descending); err != nil {
+			return nil, err
+		} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
+			return nil, err
+		} else {
+			for k, v := range parsed {
+				for _, v2 := range v {
+					queryValues.Add(k, v2)
+				}
+			}
+		}
+
+	}
+
 	if params.Owner != nil {
 
 		if queryFrag, err := runtime.StyleParam("form", true, "owner", *params.Owner); err != nil {
@@ -8473,6 +8514,54 @@ func NewGetOrgsRequest(server string, params *GetOrgsParams) (*http.Request, err
 
 	queryValues := queryURL.Query()
 
+	if params.Offset != nil {
+
+		if queryFrag, err := runtime.StyleParam("form", true, "offset", *params.Offset); err != nil {
+			return nil, err
+		} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
+			return nil, err
+		} else {
+			for k, v := range parsed {
+				for _, v2 := range v {
+					queryValues.Add(k, v2)
+				}
+			}
+		}
+
+	}
+
+	if params.Limit != nil {
+
+		if queryFrag, err := runtime.StyleParam("form", true, "limit", *params.Limit); err != nil {
+			return nil, err
+		} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
+			return nil, err
+		} else {
+			for k, v := range parsed {
+				for _, v2 := range v {
+					queryValues.Add(k, v2)
+				}
+			}
+		}
+
+	}
+
+	if params.Descending != nil {
+
+		if queryFrag, err := runtime.StyleParam("form", true, "descending", *params.Descending); err != nil {
+			return nil, err
+		} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
+			return nil, err
+		} else {
+			for k, v := range parsed {
+				for _, v2 := range v {
+					queryValues.Add(k, v2)
+				}
+			}
+		}
+
+	}
+
 	if params.Org != nil {
 
 		if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); err != nil {
@@ -10014,70 +10103,6 @@ func NewDeleteScrapersIDLabelsIDRequest(server string, scraperTargetID string, l
 	return req, nil
 }
 
-// NewPatchScrapersIDLabelsIDRequest calls the generic PatchScrapersIDLabelsID builder with application/json body
-func NewPatchScrapersIDLabelsIDRequest(server string, scraperTargetID string, labelID string, params *PatchScrapersIDLabelsIDParams, body PatchScrapersIDLabelsIDJSONRequestBody) (*http.Request, error) {
-	var bodyReader io.Reader
-	buf, err := json.Marshal(body)
-	if err != nil {
-		return nil, err
-	}
-	bodyReader = bytes.NewReader(buf)
-	return NewPatchScrapersIDLabelsIDRequestWithBody(server, scraperTargetID, labelID, params, "application/json", bodyReader)
-}
-
-// NewPatchScrapersIDLabelsIDRequestWithBody generates requests for PatchScrapersIDLabelsID with any type of body
-func NewPatchScrapersIDLabelsIDRequestWithBody(server string, scraperTargetID string, labelID string, params *PatchScrapersIDLabelsIDParams, contentType string, body io.Reader) (*http.Request, error) {
-	var err error
-
-	var pathParam0 string
-
-	pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID)
-	if err != nil {
-		return nil, err
-	}
-
-	var pathParam1 string
-
-	pathParam1, err = runtime.StyleParam("simple", false, "labelID", labelID)
-	if err != nil {
-		return nil, err
-	}
-
-	queryURL, err := url.Parse(server)
-	if err != nil {
-		return nil, err
-	}
-
-	basePath := fmt.Sprintf("/scrapers/%s/labels/%s", pathParam0, pathParam1)
-	if basePath[0] == '/' {
-		basePath = basePath[1:]
-	}
-
-	queryURL, err = queryURL.Parse(basePath)
-	if err != nil {
-		return nil, err
-	}
-
-	req, err := http.NewRequest("PATCH", queryURL.String(), body)
-	if err != nil {
-		return nil, err
-	}
-
-	if params.ZapTraceSpan != nil {
-		var headerParam0 string
-
-		headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan)
-		if err != nil {
-			return nil, err
-		}
-
-		req.Header.Add("Zap-Trace-Span", headerParam0)
-	}
-
-	req.Header.Add("Content-Type", contentType)
-	return req, nil
-}
-
 // NewGetScrapersIDMembersRequest generates requests for GetScrapersIDMembers
 func NewGetScrapersIDMembersRequest(server string, scraperTargetID string, params *GetScrapersIDMembersParams) (*http.Request, error) {
 	var err error
@@ -17047,29 +17072,6 @@ func (r deleteScrapersIDLabelsIDResponse) StatusCode() int {
 	return 0
 }
 
-type patchScrapersIDLabelsIDResponse struct {
-	Body         []byte
-	HTTPResponse *http.Response
-	JSON404      *Error
-	JSONDefault  *Error
-}
-
-// Status returns HTTPResponse.Status
-func (r patchScrapersIDLabelsIDResponse) Status() string {
-	if r.HTTPResponse != nil {
-		return r.HTTPResponse.Status
-	}
-	return http.StatusText(0)
-}
-
-// StatusCode returns HTTPResponse.StatusCode
-func (r patchScrapersIDLabelsIDResponse) StatusCode() int {
-	if r.HTTPResponse != nil {
-		return r.HTTPResponse.StatusCode
-	}
-	return 0
-}
-
 type getScrapersIDMembersResponse struct {
 	Body         []byte
 	HTTPResponse *http.Response
@@ -20336,23 +20338,6 @@ func (c *ClientWithResponses) DeleteScrapersIDLabelsIDWithResponse(ctx context.C
 	return ParseDeleteScrapersIDLabelsIDResponse(rsp)
 }
 
-// PatchScrapersIDLabelsIDWithBodyWithResponse request with arbitrary body returning *PatchScrapersIDLabelsIDResponse
-func (c *ClientWithResponses) PatchScrapersIDLabelsIDWithBodyWithResponse(ctx context.Context, scraperTargetID string, labelID string, params *PatchScrapersIDLabelsIDParams, contentType string, body io.Reader) (*patchScrapersIDLabelsIDResponse, error) {
-	rsp, err := c.PatchScrapersIDLabelsIDWithBody(ctx, scraperTargetID, labelID, params, contentType, body)
-	if err != nil {
-		return nil, err
-	}
-	return ParsePatchScrapersIDLabelsIDResponse(rsp)
-}
-
-func (c *ClientWithResponses) PatchScrapersIDLabelsIDWithResponse(ctx context.Context, scraperTargetID string, labelID string, params *PatchScrapersIDLabelsIDParams, body PatchScrapersIDLabelsIDJSONRequestBody) (*patchScrapersIDLabelsIDResponse, error) {
-	rsp, err := c.PatchScrapersIDLabelsID(ctx, scraperTargetID, labelID, params, body)
-	if err != nil {
-		return nil, err
-	}
-	return ParsePatchScrapersIDLabelsIDResponse(rsp)
-}
-
 // GetScrapersIDMembersWithResponse request returning *GetScrapersIDMembersResponse
 func (c *ClientWithResponses) GetScrapersIDMembersWithResponse(ctx context.Context, scraperTargetID string, params *GetScrapersIDMembersParams) (*getScrapersIDMembersResponse, error) {
 	rsp, err := c.GetScrapersIDMembers(ctx, scraperTargetID, params)
@@ -21302,6 +21287,11 @@ func ParseGetRoutesResponse(rsp *http.Response) (*getRoutesResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21335,6 +21325,11 @@ func ParseGetAuthorizationsResponse(rsp *http.Response) (*getAuthorizationsRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21375,6 +21370,11 @@ func ParsePostAuthorizationsResponse(rsp *http.Response) (*postAuthorizationsRes
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21401,6 +21401,11 @@ func ParseDeleteAuthorizationsIDResponse(rsp *http.Response) (*deleteAuthorizati
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21434,6 +21439,11 @@ func ParseGetAuthorizationsIDResponse(rsp *http.Response) (*getAuthorizationsIDR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21467,6 +21477,11 @@ func ParsePatchAuthorizationsIDResponse(rsp *http.Response) (*patchAuthorization
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21500,6 +21515,11 @@ func ParseGetBucketsResponse(rsp *http.Response) (*getBucketsResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21540,6 +21560,11 @@ func ParsePostBucketsResponse(rsp *http.Response) (*postBucketsResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21573,6 +21598,11 @@ func ParseDeleteBucketsIDResponse(rsp *http.Response) (*deleteBucketsIDResponse,
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21606,6 +21636,11 @@ func ParseGetBucketsIDResponse(rsp *http.Response) (*getBucketsIDResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21639,6 +21674,11 @@ func ParsePatchBucketsIDResponse(rsp *http.Response) (*patchBucketsIDResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21672,6 +21712,11 @@ func ParseGetBucketsIDLabelsResponse(rsp *http.Response) (*getBucketsIDLabelsRes
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21705,6 +21750,11 @@ func ParsePostBucketsIDLabelsResponse(rsp *http.Response) (*postBucketsIDLabelsR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21738,6 +21788,11 @@ func ParseDeleteBucketsIDLabelsIDResponse(rsp *http.Response) (*deleteBucketsIDL
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21771,6 +21826,11 @@ func ParseGetBucketsIDMembersResponse(rsp *http.Response) (*getBucketsIDMembersR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21804,6 +21864,11 @@ func ParsePostBucketsIDMembersResponse(rsp *http.Response) (*postBucketsIDMember
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21830,6 +21895,11 @@ func ParseDeleteBucketsIDMembersIDResponse(rsp *http.Response) (*deleteBucketsID
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21863,6 +21933,11 @@ func ParseGetBucketsIDOwnersResponse(rsp *http.Response) (*getBucketsIDOwnersRes
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21896,6 +21971,11 @@ func ParsePostBucketsIDOwnersResponse(rsp *http.Response) (*postBucketsIDOwnersR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21922,6 +22002,11 @@ func ParseDeleteBucketsIDOwnersIDResponse(rsp *http.Response) (*deleteBucketsIDO
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21955,6 +22040,11 @@ func ParseGetChecksResponse(rsp *http.Response) (*getChecksResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -21988,7 +22078,12 @@ func ParseCreateCheckResponse(rsp *http.Response) (*createCheckResponse, error)
 
 	}
 
-	return response, nil
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
+	return response, nil
 }
 
 // ParseDeleteChecksIDResponse parses an HTTP response from a DeleteChecksIDWithResponse call
@@ -22021,6 +22116,11 @@ func ParseDeleteChecksIDResponse(rsp *http.Response) (*deleteChecksIDResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22054,6 +22154,11 @@ func ParseGetChecksIDResponse(rsp *http.Response) (*getChecksIDResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22094,6 +22199,11 @@ func ParsePatchChecksIDResponse(rsp *http.Response) (*patchChecksIDResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22134,6 +22244,11 @@ func ParsePutChecksIDResponse(rsp *http.Response) (*putChecksIDResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22167,6 +22282,11 @@ func ParseGetChecksIDLabelsResponse(rsp *http.Response) (*getChecksIDLabelsRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22200,6 +22320,11 @@ func ParsePostChecksIDLabelsResponse(rsp *http.Response) (*postChecksIDLabelsRes
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22233,6 +22358,11 @@ func ParseDeleteChecksIDLabelsIDResponse(rsp *http.Response) (*deleteChecksIDLab
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22280,6 +22410,11 @@ func ParseGetChecksIDQueryResponse(rsp *http.Response) (*getChecksIDQueryRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22313,6 +22448,11 @@ func ParseGetDashboardsResponse(rsp *http.Response) (*getDashboardsResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22346,6 +22486,11 @@ func ParsePostDashboardsResponse(rsp *http.Response) (*postDashboardsResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22379,6 +22524,11 @@ func ParseDeleteDashboardsIDResponse(rsp *http.Response) (*deleteDashboardsIDRes
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22419,6 +22569,11 @@ func ParseGetDashboardsIDResponse(rsp *http.Response) (*getDashboardsIDResponse,
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22459,6 +22614,11 @@ func ParsePatchDashboardsIDResponse(rsp *http.Response) (*patchDashboardsIDRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22499,6 +22659,11 @@ func ParsePostDashboardsIDCellsResponse(rsp *http.Response) (*postDashboardsIDCe
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22539,6 +22704,11 @@ func ParsePutDashboardsIDCellsResponse(rsp *http.Response) (*putDashboardsIDCell
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22572,6 +22742,11 @@ func ParseDeleteDashboardsIDCellsIDResponse(rsp *http.Response) (*deleteDashboar
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22612,6 +22787,11 @@ func ParsePatchDashboardsIDCellsIDResponse(rsp *http.Response) (*patchDashboards
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22652,6 +22832,11 @@ func ParseGetDashboardsIDCellsIDViewResponse(rsp *http.Response) (*getDashboards
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22692,6 +22877,11 @@ func ParsePatchDashboardsIDCellsIDViewResponse(rsp *http.Response) (*patchDashbo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22725,6 +22915,11 @@ func ParseGetDashboardsIDLabelsResponse(rsp *http.Response) (*getDashboardsIDLab
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22758,6 +22953,11 @@ func ParsePostDashboardsIDLabelsResponse(rsp *http.Response) (*postDashboardsIDL
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22791,6 +22991,11 @@ func ParseDeleteDashboardsIDLabelsIDResponse(rsp *http.Response) (*deleteDashboa
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22824,6 +23029,11 @@ func ParseGetDashboardsIDMembersResponse(rsp *http.Response) (*getDashboardsIDMe
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22857,6 +23067,11 @@ func ParsePostDashboardsIDMembersResponse(rsp *http.Response) (*postDashboardsID
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22883,6 +23098,11 @@ func ParseDeleteDashboardsIDMembersIDResponse(rsp *http.Response) (*deleteDashbo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22916,6 +23136,11 @@ func ParseGetDashboardsIDOwnersResponse(rsp *http.Response) (*getDashboardsIDOwn
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22949,6 +23174,11 @@ func ParsePostDashboardsIDOwnersResponse(rsp *http.Response) (*postDashboardsIDO
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -22975,6 +23205,11 @@ func ParseDeleteDashboardsIDOwnersIDResponse(rsp *http.Response) (*deleteDashboa
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23015,6 +23250,11 @@ func ParseGetDBRPsResponse(rsp *http.Response) (*getDBRPsResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23055,6 +23295,11 @@ func ParsePostDBRPResponse(rsp *http.Response) (*postDBRPResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23088,6 +23333,11 @@ func ParseDeleteDBRPIDResponse(rsp *http.Response) (*deleteDBRPIDResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23128,6 +23378,11 @@ func ParseGetDBRPsIDResponse(rsp *http.Response) (*getDBRPsIDResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23175,6 +23430,11 @@ func ParsePatchDBRPIDResponse(rsp *http.Response) (*patchDBRPIDResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23222,6 +23482,11 @@ func ParsePostDeleteResponse(rsp *http.Response) (*postDeleteResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23255,6 +23520,11 @@ func ParseGetDocumentsTemplatesResponse(rsp *http.Response) (*getDocumentsTempla
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23288,6 +23558,11 @@ func ParsePostDocumentsTemplatesResponse(rsp *http.Response) (*postDocumentsTemp
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23314,6 +23589,11 @@ func ParseDeleteDocumentsTemplatesIDResponse(rsp *http.Response) (*deleteDocumen
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23347,6 +23627,11 @@ func ParseGetDocumentsTemplatesIDResponse(rsp *http.Response) (*getDocumentsTemp
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23380,6 +23665,11 @@ func ParsePutDocumentsTemplatesIDResponse(rsp *http.Response) (*putDocumentsTemp
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23413,6 +23703,11 @@ func ParseGetDocumentsTemplatesIDLabelsResponse(rsp *http.Response) (*getDocumen
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23446,6 +23741,11 @@ func ParsePostDocumentsTemplatesIDLabelsResponse(rsp *http.Response) (*postDocum
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23479,6 +23779,11 @@ func ParseDeleteDocumentsTemplatesIDLabelsIDResponse(rsp *http.Response) (*delet
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23512,6 +23817,11 @@ func ParseGetFlagsResponse(rsp *http.Response) (*getFlagsResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23552,6 +23862,11 @@ func ParseGetHealthResponse(rsp *http.Response) (*getHealthResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23585,6 +23900,11 @@ func ParseGetLabelsResponse(rsp *http.Response) (*getLabelsResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23618,6 +23938,11 @@ func ParsePostLabelsResponse(rsp *http.Response) (*postLabelsResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23651,6 +23976,11 @@ func ParseDeleteLabelsIDResponse(rsp *http.Response) (*deleteLabelsIDResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23684,6 +24014,11 @@ func ParseGetLabelsIDResponse(rsp *http.Response) (*getLabelsIDResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23724,6 +24059,11 @@ func ParsePatchLabelsIDResponse(rsp *http.Response) (*patchLabelsIDResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23757,6 +24097,11 @@ func ParseGetMeResponse(rsp *http.Response) (*getMeResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23783,6 +24128,11 @@ func ParsePutMePasswordResponse(rsp *http.Response) (*putMePasswordResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23816,6 +24166,11 @@ func ParseGetNotificationEndpointsResponse(rsp *http.Response) (*getNotification
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23849,6 +24204,11 @@ func ParseCreateNotificationEndpointResponse(rsp *http.Response) (*createNotific
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23882,6 +24242,11 @@ func ParseDeleteNotificationEndpointsIDResponse(rsp *http.Response) (*deleteNoti
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23915,6 +24280,11 @@ func ParseGetNotificationEndpointsIDResponse(rsp *http.Response) (*getNotificati
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23955,6 +24325,11 @@ func ParsePatchNotificationEndpointsIDResponse(rsp *http.Response) (*patchNotifi
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -23995,6 +24370,11 @@ func ParsePutNotificationEndpointsIDResponse(rsp *http.Response) (*putNotificati
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24028,6 +24408,11 @@ func ParseGetNotificationEndpointsIDLabelsResponse(rsp *http.Response) (*getNoti
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24061,6 +24446,11 @@ func ParsePostNotificationEndpointIDLabelsResponse(rsp *http.Response) (*postNot
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24094,6 +24484,11 @@ func ParseDeleteNotificationEndpointsIDLabelsIDResponse(rsp *http.Response) (*de
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24127,6 +24522,11 @@ func ParseGetNotificationRulesResponse(rsp *http.Response) (*getNotificationRule
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24160,6 +24560,11 @@ func ParseCreateNotificationRuleResponse(rsp *http.Response) (*createNotificatio
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24193,6 +24598,11 @@ func ParseDeleteNotificationRulesIDResponse(rsp *http.Response) (*deleteNotifica
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24226,6 +24636,11 @@ func ParseGetNotificationRulesIDResponse(rsp *http.Response) (*getNotificationRu
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24266,6 +24681,11 @@ func ParsePatchNotificationRulesIDResponse(rsp *http.Response) (*patchNotificati
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24306,6 +24726,11 @@ func ParsePutNotificationRulesIDResponse(rsp *http.Response) (*putNotificationRu
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24339,6 +24764,11 @@ func ParseGetNotificationRulesIDLabelsResponse(rsp *http.Response) (*getNotifica
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24372,6 +24802,11 @@ func ParsePostNotificationRuleIDLabelsResponse(rsp *http.Response) (*postNotific
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24405,6 +24840,11 @@ func ParseDeleteNotificationRulesIDLabelsIDResponse(rsp *http.Response) (*delete
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24452,6 +24892,11 @@ func ParseGetNotificationRulesIDQueryResponse(rsp *http.Response) (*getNotificat
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24485,6 +24930,11 @@ func ParseGetOrgsResponse(rsp *http.Response) (*getOrgsResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24518,6 +24968,11 @@ func ParsePostOrgsResponse(rsp *http.Response) (*postOrgsResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24551,6 +25006,11 @@ func ParseDeleteOrgsIDResponse(rsp *http.Response) (*deleteOrgsIDResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24584,6 +25044,11 @@ func ParseGetOrgsIDResponse(rsp *http.Response) (*getOrgsIDResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24617,6 +25082,11 @@ func ParsePatchOrgsIDResponse(rsp *http.Response) (*patchOrgsIDResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24657,6 +25127,11 @@ func ParseGetOrgsIDMembersResponse(rsp *http.Response) (*getOrgsIDMembersRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24690,6 +25165,11 @@ func ParsePostOrgsIDMembersResponse(rsp *http.Response) (*postOrgsIDMembersRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24716,6 +25196,11 @@ func ParseDeleteOrgsIDMembersIDResponse(rsp *http.Response) (*deleteOrgsIDMember
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24756,6 +25241,11 @@ func ParseGetOrgsIDOwnersResponse(rsp *http.Response) (*getOrgsIDOwnersResponse,
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24789,6 +25279,11 @@ func ParsePostOrgsIDOwnersResponse(rsp *http.Response) (*postOrgsIDOwnersRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24815,6 +25310,11 @@ func ParseDeleteOrgsIDOwnersIDResponse(rsp *http.Response) (*deleteOrgsIDOwnersI
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24848,6 +25348,11 @@ func ParseGetOrgsIDSecretsResponse(rsp *http.Response) (*getOrgsIDSecretsRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24874,6 +25379,11 @@ func ParsePatchOrgsIDSecretsResponse(rsp *http.Response) (*patchOrgsIDSecretsRes
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24900,6 +25410,11 @@ func ParsePostOrgsIDSecretsResponse(rsp *http.Response) (*postOrgsIDSecretsRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24926,6 +25441,11 @@ func ParsePostQueryResponse(rsp *http.Response) (*postQueryResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24959,6 +25479,11 @@ func ParsePostQueryAnalyzeResponse(rsp *http.Response) (*postQueryAnalyzeRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -24992,6 +25517,11 @@ func ParsePostQueryAstResponse(rsp *http.Response) (*postQueryAstResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25025,6 +25555,11 @@ func ParseGetQuerySuggestionsResponse(rsp *http.Response) (*getQuerySuggestionsR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25058,6 +25593,11 @@ func ParseGetQuerySuggestionsNameResponse(rsp *http.Response) (*getQuerySuggesti
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25091,6 +25631,11 @@ func ParseGetReadyResponse(rsp *http.Response) (*getReadyResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25117,6 +25662,11 @@ func ParseGetScrapersResponse(rsp *http.Response) (*getScrapersResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25150,6 +25700,11 @@ func ParsePostScrapersResponse(rsp *http.Response) (*postScrapersResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25176,6 +25731,11 @@ func ParseDeleteScrapersIDResponse(rsp *http.Response) (*deleteScrapersIDRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25209,6 +25769,11 @@ func ParseGetScrapersIDResponse(rsp *http.Response) (*getScrapersIDResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25242,6 +25807,11 @@ func ParsePatchScrapersIDResponse(rsp *http.Response) (*patchScrapersIDResponse,
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25275,6 +25845,11 @@ func ParseGetScrapersIDLabelsResponse(rsp *http.Response) (*getScrapersIDLabelsR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25308,6 +25883,11 @@ func ParsePostScrapersIDLabelsResponse(rsp *http.Response) (*postScrapersIDLabel
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25341,37 +25921,9 @@ func ParseDeleteScrapersIDLabelsIDResponse(rsp *http.Response) (*deleteScrapersI
 
 	}
 
-	return response, nil
-}
-
-// ParsePatchScrapersIDLabelsIDResponse parses an HTTP response from a PatchScrapersIDLabelsIDWithResponse call
-func ParsePatchScrapersIDLabelsIDResponse(rsp *http.Response) (*patchScrapersIDLabelsIDResponse, error) {
-	bodyBytes, err := ioutil.ReadAll(rsp.Body)
-	defer rsp.Body.Close()
-	if err != nil {
-		return nil, err
-	}
-
-	response := &patchScrapersIDLabelsIDResponse{
-		Body:         bodyBytes,
-		HTTPResponse: rsp,
-	}
-
-	switch {
-	case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
-		var dest Error
-		if err := json.Unmarshal(bodyBytes, &dest); err != nil {
-			return nil, err
-		}
-		response.JSON404 = &dest
-
-	case strings.Contains(rsp.Header.Get("Content-Type"), "json"):
-		var dest Error
-		if err := json.Unmarshal(bodyBytes, &dest); err != nil {
-			return nil, err
-		}
-		response.JSONDefault = &dest
-
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
 	}
 
 	return response, nil
@@ -25407,6 +25959,11 @@ func ParseGetScrapersIDMembersResponse(rsp *http.Response) (*getScrapersIDMember
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25440,6 +25997,11 @@ func ParsePostScrapersIDMembersResponse(rsp *http.Response) (*postScrapersIDMemb
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25466,6 +26028,11 @@ func ParseDeleteScrapersIDMembersIDResponse(rsp *http.Response) (*deleteScrapers
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25499,6 +26066,11 @@ func ParseGetScrapersIDOwnersResponse(rsp *http.Response) (*getScrapersIDOwnersR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25532,6 +26104,11 @@ func ParsePostScrapersIDOwnersResponse(rsp *http.Response) (*postScrapersIDOwner
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25558,6 +26135,11 @@ func ParseDeleteScrapersIDOwnersIDResponse(rsp *http.Response) (*deleteScrapersI
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25584,6 +26166,11 @@ func ParseGetSetupResponse(rsp *http.Response) (*getSetupResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25617,6 +26204,11 @@ func ParsePostSetupResponse(rsp *http.Response) (*postSetupResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25650,6 +26242,11 @@ func ParsePostSetupUserResponse(rsp *http.Response) (*postSetupUserResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25690,6 +26287,11 @@ func ParsePostSigninResponse(rsp *http.Response) (*postSigninResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25723,6 +26325,11 @@ func ParsePostSignoutResponse(rsp *http.Response) (*postSignoutResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25756,6 +26363,11 @@ func ParseGetSourcesResponse(rsp *http.Response) (*getSourcesResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25789,6 +26401,11 @@ func ParsePostSourcesResponse(rsp *http.Response) (*postSourcesResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25822,6 +26439,11 @@ func ParseDeleteSourcesIDResponse(rsp *http.Response) (*deleteSourcesIDResponse,
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25862,6 +26484,11 @@ func ParseGetSourcesIDResponse(rsp *http.Response) (*getSourcesIDResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25902,6 +26529,11 @@ func ParsePatchSourcesIDResponse(rsp *http.Response) (*patchSourcesIDResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25942,6 +26574,11 @@ func ParseGetSourcesIDBucketsResponse(rsp *http.Response) (*getSourcesIDBucketsR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -25982,6 +26619,11 @@ func ParseGetSourcesIDHealthResponse(rsp *http.Response) (*getSourcesIDHealthRes
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26017,6 +26659,11 @@ func ParseListStacksResponse(rsp *http.Response) (*listStacksResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26050,6 +26697,11 @@ func ParseCreateStackResponse(rsp *http.Response) (*createStackResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26076,6 +26728,11 @@ func ParseDeleteStackResponse(rsp *http.Response) (*deleteStackResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26109,6 +26766,11 @@ func ParseReadStackResponse(rsp *http.Response) (*readStackResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26142,6 +26804,11 @@ func ParseUpdateStackResponse(rsp *http.Response) (*updateStackResponse, error)
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26175,6 +26842,11 @@ func ParseUninstallStackResponse(rsp *http.Response) (*uninstallStackResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26208,6 +26880,11 @@ func ParseGetTasksResponse(rsp *http.Response) (*getTasksResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26241,6 +26918,11 @@ func ParsePostTasksResponse(rsp *http.Response) (*postTasksResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26267,6 +26949,11 @@ func ParseDeleteTasksIDResponse(rsp *http.Response) (*deleteTasksIDResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26300,6 +26987,11 @@ func ParseGetTasksIDResponse(rsp *http.Response) (*getTasksIDResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26333,6 +27025,11 @@ func ParsePatchTasksIDResponse(rsp *http.Response) (*patchTasksIDResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26366,6 +27063,11 @@ func ParseGetTasksIDLabelsResponse(rsp *http.Response) (*getTasksIDLabelsRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26399,6 +27101,11 @@ func ParsePostTasksIDLabelsResponse(rsp *http.Response) (*postTasksIDLabelsRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26432,6 +27139,11 @@ func ParseDeleteTasksIDLabelsIDResponse(rsp *http.Response) (*deleteTasksIDLabel
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26465,6 +27177,11 @@ func ParseGetTasksIDLogsResponse(rsp *http.Response) (*getTasksIDLogsResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26498,6 +27215,11 @@ func ParseGetTasksIDMembersResponse(rsp *http.Response) (*getTasksIDMembersRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26531,6 +27253,11 @@ func ParsePostTasksIDMembersResponse(rsp *http.Response) (*postTasksIDMembersRes
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26557,6 +27284,11 @@ func ParseDeleteTasksIDMembersIDResponse(rsp *http.Response) (*deleteTasksIDMemb
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26590,6 +27322,11 @@ func ParseGetTasksIDOwnersResponse(rsp *http.Response) (*getTasksIDOwnersRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26623,6 +27360,11 @@ func ParsePostTasksIDOwnersResponse(rsp *http.Response) (*postTasksIDOwnersRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26649,6 +27391,11 @@ func ParseDeleteTasksIDOwnersIDResponse(rsp *http.Response) (*deleteTasksIDOwner
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26682,6 +27429,11 @@ func ParseGetTasksIDRunsResponse(rsp *http.Response) (*getTasksIDRunsResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26715,6 +27467,11 @@ func ParsePostTasksIDRunsResponse(rsp *http.Response) (*postTasksIDRunsResponse,
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26741,6 +27498,11 @@ func ParseDeleteTasksIDRunsIDResponse(rsp *http.Response) (*deleteTasksIDRunsIDR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26774,6 +27536,11 @@ func ParseGetTasksIDRunsIDResponse(rsp *http.Response) (*getTasksIDRunsIDRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26807,6 +27574,11 @@ func ParseGetTasksIDRunsIDLogsResponse(rsp *http.Response) (*getTasksIDRunsIDLog
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26840,6 +27612,11 @@ func ParsePostTasksIDRunsIDRetryResponse(rsp *http.Response) (*postTasksIDRunsID
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26873,6 +27650,11 @@ func ParseGetTelegrafPluginsResponse(rsp *http.Response) (*getTelegrafPluginsRes
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26906,6 +27688,11 @@ func ParseGetTelegrafsResponse(rsp *http.Response) (*getTelegrafsResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26939,6 +27726,11 @@ func ParsePostTelegrafsResponse(rsp *http.Response) (*postTelegrafsResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -26965,6 +27757,11 @@ func ParseDeleteTelegrafsIDResponse(rsp *http.Response) (*deleteTelegrafsIDRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27001,6 +27798,11 @@ func ParseGetTelegrafsIDResponse(rsp *http.Response) (*getTelegrafsIDResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27034,6 +27836,11 @@ func ParsePutTelegrafsIDResponse(rsp *http.Response) (*putTelegrafsIDResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27067,6 +27874,11 @@ func ParseGetTelegrafsIDLabelsResponse(rsp *http.Response) (*getTelegrafsIDLabel
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27100,6 +27912,11 @@ func ParsePostTelegrafsIDLabelsResponse(rsp *http.Response) (*postTelegrafsIDLab
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27133,6 +27950,11 @@ func ParseDeleteTelegrafsIDLabelsIDResponse(rsp *http.Response) (*deleteTelegraf
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27166,6 +27988,11 @@ func ParseGetTelegrafsIDMembersResponse(rsp *http.Response) (*getTelegrafsIDMemb
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27199,6 +28026,11 @@ func ParsePostTelegrafsIDMembersResponse(rsp *http.Response) (*postTelegrafsIDMe
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27225,6 +28057,11 @@ func ParseDeleteTelegrafsIDMembersIDResponse(rsp *http.Response) (*deleteTelegra
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27258,6 +28095,11 @@ func ParseGetTelegrafsIDOwnersResponse(rsp *http.Response) (*getTelegrafsIDOwner
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27291,6 +28133,11 @@ func ParsePostTelegrafsIDOwnersResponse(rsp *http.Response) (*postTelegrafsIDOwn
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27317,6 +28164,11 @@ func ParseDeleteTelegrafsIDOwnersIDResponse(rsp *http.Response) (*deleteTelegraf
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27357,6 +28209,11 @@ func ParseApplyTemplateResponse(rsp *http.Response) (*applyTemplateResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27397,6 +28254,11 @@ func ParseExportTemplateResponse(rsp *http.Response) (*exportTemplateResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27430,6 +28292,11 @@ func ParseGetUsersResponse(rsp *http.Response) (*getUsersResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27463,6 +28330,11 @@ func ParsePostUsersResponse(rsp *http.Response) (*postUsersResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27489,6 +28361,11 @@ func ParseDeleteUsersIDResponse(rsp *http.Response) (*deleteUsersIDResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27522,6 +28399,11 @@ func ParseGetUsersIDResponse(rsp *http.Response) (*getUsersIDResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27555,6 +28437,11 @@ func ParsePatchUsersIDResponse(rsp *http.Response) (*patchUsersIDResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27581,6 +28468,11 @@ func ParsePostUsersIDPasswordResponse(rsp *http.Response) (*postUsersIDPasswordR
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27621,6 +28513,11 @@ func ParseGetVariablesResponse(rsp *http.Response) (*getVariablesResponse, error
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27654,6 +28551,11 @@ func ParsePostVariablesResponse(rsp *http.Response) (*postVariablesResponse, err
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27680,6 +28582,11 @@ func ParseDeleteVariablesIDResponse(rsp *http.Response) (*deleteVariablesIDRespo
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27720,6 +28627,11 @@ func ParseGetVariablesIDResponse(rsp *http.Response) (*getVariablesIDResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27753,6 +28665,11 @@ func ParsePatchVariablesIDResponse(rsp *http.Response) (*patchVariablesIDRespons
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27786,6 +28703,11 @@ func ParsePutVariablesIDResponse(rsp *http.Response) (*putVariablesIDResponse, e
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27819,6 +28741,11 @@ func ParseGetVariablesIDLabelsResponse(rsp *http.Response) (*getVariablesIDLabel
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27852,6 +28779,11 @@ func ParsePostVariablesIDLabelsResponse(rsp *http.Response) (*postVariablesIDLab
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27885,6 +28817,11 @@ func ParseDeleteVariablesIDLabelsIDResponse(rsp *http.Response) (*deleteVariable
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
 
@@ -27939,5 +28876,10 @@ func ParsePostWriteResponse(rsp *http.Response) (*postWriteResponse, error) {
 
 	}
 
+	// Fallback for unexpected error
+	if len(response.Body) == 0 && rsp.StatusCode > 299 {
+		return nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+	}
+
 	return response, nil
 }
diff --git a/domain/swagger.yml b/domain/swagger.yml
index c684919..38ae8ca 100644
--- a/domain/swagger.yml
+++ b/domain/swagger.yml
@@ -1283,47 +1283,6 @@ paths:
             application/json:
               schema:
                 $ref: "#/components/schemas/Error"
-    patch:
-      operationId: PatchScrapersIDLabelsID
-      tags:
-        - ScraperTargets
-      summary: Update a label on a scraper target
-      parameters:
-        - $ref: "#/components/parameters/TraceSpan"
-        - in: path
-          name: scraperTargetID
-          schema:
-            type: string
-          required: true
-          description: The scraper target ID.
-        - in: path
-          name: labelID
-          schema:
-            type: string
-          required: true
-          description: The label ID.
-      requestBody:
-        description: Label update to apply
-        required: true
-        content:
-          application/json:
-            schema:
-              $ref: "#/components/schemas/Label"
-      responses:
-        "200":
-          description: Updated successfully
-        "404":
-          description: Scraper target not found
-          content:
-            application/json:
-              schema:
-                $ref: "#/components/schemas/Error"
-        default:
-          description: Unexpected error
-          content:
-            application/json:
-              schema:
-                $ref: "#/components/schemas/Error"
   "/scrapers/{scraperTargetID}/members":
     get:
       operationId: GetScrapersIDMembers
@@ -2433,6 +2392,9 @@ paths:
       summary: Get all dashboards
       parameters:
         - $ref: "#/components/parameters/TraceSpan"
+        - $ref: "#/components/parameters/Offset"
+        - $ref: "#/components/parameters/Limit"
+        - $ref: "#/components/parameters/Descending"
         - in: query
           name: owner
           description: The owner ID.
@@ -3504,6 +3466,7 @@ paths:
         - $ref: "#/components/parameters/TraceSpan"
         - $ref: "#/components/parameters/Offset"
         - $ref: "#/components/parameters/Limit"
+        - $ref: "#/components/parameters/After"
         - in: query
           name: org
           description: The organization name.
@@ -3940,6 +3903,9 @@ paths:
       summary: List all organizations
       parameters:
         - $ref: "#/components/parameters/TraceSpan"
+        - $ref: "#/components/parameters/Offset"
+        - $ref: "#/components/parameters/Limit"
+        - $ref: "#/components/parameters/Descending"
         - in: query
           name: org
           schema:
@@ -4513,7 +4479,7 @@ paths:
                         type: string
                       templateMetaName:
                         type: string
-                    required: ["kind","resourceID"]
+                    required: ["kind", "resourceID"]
       responses:
         "200":
           description: Influx stack updated
@@ -6550,6 +6516,15 @@ components:
       required: false
       schema:
         type: string
+    After:
+      in: query
+      name: after
+      required: false
+      schema:
+        type: string
+      description: >
+        The last resource ID from which to seek from (but not including).
+        This is to be used instead of `offset`.
   schemas:
     LanguageRequest:
       description: Flux query to be analyzed.
@@ -7047,15 +7022,15 @@ components:
           maxLength: 1
           minLength: 1
         annotations:
-          description: Https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns
+          description: https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns
           type: array
+          uniqueItems: true
           items:
             type: string
             enum:
               - "group"
               - "datatype"
               - "default"
-            uniqueItems: true
         commentPrefix:
           description: Character prefixed to comment strings
           type: string
@@ -7151,7 +7126,7 @@ components:
               description: ID of org that authorization is scoped to.
             permissions:
               type: array
-              minLength: 1
+              minItems: 1
               description: List of permissions for an auth.  An auth must have at least one Permission.
               items:
                 $ref: "#/components/schemas/Permission"
@@ -8981,9 +8956,73 @@ components:
           enum: [overlaid, stacked]
         geom:
           $ref: "#/components/schemas/XYGeom"
+        legendOpacity:
+          type: number
+          format: float
+        legendOrientationThreshold:
+          type: integer
     XYGeom:
       type: string
       enum: [line, step, stacked, bar, monotoneX]
+    BandViewProperties:
+      type: object
+      required:
+        - type
+        - geom
+        - queries
+        - shape
+        - axes
+        - colors
+        - legend
+        - note
+        - showNoteWhenEmpty
+      properties:
+        timeFormat:
+          type: string
+        type:
+          type: string
+          enum: [band]
+        queries:
+          type: array
+          items:
+            $ref: "#/components/schemas/DashboardQuery"
+        colors:
+          description: Colors define color encoding of data into a visualization
+          type: array
+          items:
+            $ref: "#/components/schemas/DashboardColor"
+        shape:
+          type: string
+          enum: ["chronograf-v2"]
+        note:
+          type: string
+        showNoteWhenEmpty:
+          description: If true, will display note when empty
+          type: boolean
+        axes:
+          $ref: "#/components/schemas/Axes"
+        legend:
+          $ref: "#/components/schemas/Legend"
+        xColumn:
+          type: string
+        yColumn:
+          type: string
+        upperColumn:
+          type: string
+        mainColumn:
+          type: string
+        lowerColumn:
+          type: string
+        hoverDimension:
+          type: string
+          enum: [auto, x, y, xy]
+        geom:
+          $ref: "#/components/schemas/XYGeom"
+        legendOpacity:
+          type: number
+          format: float
+        legendOrientationThreshold:
+          type: integer
     LinePlusSingleStatProperties:
       type: object
       required:
@@ -9044,6 +9083,11 @@ components:
           type: string
         decimalPlaces:
           $ref: "#/components/schemas/DecimalPlaces"
+        legendOpacity:
+          type: number
+          format: float
+        legendOrientationThreshold:
+          type: integer
     MosaicViewProperties:
       type: object
       required:
@@ -9119,6 +9163,11 @@ components:
           type: string
         ySuffix:
           type: string
+        legendOpacity:
+          type: number
+          format: float
+        legendOrientationThreshold:
+          type: integer
     ScatterViewProperties:
       type: object
       required:
@@ -9197,6 +9246,11 @@ components:
           type: string
         ySuffix:
           type: string
+        legendOpacity:
+          type: number
+          format: float
+        legendOrientationThreshold:
+          type: integer
     HeatmapViewProperties:
       type: object
       required:
@@ -9268,6 +9322,11 @@ components:
           type: string
         binSize:
           type: number
+        legendOpacity:
+          type: number
+          format: float
+        legendOrientationThreshold:
+          type: integer
     SingleStatViewProperties:
       type: object
       required:
@@ -9316,6 +9375,11 @@ components:
           $ref: "#/components/schemas/Legend"
         decimalPlaces:
           $ref: "#/components/schemas/DecimalPlaces"
+        legendOpacity:
+          type: number
+          format: float
+        legendOrientationThreshold:
+          type: integer
     HistogramViewProperties:
       type: object
       required:
@@ -9370,6 +9434,11 @@ components:
           enum: [overlaid, stacked]
         binCount:
           type: integer
+        legendOpacity:
+          type: number
+          format: float
+        legendOrientationThreshold:
+          type: integer
     GaugeViewProperties:
       type: object
       required:
@@ -9532,6 +9601,11 @@ components:
           type: array
           items:
             $ref: "#/components/schemas/DashboardColor"
+        legendOpacity:
+          type: number
+          format: float
+        legendOrientationThreshold:
+          type: integer
     Axes:
       description: The viewport for a View's visualizations
       type: object
@@ -9702,6 +9776,7 @@ components:
         - $ref: "#/components/schemas/ScatterViewProperties"
         - $ref: "#/components/schemas/HeatmapViewProperties"
         - $ref: "#/components/schemas/MosaicViewProperties"
+        - $ref: "#/components/schemas/BandViewProperties"
     View:
       required:
         - name
@@ -10824,7 +10899,7 @@ components:
           example: { "color": "ffb3b3", "description": "this is a description" }
     LabelCreateRequest:
       type: object
-      required: [orgID]
+      required: [orgID, name]
       properties:
         orgID:
           type: string
@@ -11199,6 +11274,7 @@ components:
         - $ref: "#/components/schemas/SMTPNotificationRule"
         - $ref: "#/components/schemas/PagerDutyNotificationRule"
         - $ref: "#/components/schemas/HTTPNotificationRule"
+        - $ref: "#/components/schemas/TelegramNotificationRule"
       discriminator:
         propertyName: type
         mapping:
@@ -11206,6 +11282,7 @@ components:
           smtp: "#/components/schemas/SMTPNotificationRule"
           pagerduty: "#/components/schemas/PagerDutyNotificationRule"
           http: "#/components/schemas/HTTPNotificationRule"
+          telegram: "#/components/schemas/TelegramNotificationRule"
     NotificationRule:
       allOf:
         - $ref: "#/components/schemas/NotificationRuleDiscriminator"
@@ -11407,6 +11484,31 @@ components:
           enum: [pagerduty]
         messageTemplate:
           type: string
+    TelegramNotificationRule:
+      allOf:
+        - $ref: "#/components/schemas/NotificationRuleBase"
+        - $ref: "#/components/schemas/TelegramNotificationRuleBase"
+    TelegramNotificationRuleBase:
+      type: object
+      required: [type, messageTemplate, channel]
+      properties:
+        type:
+          description: The discriminator between other types of notification rules is "telegram".
+          type: string
+          enum: [telegram]
+        messageTemplate:
+          description: The message template as a flux interpolated string.
+          type: string
+        parseMode:
+          description: Parse mode of the message text per https://core.telegram.org/bots/api#formatting-options . Defaults to "MarkdownV2" .
+          type: string
+          enum:
+            - MarkdownV2
+            - HTML
+            - Markdown
+        disableWebPagePreview:
+          description: Disables preview of web links in the sent messages when "true". Defaults to "false" .
+          type: boolean
     NotificationEndpointUpdate:
       type: object
 
@@ -11425,12 +11527,14 @@ components:
         - $ref: "#/components/schemas/SlackNotificationEndpoint"
         - $ref: "#/components/schemas/PagerDutyNotificationEndpoint"
         - $ref: "#/components/schemas/HTTPNotificationEndpoint"
+        - $ref: "#/components/schemas/TelegramNotificationEndpoint"
       discriminator:
         propertyName: type
         mapping:
           slack: "#/components/schemas/SlackNotificationEndpoint"
           pagerduty: "#/components/schemas/PagerDutyNotificationEndpoint"
           http: "#/components/schemas/HTTPNotificationEndpoint"
+          telegram: "#/components/schemas/TelegramNotificationEndpoint"
     NotificationEndpoint:
       allOf:
         - $ref: "#/components/schemas/NotificationEndpointDiscrimator"
@@ -11549,9 +11653,22 @@ components:
               description: Customized headers.
               additionalProperties:
                 type: string
+    TelegramNotificationEndpoint:
+      type: object
+      allOf:
+        - $ref: "#/components/schemas/NotificationEndpointBase"
+        - type: object
+          required: [token, channel]
+          properties:
+            token:
+              description: Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot .
+              type: string
+            channel:
+              description: ID of the telegram channel, a chat_id in https://core.telegram.org/bots/api#sendmessage .
+              type: string
     NotificationEndpointType:
       type: string
-      enum: ["slack", "pagerduty", "http"]
+      enum: ["slack", "pagerduty", "http", "telegram"]
     DBRP:
       required:
         - orgID
diff --git a/domain/templates/client-with-responses.tmpl b/domain/templates/client-with-responses.tmpl
index fe18e3b..564eec9 100644
--- a/domain/templates/client-with-responses.tmpl
+++ b/domain/templates/client-with-responses.tmpl
@@ -80,6 +80,11 @@ func Parse{{genResponseTypeName $opid | ucFirst}}(rsp *http.Response) (*{{genRes
 
     {{genResponseUnmarshal .}}
 
+    // Fallback for unexpected error
+    if len(response.Body) == 0 && rsp.StatusCode > 299 {
+        return  nil, &ihttp.Error{StatusCode: rsp.StatusCode, Message: rsp.Status}
+    }
+
     return response, nil
 }
 {{end}}{{/* range . $opid := .OperationId */}}
diff --git a/domain/types.gen.go b/domain/types.gen.go
index 2d7b9b3..c76310c 100644
--- a/domain/types.gen.go
+++ b/domain/types.gen.go
@@ -33,6 +33,27 @@ const (
 	AxisScaleLog AxisScale = "log"
 )
 
+// Defines values for BandViewPropertiesHoverDimension.
+const (
+	BandViewPropertiesHoverDimensionAuto BandViewPropertiesHoverDimension = "auto"
+
+	BandViewPropertiesHoverDimensionTrue BandViewPropertiesHoverDimension = "true"
+
+	BandViewPropertiesHoverDimensionX BandViewPropertiesHoverDimension = "x"
+
+	BandViewPropertiesHoverDimensionXy BandViewPropertiesHoverDimension = "xy"
+)
+
+// Defines values for BandViewPropertiesShape.
+const (
+	BandViewPropertiesShapeChronografV2 BandViewPropertiesShape = "chronograf-v2"
+)
+
+// Defines values for BandViewPropertiesType.
+const (
+	BandViewPropertiesTypeBand BandViewPropertiesType = "band"
+)
+
 // Defines values for BucketType.
 const (
 	BucketTypeSystem BucketType = "system"
@@ -364,6 +385,8 @@ const (
 	NotificationEndpointTypePagerduty NotificationEndpointType = "pagerduty"
 
 	NotificationEndpointTypeSlack NotificationEndpointType = "slack"
+
+	NotificationEndpointTypeTelegram NotificationEndpointType = "telegram"
 )
 
 // Defines values for NotificationEndpointUpdateStatus.
@@ -841,6 +864,20 @@ const (
 	TelegrafPluginOutputInfluxDBV2TypeOutput TelegrafPluginOutputInfluxDBV2Type = "output"
 )
 
+// Defines values for TelegramNotificationRuleBaseParseMode.
+const (
+	TelegramNotificationRuleBaseParseModeHTML TelegramNotificationRuleBaseParseMode = "HTML"
+
+	TelegramNotificationRuleBaseParseModeMarkdown TelegramNotificationRuleBaseParseMode = "Markdown"
+
+	TelegramNotificationRuleBaseParseModeMarkdownV2 TelegramNotificationRuleBaseParseMode = "MarkdownV2"
+)
+
+// Defines values for TelegramNotificationRuleBaseType.
+const (
+	TelegramNotificationRuleBaseTypeTelegram TelegramNotificationRuleBaseType = "telegram"
+)
+
 // Defines values for TemplateKind.
 const (
 	TemplateKindBucket TemplateKind = "Bucket"
@@ -1072,6 +1109,45 @@ type BadStatement struct {
 	Type *NodeType `json:"type,omitempty"`
 }
 
+// BandViewProperties defines model for BandViewProperties.
+type BandViewProperties struct {
+
+	// The viewport for a View's visualizations
+	Axes Axes `json:"axes"`
+
+	// Colors define color encoding of data into a visualization
+	Colors         []DashboardColor                  `json:"colors"`
+	Geom           XYGeom                            `json:"geom"`
+	HoverDimension *BandViewPropertiesHoverDimension `json:"hoverDimension,omitempty"`
+
+	// Legend define encoding of data into a view's legend
+	Legend                     Legend                  `json:"legend"`
+	LegendOpacity              *float32                `json:"legendOpacity,omitempty"`
+	LegendOrientationThreshold *int                    `json:"legendOrientationThreshold,omitempty"`
+	LowerColumn                *string                 `json:"lowerColumn,omitempty"`
+	MainColumn                 *string                 `json:"mainColumn,omitempty"`
+	Note                       string                  `json:"note"`
+	Queries                    []DashboardQuery        `json:"queries"`
+	Shape                      BandViewPropertiesShape `json:"shape"`
+
+	// If true, will display note when empty
+	ShowNoteWhenEmpty bool                   `json:"showNoteWhenEmpty"`
+	TimeFormat        *string                `json:"timeFormat,omitempty"`
+	Type              BandViewPropertiesType `json:"type"`
+	UpperColumn       *string                `json:"upperColumn,omitempty"`
+	XColumn           *string                `json:"xColumn,omitempty"`
+	YColumn           *string                `json:"yColumn,omitempty"`
+}
+
+// BandViewPropertiesHoverDimension defines model for BandViewProperties.HoverDimension.
+type BandViewPropertiesHoverDimension string
+
+// BandViewPropertiesShape defines model for BandViewProperties.Shape.
+type BandViewPropertiesShape string
+
+// BandViewPropertiesType defines model for BandViewProperties.Type.
+type BandViewPropertiesType string
+
 // BinaryExpression defines model for BinaryExpression.
 type BinaryExpression struct {
 	Left     *Expression `json:"left,omitempty"`
@@ -1304,10 +1380,12 @@ type CheckViewProperties struct {
 	CheckID string `json:"checkID"`
 
 	// Colors define color encoding of data into a visualization
-	Colors  []DashboardColor         `json:"colors"`
-	Queries []DashboardQuery         `json:"queries"`
-	Shape   CheckViewPropertiesShape `json:"shape"`
-	Type    CheckViewPropertiesType  `json:"type"`
+	Colors                     []DashboardColor         `json:"colors"`
+	LegendOpacity              *float32                 `json:"legendOpacity,omitempty"`
+	LegendOrientationThreshold *int                     `json:"legendOrientationThreshold,omitempty"`
+	Queries                    []DashboardQuery         `json:"queries"`
+	Shape                      CheckViewPropertiesShape `json:"shape"`
+	Type                       CheckViewPropertiesType  `json:"type"`
 }
 
 // CheckViewPropertiesShape defines model for CheckViewProperties.Shape.
@@ -1599,7 +1677,7 @@ type DeletePredicateRequest struct {
 // Dialect defines model for Dialect.
 type Dialect struct {
 
-	// Https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns
+	// https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns
 	Annotations *[]DialectAnnotations `json:"annotations,omitempty"`
 
 	// Character prefixed to comment strings
@@ -1914,10 +1992,12 @@ type HeatmapViewProperties struct {
 	BinSize float32 `json:"binSize"`
 
 	// Colors define color encoding of data into a visualization
-	Colors  []string                   `json:"colors"`
-	Note    string                     `json:"note"`
-	Queries []DashboardQuery           `json:"queries"`
-	Shape   HeatmapViewPropertiesShape `json:"shape"`
+	Colors                     []string                   `json:"colors"`
+	LegendOpacity              *float32                   `json:"legendOpacity,omitempty"`
+	LegendOrientationThreshold *int                       `json:"legendOrientationThreshold,omitempty"`
+	Note                       string                     `json:"note"`
+	Queries                    []DashboardQuery           `json:"queries"`
+	Shape                      HeatmapViewPropertiesShape `json:"shape"`
 
 	// If true, will display note when empty
 	ShowNoteWhenEmpty bool                      `json:"showNoteWhenEmpty"`
@@ -1946,12 +2026,14 @@ type HistogramViewProperties struct {
 	BinCount int `json:"binCount"`
 
 	// Colors define color encoding of data into a visualization
-	Colors      []DashboardColor                `json:"colors"`
-	FillColumns []string                        `json:"fillColumns"`
-	Note        string                          `json:"note"`
-	Position    HistogramViewPropertiesPosition `json:"position"`
-	Queries     []DashboardQuery                `json:"queries"`
-	Shape       HistogramViewPropertiesShape    `json:"shape"`
+	Colors                     []DashboardColor                `json:"colors"`
+	FillColumns                []string                        `json:"fillColumns"`
+	LegendOpacity              *float32                        `json:"legendOpacity,omitempty"`
+	LegendOrientationThreshold *int                            `json:"legendOrientationThreshold,omitempty"`
+	Note                       string                          `json:"note"`
+	Position                   HistogramViewPropertiesPosition `json:"position"`
+	Queries                    []DashboardQuery                `json:"queries"`
+	Shape                      HistogramViewPropertiesShape    `json:"shape"`
 
 	// If true, will display note when empty
 	ShowNoteWhenEmpty bool                        `json:"showNoteWhenEmpty"`
@@ -2072,8 +2154,8 @@ type Label_Properties struct {
 
 // LabelCreateRequest defines model for LabelCreateRequest.
 type LabelCreateRequest struct {
-	Name  *string `json:"name,omitempty"`
-	OrgID string  `json:"orgID"`
+	Name  string `json:"name"`
+	OrgID string `json:"orgID"`
 
 	// Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value.
 	Properties *LabelCreateRequest_Properties `json:"properties,omitempty"`
@@ -2166,13 +2248,15 @@ type LinePlusSingleStatProperties struct {
 	HoverDimension *LinePlusSingleStatPropertiesHoverDimension `json:"hoverDimension,omitempty"`
 
 	// Legend define encoding of data into a view's legend
-	Legend     Legend                               `json:"legend"`
-	Note       string                               `json:"note"`
-	Position   LinePlusSingleStatPropertiesPosition `json:"position"`
-	Prefix     string                               `json:"prefix"`
-	Queries    []DashboardQuery                     `json:"queries"`
-	ShadeBelow *bool                                `json:"shadeBelow,omitempty"`
-	Shape      LinePlusSingleStatPropertiesShape    `json:"shape"`
+	Legend                     Legend                               `json:"legend"`
+	LegendOpacity              *float32                             `json:"legendOpacity,omitempty"`
+	LegendOrientationThreshold *int                                 `json:"legendOrientationThreshold,omitempty"`
+	Note                       string                               `json:"note"`
+	Position                   LinePlusSingleStatPropertiesPosition `json:"position"`
+	Prefix                     string                               `json:"prefix"`
+	Queries                    []DashboardQuery                     `json:"queries"`
+	ShadeBelow                 *bool                                `json:"shadeBelow,omitempty"`
+	Shape                      LinePlusSingleStatPropertiesShape    `json:"shape"`
 
 	// If true, will display note when empty
 	ShowNoteWhenEmpty bool                             `json:"showNoteWhenEmpty"`
@@ -2325,11 +2409,13 @@ type MemberExpression struct {
 type MosaicViewProperties struct {
 
 	// Colors define color encoding of data into a visualization
-	Colors      []string                  `json:"colors"`
-	FillColumns []string                  `json:"fillColumns"`
-	Note        string                    `json:"note"`
-	Queries     []DashboardQuery          `json:"queries"`
-	Shape       MosaicViewPropertiesShape `json:"shape"`
+	Colors                     []string                  `json:"colors"`
+	FillColumns                []string                  `json:"fillColumns"`
+	LegendOpacity              *float32                  `json:"legendOpacity,omitempty"`
+	LegendOrientationThreshold *int                      `json:"legendOrientationThreshold,omitempty"`
+	Note                       string                    `json:"note"`
+	Queries                    []DashboardQuery          `json:"queries"`
+	Shape                      MosaicViewPropertiesShape `json:"shape"`
 
 	// If true, will display note when empty
 	ShowNoteWhenEmpty bool                     `json:"showNoteWhenEmpty"`
@@ -2997,11 +3083,13 @@ type SMTPNotificationRuleBaseType string
 type ScatterViewProperties struct {
 
 	// Colors define color encoding of data into a visualization
-	Colors      []string                   `json:"colors"`
-	FillColumns []string                   `json:"fillColumns"`
-	Note        string                     `json:"note"`
-	Queries     []DashboardQuery           `json:"queries"`
-	Shape       ScatterViewPropertiesShape `json:"shape"`
+	Colors                     []string                   `json:"colors"`
+	FillColumns                []string                   `json:"fillColumns"`
+	LegendOpacity              *float32                   `json:"legendOpacity,omitempty"`
+	LegendOrientationThreshold *int                       `json:"legendOrientationThreshold,omitempty"`
+	Note                       string                     `json:"note"`
+	Queries                    []DashboardQuery           `json:"queries"`
+	Shape                      ScatterViewPropertiesShape `json:"shape"`
 
 	// If true, will display note when empty
 	ShowNoteWhenEmpty bool                      `json:"showNoteWhenEmpty"`
@@ -3115,11 +3203,13 @@ type SingleStatViewProperties struct {
 	DecimalPlaces DecimalPlaces `json:"decimalPlaces"`
 
 	// Legend define encoding of data into a view's legend
-	Legend  Legend                        `json:"legend"`
-	Note    string                        `json:"note"`
-	Prefix  string                        `json:"prefix"`
-	Queries []DashboardQuery              `json:"queries"`
-	Shape   SingleStatViewPropertiesShape `json:"shape"`
+	Legend                     Legend                        `json:"legend"`
+	LegendOpacity              *float32                      `json:"legendOpacity,omitempty"`
+	LegendOrientationThreshold *int                          `json:"legendOrientationThreshold,omitempty"`
+	Note                       string                        `json:"note"`
+	Prefix                     string                        `json:"prefix"`
+	Queries                    []DashboardQuery              `json:"queries"`
+	Shape                      SingleStatViewPropertiesShape `json:"shape"`
 
 	// If true, will display note when empty
 	ShowNoteWhenEmpty bool                         `json:"showNoteWhenEmpty"`
@@ -3841,6 +3931,49 @@ type Telegrafs struct {
 	Configurations *[]Telegraf `json:"configurations,omitempty"`
 }
 
+// TelegramNotificationEndpoint defines model for TelegramNotificationEndpoint.
+type TelegramNotificationEndpoint struct {
+	// Embedded struct due to allOf(#/components/schemas/NotificationEndpointBase)
+	NotificationEndpointBase
+	// Embedded fields due to inline allOf schema
+
+	// ID of the telegram channel, a chat_id in https://core.telegram.org/bots/api#sendmessage .
+	Channel string `json:"channel"`
+
+	// Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot .
+	Token string `json:"token"`
+}
+
+// TelegramNotificationRule defines model for TelegramNotificationRule.
+type TelegramNotificationRule struct {
+	// Embedded struct due to allOf(#/components/schemas/NotificationRuleBase)
+	NotificationRuleBase
+	// Embedded struct due to allOf(#/components/schemas/TelegramNotificationRuleBase)
+	TelegramNotificationRuleBase
+}
+
+// TelegramNotificationRuleBase defines model for TelegramNotificationRuleBase.
+type TelegramNotificationRuleBase struct {
+
+	// Disables preview of web links in the sent messages when "true". Defaults to "false" .
+	DisableWebPagePreview *bool `json:"disableWebPagePreview,omitempty"`
+
+	// The message template as a flux interpolated string.
+	MessageTemplate string `json:"messageTemplate"`
+
+	// Parse mode of the message text per https://core.telegram.org/bots/api#formatting-options . Defaults to "MarkdownV2" .
+	ParseMode *TelegramNotificationRuleBaseParseMode `json:"parseMode,omitempty"`
+
+	// The discriminator between other types of notification rules is "telegram".
+	Type TelegramNotificationRuleBaseType `json:"type"`
+}
+
+// TelegramNotificationRuleBaseParseMode defines model for TelegramNotificationRuleBase.ParseMode.
+type TelegramNotificationRuleBaseParseMode string
+
+// TelegramNotificationRuleBaseType defines model for TelegramNotificationRuleBase.Type.
+type TelegramNotificationRuleBaseType string
+
 // Template defines model for Template.
 type Template []struct {
 	ApiVersion *string       `json:"apiVersion,omitempty"`
@@ -4409,12 +4542,14 @@ type XYViewProperties struct {
 	HoverDimension *XYViewPropertiesHoverDimension `json:"hoverDimension,omitempty"`
 
 	// Legend define encoding of data into a view's legend
-	Legend     Legend                   `json:"legend"`
-	Note       string                   `json:"note"`
-	Position   XYViewPropertiesPosition `json:"position"`
-	Queries    []DashboardQuery         `json:"queries"`
-	ShadeBelow *bool                    `json:"shadeBelow,omitempty"`
-	Shape      XYViewPropertiesShape    `json:"shape"`
+	Legend                     Legend                   `json:"legend"`
+	LegendOpacity              *float32                 `json:"legendOpacity,omitempty"`
+	LegendOrientationThreshold *int                     `json:"legendOrientationThreshold,omitempty"`
+	Note                       string                   `json:"note"`
+	Position                   XYViewPropertiesPosition `json:"position"`
+	Queries                    []DashboardQuery         `json:"queries"`
+	ShadeBelow                 *bool                    `json:"shadeBelow,omitempty"`
+	Shape                      XYViewPropertiesShape    `json:"shape"`
 
 	// If true, will display note when empty
 	ShowNoteWhenEmpty bool                 `json:"showNoteWhenEmpty"`
@@ -4436,6 +4571,9 @@ type XYViewPropertiesShape string
 // XYViewPropertiesType defines model for XYViewProperties.Type.
 type XYViewPropertiesType string
 
+// After defines model for After.
+type After string
+
 // Descending defines model for Descending.
 type Descending bool
 
@@ -4516,6 +4654,9 @@ type GetBucketsParams struct {
 	Offset *Offset `json:"offset,omitempty"`
 	Limit  *Limit  `json:"limit,omitempty"`
 
+	// The last resource ID from which to seek from (but not including). This is to be used instead of `offset`.
+	After *After `json:"after,omitempty"`
+
 	// The organization name.
 	Org *string `json:"org,omitempty"`
 
@@ -4717,6 +4858,9 @@ type GetChecksIDQueryParams struct {
 
 // GetDashboardsParams defines parameters for GetDashboards.
 type GetDashboardsParams struct {
+	Offset     *Offset     `json:"offset,omitempty"`
+	Limit      *Limit      `json:"limit,omitempty"`
+	Descending *Descending `json:"descending,omitempty"`
 
 	// The owner ID.
 	Owner *string `json:"owner,omitempty"`
@@ -5304,6 +5448,9 @@ type GetNotificationRulesIDQueryParams struct {
 
 // GetOrgsParams defines parameters for GetOrgs.
 type GetOrgsParams struct {
+	Offset     *Offset     `json:"offset,omitempty"`
+	Limit      *Limit      `json:"limit,omitempty"`
+	Descending *Descending `json:"descending,omitempty"`
 
 	// Filter organizations to a specific organization name.
 	Org *string `json:"org,omitempty"`
@@ -5579,16 +5726,6 @@ type DeleteScrapersIDLabelsIDParams struct {
 	ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"`
 }
 
-// PatchScrapersIDLabelsIDJSONBody defines parameters for PatchScrapersIDLabelsID.
-type PatchScrapersIDLabelsIDJSONBody Label
-
-// PatchScrapersIDLabelsIDParams defines parameters for PatchScrapersIDLabelsID.
-type PatchScrapersIDLabelsIDParams struct {
-
-	// OpenTracing span context
-	ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"`
-}
-
 // GetScrapersIDMembersParams defines parameters for GetScrapersIDMembers.
 type GetScrapersIDMembersParams struct {
 
@@ -6435,9 +6572,6 @@ type PatchScrapersIDJSONRequestBody PatchScrapersIDJSONBody
 // PostScrapersIDLabelsRequestBody defines body for PostScrapersIDLabels for application/json ContentType.
 type PostScrapersIDLabelsJSONRequestBody PostScrapersIDLabelsJSONBody
 
-// PatchScrapersIDLabelsIDRequestBody defines body for PatchScrapersIDLabelsID for application/json ContentType.
-type PatchScrapersIDLabelsIDJSONRequestBody PatchScrapersIDLabelsIDJSONBody
-
 // PostScrapersIDMembersRequestBody defines body for PostScrapersIDMembers for application/json ContentType.
 type PostScrapersIDMembersJSONRequestBody PostScrapersIDMembersJSONBody
 
diff --git a/scripts/influxdb-restart.sh b/scripts/influxdb-restart.sh
index 65d1dba..c1d1d25 100755
--- a/scripts/influxdb-restart.sh
+++ b/scripts/influxdb-restart.sh
@@ -26,12 +26,12 @@ set -e
 DEFAULT_DOCKER_REGISTRY="quay.io/influxdb/"
 DOCKER_REGISTRY="${DOCKER_REGISTRY:-$DEFAULT_DOCKER_REGISTRY}"
 
-DEFAULT_INFLUXDB_VERSION="1.8.1"
+DEFAULT_INFLUXDB_VERSION="1.8.2"
 INFLUXDB_VERSION="${INFLUXDB_VERSION:-$DEFAULT_INFLUXDB_VERSION}"
 INFLUXDB_IMAGE=influxdb:${INFLUXDB_VERSION}-alpine
 
 DEFAULT_INFLUXDB_V2_REPOSITORY="influxdb"
-DEFAULT_INFLUXDB_V2_VERSION="2.0.0-beta"
+DEFAULT_INFLUXDB_V2_VERSION="2.0.0-rc"
 INFLUXDB_V2_REPOSITORY="${INFLUXDB_V2_REPOSITORY:-$DEFAULT_INFLUXDB_V2_REPOSITORY}"
 INFLUXDB_V2_VERSION="${INFLUXDB_V2_VERSION:-$DEFAULT_INFLUXDB_V2_VERSION}"
 INFLUXDB_V2_IMAGE=${DOCKER_REGISTRY}${INFLUXDB_V2_REPOSITORY}:${INFLUXDB_V2_VERSION}
@@ -84,7 +84,7 @@ docker run \
        --detach \
        --name influxdb_v2 \
        --network influx_network \
-       --publish 9999:9999 \
+       --publish 9999:8086 \
        ${INFLUXDB_V2_IMAGE}
 
 echo "Wait to start InfluxDB 2.0"
@@ -113,6 +113,6 @@ docker run \
        --detach \
        --name influxdb_v2_onboarding \
        --network influx_network \
-       --publish 9990:9999 \
+       --publish 9990:8086 \
        ${INFLUXDB_V2_IMAGE}
 


Test patch:
diff --git a/api/buckets_e2e_test.go b/api/buckets_e2e_test.go
index 37d4609..5badfcf 100644
--- a/api/buckets_e2e_test.go
+++ b/api/buckets_e2e_test.go
@@ -49,7 +49,7 @@ func TestBucketsAPI(t *testing.T) {
 	require.NotNil(t, org)
 
 	name := "bucket-x"
-	b, err := bucketsAPI.CreateBucketWithName(ctx, org, name, domain.RetentionRule{EverySeconds: 3600 * 1}, domain.RetentionRule{EverySeconds: 3600 * 24})
+	b, err := bucketsAPI.CreateBucketWithName(ctx, org, name, domain.RetentionRule{EverySeconds: 3600 * 12}, domain.RetentionRule{EverySeconds: 3600 * 24})
 	require.Nil(t, err, err)
 	require.NotNil(t, b)
 	assert.Equal(t, name, b.Name)
@@ -58,7 +58,7 @@ func TestBucketsAPI(t *testing.T) {
 	// Test update
 	desc := "bucket description"
 	b.Description = &desc
-	b.RetentionRules = []domain.RetentionRule{{EverySeconds: 60}}
+	b.RetentionRules = []domain.RetentionRule{{EverySeconds: 3600}}
 	b, err = bucketsAPI.UpdateBucket(ctx, b)
 	require.Nil(t, err, err)
 	require.NotNil(t, b)
@@ -191,7 +191,7 @@ func TestBucketsAPI_paging(t *testing.T) {
 	bucketsAPI := client.BucketsAPI()
 
 	// create organizatiton for buckets
-	org, err := client.OrganizationsAPI().CreateOrganizationWithName(ctx, "bucket-org")
+	org, err := client.OrganizationsAPI().CreateOrganizationWithName(ctx, "bucket-paging-org")
 	require.Nil(t, err)
 	require.NotNil(t, org)
 
diff --git a/api/delete_e2e_test.go b/api/delete_e2e_test.go
index a8545d7..9098d01 100644
--- a/api/delete_e2e_test.go
+++ b/api/delete_e2e_test.go
@@ -21,6 +21,7 @@ import (
 )
 
 func TestDeleteAPI(t *testing.T) {
+	t.Skip("Skipping due to https://github.com/influxdata/influxdb/issues/19635")
 	ctx := context.Background()
 	client := influxdb2.NewClient(serverURL, authToken)
 	writeAPI := client.WriteAPIBlocking("my-org", "my-bucket")
diff --git a/api/organizations_e2e_test.go b/api/organizations_e2e_test.go
index efc87d2..cb87df1 100644
--- a/api/organizations_e2e_test.go
+++ b/api/organizations_e2e_test.go
@@ -8,9 +8,11 @@ package api_test
 
 import (
 	"context"
+	"fmt"
 	"testing"
 
 	influxdb2 "github.com/influxdata/influxdb-client-go/v2"
+	"github.com/influxdata/influxdb-client-go/v2/api"
 	"github.com/influxdata/influxdb-client-go/v2/domain"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
@@ -192,6 +194,48 @@ func TestOrganizationsAPI(t *testing.T) {
 
 }
 
+func TestOrganizationAPI_pagination(t *testing.T) {
+	ctx := context.Background()
+	client := influxdb2.NewClient(serverURL, authToken)
+
+	orgsAPI := client.OrganizationsAPI()
+
+	for i := 0; i < 50; i++ {
+		org, err := orgsAPI.CreateOrganizationWithName(ctx, fmt.Sprintf("org-%02d", i+1))
+		require.Nil(t, err)
+		require.NotNil(t, org)
+	}
+
+	orgList, err := orgsAPI.GetOrganizations(ctx)
+	require.Nil(t, err)
+	require.NotNil(t, orgList)
+	require.Len(t, *orgList, 20)
+
+	orgList, err = orgsAPI.GetOrganizations(ctx, api.PagingWithOffset(20))
+	require.Nil(t, err)
+	require.NotNil(t, orgList)
+	require.Len(t, *orgList, 20)
+
+	orgList, err = orgsAPI.GetOrganizations(ctx, api.PagingWithOffset(40))
+	require.Nil(t, err)
+	require.NotNil(t, orgList)
+	require.Len(t, *orgList, 11)
+
+	orgList, err = orgsAPI.GetOrganizations(ctx, api.PagingWithLimit(100))
+	require.Nil(t, err)
+	require.NotNil(t, orgList)
+	require.Len(t, *orgList, 51)
+
+	for _, org := range *orgList {
+		if org.Name == "my-org" {
+			continue
+		}
+		err = orgsAPI.DeleteOrganization(ctx, &org)
+		assert.Nil(t, err)
+	}
+
+}
+
 func TestOrganizationAPI_failing(t *testing.T) {
 	client := influxdb2.NewClient(serverURL, authToken)
 	orgsAPI := client.OrganizationsAPI()
diff --git a/api/paging_test.go b/api/paging_test.go
index d195ca0..0a38392 100644
--- a/api/paging_test.go
+++ b/api/paging_test.go
@@ -17,10 +17,12 @@ func TestPaging(t *testing.T) {
 	PagingWithLimit(100)(paging)
 	PagingWithSortBy("name")(paging)
 	PagingWithDescending(true)(paging)
-	assert.True(t, paging.descending)
+	PagingWithAfter("1111")(paging)
+	assert.True(t, bool(paging.descending))
 	assert.Equal(t, domain.Limit(100), paging.limit)
 	assert.Equal(t, domain.Offset(10), paging.offset)
 	assert.Equal(t, "name", paging.sortBy)
+	assert.Equal(t, domain.After("1111"), paging.after)
 
 	paging = &Paging{}
 	PagingWithLimit(0)(paging)
diff --git a/internal/write/service_test.go b/internal/write/service_test.go
index 89448c4..2a741b6 100644
--- a/internal/write/service_test.go
+++ b/internal/write/service_test.go
@@ -71,15 +71,15 @@ func TestDefaultRetryDelay(t *testing.T) {
 	assert.NotNil(t, err)
 	assert.Equal(t, uint(5000), b1.retryDelay)
 	assert.Equal(t, 1, srv.retryQueue.list.Len())
-
-	time.Sleep(time.Millisecond * time.Duration(b1.retryDelay))
+	//wait retry delay + little more
+	time.Sleep(time.Millisecond*time.Duration(b1.retryDelay) + time.Microsecond*5)
 	b2 := NewBatch("", opts.RetryInterval())
 	err = srv.HandleWrite(ctx, b2)
 	assert.NotNil(t, err)
 	assert.Equal(t, uint(25000), b1.retryDelay)
 	assert.Equal(t, 2, srv.retryQueue.list.Len())
 
-	time.Sleep(time.Millisecond * time.Duration(b1.retryDelay))
+	time.Sleep(time.Millisecond*time.Duration(b1.retryDelay) + time.Microsecond*5)
 	b3 := NewBatch("", opts.RetryInterval())
 	err = srv.HandleWrite(ctx, b3)
 	assert.NotNil(t, err)
@@ -102,14 +102,16 @@ func TestCustomRetryDelayWithFLush(t *testing.T) {
 	assert.Equal(t, uint(1), b1.retryDelay)
 	assert.Equal(t, 1, srv.retryQueue.list.Len())
 
-	time.Sleep(time.Millisecond * time.Duration(b1.retryDelay))
+	//wait retry delay + little more
+	time.Sleep(time.Millisecond*time.Duration(b1.retryDelay) + time.Microsecond*5)
 	b2 := NewBatch("2\n", opts.RetryInterval())
 	err = srv.HandleWrite(ctx, b2)
 	assert.NotNil(t, err)
 	assert.Equal(t, uint(5), b1.retryDelay)
 	assert.Equal(t, 2, srv.retryQueue.list.Len())
 
-	time.Sleep(time.Millisecond * time.Duration(b1.retryDelay))
+	//wait retry delay + little more
+	time.Sleep(time.Millisecond*time.Duration(b1.retryDelay) + time.Microsecond*5)
 	b3 := NewBatch("3\n", opts.RetryInterval())
 	err = srv.HandleWrite(ctx, b3)
 	assert.NotNil(t, err)
@@ -117,7 +119,7 @@ func TestCustomRetryDelayWithFLush(t *testing.T) {
 	assert.Equal(t, 3, srv.retryQueue.list.Len())
 
 	// let write pass and it will clear queue
-	time.Sleep(time.Millisecond * time.Duration(b1.retryDelay))
+	time.Sleep(time.Millisecond*time.Duration(b1.retryDelay) + time.Microsecond*5)
 	hs.SetReplyError(nil)
 	err = srv.HandleWrite(ctx, NewBatch("4\n", opts.RetryInterval()))
 	assert.Nil(t, err)