diff --git a/CHANGELOG.md b/CHANGELOG.md index cf0b111f..f663de91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ ## 1.5.0 [In progress] +### Breaking changes +1. [#173](https://github.com/influxdata/influxdb-client-go/pull/173) Removed orgs labels API cause [it has been removed from the server API](https://github.com/influxdata/influxdb/pull/19104) + +### Features 1. [#165](https://github.com/influxdata/influxdb-client-go/pull/165) Allow overriding the http.Client for the http service. ## 1.4.0 [2020-07-17] diff --git a/api/buckets.go b/api/buckets.go index d075ddcb..133ff4f6 100644 --- a/api/buckets.go +++ b/api/buckets.go @@ -152,7 +152,7 @@ func (b *bucketsAPI) CreateBucket(ctx context.Context, bucket *domain.Bucket) (* bucketReq := &domain.PostBucketRequest{ Description: bucket.Description, Name: bucket.Name, - OrgID: bucket.OrgID, + OrgID: *bucket.OrgID, RetentionRules: bucket.RetentionRules, Rp: bucket.Rp, } @@ -160,7 +160,7 @@ func (b *bucketsAPI) CreateBucket(ctx context.Context, bucket *domain.Bucket) (* } func (b *bucketsAPI) CreateBucketWithNameWithID(ctx context.Context, orgID, bucketName string, rules ...domain.RetentionRule) (*domain.Bucket, error) { - bucket := &domain.PostBucketRequest{Name: bucketName, OrgID: &orgID, RetentionRules: rules} + bucket := &domain.PostBucketRequest{Name: bucketName, OrgID: orgID, RetentionRules: rules} return b.createBucket(ctx, bucket) } func (b *bucketsAPI) CreateBucketWithName(ctx context.Context, org *domain.Organization, bucketName string, rules ...domain.RetentionRule) (*domain.Bucket, error) { diff --git a/api/buckets_e2e_test.go b/api/buckets_e2e_test.go index 03608472..70b85681 100644 --- a/api/buckets_e2e_test.go +++ b/api/buckets_e2e_test.go @@ -199,8 +199,7 @@ func TestBucketsAPI(t *testing.T) { buckets, err = bucketsAPI.GetBuckets(ctx, api.PagingWithOffset(20)) require.Nil(t, err, err) require.NotNil(t, buckets) - //+2 is a bug, when using offset>4 there are returned also system buckets - assert.Len(t, *buckets, 10+2+bucketsNum) + assert.Len(t, *buckets, 10+bucketsNum) // test paging with increase limit to cover all buckets buckets, err = bucketsAPI.GetBuckets(ctx, api.PagingWithLimit(100)) require.Nil(t, err, err) @@ -210,11 +209,13 @@ func TestBucketsAPI(t *testing.T) { buckets, err = bucketsAPI.FindBucketsByOrgID(ctx, *org.Id, api.PagingWithLimit(100)) require.Nil(t, err, err) require.NotNil(t, buckets) + ////+2 for system buckets assert.Len(t, *buckets, 30+2) // test filtering buckets by org name buckets, err = bucketsAPI.FindBucketsByOrgName(ctx, org.Name, api.PagingWithLimit(100)) require.Nil(t, err, err) require.NotNil(t, buckets) + ////+2 for system buckets assert.Len(t, *buckets, 30+2) // delete buckete for _, b := range *buckets { @@ -290,7 +291,7 @@ func TestBucketsAPI_requestFailing(t *testing.T) { bucketsAPI := client.BucketsAPI() anID := "1000000000000000" - bucket := &domain.Bucket{Id: &anID} + bucket := &domain.Bucket{Id: &anID, OrgID: &anID} user := &domain.User{Id: &anID} _, err := bucketsAPI.GetBuckets(ctx) diff --git a/api/examples_test.go b/api/examples_test.go index ac5154b1..79ba6511 100644 --- a/api/examples_test.go +++ b/api/examples_test.go @@ -347,18 +347,6 @@ func ExampleLabelsAPI() { panic(err) } - // Get organization that will have the label - org, err := orgsAPI.FindOrganizationByName(ctx, "IT") - if err != nil { - panic(err) - } - - // Add label to org - _, err = orgsAPI.AddLabel(ctx, org, label) - if err != nil { - panic(err) - } - // Change color property label.Properties.AdditionalProperties = map[string]string{"color": "ff1122"} label, err = labelsAPI.UpdateLabel(ctx, label) diff --git a/api/labels_e2e_test.go b/api/labels_e2e_test.go index 99b1a279..ed156f5f 100644 --- a/api/labels_e2e_test.go +++ b/api/labels_e2e_test.go @@ -83,40 +83,6 @@ func TestLabelsAPI(t *testing.T) { assert.NotNil(t, err) assert.Nil(t, label2) - labels, err = orgAPI.GetLabels(ctx, myorg) - require.Nil(t, err, err) - require.NotNil(t, labels) - assert.Len(t, *labels, 0) - - org, err := orgAPI.CreateOrganizationWithName(ctx, "org1") - require.Nil(t, err, err) - require.NotNil(t, org) - - labels, err = orgAPI.GetLabels(ctx, org) - require.Nil(t, err, err) - require.NotNil(t, labels) - assert.Len(t, *labels, 0) - - labelx, err := orgAPI.AddLabel(ctx, org, label) - require.Nil(t, err, err) - require.NotNil(t, labelx) - - labels, err = orgAPI.GetLabels(ctx, org) - require.Nil(t, err, err) - require.NotNil(t, labels) - assert.Len(t, *labels, 1) - - err = orgAPI.RemoveLabel(ctx, org, label) - require.Nil(t, err, err) - - labels, err = orgAPI.GetLabels(ctx, org) - require.Nil(t, err, err) - require.NotNil(t, labels) - assert.Len(t, *labels, 0) - - err = orgAPI.DeleteOrganization(ctx, org) - assert.Nil(t, err, err) - err = labelsAPI.DeleteLabel(ctx, label) require.Nil(t, err, err) // @@ -155,26 +121,6 @@ func TestLabelsAPI_failing(t *testing.T) { err = labelsAPI.DeleteLabelWithID(ctx, invalidID) assert.NotNil(t, err) - - labels, err = orgAPI.GetLabelsWithID(ctx, wrongID) - assert.NotNil(t, err) - assert.Nil(t, labels) - - label, err = orgAPI.AddLabelWithID(ctx, *org.Id, wrongID) - assert.NotNil(t, err) - assert.Nil(t, label) - - label, err = orgAPI.AddLabelWithID(ctx, wrongID, wrongID) - assert.NotNil(t, err) - assert.Nil(t, label) - - err = orgAPI.RemoveLabelWithID(ctx, *org.Id, invalidID) - assert.NotNil(t, err) - assert.Nil(t, label) - - err = orgAPI.RemoveLabelWithID(ctx, invalidID, invalidID) - assert.NotNil(t, err, err) - assert.Nil(t, label) } func TestLabelsAPI_requestFailing(t *testing.T) { diff --git a/api/organizations.go b/api/organizations.go index 9c770069..4bafcf6e 100644 --- a/api/organizations.go +++ b/api/organizations.go @@ -54,18 +54,6 @@ type OrganizationsAPI interface { RemoveOwner(ctx context.Context, org *domain.Organization, user *domain.User) error // RemoveOwnerWithID removes an owner with id memberID from an organization with orgID. RemoveOwnerWithID(ctx context.Context, orgID, memberID string) error - // GetLabels returns labels of an organization. - GetLabels(ctx context.Context, org *domain.Organization) (*[]domain.Label, error) - // GetLabelsWithID returns labels of an organization with orgID. - GetLabelsWithID(ctx context.Context, orgID string) (*[]domain.Label, error) - // AddLabel adds a label to an organization. - AddLabel(ctx context.Context, org *domain.Organization, label *domain.Label) (*domain.Label, error) - // AddLabelWithID adds a label with id labelID to an organization with orgID. - AddLabelWithID(ctx context.Context, orgID, labelID string) (*domain.Label, error) - // RemoveLabel removes an label from an organization. - RemoveLabel(ctx context.Context, org *domain.Organization, label *domain.Label) error - // RemoveLabelWithID removes an label with id labelID from an organization with orgID. - RemoveLabelWithID(ctx context.Context, orgID, labelID string) error } type organizationsAPI struct { @@ -282,52 +270,3 @@ func (o *organizationsAPI) RemoveOwnerWithID(ctx context.Context, orgID, memberI } return nil } - -func (o *organizationsAPI) GetLabels(ctx context.Context, org *domain.Organization) (*[]domain.Label, error) { - return o.GetLabelsWithID(ctx, *org.Id) -} - -func (o *organizationsAPI) GetLabelsWithID(ctx context.Context, orgID string) (*[]domain.Label, error) { - params := &domain.GetOrgsIDLabelsParams{} - response, err := o.apiClient.GetOrgsIDLabelsWithResponse(ctx, orgID, params) - if err != nil { - return nil, err - } - if response.JSONDefault != nil { - return nil, domain.DomainErrorToError(response.JSONDefault, response.StatusCode()) - } - return (*[]domain.Label)(response.JSON200.Labels), nil -} - -func (o *organizationsAPI) AddLabel(ctx context.Context, org *domain.Organization, label *domain.Label) (*domain.Label, error) { - return o.AddLabelWithID(ctx, *org.Id, *label.Id) -} - -func (o *organizationsAPI) AddLabelWithID(ctx context.Context, orgID, labelID string) (*domain.Label, error) { - params := &domain.PostOrgsIDLabelsParams{} - body := &domain.PostOrgsIDLabelsJSONRequestBody{LabelID: &labelID} - response, err := o.apiClient.PostOrgsIDLabelsWithResponse(ctx, orgID, params, *body) - if err != nil { - return nil, err - } - if response.JSONDefault != nil { - return nil, domain.DomainErrorToError(response.JSONDefault, response.StatusCode()) - } - return response.JSON201.Label, nil -} - -func (o *organizationsAPI) RemoveLabel(ctx context.Context, org *domain.Organization, label *domain.Label) error { - return o.RemoveLabelWithID(ctx, *org.Id, *label.Id) -} - -func (o *organizationsAPI) RemoveLabelWithID(ctx context.Context, orgID, memberID string) error { - params := &domain.DeleteOrgsIDLabelsIDParams{} - response, err := o.apiClient.DeleteOrgsIDLabelsIDWithResponse(ctx, orgID, memberID, params) - if err != nil { - return err - } - if response.JSONDefault != nil { - return domain.DomainErrorToError(response.JSONDefault, response.StatusCode()) - } - return nil -} diff --git a/api/organizations_deprecated.go b/api/organizations_deprecated.go index 22dcef0d..f2f2e575 100644 --- a/api/organizations_deprecated.go +++ b/api/organizations_deprecated.go @@ -56,18 +56,6 @@ type OrganizationsApi interface { RemoveOwner(ctx context.Context, org *domain.Organization, user *domain.User) error // RemoveOwnerWithId removes an owner with id memberId from an organization with orgId. RemoveOwnerWithId(ctx context.Context, orgId, memberId string) error - // GetLabels returns labels of an organization. - GetLabels(ctx context.Context, org *domain.Organization) (*[]domain.Label, error) - // GetLabelsWithId returns labels of an organization with orgId. - GetLabelsWithId(ctx context.Context, orgId string) (*[]domain.Label, error) - // AddLabel adds a label to an organization. - AddLabel(ctx context.Context, org *domain.Organization, label *domain.Label) (*domain.Label, error) - // AddLabelWithId adds a label with id labelId to an organization with orgId. - AddLabelWithId(ctx context.Context, orgId, labelId string) (*domain.Label, error) - // RemoveLabel removes an label from an organization. - RemoveLabel(ctx context.Context, org *domain.Organization, label *domain.Label) error - // RemoveLabelWithId removes an label with id labelId from an organization with orgId. - RemoveLabelWithId(ctx context.Context, orgId, labelId string) error } type organizationsApiImpl struct { @@ -165,27 +153,3 @@ func (o *organizationsApiImpl) RemoveOwner(ctx context.Context, org *domain.Orga func (o *organizationsApiImpl) RemoveOwnerWithId(ctx context.Context, orgId, memberId string) error { return o.organizationsAPI.RemoveMemberWithID(ctx, orgId, memberId) } - -func (o *organizationsApiImpl) GetLabels(ctx context.Context, org *domain.Organization) (*[]domain.Label, error) { - return o.organizationsAPI.GetLabels(ctx, org) -} - -func (o *organizationsApiImpl) GetLabelsWithId(ctx context.Context, orgId string) (*[]domain.Label, error) { - return o.organizationsAPI.GetLabelsWithID(ctx, orgId) -} - -func (o *organizationsApiImpl) AddLabel(ctx context.Context, org *domain.Organization, label *domain.Label) (*domain.Label, error) { - return o.organizationsAPI.AddLabel(ctx, org, label) -} - -func (o *organizationsApiImpl) AddLabelWithId(ctx context.Context, orgId, labelId string) (*domain.Label, error) { - return o.organizationsAPI.AddLabelWithID(ctx, orgId, labelId) -} - -func (o *organizationsApiImpl) RemoveLabel(ctx context.Context, org *domain.Organization, label *domain.Label) error { - return o.organizationsAPI.RemoveLabel(ctx, org, label) -} - -func (o *organizationsApiImpl) RemoveLabelWithId(ctx context.Context, orgId, memberId string) error { - return o.organizationsAPI.RemoveLabelWithID(ctx, orgId, memberId) -} diff --git a/api/organizations_e2e_test.go b/api/organizations_e2e_test.go index 4dfc73ac..02efb5ec 100644 --- a/api/organizations_e2e_test.go +++ b/api/organizations_e2e_test.go @@ -325,11 +325,4 @@ func TestOrganizationAPI_requestFailing(t *testing.T) { _, err = orgsAPI.GetOwnersWithID(ctx, invalidID) assert.NotNil(t, err) - - _, err = orgsAPI.AddLabelWithID(ctx, *org.Id, anID) - assert.NotNil(t, err) - - // remove owner with invalid ID - err = orgsAPI.RemoveLabelWithID(ctx, anID, anID) - assert.NotNil(t, err) } diff --git a/client.go b/client.go index 8853d432..0002bf56 100644 --- a/client.go +++ b/client.go @@ -180,7 +180,7 @@ func (c *clientImpl) Setup(ctx context.Context, username, password, org, bucket body := &domain.PostSetupJSONRequestBody{ Bucket: bucket, Org: org, - Password: password, + Password: &password, RetentionPeriodHrs: &retentionPeriodHours, Username: username, } diff --git a/client_e2e_deprecated_test.go b/client_e2e_deprecated_test.go index 25863d6e..1990303f 100644 --- a/client_e2e_deprecated_test.go +++ b/client_e2e_deprecated_test.go @@ -714,8 +714,7 @@ func TestBuckets(t *testing.T) { buckets, err = bucketsAPI.GetBuckets(ctx, api.PagingWithOffset(20)) require.Nil(t, err, err) require.NotNil(t, buckets) - //+2 is a bug, when using offset>4 there are returned also system buckets - assert.Len(t, *buckets, 10+2+bucketsNum) + assert.Len(t, *buckets, 10+bucketsNum) // test paging with increase limit to cover all buckets buckets, err = bucketsAPI.GetBuckets(ctx, api.PagingWithLimit(100)) require.Nil(t, err, err) @@ -827,60 +826,6 @@ func TestLabels(t *testing.T) { require.NotNil(t, err, err) require.Nil(t, label2) - labels, err = orgAPI.GetLabels(ctx, myorg) - require.Nil(t, err, err) - require.NotNil(t, labels) - assert.Len(t, *labels, 0) - - org, err := orgAPI.CreateOrganizationWithName(ctx, "org1") - require.Nil(t, err, err) - require.NotNil(t, org) - - labels, err = orgAPI.GetLabels(ctx, org) - require.Nil(t, err, err) - require.NotNil(t, labels) - assert.Len(t, *labels, 0) - - labelx, err := orgAPI.AddLabel(ctx, org, label) - require.Nil(t, err, err) - require.NotNil(t, labelx) - - labels, err = orgAPI.GetLabels(ctx, org) - require.Nil(t, err, err) - require.NotNil(t, labels) - assert.Len(t, *labels, 1) - - err = orgAPI.RemoveLabel(ctx, org, label) - require.Nil(t, err, err) - - labels, err = orgAPI.GetLabels(ctx, org) - require.Nil(t, err, err) - require.NotNil(t, labels) - assert.Len(t, *labels, 0) - - labels, err = orgAPI.GetLabelsWithId(ctx, "000000000000000") - require.NotNil(t, err, err) - require.Nil(t, labels) - - label2, err = orgAPI.AddLabelWithId(ctx, *org.Id, "000000000000000") - require.NotNil(t, err, err) - require.Nil(t, label2) - - label2, err = orgAPI.AddLabelWithId(ctx, "000000000000000", "000000000000000") - require.NotNil(t, err, err) - require.Nil(t, label2) - - err = orgAPI.RemoveLabelWithId(ctx, *org.Id, "000000000000000") - require.NotNil(t, err, err) - require.Nil(t, label2) - - err = orgAPI.RemoveLabelWithId(ctx, "000000000000000", "000000000000000") - require.NotNil(t, err, err) - require.Nil(t, label2) - - err = orgAPI.DeleteOrganization(ctx, org) - assert.Nil(t, err, err) - err = labelsAPI.DeleteLabel(ctx, label) require.Nil(t, err, err) diff --git a/domain/client.gen.go b/domain/client.gen.go index a4016038..ae316835 100644 --- a/domain/client.gen.go +++ b/domain/client.gen.go @@ -404,28 +404,6 @@ type ClientInterface interface { PatchOrgsID(ctx context.Context, orgID string, params *PatchOrgsIDParams, body PatchOrgsIDJSONRequestBody) (*http.Response, error) - // PostOrgsIDInvites request with any body - PostOrgsIDInvitesWithBody(ctx context.Context, orgID string, params *PostOrgsIDInvitesParams, contentType string, body io.Reader) (*http.Response, error) - - PostOrgsIDInvites(ctx context.Context, orgID string, params *PostOrgsIDInvitesParams, body PostOrgsIDInvitesJSONRequestBody) (*http.Response, error) - - // DeleteOrgsIDInviteID request - DeleteOrgsIDInviteID(ctx context.Context, orgID string, inviteID string, params *DeleteOrgsIDInviteIDParams) (*http.Response, error) - - // PostOrgsIDInviteID request - PostOrgsIDInviteID(ctx context.Context, orgID string, inviteID string, params *PostOrgsIDInviteIDParams) (*http.Response, error) - - // GetOrgsIDLabels request - GetOrgsIDLabels(ctx context.Context, orgID string, params *GetOrgsIDLabelsParams) (*http.Response, error) - - // PostOrgsIDLabels request with any body - PostOrgsIDLabelsWithBody(ctx context.Context, orgID string, params *PostOrgsIDLabelsParams, contentType string, body io.Reader) (*http.Response, error) - - PostOrgsIDLabels(ctx context.Context, orgID string, params *PostOrgsIDLabelsParams, body PostOrgsIDLabelsJSONRequestBody) (*http.Response, error) - - // DeleteOrgsIDLabelsID request - DeleteOrgsIDLabelsID(ctx context.Context, orgID string, labelID string, params *DeleteOrgsIDLabelsIDParams) (*http.Response, error) - // GetOrgsIDMembers request GetOrgsIDMembers(ctx context.Context, orgID string, params *GetOrgsIDMembersParams) (*http.Response, error) @@ -461,44 +439,6 @@ type ClientInterface interface { PostOrgsIDSecrets(ctx context.Context, orgID string, params *PostOrgsIDSecretsParams, body PostOrgsIDSecretsJSONRequestBody) (*http.Response, error) - // GetCloudUsers request - GetCloudUsers(ctx context.Context, orgID string, params *GetCloudUsersParams) (*http.Response, error) - - // DeleteOrgsIDCloudUserID request - DeleteOrgsIDCloudUserID(ctx context.Context, orgID string, userID string, params *DeleteOrgsIDCloudUserIDParams) (*http.Response, error) - - // CreatePkg request with any body - CreatePkgWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) - - CreatePkg(ctx context.Context, body CreatePkgJSONRequestBody) (*http.Response, error) - - // ApplyPkg request with any body - ApplyPkgWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) - - ApplyPkg(ctx context.Context, body ApplyPkgJSONRequestBody) (*http.Response, error) - - // ListStacks request - ListStacks(ctx context.Context, params *ListStacksParams) (*http.Response, error) - - // CreateStack request with any body - CreateStackWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) - - CreateStack(ctx context.Context, body CreateStackJSONRequestBody) (*http.Response, error) - - // DeleteStack request - DeleteStack(ctx context.Context, stackId string, params *DeleteStackParams) (*http.Response, error) - - // ReadStack request - ReadStack(ctx context.Context, stackId string) (*http.Response, error) - - // UpdateStack request with any body - UpdateStackWithBody(ctx context.Context, stackId string, contentType string, body io.Reader) (*http.Response, error) - - UpdateStack(ctx context.Context, stackId string, body UpdateStackJSONRequestBody) (*http.Response, error) - - // ExportStack request - ExportStack(ctx context.Context, stackId string, params *ExportStackParams) (*http.Response, error) - // PostQuery request with any body PostQueryWithBody(ctx context.Context, params *PostQueryParams, contentType string, body io.Reader) (*http.Response, error) @@ -624,6 +564,28 @@ type ClientInterface interface { // GetSourcesIDHealth request GetSourcesIDHealth(ctx context.Context, sourceID string, params *GetSourcesIDHealthParams) (*http.Response, error) + // ListStacks request + ListStacks(ctx context.Context, params *ListStacksParams) (*http.Response, error) + + // CreateStack request with any body + CreateStackWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) + + CreateStack(ctx context.Context, body CreateStackJSONRequestBody) (*http.Response, error) + + // DeleteStack request + DeleteStack(ctx context.Context, stackId string, params *DeleteStackParams) (*http.Response, error) + + // ReadStack request + ReadStack(ctx context.Context, stackId string) (*http.Response, error) + + // UpdateStack request with any body + UpdateStackWithBody(ctx context.Context, stackId string, contentType string, body io.Reader) (*http.Response, error) + + UpdateStack(ctx context.Context, stackId string, body UpdateStackJSONRequestBody) (*http.Response, error) + + // UninstallStack request + UninstallStack(ctx context.Context, stackId string) (*http.Response, error) + // GetTasks request GetTasks(ctx context.Context, params *GetTasksParams) (*http.Response, error) @@ -754,6 +716,16 @@ type ClientInterface interface { // DeleteTelegrafsIDOwnersID request DeleteTelegrafsIDOwnersID(ctx context.Context, telegrafID string, userID string, params *DeleteTelegrafsIDOwnersIDParams) (*http.Response, error) + // ApplyTemplate request with any body + ApplyTemplateWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) + + ApplyTemplate(ctx context.Context, body ApplyTemplateJSONRequestBody) (*http.Response, error) + + // ExportTemplate request with any body + ExportTemplateWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) + + ExportTemplate(ctx context.Context, body ExportTemplateJSONRequestBody) (*http.Response, error) + // GetUsers request GetUsers(ctx context.Context, params *GetUsersParams) (*http.Response, error) @@ -2041,78 +2013,6 @@ func (c *Client) PatchOrgsID(ctx context.Context, orgID string, params *PatchOrg return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) PostOrgsIDInvitesWithBody(ctx context.Context, orgID string, params *PostOrgsIDInvitesParams, contentType string, body io.Reader) (*http.Response, error) { - req, err := NewPostOrgsIDInvitesRequestWithBody(c.service.ServerAPIURL(), orgID, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) PostOrgsIDInvites(ctx context.Context, orgID string, params *PostOrgsIDInvitesParams, body PostOrgsIDInvitesJSONRequestBody) (*http.Response, error) { - req, err := NewPostOrgsIDInvitesRequest(c.service.ServerAPIURL(), orgID, params, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) DeleteOrgsIDInviteID(ctx context.Context, orgID string, inviteID string, params *DeleteOrgsIDInviteIDParams) (*http.Response, error) { - req, err := NewDeleteOrgsIDInviteIDRequest(c.service.ServerAPIURL(), orgID, inviteID, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) PostOrgsIDInviteID(ctx context.Context, orgID string, inviteID string, params *PostOrgsIDInviteIDParams) (*http.Response, error) { - req, err := NewPostOrgsIDInviteIDRequest(c.service.ServerAPIURL(), orgID, inviteID, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) GetOrgsIDLabels(ctx context.Context, orgID string, params *GetOrgsIDLabelsParams) (*http.Response, error) { - req, err := NewGetOrgsIDLabelsRequest(c.service.ServerAPIURL(), orgID, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) PostOrgsIDLabelsWithBody(ctx context.Context, orgID string, params *PostOrgsIDLabelsParams, contentType string, body io.Reader) (*http.Response, error) { - req, err := NewPostOrgsIDLabelsRequestWithBody(c.service.ServerAPIURL(), orgID, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) PostOrgsIDLabels(ctx context.Context, orgID string, params *PostOrgsIDLabelsParams, body PostOrgsIDLabelsJSONRequestBody) (*http.Response, error) { - req, err := NewPostOrgsIDLabelsRequest(c.service.ServerAPIURL(), orgID, params, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) DeleteOrgsIDLabelsID(ctx context.Context, orgID string, labelID string, params *DeleteOrgsIDLabelsIDParams) (*http.Response, error) { - req, err := NewDeleteOrgsIDLabelsIDRequest(c.service.ServerAPIURL(), orgID, labelID, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - func (c *Client) GetOrgsIDMembers(ctx context.Context, orgID string, params *GetOrgsIDMembersParams) (*http.Response, error) { req, err := NewGetOrgsIDMembersRequest(c.service.ServerAPIURL(), orgID, params) if err != nil { @@ -2230,132 +2130,6 @@ func (c *Client) PostOrgsIDSecrets(ctx context.Context, orgID string, params *Po return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) GetCloudUsers(ctx context.Context, orgID string, params *GetCloudUsersParams) (*http.Response, error) { - req, err := NewGetCloudUsersRequest(c.service.ServerAPIURL(), orgID, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) DeleteOrgsIDCloudUserID(ctx context.Context, orgID string, userID string, params *DeleteOrgsIDCloudUserIDParams) (*http.Response, error) { - req, err := NewDeleteOrgsIDCloudUserIDRequest(c.service.ServerAPIURL(), orgID, userID, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) CreatePkgWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) { - req, err := NewCreatePkgRequestWithBody(c.service.ServerAPIURL(), contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) CreatePkg(ctx context.Context, body CreatePkgJSONRequestBody) (*http.Response, error) { - req, err := NewCreatePkgRequest(c.service.ServerAPIURL(), body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) ApplyPkgWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) { - req, err := NewApplyPkgRequestWithBody(c.service.ServerAPIURL(), contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) ApplyPkg(ctx context.Context, body ApplyPkgJSONRequestBody) (*http.Response, error) { - req, err := NewApplyPkgRequest(c.service.ServerAPIURL(), body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) ListStacks(ctx context.Context, params *ListStacksParams) (*http.Response, error) { - req, err := NewListStacksRequest(c.service.ServerAPIURL(), params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) CreateStackWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) { - req, err := NewCreateStackRequestWithBody(c.service.ServerAPIURL(), contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) CreateStack(ctx context.Context, body CreateStackJSONRequestBody) (*http.Response, error) { - req, err := NewCreateStackRequest(c.service.ServerAPIURL(), body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) DeleteStack(ctx context.Context, stackId string, params *DeleteStackParams) (*http.Response, error) { - req, err := NewDeleteStackRequest(c.service.ServerAPIURL(), stackId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) ReadStack(ctx context.Context, stackId string) (*http.Response, error) { - req, err := NewReadStackRequest(c.service.ServerAPIURL(), stackId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) UpdateStackWithBody(ctx context.Context, stackId string, contentType string, body io.Reader) (*http.Response, error) { - req, err := NewUpdateStackRequestWithBody(c.service.ServerAPIURL(), stackId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) UpdateStack(ctx context.Context, stackId string, body UpdateStackJSONRequestBody) (*http.Response, error) { - req, err := NewUpdateStackRequest(c.service.ServerAPIURL(), stackId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - -func (c *Client) ExportStack(ctx context.Context, stackId string, params *ExportStackParams) (*http.Response, error) { - req, err := NewExportStackRequest(c.service.ServerAPIURL(), stackId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - return c.service.DoHTTPRequestWithResponse(req, nil) -} - func (c *Client) PostQueryWithBody(ctx context.Context, params *PostQueryParams, contentType string, body io.Reader) (*http.Response, error) { req, err := NewPostQueryRequestWithBody(c.service.ServerAPIURL(), params, contentType, body) if err != nil { @@ -2770,8 +2544,8 @@ func (c *Client) GetSourcesIDHealth(ctx context.Context, sourceID string, params return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) GetTasks(ctx context.Context, params *GetTasksParams) (*http.Response, error) { - req, err := NewGetTasksRequest(c.service.ServerAPIURL(), params) +func (c *Client) ListStacks(ctx context.Context, params *ListStacksParams) (*http.Response, error) { + req, err := NewListStacksRequest(c.service.ServerAPIURL(), params) if err != nil { return nil, err } @@ -2779,8 +2553,8 @@ func (c *Client) GetTasks(ctx context.Context, params *GetTasksParams) (*http.Re return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) PostTasksWithBody(ctx context.Context, params *PostTasksParams, contentType string, body io.Reader) (*http.Response, error) { - req, err := NewPostTasksRequestWithBody(c.service.ServerAPIURL(), params, contentType, body) +func (c *Client) CreateStackWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) { + req, err := NewCreateStackRequestWithBody(c.service.ServerAPIURL(), contentType, body) if err != nil { return nil, err } @@ -2788,8 +2562,8 @@ func (c *Client) PostTasksWithBody(ctx context.Context, params *PostTasksParams, return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) PostTasks(ctx context.Context, params *PostTasksParams, body PostTasksJSONRequestBody) (*http.Response, error) { - req, err := NewPostTasksRequest(c.service.ServerAPIURL(), params, body) +func (c *Client) CreateStack(ctx context.Context, body CreateStackJSONRequestBody) (*http.Response, error) { + req, err := NewCreateStackRequest(c.service.ServerAPIURL(), body) if err != nil { return nil, err } @@ -2797,8 +2571,8 @@ func (c *Client) PostTasks(ctx context.Context, params *PostTasksParams, body Po return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) DeleteTasksID(ctx context.Context, taskID string, params *DeleteTasksIDParams) (*http.Response, error) { - req, err := NewDeleteTasksIDRequest(c.service.ServerAPIURL(), taskID, params) +func (c *Client) DeleteStack(ctx context.Context, stackId string, params *DeleteStackParams) (*http.Response, error) { + req, err := NewDeleteStackRequest(c.service.ServerAPIURL(), stackId, params) if err != nil { return nil, err } @@ -2806,8 +2580,8 @@ func (c *Client) DeleteTasksID(ctx context.Context, taskID string, params *Delet return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) GetTasksID(ctx context.Context, taskID string, params *GetTasksIDParams) (*http.Response, error) { - req, err := NewGetTasksIDRequest(c.service.ServerAPIURL(), taskID, params) +func (c *Client) ReadStack(ctx context.Context, stackId string) (*http.Response, error) { + req, err := NewReadStackRequest(c.service.ServerAPIURL(), stackId) if err != nil { return nil, err } @@ -2815,8 +2589,8 @@ func (c *Client) GetTasksID(ctx context.Context, taskID string, params *GetTasks return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) PatchTasksIDWithBody(ctx context.Context, taskID string, params *PatchTasksIDParams, contentType string, body io.Reader) (*http.Response, error) { - req, err := NewPatchTasksIDRequestWithBody(c.service.ServerAPIURL(), taskID, params, contentType, body) +func (c *Client) UpdateStackWithBody(ctx context.Context, stackId string, contentType string, body io.Reader) (*http.Response, error) { + req, err := NewUpdateStackRequestWithBody(c.service.ServerAPIURL(), stackId, contentType, body) if err != nil { return nil, err } @@ -2824,8 +2598,8 @@ func (c *Client) PatchTasksIDWithBody(ctx context.Context, taskID string, params return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) PatchTasksID(ctx context.Context, taskID string, params *PatchTasksIDParams, body PatchTasksIDJSONRequestBody) (*http.Response, error) { - req, err := NewPatchTasksIDRequest(c.service.ServerAPIURL(), taskID, params, body) +func (c *Client) UpdateStack(ctx context.Context, stackId string, body UpdateStackJSONRequestBody) (*http.Response, error) { + req, err := NewUpdateStackRequest(c.service.ServerAPIURL(), stackId, body) if err != nil { return nil, err } @@ -2833,8 +2607,80 @@ func (c *Client) PatchTasksID(ctx context.Context, taskID string, params *PatchT return c.service.DoHTTPRequestWithResponse(req, nil) } -func (c *Client) GetTasksIDLabels(ctx context.Context, taskID string, params *GetTasksIDLabelsParams) (*http.Response, error) { - req, err := NewGetTasksIDLabelsRequest(c.service.ServerAPIURL(), taskID, params) +func (c *Client) UninstallStack(ctx context.Context, stackId string) (*http.Response, error) { + req, err := NewUninstallStackRequest(c.service.ServerAPIURL(), stackId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) GetTasks(ctx context.Context, params *GetTasksParams) (*http.Response, error) { + req, err := NewGetTasksRequest(c.service.ServerAPIURL(), params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) PostTasksWithBody(ctx context.Context, params *PostTasksParams, contentType string, body io.Reader) (*http.Response, error) { + req, err := NewPostTasksRequestWithBody(c.service.ServerAPIURL(), params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) PostTasks(ctx context.Context, params *PostTasksParams, body PostTasksJSONRequestBody) (*http.Response, error) { + req, err := NewPostTasksRequest(c.service.ServerAPIURL(), params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) DeleteTasksID(ctx context.Context, taskID string, params *DeleteTasksIDParams) (*http.Response, error) { + req, err := NewDeleteTasksIDRequest(c.service.ServerAPIURL(), taskID, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) GetTasksID(ctx context.Context, taskID string, params *GetTasksIDParams) (*http.Response, error) { + req, err := NewGetTasksIDRequest(c.service.ServerAPIURL(), taskID, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) PatchTasksIDWithBody(ctx context.Context, taskID string, params *PatchTasksIDParams, contentType string, body io.Reader) (*http.Response, error) { + req, err := NewPatchTasksIDRequestWithBody(c.service.ServerAPIURL(), taskID, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) PatchTasksID(ctx context.Context, taskID string, params *PatchTasksIDParams, body PatchTasksIDJSONRequestBody) (*http.Response, error) { + req, err := NewPatchTasksIDRequest(c.service.ServerAPIURL(), taskID, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) GetTasksIDLabels(ctx context.Context, taskID string, params *GetTasksIDLabelsParams) (*http.Response, error) { + req, err := NewGetTasksIDLabelsRequest(c.service.ServerAPIURL(), taskID, params) if err != nil { return nil, err } @@ -3193,6 +3039,42 @@ func (c *Client) DeleteTelegrafsIDOwnersID(ctx context.Context, telegrafID strin return c.service.DoHTTPRequestWithResponse(req, nil) } +func (c *Client) ApplyTemplateWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) { + req, err := NewApplyTemplateRequestWithBody(c.service.ServerAPIURL(), contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) ApplyTemplate(ctx context.Context, body ApplyTemplateJSONRequestBody) (*http.Response, error) { + req, err := NewApplyTemplateRequest(c.service.ServerAPIURL(), body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) ExportTemplateWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) { + req, err := NewExportTemplateRequestWithBody(c.service.ServerAPIURL(), contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + +func (c *Client) ExportTemplate(ctx context.Context, body ExportTemplateJSONRequestBody) (*http.Response, error) { + req, err := NewExportTemplateRequest(c.service.ServerAPIURL(), body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + return c.service.DoHTTPRequestWithResponse(req, nil) +} + func (c *Client) GetUsers(ctx context.Context, params *GetUsersParams) (*http.Response, error) { req, err := NewGetUsersRequest(c.service.ServerAPIURL(), params) if err != nil { @@ -8857,19 +8739,8 @@ func NewPatchOrgsIDRequestWithBody(server string, orgID string, params *PatchOrg return req, nil } -// NewPostOrgsIDInvitesRequest calls the generic PostOrgsIDInvites builder with application/json body -func NewPostOrgsIDInvitesRequest(server string, orgID string, params *PostOrgsIDInvitesParams, body PostOrgsIDInvitesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsIDInvitesRequestWithBody(server, orgID, params, "application/json", bodyReader) -} - -// NewPostOrgsIDInvitesRequestWithBody generates requests for PostOrgsIDInvites with any type of body -func NewPostOrgsIDInvitesRequestWithBody(server string, orgID string, params *PostOrgsIDInvitesParams, contentType string, body io.Reader) (*http.Request, error) { +// NewGetOrgsIDMembersRequest generates requests for GetOrgsIDMembers +func NewGetOrgsIDMembersRequest(server string, orgID string, params *GetOrgsIDMembersParams) (*http.Request, error) { var err error var pathParam0 string @@ -8884,7 +8755,7 @@ func NewPostOrgsIDInvitesRequestWithBody(server string, orgID string, params *Po return nil, err } - basePath := fmt.Sprintf("/orgs/%s/invites", pathParam0) + basePath := fmt.Sprintf("/orgs/%s/members", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -8894,7 +8765,7 @@ func NewPostOrgsIDInvitesRequestWithBody(server string, orgID string, params *Po return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -8910,24 +8781,27 @@ func NewPostOrgsIDInvitesRequestWithBody(server string, orgID string, params *Po req.Header.Add("Zap-Trace-Span", headerParam0) } - req.Header.Add("Content-Type", contentType) return req, nil } -// NewDeleteOrgsIDInviteIDRequest generates requests for DeleteOrgsIDInviteID -func NewDeleteOrgsIDInviteIDRequest(server string, orgID string, inviteID string, params *DeleteOrgsIDInviteIDParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) +// NewPostOrgsIDMembersRequest calls the generic PostOrgsIDMembers builder with application/json body +func NewPostOrgsIDMembersRequest(server string, orgID string, params *PostOrgsIDMembersParams, body PostOrgsIDMembersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsIDMembersRequestWithBody(server, orgID, params, "application/json", bodyReader) +} - var pathParam1 string +// NewPostOrgsIDMembersRequestWithBody generates requests for PostOrgsIDMembers with any type of body +func NewPostOrgsIDMembersRequestWithBody(server string, orgID string, params *PostOrgsIDMembersParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string - pathParam1, err = runtime.StyleParam("simple", false, "inviteID", inviteID) + pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) if err != nil { return nil, err } @@ -8937,7 +8811,7 @@ func NewDeleteOrgsIDInviteIDRequest(server string, orgID string, inviteID string return nil, err } - basePath := fmt.Sprintf("/orgs/%s/invites/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/orgs/%s/members", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -8947,7 +8821,7 @@ func NewDeleteOrgsIDInviteIDRequest(server string, orgID string, inviteID string return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -8963,11 +8837,12 @@ func NewDeleteOrgsIDInviteIDRequest(server string, orgID string, inviteID string req.Header.Add("Zap-Trace-Span", headerParam0) } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewPostOrgsIDInviteIDRequest generates requests for PostOrgsIDInviteID -func NewPostOrgsIDInviteIDRequest(server string, orgID string, inviteID string, params *PostOrgsIDInviteIDParams) (*http.Request, error) { +// NewDeleteOrgsIDMembersIDRequest generates requests for DeleteOrgsIDMembersID +func NewDeleteOrgsIDMembersIDRequest(server string, orgID string, userID string, params *DeleteOrgsIDMembersIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -8979,7 +8854,7 @@ func NewPostOrgsIDInviteIDRequest(server string, orgID string, inviteID string, var pathParam1 string - pathParam1, err = runtime.StyleParam("simple", false, "inviteID", inviteID) + pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) if err != nil { return nil, err } @@ -8989,7 +8864,7 @@ func NewPostOrgsIDInviteIDRequest(server string, orgID string, inviteID string, return nil, err } - basePath := fmt.Sprintf("/orgs/%s/invites/%s/resend", pathParam0, pathParam1) + basePath := fmt.Sprintf("/orgs/%s/members/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -8999,7 +8874,7 @@ func NewPostOrgsIDInviteIDRequest(server string, orgID string, inviteID string, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -9018,8 +8893,8 @@ func NewPostOrgsIDInviteIDRequest(server string, orgID string, inviteID string, return req, nil } -// NewGetOrgsIDLabelsRequest generates requests for GetOrgsIDLabels -func NewGetOrgsIDLabelsRequest(server string, orgID string, params *GetOrgsIDLabelsParams) (*http.Request, error) { +// NewGetOrgsIDOwnersRequest generates requests for GetOrgsIDOwners +func NewGetOrgsIDOwnersRequest(server string, orgID string, params *GetOrgsIDOwnersParams) (*http.Request, error) { var err error var pathParam0 string @@ -9034,7 +8909,7 @@ func NewGetOrgsIDLabelsRequest(server string, orgID string, params *GetOrgsIDLab return nil, err } - basePath := fmt.Sprintf("/orgs/%s/labels", pathParam0) + basePath := fmt.Sprintf("/orgs/%s/owners", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -9063,19 +8938,19 @@ func NewGetOrgsIDLabelsRequest(server string, orgID string, params *GetOrgsIDLab return req, nil } -// NewPostOrgsIDLabelsRequest calls the generic PostOrgsIDLabels builder with application/json body -func NewPostOrgsIDLabelsRequest(server string, orgID string, params *PostOrgsIDLabelsParams, body PostOrgsIDLabelsJSONRequestBody) (*http.Request, error) { +// NewPostOrgsIDOwnersRequest calls the generic PostOrgsIDOwners builder with application/json body +func NewPostOrgsIDOwnersRequest(server string, orgID string, params *PostOrgsIDOwnersParams, body PostOrgsIDOwnersJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsIDLabelsRequestWithBody(server, orgID, params, "application/json", bodyReader) + return NewPostOrgsIDOwnersRequestWithBody(server, orgID, params, "application/json", bodyReader) } -// NewPostOrgsIDLabelsRequestWithBody generates requests for PostOrgsIDLabels with any type of body -func NewPostOrgsIDLabelsRequestWithBody(server string, orgID string, params *PostOrgsIDLabelsParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsIDOwnersRequestWithBody generates requests for PostOrgsIDOwners with any type of body +func NewPostOrgsIDOwnersRequestWithBody(server string, orgID string, params *PostOrgsIDOwnersParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9090,7 +8965,7 @@ func NewPostOrgsIDLabelsRequestWithBody(server string, orgID string, params *Pos return nil, err } - basePath := fmt.Sprintf("/orgs/%s/labels", pathParam0) + basePath := fmt.Sprintf("/orgs/%s/owners", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -9120,8 +8995,8 @@ func NewPostOrgsIDLabelsRequestWithBody(server string, orgID string, params *Pos return req, nil } -// NewDeleteOrgsIDLabelsIDRequest generates requests for DeleteOrgsIDLabelsID -func NewDeleteOrgsIDLabelsIDRequest(server string, orgID string, labelID string, params *DeleteOrgsIDLabelsIDParams) (*http.Request, error) { +// NewDeleteOrgsIDOwnersIDRequest generates requests for DeleteOrgsIDOwnersID +func NewDeleteOrgsIDOwnersIDRequest(server string, orgID string, userID string, params *DeleteOrgsIDOwnersIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -9133,7 +9008,7 @@ func NewDeleteOrgsIDLabelsIDRequest(server string, orgID string, labelID string, var pathParam1 string - pathParam1, err = runtime.StyleParam("simple", false, "labelID", labelID) + pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) if err != nil { return nil, err } @@ -9143,7 +9018,7 @@ func NewDeleteOrgsIDLabelsIDRequest(server string, orgID string, labelID string, return nil, err } - basePath := fmt.Sprintf("/orgs/%s/labels/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/orgs/%s/owners/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -9172,8 +9047,8 @@ func NewDeleteOrgsIDLabelsIDRequest(server string, orgID string, labelID string, return req, nil } -// NewGetOrgsIDMembersRequest generates requests for GetOrgsIDMembers -func NewGetOrgsIDMembersRequest(server string, orgID string, params *GetOrgsIDMembersParams) (*http.Request, error) { +// NewGetOrgsIDSecretsRequest generates requests for GetOrgsIDSecrets +func NewGetOrgsIDSecretsRequest(server string, orgID string, params *GetOrgsIDSecretsParams) (*http.Request, error) { var err error var pathParam0 string @@ -9188,7 +9063,7 @@ func NewGetOrgsIDMembersRequest(server string, orgID string, params *GetOrgsIDMe return nil, err } - basePath := fmt.Sprintf("/orgs/%s/members", pathParam0) + basePath := fmt.Sprintf("/orgs/%s/secrets", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -9217,19 +9092,19 @@ func NewGetOrgsIDMembersRequest(server string, orgID string, params *GetOrgsIDMe return req, nil } -// NewPostOrgsIDMembersRequest calls the generic PostOrgsIDMembers builder with application/json body -func NewPostOrgsIDMembersRequest(server string, orgID string, params *PostOrgsIDMembersParams, body PostOrgsIDMembersJSONRequestBody) (*http.Request, error) { +// NewPatchOrgsIDSecretsRequest calls the generic PatchOrgsIDSecrets builder with application/json body +func NewPatchOrgsIDSecretsRequest(server string, orgID string, params *PatchOrgsIDSecretsParams, body PatchOrgsIDSecretsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsIDMembersRequestWithBody(server, orgID, params, "application/json", bodyReader) + return NewPatchOrgsIDSecretsRequestWithBody(server, orgID, params, "application/json", bodyReader) } -// NewPostOrgsIDMembersRequestWithBody generates requests for PostOrgsIDMembers with any type of body -func NewPostOrgsIDMembersRequestWithBody(server string, orgID string, params *PostOrgsIDMembersParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchOrgsIDSecretsRequestWithBody generates requests for PatchOrgsIDSecrets with any type of body +func NewPatchOrgsIDSecretsRequestWithBody(server string, orgID string, params *PatchOrgsIDSecretsParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9244,7 +9119,7 @@ func NewPostOrgsIDMembersRequestWithBody(server string, orgID string, params *Po return nil, err } - basePath := fmt.Sprintf("/orgs/%s/members", pathParam0) + basePath := fmt.Sprintf("/orgs/%s/secrets", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -9254,7 +9129,7 @@ func NewPostOrgsIDMembersRequestWithBody(server string, orgID string, params *Po return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -9274,20 +9149,24 @@ func NewPostOrgsIDMembersRequestWithBody(server string, orgID string, params *Po return req, nil } -// NewDeleteOrgsIDMembersIDRequest generates requests for DeleteOrgsIDMembersID -func NewDeleteOrgsIDMembersIDRequest(server string, orgID string, userID string, params *DeleteOrgsIDMembersIDParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) +// NewPostOrgsIDSecretsRequest calls the generic PostOrgsIDSecrets builder with application/json body +func NewPostOrgsIDSecretsRequest(server string, orgID string, params *PostOrgsIDSecretsParams, body PostOrgsIDSecretsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsIDSecretsRequestWithBody(server, orgID, params, "application/json", bodyReader) +} - var pathParam1 string +// NewPostOrgsIDSecretsRequestWithBody generates requests for PostOrgsIDSecrets with any type of body +func NewPostOrgsIDSecretsRequestWithBody(server string, orgID string, params *PostOrgsIDSecretsParams, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) if err != nil { return nil, err } @@ -9297,7 +9176,7 @@ func NewDeleteOrgsIDMembersIDRequest(server string, orgID string, userID string, return nil, err } - basePath := fmt.Sprintf("/orgs/%s/members/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/orgs/%s/secrets/delete", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -9307,7 +9186,7 @@ func NewDeleteOrgsIDMembersIDRequest(server string, orgID string, userID string, return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -9323,26 +9202,31 @@ func NewDeleteOrgsIDMembersIDRequest(server string, orgID string, userID string, req.Header.Add("Zap-Trace-Span", headerParam0) } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetOrgsIDOwnersRequest generates requests for GetOrgsIDOwners -func NewGetOrgsIDOwnersRequest(server string, orgID string, params *GetOrgsIDOwnersParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) +// NewPostQueryRequest calls the generic PostQuery builder with application/json body +func NewPostQueryRequest(server string, params *PostQueryParams, body PostQueryJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewPostQueryRequestWithBody(server, params, "application/json", bodyReader) +} + +// NewPostQueryRequestWithBody generates requests for PostQuery with any type of body +func NewPostQueryRequestWithBody(server string, params *PostQueryParams, contentType string, body io.Reader) (*http.Request, error) { + var err error queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/orgs/%s/owners", pathParam0) + basePath := fmt.Sprintf("/query") if basePath[0] == '/' { basePath = basePath[1:] } @@ -9352,61 +9236,41 @@ func NewGetOrgsIDOwnersRequest(server string, orgID string, params *GetOrgsIDOwn return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + queryValues := queryURL.Query() - if params.ZapTraceSpan != nil { - var headerParam0 string + if params.Org != nil { - headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) - if err != nil { + if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); 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) + } + } } - req.Header.Add("Zap-Trace-Span", headerParam0) } - return req, nil -} + if params.OrgID != nil { -// NewPostOrgsIDOwnersRequest calls the generic PostOrgsIDOwners builder with application/json body -func NewPostOrgsIDOwnersRequest(server string, orgID string, params *PostOrgsIDOwnersParams, body PostOrgsIDOwnersJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsIDOwnersRequestWithBody(server, orgID, params, "application/json", bodyReader) -} - -// NewPostOrgsIDOwnersRequestWithBody generates requests for PostOrgsIDOwners with any type of body -func NewPostOrgsIDOwnersRequestWithBody(server string, orgID string, params *PostOrgsIDOwnersParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) - if err != nil { - return nil, err - } - - queryURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); 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) + } + } + } - basePath := fmt.Sprintf("/orgs/%s/owners", pathParam0) - if basePath[0] == '/' { - basePath = basePath[1:] } - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err - } + queryURL.RawQuery = queryValues.Encode() req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { @@ -9424,79 +9288,53 @@ func NewPostOrgsIDOwnersRequestWithBody(server string, orgID string, params *Pos req.Header.Add("Zap-Trace-Span", headerParam0) } - req.Header.Add("Content-Type", contentType) - return req, nil -} - -// NewDeleteOrgsIDOwnersIDRequest generates requests for DeleteOrgsIDOwnersID -func NewDeleteOrgsIDOwnersIDRequest(server string, orgID string, userID string, params *DeleteOrgsIDOwnersIDParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) - if err != nil { - return nil, err - } - - queryURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - basePath := fmt.Sprintf("/orgs/%s/owners/%s", pathParam0, pathParam1) - if basePath[0] == '/' { - basePath = basePath[1:] - } + if params.AcceptEncoding != nil { + var headerParam1 string - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err - } + headerParam1, err = runtime.StyleParam("simple", false, "Accept-Encoding", *params.AcceptEncoding) + if err != nil { + return nil, err + } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err + req.Header.Add("Accept-Encoding", headerParam1) } - if params.ZapTraceSpan != nil { - var headerParam0 string + if params.ContentType != nil { + var headerParam2 string - headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) + headerParam2, err = runtime.StyleParam("simple", false, "Content-Type", *params.ContentType) if err != nil { return nil, err } - req.Header.Add("Zap-Trace-Span", headerParam0) + req.Header.Add("Content-Type", headerParam2) } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetOrgsIDSecretsRequest generates requests for GetOrgsIDSecrets -func NewGetOrgsIDSecretsRequest(server string, orgID string, params *GetOrgsIDSecretsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) +// NewPostQueryAnalyzeRequest calls the generic PostQueryAnalyze builder with application/json body +func NewPostQueryAnalyzeRequest(server string, params *PostQueryAnalyzeParams, body PostQueryAnalyzeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewPostQueryAnalyzeRequestWithBody(server, params, "application/json", bodyReader) +} + +// NewPostQueryAnalyzeRequestWithBody generates requests for PostQueryAnalyze with any type of body +func NewPostQueryAnalyzeRequestWithBody(server string, params *PostQueryAnalyzeParams, contentType string, body io.Reader) (*http.Request, error) { + var err error queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/orgs/%s/secrets", pathParam0) + basePath := fmt.Sprintf("/query/analyze") if basePath[0] == '/' { basePath = basePath[1:] } @@ -9506,7 +9344,7 @@ func NewGetOrgsIDSecretsRequest(server string, orgID string, params *GetOrgsIDSe return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -9522,37 +9360,42 @@ func NewGetOrgsIDSecretsRequest(server string, orgID string, params *GetOrgsIDSe req.Header.Add("Zap-Trace-Span", headerParam0) } + if params.ContentType != nil { + var headerParam1 string + + headerParam1, err = runtime.StyleParam("simple", false, "Content-Type", *params.ContentType) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", headerParam1) + } + + req.Header.Add("Content-Type", contentType) return req, nil } -// NewPatchOrgsIDSecretsRequest calls the generic PatchOrgsIDSecrets builder with application/json body -func NewPatchOrgsIDSecretsRequest(server string, orgID string, params *PatchOrgsIDSecretsParams, body PatchOrgsIDSecretsJSONRequestBody) (*http.Request, error) { +// NewPostQueryAstRequest calls the generic PostQueryAst builder with application/json body +func NewPostQueryAstRequest(server string, params *PostQueryAstParams, body PostQueryAstJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPatchOrgsIDSecretsRequestWithBody(server, orgID, params, "application/json", bodyReader) + return NewPostQueryAstRequestWithBody(server, params, "application/json", bodyReader) } -// NewPatchOrgsIDSecretsRequestWithBody generates requests for PatchOrgsIDSecrets with any type of body -func NewPatchOrgsIDSecretsRequestWithBody(server string, orgID string, params *PatchOrgsIDSecretsParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostQueryAstRequestWithBody generates requests for PostQueryAst with any type of body +func NewPostQueryAstRequestWithBody(server string, params *PostQueryAstParams, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/orgs/%s/secrets", pathParam0) + basePath := fmt.Sprintf("/query/ast") if basePath[0] == '/' { basePath = basePath[1:] } @@ -9562,7 +9405,7 @@ func NewPatchOrgsIDSecretsRequestWithBody(server string, orgID string, params *P return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -9578,38 +9421,31 @@ func NewPatchOrgsIDSecretsRequestWithBody(server string, orgID string, params *P req.Header.Add("Zap-Trace-Span", headerParam0) } - req.Header.Add("Content-Type", contentType) - return req, nil -} + if params.ContentType != nil { + var headerParam1 string -// NewPostOrgsIDSecretsRequest calls the generic PostOrgsIDSecrets builder with application/json body -func NewPostOrgsIDSecretsRequest(server string, orgID string, params *PostOrgsIDSecretsParams, body PostOrgsIDSecretsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err + headerParam1, err = runtime.StyleParam("simple", false, "Content-Type", *params.ContentType) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", headerParam1) } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsIDSecretsRequestWithBody(server, orgID, params, "application/json", bodyReader) + + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewPostOrgsIDSecretsRequestWithBody generates requests for PostOrgsIDSecrets with any type of body -func NewPostOrgsIDSecretsRequestWithBody(server string, orgID string, params *PostOrgsIDSecretsParams, contentType string, body io.Reader) (*http.Request, error) { +// NewGetQuerySuggestionsRequest generates requests for GetQuerySuggestions +func NewGetQuerySuggestionsRequest(server string, params *GetQuerySuggestionsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/orgs/%s/secrets/delete", pathParam0) + basePath := fmt.Sprintf("/query/suggestions") if basePath[0] == '/' { basePath = basePath[1:] } @@ -9619,7 +9455,7 @@ func NewPostOrgsIDSecretsRequestWithBody(server string, orgID string, params *Po return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9635,17 +9471,16 @@ func NewPostOrgsIDSecretsRequestWithBody(server string, orgID string, params *Po req.Header.Add("Zap-Trace-Span", headerParam0) } - req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetCloudUsersRequest generates requests for GetCloudUsers -func NewGetCloudUsersRequest(server string, orgID string, params *GetCloudUsersParams) (*http.Request, error) { +// NewGetQuerySuggestionsNameRequest generates requests for GetQuerySuggestionsName +func NewGetQuerySuggestionsNameRequest(server string, name string, params *GetQuerySuggestionsNameParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) + pathParam0, err = runtime.StyleParam("simple", false, "name", name) if err != nil { return nil, err } @@ -9655,7 +9490,7 @@ func NewGetCloudUsersRequest(server string, orgID string, params *GetCloudUsersP return nil, err } - basePath := fmt.Sprintf("/orgs/%s/users", pathParam0) + basePath := fmt.Sprintf("/query/suggestions/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -9684,30 +9519,16 @@ func NewGetCloudUsersRequest(server string, orgID string, params *GetCloudUsersP return req, nil } -// NewDeleteOrgsIDCloudUserIDRequest generates requests for DeleteOrgsIDCloudUserID -func NewDeleteOrgsIDCloudUserIDRequest(server string, orgID string, userID string, params *DeleteOrgsIDCloudUserIDParams) (*http.Request, error) { +// NewGetReadyRequest generates requests for GetReady +func NewGetReadyRequest(server string, params *GetReadyParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "orgID", orgID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/orgs/%s/users/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/ready") if basePath[0] == '/' { basePath = basePath[1:] } @@ -9717,7 +9538,7 @@ func NewDeleteOrgsIDCloudUserIDRequest(server string, orgID string, userID strin return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9736,19 +9557,8 @@ func NewDeleteOrgsIDCloudUserIDRequest(server string, orgID string, userID strin return req, nil } -// NewCreatePkgRequest calls the generic CreatePkg builder with application/json body -func NewCreatePkgRequest(server string, body CreatePkgJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreatePkgRequestWithBody(server, "application/json", bodyReader) -} - -// NewCreatePkgRequestWithBody generates requests for CreatePkg with any type of body -func NewCreatePkgRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetScrapersRequest generates requests for GetScrapers +func NewGetScrapersRequest(server string, params *GetScrapersParams) (*http.Request, error) { var err error queryURL, err := url.Parse(server) @@ -9756,7 +9566,7 @@ func NewCreatePkgRequestWithBody(server string, contentType string, body io.Read return nil, err } - basePath := fmt.Sprintf("/packages") + basePath := fmt.Sprintf("/scrapers") if basePath[0] == '/' { basePath = basePath[1:] } @@ -9766,90 +9576,43 @@ func NewCreatePkgRequestWithBody(server string, contentType string, body io.Read return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - return req, nil -} + queryValues := queryURL.Query() -// NewApplyPkgRequest calls the generic ApplyPkg builder with application/json body -func NewApplyPkgRequest(server string, body ApplyPkgJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewApplyPkgRequestWithBody(server, "application/json", bodyReader) -} + if params.Name != nil { -// NewApplyPkgRequestWithBody generates requests for ApplyPkg with any type of body -func NewApplyPkgRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + if queryFrag, err := runtime.StyleParam("form", true, "name", *params.Name); 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) + } + } + } - queryURL, err := url.Parse(server) - if err != nil { - return nil, err } - basePath := fmt.Sprintf("/packages/apply") - if basePath[0] == '/' { - basePath = basePath[1:] - } + if params.Id != nil { - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - return req, nil -} - -// NewListStacksRequest generates requests for ListStacks -func NewListStacksRequest(server string, params *ListStacksParams) (*http.Request, error) { - var err error - - queryURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - basePath := fmt.Sprintf("/packages/stacks") - if basePath[0] == '/' { - basePath = basePath[1:] - } - - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParam("form", true, "orgID", params.OrgID); 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 queryFrag, err := runtime.StyleParam("form", true, "id", *params.Id); 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.Name != nil { + if params.OrgID != nil { - if queryFrag, err := runtime.StyleParam("form", true, "name", *params.Name); err != nil { + if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -9863,9 +9626,9 @@ func NewListStacksRequest(server string, params *ListStacksParams) (*http.Reques } - if params.StackID != nil { + if params.Org != nil { - if queryFrag, err := runtime.StyleParam("form", true, "stackID", *params.StackID); err != nil { + if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -9886,22 +9649,33 @@ func NewListStacksRequest(server string, params *ListStacksParams) (*http.Reques 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) + } + return req, nil } -// NewCreateStackRequest calls the generic CreateStack builder with application/json body -func NewCreateStackRequest(server string, body CreateStackJSONRequestBody) (*http.Request, error) { +// NewPostScrapersRequest calls the generic PostScrapers builder with application/json body +func NewPostScrapersRequest(server string, params *PostScrapersParams, body PostScrapersJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateStackRequestWithBody(server, "application/json", bodyReader) + return NewPostScrapersRequestWithBody(server, params, "application/json", bodyReader) } -// NewCreateStackRequestWithBody generates requests for CreateStack with any type of body -func NewCreateStackRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostScrapersRequestWithBody generates requests for PostScrapers with any type of body +func NewPostScrapersRequestWithBody(server string, params *PostScrapersParams, contentType string, body io.Reader) (*http.Request, error) { var err error queryURL, err := url.Parse(server) @@ -9909,7 +9683,7 @@ func NewCreateStackRequestWithBody(server string, contentType string, body io.Re return nil, err } - basePath := fmt.Sprintf("/packages/stacks") + basePath := fmt.Sprintf("/scrapers") if basePath[0] == '/' { basePath = basePath[1:] } @@ -9924,17 +9698,28 @@ func NewCreateStackRequestWithBody(server string, contentType string, body io.Re 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 } -// NewDeleteStackRequest generates requests for DeleteStack -func NewDeleteStackRequest(server string, stackId string, params *DeleteStackParams) (*http.Request, error) { +// NewDeleteScrapersIDRequest generates requests for DeleteScrapersID +func NewDeleteScrapersIDRequest(server string, scraperTargetID string, params *DeleteScrapersIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "stack_id", stackId) + pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) if err != nil { return nil, err } @@ -9944,7 +9729,7 @@ func NewDeleteStackRequest(server string, stackId string, params *DeleteStackPar return nil, err } - basePath := fmt.Sprintf("/packages/stacks/%s", pathParam0) + basePath := fmt.Sprintf("/scrapers/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -9954,37 +9739,32 @@ func NewDeleteStackRequest(server string, stackId string, params *DeleteStackPar return nil, err } - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParam("form", true, "orgID", params.OrgID); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } } - queryURL.RawQuery = queryValues.Encode() + if params.ZapTraceSpan != nil { + var headerParam0 string - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err + headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) + if err != nil { + return nil, err + } + + req.Header.Add("Zap-Trace-Span", headerParam0) } return req, nil } -// NewReadStackRequest generates requests for ReadStack -func NewReadStackRequest(server string, stackId string) (*http.Request, error) { +// NewGetScrapersIDRequest generates requests for GetScrapersID +func NewGetScrapersIDRequest(server string, scraperTargetID string, params *GetScrapersIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "stack_id", stackId) + pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) if err != nil { return nil, err } @@ -9994,7 +9774,7 @@ func NewReadStackRequest(server string, stackId string) (*http.Request, error) { return nil, err } - basePath := fmt.Sprintf("/packages/stacks/%s", pathParam0) + basePath := fmt.Sprintf("/scrapers/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10009,27 +9789,38 @@ func NewReadStackRequest(server string, stackId string) (*http.Request, error) { 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) + } + return req, nil } -// NewUpdateStackRequest calls the generic UpdateStack builder with application/json body -func NewUpdateStackRequest(server string, stackId string, body UpdateStackJSONRequestBody) (*http.Request, error) { +// NewPatchScrapersIDRequest calls the generic PatchScrapersID builder with application/json body +func NewPatchScrapersIDRequest(server string, scraperTargetID string, params *PatchScrapersIDParams, body PatchScrapersIDJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateStackRequestWithBody(server, stackId, "application/json", bodyReader) + return NewPatchScrapersIDRequestWithBody(server, scraperTargetID, params, "application/json", bodyReader) } -// NewUpdateStackRequestWithBody generates requests for UpdateStack with any type of body -func NewUpdateStackRequestWithBody(server string, stackId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchScrapersIDRequestWithBody generates requests for PatchScrapersID with any type of body +func NewPatchScrapersIDRequestWithBody(server string, scraperTargetID string, params *PatchScrapersIDParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "stack_id", stackId) + pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) if err != nil { return nil, err } @@ -10039,7 +9830,7 @@ func NewUpdateStackRequestWithBody(server string, stackId string, contentType st return nil, err } - basePath := fmt.Sprintf("/packages/stacks/%s", pathParam0) + basePath := fmt.Sprintf("/scrapers/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10054,17 +9845,28 @@ func NewUpdateStackRequestWithBody(server string, stackId string, contentType st 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 } -// NewExportStackRequest generates requests for ExportStack -func NewExportStackRequest(server string, stackId string, params *ExportStackParams) (*http.Request, error) { +// NewGetScrapersIDLabelsRequest generates requests for GetScrapersIDLabels +func NewGetScrapersIDLabelsRequest(server string, scraperTargetID string, params *GetScrapersIDLabelsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "stack_id", stackId) + pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) if err != nil { return nil, err } @@ -10074,7 +9876,7 @@ func NewExportStackRequest(server string, stackId string, params *ExportStackPar return nil, err } - basePath := fmt.Sprintf("/packages/stacks/%s/export", pathParam0) + basePath := fmt.Sprintf("/scrapers/%s/labels", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10084,51 +9886,53 @@ func NewExportStackRequest(server string, stackId string, params *ExportStackPar return nil, err } - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParam("form", true, "orgID", params.OrgID); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } } - queryURL.RawQuery = queryValues.Encode() + if params.ZapTraceSpan != nil { + var headerParam0 string - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err + headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) + if err != nil { + return nil, err + } + + req.Header.Add("Zap-Trace-Span", headerParam0) } return req, nil } -// NewPostQueryRequest calls the generic PostQuery builder with application/json body -func NewPostQueryRequest(server string, params *PostQueryParams, body PostQueryJSONRequestBody) (*http.Request, error) { +// NewPostScrapersIDLabelsRequest calls the generic PostScrapersIDLabels builder with application/json body +func NewPostScrapersIDLabelsRequest(server string, scraperTargetID string, params *PostScrapersIDLabelsParams, body PostScrapersIDLabelsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostQueryRequestWithBody(server, params, "application/json", bodyReader) + return NewPostScrapersIDLabelsRequestWithBody(server, scraperTargetID, params, "application/json", bodyReader) } -// NewPostQueryRequestWithBody generates requests for PostQuery with any type of body -func NewPostQueryRequestWithBody(server string, params *PostQueryParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostScrapersIDLabelsRequestWithBody generates requests for PostScrapersIDLabels with any type of body +func NewPostScrapersIDLabelsRequestWithBody(server string, scraperTargetID string, params *PostScrapersIDLabelsParams, 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 + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/query") + basePath := fmt.Sprintf("/scrapers/%s/labels", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10138,42 +9942,6 @@ func NewPostQueryRequestWithBody(server string, params *PostQueryParams, content return nil, err } - queryValues := queryURL.Query() - - if params.Org != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); 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.OrgID != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); 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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err @@ -10190,53 +9958,34 @@ func NewPostQueryRequestWithBody(server string, params *PostQueryParams, content req.Header.Add("Zap-Trace-Span", headerParam0) } - if params.AcceptEncoding != nil { - var headerParam1 string + req.Header.Add("Content-Type", contentType) + return req, nil +} - headerParam1, err = runtime.StyleParam("simple", false, "Accept-Encoding", *params.AcceptEncoding) - if err != nil { - return nil, err - } - - req.Header.Add("Accept-Encoding", headerParam1) - } - - if params.ContentType != nil { - var headerParam2 string +// NewDeleteScrapersIDLabelsIDRequest generates requests for DeleteScrapersIDLabelsID +func NewDeleteScrapersIDLabelsIDRequest(server string, scraperTargetID string, labelID string, params *DeleteScrapersIDLabelsIDParams) (*http.Request, error) { + var err error - headerParam2, err = runtime.StyleParam("simple", false, "Content-Type", *params.ContentType) - if err != nil { - return nil, err - } + var pathParam0 string - req.Header.Add("Content-Type", headerParam2) + pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) + if err != nil { + return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil -} + var pathParam1 string -// NewPostQueryAnalyzeRequest calls the generic PostQueryAnalyze builder with application/json body -func NewPostQueryAnalyzeRequest(server string, params *PostQueryAnalyzeParams, body PostQueryAnalyzeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + pathParam1, err = runtime.StyleParam("simple", false, "labelID", labelID) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostQueryAnalyzeRequestWithBody(server, params, "application/json", bodyReader) -} - -// NewPostQueryAnalyzeRequestWithBody generates requests for PostQueryAnalyze with any type of body -func NewPostQueryAnalyzeRequestWithBody(server string, params *PostQueryAnalyzeParams, contentType string, body io.Reader) (*http.Request, error) { - var err error queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/query/analyze") + basePath := fmt.Sprintf("/scrapers/%s/labels/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10246,7 +9995,7 @@ func NewPostQueryAnalyzeRequestWithBody(server string, params *PostQueryAnalyzeP return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -10262,42 +10011,44 @@ func NewPostQueryAnalyzeRequestWithBody(server string, params *PostQueryAnalyzeP req.Header.Add("Zap-Trace-Span", headerParam0) } - if params.ContentType != nil { - var headerParam1 string - - headerParam1, err = runtime.StyleParam("simple", false, "Content-Type", *params.ContentType) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", headerParam1) - } - - req.Header.Add("Content-Type", contentType) return req, nil } -// NewPostQueryAstRequest calls the generic PostQueryAst builder with application/json body -func NewPostQueryAstRequest(server string, params *PostQueryAstParams, body PostQueryAstJSONRequestBody) (*http.Request, error) { +// 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 NewPostQueryAstRequestWithBody(server, params, "application/json", bodyReader) + return NewPatchScrapersIDLabelsIDRequestWithBody(server, scraperTargetID, labelID, params, "application/json", bodyReader) } -// NewPostQueryAstRequestWithBody generates requests for PostQueryAst with any type of body -func NewPostQueryAstRequestWithBody(server string, params *PostQueryAstParams, contentType string, body io.Reader) (*http.Request, error) { +// 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("/query/ast") + basePath := fmt.Sprintf("/scrapers/%s/labels/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10307,7 +10058,7 @@ func NewPostQueryAstRequestWithBody(server string, params *PostQueryAstParams, c return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -10323,31 +10074,27 @@ func NewPostQueryAstRequestWithBody(server string, params *PostQueryAstParams, c req.Header.Add("Zap-Trace-Span", headerParam0) } - if params.ContentType != nil { - var headerParam1 string - - headerParam1, err = runtime.StyleParam("simple", false, "Content-Type", *params.ContentType) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", headerParam1) - } - req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetQuerySuggestionsRequest generates requests for GetQuerySuggestions -func NewGetQuerySuggestionsRequest(server string, params *GetQuerySuggestionsParams) (*http.Request, error) { +// NewGetScrapersIDMembersRequest generates requests for GetScrapersIDMembers +func NewGetScrapersIDMembersRequest(server string, scraperTargetID string, params *GetScrapersIDMembersParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/query/suggestions") + basePath := fmt.Sprintf("/scrapers/%s/members", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10376,13 +10123,24 @@ func NewGetQuerySuggestionsRequest(server string, params *GetQuerySuggestionsPar return req, nil } -// NewGetQuerySuggestionsNameRequest generates requests for GetQuerySuggestionsName -func NewGetQuerySuggestionsNameRequest(server string, name string, params *GetQuerySuggestionsNameParams) (*http.Request, error) { +// NewPostScrapersIDMembersRequest calls the generic PostScrapersIDMembers builder with application/json body +func NewPostScrapersIDMembersRequest(server string, scraperTargetID string, params *PostScrapersIDMembersParams, body PostScrapersIDMembersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostScrapersIDMembersRequestWithBody(server, scraperTargetID, params, "application/json", bodyReader) +} + +// NewPostScrapersIDMembersRequestWithBody generates requests for PostScrapersIDMembers with any type of body +func NewPostScrapersIDMembersRequestWithBody(server string, scraperTargetID string, params *PostScrapersIDMembersParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "name", name) + pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) if err != nil { return nil, err } @@ -10392,7 +10150,7 @@ func NewGetQuerySuggestionsNameRequest(server string, name string, params *GetQu return nil, err } - basePath := fmt.Sprintf("/query/suggestions/%s", pathParam0) + basePath := fmt.Sprintf("/scrapers/%s/members", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10402,7 +10160,7 @@ func NewGetQuerySuggestionsNameRequest(server string, name string, params *GetQu return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -10418,19 +10176,34 @@ func NewGetQuerySuggestionsNameRequest(server string, name string, params *GetQu req.Header.Add("Zap-Trace-Span", headerParam0) } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetReadyRequest generates requests for GetReady -func NewGetReadyRequest(server string, params *GetReadyParams) (*http.Request, error) { +// NewDeleteScrapersIDMembersIDRequest generates requests for DeleteScrapersIDMembersID +func NewDeleteScrapersIDMembersIDRequest(server string, scraperTargetID string, userID string, params *DeleteScrapersIDMembersIDParams) (*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, "userID", userID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/ready") + basePath := fmt.Sprintf("/scrapers/%s/members/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10440,7 +10213,7 @@ func NewGetReadyRequest(server string, params *GetReadyParams) (*http.Request, e return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -10459,16 +10232,23 @@ func NewGetReadyRequest(server string, params *GetReadyParams) (*http.Request, e return req, nil } -// NewGetScrapersRequest generates requests for GetScrapers -func NewGetScrapersRequest(server string, params *GetScrapersParams) (*http.Request, error) { +// NewGetScrapersIDOwnersRequest generates requests for GetScrapersIDOwners +func NewGetScrapersIDOwnersRequest(server string, scraperTargetID string, params *GetScrapersIDOwnersParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/scrapers") + basePath := fmt.Sprintf("/scrapers/%s/owners", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10478,74 +10258,6 @@ func NewGetScrapersRequest(server string, params *GetScrapersParams) (*http.Requ return nil, err } - queryValues := queryURL.Query() - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "name", *params.Name); 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.Id != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "id", *params.Id); 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.OrgID != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); 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 { - 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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -10565,27 +10277,34 @@ func NewGetScrapersRequest(server string, params *GetScrapersParams) (*http.Requ return req, nil } -// NewPostScrapersRequest calls the generic PostScrapers builder with application/json body -func NewPostScrapersRequest(server string, params *PostScrapersParams, body PostScrapersJSONRequestBody) (*http.Request, error) { +// NewPostScrapersIDOwnersRequest calls the generic PostScrapersIDOwners builder with application/json body +func NewPostScrapersIDOwnersRequest(server string, scraperTargetID string, params *PostScrapersIDOwnersParams, body PostScrapersIDOwnersJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostScrapersRequestWithBody(server, params, "application/json", bodyReader) + return NewPostScrapersIDOwnersRequestWithBody(server, scraperTargetID, params, "application/json", bodyReader) } -// NewPostScrapersRequestWithBody generates requests for PostScrapers with any type of body -func NewPostScrapersRequestWithBody(server string, params *PostScrapersParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostScrapersIDOwnersRequestWithBody generates requests for PostScrapersIDOwners with any type of body +func NewPostScrapersIDOwnersRequestWithBody(server string, scraperTargetID string, params *PostScrapersIDOwnersParams, 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 + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/scrapers") + basePath := fmt.Sprintf("/scrapers/%s/owners", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10615,8 +10334,8 @@ func NewPostScrapersRequestWithBody(server string, params *PostScrapersParams, c return req, nil } -// NewDeleteScrapersIDRequest generates requests for DeleteScrapersID -func NewDeleteScrapersIDRequest(server string, scraperTargetID string, params *DeleteScrapersIDParams) (*http.Request, error) { +// NewDeleteScrapersIDOwnersIDRequest generates requests for DeleteScrapersIDOwnersID +func NewDeleteScrapersIDOwnersIDRequest(server string, scraperTargetID string, userID string, params *DeleteScrapersIDOwnersIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -10626,12 +10345,19 @@ func NewDeleteScrapersIDRequest(server string, scraperTargetID string, params *D return nil, err } - queryURL, err := url.Parse(server) - if err != nil { - return nil, err + var pathParam1 string + + pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) + if err != nil { + return nil, err } - basePath := fmt.Sprintf("/scrapers/%s", pathParam0) + queryURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + basePath := fmt.Sprintf("/scrapers/%s/owners/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -10660,23 +10386,16 @@ func NewDeleteScrapersIDRequest(server string, scraperTargetID string, params *D return req, nil } -// NewGetScrapersIDRequest generates requests for GetScrapersID -func NewGetScrapersIDRequest(server string, scraperTargetID string, params *GetScrapersIDParams) (*http.Request, error) { +// NewGetSetupRequest generates requests for GetSetup +func NewGetSetupRequest(server string, params *GetSetupParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/scrapers/%s", pathParam0) + basePath := fmt.Sprintf("/setup") if basePath[0] == '/' { basePath = basePath[1:] } @@ -10705,34 +10424,27 @@ func NewGetScrapersIDRequest(server string, scraperTargetID string, params *GetS return req, nil } -// NewPatchScrapersIDRequest calls the generic PatchScrapersID builder with application/json body -func NewPatchScrapersIDRequest(server string, scraperTargetID string, params *PatchScrapersIDParams, body PatchScrapersIDJSONRequestBody) (*http.Request, error) { +// NewPostSetupRequest calls the generic PostSetup builder with application/json body +func NewPostSetupRequest(server string, params *PostSetupParams, body PostSetupJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPatchScrapersIDRequestWithBody(server, scraperTargetID, params, "application/json", bodyReader) + return NewPostSetupRequestWithBody(server, params, "application/json", bodyReader) } -// NewPatchScrapersIDRequestWithBody generates requests for PatchScrapersID with any type of body -func NewPatchScrapersIDRequestWithBody(server string, scraperTargetID string, params *PatchScrapersIDParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostSetupRequestWithBody generates requests for PostSetup with any type of body +func NewPostSetupRequestWithBody(server string, params *PostSetupParams, 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 - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/scrapers/%s", pathParam0) + basePath := fmt.Sprintf("/setup") if basePath[0] == '/' { basePath = basePath[1:] } @@ -10742,7 +10454,7 @@ func NewPatchScrapersIDRequestWithBody(server string, scraperTargetID string, pa return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -10762,79 +10474,27 @@ func NewPatchScrapersIDRequestWithBody(server string, scraperTargetID string, pa return req, nil } -// NewGetScrapersIDLabelsRequest generates requests for GetScrapersIDLabels -func NewGetScrapersIDLabelsRequest(server string, scraperTargetID string, params *GetScrapersIDLabelsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) - if err != nil { - return nil, err - } - - queryURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - basePath := fmt.Sprintf("/scrapers/%s/labels", pathParam0) - if basePath[0] == '/' { - basePath = basePath[1:] - } - - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - 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) - } - - return req, nil -} - -// NewPostScrapersIDLabelsRequest calls the generic PostScrapersIDLabels builder with application/json body -func NewPostScrapersIDLabelsRequest(server string, scraperTargetID string, params *PostScrapersIDLabelsParams, body PostScrapersIDLabelsJSONRequestBody) (*http.Request, error) { +// NewPostSetupUserRequest calls the generic PostSetupUser builder with application/json body +func NewPostSetupUserRequest(server string, params *PostSetupUserParams, body PostSetupUserJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostScrapersIDLabelsRequestWithBody(server, scraperTargetID, params, "application/json", bodyReader) + return NewPostSetupUserRequestWithBody(server, params, "application/json", bodyReader) } -// NewPostScrapersIDLabelsRequestWithBody generates requests for PostScrapersIDLabels with any type of body -func NewPostScrapersIDLabelsRequestWithBody(server string, scraperTargetID string, params *PostScrapersIDLabelsParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostSetupUserRequestWithBody generates requests for PostSetupUser with any type of body +func NewPostSetupUserRequestWithBody(server string, params *PostSetupUserParams, 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 - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/scrapers/%s/labels", pathParam0) + basePath := fmt.Sprintf("/setup/user") if basePath[0] == '/' { basePath = basePath[1:] } @@ -10864,30 +10524,16 @@ func NewPostScrapersIDLabelsRequestWithBody(server string, scraperTargetID strin return req, nil } -// NewDeleteScrapersIDLabelsIDRequest generates requests for DeleteScrapersIDLabelsID -func NewDeleteScrapersIDLabelsIDRequest(server string, scraperTargetID string, labelID string, params *DeleteScrapersIDLabelsIDParams) (*http.Request, error) { +// NewPostSigninRequest generates requests for PostSignin +func NewPostSigninRequest(server string, params *PostSigninParams) (*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) + basePath := fmt.Sprintf("/signin") if basePath[0] == '/' { basePath = basePath[1:] } @@ -10897,7 +10543,7 @@ func NewDeleteScrapersIDLabelsIDRequest(server string, scraperTargetID string, l return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10916,41 +10562,16 @@ 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) { +// NewPostSignoutRequest generates requests for PostSignout +func NewPostSignoutRequest(server string, params *PostSignoutParams) (*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) + basePath := fmt.Sprintf("/signout") if basePath[0] == '/' { basePath = basePath[1:] } @@ -10960,7 +10581,7 @@ func NewPatchScrapersIDLabelsIDRequestWithBody(server string, scraperTargetID st return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10976,27 +10597,19 @@ func NewPatchScrapersIDLabelsIDRequestWithBody(server string, scraperTargetID st 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) { +// NewGetSourcesRequest generates requests for GetSources +func NewGetSourcesRequest(server string, params *GetSourcesParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/scrapers/%s/members", pathParam0) + basePath := fmt.Sprintf("/sources") if basePath[0] == '/' { basePath = basePath[1:] } @@ -11006,6 +10619,26 @@ func NewGetScrapersIDMembersRequest(server string, scraperTargetID string, param return nil, err } + queryValues := queryURL.Query() + + if params.Org != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -11025,34 +10658,27 @@ func NewGetScrapersIDMembersRequest(server string, scraperTargetID string, param return req, nil } -// NewPostScrapersIDMembersRequest calls the generic PostScrapersIDMembers builder with application/json body -func NewPostScrapersIDMembersRequest(server string, scraperTargetID string, params *PostScrapersIDMembersParams, body PostScrapersIDMembersJSONRequestBody) (*http.Request, error) { +// NewPostSourcesRequest calls the generic PostSources builder with application/json body +func NewPostSourcesRequest(server string, params *PostSourcesParams, body PostSourcesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostScrapersIDMembersRequestWithBody(server, scraperTargetID, params, "application/json", bodyReader) + return NewPostSourcesRequestWithBody(server, params, "application/json", bodyReader) } -// NewPostScrapersIDMembersRequestWithBody generates requests for PostScrapersIDMembers with any type of body -func NewPostScrapersIDMembersRequestWithBody(server string, scraperTargetID string, params *PostScrapersIDMembersParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostSourcesRequestWithBody generates requests for PostSources with any type of body +func NewPostSourcesRequestWithBody(server string, params *PostSourcesParams, 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 - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/scrapers/%s/members", pathParam0) + basePath := fmt.Sprintf("/sources") if basePath[0] == '/' { basePath = basePath[1:] } @@ -11082,20 +10708,13 @@ func NewPostScrapersIDMembersRequestWithBody(server string, scraperTargetID stri return req, nil } -// NewDeleteScrapersIDMembersIDRequest generates requests for DeleteScrapersIDMembersID -func NewDeleteScrapersIDMembersIDRequest(server string, scraperTargetID string, userID string, params *DeleteScrapersIDMembersIDParams) (*http.Request, error) { +// NewDeleteSourcesIDRequest generates requests for DeleteSourcesID +func NewDeleteSourcesIDRequest(server string, sourceID string, params *DeleteSourcesIDParams) (*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, "userID", userID) + pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) if err != nil { return nil, err } @@ -11105,7 +10724,7 @@ func NewDeleteScrapersIDMembersIDRequest(server string, scraperTargetID string, return nil, err } - basePath := fmt.Sprintf("/scrapers/%s/members/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/sources/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11134,13 +10753,13 @@ func NewDeleteScrapersIDMembersIDRequest(server string, scraperTargetID string, return req, nil } -// NewGetScrapersIDOwnersRequest generates requests for GetScrapersIDOwners -func NewGetScrapersIDOwnersRequest(server string, scraperTargetID string, params *GetScrapersIDOwnersParams) (*http.Request, error) { +// NewGetSourcesIDRequest generates requests for GetSourcesID +func NewGetSourcesIDRequest(server string, sourceID string, params *GetSourcesIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) + pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) if err != nil { return nil, err } @@ -11150,7 +10769,7 @@ func NewGetScrapersIDOwnersRequest(server string, scraperTargetID string, params return nil, err } - basePath := fmt.Sprintf("/scrapers/%s/owners", pathParam0) + basePath := fmt.Sprintf("/sources/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11179,24 +10798,24 @@ func NewGetScrapersIDOwnersRequest(server string, scraperTargetID string, params return req, nil } -// NewPostScrapersIDOwnersRequest calls the generic PostScrapersIDOwners builder with application/json body -func NewPostScrapersIDOwnersRequest(server string, scraperTargetID string, params *PostScrapersIDOwnersParams, body PostScrapersIDOwnersJSONRequestBody) (*http.Request, error) { +// NewPatchSourcesIDRequest calls the generic PatchSourcesID builder with application/json body +func NewPatchSourcesIDRequest(server string, sourceID string, params *PatchSourcesIDParams, body PatchSourcesIDJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostScrapersIDOwnersRequestWithBody(server, scraperTargetID, params, "application/json", bodyReader) + return NewPatchSourcesIDRequestWithBody(server, sourceID, params, "application/json", bodyReader) } -// NewPostScrapersIDOwnersRequestWithBody generates requests for PostScrapersIDOwners with any type of body -func NewPostScrapersIDOwnersRequestWithBody(server string, scraperTargetID string, params *PostScrapersIDOwnersParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchSourcesIDRequestWithBody generates requests for PatchSourcesID with any type of body +func NewPatchSourcesIDRequestWithBody(server string, sourceID string, params *PatchSourcesIDParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "scraperTargetID", scraperTargetID) + pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) if err != nil { return nil, err } @@ -11206,7 +10825,7 @@ func NewPostScrapersIDOwnersRequestWithBody(server string, scraperTargetID strin return nil, err } - basePath := fmt.Sprintf("/scrapers/%s/owners", pathParam0) + basePath := fmt.Sprintf("/sources/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11216,7 +10835,7 @@ func NewPostScrapersIDOwnersRequestWithBody(server string, scraperTargetID strin return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -11236,20 +10855,13 @@ func NewPostScrapersIDOwnersRequestWithBody(server string, scraperTargetID strin return req, nil } -// NewDeleteScrapersIDOwnersIDRequest generates requests for DeleteScrapersIDOwnersID -func NewDeleteScrapersIDOwnersIDRequest(server string, scraperTargetID string, userID string, params *DeleteScrapersIDOwnersIDParams) (*http.Request, error) { +// NewGetSourcesIDBucketsRequest generates requests for GetSourcesIDBuckets +func NewGetSourcesIDBucketsRequest(server string, sourceID string, params *GetSourcesIDBucketsParams) (*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, "userID", userID) + pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) if err != nil { return nil, err } @@ -11259,7 +10871,7 @@ func NewDeleteScrapersIDOwnersIDRequest(server string, scraperTargetID string, u return nil, err } - basePath := fmt.Sprintf("/scrapers/%s/owners/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/sources/%s/buckets", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11269,7 +10881,27 @@ func NewDeleteScrapersIDOwnersIDRequest(server string, scraperTargetID string, u return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + queryValues := queryURL.Query() + + if params.Org != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11288,16 +10920,23 @@ func NewDeleteScrapersIDOwnersIDRequest(server string, scraperTargetID string, u return req, nil } -// NewGetSetupRequest generates requests for GetSetup -func NewGetSetupRequest(server string, params *GetSetupParams) (*http.Request, error) { +// NewGetSourcesIDHealthRequest generates requests for GetSourcesIDHealth +func NewGetSourcesIDHealthRequest(server string, sourceID string, params *GetSourcesIDHealthParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/setup") + basePath := fmt.Sprintf("/sources/%s/health", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11326,19 +10965,8 @@ func NewGetSetupRequest(server string, params *GetSetupParams) (*http.Request, e return req, nil } -// NewPostSetupRequest calls the generic PostSetup builder with application/json body -func NewPostSetupRequest(server string, params *PostSetupParams, body PostSetupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostSetupRequestWithBody(server, params, "application/json", bodyReader) -} - -// NewPostSetupRequestWithBody generates requests for PostSetup with any type of body -func NewPostSetupRequestWithBody(server string, params *PostSetupParams, contentType string, body io.Reader) (*http.Request, error) { +// NewListStacksRequest generates requests for ListStacks +func NewListStacksRequest(server string, params *ListStacksParams) (*http.Request, error) { var err error queryURL, err := url.Parse(server) @@ -11346,7 +10974,7 @@ func NewPostSetupRequestWithBody(server string, params *PostSetupParams, content return nil, err } - basePath := fmt.Sprintf("/setup") + basePath := fmt.Sprintf("/stacks") if basePath[0] == '/' { basePath = basePath[1:] } @@ -11356,39 +10984,75 @@ func NewPostSetupRequestWithBody(server string, params *PostSetupParams, content return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParam("form", true, "orgID", params.OrgID); 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.ZapTraceSpan != nil { - var headerParam0 string + if params.Name != nil { - headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) - if err != nil { + if queryFrag, err := runtime.StyleParam("form", true, "name", *params.Name); 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) + } + } } - req.Header.Add("Zap-Trace-Span", headerParam0) } - req.Header.Add("Content-Type", contentType) + if params.StackID != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "stackID", *params.StackID); 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + return req, nil } -// NewPostSetupUserRequest calls the generic PostSetupUser builder with application/json body -func NewPostSetupUserRequest(server string, params *PostSetupUserParams, body PostSetupUserJSONRequestBody) (*http.Request, error) { +// NewCreateStackRequest calls the generic CreateStack builder with application/json body +func NewCreateStackRequest(server string, body CreateStackJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostSetupUserRequestWithBody(server, params, "application/json", bodyReader) + return NewCreateStackRequestWithBody(server, "application/json", bodyReader) } -// NewPostSetupUserRequestWithBody generates requests for PostSetupUser with any type of body -func NewPostSetupUserRequestWithBody(server string, params *PostSetupUserParams, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateStackRequestWithBody generates requests for CreateStack with any type of body +func NewCreateStackRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error queryURL, err := url.Parse(server) @@ -11396,7 +11060,7 @@ func NewPostSetupUserRequestWithBody(server string, params *PostSetupUserParams, return nil, err } - basePath := fmt.Sprintf("/setup/user") + basePath := fmt.Sprintf("/stacks") if basePath[0] == '/' { basePath = basePath[1:] } @@ -11411,31 +11075,27 @@ func NewPostSetupUserRequestWithBody(server string, params *PostSetupUserParams, 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 } -// NewPostSigninRequest generates requests for PostSignin -func NewPostSigninRequest(server string, params *PostSigninParams) (*http.Request, error) { +// NewDeleteStackRequest generates requests for DeleteStack +func NewDeleteStackRequest(server string, stackId string, params *DeleteStackParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "stack_id", stackId) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/signin") + basePath := fmt.Sprintf("/stacks/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11445,35 +11105,47 @@ func NewPostSigninRequest(server string, params *PostSigninParams) (*http.Reques return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParam("form", true, "orgID", params.OrgID); 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.ZapTraceSpan != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) - if err != nil { - return nil, err - } + queryURL.RawQuery = queryValues.Encode() - req.Header.Add("Zap-Trace-Span", headerParam0) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err } return req, nil } -// NewPostSignoutRequest generates requests for PostSignout -func NewPostSignoutRequest(server string, params *PostSignoutParams) (*http.Request, error) { +// NewReadStackRequest generates requests for ReadStack +func NewReadStackRequest(server string, stackId string) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "stack_id", stackId) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/signout") + basePath := fmt.Sprintf("/stacks/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11483,35 +11155,42 @@ func NewPostSignoutRequest(server string, params *PostSignoutParams) (*http.Requ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) 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 - } + return req, nil +} - req.Header.Add("Zap-Trace-Span", headerParam0) +// NewUpdateStackRequest calls the generic UpdateStack builder with application/json body +func NewUpdateStackRequest(server string, stackId string, body UpdateStackJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewUpdateStackRequestWithBody(server, stackId, "application/json", bodyReader) } -// NewGetSourcesRequest generates requests for GetSources -func NewGetSourcesRequest(server string, params *GetSourcesParams) (*http.Request, error) { +// NewUpdateStackRequestWithBody generates requests for UpdateStack with any type of body +func NewUpdateStackRequestWithBody(server string, stackId string, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "stack_id", stackId) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/sources") + basePath := fmt.Sprintf("/stacks/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11521,33 +11200,191 @@ func NewGetSourcesRequest(server string, params *GetSourcesParams) (*http.Reques return nil, err } - queryValues := queryURL.Query() + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } - if params.Org != nil { + req.Header.Add("Content-Type", contentType) + return req, nil +} - if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); 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) - } - } - } +// NewUninstallStackRequest generates requests for UninstallStack +func NewUninstallStackRequest(server string, stackId string) (*http.Request, error) { + var err error - } + var pathParam0 string - queryURL.RawQuery = queryValues.Encode() + pathParam0, err = runtime.StyleParam("simple", false, "stack_id", stackId) + if err != nil { + return nil, err + } - req, err := http.NewRequest("GET", queryURL.String(), nil) + queryURL, err := url.Parse(server) if err != nil { return nil, err } - if params.ZapTraceSpan != nil { - var headerParam0 string + basePath := fmt.Sprintf("/stacks/%s/uninstall", pathParam0) + if basePath[0] == '/' { + basePath = basePath[1:] + } + + queryURL, err = queryURL.Parse(basePath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTasksRequest generates requests for GetTasks +func NewGetTasksRequest(server string, params *GetTasksParams) (*http.Request, error) { + var err error + + queryURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + basePath := fmt.Sprintf("/tasks") + if basePath[0] == '/' { + basePath = basePath[1:] + } + + queryURL, err = queryURL.Parse(basePath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "name", *params.Name); 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.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.User != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "user", *params.User); 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 { + 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.OrgID != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); 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.Status != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "status", *params.Status); 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + 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 { @@ -11560,19 +11397,19 @@ func NewGetSourcesRequest(server string, params *GetSourcesParams) (*http.Reques return req, nil } -// NewPostSourcesRequest calls the generic PostSources builder with application/json body -func NewPostSourcesRequest(server string, params *PostSourcesParams, body PostSourcesJSONRequestBody) (*http.Request, error) { +// NewPostTasksRequest calls the generic PostTasks builder with application/json body +func NewPostTasksRequest(server string, params *PostTasksParams, body PostTasksJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostSourcesRequestWithBody(server, params, "application/json", bodyReader) + return NewPostTasksRequestWithBody(server, params, "application/json", bodyReader) } -// NewPostSourcesRequestWithBody generates requests for PostSources with any type of body -func NewPostSourcesRequestWithBody(server string, params *PostSourcesParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostTasksRequestWithBody generates requests for PostTasks with any type of body +func NewPostTasksRequestWithBody(server string, params *PostTasksParams, contentType string, body io.Reader) (*http.Request, error) { var err error queryURL, err := url.Parse(server) @@ -11580,7 +11417,7 @@ func NewPostSourcesRequestWithBody(server string, params *PostSourcesParams, con return nil, err } - basePath := fmt.Sprintf("/sources") + basePath := fmt.Sprintf("/tasks") if basePath[0] == '/' { basePath = basePath[1:] } @@ -11610,13 +11447,13 @@ func NewPostSourcesRequestWithBody(server string, params *PostSourcesParams, con return req, nil } -// NewDeleteSourcesIDRequest generates requests for DeleteSourcesID -func NewDeleteSourcesIDRequest(server string, sourceID string, params *DeleteSourcesIDParams) (*http.Request, error) { +// NewDeleteTasksIDRequest generates requests for DeleteTasksID +func NewDeleteTasksIDRequest(server string, taskID string, params *DeleteTasksIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) + pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) if err != nil { return nil, err } @@ -11626,7 +11463,7 @@ func NewDeleteSourcesIDRequest(server string, sourceID string, params *DeleteSou return nil, err } - basePath := fmt.Sprintf("/sources/%s", pathParam0) + basePath := fmt.Sprintf("/tasks/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11655,13 +11492,13 @@ func NewDeleteSourcesIDRequest(server string, sourceID string, params *DeleteSou return req, nil } -// NewGetSourcesIDRequest generates requests for GetSourcesID -func NewGetSourcesIDRequest(server string, sourceID string, params *GetSourcesIDParams) (*http.Request, error) { +// NewGetTasksIDRequest generates requests for GetTasksID +func NewGetTasksIDRequest(server string, taskID string, params *GetTasksIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) + pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) if err != nil { return nil, err } @@ -11671,7 +11508,7 @@ func NewGetSourcesIDRequest(server string, sourceID string, params *GetSourcesID return nil, err } - basePath := fmt.Sprintf("/sources/%s", pathParam0) + basePath := fmt.Sprintf("/tasks/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11700,24 +11537,24 @@ func NewGetSourcesIDRequest(server string, sourceID string, params *GetSourcesID return req, nil } -// NewPatchSourcesIDRequest calls the generic PatchSourcesID builder with application/json body -func NewPatchSourcesIDRequest(server string, sourceID string, params *PatchSourcesIDParams, body PatchSourcesIDJSONRequestBody) (*http.Request, error) { +// NewPatchTasksIDRequest calls the generic PatchTasksID builder with application/json body +func NewPatchTasksIDRequest(server string, taskID string, params *PatchTasksIDParams, body PatchTasksIDJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPatchSourcesIDRequestWithBody(server, sourceID, params, "application/json", bodyReader) + return NewPatchTasksIDRequestWithBody(server, taskID, params, "application/json", bodyReader) } -// NewPatchSourcesIDRequestWithBody generates requests for PatchSourcesID with any type of body -func NewPatchSourcesIDRequestWithBody(server string, sourceID string, params *PatchSourcesIDParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchTasksIDRequestWithBody generates requests for PatchTasksID with any type of body +func NewPatchTasksIDRequestWithBody(server string, taskID string, params *PatchTasksIDParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) + pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) if err != nil { return nil, err } @@ -11727,7 +11564,7 @@ func NewPatchSourcesIDRequestWithBody(server string, sourceID string, params *Pa return nil, err } - basePath := fmt.Sprintf("/sources/%s", pathParam0) + basePath := fmt.Sprintf("/tasks/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11757,13 +11594,13 @@ func NewPatchSourcesIDRequestWithBody(server string, sourceID string, params *Pa return req, nil } -// NewGetSourcesIDBucketsRequest generates requests for GetSourcesIDBuckets -func NewGetSourcesIDBucketsRequest(server string, sourceID string, params *GetSourcesIDBucketsParams) (*http.Request, error) { +// NewGetTasksIDLabelsRequest generates requests for GetTasksIDLabels +func NewGetTasksIDLabelsRequest(server string, taskID string, params *GetTasksIDLabelsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) + pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) if err != nil { return nil, err } @@ -11773,7 +11610,7 @@ func NewGetSourcesIDBucketsRequest(server string, sourceID string, params *GetSo return nil, err } - basePath := fmt.Sprintf("/sources/%s/buckets", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/labels", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11783,26 +11620,6 @@ func NewGetSourcesIDBucketsRequest(server string, sourceID string, params *GetSo return nil, err } - queryValues := queryURL.Query() - - if params.Org != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); 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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -11822,13 +11639,24 @@ func NewGetSourcesIDBucketsRequest(server string, sourceID string, params *GetSo return req, nil } -// NewGetSourcesIDHealthRequest generates requests for GetSourcesIDHealth -func NewGetSourcesIDHealthRequest(server string, sourceID string, params *GetSourcesIDHealthParams) (*http.Request, error) { +// NewPostTasksIDLabelsRequest calls the generic PostTasksIDLabels builder with application/json body +func NewPostTasksIDLabelsRequest(server string, taskID string, params *PostTasksIDLabelsParams, body PostTasksIDLabelsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostTasksIDLabelsRequestWithBody(server, taskID, params, "application/json", bodyReader) +} + +// NewPostTasksIDLabelsRequestWithBody generates requests for PostTasksIDLabels with any type of body +func NewPostTasksIDLabelsRequestWithBody(server string, taskID string, params *PostTasksIDLabelsParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "sourceID", sourceID) + pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) if err != nil { return nil, err } @@ -11838,7 +11666,7 @@ func NewGetSourcesIDHealthRequest(server string, sourceID string, params *GetSou return nil, err } - basePath := fmt.Sprintf("/sources/%s/health", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/labels", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -11848,7 +11676,7 @@ func NewGetSourcesIDHealthRequest(server string, sourceID string, params *GetSou return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -11864,145 +11692,44 @@ func NewGetSourcesIDHealthRequest(server string, sourceID string, params *GetSou req.Header.Add("Zap-Trace-Span", headerParam0) } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetTasksRequest generates requests for GetTasks -func NewGetTasksRequest(server string, params *GetTasksParams) (*http.Request, error) { +// NewDeleteTasksIDLabelsIDRequest generates requests for DeleteTasksIDLabelsID +func NewDeleteTasksIDLabelsIDRequest(server string, taskID string, labelID string, params *DeleteTasksIDLabelsIDParams) (*http.Request, error) { var err error - queryURL, err := url.Parse(server) + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) if err != nil { return nil, err } - basePath := fmt.Sprintf("/tasks") - if basePath[0] == '/' { - basePath = basePath[1:] - } + var pathParam1 string - queryURL, err = queryURL.Parse(basePath) + pathParam1, err = runtime.StyleParam("simple", false, "labelID", labelID) if err != nil { return nil, err } - queryValues := queryURL.Query() - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "name", *params.Name); 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.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.User != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "user", *params.User); 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 { - 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.OrgID != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); 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) - } - } - } - + queryURL, err := url.Parse(server) + if err != nil { + return nil, err } - if params.Status != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "status", *params.Status); 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) - } - } - } - + basePath := fmt.Sprintf("/tasks/%s/labels/%s", pathParam0, pathParam1) + if basePath[0] == '/' { + basePath = basePath[1:] } - 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) - } - } - } - + queryURL, err = queryURL.Parse(basePath) + if err != nil { + return nil, err } - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -12021,27 +11748,23 @@ func NewGetTasksRequest(server string, params *GetTasksParams) (*http.Request, e return req, nil } -// NewPostTasksRequest calls the generic PostTasks builder with application/json body -func NewPostTasksRequest(server string, params *PostTasksParams, body PostTasksJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewGetTasksIDLogsRequest generates requests for GetTasksIDLogs +func NewGetTasksIDLogsRequest(server string, taskID string, params *GetTasksIDLogsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostTasksRequestWithBody(server, params, "application/json", bodyReader) -} - -// NewPostTasksRequestWithBody generates requests for PostTasks with any type of body -func NewPostTasksRequestWithBody(server string, params *PostTasksParams, contentType string, body io.Reader) (*http.Request, error) { - var err error queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/tasks") + basePath := fmt.Sprintf("/tasks/%s/logs", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12051,7 +11774,7 @@ func NewPostTasksRequestWithBody(server string, params *PostTasksParams, content return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12067,12 +11790,11 @@ func NewPostTasksRequestWithBody(server string, params *PostTasksParams, content req.Header.Add("Zap-Trace-Span", headerParam0) } - req.Header.Add("Content-Type", contentType) return req, nil } -// NewDeleteTasksIDRequest generates requests for DeleteTasksID -func NewDeleteTasksIDRequest(server string, taskID string, params *DeleteTasksIDParams) (*http.Request, error) { +// NewGetTasksIDMembersRequest generates requests for GetTasksIDMembers +func NewGetTasksIDMembersRequest(server string, taskID string, params *GetTasksIDMembersParams) (*http.Request, error) { var err error var pathParam0 string @@ -12087,7 +11809,7 @@ func NewDeleteTasksIDRequest(server string, taskID string, params *DeleteTasksID return nil, err } - basePath := fmt.Sprintf("/tasks/%s", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/members", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12097,7 +11819,7 @@ func NewDeleteTasksIDRequest(server string, taskID string, params *DeleteTasksID return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12116,8 +11838,19 @@ func NewDeleteTasksIDRequest(server string, taskID string, params *DeleteTasksID return req, nil } -// NewGetTasksIDRequest generates requests for GetTasksID -func NewGetTasksIDRequest(server string, taskID string, params *GetTasksIDParams) (*http.Request, error) { +// NewPostTasksIDMembersRequest calls the generic PostTasksIDMembers builder with application/json body +func NewPostTasksIDMembersRequest(server string, taskID string, params *PostTasksIDMembersParams, body PostTasksIDMembersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostTasksIDMembersRequestWithBody(server, taskID, params, "application/json", bodyReader) +} + +// NewPostTasksIDMembersRequestWithBody generates requests for PostTasksIDMembers with any type of body +func NewPostTasksIDMembersRequestWithBody(server string, taskID string, params *PostTasksIDMembersParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12132,7 +11865,7 @@ func NewGetTasksIDRequest(server string, taskID string, params *GetTasksIDParams return nil, err } - basePath := fmt.Sprintf("/tasks/%s", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/members", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12142,7 +11875,7 @@ func NewGetTasksIDRequest(server string, taskID string, params *GetTasksIDParams return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -12158,22 +11891,12 @@ func NewGetTasksIDRequest(server string, taskID string, params *GetTasksIDParams req.Header.Add("Zap-Trace-Span", headerParam0) } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewPatchTasksIDRequest calls the generic PatchTasksID builder with application/json body -func NewPatchTasksIDRequest(server string, taskID string, params *PatchTasksIDParams, body PatchTasksIDJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchTasksIDRequestWithBody(server, taskID, params, "application/json", bodyReader) -} - -// NewPatchTasksIDRequestWithBody generates requests for PatchTasksID with any type of body -func NewPatchTasksIDRequestWithBody(server string, taskID string, params *PatchTasksIDParams, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteTasksIDMembersIDRequest generates requests for DeleteTasksIDMembersID +func NewDeleteTasksIDMembersIDRequest(server string, taskID string, userID string, params *DeleteTasksIDMembersIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -12183,12 +11906,19 @@ func NewPatchTasksIDRequestWithBody(server string, taskID string, params *PatchT return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/tasks/%s", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/members/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12198,7 +11928,7 @@ func NewPatchTasksIDRequestWithBody(server string, taskID string, params *PatchT return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -12214,12 +11944,11 @@ func NewPatchTasksIDRequestWithBody(server string, taskID string, params *PatchT req.Header.Add("Zap-Trace-Span", headerParam0) } - req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetTasksIDLabelsRequest generates requests for GetTasksIDLabels -func NewGetTasksIDLabelsRequest(server string, taskID string, params *GetTasksIDLabelsParams) (*http.Request, error) { +// NewGetTasksIDOwnersRequest generates requests for GetTasksIDOwners +func NewGetTasksIDOwnersRequest(server string, taskID string, params *GetTasksIDOwnersParams) (*http.Request, error) { var err error var pathParam0 string @@ -12234,7 +11963,7 @@ func NewGetTasksIDLabelsRequest(server string, taskID string, params *GetTasksID return nil, err } - basePath := fmt.Sprintf("/tasks/%s/labels", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/owners", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12263,19 +11992,19 @@ func NewGetTasksIDLabelsRequest(server string, taskID string, params *GetTasksID return req, nil } -// NewPostTasksIDLabelsRequest calls the generic PostTasksIDLabels builder with application/json body -func NewPostTasksIDLabelsRequest(server string, taskID string, params *PostTasksIDLabelsParams, body PostTasksIDLabelsJSONRequestBody) (*http.Request, error) { +// NewPostTasksIDOwnersRequest calls the generic PostTasksIDOwners builder with application/json body +func NewPostTasksIDOwnersRequest(server string, taskID string, params *PostTasksIDOwnersParams, body PostTasksIDOwnersJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostTasksIDLabelsRequestWithBody(server, taskID, params, "application/json", bodyReader) + return NewPostTasksIDOwnersRequestWithBody(server, taskID, params, "application/json", bodyReader) } -// NewPostTasksIDLabelsRequestWithBody generates requests for PostTasksIDLabels with any type of body -func NewPostTasksIDLabelsRequestWithBody(server string, taskID string, params *PostTasksIDLabelsParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostTasksIDOwnersRequestWithBody generates requests for PostTasksIDOwners with any type of body +func NewPostTasksIDOwnersRequestWithBody(server string, taskID string, params *PostTasksIDOwnersParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12290,7 +12019,7 @@ func NewPostTasksIDLabelsRequestWithBody(server string, taskID string, params *P return nil, err } - basePath := fmt.Sprintf("/tasks/%s/labels", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/owners", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12320,8 +12049,8 @@ func NewPostTasksIDLabelsRequestWithBody(server string, taskID string, params *P return req, nil } -// NewDeleteTasksIDLabelsIDRequest generates requests for DeleteTasksIDLabelsID -func NewDeleteTasksIDLabelsIDRequest(server string, taskID string, labelID string, params *DeleteTasksIDLabelsIDParams) (*http.Request, error) { +// NewDeleteTasksIDOwnersIDRequest generates requests for DeleteTasksIDOwnersID +func NewDeleteTasksIDOwnersIDRequest(server string, taskID string, userID string, params *DeleteTasksIDOwnersIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -12333,7 +12062,7 @@ func NewDeleteTasksIDLabelsIDRequest(server string, taskID string, labelID strin var pathParam1 string - pathParam1, err = runtime.StyleParam("simple", false, "labelID", labelID) + pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) if err != nil { return nil, err } @@ -12343,7 +12072,7 @@ func NewDeleteTasksIDLabelsIDRequest(server string, taskID string, labelID strin return nil, err } - basePath := fmt.Sprintf("/tasks/%s/labels/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/tasks/%s/owners/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12372,8 +12101,8 @@ func NewDeleteTasksIDLabelsIDRequest(server string, taskID string, labelID strin return req, nil } -// NewGetTasksIDLogsRequest generates requests for GetTasksIDLogs -func NewGetTasksIDLogsRequest(server string, taskID string, params *GetTasksIDLogsParams) (*http.Request, error) { +// NewGetTasksIDRunsRequest generates requests for GetTasksIDRuns +func NewGetTasksIDRunsRequest(server string, taskID string, params *GetTasksIDRunsParams) (*http.Request, error) { var err error var pathParam0 string @@ -12388,7 +12117,7 @@ func NewGetTasksIDLogsRequest(server string, taskID string, params *GetTasksIDLo return nil, err } - basePath := fmt.Sprintf("/tasks/%s/logs", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/runs", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12398,51 +12127,74 @@ func NewGetTasksIDLogsRequest(server string, taskID string, params *GetTasksIDLo return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + queryValues := queryURL.Query() - if params.ZapTraceSpan != nil { - var headerParam0 string + if params.After != nil { - headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) - if err != nil { + if queryFrag, err := runtime.StyleParam("form", true, "after", *params.After); err != nil { return nil, err - } - - req.Header.Add("Zap-Trace-Span", headerParam0) - } + } 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) + } + } + } - return req, nil -} + } -// NewGetTasksIDMembersRequest generates requests for GetTasksIDMembers -func NewGetTasksIDMembersRequest(server string, taskID string, params *GetTasksIDMembersParams) (*http.Request, error) { - var err error + if params.Limit != nil { - var pathParam0 string + 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) + } + } + } - pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) - if err != nil { - return nil, err } - queryURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if params.AfterTime != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "afterTime", *params.AfterTime); 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) + } + } + } - basePath := fmt.Sprintf("/tasks/%s/members", pathParam0) - if basePath[0] == '/' { - basePath = basePath[1:] } - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err + if params.BeforeTime != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "beforeTime", *params.BeforeTime); 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) + } + } + } + } + queryURL.RawQuery = queryValues.Encode() + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -12462,19 +12214,19 @@ func NewGetTasksIDMembersRequest(server string, taskID string, params *GetTasksI return req, nil } -// NewPostTasksIDMembersRequest calls the generic PostTasksIDMembers builder with application/json body -func NewPostTasksIDMembersRequest(server string, taskID string, params *PostTasksIDMembersParams, body PostTasksIDMembersJSONRequestBody) (*http.Request, error) { +// NewPostTasksIDRunsRequest calls the generic PostTasksIDRuns builder with application/json body +func NewPostTasksIDRunsRequest(server string, taskID string, params *PostTasksIDRunsParams, body PostTasksIDRunsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostTasksIDMembersRequestWithBody(server, taskID, params, "application/json", bodyReader) + return NewPostTasksIDRunsRequestWithBody(server, taskID, params, "application/json", bodyReader) } -// NewPostTasksIDMembersRequestWithBody generates requests for PostTasksIDMembers with any type of body -func NewPostTasksIDMembersRequestWithBody(server string, taskID string, params *PostTasksIDMembersParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostTasksIDRunsRequestWithBody generates requests for PostTasksIDRuns with any type of body +func NewPostTasksIDRunsRequestWithBody(server string, taskID string, params *PostTasksIDRunsParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12489,7 +12241,7 @@ func NewPostTasksIDMembersRequestWithBody(server string, taskID string, params * return nil, err } - basePath := fmt.Sprintf("/tasks/%s/members", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/runs", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12519,8 +12271,8 @@ func NewPostTasksIDMembersRequestWithBody(server string, taskID string, params * return req, nil } -// NewDeleteTasksIDMembersIDRequest generates requests for DeleteTasksIDMembersID -func NewDeleteTasksIDMembersIDRequest(server string, taskID string, userID string, params *DeleteTasksIDMembersIDParams) (*http.Request, error) { +// NewDeleteTasksIDRunsIDRequest generates requests for DeleteTasksIDRunsID +func NewDeleteTasksIDRunsIDRequest(server string, taskID string, runID string, params *DeleteTasksIDRunsIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -12532,7 +12284,7 @@ func NewDeleteTasksIDMembersIDRequest(server string, taskID string, userID strin var pathParam1 string - pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) + pathParam1, err = runtime.StyleParam("simple", false, "runID", runID) if err != nil { return nil, err } @@ -12542,7 +12294,7 @@ func NewDeleteTasksIDMembersIDRequest(server string, taskID string, userID strin return nil, err } - basePath := fmt.Sprintf("/tasks/%s/members/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/tasks/%s/runs/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12571,8 +12323,8 @@ func NewDeleteTasksIDMembersIDRequest(server string, taskID string, userID strin return req, nil } -// NewGetTasksIDOwnersRequest generates requests for GetTasksIDOwners -func NewGetTasksIDOwnersRequest(server string, taskID string, params *GetTasksIDOwnersParams) (*http.Request, error) { +// NewGetTasksIDRunsIDRequest generates requests for GetTasksIDRunsID +func NewGetTasksIDRunsIDRequest(server string, taskID string, runID string, params *GetTasksIDRunsIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -12582,12 +12334,19 @@ func NewGetTasksIDOwnersRequest(server string, taskID string, params *GetTasksID return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParam("simple", false, "runID", runID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/tasks/%s/owners", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/runs/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12616,19 +12375,8 @@ func NewGetTasksIDOwnersRequest(server string, taskID string, params *GetTasksID return req, nil } -// NewPostTasksIDOwnersRequest calls the generic PostTasksIDOwners builder with application/json body -func NewPostTasksIDOwnersRequest(server string, taskID string, params *PostTasksIDOwnersParams, body PostTasksIDOwnersJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostTasksIDOwnersRequestWithBody(server, taskID, params, "application/json", bodyReader) -} - -// NewPostTasksIDOwnersRequestWithBody generates requests for PostTasksIDOwners with any type of body -func NewPostTasksIDOwnersRequestWithBody(server string, taskID string, params *PostTasksIDOwnersParams, contentType string, body io.Reader) (*http.Request, error) { +// NewGetTasksIDRunsIDLogsRequest generates requests for GetTasksIDRunsIDLogs +func NewGetTasksIDRunsIDLogsRequest(server string, taskID string, runID string, params *GetTasksIDRunsIDLogsParams) (*http.Request, error) { var err error var pathParam0 string @@ -12638,12 +12386,19 @@ func NewPostTasksIDOwnersRequestWithBody(server string, taskID string, params *P return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParam("simple", false, "runID", runID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/tasks/%s/owners", pathParam0) + basePath := fmt.Sprintf("/tasks/%s/runs/%s/logs", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12653,7 +12408,7 @@ func NewPostTasksIDOwnersRequestWithBody(server string, taskID string, params *P return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12669,12 +12424,11 @@ func NewPostTasksIDOwnersRequestWithBody(server string, taskID string, params *P req.Header.Add("Zap-Trace-Span", headerParam0) } - req.Header.Add("Content-Type", contentType) return req, nil } -// NewDeleteTasksIDOwnersIDRequest generates requests for DeleteTasksIDOwnersID -func NewDeleteTasksIDOwnersIDRequest(server string, taskID string, userID string, params *DeleteTasksIDOwnersIDParams) (*http.Request, error) { +// NewPostTasksIDRunsIDRetryRequest generates requests for PostTasksIDRunsIDRetry +func NewPostTasksIDRunsIDRetryRequest(server string, taskID string, runID string, params *PostTasksIDRunsIDRetryParams) (*http.Request, error) { var err error var pathParam0 string @@ -12686,7 +12440,7 @@ func NewDeleteTasksIDOwnersIDRequest(server string, taskID string, userID string var pathParam1 string - pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) + pathParam1, err = runtime.StyleParam("simple", false, "runID", runID) if err != nil { return nil, err } @@ -12696,7 +12450,7 @@ func NewDeleteTasksIDOwnersIDRequest(server string, taskID string, userID string return nil, err } - basePath := fmt.Sprintf("/tasks/%s/owners/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/tasks/%s/runs/%s/retry", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12706,7 +12460,7 @@ func NewDeleteTasksIDOwnersIDRequest(server string, taskID string, userID string return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -12725,23 +12479,16 @@ func NewDeleteTasksIDOwnersIDRequest(server string, taskID string, userID string return req, nil } -// NewGetTasksIDRunsRequest generates requests for GetTasksIDRuns -func NewGetTasksIDRunsRequest(server string, taskID string, params *GetTasksIDRunsParams) (*http.Request, error) { +// NewGetTelegrafPluginsRequest generates requests for GetTelegrafPlugins +func NewGetTelegrafPluginsRequest(server string, params *GetTelegrafPluginsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/tasks/%s/runs", pathParam0) + basePath := fmt.Sprintf("/telegraf/plugins") if basePath[0] == '/' { basePath = basePath[1:] } @@ -12753,9 +12500,9 @@ func NewGetTasksIDRunsRequest(server string, taskID string, params *GetTasksIDRu queryValues := queryURL.Query() - if params.After != nil { + if params.Type != nil { - if queryFrag, err := runtime.StyleParam("form", true, "after", *params.After); err != nil { + if queryFrag, err := runtime.StyleParam("form", true, "type", *params.Type); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12769,41 +12516,51 @@ func NewGetTasksIDRunsRequest(server string, taskID string, params *GetTasksIDRu } - if params.Limit != nil { + queryURL.RawQuery = queryValues.Encode() - if queryFrag, err := runtime.StyleParam("form", true, "limit", *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + req, err := http.NewRequest("GET", queryURL.String(), nil) + 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 - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } } + req.Header.Add("Zap-Trace-Span", headerParam0) } - if params.AfterTime != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParam("form", true, "afterTime", *params.AfterTime); 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) - } - } - } +// NewGetTelegrafsRequest generates requests for GetTelegrafs +func NewGetTelegrafsRequest(server string, params *GetTelegrafsParams) (*http.Request, error) { + var err error + queryURL, err := url.Parse(server) + if err != nil { + return nil, err } - if params.BeforeTime != nil { + basePath := fmt.Sprintf("/telegrafs") + if basePath[0] == '/' { + basePath = basePath[1:] + } - if queryFrag, err := runtime.StyleParam("form", true, "beforeTime", *params.BeforeTime); err != nil { + queryURL, err = queryURL.Parse(basePath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.OrgID != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12838,34 +12595,27 @@ func NewGetTasksIDRunsRequest(server string, taskID string, params *GetTasksIDRu return req, nil } -// NewPostTasksIDRunsRequest calls the generic PostTasksIDRuns builder with application/json body -func NewPostTasksIDRunsRequest(server string, taskID string, params *PostTasksIDRunsParams, body PostTasksIDRunsJSONRequestBody) (*http.Request, error) { +// NewPostTelegrafsRequest calls the generic PostTelegrafs builder with application/json body +func NewPostTelegrafsRequest(server string, params *PostTelegrafsParams, body PostTelegrafsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostTasksIDRunsRequestWithBody(server, taskID, params, "application/json", bodyReader) + return NewPostTelegrafsRequestWithBody(server, params, "application/json", bodyReader) } -// NewPostTasksIDRunsRequestWithBody generates requests for PostTasksIDRuns with any type of body -func NewPostTasksIDRunsRequestWithBody(server string, taskID string, params *PostTasksIDRunsParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostTelegrafsRequestWithBody generates requests for PostTelegrafs with any type of body +func NewPostTelegrafsRequestWithBody(server string, params *PostTelegrafsParams, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/tasks/%s/runs", pathParam0) + basePath := fmt.Sprintf("/telegrafs") if basePath[0] == '/' { basePath = basePath[1:] } @@ -12895,20 +12645,13 @@ func NewPostTasksIDRunsRequestWithBody(server string, taskID string, params *Pos return req, nil } -// NewDeleteTasksIDRunsIDRequest generates requests for DeleteTasksIDRunsID -func NewDeleteTasksIDRunsIDRequest(server string, taskID string, runID string, params *DeleteTasksIDRunsIDParams) (*http.Request, error) { +// NewDeleteTelegrafsIDRequest generates requests for DeleteTelegrafsID +func NewDeleteTelegrafsIDRequest(server string, telegrafID string, params *DeleteTelegrafsIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParam("simple", false, "runID", runID) + pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) if err != nil { return nil, err } @@ -12918,7 +12661,7 @@ func NewDeleteTasksIDRunsIDRequest(server string, taskID string, runID string, p return nil, err } - basePath := fmt.Sprintf("/tasks/%s/runs/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/telegrafs/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12947,20 +12690,13 @@ func NewDeleteTasksIDRunsIDRequest(server string, taskID string, runID string, p return req, nil } -// NewGetTasksIDRunsIDRequest generates requests for GetTasksIDRunsID -func NewGetTasksIDRunsIDRequest(server string, taskID string, runID string, params *GetTasksIDRunsIDParams) (*http.Request, error) { +// NewGetTelegrafsIDRequest generates requests for GetTelegrafsID +func NewGetTelegrafsIDRequest(server string, telegrafID string, params *GetTelegrafsIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParam("simple", false, "runID", runID) + pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) if err != nil { return nil, err } @@ -12970,7 +12706,7 @@ func NewGetTasksIDRunsIDRequest(server string, taskID string, runID string, para return nil, err } - basePath := fmt.Sprintf("/tasks/%s/runs/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/telegrafs/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -12996,23 +12732,38 @@ func NewGetTasksIDRunsIDRequest(server string, taskID string, runID string, para req.Header.Add("Zap-Trace-Span", headerParam0) } - return req, nil -} + if params.Accept != nil { + var headerParam1 string -// NewGetTasksIDRunsIDLogsRequest generates requests for GetTasksIDRunsIDLogs -func NewGetTasksIDRunsIDLogsRequest(server string, taskID string, runID string, params *GetTasksIDRunsIDLogsParams) (*http.Request, error) { - var err error + headerParam1, err = runtime.StyleParam("simple", false, "Accept", *params.Accept) + if err != nil { + return nil, err + } - var pathParam0 string + req.Header.Add("Accept", headerParam1) + } - pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) + return req, nil +} + +// NewPutTelegrafsIDRequest calls the generic PutTelegrafsID builder with application/json body +func NewPutTelegrafsIDRequest(server string, telegrafID string, params *PutTelegrafsIDParams, body PutTelegrafsIDJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewPutTelegrafsIDRequestWithBody(server, telegrafID, params, "application/json", bodyReader) +} - var pathParam1 string +// NewPutTelegrafsIDRequestWithBody generates requests for PutTelegrafsID with any type of body +func NewPutTelegrafsIDRequestWithBody(server string, telegrafID string, params *PutTelegrafsIDParams, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParam("simple", false, "runID", runID) + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) if err != nil { return nil, err } @@ -13022,7 +12773,7 @@ func NewGetTasksIDRunsIDLogsRequest(server string, taskID string, runID string, return nil, err } - basePath := fmt.Sprintf("/tasks/%s/runs/%s/logs", pathParam0, pathParam1) + basePath := fmt.Sprintf("/telegrafs/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13032,7 +12783,7 @@ func NewGetTasksIDRunsIDLogsRequest(server string, taskID string, runID string, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -13048,23 +12799,17 @@ func NewGetTasksIDRunsIDLogsRequest(server string, taskID string, runID string, req.Header.Add("Zap-Trace-Span", headerParam0) } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewPostTasksIDRunsIDRetryRequest generates requests for PostTasksIDRunsIDRetry -func NewPostTasksIDRunsIDRetryRequest(server string, taskID string, runID string, params *PostTasksIDRunsIDRetryParams) (*http.Request, error) { +// NewGetTelegrafsIDLabelsRequest generates requests for GetTelegrafsIDLabels +func NewGetTelegrafsIDLabelsRequest(server string, telegrafID string, params *GetTelegrafsIDLabelsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "taskID", taskID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParam("simple", false, "runID", runID) + pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) if err != nil { return nil, err } @@ -13074,7 +12819,7 @@ func NewPostTasksIDRunsIDRetryRequest(server string, taskID string, runID string return nil, err } - basePath := fmt.Sprintf("/tasks/%s/runs/%s/retry", pathParam0, pathParam1) + basePath := fmt.Sprintf("/telegrafs/%s/labels", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13084,7 +12829,7 @@ func NewPostTasksIDRunsIDRetryRequest(server string, taskID string, runID string return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -13103,16 +12848,34 @@ func NewPostTasksIDRunsIDRetryRequest(server string, taskID string, runID string return req, nil } -// NewGetTelegrafPluginsRequest generates requests for GetTelegrafPlugins -func NewGetTelegrafPluginsRequest(server string, params *GetTelegrafPluginsParams) (*http.Request, error) { +// NewPostTelegrafsIDLabelsRequest calls the generic PostTelegrafsIDLabels builder with application/json body +func NewPostTelegrafsIDLabelsRequest(server string, telegrafID string, params *PostTelegrafsIDLabelsParams, body PostTelegrafsIDLabelsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostTelegrafsIDLabelsRequestWithBody(server, telegrafID, params, "application/json", bodyReader) +} + +// NewPostTelegrafsIDLabelsRequestWithBody generates requests for PostTelegrafsIDLabels with any type of body +func NewPostTelegrafsIDLabelsRequestWithBody(server string, telegrafID string, params *PostTelegrafsIDLabelsParams, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/telegraf/plugins") + basePath := fmt.Sprintf("/telegrafs/%s/labels", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13122,27 +12885,7 @@ func NewGetTelegrafPluginsRequest(server string, params *GetTelegrafPluginsParam return nil, err } - queryValues := queryURL.Query() - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "type", *params.Type); 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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -13158,19 +12901,34 @@ func NewGetTelegrafPluginsRequest(server string, params *GetTelegrafPluginsParam req.Header.Add("Zap-Trace-Span", headerParam0) } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetTelegrafsRequest generates requests for GetTelegrafs -func NewGetTelegrafsRequest(server string, params *GetTelegrafsParams) (*http.Request, error) { +// NewDeleteTelegrafsIDLabelsIDRequest generates requests for DeleteTelegrafsIDLabelsID +func NewDeleteTelegrafsIDLabelsIDRequest(server string, telegrafID string, labelID string, params *DeleteTelegrafsIDLabelsIDParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) + 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("/telegrafs") + basePath := fmt.Sprintf("/telegrafs/%s/labels/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13180,25 +12938,50 @@ func NewGetTelegrafsRequest(server string, params *GetTelegrafsParams) (*http.Re return nil, err } - queryValues := queryURL.Query() + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.OrgID != nil { + if params.ZapTraceSpan != nil { + var headerParam0 string - if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) + if err != nil { return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } } + req.Header.Add("Zap-Trace-Span", headerParam0) } - queryURL.RawQuery = queryValues.Encode() + return req, nil +} + +// NewGetTelegrafsIDMembersRequest generates requests for GetTelegrafsIDMembers +func NewGetTelegrafsIDMembersRequest(server string, telegrafID string, params *GetTelegrafsIDMembersParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) + if err != nil { + return nil, err + } + + queryURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + basePath := fmt.Sprintf("/telegrafs/%s/members", pathParam0) + if basePath[0] == '/' { + basePath = basePath[1:] + } + + queryURL, err = queryURL.Parse(basePath) + if err != nil { + return nil, err + } req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { @@ -13219,27 +13002,34 @@ func NewGetTelegrafsRequest(server string, params *GetTelegrafsParams) (*http.Re return req, nil } -// NewPostTelegrafsRequest calls the generic PostTelegrafs builder with application/json body -func NewPostTelegrafsRequest(server string, params *PostTelegrafsParams, body PostTelegrafsJSONRequestBody) (*http.Request, error) { +// NewPostTelegrafsIDMembersRequest calls the generic PostTelegrafsIDMembers builder with application/json body +func NewPostTelegrafsIDMembersRequest(server string, telegrafID string, params *PostTelegrafsIDMembersParams, body PostTelegrafsIDMembersJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostTelegrafsRequestWithBody(server, params, "application/json", bodyReader) + return NewPostTelegrafsIDMembersRequestWithBody(server, telegrafID, params, "application/json", bodyReader) } -// NewPostTelegrafsRequestWithBody generates requests for PostTelegrafs with any type of body -func NewPostTelegrafsRequestWithBody(server string, params *PostTelegrafsParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostTelegrafsIDMembersRequestWithBody generates requests for PostTelegrafsIDMembers with any type of body +func NewPostTelegrafsIDMembersRequestWithBody(server string, telegrafID string, params *PostTelegrafsIDMembersParams, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/telegrafs") + basePath := fmt.Sprintf("/telegrafs/%s/members", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13269,8 +13059,8 @@ func NewPostTelegrafsRequestWithBody(server string, params *PostTelegrafsParams, return req, nil } -// NewDeleteTelegrafsIDRequest generates requests for DeleteTelegrafsID -func NewDeleteTelegrafsIDRequest(server string, telegrafID string, params *DeleteTelegrafsIDParams) (*http.Request, error) { +// NewDeleteTelegrafsIDMembersIDRequest generates requests for DeleteTelegrafsIDMembersID +func NewDeleteTelegrafsIDMembersIDRequest(server string, telegrafID string, userID string, params *DeleteTelegrafsIDMembersIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -13280,12 +13070,19 @@ func NewDeleteTelegrafsIDRequest(server string, telegrafID string, params *Delet return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s", pathParam0) + basePath := fmt.Sprintf("/telegrafs/%s/members/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13314,8 +13111,8 @@ func NewDeleteTelegrafsIDRequest(server string, telegrafID string, params *Delet return req, nil } -// NewGetTelegrafsIDRequest generates requests for GetTelegrafsID -func NewGetTelegrafsIDRequest(server string, telegrafID string, params *GetTelegrafsIDParams) (*http.Request, error) { +// NewGetTelegrafsIDOwnersRequest generates requests for GetTelegrafsIDOwners +func NewGetTelegrafsIDOwnersRequest(server string, telegrafID string, params *GetTelegrafsIDOwnersParams) (*http.Request, error) { var err error var pathParam0 string @@ -13330,7 +13127,7 @@ func NewGetTelegrafsIDRequest(server string, telegrafID string, params *GetTeleg return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s", pathParam0) + basePath := fmt.Sprintf("/telegrafs/%s/owners", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13356,33 +13153,22 @@ func NewGetTelegrafsIDRequest(server string, telegrafID string, params *GetTeleg req.Header.Add("Zap-Trace-Span", headerParam0) } - if params.Accept != nil { - var headerParam1 string - - headerParam1, err = runtime.StyleParam("simple", false, "Accept", *params.Accept) - if err != nil { - return nil, err - } - - req.Header.Add("Accept", headerParam1) - } - return req, nil } -// NewPutTelegrafsIDRequest calls the generic PutTelegrafsID builder with application/json body -func NewPutTelegrafsIDRequest(server string, telegrafID string, params *PutTelegrafsIDParams, body PutTelegrafsIDJSONRequestBody) (*http.Request, error) { +// NewPostTelegrafsIDOwnersRequest calls the generic PostTelegrafsIDOwners builder with application/json body +func NewPostTelegrafsIDOwnersRequest(server string, telegrafID string, params *PostTelegrafsIDOwnersParams, body PostTelegrafsIDOwnersJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPutTelegrafsIDRequestWithBody(server, telegrafID, params, "application/json", bodyReader) + return NewPostTelegrafsIDOwnersRequestWithBody(server, telegrafID, params, "application/json", bodyReader) } -// NewPutTelegrafsIDRequestWithBody generates requests for PutTelegrafsID with any type of body -func NewPutTelegrafsIDRequestWithBody(server string, telegrafID string, params *PutTelegrafsIDParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostTelegrafsIDOwnersRequestWithBody generates requests for PostTelegrafsIDOwners with any type of body +func NewPostTelegrafsIDOwnersRequestWithBody(server string, telegrafID string, params *PostTelegrafsIDOwnersParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -13397,7 +13183,7 @@ func NewPutTelegrafsIDRequestWithBody(server string, telegrafID string, params * return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s", pathParam0) + basePath := fmt.Sprintf("/telegrafs/%s/owners", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13407,7 +13193,7 @@ func NewPutTelegrafsIDRequestWithBody(server string, telegrafID string, params * return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -13427,8 +13213,8 @@ func NewPutTelegrafsIDRequestWithBody(server string, telegrafID string, params * return req, nil } -// NewGetTelegrafsIDLabelsRequest generates requests for GetTelegrafsIDLabels -func NewGetTelegrafsIDLabelsRequest(server string, telegrafID string, params *GetTelegrafsIDLabelsParams) (*http.Request, error) { +// NewDeleteTelegrafsIDOwnersIDRequest generates requests for DeleteTelegrafsIDOwnersID +func NewDeleteTelegrafsIDOwnersIDRequest(server string, telegrafID string, userID string, params *DeleteTelegrafsIDOwnersIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -13438,12 +13224,19 @@ func NewGetTelegrafsIDLabelsRequest(server string, telegrafID string, params *Ge return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s/labels", pathParam0) + basePath := fmt.Sprintf("/telegrafs/%s/owners/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13453,7 +13246,7 @@ func NewGetTelegrafsIDLabelsRequest(server string, telegrafID string, params *Ge return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -13472,34 +13265,27 @@ func NewGetTelegrafsIDLabelsRequest(server string, telegrafID string, params *Ge return req, nil } -// NewPostTelegrafsIDLabelsRequest calls the generic PostTelegrafsIDLabels builder with application/json body -func NewPostTelegrafsIDLabelsRequest(server string, telegrafID string, params *PostTelegrafsIDLabelsParams, body PostTelegrafsIDLabelsJSONRequestBody) (*http.Request, error) { +// NewApplyTemplateRequest calls the generic ApplyTemplate builder with application/json body +func NewApplyTemplateRequest(server string, body ApplyTemplateJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostTelegrafsIDLabelsRequestWithBody(server, telegrafID, params, "application/json", bodyReader) + return NewApplyTemplateRequestWithBody(server, "application/json", bodyReader) } -// NewPostTelegrafsIDLabelsRequestWithBody generates requests for PostTelegrafsIDLabels with any type of body -func NewPostTelegrafsIDLabelsRequestWithBody(server string, telegrafID string, params *PostTelegrafsIDLabelsParams, contentType string, body io.Reader) (*http.Request, error) { +// NewApplyTemplateRequestWithBody generates requests for ApplyTemplate with any type of body +func NewApplyTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s/labels", pathParam0) + basePath := fmt.Sprintf("/templates/apply") if basePath[0] == '/' { basePath = basePath[1:] } @@ -13514,45 +13300,31 @@ func NewPostTelegrafsIDLabelsRequestWithBody(server string, telegrafID string, p 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 } -// NewDeleteTelegrafsIDLabelsIDRequest generates requests for DeleteTelegrafsIDLabelsID -func NewDeleteTelegrafsIDLabelsIDRequest(server string, telegrafID string, labelID string, params *DeleteTelegrafsIDLabelsIDParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) +// NewExportTemplateRequest calls the generic ExportTemplate builder with application/json body +func NewExportTemplateRequest(server string, body ExportTemplateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewExportTemplateRequestWithBody(server, "application/json", bodyReader) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParam("simple", false, "labelID", labelID) - if err != nil { - return nil, err - } +// NewExportTemplateRequestWithBody generates requests for ExportTemplate with any type of body +func NewExportTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s/labels/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/templates/export") if basePath[0] == '/' { basePath = basePath[1:] } @@ -13562,42 +13334,25 @@ func NewDeleteTelegrafsIDLabelsIDRequest(server string, telegrafID string, label return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", 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 } -// NewGetTelegrafsIDMembersRequest generates requests for GetTelegrafsIDMembers -func NewGetTelegrafsIDMembersRequest(server string, telegrafID string, params *GetTelegrafsIDMembersParams) (*http.Request, error) { +// NewGetUsersRequest generates requests for GetUsers +func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s/members", pathParam0) + basePath := fmt.Sprintf("/users") if basePath[0] == '/' { basePath = basePath[1:] } @@ -13626,34 +13381,27 @@ func NewGetTelegrafsIDMembersRequest(server string, telegrafID string, params *G return req, nil } -// NewPostTelegrafsIDMembersRequest calls the generic PostTelegrafsIDMembers builder with application/json body -func NewPostTelegrafsIDMembersRequest(server string, telegrafID string, params *PostTelegrafsIDMembersParams, body PostTelegrafsIDMembersJSONRequestBody) (*http.Request, error) { +// NewPostUsersRequest calls the generic PostUsers builder with application/json body +func NewPostUsersRequest(server string, params *PostUsersParams, body PostUsersJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostTelegrafsIDMembersRequestWithBody(server, telegrafID, params, "application/json", bodyReader) + return NewPostUsersRequestWithBody(server, params, "application/json", bodyReader) } -// NewPostTelegrafsIDMembersRequestWithBody generates requests for PostTelegrafsIDMembers with any type of body -func NewPostTelegrafsIDMembersRequestWithBody(server string, telegrafID string, params *PostTelegrafsIDMembersParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostUsersRequestWithBody generates requests for PostUsers with any type of body +func NewPostUsersRequestWithBody(server string, params *PostUsersParams, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s/members", pathParam0) + basePath := fmt.Sprintf("/users") if basePath[0] == '/' { basePath = basePath[1:] } @@ -13683,20 +13431,13 @@ func NewPostTelegrafsIDMembersRequestWithBody(server string, telegrafID string, return req, nil } -// NewDeleteTelegrafsIDMembersIDRequest generates requests for DeleteTelegrafsIDMembersID -func NewDeleteTelegrafsIDMembersIDRequest(server string, telegrafID string, userID string, params *DeleteTelegrafsIDMembersIDParams) (*http.Request, error) { +// NewDeleteUsersIDRequest generates requests for DeleteUsersID +func NewDeleteUsersIDRequest(server string, userID string, params *DeleteUsersIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) + pathParam0, err = runtime.StyleParam("simple", false, "userID", userID) if err != nil { return nil, err } @@ -13706,7 +13447,7 @@ func NewDeleteTelegrafsIDMembersIDRequest(server string, telegrafID string, user return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s/members/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/users/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13735,13 +13476,13 @@ func NewDeleteTelegrafsIDMembersIDRequest(server string, telegrafID string, user return req, nil } -// NewGetTelegrafsIDOwnersRequest generates requests for GetTelegrafsIDOwners -func NewGetTelegrafsIDOwnersRequest(server string, telegrafID string, params *GetTelegrafsIDOwnersParams) (*http.Request, error) { +// NewGetUsersIDRequest generates requests for GetUsersID +func NewGetUsersIDRequest(server string, userID string, params *GetUsersIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) + pathParam0, err = runtime.StyleParam("simple", false, "userID", userID) if err != nil { return nil, err } @@ -13751,7 +13492,7 @@ func NewGetTelegrafsIDOwnersRequest(server string, telegrafID string, params *Ge return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s/owners", pathParam0) + basePath := fmt.Sprintf("/users/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13780,24 +13521,24 @@ func NewGetTelegrafsIDOwnersRequest(server string, telegrafID string, params *Ge return req, nil } -// NewPostTelegrafsIDOwnersRequest calls the generic PostTelegrafsIDOwners builder with application/json body -func NewPostTelegrafsIDOwnersRequest(server string, telegrafID string, params *PostTelegrafsIDOwnersParams, body PostTelegrafsIDOwnersJSONRequestBody) (*http.Request, error) { +// NewPatchUsersIDRequest calls the generic PatchUsersID builder with application/json body +func NewPatchUsersIDRequest(server string, userID string, params *PatchUsersIDParams, body PatchUsersIDJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostTelegrafsIDOwnersRequestWithBody(server, telegrafID, params, "application/json", bodyReader) + return NewPatchUsersIDRequestWithBody(server, userID, params, "application/json", bodyReader) } -// NewPostTelegrafsIDOwnersRequestWithBody generates requests for PostTelegrafsIDOwners with any type of body -func NewPostTelegrafsIDOwnersRequestWithBody(server string, telegrafID string, params *PostTelegrafsIDOwnersParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchUsersIDRequestWithBody generates requests for PatchUsersID with any type of body +func NewPatchUsersIDRequestWithBody(server string, userID string, params *PatchUsersIDParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) + pathParam0, err = runtime.StyleParam("simple", false, "userID", userID) if err != nil { return nil, err } @@ -13807,7 +13548,7 @@ func NewPostTelegrafsIDOwnersRequestWithBody(server string, telegrafID string, p return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s/owners", pathParam0) + basePath := fmt.Sprintf("/users/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13817,7 +13558,7 @@ func NewPostTelegrafsIDOwnersRequestWithBody(server string, telegrafID string, p return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -13837,20 +13578,24 @@ func NewPostTelegrafsIDOwnersRequestWithBody(server string, telegrafID string, p return req, nil } -// NewDeleteTelegrafsIDOwnersIDRequest generates requests for DeleteTelegrafsIDOwnersID -func NewDeleteTelegrafsIDOwnersIDRequest(server string, telegrafID string, userID string, params *DeleteTelegrafsIDOwnersIDParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "telegrafID", telegrafID) +// NewPostUsersIDPasswordRequest calls the generic PostUsersIDPassword builder with application/json body +func NewPostUsersIDPasswordRequest(server string, userID string, params *PostUsersIDPasswordParams, body PostUsersIDPasswordJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewPostUsersIDPasswordRequestWithBody(server, userID, params, "application/json", bodyReader) +} - var pathParam1 string +// NewPostUsersIDPasswordRequestWithBody generates requests for PostUsersIDPassword with any type of body +func NewPostUsersIDPasswordRequestWithBody(server string, userID string, params *PostUsersIDPasswordParams, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParam("simple", false, "userID", userID) + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "userID", userID) if err != nil { return nil, err } @@ -13860,7 +13605,7 @@ func NewDeleteTelegrafsIDOwnersIDRequest(server string, telegrafID string, userI return nil, err } - basePath := fmt.Sprintf("/telegrafs/%s/owners/%s", pathParam0, pathParam1) + basePath := fmt.Sprintf("/users/%s/password", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -13870,7 +13615,7 @@ func NewDeleteTelegrafsIDOwnersIDRequest(server string, telegrafID string, userI return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -13886,11 +13631,12 @@ func NewDeleteTelegrafsIDOwnersIDRequest(server string, telegrafID string, userI req.Header.Add("Zap-Trace-Span", headerParam0) } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetUsersRequest generates requests for GetUsers -func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, error) { +// NewGetVariablesRequest generates requests for GetVariables +func NewGetVariablesRequest(server string, params *GetVariablesParams) (*http.Request, error) { var err error queryURL, err := url.Parse(server) @@ -13898,7 +13644,7 @@ func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, e return nil, err } - basePath := fmt.Sprintf("/users") + basePath := fmt.Sprintf("/variables") if basePath[0] == '/' { basePath = basePath[1:] } @@ -13908,6 +13654,42 @@ func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, e return nil, err } + queryValues := queryURL.Query() + + if params.Org != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); 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.OrgID != nil { + + if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -13927,19 +13709,19 @@ func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, e return req, nil } -// NewPostUsersRequest calls the generic PostUsers builder with application/json body -func NewPostUsersRequest(server string, params *PostUsersParams, body PostUsersJSONRequestBody) (*http.Request, error) { +// NewPostVariablesRequest calls the generic PostVariables builder with application/json body +func NewPostVariablesRequest(server string, params *PostVariablesParams, body PostVariablesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostUsersRequestWithBody(server, params, "application/json", bodyReader) + return NewPostVariablesRequestWithBody(server, params, "application/json", bodyReader) } -// NewPostUsersRequestWithBody generates requests for PostUsers with any type of body -func NewPostUsersRequestWithBody(server string, params *PostUsersParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostVariablesRequestWithBody generates requests for PostVariables with any type of body +func NewPostVariablesRequestWithBody(server string, params *PostVariablesParams, contentType string, body io.Reader) (*http.Request, error) { var err error queryURL, err := url.Parse(server) @@ -13947,7 +13729,7 @@ func NewPostUsersRequestWithBody(server string, params *PostUsersParams, content return nil, err } - basePath := fmt.Sprintf("/users") + basePath := fmt.Sprintf("/variables") if basePath[0] == '/' { basePath = basePath[1:] } @@ -13977,13 +13759,13 @@ func NewPostUsersRequestWithBody(server string, params *PostUsersParams, content return req, nil } -// NewDeleteUsersIDRequest generates requests for DeleteUsersID -func NewDeleteUsersIDRequest(server string, userID string, params *DeleteUsersIDParams) (*http.Request, error) { +// NewDeleteVariablesIDRequest generates requests for DeleteVariablesID +func NewDeleteVariablesIDRequest(server string, variableID string, params *DeleteVariablesIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "userID", userID) + pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) if err != nil { return nil, err } @@ -13993,7 +13775,7 @@ func NewDeleteUsersIDRequest(server string, userID string, params *DeleteUsersID return nil, err } - basePath := fmt.Sprintf("/users/%s", pathParam0) + basePath := fmt.Sprintf("/variables/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -14022,13 +13804,13 @@ func NewDeleteUsersIDRequest(server string, userID string, params *DeleteUsersID return req, nil } -// NewGetUsersIDRequest generates requests for GetUsersID -func NewGetUsersIDRequest(server string, userID string, params *GetUsersIDParams) (*http.Request, error) { +// NewGetVariablesIDRequest generates requests for GetVariablesID +func NewGetVariablesIDRequest(server string, variableID string, params *GetVariablesIDParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "userID", userID) + pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) if err != nil { return nil, err } @@ -14038,7 +13820,7 @@ func NewGetUsersIDRequest(server string, userID string, params *GetUsersIDParams return nil, err } - basePath := fmt.Sprintf("/users/%s", pathParam0) + basePath := fmt.Sprintf("/variables/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -14067,24 +13849,24 @@ func NewGetUsersIDRequest(server string, userID string, params *GetUsersIDParams return req, nil } -// NewPatchUsersIDRequest calls the generic PatchUsersID builder with application/json body -func NewPatchUsersIDRequest(server string, userID string, params *PatchUsersIDParams, body PatchUsersIDJSONRequestBody) (*http.Request, error) { +// NewPatchVariablesIDRequest calls the generic PatchVariablesID builder with application/json body +func NewPatchVariablesIDRequest(server string, variableID string, params *PatchVariablesIDParams, body PatchVariablesIDJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPatchUsersIDRequestWithBody(server, userID, params, "application/json", bodyReader) + return NewPatchVariablesIDRequestWithBody(server, variableID, params, "application/json", bodyReader) } -// NewPatchUsersIDRequestWithBody generates requests for PatchUsersID with any type of body -func NewPatchUsersIDRequestWithBody(server string, userID string, params *PatchUsersIDParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchVariablesIDRequestWithBody generates requests for PatchVariablesID with any type of body +func NewPatchVariablesIDRequestWithBody(server string, variableID string, params *PatchVariablesIDParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "userID", userID) + pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) if err != nil { return nil, err } @@ -14094,7 +13876,7 @@ func NewPatchUsersIDRequestWithBody(server string, userID string, params *PatchU return nil, err } - basePath := fmt.Sprintf("/users/%s", pathParam0) + basePath := fmt.Sprintf("/variables/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -14124,24 +13906,24 @@ func NewPatchUsersIDRequestWithBody(server string, userID string, params *PatchU return req, nil } -// NewPostUsersIDPasswordRequest calls the generic PostUsersIDPassword builder with application/json body -func NewPostUsersIDPasswordRequest(server string, userID string, params *PostUsersIDPasswordParams, body PostUsersIDPasswordJSONRequestBody) (*http.Request, error) { +// NewPutVariablesIDRequest calls the generic PutVariablesID builder with application/json body +func NewPutVariablesIDRequest(server string, variableID string, params *PutVariablesIDParams, body PutVariablesIDJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostUsersIDPasswordRequestWithBody(server, userID, params, "application/json", bodyReader) + return NewPutVariablesIDRequestWithBody(server, variableID, params, "application/json", bodyReader) } -// NewPostUsersIDPasswordRequestWithBody generates requests for PostUsersIDPassword with any type of body -func NewPostUsersIDPasswordRequestWithBody(server string, userID string, params *PostUsersIDPasswordParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPutVariablesIDRequestWithBody generates requests for PutVariablesID with any type of body +func NewPutVariablesIDRequestWithBody(server string, variableID string, params *PutVariablesIDParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParam("simple", false, "userID", userID) + pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) if err != nil { return nil, err } @@ -14151,7 +13933,7 @@ func NewPostUsersIDPasswordRequestWithBody(server string, userID string, params return nil, err } - basePath := fmt.Sprintf("/users/%s/password", pathParam0) + basePath := fmt.Sprintf("/variables/%s", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -14161,7 +13943,7 @@ func NewPostUsersIDPasswordRequestWithBody(server string, userID string, params return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -14181,16 +13963,23 @@ func NewPostUsersIDPasswordRequestWithBody(server string, userID string, params return req, nil } -// NewGetVariablesRequest generates requests for GetVariables -func NewGetVariablesRequest(server string, params *GetVariablesParams) (*http.Request, error) { +// NewGetVariablesIDLabelsRequest generates requests for GetVariablesIDLabels +func NewGetVariablesIDLabelsRequest(server string, variableID string, params *GetVariablesIDLabelsParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/variables") + basePath := fmt.Sprintf("/variables/%s/labels", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -14200,42 +13989,6 @@ func NewGetVariablesRequest(server string, params *GetVariablesParams) (*http.Re return nil, err } - queryValues := queryURL.Query() - - if params.Org != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "org", *params.Org); 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.OrgID != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); 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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -14255,27 +14008,34 @@ func NewGetVariablesRequest(server string, params *GetVariablesParams) (*http.Re return req, nil } -// NewPostVariablesRequest calls the generic PostVariables builder with application/json body -func NewPostVariablesRequest(server string, params *PostVariablesParams, body PostVariablesJSONRequestBody) (*http.Request, error) { +// NewPostVariablesIDLabelsRequest calls the generic PostVariablesIDLabels builder with application/json body +func NewPostVariablesIDLabelsRequest(server string, variableID string, params *PostVariablesIDLabelsParams, body PostVariablesIDLabelsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostVariablesRequestWithBody(server, params, "application/json", bodyReader) + return NewPostVariablesIDLabelsRequestWithBody(server, variableID, params, "application/json", bodyReader) } -// NewPostVariablesRequestWithBody generates requests for PostVariables with any type of body -func NewPostVariablesRequestWithBody(server string, params *PostVariablesParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostVariablesIDLabelsRequestWithBody generates requests for PostVariablesIDLabels with any type of body +func NewPostVariablesIDLabelsRequestWithBody(server string, variableID string, params *PostVariablesIDLabelsParams, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) + if err != nil { + return nil, err + } + queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/variables") + basePath := fmt.Sprintf("/variables/%s/labels", pathParam0) if basePath[0] == '/' { basePath = basePath[1:] } @@ -14305,8 +14065,8 @@ func NewPostVariablesRequestWithBody(server string, params *PostVariablesParams, return req, nil } -// NewDeleteVariablesIDRequest generates requests for DeleteVariablesID -func NewDeleteVariablesIDRequest(server string, variableID string, params *DeleteVariablesIDParams) (*http.Request, error) { +// NewDeleteVariablesIDLabelsIDRequest generates requests for DeleteVariablesIDLabelsID +func NewDeleteVariablesIDLabelsIDRequest(server string, variableID string, labelID string, params *DeleteVariablesIDLabelsIDParams) (*http.Request, error) { var err error var pathParam0 string @@ -14316,12 +14076,19 @@ func NewDeleteVariablesIDRequest(server string, variableID string, params *Delet 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("/variables/%s", pathParam0) + basePath := fmt.Sprintf("/variables/%s/labels/%s", pathParam0, pathParam1) if basePath[0] == '/' { basePath = basePath[1:] } @@ -14350,23 +14117,16 @@ func NewDeleteVariablesIDRequest(server string, variableID string, params *Delet return req, nil } -// NewGetVariablesIDRequest generates requests for GetVariablesID -func NewGetVariablesIDRequest(server string, variableID string, params *GetVariablesIDParams) (*http.Request, error) { +// NewPostWriteRequestWithBody generates requests for PostWrite with any type of body +func NewPostWriteRequestWithBody(server string, params *PostWriteParams, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) - if err != nil { - return nil, err - } - queryURL, err := url.Parse(server) if err != nil { return nil, err } - basePath := fmt.Sprintf("/variables/%s", pathParam0) + basePath := fmt.Sprintf("/write") if basePath[0] == '/' { basePath = basePath[1:] } @@ -14376,63 +14136,67 @@ func NewGetVariablesIDRequest(server string, variableID string, params *GetVaria return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParam("form", true, "org", params.Org); 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.ZapTraceSpan != nil { - var headerParam0 string + if params.OrgID != nil { - headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) - if err != nil { + if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); 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) + } + } } - req.Header.Add("Zap-Trace-Span", headerParam0) } - return req, nil -} - -// NewPatchVariablesIDRequest calls the generic PatchVariablesID builder with application/json body -func NewPatchVariablesIDRequest(server string, variableID string, params *PatchVariablesIDParams, body PatchVariablesIDJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { + if queryFrag, err := runtime.StyleParam("form", true, "bucket", params.Bucket); err != nil { return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchVariablesIDRequestWithBody(server, variableID, params, "application/json", bodyReader) -} - -// NewPatchVariablesIDRequestWithBody generates requests for PatchVariablesID with any type of body -func NewPatchVariablesIDRequestWithBody(server string, variableID string, params *PatchVariablesIDParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) - if err != nil { + } 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) + } + } } - queryURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if params.Precision != nil { - basePath := fmt.Sprintf("/variables/%s", pathParam0) - if basePath[0] == '/' { - basePath = basePath[1:] - } + if queryFrag, err := runtime.StyleParam("form", true, "precision", *params.Precision); 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) + } + } + } - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -14448,730 +14212,74 @@ func NewPatchVariablesIDRequestWithBody(server string, variableID string, params req.Header.Add("Zap-Trace-Span", headerParam0) } - req.Header.Add("Content-Type", contentType) - return req, nil -} + if params.ContentEncoding != nil { + var headerParam1 string -// NewPutVariablesIDRequest calls the generic PutVariablesID builder with application/json body -func NewPutVariablesIDRequest(server string, variableID string, params *PutVariablesIDParams, body PutVariablesIDJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPutVariablesIDRequestWithBody(server, variableID, params, "application/json", bodyReader) -} + headerParam1, err = runtime.StyleParam("simple", false, "Content-Encoding", *params.ContentEncoding) + if err != nil { + return nil, err + } -// NewPutVariablesIDRequestWithBody generates requests for PutVariablesID with any type of body -func NewPutVariablesIDRequestWithBody(server string, variableID string, params *PutVariablesIDParams, contentType string, body io.Reader) (*http.Request, error) { - var err error + req.Header.Add("Content-Encoding", headerParam1) + } - var pathParam0 string + if params.ContentType != nil { + var headerParam2 string - pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) - if err != nil { - return nil, err - } + headerParam2, err = runtime.StyleParam("simple", false, "Content-Type", *params.ContentType) + if err != nil { + return nil, err + } - queryURL, err := url.Parse(server) - if err != nil { - return nil, err + req.Header.Add("Content-Type", headerParam2) } - basePath := fmt.Sprintf("/variables/%s", pathParam0) - if basePath[0] == '/' { - basePath = basePath[1:] - } + if params.ContentLength != nil { + var headerParam3 string - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err - } + headerParam3, err = runtime.StyleParam("simple", false, "Content-Length", *params.ContentLength) + if err != nil { + return nil, err + } - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err + req.Header.Add("Content-Length", headerParam3) } - if params.ZapTraceSpan != nil { - var headerParam0 string + if params.Accept != nil { + var headerParam4 string - headerParam0, err = runtime.StyleParam("simple", false, "Zap-Trace-Span", *params.ZapTraceSpan) + headerParam4, err = runtime.StyleParam("simple", false, "Accept", *params.Accept) if err != nil { return nil, err } - req.Header.Add("Zap-Trace-Span", headerParam0) + req.Header.Add("Accept", headerParam4) } req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetVariablesIDLabelsRequest generates requests for GetVariablesIDLabels -func NewGetVariablesIDLabelsRequest(server string, variableID string, params *GetVariablesIDLabelsParams) (*http.Request, error) { - var err error - - var pathParam0 string +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface +} - pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) - if err != nil { - return nil, err - } - - queryURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - basePath := fmt.Sprintf("/variables/%s/labels", pathParam0) - if basePath[0] == '/' { - basePath = basePath[1:] - } - - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - 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) - } - - return req, nil -} - -// NewPostVariablesIDLabelsRequest calls the generic PostVariablesIDLabels builder with application/json body -func NewPostVariablesIDLabelsRequest(server string, variableID string, params *PostVariablesIDLabelsParams, body PostVariablesIDLabelsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostVariablesIDLabelsRequestWithBody(server, variableID, params, "application/json", bodyReader) -} - -// NewPostVariablesIDLabelsRequestWithBody generates requests for PostVariablesIDLabels with any type of body -func NewPostVariablesIDLabelsRequestWithBody(server string, variableID string, params *PostVariablesIDLabelsParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) - if err != nil { - return nil, err - } - - queryURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - basePath := fmt.Sprintf("/variables/%s/labels", pathParam0) - if basePath[0] == '/' { - basePath = basePath[1:] - } - - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", 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 -} - -// NewDeleteVariablesIDLabelsIDRequest generates requests for DeleteVariablesIDLabelsID -func NewDeleteVariablesIDLabelsIDRequest(server string, variableID string, labelID string, params *DeleteVariablesIDLabelsIDParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParam("simple", false, "variableID", variableID) - 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("/variables/%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("DELETE", queryURL.String(), nil) - 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) - } - - return req, nil -} - -// NewPostWriteRequestWithBody generates requests for PostWrite with any type of body -func NewPostWriteRequestWithBody(server string, params *PostWriteParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - queryURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - basePath := fmt.Sprintf("/write") - if basePath[0] == '/' { - basePath = basePath[1:] - } - - queryURL, err = queryURL.Parse(basePath) - if err != nil { - return nil, err - } - - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParam("form", true, "org", params.Org); 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.OrgID != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "orgID", *params.OrgID); 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 queryFrag, err := runtime.StyleParam("form", true, "bucket", params.Bucket); 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.Precision != nil { - - if queryFrag, err := runtime.StyleParam("form", true, "precision", *params.Precision); 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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("POST", 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) - } - - if params.ContentEncoding != nil { - var headerParam1 string - - headerParam1, err = runtime.StyleParam("simple", false, "Content-Encoding", *params.ContentEncoding) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Encoding", headerParam1) - } - - if params.ContentType != nil { - var headerParam2 string - - headerParam2, err = runtime.StyleParam("simple", false, "Content-Type", *params.ContentType) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", headerParam2) - } - - if params.ContentLength != nil { - var headerParam3 string - - headerParam3, err = runtime.StyleParam("simple", false, "Content-Length", *params.ContentLength) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Length", headerParam3) - } - - if params.Accept != nil { - var headerParam4 string - - headerParam4, err = runtime.StyleParam("simple", false, "Accept", *params.Accept) - if err != nil { - return nil, err - } - - req.Header.Add("Accept", headerParam4) - } - - req.Header.Add("Content-Type", contentType) - return req, nil -} - -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} - -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(service ihttp.Service) *ClientWithResponses { - client := NewClient(service) - return &ClientWithResponses{client} -} - -type getRoutesResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Routes -} - -// Status returns HTTPResponse.Status -func (r getRoutesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r getRoutesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type getAuthorizationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Authorizations - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r getAuthorizationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r getAuthorizationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type postAuthorizationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Authorization - JSON400 *Error - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r postAuthorizationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r postAuthorizationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type deleteAuthorizationsIDResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r deleteAuthorizationsIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r deleteAuthorizationsIDResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type getAuthorizationsIDResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Authorization - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r getAuthorizationsIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r getAuthorizationsIDResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type patchAuthorizationsIDResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Authorization - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r patchAuthorizationsIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r patchAuthorizationsIDResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type getBucketsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Buckets - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r getBucketsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r getBucketsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type postBucketsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Bucket - JSON422 *Error - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r postBucketsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r postBucketsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type deleteBucketsIDResponse struct { - Body []byte - HTTPResponse *http.Response - JSON404 *Error - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r deleteBucketsIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r deleteBucketsIDResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type getBucketsIDResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Bucket - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r getBucketsIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r getBucketsIDResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type patchBucketsIDResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Bucket - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r patchBucketsIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r patchBucketsIDResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type getBucketsIDLabelsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *LabelsResponse - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r getBucketsIDLabelsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r getBucketsIDLabelsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type postBucketsIDLabelsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *LabelResponse - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r postBucketsIDLabelsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r postBucketsIDLabelsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type deleteBucketsIDLabelsIDResponse struct { - Body []byte - HTTPResponse *http.Response - JSON404 *Error - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r deleteBucketsIDLabelsIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r deleteBucketsIDLabelsIDResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type getBucketsIDMembersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ResourceMembers - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r getBucketsIDMembersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r getBucketsIDMembersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// NewClientWithResponses creates a new ClientWithResponses, which wraps +// Client with return type handling +func NewClientWithResponses(service ihttp.Service) *ClientWithResponses { + client := NewClient(service) + return &ClientWithResponses{client} } -type postBucketsIDMembersResponse struct { +type getRoutesResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceMember - JSONDefault *Error + JSONDefault *Routes } // Status returns HTTPResponse.Status -func (r postBucketsIDMembersResponse) Status() string { +func (r getRoutesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15179,21 +14287,22 @@ func (r postBucketsIDMembersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postBucketsIDMembersResponse) StatusCode() int { +func (r getRoutesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteBucketsIDMembersIDResponse struct { +type getAuthorizationsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Authorizations JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteBucketsIDMembersIDResponse) Status() string { +func (r getAuthorizationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15201,22 +14310,23 @@ func (r deleteBucketsIDMembersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteBucketsIDMembersIDResponse) StatusCode() int { +func (r getAuthorizationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getBucketsIDOwnersResponse struct { +type postAuthorizationsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceOwners + JSON201 *Authorization + JSON400 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getBucketsIDOwnersResponse) Status() string { +func (r postAuthorizationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15224,22 +14334,21 @@ func (r getBucketsIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getBucketsIDOwnersResponse) StatusCode() int { +func (r postAuthorizationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postBucketsIDOwnersResponse struct { +type deleteAuthorizationsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceOwner JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postBucketsIDOwnersResponse) Status() string { +func (r deleteAuthorizationsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15247,21 +14356,22 @@ func (r postBucketsIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postBucketsIDOwnersResponse) StatusCode() int { +func (r deleteAuthorizationsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteBucketsIDOwnersIDResponse struct { +type getAuthorizationsIDResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Authorization JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteBucketsIDOwnersIDResponse) Status() string { +func (r getAuthorizationsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15269,22 +14379,22 @@ func (r deleteBucketsIDOwnersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteBucketsIDOwnersIDResponse) StatusCode() int { +func (r getAuthorizationsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getChecksResponse struct { +type patchAuthorizationsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Checks + JSON200 *Authorization JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getChecksResponse) Status() string { +func (r patchAuthorizationsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15292,22 +14402,22 @@ func (r getChecksResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getChecksResponse) StatusCode() int { +func (r patchAuthorizationsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type createCheckResponse struct { +type getBucketsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Check + JSON200 *Buckets JSONDefault *Error } // Status returns HTTPResponse.Status -func (r createCheckResponse) Status() string { +func (r getBucketsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15315,22 +14425,23 @@ func (r createCheckResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r createCheckResponse) StatusCode() int { +func (r getBucketsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteChecksIDResponse struct { +type postBucketsResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON201 *Bucket + JSON422 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteChecksIDResponse) Status() string { +func (r postBucketsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15338,22 +14449,22 @@ func (r deleteChecksIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteChecksIDResponse) StatusCode() int { +func (r postBucketsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getChecksIDResponse struct { +type deleteBucketsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Check + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getChecksIDResponse) Status() string { +func (r deleteBucketsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15361,23 +14472,22 @@ func (r getChecksIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getChecksIDResponse) StatusCode() int { +func (r deleteBucketsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchChecksIDResponse struct { +type getBucketsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Check - JSON404 *Error + JSON200 *Bucket JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchChecksIDResponse) Status() string { +func (r getBucketsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15385,23 +14495,22 @@ func (r patchChecksIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchChecksIDResponse) StatusCode() int { +func (r getBucketsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type putChecksIDResponse struct { +type patchBucketsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Check - JSON404 *Error + JSON200 *Bucket JSONDefault *Error } // Status returns HTTPResponse.Status -func (r putChecksIDResponse) Status() string { +func (r patchBucketsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15409,14 +14518,14 @@ func (r putChecksIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r putChecksIDResponse) StatusCode() int { +func (r patchBucketsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getChecksIDLabelsResponse struct { +type getBucketsIDLabelsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *LabelsResponse @@ -15424,7 +14533,7 @@ type getChecksIDLabelsResponse struct { } // Status returns HTTPResponse.Status -func (r getChecksIDLabelsResponse) Status() string { +func (r getBucketsIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15432,14 +14541,14 @@ func (r getChecksIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getChecksIDLabelsResponse) StatusCode() int { +func (r getBucketsIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postChecksIDLabelsResponse struct { +type postBucketsIDLabelsResponse struct { Body []byte HTTPResponse *http.Response JSON201 *LabelResponse @@ -15447,7 +14556,7 @@ type postChecksIDLabelsResponse struct { } // Status returns HTTPResponse.Status -func (r postChecksIDLabelsResponse) Status() string { +func (r postBucketsIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15455,14 +14564,14 @@ func (r postChecksIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postChecksIDLabelsResponse) StatusCode() int { +func (r postBucketsIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteChecksIDLabelsIDResponse struct { +type deleteBucketsIDLabelsIDResponse struct { Body []byte HTTPResponse *http.Response JSON404 *Error @@ -15470,7 +14579,7 @@ type deleteChecksIDLabelsIDResponse struct { } // Status returns HTTPResponse.Status -func (r deleteChecksIDLabelsIDResponse) Status() string { +func (r deleteBucketsIDLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15478,24 +14587,22 @@ func (r deleteChecksIDLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteChecksIDLabelsIDResponse) StatusCode() int { +func (r deleteBucketsIDLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getChecksIDQueryResponse struct { +type getBucketsIDMembersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FluxResponse - JSON400 *Error - JSON404 *Error + JSON200 *ResourceMembers JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getChecksIDQueryResponse) Status() string { +func (r getBucketsIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15503,22 +14610,22 @@ func (r getChecksIDQueryResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getChecksIDQueryResponse) StatusCode() int { +func (r getBucketsIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDashboardsResponse struct { +type postBucketsIDMembersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Dashboards + JSON201 *ResourceMember JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getDashboardsResponse) Status() string { +func (r postBucketsIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15526,22 +14633,21 @@ func (r getDashboardsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDashboardsResponse) StatusCode() int { +func (r postBucketsIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postDashboardsResponse struct { +type deleteBucketsIDMembersIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *interface{} JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postDashboardsResponse) Status() string { +func (r deleteBucketsIDMembersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15549,22 +14655,22 @@ func (r postDashboardsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postDashboardsResponse) StatusCode() int { +func (r deleteBucketsIDMembersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteDashboardsIDResponse struct { +type getBucketsIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON200 *ResourceOwners JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteDashboardsIDResponse) Status() string { +func (r getBucketsIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15572,23 +14678,22 @@ func (r deleteDashboardsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteDashboardsIDResponse) StatusCode() int { +func (r getBucketsIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDashboardsIDResponse struct { +type postBucketsIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *interface{} - JSON404 *Error + JSON201 *ResourceOwner JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getDashboardsIDResponse) Status() string { +func (r postBucketsIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15596,23 +14701,21 @@ func (r getDashboardsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDashboardsIDResponse) StatusCode() int { +func (r postBucketsIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchDashboardsIDResponse struct { +type deleteBucketsIDOwnersIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Dashboard - JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchDashboardsIDResponse) Status() string { +func (r deleteBucketsIDOwnersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15620,23 +14723,22 @@ func (r patchDashboardsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchDashboardsIDResponse) StatusCode() int { +func (r deleteBucketsIDOwnersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postDashboardsIDCellsResponse struct { +type getChecksResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Cell - JSON404 *Error + JSON200 *Checks JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postDashboardsIDCellsResponse) Status() string { +func (r getChecksResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15644,23 +14746,22 @@ func (r postDashboardsIDCellsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postDashboardsIDCellsResponse) StatusCode() int { +func (r getChecksResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type putDashboardsIDCellsResponse struct { +type createCheckResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Dashboard - JSON404 *Error + JSON201 *Check JSONDefault *Error } // Status returns HTTPResponse.Status -func (r putDashboardsIDCellsResponse) Status() string { +func (r createCheckResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15668,14 +14769,14 @@ func (r putDashboardsIDCellsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r putDashboardsIDCellsResponse) StatusCode() int { +func (r createCheckResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteDashboardsIDCellsIDResponse struct { +type deleteChecksIDResponse struct { Body []byte HTTPResponse *http.Response JSON404 *Error @@ -15683,7 +14784,7 @@ type deleteDashboardsIDCellsIDResponse struct { } // Status returns HTTPResponse.Status -func (r deleteDashboardsIDCellsIDResponse) Status() string { +func (r deleteChecksIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15691,23 +14792,22 @@ func (r deleteDashboardsIDCellsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteDashboardsIDCellsIDResponse) StatusCode() int { +func (r deleteChecksIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchDashboardsIDCellsIDResponse struct { +type getChecksIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Cell - JSON404 *Error + JSON200 *Check JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchDashboardsIDCellsIDResponse) Status() string { +func (r getChecksIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15715,23 +14815,23 @@ func (r patchDashboardsIDCellsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchDashboardsIDCellsIDResponse) StatusCode() int { +func (r getChecksIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDashboardsIDCellsIDViewResponse struct { +type patchChecksIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *View + JSON200 *Check JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getDashboardsIDCellsIDViewResponse) Status() string { +func (r patchChecksIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15739,23 +14839,23 @@ func (r getDashboardsIDCellsIDViewResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDashboardsIDCellsIDViewResponse) StatusCode() int { +func (r patchChecksIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchDashboardsIDCellsIDViewResponse struct { +type putChecksIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *View + JSON200 *Check JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchDashboardsIDCellsIDViewResponse) Status() string { +func (r putChecksIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15763,14 +14863,14 @@ func (r patchDashboardsIDCellsIDViewResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchDashboardsIDCellsIDViewResponse) StatusCode() int { +func (r putChecksIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDashboardsIDLabelsResponse struct { +type getChecksIDLabelsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *LabelsResponse @@ -15778,7 +14878,7 @@ type getDashboardsIDLabelsResponse struct { } // Status returns HTTPResponse.Status -func (r getDashboardsIDLabelsResponse) Status() string { +func (r getChecksIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15786,14 +14886,14 @@ func (r getDashboardsIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDashboardsIDLabelsResponse) StatusCode() int { +func (r getChecksIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postDashboardsIDLabelsResponse struct { +type postChecksIDLabelsResponse struct { Body []byte HTTPResponse *http.Response JSON201 *LabelResponse @@ -15801,7 +14901,7 @@ type postDashboardsIDLabelsResponse struct { } // Status returns HTTPResponse.Status -func (r postDashboardsIDLabelsResponse) Status() string { +func (r postChecksIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15809,14 +14909,14 @@ func (r postDashboardsIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postDashboardsIDLabelsResponse) StatusCode() int { +func (r postChecksIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteDashboardsIDLabelsIDResponse struct { +type deleteChecksIDLabelsIDResponse struct { Body []byte HTTPResponse *http.Response JSON404 *Error @@ -15824,30 +14924,7 @@ type deleteDashboardsIDLabelsIDResponse struct { } // Status returns HTTPResponse.Status -func (r deleteDashboardsIDLabelsIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r deleteDashboardsIDLabelsIDResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type getDashboardsIDMembersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ResourceMembers - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r getDashboardsIDMembersResponse) Status() string { +func (r deleteChecksIDLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15855,22 +14932,24 @@ func (r getDashboardsIDMembersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDashboardsIDMembersResponse) StatusCode() int { +func (r deleteChecksIDLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postDashboardsIDMembersResponse struct { +type getChecksIDQueryResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceMember + JSON200 *FluxResponse + JSON400 *Error + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postDashboardsIDMembersResponse) Status() string { +func (r getChecksIDQueryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15878,21 +14957,22 @@ func (r postDashboardsIDMembersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postDashboardsIDMembersResponse) StatusCode() int { +func (r getChecksIDQueryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteDashboardsIDMembersIDResponse struct { +type getDashboardsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Dashboards JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteDashboardsIDMembersIDResponse) Status() string { +func (r getDashboardsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15900,22 +14980,22 @@ func (r deleteDashboardsIDMembersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteDashboardsIDMembersIDResponse) StatusCode() int { +func (r getDashboardsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDashboardsIDOwnersResponse struct { +type postDashboardsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceOwners + JSON201 *interface{} JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getDashboardsIDOwnersResponse) Status() string { +func (r postDashboardsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15923,22 +15003,22 @@ func (r getDashboardsIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDashboardsIDOwnersResponse) StatusCode() int { +func (r postDashboardsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postDashboardsIDOwnersResponse struct { +type deleteDashboardsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceOwner + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postDashboardsIDOwnersResponse) Status() string { +func (r deleteDashboardsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15946,21 +15026,23 @@ func (r postDashboardsIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postDashboardsIDOwnersResponse) StatusCode() int { +func (r deleteDashboardsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteDashboardsIDOwnersIDResponse struct { +type getDashboardsIDResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *interface{} + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteDashboardsIDOwnersIDResponse) Status() string { +func (r getDashboardsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15968,23 +15050,23 @@ func (r deleteDashboardsIDOwnersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteDashboardsIDOwnersIDResponse) StatusCode() int { +func (r getDashboardsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDBRPsResponse struct { +type patchDashboardsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DBRPs - JSON400 *Error + JSON200 *Dashboard + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getDBRPsResponse) Status() string { +func (r patchDashboardsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15992,23 +15074,23 @@ func (r getDBRPsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDBRPsResponse) StatusCode() int { +func (r patchDashboardsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postDBRPResponse struct { +type postDashboardsIDCellsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *DBRP - JSON400 *Error + JSON201 *Cell + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postDBRPResponse) Status() string { +func (r postDashboardsIDCellsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16016,22 +15098,23 @@ func (r postDBRPResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postDBRPResponse) StatusCode() int { +func (r postDashboardsIDCellsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteDBRPIDResponse struct { +type putDashboardsIDCellsResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *Error + JSON201 *Dashboard + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteDBRPIDResponse) Status() string { +func (r putDashboardsIDCellsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16039,23 +15122,22 @@ func (r deleteDBRPIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteDBRPIDResponse) StatusCode() int { +func (r putDashboardsIDCellsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDBRPsIDResponse struct { +type deleteDashboardsIDCellsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DBRP - JSON400 *Error + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getDBRPsIDResponse) Status() string { +func (r deleteDashboardsIDCellsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16063,24 +15145,23 @@ func (r getDBRPsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDBRPsIDResponse) StatusCode() int { +func (r deleteDashboardsIDCellsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchDBRPIDResponse struct { +type patchDashboardsIDCellsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DBRP - JSON400 *Error + JSON200 *Cell JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchDBRPIDResponse) Status() string { +func (r patchDashboardsIDCellsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16088,24 +15169,23 @@ func (r patchDBRPIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchDBRPIDResponse) StatusCode() int { +func (r patchDashboardsIDCellsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postDeleteResponse struct { +type getDashboardsIDCellsIDViewResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *Error - JSON403 *Error + JSON200 *View JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postDeleteResponse) Status() string { +func (r getDashboardsIDCellsIDViewResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16113,22 +15193,23 @@ func (r postDeleteResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postDeleteResponse) StatusCode() int { +func (r getDashboardsIDCellsIDViewResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDocumentsTemplatesResponse struct { +type patchDashboardsIDCellsIDViewResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Documents + JSON200 *View + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getDocumentsTemplatesResponse) Status() string { +func (r patchDashboardsIDCellsIDViewResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16136,22 +15217,22 @@ func (r getDocumentsTemplatesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDocumentsTemplatesResponse) StatusCode() int { +func (r patchDashboardsIDCellsIDViewResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postDocumentsTemplatesResponse struct { +type getDashboardsIDLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Document + JSON200 *LabelsResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postDocumentsTemplatesResponse) Status() string { +func (r getDashboardsIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16159,21 +15240,22 @@ func (r postDocumentsTemplatesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postDocumentsTemplatesResponse) StatusCode() int { +func (r getDashboardsIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteDocumentsTemplatesIDResponse struct { +type postDashboardsIDLabelsResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteDocumentsTemplatesIDResponse) Status() string { +func (r postDashboardsIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16181,22 +15263,22 @@ func (r deleteDocumentsTemplatesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteDocumentsTemplatesIDResponse) StatusCode() int { +func (r postDashboardsIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDocumentsTemplatesIDResponse struct { +type deleteDashboardsIDLabelsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Document + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getDocumentsTemplatesIDResponse) Status() string { +func (r deleteDashboardsIDLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16204,22 +15286,22 @@ func (r getDocumentsTemplatesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDocumentsTemplatesIDResponse) StatusCode() int { +func (r deleteDashboardsIDLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type putDocumentsTemplatesIDResponse struct { +type getDashboardsIDMembersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Document + JSON200 *ResourceMembers JSONDefault *Error } // Status returns HTTPResponse.Status -func (r putDocumentsTemplatesIDResponse) Status() string { +func (r getDashboardsIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16227,22 +15309,22 @@ func (r putDocumentsTemplatesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r putDocumentsTemplatesIDResponse) StatusCode() int { +func (r getDashboardsIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getDocumentsTemplatesIDLabelsResponse struct { +type postDashboardsIDMembersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelsResponse + JSON201 *ResourceMember JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getDocumentsTemplatesIDLabelsResponse) Status() string { +func (r postDashboardsIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16250,22 +15332,21 @@ func (r getDocumentsTemplatesIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getDocumentsTemplatesIDLabelsResponse) StatusCode() int { +func (r postDashboardsIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postDocumentsTemplatesIDLabelsResponse struct { +type deleteDashboardsIDMembersIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postDocumentsTemplatesIDLabelsResponse) Status() string { +func (r deleteDashboardsIDMembersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16273,22 +15354,22 @@ func (r postDocumentsTemplatesIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postDocumentsTemplatesIDLabelsResponse) StatusCode() int { +func (r deleteDashboardsIDMembersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteDocumentsTemplatesIDLabelsIDResponse struct { +type getDashboardsIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON200 *ResourceOwners JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteDocumentsTemplatesIDLabelsIDResponse) Status() string { +func (r getDashboardsIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16296,22 +15377,22 @@ func (r deleteDocumentsTemplatesIDLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteDocumentsTemplatesIDLabelsIDResponse) StatusCode() int { +func (r getDashboardsIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getFlagsResponse struct { +type postDashboardsIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Flags + JSON201 *ResourceOwner JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getFlagsResponse) Status() string { +func (r postDashboardsIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16319,23 +15400,21 @@ func (r getFlagsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getFlagsResponse) StatusCode() int { +func (r postDashboardsIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getHealthResponse struct { +type deleteDashboardsIDOwnersIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *HealthCheck - JSON503 *HealthCheck JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getHealthResponse) Status() string { +func (r deleteDashboardsIDOwnersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16343,22 +15422,23 @@ func (r getHealthResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getHealthResponse) StatusCode() int { +func (r deleteDashboardsIDOwnersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getLabelsResponse struct { +type getDBRPsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelsResponse + JSON200 *DBRPs + JSON400 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getLabelsResponse) Status() string { +func (r getDBRPsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16366,22 +15446,23 @@ func (r getLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getLabelsResponse) StatusCode() int { +func (r getDBRPsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postLabelsResponse struct { +type postDBRPResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *LabelResponse + JSON201 *DBRP + JSON400 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postLabelsResponse) Status() string { +func (r postDBRPResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16389,22 +15470,22 @@ func (r postLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postLabelsResponse) StatusCode() int { +func (r postDBRPResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteLabelsIDResponse struct { +type deleteDBRPIDResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON400 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteLabelsIDResponse) Status() string { +func (r deleteDBRPIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16412,22 +15493,23 @@ func (r deleteLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteLabelsIDResponse) StatusCode() int { +func (r deleteDBRPIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getLabelsIDResponse struct { +type getDBRPsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelResponse + JSON200 *DBRP + JSON400 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getLabelsIDResponse) Status() string { +func (r getDBRPsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16435,23 +15517,24 @@ func (r getLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getLabelsIDResponse) StatusCode() int { +func (r getDBRPsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchLabelsIDResponse struct { +type patchDBRPIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelResponse + JSON200 *DBRP + JSON400 *Error JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchLabelsIDResponse) Status() string { +func (r patchDBRPIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16459,22 +15542,24 @@ func (r patchLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchLabelsIDResponse) StatusCode() int { +func (r patchDBRPIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getMeResponse struct { +type postDeleteResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *User + JSON400 *Error + JSON403 *Error + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getMeResponse) Status() string { +func (r postDeleteResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16482,21 +15567,22 @@ func (r getMeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getMeResponse) StatusCode() int { +func (r postDeleteResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type putMePasswordResponse struct { +type getDocumentsTemplatesResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Documents JSONDefault *Error } // Status returns HTTPResponse.Status -func (r putMePasswordResponse) Status() string { +func (r getDocumentsTemplatesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16504,22 +15590,22 @@ func (r putMePasswordResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r putMePasswordResponse) StatusCode() int { +func (r getDocumentsTemplatesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getNotificationEndpointsResponse struct { +type postDocumentsTemplatesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NotificationEndpoints + JSON201 *Document JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getNotificationEndpointsResponse) Status() string { +func (r postDocumentsTemplatesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16527,22 +15613,21 @@ func (r getNotificationEndpointsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getNotificationEndpointsResponse) StatusCode() int { +func (r postDocumentsTemplatesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type createNotificationEndpointResponse struct { +type deleteDocumentsTemplatesIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *NotificationEndpoint JSONDefault *Error } // Status returns HTTPResponse.Status -func (r createNotificationEndpointResponse) Status() string { +func (r deleteDocumentsTemplatesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16550,22 +15635,22 @@ func (r createNotificationEndpointResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r createNotificationEndpointResponse) StatusCode() int { +func (r deleteDocumentsTemplatesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteNotificationEndpointsIDResponse struct { +type getDocumentsTemplatesIDResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON200 *Document JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteNotificationEndpointsIDResponse) Status() string { +func (r getDocumentsTemplatesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16573,22 +15658,22 @@ func (r deleteNotificationEndpointsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteNotificationEndpointsIDResponse) StatusCode() int { +func (r getDocumentsTemplatesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getNotificationEndpointsIDResponse struct { +type putDocumentsTemplatesIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NotificationEndpoint + JSON200 *Document JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getNotificationEndpointsIDResponse) Status() string { +func (r putDocumentsTemplatesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16596,23 +15681,22 @@ func (r getNotificationEndpointsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getNotificationEndpointsIDResponse) StatusCode() int { +func (r putDocumentsTemplatesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchNotificationEndpointsIDResponse struct { +type getDocumentsTemplatesIDLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NotificationEndpoint - JSON404 *Error + JSON200 *LabelsResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchNotificationEndpointsIDResponse) Status() string { +func (r getDocumentsTemplatesIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16620,23 +15704,22 @@ func (r patchNotificationEndpointsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchNotificationEndpointsIDResponse) StatusCode() int { +func (r getDocumentsTemplatesIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type putNotificationEndpointsIDResponse struct { +type postDocumentsTemplatesIDLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NotificationEndpoint - JSON404 *Error + JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r putNotificationEndpointsIDResponse) Status() string { +func (r postDocumentsTemplatesIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16644,22 +15727,22 @@ func (r putNotificationEndpointsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r putNotificationEndpointsIDResponse) StatusCode() int { +func (r postDocumentsTemplatesIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getNotificationEndpointsIDLabelsResponse struct { +type deleteDocumentsTemplatesIDLabelsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelsResponse + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getNotificationEndpointsIDLabelsResponse) Status() string { +func (r deleteDocumentsTemplatesIDLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16667,22 +15750,22 @@ func (r getNotificationEndpointsIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getNotificationEndpointsIDLabelsResponse) StatusCode() int { +func (r deleteDocumentsTemplatesIDLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postNotificationEndpointIDLabelsResponse struct { +type getFlagsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *LabelResponse + JSON200 *Flags JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postNotificationEndpointIDLabelsResponse) Status() string { +func (r getFlagsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16690,22 +15773,23 @@ func (r postNotificationEndpointIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postNotificationEndpointIDLabelsResponse) StatusCode() int { +func (r getFlagsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteNotificationEndpointsIDLabelsIDResponse struct { +type getHealthResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON200 *HealthCheck + JSON503 *HealthCheck JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteNotificationEndpointsIDLabelsIDResponse) Status() string { +func (r getHealthResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16713,22 +15797,22 @@ func (r deleteNotificationEndpointsIDLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteNotificationEndpointsIDLabelsIDResponse) StatusCode() int { +func (r getHealthResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getNotificationRulesResponse struct { +type getLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NotificationRules + JSON200 *LabelsResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getNotificationRulesResponse) Status() string { +func (r getLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16736,22 +15820,22 @@ func (r getNotificationRulesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getNotificationRulesResponse) StatusCode() int { +func (r getLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type createNotificationRuleResponse struct { +type postLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *NotificationRule + JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r createNotificationRuleResponse) Status() string { +func (r postLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16759,14 +15843,14 @@ func (r createNotificationRuleResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r createNotificationRuleResponse) StatusCode() int { +func (r postLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteNotificationRulesIDResponse struct { +type deleteLabelsIDResponse struct { Body []byte HTTPResponse *http.Response JSON404 *Error @@ -16774,7 +15858,7 @@ type deleteNotificationRulesIDResponse struct { } // Status returns HTTPResponse.Status -func (r deleteNotificationRulesIDResponse) Status() string { +func (r deleteLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16782,22 +15866,22 @@ func (r deleteNotificationRulesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteNotificationRulesIDResponse) StatusCode() int { +func (r deleteLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getNotificationRulesIDResponse struct { +type getLabelsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NotificationRule + JSON200 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getNotificationRulesIDResponse) Status() string { +func (r getLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16805,23 +15889,23 @@ func (r getNotificationRulesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getNotificationRulesIDResponse) StatusCode() int { +func (r getLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchNotificationRulesIDResponse struct { +type patchLabelsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NotificationRule + JSON200 *LabelResponse JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchNotificationRulesIDResponse) Status() string { +func (r patchLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16829,23 +15913,22 @@ func (r patchNotificationRulesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchNotificationRulesIDResponse) StatusCode() int { +func (r patchLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type putNotificationRulesIDResponse struct { +type getMeResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NotificationRule - JSON404 *Error + JSON200 *User JSONDefault *Error } // Status returns HTTPResponse.Status -func (r putNotificationRulesIDResponse) Status() string { +func (r getMeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16853,22 +15936,21 @@ func (r putNotificationRulesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r putNotificationRulesIDResponse) StatusCode() int { +func (r getMeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getNotificationRulesIDLabelsResponse struct { +type putMePasswordResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelsResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getNotificationRulesIDLabelsResponse) Status() string { +func (r putMePasswordResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16876,22 +15958,22 @@ func (r getNotificationRulesIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getNotificationRulesIDLabelsResponse) StatusCode() int { +func (r putMePasswordResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postNotificationRuleIDLabelsResponse struct { +type getNotificationEndpointsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *LabelResponse + JSON200 *NotificationEndpoints JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postNotificationRuleIDLabelsResponse) Status() string { +func (r getNotificationEndpointsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16899,22 +15981,22 @@ func (r postNotificationRuleIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postNotificationRuleIDLabelsResponse) StatusCode() int { +func (r getNotificationEndpointsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteNotificationRulesIDLabelsIDResponse struct { +type createNotificationEndpointResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON201 *NotificationEndpoint JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteNotificationRulesIDLabelsIDResponse) Status() string { +func (r createNotificationEndpointResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16922,24 +16004,22 @@ func (r deleteNotificationRulesIDLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteNotificationRulesIDLabelsIDResponse) StatusCode() int { +func (r createNotificationEndpointResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getNotificationRulesIDQueryResponse struct { +type deleteNotificationEndpointsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FluxResponse - JSON400 *Error JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getNotificationRulesIDQueryResponse) Status() string { +func (r deleteNotificationEndpointsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16947,22 +16027,22 @@ func (r getNotificationRulesIDQueryResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getNotificationRulesIDQueryResponse) StatusCode() int { +func (r deleteNotificationEndpointsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getOrgsResponse struct { +type getNotificationEndpointsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Organizations + JSON200 *NotificationEndpoint JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getOrgsResponse) Status() string { +func (r getNotificationEndpointsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16970,22 +16050,23 @@ func (r getOrgsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getOrgsResponse) StatusCode() int { +func (r getNotificationEndpointsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postOrgsResponse struct { +type patchNotificationEndpointsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Organization + JSON200 *NotificationEndpoint + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postOrgsResponse) Status() string { +func (r patchNotificationEndpointsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16993,22 +16074,23 @@ func (r postOrgsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postOrgsResponse) StatusCode() int { +func (r patchNotificationEndpointsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteOrgsIDResponse struct { +type putNotificationEndpointsIDResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *NotificationEndpoint JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteOrgsIDResponse) Status() string { +func (r putNotificationEndpointsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17016,22 +16098,22 @@ func (r deleteOrgsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteOrgsIDResponse) StatusCode() int { +func (r putNotificationEndpointsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getOrgsIDResponse struct { +type getNotificationEndpointsIDLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Organization + JSON200 *LabelsResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getOrgsIDResponse) Status() string { +func (r getNotificationEndpointsIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17039,22 +16121,22 @@ func (r getOrgsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getOrgsIDResponse) StatusCode() int { +func (r getNotificationEndpointsIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchOrgsIDResponse struct { +type postNotificationEndpointIDLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Organization + JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchOrgsIDResponse) Status() string { +func (r postNotificationEndpointIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17062,22 +16144,22 @@ func (r patchOrgsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchOrgsIDResponse) StatusCode() int { +func (r postNotificationEndpointIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postOrgsIDInvitesResponse struct { +type deleteNotificationEndpointsIDLabelsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Invite + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postOrgsIDInvitesResponse) Status() string { +func (r deleteNotificationEndpointsIDLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17085,21 +16167,22 @@ func (r postOrgsIDInvitesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postOrgsIDInvitesResponse) StatusCode() int { +func (r deleteNotificationEndpointsIDLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteOrgsIDInviteIDResponse struct { +type getNotificationRulesResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *NotificationRules JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteOrgsIDInviteIDResponse) Status() string { +func (r getNotificationRulesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17107,22 +16190,22 @@ func (r deleteOrgsIDInviteIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteOrgsIDInviteIDResponse) StatusCode() int { +func (r getNotificationRulesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postOrgsIDInviteIDResponse struct { +type createNotificationRuleResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Invite + JSON201 *NotificationRule JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postOrgsIDInviteIDResponse) Status() string { +func (r createNotificationRuleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17130,22 +16213,22 @@ func (r postOrgsIDInviteIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postOrgsIDInviteIDResponse) StatusCode() int { +func (r createNotificationRuleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getOrgsIDLabelsResponse struct { +type deleteNotificationRulesIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelsResponse + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getOrgsIDLabelsResponse) Status() string { +func (r deleteNotificationRulesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17153,22 +16236,22 @@ func (r getOrgsIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getOrgsIDLabelsResponse) StatusCode() int { +func (r deleteNotificationRulesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postOrgsIDLabelsResponse struct { +type getNotificationRulesIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *LabelResponse + JSON200 *NotificationRule JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postOrgsIDLabelsResponse) Status() string { +func (r getNotificationRulesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17176,22 +16259,23 @@ func (r postOrgsIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postOrgsIDLabelsResponse) StatusCode() int { +func (r getNotificationRulesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteOrgsIDLabelsIDResponse struct { +type patchNotificationRulesIDResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *NotificationRule JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteOrgsIDLabelsIDResponse) Status() string { +func (r patchNotificationRulesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17199,23 +16283,23 @@ func (r deleteOrgsIDLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteOrgsIDLabelsIDResponse) StatusCode() int { +func (r patchNotificationRulesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getOrgsIDMembersResponse struct { +type putNotificationRulesIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceMembers + JSON200 *NotificationRule JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getOrgsIDMembersResponse) Status() string { +func (r putNotificationRulesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17223,22 +16307,22 @@ func (r getOrgsIDMembersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getOrgsIDMembersResponse) StatusCode() int { +func (r putNotificationRulesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postOrgsIDMembersResponse struct { +type getNotificationRulesIDLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceMember + JSON200 *LabelsResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postOrgsIDMembersResponse) Status() string { +func (r getNotificationRulesIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17246,21 +16330,22 @@ func (r postOrgsIDMembersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postOrgsIDMembersResponse) StatusCode() int { +func (r getNotificationRulesIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteOrgsIDMembersIDResponse struct { +type postNotificationRuleIDLabelsResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteOrgsIDMembersIDResponse) Status() string { +func (r postNotificationRuleIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17268,23 +16353,22 @@ func (r deleteOrgsIDMembersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteOrgsIDMembersIDResponse) StatusCode() int { +func (r postNotificationRuleIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getOrgsIDOwnersResponse struct { +type deleteNotificationRulesIDLabelsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceOwners JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getOrgsIDOwnersResponse) Status() string { +func (r deleteNotificationRulesIDLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17292,22 +16376,24 @@ func (r getOrgsIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getOrgsIDOwnersResponse) StatusCode() int { +func (r deleteNotificationRulesIDLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postOrgsIDOwnersResponse struct { +type getNotificationRulesIDQueryResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceOwner + JSON200 *FluxResponse + JSON400 *Error + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postOrgsIDOwnersResponse) Status() string { +func (r getNotificationRulesIDQueryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17315,21 +16401,22 @@ func (r postOrgsIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postOrgsIDOwnersResponse) StatusCode() int { +func (r getNotificationRulesIDQueryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteOrgsIDOwnersIDResponse struct { +type getOrgsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Organizations JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteOrgsIDOwnersIDResponse) Status() string { +func (r getOrgsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17337,22 +16424,22 @@ func (r deleteOrgsIDOwnersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteOrgsIDOwnersIDResponse) StatusCode() int { +func (r getOrgsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getOrgsIDSecretsResponse struct { +type postOrgsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SecretKeysResponse + JSON201 *Organization JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getOrgsIDSecretsResponse) Status() string { +func (r postOrgsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17360,21 +16447,22 @@ func (r getOrgsIDSecretsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getOrgsIDSecretsResponse) StatusCode() int { +func (r postOrgsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchOrgsIDSecretsResponse struct { +type deleteOrgsIDResponse struct { Body []byte HTTPResponse *http.Response + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchOrgsIDSecretsResponse) Status() string { +func (r deleteOrgsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17382,21 +16470,22 @@ func (r patchOrgsIDSecretsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchOrgsIDSecretsResponse) StatusCode() int { +func (r deleteOrgsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postOrgsIDSecretsResponse struct { +type getOrgsIDResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Organization JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postOrgsIDSecretsResponse) Status() string { +func (r getOrgsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17404,22 +16493,22 @@ func (r postOrgsIDSecretsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postOrgsIDSecretsResponse) StatusCode() int { +func (r getOrgsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getCloudUsersResponse struct { +type patchOrgsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CloudUsers + JSON200 *Organization JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getCloudUsersResponse) Status() string { +func (r patchOrgsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17427,21 +16516,23 @@ func (r getCloudUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getCloudUsersResponse) StatusCode() int { +func (r patchOrgsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteOrgsIDCloudUserIDResponse struct { +type getOrgsIDMembersResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *ResourceMembers + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteOrgsIDCloudUserIDResponse) Status() string { +func (r getOrgsIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17449,23 +16540,22 @@ func (r deleteOrgsIDCloudUserIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteOrgsIDCloudUserIDResponse) StatusCode() int { +func (r getOrgsIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type createPkgResponse struct { +type postOrgsIDMembersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Pkg - YAML200 *Pkg + JSON201 *ResourceMember JSONDefault *Error } // Status returns HTTPResponse.Status -func (r createPkgResponse) Status() string { +func (r postOrgsIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17473,23 +16563,21 @@ func (r createPkgResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r createPkgResponse) StatusCode() int { +func (r postOrgsIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type applyPkgResponse struct { +type deleteOrgsIDMembersIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PkgSummary - JSON201 *PkgSummary JSONDefault *Error } // Status returns HTTPResponse.Status -func (r applyPkgResponse) Status() string { +func (r deleteOrgsIDMembersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17497,24 +16585,23 @@ func (r applyPkgResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r applyPkgResponse) StatusCode() int { +func (r deleteOrgsIDMembersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type listStacksResponse struct { +type getOrgsIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Stacks *[]Stack `json:"stacks,omitempty"` - } - JSONDefault *Error + JSON200 *ResourceOwners + JSON404 *Error + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r listStacksResponse) Status() string { +func (r getOrgsIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17522,22 +16609,22 @@ func (r listStacksResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r listStacksResponse) StatusCode() int { +func (r getOrgsIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type createStackResponse struct { +type postOrgsIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Stack + JSON201 *ResourceOwner JSONDefault *Error } // Status returns HTTPResponse.Status -func (r createStackResponse) Status() string { +func (r postOrgsIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17545,21 +16632,21 @@ func (r createStackResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r createStackResponse) StatusCode() int { +func (r postOrgsIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteStackResponse struct { +type deleteOrgsIDOwnersIDResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteStackResponse) Status() string { +func (r deleteOrgsIDOwnersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17567,22 +16654,22 @@ func (r deleteStackResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteStackResponse) StatusCode() int { +func (r deleteOrgsIDOwnersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type readStackResponse struct { +type getOrgsIDSecretsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Stack + JSON200 *SecretKeysResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r readStackResponse) Status() string { +func (r getOrgsIDSecretsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17590,22 +16677,21 @@ func (r readStackResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r readStackResponse) StatusCode() int { +func (r getOrgsIDSecretsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type updateStackResponse struct { +type patchOrgsIDSecretsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Stack JSONDefault *Error } // Status returns HTTPResponse.Status -func (r updateStackResponse) Status() string { +func (r patchOrgsIDSecretsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17613,23 +16699,21 @@ func (r updateStackResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r updateStackResponse) StatusCode() int { +func (r patchOrgsIDSecretsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type exportStackResponse struct { +type postOrgsIDSecretsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Pkg - YAML200 *Pkg JSONDefault *Error } // Status returns HTTPResponse.Status -func (r exportStackResponse) Status() string { +func (r postOrgsIDSecretsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -17637,7 +16721,7 @@ func (r exportStackResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r exportStackResponse) StatusCode() int { +func (r postOrgsIDSecretsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -18137,209 +17221,22 @@ func (r getSetupResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getSetupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type postSetupResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *OnboardingResponse - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r postSetupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r postSetupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type postSetupUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *OnboardingResponse - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r postSetupUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r postSetupUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type postSigninResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Error - JSON403 *Error - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r postSigninResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r postSigninResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type postSignoutResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Error - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r postSignoutResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r postSignoutResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type getSourcesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Sources - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r getSourcesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r getSourcesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type postSourcesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Source - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r postSourcesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r postSourcesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type deleteSourcesIDResponse struct { - Body []byte - HTTPResponse *http.Response - JSON404 *Error - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r deleteSourcesIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r deleteSourcesIDResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type getSourcesIDResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Source - JSON404 *Error - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r getSourcesIDResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r getSourcesIDResponse) StatusCode() int { +func (r getSetupResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchSourcesIDResponse struct { +type postSetupResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Source - JSON404 *Error + JSON201 *OnboardingResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchSourcesIDResponse) Status() string { +func (r postSetupResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18347,23 +17244,22 @@ func (r patchSourcesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchSourcesIDResponse) StatusCode() int { +func (r postSetupResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getSourcesIDBucketsResponse struct { +type postSetupUserResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Buckets - JSON404 *Error + JSON201 *OnboardingResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getSourcesIDBucketsResponse) Status() string { +func (r postSetupUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18371,23 +17267,23 @@ func (r getSourcesIDBucketsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getSourcesIDBucketsResponse) StatusCode() int { +func (r postSetupUserResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getSourcesIDHealthResponse struct { +type postSigninResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *HealthCheck - JSON503 *HealthCheck + JSON401 *Error + JSON403 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getSourcesIDHealthResponse) Status() string { +func (r postSigninResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18395,22 +17291,22 @@ func (r getSourcesIDHealthResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getSourcesIDHealthResponse) StatusCode() int { +func (r postSigninResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTasksResponse struct { +type postSignoutResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Tasks + JSON401 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTasksResponse) Status() string { +func (r postSignoutResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18418,22 +17314,22 @@ func (r getTasksResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTasksResponse) StatusCode() int { +func (r postSignoutResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTasksResponse struct { +type getSourcesResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Task + JSON200 *Sources JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTasksResponse) Status() string { +func (r getSourcesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18441,21 +17337,22 @@ func (r postTasksResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTasksResponse) StatusCode() int { +func (r getSourcesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteTasksIDResponse struct { +type postSourcesResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *Source JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteTasksIDResponse) Status() string { +func (r postSourcesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18463,22 +17360,22 @@ func (r deleteTasksIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteTasksIDResponse) StatusCode() int { +func (r postSourcesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTasksIDResponse struct { +type deleteSourcesIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Task + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTasksIDResponse) Status() string { +func (r deleteSourcesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18486,22 +17383,23 @@ func (r getTasksIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTasksIDResponse) StatusCode() int { +func (r deleteSourcesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchTasksIDResponse struct { +type getSourcesIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Task + JSON200 *Source + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchTasksIDResponse) Status() string { +func (r getSourcesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18509,22 +17407,23 @@ func (r patchTasksIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchTasksIDResponse) StatusCode() int { +func (r getSourcesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTasksIDLabelsResponse struct { +type patchSourcesIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelsResponse + JSON200 *Source + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTasksIDLabelsResponse) Status() string { +func (r patchSourcesIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18532,22 +17431,23 @@ func (r getTasksIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTasksIDLabelsResponse) StatusCode() int { +func (r patchSourcesIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTasksIDLabelsResponse struct { +type getSourcesIDBucketsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *LabelResponse + JSON200 *Buckets + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTasksIDLabelsResponse) Status() string { +func (r getSourcesIDBucketsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18555,22 +17455,23 @@ func (r postTasksIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTasksIDLabelsResponse) StatusCode() int { +func (r getSourcesIDBucketsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteTasksIDLabelsIDResponse struct { +type getSourcesIDHealthResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON200 *HealthCheck + JSON503 *HealthCheck JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteTasksIDLabelsIDResponse) Status() string { +func (r getSourcesIDHealthResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18578,22 +17479,24 @@ func (r deleteTasksIDLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteTasksIDLabelsIDResponse) StatusCode() int { +func (r getSourcesIDHealthResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTasksIDLogsResponse struct { +type listStacksResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Logs - JSONDefault *Error + JSON200 *struct { + Stacks *[]Stack `json:"stacks,omitempty"` + } + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTasksIDLogsResponse) Status() string { +func (r listStacksResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18601,22 +17504,22 @@ func (r getTasksIDLogsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTasksIDLogsResponse) StatusCode() int { +func (r listStacksResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTasksIDMembersResponse struct { +type createStackResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceMembers + JSON201 *Stack JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTasksIDMembersResponse) Status() string { +func (r createStackResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18624,22 +17527,21 @@ func (r getTasksIDMembersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTasksIDMembersResponse) StatusCode() int { +func (r createStackResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTasksIDMembersResponse struct { +type deleteStackResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceMember JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTasksIDMembersResponse) Status() string { +func (r deleteStackResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18647,21 +17549,22 @@ func (r postTasksIDMembersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTasksIDMembersResponse) StatusCode() int { +func (r deleteStackResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteTasksIDMembersIDResponse struct { +type readStackResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Stack JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteTasksIDMembersIDResponse) Status() string { +func (r readStackResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18669,22 +17572,22 @@ func (r deleteTasksIDMembersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteTasksIDMembersIDResponse) StatusCode() int { +func (r readStackResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTasksIDOwnersResponse struct { +type updateStackResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceOwners + JSON200 *Stack JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTasksIDOwnersResponse) Status() string { +func (r updateStackResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18692,22 +17595,22 @@ func (r getTasksIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTasksIDOwnersResponse) StatusCode() int { +func (r updateStackResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTasksIDOwnersResponse struct { +type uninstallStackResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceOwner + JSON200 *Stack JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTasksIDOwnersResponse) Status() string { +func (r uninstallStackResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18715,21 +17618,22 @@ func (r postTasksIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTasksIDOwnersResponse) StatusCode() int { +func (r uninstallStackResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteTasksIDOwnersIDResponse struct { +type getTasksResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Tasks JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteTasksIDOwnersIDResponse) Status() string { +func (r getTasksResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18737,22 +17641,22 @@ func (r deleteTasksIDOwnersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteTasksIDOwnersIDResponse) StatusCode() int { +func (r getTasksResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTasksIDRunsResponse struct { +type postTasksResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Runs + JSON201 *Task JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTasksIDRunsResponse) Status() string { +func (r postTasksResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18760,22 +17664,21 @@ func (r getTasksIDRunsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTasksIDRunsResponse) StatusCode() int { +func (r postTasksResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTasksIDRunsResponse struct { +type deleteTasksIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Run JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTasksIDRunsResponse) Status() string { +func (r deleteTasksIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18783,21 +17686,22 @@ func (r postTasksIDRunsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTasksIDRunsResponse) StatusCode() int { +func (r deleteTasksIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteTasksIDRunsIDResponse struct { +type getTasksIDResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Task JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteTasksIDRunsIDResponse) Status() string { +func (r getTasksIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18805,22 +17709,22 @@ func (r deleteTasksIDRunsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteTasksIDRunsIDResponse) StatusCode() int { +func (r getTasksIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTasksIDRunsIDResponse struct { +type patchTasksIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Run + JSON200 *Task JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTasksIDRunsIDResponse) Status() string { +func (r patchTasksIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18828,22 +17732,22 @@ func (r getTasksIDRunsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTasksIDRunsIDResponse) StatusCode() int { +func (r patchTasksIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTasksIDRunsIDLogsResponse struct { +type getTasksIDLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Logs + JSON200 *LabelsResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTasksIDRunsIDLogsResponse) Status() string { +func (r getTasksIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18851,22 +17755,22 @@ func (r getTasksIDRunsIDLogsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTasksIDRunsIDLogsResponse) StatusCode() int { +func (r getTasksIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTasksIDRunsIDRetryResponse struct { +type postTasksIDLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Run + JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTasksIDRunsIDRetryResponse) Status() string { +func (r postTasksIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18874,22 +17778,22 @@ func (r postTasksIDRunsIDRetryResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTasksIDRunsIDRetryResponse) StatusCode() int { +func (r postTasksIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTelegrafPluginsResponse struct { +type deleteTasksIDLabelsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *TelegrafPlugins + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTelegrafPluginsResponse) Status() string { +func (r deleteTasksIDLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18897,22 +17801,22 @@ func (r getTelegrafPluginsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTelegrafPluginsResponse) StatusCode() int { +func (r deleteTasksIDLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTelegrafsResponse struct { +type getTasksIDLogsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Telegrafs + JSON200 *Logs JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTelegrafsResponse) Status() string { +func (r getTasksIDLogsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18920,22 +17824,22 @@ func (r getTelegrafsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTelegrafsResponse) StatusCode() int { +func (r getTasksIDLogsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTelegrafsResponse struct { +type getTasksIDMembersResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Telegraf + JSON200 *ResourceMembers JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTelegrafsResponse) Status() string { +func (r getTasksIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18943,21 +17847,22 @@ func (r postTelegrafsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTelegrafsResponse) StatusCode() int { +func (r getTasksIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteTelegrafsIDResponse struct { +type postTasksIDMembersResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *ResourceMember JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteTelegrafsIDResponse) Status() string { +func (r postTasksIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18965,22 +17870,21 @@ func (r deleteTelegrafsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteTelegrafsIDResponse) StatusCode() int { +func (r postTasksIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTelegrafsIDResponse struct { +type deleteTasksIDMembersIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Telegraf JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTelegrafsIDResponse) Status() string { +func (r deleteTasksIDMembersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -18988,22 +17892,22 @@ func (r getTelegrafsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTelegrafsIDResponse) StatusCode() int { +func (r deleteTasksIDMembersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type putTelegrafsIDResponse struct { +type getTasksIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Telegraf + JSON200 *ResourceOwners JSONDefault *Error } // Status returns HTTPResponse.Status -func (r putTelegrafsIDResponse) Status() string { +func (r getTasksIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19011,22 +17915,22 @@ func (r putTelegrafsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r putTelegrafsIDResponse) StatusCode() int { +func (r getTasksIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTelegrafsIDLabelsResponse struct { +type postTasksIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelsResponse + JSON201 *ResourceOwner JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTelegrafsIDLabelsResponse) Status() string { +func (r postTasksIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19034,22 +17938,21 @@ func (r getTelegrafsIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTelegrafsIDLabelsResponse) StatusCode() int { +func (r postTasksIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTelegrafsIDLabelsResponse struct { +type deleteTasksIDOwnersIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTelegrafsIDLabelsResponse) Status() string { +func (r deleteTasksIDOwnersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19057,22 +17960,22 @@ func (r postTelegrafsIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTelegrafsIDLabelsResponse) StatusCode() int { +func (r deleteTasksIDOwnersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteTelegrafsIDLabelsIDResponse struct { +type getTasksIDRunsResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON200 *Runs JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteTelegrafsIDLabelsIDResponse) Status() string { +func (r getTasksIDRunsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19080,22 +17983,22 @@ func (r deleteTelegrafsIDLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteTelegrafsIDLabelsIDResponse) StatusCode() int { +func (r getTasksIDRunsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTelegrafsIDMembersResponse struct { +type postTasksIDRunsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceMembers + JSON201 *Run JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTelegrafsIDMembersResponse) Status() string { +func (r postTasksIDRunsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19103,22 +18006,21 @@ func (r getTelegrafsIDMembersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTelegrafsIDMembersResponse) StatusCode() int { +func (r postTasksIDRunsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTelegrafsIDMembersResponse struct { +type deleteTasksIDRunsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceMember JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTelegrafsIDMembersResponse) Status() string { +func (r deleteTasksIDRunsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19126,21 +18028,22 @@ func (r postTelegrafsIDMembersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTelegrafsIDMembersResponse) StatusCode() int { +func (r deleteTasksIDRunsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteTelegrafsIDMembersIDResponse struct { +type getTasksIDRunsIDResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Run JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteTelegrafsIDMembersIDResponse) Status() string { +func (r getTasksIDRunsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19148,22 +18051,22 @@ func (r deleteTelegrafsIDMembersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteTelegrafsIDMembersIDResponse) StatusCode() int { +func (r getTasksIDRunsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getTelegrafsIDOwnersResponse struct { +type getTasksIDRunsIDLogsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceOwners + JSON200 *Logs JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getTelegrafsIDOwnersResponse) Status() string { +func (r getTasksIDRunsIDLogsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19171,22 +18074,22 @@ func (r getTelegrafsIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getTelegrafsIDOwnersResponse) StatusCode() int { +func (r getTasksIDRunsIDLogsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postTelegrafsIDOwnersResponse struct { +type postTasksIDRunsIDRetryResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ResourceOwner + JSON200 *Run JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postTelegrafsIDOwnersResponse) Status() string { +func (r postTasksIDRunsIDRetryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19194,21 +18097,22 @@ func (r postTelegrafsIDOwnersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postTelegrafsIDOwnersResponse) StatusCode() int { +func (r postTasksIDRunsIDRetryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteTelegrafsIDOwnersIDResponse struct { +type getTelegrafPluginsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *TelegrafPlugins JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteTelegrafsIDOwnersIDResponse) Status() string { +func (r getTelegrafPluginsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19216,22 +18120,22 @@ func (r deleteTelegrafsIDOwnersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteTelegrafsIDOwnersIDResponse) StatusCode() int { +func (r getTelegrafPluginsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getUsersResponse struct { +type getTelegrafsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Users + JSON200 *Telegrafs JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getUsersResponse) Status() string { +func (r getTelegrafsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19239,22 +18143,22 @@ func (r getUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getUsersResponse) StatusCode() int { +func (r getTelegrafsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postUsersResponse struct { +type postTelegrafsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *User + JSON201 *Telegraf JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postUsersResponse) Status() string { +func (r postTelegrafsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19262,21 +18166,21 @@ func (r postUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postUsersResponse) StatusCode() int { +func (r postTelegrafsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteUsersIDResponse struct { +type deleteTelegrafsIDResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteUsersIDResponse) Status() string { +func (r deleteTelegrafsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19284,22 +18188,22 @@ func (r deleteUsersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteUsersIDResponse) StatusCode() int { +func (r deleteTelegrafsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getUsersIDResponse struct { +type getTelegrafsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *User + JSON200 *Telegraf JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getUsersIDResponse) Status() string { +func (r getTelegrafsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19307,22 +18211,22 @@ func (r getUsersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getUsersIDResponse) StatusCode() int { +func (r getTelegrafsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchUsersIDResponse struct { +type putTelegrafsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *User + JSON200 *Telegraf JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchUsersIDResponse) Status() string { +func (r putTelegrafsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19330,21 +18234,22 @@ func (r patchUsersIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchUsersIDResponse) StatusCode() int { +func (r putTelegrafsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postUsersIDPasswordResponse struct { +type getTelegrafsIDLabelsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *LabelsResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postUsersIDPasswordResponse) Status() string { +func (r getTelegrafsIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19352,23 +18257,22 @@ func (r postUsersIDPasswordResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postUsersIDPasswordResponse) StatusCode() int { +func (r getTelegrafsIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getVariablesResponse struct { +type postTelegrafsIDLabelsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Variables - JSON400 *Error + JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getVariablesResponse) Status() string { +func (r postTelegrafsIDLabelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19376,22 +18280,22 @@ func (r getVariablesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getVariablesResponse) StatusCode() int { +func (r postTelegrafsIDLabelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postVariablesResponse struct { +type deleteTelegrafsIDLabelsIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Variable + JSON404 *Error JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postVariablesResponse) Status() string { +func (r deleteTelegrafsIDLabelsIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19399,21 +18303,22 @@ func (r postVariablesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postVariablesResponse) StatusCode() int { +func (r deleteTelegrafsIDLabelsIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteVariablesIDResponse struct { +type getTelegrafsIDMembersResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *ResourceMembers JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteVariablesIDResponse) Status() string { +func (r getTelegrafsIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19421,23 +18326,22 @@ func (r deleteVariablesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteVariablesIDResponse) StatusCode() int { +func (r getTelegrafsIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getVariablesIDResponse struct { +type postTelegrafsIDMembersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Variable - JSON404 *Error + JSON201 *ResourceMember JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getVariablesIDResponse) Status() string { +func (r postTelegrafsIDMembersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19445,22 +18349,21 @@ func (r getVariablesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getVariablesIDResponse) StatusCode() int { +func (r postTelegrafsIDMembersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type patchVariablesIDResponse struct { +type deleteTelegrafsIDMembersIDResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Variable JSONDefault *Error } // Status returns HTTPResponse.Status -func (r patchVariablesIDResponse) Status() string { +func (r deleteTelegrafsIDMembersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19468,22 +18371,22 @@ func (r patchVariablesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r patchVariablesIDResponse) StatusCode() int { +func (r deleteTelegrafsIDMembersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type putVariablesIDResponse struct { +type getTelegrafsIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Variable + JSON200 *ResourceOwners JSONDefault *Error } // Status returns HTTPResponse.Status -func (r putVariablesIDResponse) Status() string { +func (r getTelegrafsIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19491,22 +18394,22 @@ func (r putVariablesIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r putVariablesIDResponse) StatusCode() int { +func (r getTelegrafsIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type getVariablesIDLabelsResponse struct { +type postTelegrafsIDOwnersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LabelsResponse + JSON201 *ResourceOwner JSONDefault *Error } // Status returns HTTPResponse.Status -func (r getVariablesIDLabelsResponse) Status() string { +func (r postTelegrafsIDOwnersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19514,22 +18417,21 @@ func (r getVariablesIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r getVariablesIDLabelsResponse) StatusCode() int { +func (r postTelegrafsIDOwnersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postVariablesIDLabelsResponse struct { +type deleteTelegrafsIDOwnersIDResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *LabelResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postVariablesIDLabelsResponse) Status() string { +func (r deleteTelegrafsIDOwnersIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19537,22 +18439,23 @@ func (r postVariablesIDLabelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postVariablesIDLabelsResponse) StatusCode() int { +func (r deleteTelegrafsIDOwnersIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type deleteVariablesIDLabelsIDResponse struct { +type applyTemplateResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON200 *TemplateSummary + JSON201 *TemplateSummary JSONDefault *Error } // Status returns HTTPResponse.Status -func (r deleteVariablesIDLabelsIDResponse) Status() string { +func (r applyTemplateResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19560,25 +18463,23 @@ func (r deleteVariablesIDLabelsIDResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r deleteVariablesIDLabelsIDResponse) StatusCode() int { +func (r applyTemplateResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type postWriteResponse struct { +type exportTemplateResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *LineProtocolError - JSON401 *Error - JSON403 *Error - JSON413 *LineProtocolLengthError + JSON200 *Template + YAML200 *Template JSONDefault *Error } // Status returns HTTPResponse.Status -func (r postWriteResponse) Status() string { +func (r exportTemplateResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -19586,3060 +18487,2814 @@ func (r postWriteResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r postWriteResponse) StatusCode() int { +func (r exportTemplateResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -// GetRoutesWithResponse request returning *GetRoutesResponse -func (c *ClientWithResponses) GetRoutesWithResponse(ctx context.Context, params *GetRoutesParams) (*getRoutesResponse, error) { - rsp, err := c.GetRoutes(ctx, params) - if err != nil { - return nil, err - } - return ParseGetRoutesResponse(rsp) -} - -// GetAuthorizationsWithResponse request returning *GetAuthorizationsResponse -func (c *ClientWithResponses) GetAuthorizationsWithResponse(ctx context.Context, params *GetAuthorizationsParams) (*getAuthorizationsResponse, error) { - rsp, err := c.GetAuthorizations(ctx, params) - if err != nil { - return nil, err - } - return ParseGetAuthorizationsResponse(rsp) -} - -// PostAuthorizationsWithBodyWithResponse request with arbitrary body returning *PostAuthorizationsResponse -func (c *ClientWithResponses) PostAuthorizationsWithBodyWithResponse(ctx context.Context, params *PostAuthorizationsParams, contentType string, body io.Reader) (*postAuthorizationsResponse, error) { - rsp, err := c.PostAuthorizationsWithBody(ctx, params, contentType, body) - if err != nil { - return nil, err - } - return ParsePostAuthorizationsResponse(rsp) -} - -func (c *ClientWithResponses) PostAuthorizationsWithResponse(ctx context.Context, params *PostAuthorizationsParams, body PostAuthorizationsJSONRequestBody) (*postAuthorizationsResponse, error) { - rsp, err := c.PostAuthorizations(ctx, params, body) - if err != nil { - return nil, err - } - return ParsePostAuthorizationsResponse(rsp) -} - -// DeleteAuthorizationsIDWithResponse request returning *DeleteAuthorizationsIDResponse -func (c *ClientWithResponses) DeleteAuthorizationsIDWithResponse(ctx context.Context, authID string, params *DeleteAuthorizationsIDParams) (*deleteAuthorizationsIDResponse, error) { - rsp, err := c.DeleteAuthorizationsID(ctx, authID, params) - if err != nil { - return nil, err - } - return ParseDeleteAuthorizationsIDResponse(rsp) -} - -// GetAuthorizationsIDWithResponse request returning *GetAuthorizationsIDResponse -func (c *ClientWithResponses) GetAuthorizationsIDWithResponse(ctx context.Context, authID string, params *GetAuthorizationsIDParams) (*getAuthorizationsIDResponse, error) { - rsp, err := c.GetAuthorizationsID(ctx, authID, params) - if err != nil { - return nil, err - } - return ParseGetAuthorizationsIDResponse(rsp) -} - -// PatchAuthorizationsIDWithBodyWithResponse request with arbitrary body returning *PatchAuthorizationsIDResponse -func (c *ClientWithResponses) PatchAuthorizationsIDWithBodyWithResponse(ctx context.Context, authID string, params *PatchAuthorizationsIDParams, contentType string, body io.Reader) (*patchAuthorizationsIDResponse, error) { - rsp, err := c.PatchAuthorizationsIDWithBody(ctx, authID, params, contentType, body) - if err != nil { - return nil, err - } - return ParsePatchAuthorizationsIDResponse(rsp) +type getUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Users + JSONDefault *Error } -func (c *ClientWithResponses) PatchAuthorizationsIDWithResponse(ctx context.Context, authID string, params *PatchAuthorizationsIDParams, body PatchAuthorizationsIDJSONRequestBody) (*patchAuthorizationsIDResponse, error) { - rsp, err := c.PatchAuthorizationsID(ctx, authID, params, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r getUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePatchAuthorizationsIDResponse(rsp) + return http.StatusText(0) } -// GetBucketsWithResponse request returning *GetBucketsResponse -func (c *ClientWithResponses) GetBucketsWithResponse(ctx context.Context, params *GetBucketsParams) (*getBucketsResponse, error) { - rsp, err := c.GetBuckets(ctx, params) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r getUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetBucketsResponse(rsp) + return 0 } -// PostBucketsWithBodyWithResponse request with arbitrary body returning *PostBucketsResponse -func (c *ClientWithResponses) PostBucketsWithBodyWithResponse(ctx context.Context, params *PostBucketsParams, contentType string, body io.Reader) (*postBucketsResponse, error) { - rsp, err := c.PostBucketsWithBody(ctx, params, contentType, body) - if err != nil { - return nil, err - } - return ParsePostBucketsResponse(rsp) +type postUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *User + JSONDefault *Error } -func (c *ClientWithResponses) PostBucketsWithResponse(ctx context.Context, params *PostBucketsParams, body PostBucketsJSONRequestBody) (*postBucketsResponse, error) { - rsp, err := c.PostBuckets(ctx, params, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r postUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePostBucketsResponse(rsp) + return http.StatusText(0) } -// DeleteBucketsIDWithResponse request returning *DeleteBucketsIDResponse -func (c *ClientWithResponses) DeleteBucketsIDWithResponse(ctx context.Context, bucketID string, params *DeleteBucketsIDParams) (*deleteBucketsIDResponse, error) { - rsp, err := c.DeleteBucketsID(ctx, bucketID, params) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r postUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteBucketsIDResponse(rsp) + return 0 } -// GetBucketsIDWithResponse request returning *GetBucketsIDResponse -func (c *ClientWithResponses) GetBucketsIDWithResponse(ctx context.Context, bucketID string, params *GetBucketsIDParams) (*getBucketsIDResponse, error) { - rsp, err := c.GetBucketsID(ctx, bucketID, params) - if err != nil { - return nil, err - } - return ParseGetBucketsIDResponse(rsp) +type deleteUsersIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// PatchBucketsIDWithBodyWithResponse request with arbitrary body returning *PatchBucketsIDResponse -func (c *ClientWithResponses) PatchBucketsIDWithBodyWithResponse(ctx context.Context, bucketID string, params *PatchBucketsIDParams, contentType string, body io.Reader) (*patchBucketsIDResponse, error) { - rsp, err := c.PatchBucketsIDWithBody(ctx, bucketID, params, contentType, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r deleteUsersIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePatchBucketsIDResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) PatchBucketsIDWithResponse(ctx context.Context, bucketID string, params *PatchBucketsIDParams, body PatchBucketsIDJSONRequestBody) (*patchBucketsIDResponse, error) { - rsp, err := c.PatchBucketsID(ctx, bucketID, params, body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r deleteUsersIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePatchBucketsIDResponse(rsp) + return 0 } -// GetBucketsIDLabelsWithResponse request returning *GetBucketsIDLabelsResponse -func (c *ClientWithResponses) GetBucketsIDLabelsWithResponse(ctx context.Context, bucketID string, params *GetBucketsIDLabelsParams) (*getBucketsIDLabelsResponse, error) { - rsp, err := c.GetBucketsIDLabels(ctx, bucketID, params) - if err != nil { - return nil, err - } - return ParseGetBucketsIDLabelsResponse(rsp) +type getUsersIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSONDefault *Error } -// PostBucketsIDLabelsWithBodyWithResponse request with arbitrary body returning *PostBucketsIDLabelsResponse -func (c *ClientWithResponses) PostBucketsIDLabelsWithBodyWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDLabelsParams, contentType string, body io.Reader) (*postBucketsIDLabelsResponse, error) { - rsp, err := c.PostBucketsIDLabelsWithBody(ctx, bucketID, params, contentType, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r getUsersIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePostBucketsIDLabelsResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) PostBucketsIDLabelsWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDLabelsParams, body PostBucketsIDLabelsJSONRequestBody) (*postBucketsIDLabelsResponse, error) { - rsp, err := c.PostBucketsIDLabels(ctx, bucketID, params, body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r getUsersIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePostBucketsIDLabelsResponse(rsp) + return 0 } -// DeleteBucketsIDLabelsIDWithResponse request returning *DeleteBucketsIDLabelsIDResponse -func (c *ClientWithResponses) DeleteBucketsIDLabelsIDWithResponse(ctx context.Context, bucketID string, labelID string, params *DeleteBucketsIDLabelsIDParams) (*deleteBucketsIDLabelsIDResponse, error) { - rsp, err := c.DeleteBucketsIDLabelsID(ctx, bucketID, labelID, params) - if err != nil { - return nil, err - } - return ParseDeleteBucketsIDLabelsIDResponse(rsp) +type patchUsersIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSONDefault *Error } -// GetBucketsIDMembersWithResponse request returning *GetBucketsIDMembersResponse -func (c *ClientWithResponses) GetBucketsIDMembersWithResponse(ctx context.Context, bucketID string, params *GetBucketsIDMembersParams) (*getBucketsIDMembersResponse, error) { - rsp, err := c.GetBucketsIDMembers(ctx, bucketID, params) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r patchUsersIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetBucketsIDMembersResponse(rsp) + return http.StatusText(0) } -// PostBucketsIDMembersWithBodyWithResponse request with arbitrary body returning *PostBucketsIDMembersResponse -func (c *ClientWithResponses) PostBucketsIDMembersWithBodyWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDMembersParams, contentType string, body io.Reader) (*postBucketsIDMembersResponse, error) { - rsp, err := c.PostBucketsIDMembersWithBody(ctx, bucketID, params, contentType, body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r patchUsersIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePostBucketsIDMembersResponse(rsp) + return 0 } -func (c *ClientWithResponses) PostBucketsIDMembersWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDMembersParams, body PostBucketsIDMembersJSONRequestBody) (*postBucketsIDMembersResponse, error) { - rsp, err := c.PostBucketsIDMembers(ctx, bucketID, params, body) - if err != nil { - return nil, err - } - return ParsePostBucketsIDMembersResponse(rsp) +type postUsersIDPasswordResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// DeleteBucketsIDMembersIDWithResponse request returning *DeleteBucketsIDMembersIDResponse -func (c *ClientWithResponses) DeleteBucketsIDMembersIDWithResponse(ctx context.Context, bucketID string, userID string, params *DeleteBucketsIDMembersIDParams) (*deleteBucketsIDMembersIDResponse, error) { - rsp, err := c.DeleteBucketsIDMembersID(ctx, bucketID, userID, params) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r postUsersIDPasswordResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteBucketsIDMembersIDResponse(rsp) + return http.StatusText(0) } -// GetBucketsIDOwnersWithResponse request returning *GetBucketsIDOwnersResponse -func (c *ClientWithResponses) GetBucketsIDOwnersWithResponse(ctx context.Context, bucketID string, params *GetBucketsIDOwnersParams) (*getBucketsIDOwnersResponse, error) { - rsp, err := c.GetBucketsIDOwners(ctx, bucketID, params) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r postUsersIDPasswordResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetBucketsIDOwnersResponse(rsp) + return 0 } -// PostBucketsIDOwnersWithBodyWithResponse request with arbitrary body returning *PostBucketsIDOwnersResponse -func (c *ClientWithResponses) PostBucketsIDOwnersWithBodyWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDOwnersParams, contentType string, body io.Reader) (*postBucketsIDOwnersResponse, error) { - rsp, err := c.PostBucketsIDOwnersWithBody(ctx, bucketID, params, contentType, body) - if err != nil { - return nil, err - } - return ParsePostBucketsIDOwnersResponse(rsp) +type getVariablesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Variables + JSON400 *Error + JSONDefault *Error } -func (c *ClientWithResponses) PostBucketsIDOwnersWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDOwnersParams, body PostBucketsIDOwnersJSONRequestBody) (*postBucketsIDOwnersResponse, error) { - rsp, err := c.PostBucketsIDOwners(ctx, bucketID, params, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r getVariablesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePostBucketsIDOwnersResponse(rsp) + return http.StatusText(0) } -// DeleteBucketsIDOwnersIDWithResponse request returning *DeleteBucketsIDOwnersIDResponse -func (c *ClientWithResponses) DeleteBucketsIDOwnersIDWithResponse(ctx context.Context, bucketID string, userID string, params *DeleteBucketsIDOwnersIDParams) (*deleteBucketsIDOwnersIDResponse, error) { - rsp, err := c.DeleteBucketsIDOwnersID(ctx, bucketID, userID, params) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r getVariablesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteBucketsIDOwnersIDResponse(rsp) + return 0 } -// GetChecksWithResponse request returning *GetChecksResponse -func (c *ClientWithResponses) GetChecksWithResponse(ctx context.Context, params *GetChecksParams) (*getChecksResponse, error) { - rsp, err := c.GetChecks(ctx, params) - if err != nil { - return nil, err - } - return ParseGetChecksResponse(rsp) +type postVariablesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Variable + JSONDefault *Error } -// CreateCheckWithBodyWithResponse request with arbitrary body returning *CreateCheckResponse -func (c *ClientWithResponses) CreateCheckWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createCheckResponse, error) { - rsp, err := c.CreateCheckWithBody(ctx, contentType, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r postVariablesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateCheckResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateCheckWithResponse(ctx context.Context, body CreateCheckJSONRequestBody) (*createCheckResponse, error) { - rsp, err := c.CreateCheck(ctx, body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r postVariablesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateCheckResponse(rsp) + return 0 } -// DeleteChecksIDWithResponse request returning *DeleteChecksIDResponse -func (c *ClientWithResponses) DeleteChecksIDWithResponse(ctx context.Context, checkID string, params *DeleteChecksIDParams) (*deleteChecksIDResponse, error) { - rsp, err := c.DeleteChecksID(ctx, checkID, params) - if err != nil { - return nil, err - } - return ParseDeleteChecksIDResponse(rsp) +type deleteVariablesIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// GetChecksIDWithResponse request returning *GetChecksIDResponse -func (c *ClientWithResponses) GetChecksIDWithResponse(ctx context.Context, checkID string, params *GetChecksIDParams) (*getChecksIDResponse, error) { - rsp, err := c.GetChecksID(ctx, checkID, params) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r deleteVariablesIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetChecksIDResponse(rsp) + return http.StatusText(0) } -// PatchChecksIDWithBodyWithResponse request with arbitrary body returning *PatchChecksIDResponse -func (c *ClientWithResponses) PatchChecksIDWithBodyWithResponse(ctx context.Context, checkID string, params *PatchChecksIDParams, contentType string, body io.Reader) (*patchChecksIDResponse, error) { - rsp, err := c.PatchChecksIDWithBody(ctx, checkID, params, contentType, body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r deleteVariablesIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePatchChecksIDResponse(rsp) + return 0 } -func (c *ClientWithResponses) PatchChecksIDWithResponse(ctx context.Context, checkID string, params *PatchChecksIDParams, body PatchChecksIDJSONRequestBody) (*patchChecksIDResponse, error) { - rsp, err := c.PatchChecksID(ctx, checkID, params, body) - if err != nil { - return nil, err - } - return ParsePatchChecksIDResponse(rsp) +type getVariablesIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Variable + JSON404 *Error + JSONDefault *Error } -// PutChecksIDWithBodyWithResponse request with arbitrary body returning *PutChecksIDResponse -func (c *ClientWithResponses) PutChecksIDWithBodyWithResponse(ctx context.Context, checkID string, params *PutChecksIDParams, contentType string, body io.Reader) (*putChecksIDResponse, error) { - rsp, err := c.PutChecksIDWithBody(ctx, checkID, params, contentType, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r getVariablesIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePutChecksIDResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) PutChecksIDWithResponse(ctx context.Context, checkID string, params *PutChecksIDParams, body PutChecksIDJSONRequestBody) (*putChecksIDResponse, error) { - rsp, err := c.PutChecksID(ctx, checkID, params, body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r getVariablesIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePutChecksIDResponse(rsp) + return 0 } -// GetChecksIDLabelsWithResponse request returning *GetChecksIDLabelsResponse -func (c *ClientWithResponses) GetChecksIDLabelsWithResponse(ctx context.Context, checkID string, params *GetChecksIDLabelsParams) (*getChecksIDLabelsResponse, error) { - rsp, err := c.GetChecksIDLabels(ctx, checkID, params) - if err != nil { - return nil, err - } - return ParseGetChecksIDLabelsResponse(rsp) +type patchVariablesIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Variable + JSONDefault *Error } -// PostChecksIDLabelsWithBodyWithResponse request with arbitrary body returning *PostChecksIDLabelsResponse -func (c *ClientWithResponses) PostChecksIDLabelsWithBodyWithResponse(ctx context.Context, checkID string, params *PostChecksIDLabelsParams, contentType string, body io.Reader) (*postChecksIDLabelsResponse, error) { - rsp, err := c.PostChecksIDLabelsWithBody(ctx, checkID, params, contentType, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r patchVariablesIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePostChecksIDLabelsResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) PostChecksIDLabelsWithResponse(ctx context.Context, checkID string, params *PostChecksIDLabelsParams, body PostChecksIDLabelsJSONRequestBody) (*postChecksIDLabelsResponse, error) { - rsp, err := c.PostChecksIDLabels(ctx, checkID, params, body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r patchVariablesIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePostChecksIDLabelsResponse(rsp) + return 0 } -// DeleteChecksIDLabelsIDWithResponse request returning *DeleteChecksIDLabelsIDResponse -func (c *ClientWithResponses) DeleteChecksIDLabelsIDWithResponse(ctx context.Context, checkID string, labelID string, params *DeleteChecksIDLabelsIDParams) (*deleteChecksIDLabelsIDResponse, error) { - rsp, err := c.DeleteChecksIDLabelsID(ctx, checkID, labelID, params) - if err != nil { - return nil, err - } - return ParseDeleteChecksIDLabelsIDResponse(rsp) +type putVariablesIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Variable + JSONDefault *Error } -// GetChecksIDQueryWithResponse request returning *GetChecksIDQueryResponse -func (c *ClientWithResponses) GetChecksIDQueryWithResponse(ctx context.Context, checkID string, params *GetChecksIDQueryParams) (*getChecksIDQueryResponse, error) { - rsp, err := c.GetChecksIDQuery(ctx, checkID, params) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r putVariablesIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetChecksIDQueryResponse(rsp) + return http.StatusText(0) } -// GetDashboardsWithResponse request returning *GetDashboardsResponse -func (c *ClientWithResponses) GetDashboardsWithResponse(ctx context.Context, params *GetDashboardsParams) (*getDashboardsResponse, error) { - rsp, err := c.GetDashboards(ctx, params) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r putVariablesIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetDashboardsResponse(rsp) + return 0 } -// PostDashboardsWithBodyWithResponse request with arbitrary body returning *PostDashboardsResponse -func (c *ClientWithResponses) PostDashboardsWithBodyWithResponse(ctx context.Context, params *PostDashboardsParams, contentType string, body io.Reader) (*postDashboardsResponse, error) { - rsp, err := c.PostDashboardsWithBody(ctx, params, contentType, body) - if err != nil { - return nil, err - } - return ParsePostDashboardsResponse(rsp) +type getVariablesIDLabelsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *LabelsResponse + JSONDefault *Error } -func (c *ClientWithResponses) PostDashboardsWithResponse(ctx context.Context, params *PostDashboardsParams, body PostDashboardsJSONRequestBody) (*postDashboardsResponse, error) { - rsp, err := c.PostDashboards(ctx, params, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r getVariablesIDLabelsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePostDashboardsResponse(rsp) + return http.StatusText(0) } -// DeleteDashboardsIDWithResponse request returning *DeleteDashboardsIDResponse -func (c *ClientWithResponses) DeleteDashboardsIDWithResponse(ctx context.Context, dashboardID string, params *DeleteDashboardsIDParams) (*deleteDashboardsIDResponse, error) { - rsp, err := c.DeleteDashboardsID(ctx, dashboardID, params) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r getVariablesIDLabelsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteDashboardsIDResponse(rsp) + return 0 } -// GetDashboardsIDWithResponse request returning *GetDashboardsIDResponse -func (c *ClientWithResponses) GetDashboardsIDWithResponse(ctx context.Context, dashboardID string, params *GetDashboardsIDParams) (*getDashboardsIDResponse, error) { - rsp, err := c.GetDashboardsID(ctx, dashboardID, params) - if err != nil { - return nil, err - } - return ParseGetDashboardsIDResponse(rsp) +type postVariablesIDLabelsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *LabelResponse + JSONDefault *Error } -// PatchDashboardsIDWithBodyWithResponse request with arbitrary body returning *PatchDashboardsIDResponse -func (c *ClientWithResponses) PatchDashboardsIDWithBodyWithResponse(ctx context.Context, dashboardID string, params *PatchDashboardsIDParams, contentType string, body io.Reader) (*patchDashboardsIDResponse, error) { - rsp, err := c.PatchDashboardsIDWithBody(ctx, dashboardID, params, contentType, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r postVariablesIDLabelsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePatchDashboardsIDResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) PatchDashboardsIDWithResponse(ctx context.Context, dashboardID string, params *PatchDashboardsIDParams, body PatchDashboardsIDJSONRequestBody) (*patchDashboardsIDResponse, error) { - rsp, err := c.PatchDashboardsID(ctx, dashboardID, params, body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r postVariablesIDLabelsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePatchDashboardsIDResponse(rsp) + return 0 } -// PostDashboardsIDCellsWithBodyWithResponse request with arbitrary body returning *PostDashboardsIDCellsResponse -func (c *ClientWithResponses) PostDashboardsIDCellsWithBodyWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDCellsParams, contentType string, body io.Reader) (*postDashboardsIDCellsResponse, error) { - rsp, err := c.PostDashboardsIDCellsWithBody(ctx, dashboardID, params, contentType, body) - if err != nil { - return nil, err - } - return ParsePostDashboardsIDCellsResponse(rsp) +type deleteVariablesIDLabelsIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSON404 *Error + JSONDefault *Error } -func (c *ClientWithResponses) PostDashboardsIDCellsWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDCellsParams, body PostDashboardsIDCellsJSONRequestBody) (*postDashboardsIDCellsResponse, error) { - rsp, err := c.PostDashboardsIDCells(ctx, dashboardID, params, body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r deleteVariablesIDLabelsIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePostDashboardsIDCellsResponse(rsp) + return http.StatusText(0) } -// PutDashboardsIDCellsWithBodyWithResponse request with arbitrary body returning *PutDashboardsIDCellsResponse -func (c *ClientWithResponses) PutDashboardsIDCellsWithBodyWithResponse(ctx context.Context, dashboardID string, params *PutDashboardsIDCellsParams, contentType string, body io.Reader) (*putDashboardsIDCellsResponse, error) { - rsp, err := c.PutDashboardsIDCellsWithBody(ctx, dashboardID, params, contentType, body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r deleteVariablesIDLabelsIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePutDashboardsIDCellsResponse(rsp) + return 0 } -func (c *ClientWithResponses) PutDashboardsIDCellsWithResponse(ctx context.Context, dashboardID string, params *PutDashboardsIDCellsParams, body PutDashboardsIDCellsJSONRequestBody) (*putDashboardsIDCellsResponse, error) { - rsp, err := c.PutDashboardsIDCells(ctx, dashboardID, params, body) - if err != nil { - return nil, err +type postWriteResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *LineProtocolError + JSON401 *Error + JSON403 *Error + JSON413 *LineProtocolLengthError + JSONDefault *Error +} + +// Status returns HTTPResponse.Status +func (r postWriteResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePutDashboardsIDCellsResponse(rsp) + return http.StatusText(0) } -// DeleteDashboardsIDCellsIDWithResponse request returning *DeleteDashboardsIDCellsIDResponse -func (c *ClientWithResponses) DeleteDashboardsIDCellsIDWithResponse(ctx context.Context, dashboardID string, cellID string, params *DeleteDashboardsIDCellsIDParams) (*deleteDashboardsIDCellsIDResponse, error) { - rsp, err := c.DeleteDashboardsIDCellsID(ctx, dashboardID, cellID, params) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r postWriteResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteDashboardsIDCellsIDResponse(rsp) + return 0 } -// PatchDashboardsIDCellsIDWithBodyWithResponse request with arbitrary body returning *PatchDashboardsIDCellsIDResponse -func (c *ClientWithResponses) PatchDashboardsIDCellsIDWithBodyWithResponse(ctx context.Context, dashboardID string, cellID string, params *PatchDashboardsIDCellsIDParams, contentType string, body io.Reader) (*patchDashboardsIDCellsIDResponse, error) { - rsp, err := c.PatchDashboardsIDCellsIDWithBody(ctx, dashboardID, cellID, params, contentType, body) +// GetRoutesWithResponse request returning *GetRoutesResponse +func (c *ClientWithResponses) GetRoutesWithResponse(ctx context.Context, params *GetRoutesParams) (*getRoutesResponse, error) { + rsp, err := c.GetRoutes(ctx, params) if err != nil { return nil, err } - return ParsePatchDashboardsIDCellsIDResponse(rsp) + return ParseGetRoutesResponse(rsp) } -func (c *ClientWithResponses) PatchDashboardsIDCellsIDWithResponse(ctx context.Context, dashboardID string, cellID string, params *PatchDashboardsIDCellsIDParams, body PatchDashboardsIDCellsIDJSONRequestBody) (*patchDashboardsIDCellsIDResponse, error) { - rsp, err := c.PatchDashboardsIDCellsID(ctx, dashboardID, cellID, params, body) +// GetAuthorizationsWithResponse request returning *GetAuthorizationsResponse +func (c *ClientWithResponses) GetAuthorizationsWithResponse(ctx context.Context, params *GetAuthorizationsParams) (*getAuthorizationsResponse, error) { + rsp, err := c.GetAuthorizations(ctx, params) if err != nil { return nil, err } - return ParsePatchDashboardsIDCellsIDResponse(rsp) + return ParseGetAuthorizationsResponse(rsp) } -// GetDashboardsIDCellsIDViewWithResponse request returning *GetDashboardsIDCellsIDViewResponse -func (c *ClientWithResponses) GetDashboardsIDCellsIDViewWithResponse(ctx context.Context, dashboardID string, cellID string, params *GetDashboardsIDCellsIDViewParams) (*getDashboardsIDCellsIDViewResponse, error) { - rsp, err := c.GetDashboardsIDCellsIDView(ctx, dashboardID, cellID, params) +// PostAuthorizationsWithBodyWithResponse request with arbitrary body returning *PostAuthorizationsResponse +func (c *ClientWithResponses) PostAuthorizationsWithBodyWithResponse(ctx context.Context, params *PostAuthorizationsParams, contentType string, body io.Reader) (*postAuthorizationsResponse, error) { + rsp, err := c.PostAuthorizationsWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseGetDashboardsIDCellsIDViewResponse(rsp) + return ParsePostAuthorizationsResponse(rsp) } -// PatchDashboardsIDCellsIDViewWithBodyWithResponse request with arbitrary body returning *PatchDashboardsIDCellsIDViewResponse -func (c *ClientWithResponses) PatchDashboardsIDCellsIDViewWithBodyWithResponse(ctx context.Context, dashboardID string, cellID string, params *PatchDashboardsIDCellsIDViewParams, contentType string, body io.Reader) (*patchDashboardsIDCellsIDViewResponse, error) { - rsp, err := c.PatchDashboardsIDCellsIDViewWithBody(ctx, dashboardID, cellID, params, contentType, body) +func (c *ClientWithResponses) PostAuthorizationsWithResponse(ctx context.Context, params *PostAuthorizationsParams, body PostAuthorizationsJSONRequestBody) (*postAuthorizationsResponse, error) { + rsp, err := c.PostAuthorizations(ctx, params, body) if err != nil { return nil, err } - return ParsePatchDashboardsIDCellsIDViewResponse(rsp) + return ParsePostAuthorizationsResponse(rsp) } -func (c *ClientWithResponses) PatchDashboardsIDCellsIDViewWithResponse(ctx context.Context, dashboardID string, cellID string, params *PatchDashboardsIDCellsIDViewParams, body PatchDashboardsIDCellsIDViewJSONRequestBody) (*patchDashboardsIDCellsIDViewResponse, error) { - rsp, err := c.PatchDashboardsIDCellsIDView(ctx, dashboardID, cellID, params, body) +// DeleteAuthorizationsIDWithResponse request returning *DeleteAuthorizationsIDResponse +func (c *ClientWithResponses) DeleteAuthorizationsIDWithResponse(ctx context.Context, authID string, params *DeleteAuthorizationsIDParams) (*deleteAuthorizationsIDResponse, error) { + rsp, err := c.DeleteAuthorizationsID(ctx, authID, params) if err != nil { return nil, err } - return ParsePatchDashboardsIDCellsIDViewResponse(rsp) + return ParseDeleteAuthorizationsIDResponse(rsp) } -// GetDashboardsIDLabelsWithResponse request returning *GetDashboardsIDLabelsResponse -func (c *ClientWithResponses) GetDashboardsIDLabelsWithResponse(ctx context.Context, dashboardID string, params *GetDashboardsIDLabelsParams) (*getDashboardsIDLabelsResponse, error) { - rsp, err := c.GetDashboardsIDLabels(ctx, dashboardID, params) +// GetAuthorizationsIDWithResponse request returning *GetAuthorizationsIDResponse +func (c *ClientWithResponses) GetAuthorizationsIDWithResponse(ctx context.Context, authID string, params *GetAuthorizationsIDParams) (*getAuthorizationsIDResponse, error) { + rsp, err := c.GetAuthorizationsID(ctx, authID, params) if err != nil { return nil, err } - return ParseGetDashboardsIDLabelsResponse(rsp) + return ParseGetAuthorizationsIDResponse(rsp) } -// PostDashboardsIDLabelsWithBodyWithResponse request with arbitrary body returning *PostDashboardsIDLabelsResponse -func (c *ClientWithResponses) PostDashboardsIDLabelsWithBodyWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDLabelsParams, contentType string, body io.Reader) (*postDashboardsIDLabelsResponse, error) { - rsp, err := c.PostDashboardsIDLabelsWithBody(ctx, dashboardID, params, contentType, body) +// PatchAuthorizationsIDWithBodyWithResponse request with arbitrary body returning *PatchAuthorizationsIDResponse +func (c *ClientWithResponses) PatchAuthorizationsIDWithBodyWithResponse(ctx context.Context, authID string, params *PatchAuthorizationsIDParams, contentType string, body io.Reader) (*patchAuthorizationsIDResponse, error) { + rsp, err := c.PatchAuthorizationsIDWithBody(ctx, authID, params, contentType, body) if err != nil { return nil, err } - return ParsePostDashboardsIDLabelsResponse(rsp) + return ParsePatchAuthorizationsIDResponse(rsp) } -func (c *ClientWithResponses) PostDashboardsIDLabelsWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDLabelsParams, body PostDashboardsIDLabelsJSONRequestBody) (*postDashboardsIDLabelsResponse, error) { - rsp, err := c.PostDashboardsIDLabels(ctx, dashboardID, params, body) +func (c *ClientWithResponses) PatchAuthorizationsIDWithResponse(ctx context.Context, authID string, params *PatchAuthorizationsIDParams, body PatchAuthorizationsIDJSONRequestBody) (*patchAuthorizationsIDResponse, error) { + rsp, err := c.PatchAuthorizationsID(ctx, authID, params, body) if err != nil { return nil, err } - return ParsePostDashboardsIDLabelsResponse(rsp) + return ParsePatchAuthorizationsIDResponse(rsp) } -// DeleteDashboardsIDLabelsIDWithResponse request returning *DeleteDashboardsIDLabelsIDResponse -func (c *ClientWithResponses) DeleteDashboardsIDLabelsIDWithResponse(ctx context.Context, dashboardID string, labelID string, params *DeleteDashboardsIDLabelsIDParams) (*deleteDashboardsIDLabelsIDResponse, error) { - rsp, err := c.DeleteDashboardsIDLabelsID(ctx, dashboardID, labelID, params) +// GetBucketsWithResponse request returning *GetBucketsResponse +func (c *ClientWithResponses) GetBucketsWithResponse(ctx context.Context, params *GetBucketsParams) (*getBucketsResponse, error) { + rsp, err := c.GetBuckets(ctx, params) if err != nil { return nil, err } - return ParseDeleteDashboardsIDLabelsIDResponse(rsp) + return ParseGetBucketsResponse(rsp) } -// GetDashboardsIDMembersWithResponse request returning *GetDashboardsIDMembersResponse -func (c *ClientWithResponses) GetDashboardsIDMembersWithResponse(ctx context.Context, dashboardID string, params *GetDashboardsIDMembersParams) (*getDashboardsIDMembersResponse, error) { - rsp, err := c.GetDashboardsIDMembers(ctx, dashboardID, params) +// PostBucketsWithBodyWithResponse request with arbitrary body returning *PostBucketsResponse +func (c *ClientWithResponses) PostBucketsWithBodyWithResponse(ctx context.Context, params *PostBucketsParams, contentType string, body io.Reader) (*postBucketsResponse, error) { + rsp, err := c.PostBucketsWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseGetDashboardsIDMembersResponse(rsp) + return ParsePostBucketsResponse(rsp) } -// PostDashboardsIDMembersWithBodyWithResponse request with arbitrary body returning *PostDashboardsIDMembersResponse -func (c *ClientWithResponses) PostDashboardsIDMembersWithBodyWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDMembersParams, contentType string, body io.Reader) (*postDashboardsIDMembersResponse, error) { - rsp, err := c.PostDashboardsIDMembersWithBody(ctx, dashboardID, params, contentType, body) +func (c *ClientWithResponses) PostBucketsWithResponse(ctx context.Context, params *PostBucketsParams, body PostBucketsJSONRequestBody) (*postBucketsResponse, error) { + rsp, err := c.PostBuckets(ctx, params, body) if err != nil { return nil, err } - return ParsePostDashboardsIDMembersResponse(rsp) + return ParsePostBucketsResponse(rsp) } -func (c *ClientWithResponses) PostDashboardsIDMembersWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDMembersParams, body PostDashboardsIDMembersJSONRequestBody) (*postDashboardsIDMembersResponse, error) { - rsp, err := c.PostDashboardsIDMembers(ctx, dashboardID, params, body) +// DeleteBucketsIDWithResponse request returning *DeleteBucketsIDResponse +func (c *ClientWithResponses) DeleteBucketsIDWithResponse(ctx context.Context, bucketID string, params *DeleteBucketsIDParams) (*deleteBucketsIDResponse, error) { + rsp, err := c.DeleteBucketsID(ctx, bucketID, params) if err != nil { return nil, err } - return ParsePostDashboardsIDMembersResponse(rsp) + return ParseDeleteBucketsIDResponse(rsp) } -// DeleteDashboardsIDMembersIDWithResponse request returning *DeleteDashboardsIDMembersIDResponse -func (c *ClientWithResponses) DeleteDashboardsIDMembersIDWithResponse(ctx context.Context, dashboardID string, userID string, params *DeleteDashboardsIDMembersIDParams) (*deleteDashboardsIDMembersIDResponse, error) { - rsp, err := c.DeleteDashboardsIDMembersID(ctx, dashboardID, userID, params) +// GetBucketsIDWithResponse request returning *GetBucketsIDResponse +func (c *ClientWithResponses) GetBucketsIDWithResponse(ctx context.Context, bucketID string, params *GetBucketsIDParams) (*getBucketsIDResponse, error) { + rsp, err := c.GetBucketsID(ctx, bucketID, params) if err != nil { return nil, err } - return ParseDeleteDashboardsIDMembersIDResponse(rsp) + return ParseGetBucketsIDResponse(rsp) } -// GetDashboardsIDOwnersWithResponse request returning *GetDashboardsIDOwnersResponse -func (c *ClientWithResponses) GetDashboardsIDOwnersWithResponse(ctx context.Context, dashboardID string, params *GetDashboardsIDOwnersParams) (*getDashboardsIDOwnersResponse, error) { - rsp, err := c.GetDashboardsIDOwners(ctx, dashboardID, params) +// PatchBucketsIDWithBodyWithResponse request with arbitrary body returning *PatchBucketsIDResponse +func (c *ClientWithResponses) PatchBucketsIDWithBodyWithResponse(ctx context.Context, bucketID string, params *PatchBucketsIDParams, contentType string, body io.Reader) (*patchBucketsIDResponse, error) { + rsp, err := c.PatchBucketsIDWithBody(ctx, bucketID, params, contentType, body) if err != nil { return nil, err } - return ParseGetDashboardsIDOwnersResponse(rsp) + return ParsePatchBucketsIDResponse(rsp) } -// PostDashboardsIDOwnersWithBodyWithResponse request with arbitrary body returning *PostDashboardsIDOwnersResponse -func (c *ClientWithResponses) PostDashboardsIDOwnersWithBodyWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDOwnersParams, contentType string, body io.Reader) (*postDashboardsIDOwnersResponse, error) { - rsp, err := c.PostDashboardsIDOwnersWithBody(ctx, dashboardID, params, contentType, body) +func (c *ClientWithResponses) PatchBucketsIDWithResponse(ctx context.Context, bucketID string, params *PatchBucketsIDParams, body PatchBucketsIDJSONRequestBody) (*patchBucketsIDResponse, error) { + rsp, err := c.PatchBucketsID(ctx, bucketID, params, body) if err != nil { return nil, err } - return ParsePostDashboardsIDOwnersResponse(rsp) + return ParsePatchBucketsIDResponse(rsp) } -func (c *ClientWithResponses) PostDashboardsIDOwnersWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDOwnersParams, body PostDashboardsIDOwnersJSONRequestBody) (*postDashboardsIDOwnersResponse, error) { - rsp, err := c.PostDashboardsIDOwners(ctx, dashboardID, params, body) +// GetBucketsIDLabelsWithResponse request returning *GetBucketsIDLabelsResponse +func (c *ClientWithResponses) GetBucketsIDLabelsWithResponse(ctx context.Context, bucketID string, params *GetBucketsIDLabelsParams) (*getBucketsIDLabelsResponse, error) { + rsp, err := c.GetBucketsIDLabels(ctx, bucketID, params) if err != nil { return nil, err } - return ParsePostDashboardsIDOwnersResponse(rsp) + return ParseGetBucketsIDLabelsResponse(rsp) } -// DeleteDashboardsIDOwnersIDWithResponse request returning *DeleteDashboardsIDOwnersIDResponse -func (c *ClientWithResponses) DeleteDashboardsIDOwnersIDWithResponse(ctx context.Context, dashboardID string, userID string, params *DeleteDashboardsIDOwnersIDParams) (*deleteDashboardsIDOwnersIDResponse, error) { - rsp, err := c.DeleteDashboardsIDOwnersID(ctx, dashboardID, userID, params) +// PostBucketsIDLabelsWithBodyWithResponse request with arbitrary body returning *PostBucketsIDLabelsResponse +func (c *ClientWithResponses) PostBucketsIDLabelsWithBodyWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDLabelsParams, contentType string, body io.Reader) (*postBucketsIDLabelsResponse, error) { + rsp, err := c.PostBucketsIDLabelsWithBody(ctx, bucketID, params, contentType, body) if err != nil { return nil, err } - return ParseDeleteDashboardsIDOwnersIDResponse(rsp) + return ParsePostBucketsIDLabelsResponse(rsp) } -// GetDBRPsWithResponse request returning *GetDBRPsResponse -func (c *ClientWithResponses) GetDBRPsWithResponse(ctx context.Context, params *GetDBRPsParams) (*getDBRPsResponse, error) { - rsp, err := c.GetDBRPs(ctx, params) +func (c *ClientWithResponses) PostBucketsIDLabelsWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDLabelsParams, body PostBucketsIDLabelsJSONRequestBody) (*postBucketsIDLabelsResponse, error) { + rsp, err := c.PostBucketsIDLabels(ctx, bucketID, params, body) if err != nil { return nil, err } - return ParseGetDBRPsResponse(rsp) + return ParsePostBucketsIDLabelsResponse(rsp) } -// PostDBRPWithBodyWithResponse request with arbitrary body returning *PostDBRPResponse -func (c *ClientWithResponses) PostDBRPWithBodyWithResponse(ctx context.Context, params *PostDBRPParams, contentType string, body io.Reader) (*postDBRPResponse, error) { - rsp, err := c.PostDBRPWithBody(ctx, params, contentType, body) +// DeleteBucketsIDLabelsIDWithResponse request returning *DeleteBucketsIDLabelsIDResponse +func (c *ClientWithResponses) DeleteBucketsIDLabelsIDWithResponse(ctx context.Context, bucketID string, labelID string, params *DeleteBucketsIDLabelsIDParams) (*deleteBucketsIDLabelsIDResponse, error) { + rsp, err := c.DeleteBucketsIDLabelsID(ctx, bucketID, labelID, params) if err != nil { return nil, err } - return ParsePostDBRPResponse(rsp) + return ParseDeleteBucketsIDLabelsIDResponse(rsp) } -func (c *ClientWithResponses) PostDBRPWithResponse(ctx context.Context, params *PostDBRPParams, body PostDBRPJSONRequestBody) (*postDBRPResponse, error) { - rsp, err := c.PostDBRP(ctx, params, body) +// GetBucketsIDMembersWithResponse request returning *GetBucketsIDMembersResponse +func (c *ClientWithResponses) GetBucketsIDMembersWithResponse(ctx context.Context, bucketID string, params *GetBucketsIDMembersParams) (*getBucketsIDMembersResponse, error) { + rsp, err := c.GetBucketsIDMembers(ctx, bucketID, params) if err != nil { return nil, err } - return ParsePostDBRPResponse(rsp) + return ParseGetBucketsIDMembersResponse(rsp) } -// DeleteDBRPIDWithResponse request returning *DeleteDBRPIDResponse -func (c *ClientWithResponses) DeleteDBRPIDWithResponse(ctx context.Context, dbrpID string, params *DeleteDBRPIDParams) (*deleteDBRPIDResponse, error) { - rsp, err := c.DeleteDBRPID(ctx, dbrpID, params) +// PostBucketsIDMembersWithBodyWithResponse request with arbitrary body returning *PostBucketsIDMembersResponse +func (c *ClientWithResponses) PostBucketsIDMembersWithBodyWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDMembersParams, contentType string, body io.Reader) (*postBucketsIDMembersResponse, error) { + rsp, err := c.PostBucketsIDMembersWithBody(ctx, bucketID, params, contentType, body) if err != nil { return nil, err } - return ParseDeleteDBRPIDResponse(rsp) + return ParsePostBucketsIDMembersResponse(rsp) } -// GetDBRPsIDWithResponse request returning *GetDBRPsIDResponse -func (c *ClientWithResponses) GetDBRPsIDWithResponse(ctx context.Context, dbrpID string, params *GetDBRPsIDParams) (*getDBRPsIDResponse, error) { - rsp, err := c.GetDBRPsID(ctx, dbrpID, params) +func (c *ClientWithResponses) PostBucketsIDMembersWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDMembersParams, body PostBucketsIDMembersJSONRequestBody) (*postBucketsIDMembersResponse, error) { + rsp, err := c.PostBucketsIDMembers(ctx, bucketID, params, body) if err != nil { return nil, err } - return ParseGetDBRPsIDResponse(rsp) + return ParsePostBucketsIDMembersResponse(rsp) } -// PatchDBRPIDWithBodyWithResponse request with arbitrary body returning *PatchDBRPIDResponse -func (c *ClientWithResponses) PatchDBRPIDWithBodyWithResponse(ctx context.Context, dbrpID string, params *PatchDBRPIDParams, contentType string, body io.Reader) (*patchDBRPIDResponse, error) { - rsp, err := c.PatchDBRPIDWithBody(ctx, dbrpID, params, contentType, body) +// DeleteBucketsIDMembersIDWithResponse request returning *DeleteBucketsIDMembersIDResponse +func (c *ClientWithResponses) DeleteBucketsIDMembersIDWithResponse(ctx context.Context, bucketID string, userID string, params *DeleteBucketsIDMembersIDParams) (*deleteBucketsIDMembersIDResponse, error) { + rsp, err := c.DeleteBucketsIDMembersID(ctx, bucketID, userID, params) if err != nil { return nil, err } - return ParsePatchDBRPIDResponse(rsp) + return ParseDeleteBucketsIDMembersIDResponse(rsp) } -func (c *ClientWithResponses) PatchDBRPIDWithResponse(ctx context.Context, dbrpID string, params *PatchDBRPIDParams, body PatchDBRPIDJSONRequestBody) (*patchDBRPIDResponse, error) { - rsp, err := c.PatchDBRPID(ctx, dbrpID, params, body) +// GetBucketsIDOwnersWithResponse request returning *GetBucketsIDOwnersResponse +func (c *ClientWithResponses) GetBucketsIDOwnersWithResponse(ctx context.Context, bucketID string, params *GetBucketsIDOwnersParams) (*getBucketsIDOwnersResponse, error) { + rsp, err := c.GetBucketsIDOwners(ctx, bucketID, params) if err != nil { return nil, err } - return ParsePatchDBRPIDResponse(rsp) + return ParseGetBucketsIDOwnersResponse(rsp) } -// PostDeleteWithBodyWithResponse request with arbitrary body returning *PostDeleteResponse -func (c *ClientWithResponses) PostDeleteWithBodyWithResponse(ctx context.Context, params *PostDeleteParams, contentType string, body io.Reader) (*postDeleteResponse, error) { - rsp, err := c.PostDeleteWithBody(ctx, params, contentType, body) +// PostBucketsIDOwnersWithBodyWithResponse request with arbitrary body returning *PostBucketsIDOwnersResponse +func (c *ClientWithResponses) PostBucketsIDOwnersWithBodyWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDOwnersParams, contentType string, body io.Reader) (*postBucketsIDOwnersResponse, error) { + rsp, err := c.PostBucketsIDOwnersWithBody(ctx, bucketID, params, contentType, body) if err != nil { return nil, err } - return ParsePostDeleteResponse(rsp) + return ParsePostBucketsIDOwnersResponse(rsp) } -func (c *ClientWithResponses) PostDeleteWithResponse(ctx context.Context, params *PostDeleteParams, body PostDeleteJSONRequestBody) (*postDeleteResponse, error) { - rsp, err := c.PostDelete(ctx, params, body) +func (c *ClientWithResponses) PostBucketsIDOwnersWithResponse(ctx context.Context, bucketID string, params *PostBucketsIDOwnersParams, body PostBucketsIDOwnersJSONRequestBody) (*postBucketsIDOwnersResponse, error) { + rsp, err := c.PostBucketsIDOwners(ctx, bucketID, params, body) if err != nil { return nil, err } - return ParsePostDeleteResponse(rsp) + return ParsePostBucketsIDOwnersResponse(rsp) } -// GetDocumentsTemplatesWithResponse request returning *GetDocumentsTemplatesResponse -func (c *ClientWithResponses) GetDocumentsTemplatesWithResponse(ctx context.Context, params *GetDocumentsTemplatesParams) (*getDocumentsTemplatesResponse, error) { - rsp, err := c.GetDocumentsTemplates(ctx, params) +// DeleteBucketsIDOwnersIDWithResponse request returning *DeleteBucketsIDOwnersIDResponse +func (c *ClientWithResponses) DeleteBucketsIDOwnersIDWithResponse(ctx context.Context, bucketID string, userID string, params *DeleteBucketsIDOwnersIDParams) (*deleteBucketsIDOwnersIDResponse, error) { + rsp, err := c.DeleteBucketsIDOwnersID(ctx, bucketID, userID, params) if err != nil { return nil, err } - return ParseGetDocumentsTemplatesResponse(rsp) + return ParseDeleteBucketsIDOwnersIDResponse(rsp) } -// PostDocumentsTemplatesWithBodyWithResponse request with arbitrary body returning *PostDocumentsTemplatesResponse -func (c *ClientWithResponses) PostDocumentsTemplatesWithBodyWithResponse(ctx context.Context, params *PostDocumentsTemplatesParams, contentType string, body io.Reader) (*postDocumentsTemplatesResponse, error) { - rsp, err := c.PostDocumentsTemplatesWithBody(ctx, params, contentType, body) +// GetChecksWithResponse request returning *GetChecksResponse +func (c *ClientWithResponses) GetChecksWithResponse(ctx context.Context, params *GetChecksParams) (*getChecksResponse, error) { + rsp, err := c.GetChecks(ctx, params) if err != nil { return nil, err } - return ParsePostDocumentsTemplatesResponse(rsp) + return ParseGetChecksResponse(rsp) } -func (c *ClientWithResponses) PostDocumentsTemplatesWithResponse(ctx context.Context, params *PostDocumentsTemplatesParams, body PostDocumentsTemplatesJSONRequestBody) (*postDocumentsTemplatesResponse, error) { - rsp, err := c.PostDocumentsTemplates(ctx, params, body) +// CreateCheckWithBodyWithResponse request with arbitrary body returning *CreateCheckResponse +func (c *ClientWithResponses) CreateCheckWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createCheckResponse, error) { + rsp, err := c.CreateCheckWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParsePostDocumentsTemplatesResponse(rsp) + return ParseCreateCheckResponse(rsp) } -// DeleteDocumentsTemplatesIDWithResponse request returning *DeleteDocumentsTemplatesIDResponse -func (c *ClientWithResponses) DeleteDocumentsTemplatesIDWithResponse(ctx context.Context, templateID string, params *DeleteDocumentsTemplatesIDParams) (*deleteDocumentsTemplatesIDResponse, error) { - rsp, err := c.DeleteDocumentsTemplatesID(ctx, templateID, params) +func (c *ClientWithResponses) CreateCheckWithResponse(ctx context.Context, body CreateCheckJSONRequestBody) (*createCheckResponse, error) { + rsp, err := c.CreateCheck(ctx, body) if err != nil { return nil, err } - return ParseDeleteDocumentsTemplatesIDResponse(rsp) + return ParseCreateCheckResponse(rsp) } -// GetDocumentsTemplatesIDWithResponse request returning *GetDocumentsTemplatesIDResponse -func (c *ClientWithResponses) GetDocumentsTemplatesIDWithResponse(ctx context.Context, templateID string, params *GetDocumentsTemplatesIDParams) (*getDocumentsTemplatesIDResponse, error) { - rsp, err := c.GetDocumentsTemplatesID(ctx, templateID, params) +// DeleteChecksIDWithResponse request returning *DeleteChecksIDResponse +func (c *ClientWithResponses) DeleteChecksIDWithResponse(ctx context.Context, checkID string, params *DeleteChecksIDParams) (*deleteChecksIDResponse, error) { + rsp, err := c.DeleteChecksID(ctx, checkID, params) if err != nil { return nil, err } - return ParseGetDocumentsTemplatesIDResponse(rsp) + return ParseDeleteChecksIDResponse(rsp) } -// PutDocumentsTemplatesIDWithBodyWithResponse request with arbitrary body returning *PutDocumentsTemplatesIDResponse -func (c *ClientWithResponses) PutDocumentsTemplatesIDWithBodyWithResponse(ctx context.Context, templateID string, params *PutDocumentsTemplatesIDParams, contentType string, body io.Reader) (*putDocumentsTemplatesIDResponse, error) { - rsp, err := c.PutDocumentsTemplatesIDWithBody(ctx, templateID, params, contentType, body) +// GetChecksIDWithResponse request returning *GetChecksIDResponse +func (c *ClientWithResponses) GetChecksIDWithResponse(ctx context.Context, checkID string, params *GetChecksIDParams) (*getChecksIDResponse, error) { + rsp, err := c.GetChecksID(ctx, checkID, params) if err != nil { return nil, err } - return ParsePutDocumentsTemplatesIDResponse(rsp) + return ParseGetChecksIDResponse(rsp) } -func (c *ClientWithResponses) PutDocumentsTemplatesIDWithResponse(ctx context.Context, templateID string, params *PutDocumentsTemplatesIDParams, body PutDocumentsTemplatesIDJSONRequestBody) (*putDocumentsTemplatesIDResponse, error) { - rsp, err := c.PutDocumentsTemplatesID(ctx, templateID, params, body) +// PatchChecksIDWithBodyWithResponse request with arbitrary body returning *PatchChecksIDResponse +func (c *ClientWithResponses) PatchChecksIDWithBodyWithResponse(ctx context.Context, checkID string, params *PatchChecksIDParams, contentType string, body io.Reader) (*patchChecksIDResponse, error) { + rsp, err := c.PatchChecksIDWithBody(ctx, checkID, params, contentType, body) if err != nil { return nil, err } - return ParsePutDocumentsTemplatesIDResponse(rsp) + return ParsePatchChecksIDResponse(rsp) } -// GetDocumentsTemplatesIDLabelsWithResponse request returning *GetDocumentsTemplatesIDLabelsResponse -func (c *ClientWithResponses) GetDocumentsTemplatesIDLabelsWithResponse(ctx context.Context, templateID string, params *GetDocumentsTemplatesIDLabelsParams) (*getDocumentsTemplatesIDLabelsResponse, error) { - rsp, err := c.GetDocumentsTemplatesIDLabels(ctx, templateID, params) +func (c *ClientWithResponses) PatchChecksIDWithResponse(ctx context.Context, checkID string, params *PatchChecksIDParams, body PatchChecksIDJSONRequestBody) (*patchChecksIDResponse, error) { + rsp, err := c.PatchChecksID(ctx, checkID, params, body) if err != nil { return nil, err } - return ParseGetDocumentsTemplatesIDLabelsResponse(rsp) + return ParsePatchChecksIDResponse(rsp) } -// PostDocumentsTemplatesIDLabelsWithBodyWithResponse request with arbitrary body returning *PostDocumentsTemplatesIDLabelsResponse -func (c *ClientWithResponses) PostDocumentsTemplatesIDLabelsWithBodyWithResponse(ctx context.Context, templateID string, params *PostDocumentsTemplatesIDLabelsParams, contentType string, body io.Reader) (*postDocumentsTemplatesIDLabelsResponse, error) { - rsp, err := c.PostDocumentsTemplatesIDLabelsWithBody(ctx, templateID, params, contentType, body) +// PutChecksIDWithBodyWithResponse request with arbitrary body returning *PutChecksIDResponse +func (c *ClientWithResponses) PutChecksIDWithBodyWithResponse(ctx context.Context, checkID string, params *PutChecksIDParams, contentType string, body io.Reader) (*putChecksIDResponse, error) { + rsp, err := c.PutChecksIDWithBody(ctx, checkID, params, contentType, body) if err != nil { return nil, err } - return ParsePostDocumentsTemplatesIDLabelsResponse(rsp) + return ParsePutChecksIDResponse(rsp) } -func (c *ClientWithResponses) PostDocumentsTemplatesIDLabelsWithResponse(ctx context.Context, templateID string, params *PostDocumentsTemplatesIDLabelsParams, body PostDocumentsTemplatesIDLabelsJSONRequestBody) (*postDocumentsTemplatesIDLabelsResponse, error) { - rsp, err := c.PostDocumentsTemplatesIDLabels(ctx, templateID, params, body) +func (c *ClientWithResponses) PutChecksIDWithResponse(ctx context.Context, checkID string, params *PutChecksIDParams, body PutChecksIDJSONRequestBody) (*putChecksIDResponse, error) { + rsp, err := c.PutChecksID(ctx, checkID, params, body) if err != nil { return nil, err } - return ParsePostDocumentsTemplatesIDLabelsResponse(rsp) + return ParsePutChecksIDResponse(rsp) } -// DeleteDocumentsTemplatesIDLabelsIDWithResponse request returning *DeleteDocumentsTemplatesIDLabelsIDResponse -func (c *ClientWithResponses) DeleteDocumentsTemplatesIDLabelsIDWithResponse(ctx context.Context, templateID string, labelID string, params *DeleteDocumentsTemplatesIDLabelsIDParams) (*deleteDocumentsTemplatesIDLabelsIDResponse, error) { - rsp, err := c.DeleteDocumentsTemplatesIDLabelsID(ctx, templateID, labelID, params) +// GetChecksIDLabelsWithResponse request returning *GetChecksIDLabelsResponse +func (c *ClientWithResponses) GetChecksIDLabelsWithResponse(ctx context.Context, checkID string, params *GetChecksIDLabelsParams) (*getChecksIDLabelsResponse, error) { + rsp, err := c.GetChecksIDLabels(ctx, checkID, params) if err != nil { return nil, err } - return ParseDeleteDocumentsTemplatesIDLabelsIDResponse(rsp) + return ParseGetChecksIDLabelsResponse(rsp) } -// GetFlagsWithResponse request returning *GetFlagsResponse -func (c *ClientWithResponses) GetFlagsWithResponse(ctx context.Context, params *GetFlagsParams) (*getFlagsResponse, error) { - rsp, err := c.GetFlags(ctx, params) +// PostChecksIDLabelsWithBodyWithResponse request with arbitrary body returning *PostChecksIDLabelsResponse +func (c *ClientWithResponses) PostChecksIDLabelsWithBodyWithResponse(ctx context.Context, checkID string, params *PostChecksIDLabelsParams, contentType string, body io.Reader) (*postChecksIDLabelsResponse, error) { + rsp, err := c.PostChecksIDLabelsWithBody(ctx, checkID, params, contentType, body) if err != nil { return nil, err } - return ParseGetFlagsResponse(rsp) + return ParsePostChecksIDLabelsResponse(rsp) } -// GetHealthWithResponse request returning *GetHealthResponse -func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, params *GetHealthParams) (*getHealthResponse, error) { - rsp, err := c.GetHealth(ctx, params) +func (c *ClientWithResponses) PostChecksIDLabelsWithResponse(ctx context.Context, checkID string, params *PostChecksIDLabelsParams, body PostChecksIDLabelsJSONRequestBody) (*postChecksIDLabelsResponse, error) { + rsp, err := c.PostChecksIDLabels(ctx, checkID, params, body) if err != nil { return nil, err } - return ParseGetHealthResponse(rsp) + return ParsePostChecksIDLabelsResponse(rsp) } -// GetLabelsWithResponse request returning *GetLabelsResponse -func (c *ClientWithResponses) GetLabelsWithResponse(ctx context.Context, params *GetLabelsParams) (*getLabelsResponse, error) { - rsp, err := c.GetLabels(ctx, params) +// DeleteChecksIDLabelsIDWithResponse request returning *DeleteChecksIDLabelsIDResponse +func (c *ClientWithResponses) DeleteChecksIDLabelsIDWithResponse(ctx context.Context, checkID string, labelID string, params *DeleteChecksIDLabelsIDParams) (*deleteChecksIDLabelsIDResponse, error) { + rsp, err := c.DeleteChecksIDLabelsID(ctx, checkID, labelID, params) if err != nil { return nil, err } - return ParseGetLabelsResponse(rsp) + return ParseDeleteChecksIDLabelsIDResponse(rsp) } -// PostLabelsWithBodyWithResponse request with arbitrary body returning *PostLabelsResponse -func (c *ClientWithResponses) PostLabelsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*postLabelsResponse, error) { - rsp, err := c.PostLabelsWithBody(ctx, contentType, body) +// GetChecksIDQueryWithResponse request returning *GetChecksIDQueryResponse +func (c *ClientWithResponses) GetChecksIDQueryWithResponse(ctx context.Context, checkID string, params *GetChecksIDQueryParams) (*getChecksIDQueryResponse, error) { + rsp, err := c.GetChecksIDQuery(ctx, checkID, params) if err != nil { return nil, err } - return ParsePostLabelsResponse(rsp) + return ParseGetChecksIDQueryResponse(rsp) } -func (c *ClientWithResponses) PostLabelsWithResponse(ctx context.Context, body PostLabelsJSONRequestBody) (*postLabelsResponse, error) { - rsp, err := c.PostLabels(ctx, body) +// GetDashboardsWithResponse request returning *GetDashboardsResponse +func (c *ClientWithResponses) GetDashboardsWithResponse(ctx context.Context, params *GetDashboardsParams) (*getDashboardsResponse, error) { + rsp, err := c.GetDashboards(ctx, params) if err != nil { return nil, err } - return ParsePostLabelsResponse(rsp) + return ParseGetDashboardsResponse(rsp) } -// DeleteLabelsIDWithResponse request returning *DeleteLabelsIDResponse -func (c *ClientWithResponses) DeleteLabelsIDWithResponse(ctx context.Context, labelID string, params *DeleteLabelsIDParams) (*deleteLabelsIDResponse, error) { - rsp, err := c.DeleteLabelsID(ctx, labelID, params) +// PostDashboardsWithBodyWithResponse request with arbitrary body returning *PostDashboardsResponse +func (c *ClientWithResponses) PostDashboardsWithBodyWithResponse(ctx context.Context, params *PostDashboardsParams, contentType string, body io.Reader) (*postDashboardsResponse, error) { + rsp, err := c.PostDashboardsWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseDeleteLabelsIDResponse(rsp) + return ParsePostDashboardsResponse(rsp) } -// GetLabelsIDWithResponse request returning *GetLabelsIDResponse -func (c *ClientWithResponses) GetLabelsIDWithResponse(ctx context.Context, labelID string, params *GetLabelsIDParams) (*getLabelsIDResponse, error) { - rsp, err := c.GetLabelsID(ctx, labelID, params) +func (c *ClientWithResponses) PostDashboardsWithResponse(ctx context.Context, params *PostDashboardsParams, body PostDashboardsJSONRequestBody) (*postDashboardsResponse, error) { + rsp, err := c.PostDashboards(ctx, params, body) if err != nil { return nil, err } - return ParseGetLabelsIDResponse(rsp) + return ParsePostDashboardsResponse(rsp) } -// PatchLabelsIDWithBodyWithResponse request with arbitrary body returning *PatchLabelsIDResponse -func (c *ClientWithResponses) PatchLabelsIDWithBodyWithResponse(ctx context.Context, labelID string, params *PatchLabelsIDParams, contentType string, body io.Reader) (*patchLabelsIDResponse, error) { - rsp, err := c.PatchLabelsIDWithBody(ctx, labelID, params, contentType, body) +// DeleteDashboardsIDWithResponse request returning *DeleteDashboardsIDResponse +func (c *ClientWithResponses) DeleteDashboardsIDWithResponse(ctx context.Context, dashboardID string, params *DeleteDashboardsIDParams) (*deleteDashboardsIDResponse, error) { + rsp, err := c.DeleteDashboardsID(ctx, dashboardID, params) if err != nil { return nil, err } - return ParsePatchLabelsIDResponse(rsp) + return ParseDeleteDashboardsIDResponse(rsp) } -func (c *ClientWithResponses) PatchLabelsIDWithResponse(ctx context.Context, labelID string, params *PatchLabelsIDParams, body PatchLabelsIDJSONRequestBody) (*patchLabelsIDResponse, error) { - rsp, err := c.PatchLabelsID(ctx, labelID, params, body) +// GetDashboardsIDWithResponse request returning *GetDashboardsIDResponse +func (c *ClientWithResponses) GetDashboardsIDWithResponse(ctx context.Context, dashboardID string, params *GetDashboardsIDParams) (*getDashboardsIDResponse, error) { + rsp, err := c.GetDashboardsID(ctx, dashboardID, params) if err != nil { return nil, err } - return ParsePatchLabelsIDResponse(rsp) + return ParseGetDashboardsIDResponse(rsp) } -// GetMeWithResponse request returning *GetMeResponse -func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, params *GetMeParams) (*getMeResponse, error) { - rsp, err := c.GetMe(ctx, params) +// PatchDashboardsIDWithBodyWithResponse request with arbitrary body returning *PatchDashboardsIDResponse +func (c *ClientWithResponses) PatchDashboardsIDWithBodyWithResponse(ctx context.Context, dashboardID string, params *PatchDashboardsIDParams, contentType string, body io.Reader) (*patchDashboardsIDResponse, error) { + rsp, err := c.PatchDashboardsIDWithBody(ctx, dashboardID, params, contentType, body) if err != nil { return nil, err } - return ParseGetMeResponse(rsp) + return ParsePatchDashboardsIDResponse(rsp) } -// PutMePasswordWithBodyWithResponse request with arbitrary body returning *PutMePasswordResponse -func (c *ClientWithResponses) PutMePasswordWithBodyWithResponse(ctx context.Context, params *PutMePasswordParams, contentType string, body io.Reader) (*putMePasswordResponse, error) { - rsp, err := c.PutMePasswordWithBody(ctx, params, contentType, body) +func (c *ClientWithResponses) PatchDashboardsIDWithResponse(ctx context.Context, dashboardID string, params *PatchDashboardsIDParams, body PatchDashboardsIDJSONRequestBody) (*patchDashboardsIDResponse, error) { + rsp, err := c.PatchDashboardsID(ctx, dashboardID, params, body) if err != nil { return nil, err } - return ParsePutMePasswordResponse(rsp) + return ParsePatchDashboardsIDResponse(rsp) } -func (c *ClientWithResponses) PutMePasswordWithResponse(ctx context.Context, params *PutMePasswordParams, body PutMePasswordJSONRequestBody) (*putMePasswordResponse, error) { - rsp, err := c.PutMePassword(ctx, params, body) +// PostDashboardsIDCellsWithBodyWithResponse request with arbitrary body returning *PostDashboardsIDCellsResponse +func (c *ClientWithResponses) PostDashboardsIDCellsWithBodyWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDCellsParams, contentType string, body io.Reader) (*postDashboardsIDCellsResponse, error) { + rsp, err := c.PostDashboardsIDCellsWithBody(ctx, dashboardID, params, contentType, body) if err != nil { return nil, err } - return ParsePutMePasswordResponse(rsp) + return ParsePostDashboardsIDCellsResponse(rsp) } -// GetNotificationEndpointsWithResponse request returning *GetNotificationEndpointsResponse -func (c *ClientWithResponses) GetNotificationEndpointsWithResponse(ctx context.Context, params *GetNotificationEndpointsParams) (*getNotificationEndpointsResponse, error) { - rsp, err := c.GetNotificationEndpoints(ctx, params) +func (c *ClientWithResponses) PostDashboardsIDCellsWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDCellsParams, body PostDashboardsIDCellsJSONRequestBody) (*postDashboardsIDCellsResponse, error) { + rsp, err := c.PostDashboardsIDCells(ctx, dashboardID, params, body) if err != nil { return nil, err } - return ParseGetNotificationEndpointsResponse(rsp) + return ParsePostDashboardsIDCellsResponse(rsp) } -// CreateNotificationEndpointWithBodyWithResponse request with arbitrary body returning *CreateNotificationEndpointResponse -func (c *ClientWithResponses) CreateNotificationEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createNotificationEndpointResponse, error) { - rsp, err := c.CreateNotificationEndpointWithBody(ctx, contentType, body) +// PutDashboardsIDCellsWithBodyWithResponse request with arbitrary body returning *PutDashboardsIDCellsResponse +func (c *ClientWithResponses) PutDashboardsIDCellsWithBodyWithResponse(ctx context.Context, dashboardID string, params *PutDashboardsIDCellsParams, contentType string, body io.Reader) (*putDashboardsIDCellsResponse, error) { + rsp, err := c.PutDashboardsIDCellsWithBody(ctx, dashboardID, params, contentType, body) if err != nil { return nil, err } - return ParseCreateNotificationEndpointResponse(rsp) + return ParsePutDashboardsIDCellsResponse(rsp) } -func (c *ClientWithResponses) CreateNotificationEndpointWithResponse(ctx context.Context, body CreateNotificationEndpointJSONRequestBody) (*createNotificationEndpointResponse, error) { - rsp, err := c.CreateNotificationEndpoint(ctx, body) +func (c *ClientWithResponses) PutDashboardsIDCellsWithResponse(ctx context.Context, dashboardID string, params *PutDashboardsIDCellsParams, body PutDashboardsIDCellsJSONRequestBody) (*putDashboardsIDCellsResponse, error) { + rsp, err := c.PutDashboardsIDCells(ctx, dashboardID, params, body) if err != nil { return nil, err } - return ParseCreateNotificationEndpointResponse(rsp) + return ParsePutDashboardsIDCellsResponse(rsp) } -// DeleteNotificationEndpointsIDWithResponse request returning *DeleteNotificationEndpointsIDResponse -func (c *ClientWithResponses) DeleteNotificationEndpointsIDWithResponse(ctx context.Context, endpointID string, params *DeleteNotificationEndpointsIDParams) (*deleteNotificationEndpointsIDResponse, error) { - rsp, err := c.DeleteNotificationEndpointsID(ctx, endpointID, params) +// DeleteDashboardsIDCellsIDWithResponse request returning *DeleteDashboardsIDCellsIDResponse +func (c *ClientWithResponses) DeleteDashboardsIDCellsIDWithResponse(ctx context.Context, dashboardID string, cellID string, params *DeleteDashboardsIDCellsIDParams) (*deleteDashboardsIDCellsIDResponse, error) { + rsp, err := c.DeleteDashboardsIDCellsID(ctx, dashboardID, cellID, params) if err != nil { return nil, err } - return ParseDeleteNotificationEndpointsIDResponse(rsp) + return ParseDeleteDashboardsIDCellsIDResponse(rsp) } -// GetNotificationEndpointsIDWithResponse request returning *GetNotificationEndpointsIDResponse -func (c *ClientWithResponses) GetNotificationEndpointsIDWithResponse(ctx context.Context, endpointID string, params *GetNotificationEndpointsIDParams) (*getNotificationEndpointsIDResponse, error) { - rsp, err := c.GetNotificationEndpointsID(ctx, endpointID, params) +// PatchDashboardsIDCellsIDWithBodyWithResponse request with arbitrary body returning *PatchDashboardsIDCellsIDResponse +func (c *ClientWithResponses) PatchDashboardsIDCellsIDWithBodyWithResponse(ctx context.Context, dashboardID string, cellID string, params *PatchDashboardsIDCellsIDParams, contentType string, body io.Reader) (*patchDashboardsIDCellsIDResponse, error) { + rsp, err := c.PatchDashboardsIDCellsIDWithBody(ctx, dashboardID, cellID, params, contentType, body) if err != nil { return nil, err } - return ParseGetNotificationEndpointsIDResponse(rsp) + return ParsePatchDashboardsIDCellsIDResponse(rsp) } -// PatchNotificationEndpointsIDWithBodyWithResponse request with arbitrary body returning *PatchNotificationEndpointsIDResponse -func (c *ClientWithResponses) PatchNotificationEndpointsIDWithBodyWithResponse(ctx context.Context, endpointID string, params *PatchNotificationEndpointsIDParams, contentType string, body io.Reader) (*patchNotificationEndpointsIDResponse, error) { - rsp, err := c.PatchNotificationEndpointsIDWithBody(ctx, endpointID, params, contentType, body) +func (c *ClientWithResponses) PatchDashboardsIDCellsIDWithResponse(ctx context.Context, dashboardID string, cellID string, params *PatchDashboardsIDCellsIDParams, body PatchDashboardsIDCellsIDJSONRequestBody) (*patchDashboardsIDCellsIDResponse, error) { + rsp, err := c.PatchDashboardsIDCellsID(ctx, dashboardID, cellID, params, body) if err != nil { return nil, err } - return ParsePatchNotificationEndpointsIDResponse(rsp) + return ParsePatchDashboardsIDCellsIDResponse(rsp) } -func (c *ClientWithResponses) PatchNotificationEndpointsIDWithResponse(ctx context.Context, endpointID string, params *PatchNotificationEndpointsIDParams, body PatchNotificationEndpointsIDJSONRequestBody) (*patchNotificationEndpointsIDResponse, error) { - rsp, err := c.PatchNotificationEndpointsID(ctx, endpointID, params, body) +// GetDashboardsIDCellsIDViewWithResponse request returning *GetDashboardsIDCellsIDViewResponse +func (c *ClientWithResponses) GetDashboardsIDCellsIDViewWithResponse(ctx context.Context, dashboardID string, cellID string, params *GetDashboardsIDCellsIDViewParams) (*getDashboardsIDCellsIDViewResponse, error) { + rsp, err := c.GetDashboardsIDCellsIDView(ctx, dashboardID, cellID, params) if err != nil { return nil, err } - return ParsePatchNotificationEndpointsIDResponse(rsp) + return ParseGetDashboardsIDCellsIDViewResponse(rsp) } -// PutNotificationEndpointsIDWithBodyWithResponse request with arbitrary body returning *PutNotificationEndpointsIDResponse -func (c *ClientWithResponses) PutNotificationEndpointsIDWithBodyWithResponse(ctx context.Context, endpointID string, params *PutNotificationEndpointsIDParams, contentType string, body io.Reader) (*putNotificationEndpointsIDResponse, error) { - rsp, err := c.PutNotificationEndpointsIDWithBody(ctx, endpointID, params, contentType, body) +// PatchDashboardsIDCellsIDViewWithBodyWithResponse request with arbitrary body returning *PatchDashboardsIDCellsIDViewResponse +func (c *ClientWithResponses) PatchDashboardsIDCellsIDViewWithBodyWithResponse(ctx context.Context, dashboardID string, cellID string, params *PatchDashboardsIDCellsIDViewParams, contentType string, body io.Reader) (*patchDashboardsIDCellsIDViewResponse, error) { + rsp, err := c.PatchDashboardsIDCellsIDViewWithBody(ctx, dashboardID, cellID, params, contentType, body) if err != nil { return nil, err } - return ParsePutNotificationEndpointsIDResponse(rsp) + return ParsePatchDashboardsIDCellsIDViewResponse(rsp) } -func (c *ClientWithResponses) PutNotificationEndpointsIDWithResponse(ctx context.Context, endpointID string, params *PutNotificationEndpointsIDParams, body PutNotificationEndpointsIDJSONRequestBody) (*putNotificationEndpointsIDResponse, error) { - rsp, err := c.PutNotificationEndpointsID(ctx, endpointID, params, body) +func (c *ClientWithResponses) PatchDashboardsIDCellsIDViewWithResponse(ctx context.Context, dashboardID string, cellID string, params *PatchDashboardsIDCellsIDViewParams, body PatchDashboardsIDCellsIDViewJSONRequestBody) (*patchDashboardsIDCellsIDViewResponse, error) { + rsp, err := c.PatchDashboardsIDCellsIDView(ctx, dashboardID, cellID, params, body) if err != nil { return nil, err } - return ParsePutNotificationEndpointsIDResponse(rsp) + return ParsePatchDashboardsIDCellsIDViewResponse(rsp) } -// GetNotificationEndpointsIDLabelsWithResponse request returning *GetNotificationEndpointsIDLabelsResponse -func (c *ClientWithResponses) GetNotificationEndpointsIDLabelsWithResponse(ctx context.Context, endpointID string, params *GetNotificationEndpointsIDLabelsParams) (*getNotificationEndpointsIDLabelsResponse, error) { - rsp, err := c.GetNotificationEndpointsIDLabels(ctx, endpointID, params) +// GetDashboardsIDLabelsWithResponse request returning *GetDashboardsIDLabelsResponse +func (c *ClientWithResponses) GetDashboardsIDLabelsWithResponse(ctx context.Context, dashboardID string, params *GetDashboardsIDLabelsParams) (*getDashboardsIDLabelsResponse, error) { + rsp, err := c.GetDashboardsIDLabels(ctx, dashboardID, params) if err != nil { return nil, err } - return ParseGetNotificationEndpointsIDLabelsResponse(rsp) + return ParseGetDashboardsIDLabelsResponse(rsp) } -// PostNotificationEndpointIDLabelsWithBodyWithResponse request with arbitrary body returning *PostNotificationEndpointIDLabelsResponse -func (c *ClientWithResponses) PostNotificationEndpointIDLabelsWithBodyWithResponse(ctx context.Context, endpointID string, params *PostNotificationEndpointIDLabelsParams, contentType string, body io.Reader) (*postNotificationEndpointIDLabelsResponse, error) { - rsp, err := c.PostNotificationEndpointIDLabelsWithBody(ctx, endpointID, params, contentType, body) +// PostDashboardsIDLabelsWithBodyWithResponse request with arbitrary body returning *PostDashboardsIDLabelsResponse +func (c *ClientWithResponses) PostDashboardsIDLabelsWithBodyWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDLabelsParams, contentType string, body io.Reader) (*postDashboardsIDLabelsResponse, error) { + rsp, err := c.PostDashboardsIDLabelsWithBody(ctx, dashboardID, params, contentType, body) if err != nil { return nil, err } - return ParsePostNotificationEndpointIDLabelsResponse(rsp) + return ParsePostDashboardsIDLabelsResponse(rsp) } -func (c *ClientWithResponses) PostNotificationEndpointIDLabelsWithResponse(ctx context.Context, endpointID string, params *PostNotificationEndpointIDLabelsParams, body PostNotificationEndpointIDLabelsJSONRequestBody) (*postNotificationEndpointIDLabelsResponse, error) { - rsp, err := c.PostNotificationEndpointIDLabels(ctx, endpointID, params, body) +func (c *ClientWithResponses) PostDashboardsIDLabelsWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDLabelsParams, body PostDashboardsIDLabelsJSONRequestBody) (*postDashboardsIDLabelsResponse, error) { + rsp, err := c.PostDashboardsIDLabels(ctx, dashboardID, params, body) if err != nil { return nil, err } - return ParsePostNotificationEndpointIDLabelsResponse(rsp) + return ParsePostDashboardsIDLabelsResponse(rsp) } -// DeleteNotificationEndpointsIDLabelsIDWithResponse request returning *DeleteNotificationEndpointsIDLabelsIDResponse -func (c *ClientWithResponses) DeleteNotificationEndpointsIDLabelsIDWithResponse(ctx context.Context, endpointID string, labelID string, params *DeleteNotificationEndpointsIDLabelsIDParams) (*deleteNotificationEndpointsIDLabelsIDResponse, error) { - rsp, err := c.DeleteNotificationEndpointsIDLabelsID(ctx, endpointID, labelID, params) +// DeleteDashboardsIDLabelsIDWithResponse request returning *DeleteDashboardsIDLabelsIDResponse +func (c *ClientWithResponses) DeleteDashboardsIDLabelsIDWithResponse(ctx context.Context, dashboardID string, labelID string, params *DeleteDashboardsIDLabelsIDParams) (*deleteDashboardsIDLabelsIDResponse, error) { + rsp, err := c.DeleteDashboardsIDLabelsID(ctx, dashboardID, labelID, params) if err != nil { return nil, err } - return ParseDeleteNotificationEndpointsIDLabelsIDResponse(rsp) + return ParseDeleteDashboardsIDLabelsIDResponse(rsp) } -// GetNotificationRulesWithResponse request returning *GetNotificationRulesResponse -func (c *ClientWithResponses) GetNotificationRulesWithResponse(ctx context.Context, params *GetNotificationRulesParams) (*getNotificationRulesResponse, error) { - rsp, err := c.GetNotificationRules(ctx, params) +// GetDashboardsIDMembersWithResponse request returning *GetDashboardsIDMembersResponse +func (c *ClientWithResponses) GetDashboardsIDMembersWithResponse(ctx context.Context, dashboardID string, params *GetDashboardsIDMembersParams) (*getDashboardsIDMembersResponse, error) { + rsp, err := c.GetDashboardsIDMembers(ctx, dashboardID, params) if err != nil { return nil, err } - return ParseGetNotificationRulesResponse(rsp) + return ParseGetDashboardsIDMembersResponse(rsp) } -// CreateNotificationRuleWithBodyWithResponse request with arbitrary body returning *CreateNotificationRuleResponse -func (c *ClientWithResponses) CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createNotificationRuleResponse, error) { - rsp, err := c.CreateNotificationRuleWithBody(ctx, contentType, body) +// PostDashboardsIDMembersWithBodyWithResponse request with arbitrary body returning *PostDashboardsIDMembersResponse +func (c *ClientWithResponses) PostDashboardsIDMembersWithBodyWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDMembersParams, contentType string, body io.Reader) (*postDashboardsIDMembersResponse, error) { + rsp, err := c.PostDashboardsIDMembersWithBody(ctx, dashboardID, params, contentType, body) if err != nil { return nil, err } - return ParseCreateNotificationRuleResponse(rsp) + return ParsePostDashboardsIDMembersResponse(rsp) } -func (c *ClientWithResponses) CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody) (*createNotificationRuleResponse, error) { - rsp, err := c.CreateNotificationRule(ctx, body) +func (c *ClientWithResponses) PostDashboardsIDMembersWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDMembersParams, body PostDashboardsIDMembersJSONRequestBody) (*postDashboardsIDMembersResponse, error) { + rsp, err := c.PostDashboardsIDMembers(ctx, dashboardID, params, body) if err != nil { return nil, err } - return ParseCreateNotificationRuleResponse(rsp) + return ParsePostDashboardsIDMembersResponse(rsp) } -// DeleteNotificationRulesIDWithResponse request returning *DeleteNotificationRulesIDResponse -func (c *ClientWithResponses) DeleteNotificationRulesIDWithResponse(ctx context.Context, ruleID string, params *DeleteNotificationRulesIDParams) (*deleteNotificationRulesIDResponse, error) { - rsp, err := c.DeleteNotificationRulesID(ctx, ruleID, params) +// DeleteDashboardsIDMembersIDWithResponse request returning *DeleteDashboardsIDMembersIDResponse +func (c *ClientWithResponses) DeleteDashboardsIDMembersIDWithResponse(ctx context.Context, dashboardID string, userID string, params *DeleteDashboardsIDMembersIDParams) (*deleteDashboardsIDMembersIDResponse, error) { + rsp, err := c.DeleteDashboardsIDMembersID(ctx, dashboardID, userID, params) if err != nil { return nil, err } - return ParseDeleteNotificationRulesIDResponse(rsp) + return ParseDeleteDashboardsIDMembersIDResponse(rsp) } -// GetNotificationRulesIDWithResponse request returning *GetNotificationRulesIDResponse -func (c *ClientWithResponses) GetNotificationRulesIDWithResponse(ctx context.Context, ruleID string, params *GetNotificationRulesIDParams) (*getNotificationRulesIDResponse, error) { - rsp, err := c.GetNotificationRulesID(ctx, ruleID, params) +// GetDashboardsIDOwnersWithResponse request returning *GetDashboardsIDOwnersResponse +func (c *ClientWithResponses) GetDashboardsIDOwnersWithResponse(ctx context.Context, dashboardID string, params *GetDashboardsIDOwnersParams) (*getDashboardsIDOwnersResponse, error) { + rsp, err := c.GetDashboardsIDOwners(ctx, dashboardID, params) if err != nil { return nil, err } - return ParseGetNotificationRulesIDResponse(rsp) + return ParseGetDashboardsIDOwnersResponse(rsp) } -// PatchNotificationRulesIDWithBodyWithResponse request with arbitrary body returning *PatchNotificationRulesIDResponse -func (c *ClientWithResponses) PatchNotificationRulesIDWithBodyWithResponse(ctx context.Context, ruleID string, params *PatchNotificationRulesIDParams, contentType string, body io.Reader) (*patchNotificationRulesIDResponse, error) { - rsp, err := c.PatchNotificationRulesIDWithBody(ctx, ruleID, params, contentType, body) +// PostDashboardsIDOwnersWithBodyWithResponse request with arbitrary body returning *PostDashboardsIDOwnersResponse +func (c *ClientWithResponses) PostDashboardsIDOwnersWithBodyWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDOwnersParams, contentType string, body io.Reader) (*postDashboardsIDOwnersResponse, error) { + rsp, err := c.PostDashboardsIDOwnersWithBody(ctx, dashboardID, params, contentType, body) if err != nil { return nil, err } - return ParsePatchNotificationRulesIDResponse(rsp) + return ParsePostDashboardsIDOwnersResponse(rsp) } -func (c *ClientWithResponses) PatchNotificationRulesIDWithResponse(ctx context.Context, ruleID string, params *PatchNotificationRulesIDParams, body PatchNotificationRulesIDJSONRequestBody) (*patchNotificationRulesIDResponse, error) { - rsp, err := c.PatchNotificationRulesID(ctx, ruleID, params, body) +func (c *ClientWithResponses) PostDashboardsIDOwnersWithResponse(ctx context.Context, dashboardID string, params *PostDashboardsIDOwnersParams, body PostDashboardsIDOwnersJSONRequestBody) (*postDashboardsIDOwnersResponse, error) { + rsp, err := c.PostDashboardsIDOwners(ctx, dashboardID, params, body) if err != nil { return nil, err } - return ParsePatchNotificationRulesIDResponse(rsp) + return ParsePostDashboardsIDOwnersResponse(rsp) } -// PutNotificationRulesIDWithBodyWithResponse request with arbitrary body returning *PutNotificationRulesIDResponse -func (c *ClientWithResponses) PutNotificationRulesIDWithBodyWithResponse(ctx context.Context, ruleID string, params *PutNotificationRulesIDParams, contentType string, body io.Reader) (*putNotificationRulesIDResponse, error) { - rsp, err := c.PutNotificationRulesIDWithBody(ctx, ruleID, params, contentType, body) +// DeleteDashboardsIDOwnersIDWithResponse request returning *DeleteDashboardsIDOwnersIDResponse +func (c *ClientWithResponses) DeleteDashboardsIDOwnersIDWithResponse(ctx context.Context, dashboardID string, userID string, params *DeleteDashboardsIDOwnersIDParams) (*deleteDashboardsIDOwnersIDResponse, error) { + rsp, err := c.DeleteDashboardsIDOwnersID(ctx, dashboardID, userID, params) if err != nil { return nil, err } - return ParsePutNotificationRulesIDResponse(rsp) + return ParseDeleteDashboardsIDOwnersIDResponse(rsp) } -func (c *ClientWithResponses) PutNotificationRulesIDWithResponse(ctx context.Context, ruleID string, params *PutNotificationRulesIDParams, body PutNotificationRulesIDJSONRequestBody) (*putNotificationRulesIDResponse, error) { - rsp, err := c.PutNotificationRulesID(ctx, ruleID, params, body) +// GetDBRPsWithResponse request returning *GetDBRPsResponse +func (c *ClientWithResponses) GetDBRPsWithResponse(ctx context.Context, params *GetDBRPsParams) (*getDBRPsResponse, error) { + rsp, err := c.GetDBRPs(ctx, params) if err != nil { return nil, err } - return ParsePutNotificationRulesIDResponse(rsp) + return ParseGetDBRPsResponse(rsp) } -// GetNotificationRulesIDLabelsWithResponse request returning *GetNotificationRulesIDLabelsResponse -func (c *ClientWithResponses) GetNotificationRulesIDLabelsWithResponse(ctx context.Context, ruleID string, params *GetNotificationRulesIDLabelsParams) (*getNotificationRulesIDLabelsResponse, error) { - rsp, err := c.GetNotificationRulesIDLabels(ctx, ruleID, params) +// PostDBRPWithBodyWithResponse request with arbitrary body returning *PostDBRPResponse +func (c *ClientWithResponses) PostDBRPWithBodyWithResponse(ctx context.Context, params *PostDBRPParams, contentType string, body io.Reader) (*postDBRPResponse, error) { + rsp, err := c.PostDBRPWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseGetNotificationRulesIDLabelsResponse(rsp) + return ParsePostDBRPResponse(rsp) } -// PostNotificationRuleIDLabelsWithBodyWithResponse request with arbitrary body returning *PostNotificationRuleIDLabelsResponse -func (c *ClientWithResponses) PostNotificationRuleIDLabelsWithBodyWithResponse(ctx context.Context, ruleID string, params *PostNotificationRuleIDLabelsParams, contentType string, body io.Reader) (*postNotificationRuleIDLabelsResponse, error) { - rsp, err := c.PostNotificationRuleIDLabelsWithBody(ctx, ruleID, params, contentType, body) +func (c *ClientWithResponses) PostDBRPWithResponse(ctx context.Context, params *PostDBRPParams, body PostDBRPJSONRequestBody) (*postDBRPResponse, error) { + rsp, err := c.PostDBRP(ctx, params, body) if err != nil { return nil, err } - return ParsePostNotificationRuleIDLabelsResponse(rsp) + return ParsePostDBRPResponse(rsp) } -func (c *ClientWithResponses) PostNotificationRuleIDLabelsWithResponse(ctx context.Context, ruleID string, params *PostNotificationRuleIDLabelsParams, body PostNotificationRuleIDLabelsJSONRequestBody) (*postNotificationRuleIDLabelsResponse, error) { - rsp, err := c.PostNotificationRuleIDLabels(ctx, ruleID, params, body) +// DeleteDBRPIDWithResponse request returning *DeleteDBRPIDResponse +func (c *ClientWithResponses) DeleteDBRPIDWithResponse(ctx context.Context, dbrpID string, params *DeleteDBRPIDParams) (*deleteDBRPIDResponse, error) { + rsp, err := c.DeleteDBRPID(ctx, dbrpID, params) if err != nil { return nil, err } - return ParsePostNotificationRuleIDLabelsResponse(rsp) + return ParseDeleteDBRPIDResponse(rsp) } -// DeleteNotificationRulesIDLabelsIDWithResponse request returning *DeleteNotificationRulesIDLabelsIDResponse -func (c *ClientWithResponses) DeleteNotificationRulesIDLabelsIDWithResponse(ctx context.Context, ruleID string, labelID string, params *DeleteNotificationRulesIDLabelsIDParams) (*deleteNotificationRulesIDLabelsIDResponse, error) { - rsp, err := c.DeleteNotificationRulesIDLabelsID(ctx, ruleID, labelID, params) +// GetDBRPsIDWithResponse request returning *GetDBRPsIDResponse +func (c *ClientWithResponses) GetDBRPsIDWithResponse(ctx context.Context, dbrpID string, params *GetDBRPsIDParams) (*getDBRPsIDResponse, error) { + rsp, err := c.GetDBRPsID(ctx, dbrpID, params) if err != nil { return nil, err } - return ParseDeleteNotificationRulesIDLabelsIDResponse(rsp) + return ParseGetDBRPsIDResponse(rsp) } -// GetNotificationRulesIDQueryWithResponse request returning *GetNotificationRulesIDQueryResponse -func (c *ClientWithResponses) GetNotificationRulesIDQueryWithResponse(ctx context.Context, ruleID string, params *GetNotificationRulesIDQueryParams) (*getNotificationRulesIDQueryResponse, error) { - rsp, err := c.GetNotificationRulesIDQuery(ctx, ruleID, params) +// PatchDBRPIDWithBodyWithResponse request with arbitrary body returning *PatchDBRPIDResponse +func (c *ClientWithResponses) PatchDBRPIDWithBodyWithResponse(ctx context.Context, dbrpID string, params *PatchDBRPIDParams, contentType string, body io.Reader) (*patchDBRPIDResponse, error) { + rsp, err := c.PatchDBRPIDWithBody(ctx, dbrpID, params, contentType, body) if err != nil { return nil, err } - return ParseGetNotificationRulesIDQueryResponse(rsp) + return ParsePatchDBRPIDResponse(rsp) } -// GetOrgsWithResponse request returning *GetOrgsResponse -func (c *ClientWithResponses) GetOrgsWithResponse(ctx context.Context, params *GetOrgsParams) (*getOrgsResponse, error) { - rsp, err := c.GetOrgs(ctx, params) +func (c *ClientWithResponses) PatchDBRPIDWithResponse(ctx context.Context, dbrpID string, params *PatchDBRPIDParams, body PatchDBRPIDJSONRequestBody) (*patchDBRPIDResponse, error) { + rsp, err := c.PatchDBRPID(ctx, dbrpID, params, body) if err != nil { return nil, err } - return ParseGetOrgsResponse(rsp) + return ParsePatchDBRPIDResponse(rsp) } -// PostOrgsWithBodyWithResponse request with arbitrary body returning *PostOrgsResponse -func (c *ClientWithResponses) PostOrgsWithBodyWithResponse(ctx context.Context, params *PostOrgsParams, contentType string, body io.Reader) (*postOrgsResponse, error) { - rsp, err := c.PostOrgsWithBody(ctx, params, contentType, body) +// PostDeleteWithBodyWithResponse request with arbitrary body returning *PostDeleteResponse +func (c *ClientWithResponses) PostDeleteWithBodyWithResponse(ctx context.Context, params *PostDeleteParams, contentType string, body io.Reader) (*postDeleteResponse, error) { + rsp, err := c.PostDeleteWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParsePostOrgsResponse(rsp) + return ParsePostDeleteResponse(rsp) } -func (c *ClientWithResponses) PostOrgsWithResponse(ctx context.Context, params *PostOrgsParams, body PostOrgsJSONRequestBody) (*postOrgsResponse, error) { - rsp, err := c.PostOrgs(ctx, params, body) +func (c *ClientWithResponses) PostDeleteWithResponse(ctx context.Context, params *PostDeleteParams, body PostDeleteJSONRequestBody) (*postDeleteResponse, error) { + rsp, err := c.PostDelete(ctx, params, body) if err != nil { return nil, err } - return ParsePostOrgsResponse(rsp) + return ParsePostDeleteResponse(rsp) } -// DeleteOrgsIDWithResponse request returning *DeleteOrgsIDResponse -func (c *ClientWithResponses) DeleteOrgsIDWithResponse(ctx context.Context, orgID string, params *DeleteOrgsIDParams) (*deleteOrgsIDResponse, error) { - rsp, err := c.DeleteOrgsID(ctx, orgID, params) +// GetDocumentsTemplatesWithResponse request returning *GetDocumentsTemplatesResponse +func (c *ClientWithResponses) GetDocumentsTemplatesWithResponse(ctx context.Context, params *GetDocumentsTemplatesParams) (*getDocumentsTemplatesResponse, error) { + rsp, err := c.GetDocumentsTemplates(ctx, params) if err != nil { return nil, err } - return ParseDeleteOrgsIDResponse(rsp) + return ParseGetDocumentsTemplatesResponse(rsp) } -// GetOrgsIDWithResponse request returning *GetOrgsIDResponse -func (c *ClientWithResponses) GetOrgsIDWithResponse(ctx context.Context, orgID string, params *GetOrgsIDParams) (*getOrgsIDResponse, error) { - rsp, err := c.GetOrgsID(ctx, orgID, params) +// PostDocumentsTemplatesWithBodyWithResponse request with arbitrary body returning *PostDocumentsTemplatesResponse +func (c *ClientWithResponses) PostDocumentsTemplatesWithBodyWithResponse(ctx context.Context, params *PostDocumentsTemplatesParams, contentType string, body io.Reader) (*postDocumentsTemplatesResponse, error) { + rsp, err := c.PostDocumentsTemplatesWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseGetOrgsIDResponse(rsp) + return ParsePostDocumentsTemplatesResponse(rsp) } -// PatchOrgsIDWithBodyWithResponse request with arbitrary body returning *PatchOrgsIDResponse -func (c *ClientWithResponses) PatchOrgsIDWithBodyWithResponse(ctx context.Context, orgID string, params *PatchOrgsIDParams, contentType string, body io.Reader) (*patchOrgsIDResponse, error) { - rsp, err := c.PatchOrgsIDWithBody(ctx, orgID, params, contentType, body) +func (c *ClientWithResponses) PostDocumentsTemplatesWithResponse(ctx context.Context, params *PostDocumentsTemplatesParams, body PostDocumentsTemplatesJSONRequestBody) (*postDocumentsTemplatesResponse, error) { + rsp, err := c.PostDocumentsTemplates(ctx, params, body) if err != nil { return nil, err } - return ParsePatchOrgsIDResponse(rsp) + return ParsePostDocumentsTemplatesResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsIDWithResponse(ctx context.Context, orgID string, params *PatchOrgsIDParams, body PatchOrgsIDJSONRequestBody) (*patchOrgsIDResponse, error) { - rsp, err := c.PatchOrgsID(ctx, orgID, params, body) +// DeleteDocumentsTemplatesIDWithResponse request returning *DeleteDocumentsTemplatesIDResponse +func (c *ClientWithResponses) DeleteDocumentsTemplatesIDWithResponse(ctx context.Context, templateID string, params *DeleteDocumentsTemplatesIDParams) (*deleteDocumentsTemplatesIDResponse, error) { + rsp, err := c.DeleteDocumentsTemplatesID(ctx, templateID, params) if err != nil { return nil, err } - return ParsePatchOrgsIDResponse(rsp) + return ParseDeleteDocumentsTemplatesIDResponse(rsp) } -// PostOrgsIDInvitesWithBodyWithResponse request with arbitrary body returning *PostOrgsIDInvitesResponse -func (c *ClientWithResponses) PostOrgsIDInvitesWithBodyWithResponse(ctx context.Context, orgID string, params *PostOrgsIDInvitesParams, contentType string, body io.Reader) (*postOrgsIDInvitesResponse, error) { - rsp, err := c.PostOrgsIDInvitesWithBody(ctx, orgID, params, contentType, body) +// GetDocumentsTemplatesIDWithResponse request returning *GetDocumentsTemplatesIDResponse +func (c *ClientWithResponses) GetDocumentsTemplatesIDWithResponse(ctx context.Context, templateID string, params *GetDocumentsTemplatesIDParams) (*getDocumentsTemplatesIDResponse, error) { + rsp, err := c.GetDocumentsTemplatesID(ctx, templateID, params) if err != nil { return nil, err } - return ParsePostOrgsIDInvitesResponse(rsp) + return ParseGetDocumentsTemplatesIDResponse(rsp) } -func (c *ClientWithResponses) PostOrgsIDInvitesWithResponse(ctx context.Context, orgID string, params *PostOrgsIDInvitesParams, body PostOrgsIDInvitesJSONRequestBody) (*postOrgsIDInvitesResponse, error) { - rsp, err := c.PostOrgsIDInvites(ctx, orgID, params, body) +// PutDocumentsTemplatesIDWithBodyWithResponse request with arbitrary body returning *PutDocumentsTemplatesIDResponse +func (c *ClientWithResponses) PutDocumentsTemplatesIDWithBodyWithResponse(ctx context.Context, templateID string, params *PutDocumentsTemplatesIDParams, contentType string, body io.Reader) (*putDocumentsTemplatesIDResponse, error) { + rsp, err := c.PutDocumentsTemplatesIDWithBody(ctx, templateID, params, contentType, body) if err != nil { return nil, err } - return ParsePostOrgsIDInvitesResponse(rsp) + return ParsePutDocumentsTemplatesIDResponse(rsp) } -// DeleteOrgsIDInviteIDWithResponse request returning *DeleteOrgsIDInviteIDResponse -func (c *ClientWithResponses) DeleteOrgsIDInviteIDWithResponse(ctx context.Context, orgID string, inviteID string, params *DeleteOrgsIDInviteIDParams) (*deleteOrgsIDInviteIDResponse, error) { - rsp, err := c.DeleteOrgsIDInviteID(ctx, orgID, inviteID, params) +func (c *ClientWithResponses) PutDocumentsTemplatesIDWithResponse(ctx context.Context, templateID string, params *PutDocumentsTemplatesIDParams, body PutDocumentsTemplatesIDJSONRequestBody) (*putDocumentsTemplatesIDResponse, error) { + rsp, err := c.PutDocumentsTemplatesID(ctx, templateID, params, body) if err != nil { return nil, err } - return ParseDeleteOrgsIDInviteIDResponse(rsp) + return ParsePutDocumentsTemplatesIDResponse(rsp) } -// PostOrgsIDInviteIDWithResponse request returning *PostOrgsIDInviteIDResponse -func (c *ClientWithResponses) PostOrgsIDInviteIDWithResponse(ctx context.Context, orgID string, inviteID string, params *PostOrgsIDInviteIDParams) (*postOrgsIDInviteIDResponse, error) { - rsp, err := c.PostOrgsIDInviteID(ctx, orgID, inviteID, params) +// GetDocumentsTemplatesIDLabelsWithResponse request returning *GetDocumentsTemplatesIDLabelsResponse +func (c *ClientWithResponses) GetDocumentsTemplatesIDLabelsWithResponse(ctx context.Context, templateID string, params *GetDocumentsTemplatesIDLabelsParams) (*getDocumentsTemplatesIDLabelsResponse, error) { + rsp, err := c.GetDocumentsTemplatesIDLabels(ctx, templateID, params) if err != nil { return nil, err } - return ParsePostOrgsIDInviteIDResponse(rsp) + return ParseGetDocumentsTemplatesIDLabelsResponse(rsp) } -// GetOrgsIDLabelsWithResponse request returning *GetOrgsIDLabelsResponse -func (c *ClientWithResponses) GetOrgsIDLabelsWithResponse(ctx context.Context, orgID string, params *GetOrgsIDLabelsParams) (*getOrgsIDLabelsResponse, error) { - rsp, err := c.GetOrgsIDLabels(ctx, orgID, params) +// PostDocumentsTemplatesIDLabelsWithBodyWithResponse request with arbitrary body returning *PostDocumentsTemplatesIDLabelsResponse +func (c *ClientWithResponses) PostDocumentsTemplatesIDLabelsWithBodyWithResponse(ctx context.Context, templateID string, params *PostDocumentsTemplatesIDLabelsParams, contentType string, body io.Reader) (*postDocumentsTemplatesIDLabelsResponse, error) { + rsp, err := c.PostDocumentsTemplatesIDLabelsWithBody(ctx, templateID, params, contentType, body) if err != nil { return nil, err } - return ParseGetOrgsIDLabelsResponse(rsp) + return ParsePostDocumentsTemplatesIDLabelsResponse(rsp) } -// PostOrgsIDLabelsWithBodyWithResponse request with arbitrary body returning *PostOrgsIDLabelsResponse -func (c *ClientWithResponses) PostOrgsIDLabelsWithBodyWithResponse(ctx context.Context, orgID string, params *PostOrgsIDLabelsParams, contentType string, body io.Reader) (*postOrgsIDLabelsResponse, error) { - rsp, err := c.PostOrgsIDLabelsWithBody(ctx, orgID, params, contentType, body) +func (c *ClientWithResponses) PostDocumentsTemplatesIDLabelsWithResponse(ctx context.Context, templateID string, params *PostDocumentsTemplatesIDLabelsParams, body PostDocumentsTemplatesIDLabelsJSONRequestBody) (*postDocumentsTemplatesIDLabelsResponse, error) { + rsp, err := c.PostDocumentsTemplatesIDLabels(ctx, templateID, params, body) if err != nil { return nil, err } - return ParsePostOrgsIDLabelsResponse(rsp) + return ParsePostDocumentsTemplatesIDLabelsResponse(rsp) } -func (c *ClientWithResponses) PostOrgsIDLabelsWithResponse(ctx context.Context, orgID string, params *PostOrgsIDLabelsParams, body PostOrgsIDLabelsJSONRequestBody) (*postOrgsIDLabelsResponse, error) { - rsp, err := c.PostOrgsIDLabels(ctx, orgID, params, body) +// DeleteDocumentsTemplatesIDLabelsIDWithResponse request returning *DeleteDocumentsTemplatesIDLabelsIDResponse +func (c *ClientWithResponses) DeleteDocumentsTemplatesIDLabelsIDWithResponse(ctx context.Context, templateID string, labelID string, params *DeleteDocumentsTemplatesIDLabelsIDParams) (*deleteDocumentsTemplatesIDLabelsIDResponse, error) { + rsp, err := c.DeleteDocumentsTemplatesIDLabelsID(ctx, templateID, labelID, params) if err != nil { return nil, err } - return ParsePostOrgsIDLabelsResponse(rsp) + return ParseDeleteDocumentsTemplatesIDLabelsIDResponse(rsp) } -// DeleteOrgsIDLabelsIDWithResponse request returning *DeleteOrgsIDLabelsIDResponse -func (c *ClientWithResponses) DeleteOrgsIDLabelsIDWithResponse(ctx context.Context, orgID string, labelID string, params *DeleteOrgsIDLabelsIDParams) (*deleteOrgsIDLabelsIDResponse, error) { - rsp, err := c.DeleteOrgsIDLabelsID(ctx, orgID, labelID, params) +// GetFlagsWithResponse request returning *GetFlagsResponse +func (c *ClientWithResponses) GetFlagsWithResponse(ctx context.Context, params *GetFlagsParams) (*getFlagsResponse, error) { + rsp, err := c.GetFlags(ctx, params) if err != nil { return nil, err } - return ParseDeleteOrgsIDLabelsIDResponse(rsp) + return ParseGetFlagsResponse(rsp) } -// GetOrgsIDMembersWithResponse request returning *GetOrgsIDMembersResponse -func (c *ClientWithResponses) GetOrgsIDMembersWithResponse(ctx context.Context, orgID string, params *GetOrgsIDMembersParams) (*getOrgsIDMembersResponse, error) { - rsp, err := c.GetOrgsIDMembers(ctx, orgID, params) +// GetHealthWithResponse request returning *GetHealthResponse +func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, params *GetHealthParams) (*getHealthResponse, error) { + rsp, err := c.GetHealth(ctx, params) if err != nil { return nil, err } - return ParseGetOrgsIDMembersResponse(rsp) + return ParseGetHealthResponse(rsp) } -// PostOrgsIDMembersWithBodyWithResponse request with arbitrary body returning *PostOrgsIDMembersResponse -func (c *ClientWithResponses) PostOrgsIDMembersWithBodyWithResponse(ctx context.Context, orgID string, params *PostOrgsIDMembersParams, contentType string, body io.Reader) (*postOrgsIDMembersResponse, error) { - rsp, err := c.PostOrgsIDMembersWithBody(ctx, orgID, params, contentType, body) +// GetLabelsWithResponse request returning *GetLabelsResponse +func (c *ClientWithResponses) GetLabelsWithResponse(ctx context.Context, params *GetLabelsParams) (*getLabelsResponse, error) { + rsp, err := c.GetLabels(ctx, params) if err != nil { return nil, err } - return ParsePostOrgsIDMembersResponse(rsp) + return ParseGetLabelsResponse(rsp) } -func (c *ClientWithResponses) PostOrgsIDMembersWithResponse(ctx context.Context, orgID string, params *PostOrgsIDMembersParams, body PostOrgsIDMembersJSONRequestBody) (*postOrgsIDMembersResponse, error) { - rsp, err := c.PostOrgsIDMembers(ctx, orgID, params, body) +// PostLabelsWithBodyWithResponse request with arbitrary body returning *PostLabelsResponse +func (c *ClientWithResponses) PostLabelsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*postLabelsResponse, error) { + rsp, err := c.PostLabelsWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParsePostOrgsIDMembersResponse(rsp) + return ParsePostLabelsResponse(rsp) } -// DeleteOrgsIDMembersIDWithResponse request returning *DeleteOrgsIDMembersIDResponse -func (c *ClientWithResponses) DeleteOrgsIDMembersIDWithResponse(ctx context.Context, orgID string, userID string, params *DeleteOrgsIDMembersIDParams) (*deleteOrgsIDMembersIDResponse, error) { - rsp, err := c.DeleteOrgsIDMembersID(ctx, orgID, userID, params) +func (c *ClientWithResponses) PostLabelsWithResponse(ctx context.Context, body PostLabelsJSONRequestBody) (*postLabelsResponse, error) { + rsp, err := c.PostLabels(ctx, body) if err != nil { return nil, err } - return ParseDeleteOrgsIDMembersIDResponse(rsp) + return ParsePostLabelsResponse(rsp) } -// GetOrgsIDOwnersWithResponse request returning *GetOrgsIDOwnersResponse -func (c *ClientWithResponses) GetOrgsIDOwnersWithResponse(ctx context.Context, orgID string, params *GetOrgsIDOwnersParams) (*getOrgsIDOwnersResponse, error) { - rsp, err := c.GetOrgsIDOwners(ctx, orgID, params) +// DeleteLabelsIDWithResponse request returning *DeleteLabelsIDResponse +func (c *ClientWithResponses) DeleteLabelsIDWithResponse(ctx context.Context, labelID string, params *DeleteLabelsIDParams) (*deleteLabelsIDResponse, error) { + rsp, err := c.DeleteLabelsID(ctx, labelID, params) if err != nil { return nil, err } - return ParseGetOrgsIDOwnersResponse(rsp) + return ParseDeleteLabelsIDResponse(rsp) } -// PostOrgsIDOwnersWithBodyWithResponse request with arbitrary body returning *PostOrgsIDOwnersResponse -func (c *ClientWithResponses) PostOrgsIDOwnersWithBodyWithResponse(ctx context.Context, orgID string, params *PostOrgsIDOwnersParams, contentType string, body io.Reader) (*postOrgsIDOwnersResponse, error) { - rsp, err := c.PostOrgsIDOwnersWithBody(ctx, orgID, params, contentType, body) +// GetLabelsIDWithResponse request returning *GetLabelsIDResponse +func (c *ClientWithResponses) GetLabelsIDWithResponse(ctx context.Context, labelID string, params *GetLabelsIDParams) (*getLabelsIDResponse, error) { + rsp, err := c.GetLabelsID(ctx, labelID, params) if err != nil { return nil, err } - return ParsePostOrgsIDOwnersResponse(rsp) + return ParseGetLabelsIDResponse(rsp) } -func (c *ClientWithResponses) PostOrgsIDOwnersWithResponse(ctx context.Context, orgID string, params *PostOrgsIDOwnersParams, body PostOrgsIDOwnersJSONRequestBody) (*postOrgsIDOwnersResponse, error) { - rsp, err := c.PostOrgsIDOwners(ctx, orgID, params, body) +// PatchLabelsIDWithBodyWithResponse request with arbitrary body returning *PatchLabelsIDResponse +func (c *ClientWithResponses) PatchLabelsIDWithBodyWithResponse(ctx context.Context, labelID string, params *PatchLabelsIDParams, contentType string, body io.Reader) (*patchLabelsIDResponse, error) { + rsp, err := c.PatchLabelsIDWithBody(ctx, labelID, params, contentType, body) if err != nil { return nil, err } - return ParsePostOrgsIDOwnersResponse(rsp) + return ParsePatchLabelsIDResponse(rsp) } -// DeleteOrgsIDOwnersIDWithResponse request returning *DeleteOrgsIDOwnersIDResponse -func (c *ClientWithResponses) DeleteOrgsIDOwnersIDWithResponse(ctx context.Context, orgID string, userID string, params *DeleteOrgsIDOwnersIDParams) (*deleteOrgsIDOwnersIDResponse, error) { - rsp, err := c.DeleteOrgsIDOwnersID(ctx, orgID, userID, params) +func (c *ClientWithResponses) PatchLabelsIDWithResponse(ctx context.Context, labelID string, params *PatchLabelsIDParams, body PatchLabelsIDJSONRequestBody) (*patchLabelsIDResponse, error) { + rsp, err := c.PatchLabelsID(ctx, labelID, params, body) if err != nil { return nil, err } - return ParseDeleteOrgsIDOwnersIDResponse(rsp) + return ParsePatchLabelsIDResponse(rsp) } -// GetOrgsIDSecretsWithResponse request returning *GetOrgsIDSecretsResponse -func (c *ClientWithResponses) GetOrgsIDSecretsWithResponse(ctx context.Context, orgID string, params *GetOrgsIDSecretsParams) (*getOrgsIDSecretsResponse, error) { - rsp, err := c.GetOrgsIDSecrets(ctx, orgID, params) +// GetMeWithResponse request returning *GetMeResponse +func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, params *GetMeParams) (*getMeResponse, error) { + rsp, err := c.GetMe(ctx, params) if err != nil { return nil, err } - return ParseGetOrgsIDSecretsResponse(rsp) + return ParseGetMeResponse(rsp) } -// PatchOrgsIDSecretsWithBodyWithResponse request with arbitrary body returning *PatchOrgsIDSecretsResponse -func (c *ClientWithResponses) PatchOrgsIDSecretsWithBodyWithResponse(ctx context.Context, orgID string, params *PatchOrgsIDSecretsParams, contentType string, body io.Reader) (*patchOrgsIDSecretsResponse, error) { - rsp, err := c.PatchOrgsIDSecretsWithBody(ctx, orgID, params, contentType, body) +// PutMePasswordWithBodyWithResponse request with arbitrary body returning *PutMePasswordResponse +func (c *ClientWithResponses) PutMePasswordWithBodyWithResponse(ctx context.Context, params *PutMePasswordParams, contentType string, body io.Reader) (*putMePasswordResponse, error) { + rsp, err := c.PutMePasswordWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParsePatchOrgsIDSecretsResponse(rsp) + return ParsePutMePasswordResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsIDSecretsWithResponse(ctx context.Context, orgID string, params *PatchOrgsIDSecretsParams, body PatchOrgsIDSecretsJSONRequestBody) (*patchOrgsIDSecretsResponse, error) { - rsp, err := c.PatchOrgsIDSecrets(ctx, orgID, params, body) +func (c *ClientWithResponses) PutMePasswordWithResponse(ctx context.Context, params *PutMePasswordParams, body PutMePasswordJSONRequestBody) (*putMePasswordResponse, error) { + rsp, err := c.PutMePassword(ctx, params, body) if err != nil { return nil, err } - return ParsePatchOrgsIDSecretsResponse(rsp) + return ParsePutMePasswordResponse(rsp) } -// PostOrgsIDSecretsWithBodyWithResponse request with arbitrary body returning *PostOrgsIDSecretsResponse -func (c *ClientWithResponses) PostOrgsIDSecretsWithBodyWithResponse(ctx context.Context, orgID string, params *PostOrgsIDSecretsParams, contentType string, body io.Reader) (*postOrgsIDSecretsResponse, error) { - rsp, err := c.PostOrgsIDSecretsWithBody(ctx, orgID, params, contentType, body) +// GetNotificationEndpointsWithResponse request returning *GetNotificationEndpointsResponse +func (c *ClientWithResponses) GetNotificationEndpointsWithResponse(ctx context.Context, params *GetNotificationEndpointsParams) (*getNotificationEndpointsResponse, error) { + rsp, err := c.GetNotificationEndpoints(ctx, params) if err != nil { return nil, err } - return ParsePostOrgsIDSecretsResponse(rsp) + return ParseGetNotificationEndpointsResponse(rsp) } -func (c *ClientWithResponses) PostOrgsIDSecretsWithResponse(ctx context.Context, orgID string, params *PostOrgsIDSecretsParams, body PostOrgsIDSecretsJSONRequestBody) (*postOrgsIDSecretsResponse, error) { - rsp, err := c.PostOrgsIDSecrets(ctx, orgID, params, body) +// CreateNotificationEndpointWithBodyWithResponse request with arbitrary body returning *CreateNotificationEndpointResponse +func (c *ClientWithResponses) CreateNotificationEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createNotificationEndpointResponse, error) { + rsp, err := c.CreateNotificationEndpointWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParsePostOrgsIDSecretsResponse(rsp) + return ParseCreateNotificationEndpointResponse(rsp) } -// GetCloudUsersWithResponse request returning *GetCloudUsersResponse -func (c *ClientWithResponses) GetCloudUsersWithResponse(ctx context.Context, orgID string, params *GetCloudUsersParams) (*getCloudUsersResponse, error) { - rsp, err := c.GetCloudUsers(ctx, orgID, params) +func (c *ClientWithResponses) CreateNotificationEndpointWithResponse(ctx context.Context, body CreateNotificationEndpointJSONRequestBody) (*createNotificationEndpointResponse, error) { + rsp, err := c.CreateNotificationEndpoint(ctx, body) if err != nil { return nil, err } - return ParseGetCloudUsersResponse(rsp) + return ParseCreateNotificationEndpointResponse(rsp) } -// DeleteOrgsIDCloudUserIDWithResponse request returning *DeleteOrgsIDCloudUserIDResponse -func (c *ClientWithResponses) DeleteOrgsIDCloudUserIDWithResponse(ctx context.Context, orgID string, userID string, params *DeleteOrgsIDCloudUserIDParams) (*deleteOrgsIDCloudUserIDResponse, error) { - rsp, err := c.DeleteOrgsIDCloudUserID(ctx, orgID, userID, params) +// DeleteNotificationEndpointsIDWithResponse request returning *DeleteNotificationEndpointsIDResponse +func (c *ClientWithResponses) DeleteNotificationEndpointsIDWithResponse(ctx context.Context, endpointID string, params *DeleteNotificationEndpointsIDParams) (*deleteNotificationEndpointsIDResponse, error) { + rsp, err := c.DeleteNotificationEndpointsID(ctx, endpointID, params) if err != nil { return nil, err } - return ParseDeleteOrgsIDCloudUserIDResponse(rsp) + return ParseDeleteNotificationEndpointsIDResponse(rsp) } -// CreatePkgWithBodyWithResponse request with arbitrary body returning *CreatePkgResponse -func (c *ClientWithResponses) CreatePkgWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createPkgResponse, error) { - rsp, err := c.CreatePkgWithBody(ctx, contentType, body) +// GetNotificationEndpointsIDWithResponse request returning *GetNotificationEndpointsIDResponse +func (c *ClientWithResponses) GetNotificationEndpointsIDWithResponse(ctx context.Context, endpointID string, params *GetNotificationEndpointsIDParams) (*getNotificationEndpointsIDResponse, error) { + rsp, err := c.GetNotificationEndpointsID(ctx, endpointID, params) if err != nil { return nil, err } - return ParseCreatePkgResponse(rsp) + return ParseGetNotificationEndpointsIDResponse(rsp) } -func (c *ClientWithResponses) CreatePkgWithResponse(ctx context.Context, body CreatePkgJSONRequestBody) (*createPkgResponse, error) { - rsp, err := c.CreatePkg(ctx, body) +// PatchNotificationEndpointsIDWithBodyWithResponse request with arbitrary body returning *PatchNotificationEndpointsIDResponse +func (c *ClientWithResponses) PatchNotificationEndpointsIDWithBodyWithResponse(ctx context.Context, endpointID string, params *PatchNotificationEndpointsIDParams, contentType string, body io.Reader) (*patchNotificationEndpointsIDResponse, error) { + rsp, err := c.PatchNotificationEndpointsIDWithBody(ctx, endpointID, params, contentType, body) if err != nil { return nil, err } - return ParseCreatePkgResponse(rsp) + return ParsePatchNotificationEndpointsIDResponse(rsp) } -// ApplyPkgWithBodyWithResponse request with arbitrary body returning *ApplyPkgResponse -func (c *ClientWithResponses) ApplyPkgWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*applyPkgResponse, error) { - rsp, err := c.ApplyPkgWithBody(ctx, contentType, body) +func (c *ClientWithResponses) PatchNotificationEndpointsIDWithResponse(ctx context.Context, endpointID string, params *PatchNotificationEndpointsIDParams, body PatchNotificationEndpointsIDJSONRequestBody) (*patchNotificationEndpointsIDResponse, error) { + rsp, err := c.PatchNotificationEndpointsID(ctx, endpointID, params, body) if err != nil { return nil, err } - return ParseApplyPkgResponse(rsp) + return ParsePatchNotificationEndpointsIDResponse(rsp) } -func (c *ClientWithResponses) ApplyPkgWithResponse(ctx context.Context, body ApplyPkgJSONRequestBody) (*applyPkgResponse, error) { - rsp, err := c.ApplyPkg(ctx, body) +// PutNotificationEndpointsIDWithBodyWithResponse request with arbitrary body returning *PutNotificationEndpointsIDResponse +func (c *ClientWithResponses) PutNotificationEndpointsIDWithBodyWithResponse(ctx context.Context, endpointID string, params *PutNotificationEndpointsIDParams, contentType string, body io.Reader) (*putNotificationEndpointsIDResponse, error) { + rsp, err := c.PutNotificationEndpointsIDWithBody(ctx, endpointID, params, contentType, body) if err != nil { return nil, err } - return ParseApplyPkgResponse(rsp) + return ParsePutNotificationEndpointsIDResponse(rsp) } -// ListStacksWithResponse request returning *ListStacksResponse -func (c *ClientWithResponses) ListStacksWithResponse(ctx context.Context, params *ListStacksParams) (*listStacksResponse, error) { - rsp, err := c.ListStacks(ctx, params) +func (c *ClientWithResponses) PutNotificationEndpointsIDWithResponse(ctx context.Context, endpointID string, params *PutNotificationEndpointsIDParams, body PutNotificationEndpointsIDJSONRequestBody) (*putNotificationEndpointsIDResponse, error) { + rsp, err := c.PutNotificationEndpointsID(ctx, endpointID, params, body) if err != nil { return nil, err } - return ParseListStacksResponse(rsp) + return ParsePutNotificationEndpointsIDResponse(rsp) } -// CreateStackWithBodyWithResponse request with arbitrary body returning *CreateStackResponse -func (c *ClientWithResponses) CreateStackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createStackResponse, error) { - rsp, err := c.CreateStackWithBody(ctx, contentType, body) +// GetNotificationEndpointsIDLabelsWithResponse request returning *GetNotificationEndpointsIDLabelsResponse +func (c *ClientWithResponses) GetNotificationEndpointsIDLabelsWithResponse(ctx context.Context, endpointID string, params *GetNotificationEndpointsIDLabelsParams) (*getNotificationEndpointsIDLabelsResponse, error) { + rsp, err := c.GetNotificationEndpointsIDLabels(ctx, endpointID, params) if err != nil { return nil, err } - return ParseCreateStackResponse(rsp) + return ParseGetNotificationEndpointsIDLabelsResponse(rsp) } -func (c *ClientWithResponses) CreateStackWithResponse(ctx context.Context, body CreateStackJSONRequestBody) (*createStackResponse, error) { - rsp, err := c.CreateStack(ctx, body) +// PostNotificationEndpointIDLabelsWithBodyWithResponse request with arbitrary body returning *PostNotificationEndpointIDLabelsResponse +func (c *ClientWithResponses) PostNotificationEndpointIDLabelsWithBodyWithResponse(ctx context.Context, endpointID string, params *PostNotificationEndpointIDLabelsParams, contentType string, body io.Reader) (*postNotificationEndpointIDLabelsResponse, error) { + rsp, err := c.PostNotificationEndpointIDLabelsWithBody(ctx, endpointID, params, contentType, body) if err != nil { return nil, err } - return ParseCreateStackResponse(rsp) + return ParsePostNotificationEndpointIDLabelsResponse(rsp) } -// DeleteStackWithResponse request returning *DeleteStackResponse -func (c *ClientWithResponses) DeleteStackWithResponse(ctx context.Context, stackId string, params *DeleteStackParams) (*deleteStackResponse, error) { - rsp, err := c.DeleteStack(ctx, stackId, params) +func (c *ClientWithResponses) PostNotificationEndpointIDLabelsWithResponse(ctx context.Context, endpointID string, params *PostNotificationEndpointIDLabelsParams, body PostNotificationEndpointIDLabelsJSONRequestBody) (*postNotificationEndpointIDLabelsResponse, error) { + rsp, err := c.PostNotificationEndpointIDLabels(ctx, endpointID, params, body) if err != nil { return nil, err } - return ParseDeleteStackResponse(rsp) + return ParsePostNotificationEndpointIDLabelsResponse(rsp) } -// ReadStackWithResponse request returning *ReadStackResponse -func (c *ClientWithResponses) ReadStackWithResponse(ctx context.Context, stackId string) (*readStackResponse, error) { - rsp, err := c.ReadStack(ctx, stackId) +// DeleteNotificationEndpointsIDLabelsIDWithResponse request returning *DeleteNotificationEndpointsIDLabelsIDResponse +func (c *ClientWithResponses) DeleteNotificationEndpointsIDLabelsIDWithResponse(ctx context.Context, endpointID string, labelID string, params *DeleteNotificationEndpointsIDLabelsIDParams) (*deleteNotificationEndpointsIDLabelsIDResponse, error) { + rsp, err := c.DeleteNotificationEndpointsIDLabelsID(ctx, endpointID, labelID, params) if err != nil { return nil, err } - return ParseReadStackResponse(rsp) + return ParseDeleteNotificationEndpointsIDLabelsIDResponse(rsp) } -// UpdateStackWithBodyWithResponse request with arbitrary body returning *UpdateStackResponse -func (c *ClientWithResponses) UpdateStackWithBodyWithResponse(ctx context.Context, stackId string, contentType string, body io.Reader) (*updateStackResponse, error) { - rsp, err := c.UpdateStackWithBody(ctx, stackId, contentType, body) +// GetNotificationRulesWithResponse request returning *GetNotificationRulesResponse +func (c *ClientWithResponses) GetNotificationRulesWithResponse(ctx context.Context, params *GetNotificationRulesParams) (*getNotificationRulesResponse, error) { + rsp, err := c.GetNotificationRules(ctx, params) if err != nil { return nil, err } - return ParseUpdateStackResponse(rsp) + return ParseGetNotificationRulesResponse(rsp) } -func (c *ClientWithResponses) UpdateStackWithResponse(ctx context.Context, stackId string, body UpdateStackJSONRequestBody) (*updateStackResponse, error) { - rsp, err := c.UpdateStack(ctx, stackId, body) +// CreateNotificationRuleWithBodyWithResponse request with arbitrary body returning *CreateNotificationRuleResponse +func (c *ClientWithResponses) CreateNotificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createNotificationRuleResponse, error) { + rsp, err := c.CreateNotificationRuleWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParseUpdateStackResponse(rsp) + return ParseCreateNotificationRuleResponse(rsp) } -// ExportStackWithResponse request returning *ExportStackResponse -func (c *ClientWithResponses) ExportStackWithResponse(ctx context.Context, stackId string, params *ExportStackParams) (*exportStackResponse, error) { - rsp, err := c.ExportStack(ctx, stackId, params) +func (c *ClientWithResponses) CreateNotificationRuleWithResponse(ctx context.Context, body CreateNotificationRuleJSONRequestBody) (*createNotificationRuleResponse, error) { + rsp, err := c.CreateNotificationRule(ctx, body) if err != nil { return nil, err } - return ParseExportStackResponse(rsp) + return ParseCreateNotificationRuleResponse(rsp) } -// PostQueryWithBodyWithResponse request with arbitrary body returning *PostQueryResponse -func (c *ClientWithResponses) PostQueryWithBodyWithResponse(ctx context.Context, params *PostQueryParams, contentType string, body io.Reader) (*postQueryResponse, error) { - rsp, err := c.PostQueryWithBody(ctx, params, contentType, body) +// DeleteNotificationRulesIDWithResponse request returning *DeleteNotificationRulesIDResponse +func (c *ClientWithResponses) DeleteNotificationRulesIDWithResponse(ctx context.Context, ruleID string, params *DeleteNotificationRulesIDParams) (*deleteNotificationRulesIDResponse, error) { + rsp, err := c.DeleteNotificationRulesID(ctx, ruleID, params) if err != nil { return nil, err } - return ParsePostQueryResponse(rsp) + return ParseDeleteNotificationRulesIDResponse(rsp) } -func (c *ClientWithResponses) PostQueryWithResponse(ctx context.Context, params *PostQueryParams, body PostQueryJSONRequestBody) (*postQueryResponse, error) { - rsp, err := c.PostQuery(ctx, params, body) +// GetNotificationRulesIDWithResponse request returning *GetNotificationRulesIDResponse +func (c *ClientWithResponses) GetNotificationRulesIDWithResponse(ctx context.Context, ruleID string, params *GetNotificationRulesIDParams) (*getNotificationRulesIDResponse, error) { + rsp, err := c.GetNotificationRulesID(ctx, ruleID, params) if err != nil { return nil, err } - return ParsePostQueryResponse(rsp) + return ParseGetNotificationRulesIDResponse(rsp) } -// PostQueryAnalyzeWithBodyWithResponse request with arbitrary body returning *PostQueryAnalyzeResponse -func (c *ClientWithResponses) PostQueryAnalyzeWithBodyWithResponse(ctx context.Context, params *PostQueryAnalyzeParams, contentType string, body io.Reader) (*postQueryAnalyzeResponse, error) { - rsp, err := c.PostQueryAnalyzeWithBody(ctx, params, contentType, body) +// PatchNotificationRulesIDWithBodyWithResponse request with arbitrary body returning *PatchNotificationRulesIDResponse +func (c *ClientWithResponses) PatchNotificationRulesIDWithBodyWithResponse(ctx context.Context, ruleID string, params *PatchNotificationRulesIDParams, contentType string, body io.Reader) (*patchNotificationRulesIDResponse, error) { + rsp, err := c.PatchNotificationRulesIDWithBody(ctx, ruleID, params, contentType, body) if err != nil { return nil, err } - return ParsePostQueryAnalyzeResponse(rsp) + return ParsePatchNotificationRulesIDResponse(rsp) } -func (c *ClientWithResponses) PostQueryAnalyzeWithResponse(ctx context.Context, params *PostQueryAnalyzeParams, body PostQueryAnalyzeJSONRequestBody) (*postQueryAnalyzeResponse, error) { - rsp, err := c.PostQueryAnalyze(ctx, params, body) +func (c *ClientWithResponses) PatchNotificationRulesIDWithResponse(ctx context.Context, ruleID string, params *PatchNotificationRulesIDParams, body PatchNotificationRulesIDJSONRequestBody) (*patchNotificationRulesIDResponse, error) { + rsp, err := c.PatchNotificationRulesID(ctx, ruleID, params, body) if err != nil { return nil, err } - return ParsePostQueryAnalyzeResponse(rsp) + return ParsePatchNotificationRulesIDResponse(rsp) } -// PostQueryAstWithBodyWithResponse request with arbitrary body returning *PostQueryAstResponse -func (c *ClientWithResponses) PostQueryAstWithBodyWithResponse(ctx context.Context, params *PostQueryAstParams, contentType string, body io.Reader) (*postQueryAstResponse, error) { - rsp, err := c.PostQueryAstWithBody(ctx, params, contentType, body) +// PutNotificationRulesIDWithBodyWithResponse request with arbitrary body returning *PutNotificationRulesIDResponse +func (c *ClientWithResponses) PutNotificationRulesIDWithBodyWithResponse(ctx context.Context, ruleID string, params *PutNotificationRulesIDParams, contentType string, body io.Reader) (*putNotificationRulesIDResponse, error) { + rsp, err := c.PutNotificationRulesIDWithBody(ctx, ruleID, params, contentType, body) if err != nil { return nil, err } - return ParsePostQueryAstResponse(rsp) + return ParsePutNotificationRulesIDResponse(rsp) } -func (c *ClientWithResponses) PostQueryAstWithResponse(ctx context.Context, params *PostQueryAstParams, body PostQueryAstJSONRequestBody) (*postQueryAstResponse, error) { - rsp, err := c.PostQueryAst(ctx, params, body) +func (c *ClientWithResponses) PutNotificationRulesIDWithResponse(ctx context.Context, ruleID string, params *PutNotificationRulesIDParams, body PutNotificationRulesIDJSONRequestBody) (*putNotificationRulesIDResponse, error) { + rsp, err := c.PutNotificationRulesID(ctx, ruleID, params, body) if err != nil { return nil, err } - return ParsePostQueryAstResponse(rsp) + return ParsePutNotificationRulesIDResponse(rsp) } -// GetQuerySuggestionsWithResponse request returning *GetQuerySuggestionsResponse -func (c *ClientWithResponses) GetQuerySuggestionsWithResponse(ctx context.Context, params *GetQuerySuggestionsParams) (*getQuerySuggestionsResponse, error) { - rsp, err := c.GetQuerySuggestions(ctx, params) +// GetNotificationRulesIDLabelsWithResponse request returning *GetNotificationRulesIDLabelsResponse +func (c *ClientWithResponses) GetNotificationRulesIDLabelsWithResponse(ctx context.Context, ruleID string, params *GetNotificationRulesIDLabelsParams) (*getNotificationRulesIDLabelsResponse, error) { + rsp, err := c.GetNotificationRulesIDLabels(ctx, ruleID, params) if err != nil { return nil, err } - return ParseGetQuerySuggestionsResponse(rsp) + return ParseGetNotificationRulesIDLabelsResponse(rsp) } -// GetQuerySuggestionsNameWithResponse request returning *GetQuerySuggestionsNameResponse -func (c *ClientWithResponses) GetQuerySuggestionsNameWithResponse(ctx context.Context, name string, params *GetQuerySuggestionsNameParams) (*getQuerySuggestionsNameResponse, error) { - rsp, err := c.GetQuerySuggestionsName(ctx, name, params) +// PostNotificationRuleIDLabelsWithBodyWithResponse request with arbitrary body returning *PostNotificationRuleIDLabelsResponse +func (c *ClientWithResponses) PostNotificationRuleIDLabelsWithBodyWithResponse(ctx context.Context, ruleID string, params *PostNotificationRuleIDLabelsParams, contentType string, body io.Reader) (*postNotificationRuleIDLabelsResponse, error) { + rsp, err := c.PostNotificationRuleIDLabelsWithBody(ctx, ruleID, params, contentType, body) if err != nil { return nil, err } - return ParseGetQuerySuggestionsNameResponse(rsp) + return ParsePostNotificationRuleIDLabelsResponse(rsp) } -// GetReadyWithResponse request returning *GetReadyResponse -func (c *ClientWithResponses) GetReadyWithResponse(ctx context.Context, params *GetReadyParams) (*getReadyResponse, error) { - rsp, err := c.GetReady(ctx, params) +func (c *ClientWithResponses) PostNotificationRuleIDLabelsWithResponse(ctx context.Context, ruleID string, params *PostNotificationRuleIDLabelsParams, body PostNotificationRuleIDLabelsJSONRequestBody) (*postNotificationRuleIDLabelsResponse, error) { + rsp, err := c.PostNotificationRuleIDLabels(ctx, ruleID, params, body) if err != nil { return nil, err } - return ParseGetReadyResponse(rsp) + return ParsePostNotificationRuleIDLabelsResponse(rsp) } -// GetScrapersWithResponse request returning *GetScrapersResponse -func (c *ClientWithResponses) GetScrapersWithResponse(ctx context.Context, params *GetScrapersParams) (*getScrapersResponse, error) { - rsp, err := c.GetScrapers(ctx, params) +// DeleteNotificationRulesIDLabelsIDWithResponse request returning *DeleteNotificationRulesIDLabelsIDResponse +func (c *ClientWithResponses) DeleteNotificationRulesIDLabelsIDWithResponse(ctx context.Context, ruleID string, labelID string, params *DeleteNotificationRulesIDLabelsIDParams) (*deleteNotificationRulesIDLabelsIDResponse, error) { + rsp, err := c.DeleteNotificationRulesIDLabelsID(ctx, ruleID, labelID, params) if err != nil { return nil, err } - return ParseGetScrapersResponse(rsp) + return ParseDeleteNotificationRulesIDLabelsIDResponse(rsp) } -// PostScrapersWithBodyWithResponse request with arbitrary body returning *PostScrapersResponse -func (c *ClientWithResponses) PostScrapersWithBodyWithResponse(ctx context.Context, params *PostScrapersParams, contentType string, body io.Reader) (*postScrapersResponse, error) { - rsp, err := c.PostScrapersWithBody(ctx, params, contentType, body) +// GetNotificationRulesIDQueryWithResponse request returning *GetNotificationRulesIDQueryResponse +func (c *ClientWithResponses) GetNotificationRulesIDQueryWithResponse(ctx context.Context, ruleID string, params *GetNotificationRulesIDQueryParams) (*getNotificationRulesIDQueryResponse, error) { + rsp, err := c.GetNotificationRulesIDQuery(ctx, ruleID, params) if err != nil { return nil, err } - return ParsePostScrapersResponse(rsp) + return ParseGetNotificationRulesIDQueryResponse(rsp) } -func (c *ClientWithResponses) PostScrapersWithResponse(ctx context.Context, params *PostScrapersParams, body PostScrapersJSONRequestBody) (*postScrapersResponse, error) { - rsp, err := c.PostScrapers(ctx, params, body) +// GetOrgsWithResponse request returning *GetOrgsResponse +func (c *ClientWithResponses) GetOrgsWithResponse(ctx context.Context, params *GetOrgsParams) (*getOrgsResponse, error) { + rsp, err := c.GetOrgs(ctx, params) if err != nil { return nil, err } - return ParsePostScrapersResponse(rsp) + return ParseGetOrgsResponse(rsp) } -// DeleteScrapersIDWithResponse request returning *DeleteScrapersIDResponse -func (c *ClientWithResponses) DeleteScrapersIDWithResponse(ctx context.Context, scraperTargetID string, params *DeleteScrapersIDParams) (*deleteScrapersIDResponse, error) { - rsp, err := c.DeleteScrapersID(ctx, scraperTargetID, params) +// PostOrgsWithBodyWithResponse request with arbitrary body returning *PostOrgsResponse +func (c *ClientWithResponses) PostOrgsWithBodyWithResponse(ctx context.Context, params *PostOrgsParams, contentType string, body io.Reader) (*postOrgsResponse, error) { + rsp, err := c.PostOrgsWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseDeleteScrapersIDResponse(rsp) + return ParsePostOrgsResponse(rsp) } -// GetScrapersIDWithResponse request returning *GetScrapersIDResponse -func (c *ClientWithResponses) GetScrapersIDWithResponse(ctx context.Context, scraperTargetID string, params *GetScrapersIDParams) (*getScrapersIDResponse, error) { - rsp, err := c.GetScrapersID(ctx, scraperTargetID, params) +func (c *ClientWithResponses) PostOrgsWithResponse(ctx context.Context, params *PostOrgsParams, body PostOrgsJSONRequestBody) (*postOrgsResponse, error) { + rsp, err := c.PostOrgs(ctx, params, body) if err != nil { return nil, err } - return ParseGetScrapersIDResponse(rsp) + return ParsePostOrgsResponse(rsp) } -// PatchScrapersIDWithBodyWithResponse request with arbitrary body returning *PatchScrapersIDResponse -func (c *ClientWithResponses) PatchScrapersIDWithBodyWithResponse(ctx context.Context, scraperTargetID string, params *PatchScrapersIDParams, contentType string, body io.Reader) (*patchScrapersIDResponse, error) { - rsp, err := c.PatchScrapersIDWithBody(ctx, scraperTargetID, params, contentType, body) +// DeleteOrgsIDWithResponse request returning *DeleteOrgsIDResponse +func (c *ClientWithResponses) DeleteOrgsIDWithResponse(ctx context.Context, orgID string, params *DeleteOrgsIDParams) (*deleteOrgsIDResponse, error) { + rsp, err := c.DeleteOrgsID(ctx, orgID, params) if err != nil { return nil, err } - return ParsePatchScrapersIDResponse(rsp) + return ParseDeleteOrgsIDResponse(rsp) } -func (c *ClientWithResponses) PatchScrapersIDWithResponse(ctx context.Context, scraperTargetID string, params *PatchScrapersIDParams, body PatchScrapersIDJSONRequestBody) (*patchScrapersIDResponse, error) { - rsp, err := c.PatchScrapersID(ctx, scraperTargetID, params, body) +// GetOrgsIDWithResponse request returning *GetOrgsIDResponse +func (c *ClientWithResponses) GetOrgsIDWithResponse(ctx context.Context, orgID string, params *GetOrgsIDParams) (*getOrgsIDResponse, error) { + rsp, err := c.GetOrgsID(ctx, orgID, params) if err != nil { return nil, err } - return ParsePatchScrapersIDResponse(rsp) + return ParseGetOrgsIDResponse(rsp) } -// GetScrapersIDLabelsWithResponse request returning *GetScrapersIDLabelsResponse -func (c *ClientWithResponses) GetScrapersIDLabelsWithResponse(ctx context.Context, scraperTargetID string, params *GetScrapersIDLabelsParams) (*getScrapersIDLabelsResponse, error) { - rsp, err := c.GetScrapersIDLabels(ctx, scraperTargetID, params) +// PatchOrgsIDWithBodyWithResponse request with arbitrary body returning *PatchOrgsIDResponse +func (c *ClientWithResponses) PatchOrgsIDWithBodyWithResponse(ctx context.Context, orgID string, params *PatchOrgsIDParams, contentType string, body io.Reader) (*patchOrgsIDResponse, error) { + rsp, err := c.PatchOrgsIDWithBody(ctx, orgID, params, contentType, body) if err != nil { return nil, err } - return ParseGetScrapersIDLabelsResponse(rsp) + return ParsePatchOrgsIDResponse(rsp) } -// PostScrapersIDLabelsWithBodyWithResponse request with arbitrary body returning *PostScrapersIDLabelsResponse -func (c *ClientWithResponses) PostScrapersIDLabelsWithBodyWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDLabelsParams, contentType string, body io.Reader) (*postScrapersIDLabelsResponse, error) { - rsp, err := c.PostScrapersIDLabelsWithBody(ctx, scraperTargetID, params, contentType, body) +func (c *ClientWithResponses) PatchOrgsIDWithResponse(ctx context.Context, orgID string, params *PatchOrgsIDParams, body PatchOrgsIDJSONRequestBody) (*patchOrgsIDResponse, error) { + rsp, err := c.PatchOrgsID(ctx, orgID, params, body) if err != nil { return nil, err } - return ParsePostScrapersIDLabelsResponse(rsp) + return ParsePatchOrgsIDResponse(rsp) } -func (c *ClientWithResponses) PostScrapersIDLabelsWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDLabelsParams, body PostScrapersIDLabelsJSONRequestBody) (*postScrapersIDLabelsResponse, error) { - rsp, err := c.PostScrapersIDLabels(ctx, scraperTargetID, params, body) +// GetOrgsIDMembersWithResponse request returning *GetOrgsIDMembersResponse +func (c *ClientWithResponses) GetOrgsIDMembersWithResponse(ctx context.Context, orgID string, params *GetOrgsIDMembersParams) (*getOrgsIDMembersResponse, error) { + rsp, err := c.GetOrgsIDMembers(ctx, orgID, params) if err != nil { return nil, err } - return ParsePostScrapersIDLabelsResponse(rsp) + return ParseGetOrgsIDMembersResponse(rsp) } -// DeleteScrapersIDLabelsIDWithResponse request returning *DeleteScrapersIDLabelsIDResponse -func (c *ClientWithResponses) DeleteScrapersIDLabelsIDWithResponse(ctx context.Context, scraperTargetID string, labelID string, params *DeleteScrapersIDLabelsIDParams) (*deleteScrapersIDLabelsIDResponse, error) { - rsp, err := c.DeleteScrapersIDLabelsID(ctx, scraperTargetID, labelID, params) +// PostOrgsIDMembersWithBodyWithResponse request with arbitrary body returning *PostOrgsIDMembersResponse +func (c *ClientWithResponses) PostOrgsIDMembersWithBodyWithResponse(ctx context.Context, orgID string, params *PostOrgsIDMembersParams, contentType string, body io.Reader) (*postOrgsIDMembersResponse, error) { + rsp, err := c.PostOrgsIDMembersWithBody(ctx, orgID, params, contentType, body) if err != nil { return nil, err } - return ParseDeleteScrapersIDLabelsIDResponse(rsp) + return ParsePostOrgsIDMembersResponse(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) +func (c *ClientWithResponses) PostOrgsIDMembersWithResponse(ctx context.Context, orgID string, params *PostOrgsIDMembersParams, body PostOrgsIDMembersJSONRequestBody) (*postOrgsIDMembersResponse, error) { + rsp, err := c.PostOrgsIDMembers(ctx, orgID, params, body) if err != nil { return nil, err } - return ParsePatchScrapersIDLabelsIDResponse(rsp) + return ParsePostOrgsIDMembersResponse(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) +// DeleteOrgsIDMembersIDWithResponse request returning *DeleteOrgsIDMembersIDResponse +func (c *ClientWithResponses) DeleteOrgsIDMembersIDWithResponse(ctx context.Context, orgID string, userID string, params *DeleteOrgsIDMembersIDParams) (*deleteOrgsIDMembersIDResponse, error) { + rsp, err := c.DeleteOrgsIDMembersID(ctx, orgID, userID, params) if err != nil { return nil, err } - return ParsePatchScrapersIDLabelsIDResponse(rsp) + return ParseDeleteOrgsIDMembersIDResponse(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) +// GetOrgsIDOwnersWithResponse request returning *GetOrgsIDOwnersResponse +func (c *ClientWithResponses) GetOrgsIDOwnersWithResponse(ctx context.Context, orgID string, params *GetOrgsIDOwnersParams) (*getOrgsIDOwnersResponse, error) { + rsp, err := c.GetOrgsIDOwners(ctx, orgID, params) if err != nil { return nil, err } - return ParseGetScrapersIDMembersResponse(rsp) + return ParseGetOrgsIDOwnersResponse(rsp) } -// PostScrapersIDMembersWithBodyWithResponse request with arbitrary body returning *PostScrapersIDMembersResponse -func (c *ClientWithResponses) PostScrapersIDMembersWithBodyWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDMembersParams, contentType string, body io.Reader) (*postScrapersIDMembersResponse, error) { - rsp, err := c.PostScrapersIDMembersWithBody(ctx, scraperTargetID, params, contentType, body) +// PostOrgsIDOwnersWithBodyWithResponse request with arbitrary body returning *PostOrgsIDOwnersResponse +func (c *ClientWithResponses) PostOrgsIDOwnersWithBodyWithResponse(ctx context.Context, orgID string, params *PostOrgsIDOwnersParams, contentType string, body io.Reader) (*postOrgsIDOwnersResponse, error) { + rsp, err := c.PostOrgsIDOwnersWithBody(ctx, orgID, params, contentType, body) if err != nil { return nil, err } - return ParsePostScrapersIDMembersResponse(rsp) + return ParsePostOrgsIDOwnersResponse(rsp) } -func (c *ClientWithResponses) PostScrapersIDMembersWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDMembersParams, body PostScrapersIDMembersJSONRequestBody) (*postScrapersIDMembersResponse, error) { - rsp, err := c.PostScrapersIDMembers(ctx, scraperTargetID, params, body) +func (c *ClientWithResponses) PostOrgsIDOwnersWithResponse(ctx context.Context, orgID string, params *PostOrgsIDOwnersParams, body PostOrgsIDOwnersJSONRequestBody) (*postOrgsIDOwnersResponse, error) { + rsp, err := c.PostOrgsIDOwners(ctx, orgID, params, body) if err != nil { return nil, err } - return ParsePostScrapersIDMembersResponse(rsp) + return ParsePostOrgsIDOwnersResponse(rsp) } -// DeleteScrapersIDMembersIDWithResponse request returning *DeleteScrapersIDMembersIDResponse -func (c *ClientWithResponses) DeleteScrapersIDMembersIDWithResponse(ctx context.Context, scraperTargetID string, userID string, params *DeleteScrapersIDMembersIDParams) (*deleteScrapersIDMembersIDResponse, error) { - rsp, err := c.DeleteScrapersIDMembersID(ctx, scraperTargetID, userID, params) +// DeleteOrgsIDOwnersIDWithResponse request returning *DeleteOrgsIDOwnersIDResponse +func (c *ClientWithResponses) DeleteOrgsIDOwnersIDWithResponse(ctx context.Context, orgID string, userID string, params *DeleteOrgsIDOwnersIDParams) (*deleteOrgsIDOwnersIDResponse, error) { + rsp, err := c.DeleteOrgsIDOwnersID(ctx, orgID, userID, params) if err != nil { return nil, err } - return ParseDeleteScrapersIDMembersIDResponse(rsp) + return ParseDeleteOrgsIDOwnersIDResponse(rsp) } -// GetScrapersIDOwnersWithResponse request returning *GetScrapersIDOwnersResponse -func (c *ClientWithResponses) GetScrapersIDOwnersWithResponse(ctx context.Context, scraperTargetID string, params *GetScrapersIDOwnersParams) (*getScrapersIDOwnersResponse, error) { - rsp, err := c.GetScrapersIDOwners(ctx, scraperTargetID, params) +// GetOrgsIDSecretsWithResponse request returning *GetOrgsIDSecretsResponse +func (c *ClientWithResponses) GetOrgsIDSecretsWithResponse(ctx context.Context, orgID string, params *GetOrgsIDSecretsParams) (*getOrgsIDSecretsResponse, error) { + rsp, err := c.GetOrgsIDSecrets(ctx, orgID, params) if err != nil { return nil, err } - return ParseGetScrapersIDOwnersResponse(rsp) + return ParseGetOrgsIDSecretsResponse(rsp) } -// PostScrapersIDOwnersWithBodyWithResponse request with arbitrary body returning *PostScrapersIDOwnersResponse -func (c *ClientWithResponses) PostScrapersIDOwnersWithBodyWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDOwnersParams, contentType string, body io.Reader) (*postScrapersIDOwnersResponse, error) { - rsp, err := c.PostScrapersIDOwnersWithBody(ctx, scraperTargetID, params, contentType, body) +// PatchOrgsIDSecretsWithBodyWithResponse request with arbitrary body returning *PatchOrgsIDSecretsResponse +func (c *ClientWithResponses) PatchOrgsIDSecretsWithBodyWithResponse(ctx context.Context, orgID string, params *PatchOrgsIDSecretsParams, contentType string, body io.Reader) (*patchOrgsIDSecretsResponse, error) { + rsp, err := c.PatchOrgsIDSecretsWithBody(ctx, orgID, params, contentType, body) if err != nil { return nil, err } - return ParsePostScrapersIDOwnersResponse(rsp) + return ParsePatchOrgsIDSecretsResponse(rsp) } -func (c *ClientWithResponses) PostScrapersIDOwnersWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDOwnersParams, body PostScrapersIDOwnersJSONRequestBody) (*postScrapersIDOwnersResponse, error) { - rsp, err := c.PostScrapersIDOwners(ctx, scraperTargetID, params, body) +func (c *ClientWithResponses) PatchOrgsIDSecretsWithResponse(ctx context.Context, orgID string, params *PatchOrgsIDSecretsParams, body PatchOrgsIDSecretsJSONRequestBody) (*patchOrgsIDSecretsResponse, error) { + rsp, err := c.PatchOrgsIDSecrets(ctx, orgID, params, body) if err != nil { return nil, err } - return ParsePostScrapersIDOwnersResponse(rsp) + return ParsePatchOrgsIDSecretsResponse(rsp) } -// DeleteScrapersIDOwnersIDWithResponse request returning *DeleteScrapersIDOwnersIDResponse -func (c *ClientWithResponses) DeleteScrapersIDOwnersIDWithResponse(ctx context.Context, scraperTargetID string, userID string, params *DeleteScrapersIDOwnersIDParams) (*deleteScrapersIDOwnersIDResponse, error) { - rsp, err := c.DeleteScrapersIDOwnersID(ctx, scraperTargetID, userID, params) +// PostOrgsIDSecretsWithBodyWithResponse request with arbitrary body returning *PostOrgsIDSecretsResponse +func (c *ClientWithResponses) PostOrgsIDSecretsWithBodyWithResponse(ctx context.Context, orgID string, params *PostOrgsIDSecretsParams, contentType string, body io.Reader) (*postOrgsIDSecretsResponse, error) { + rsp, err := c.PostOrgsIDSecretsWithBody(ctx, orgID, params, contentType, body) if err != nil { return nil, err } - return ParseDeleteScrapersIDOwnersIDResponse(rsp) + return ParsePostOrgsIDSecretsResponse(rsp) } -// GetSetupWithResponse request returning *GetSetupResponse -func (c *ClientWithResponses) GetSetupWithResponse(ctx context.Context, params *GetSetupParams) (*getSetupResponse, error) { - rsp, err := c.GetSetup(ctx, params) +func (c *ClientWithResponses) PostOrgsIDSecretsWithResponse(ctx context.Context, orgID string, params *PostOrgsIDSecretsParams, body PostOrgsIDSecretsJSONRequestBody) (*postOrgsIDSecretsResponse, error) { + rsp, err := c.PostOrgsIDSecrets(ctx, orgID, params, body) if err != nil { return nil, err } - return ParseGetSetupResponse(rsp) + return ParsePostOrgsIDSecretsResponse(rsp) } -// PostSetupWithBodyWithResponse request with arbitrary body returning *PostSetupResponse -func (c *ClientWithResponses) PostSetupWithBodyWithResponse(ctx context.Context, params *PostSetupParams, contentType string, body io.Reader) (*postSetupResponse, error) { - rsp, err := c.PostSetupWithBody(ctx, params, contentType, body) +// PostQueryWithBodyWithResponse request with arbitrary body returning *PostQueryResponse +func (c *ClientWithResponses) PostQueryWithBodyWithResponse(ctx context.Context, params *PostQueryParams, contentType string, body io.Reader) (*postQueryResponse, error) { + rsp, err := c.PostQueryWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParsePostSetupResponse(rsp) + return ParsePostQueryResponse(rsp) } -func (c *ClientWithResponses) PostSetupWithResponse(ctx context.Context, params *PostSetupParams, body PostSetupJSONRequestBody) (*postSetupResponse, error) { - rsp, err := c.PostSetup(ctx, params, body) +func (c *ClientWithResponses) PostQueryWithResponse(ctx context.Context, params *PostQueryParams, body PostQueryJSONRequestBody) (*postQueryResponse, error) { + rsp, err := c.PostQuery(ctx, params, body) if err != nil { return nil, err } - return ParsePostSetupResponse(rsp) + return ParsePostQueryResponse(rsp) } -// PostSetupUserWithBodyWithResponse request with arbitrary body returning *PostSetupUserResponse -func (c *ClientWithResponses) PostSetupUserWithBodyWithResponse(ctx context.Context, params *PostSetupUserParams, contentType string, body io.Reader) (*postSetupUserResponse, error) { - rsp, err := c.PostSetupUserWithBody(ctx, params, contentType, body) +// PostQueryAnalyzeWithBodyWithResponse request with arbitrary body returning *PostQueryAnalyzeResponse +func (c *ClientWithResponses) PostQueryAnalyzeWithBodyWithResponse(ctx context.Context, params *PostQueryAnalyzeParams, contentType string, body io.Reader) (*postQueryAnalyzeResponse, error) { + rsp, err := c.PostQueryAnalyzeWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParsePostSetupUserResponse(rsp) + return ParsePostQueryAnalyzeResponse(rsp) } -func (c *ClientWithResponses) PostSetupUserWithResponse(ctx context.Context, params *PostSetupUserParams, body PostSetupUserJSONRequestBody) (*postSetupUserResponse, error) { - rsp, err := c.PostSetupUser(ctx, params, body) +func (c *ClientWithResponses) PostQueryAnalyzeWithResponse(ctx context.Context, params *PostQueryAnalyzeParams, body PostQueryAnalyzeJSONRequestBody) (*postQueryAnalyzeResponse, error) { + rsp, err := c.PostQueryAnalyze(ctx, params, body) if err != nil { return nil, err } - return ParsePostSetupUserResponse(rsp) + return ParsePostQueryAnalyzeResponse(rsp) } -// PostSigninWithResponse request returning *PostSigninResponse -func (c *ClientWithResponses) PostSigninWithResponse(ctx context.Context, params *PostSigninParams) (*postSigninResponse, error) { - rsp, err := c.PostSignin(ctx, params) +// PostQueryAstWithBodyWithResponse request with arbitrary body returning *PostQueryAstResponse +func (c *ClientWithResponses) PostQueryAstWithBodyWithResponse(ctx context.Context, params *PostQueryAstParams, contentType string, body io.Reader) (*postQueryAstResponse, error) { + rsp, err := c.PostQueryAstWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParsePostSigninResponse(rsp) + return ParsePostQueryAstResponse(rsp) } -// PostSignoutWithResponse request returning *PostSignoutResponse -func (c *ClientWithResponses) PostSignoutWithResponse(ctx context.Context, params *PostSignoutParams) (*postSignoutResponse, error) { - rsp, err := c.PostSignout(ctx, params) +func (c *ClientWithResponses) PostQueryAstWithResponse(ctx context.Context, params *PostQueryAstParams, body PostQueryAstJSONRequestBody) (*postQueryAstResponse, error) { + rsp, err := c.PostQueryAst(ctx, params, body) if err != nil { return nil, err } - return ParsePostSignoutResponse(rsp) + return ParsePostQueryAstResponse(rsp) } -// GetSourcesWithResponse request returning *GetSourcesResponse -func (c *ClientWithResponses) GetSourcesWithResponse(ctx context.Context, params *GetSourcesParams) (*getSourcesResponse, error) { - rsp, err := c.GetSources(ctx, params) +// GetQuerySuggestionsWithResponse request returning *GetQuerySuggestionsResponse +func (c *ClientWithResponses) GetQuerySuggestionsWithResponse(ctx context.Context, params *GetQuerySuggestionsParams) (*getQuerySuggestionsResponse, error) { + rsp, err := c.GetQuerySuggestions(ctx, params) if err != nil { return nil, err } - return ParseGetSourcesResponse(rsp) + return ParseGetQuerySuggestionsResponse(rsp) } -// PostSourcesWithBodyWithResponse request with arbitrary body returning *PostSourcesResponse -func (c *ClientWithResponses) PostSourcesWithBodyWithResponse(ctx context.Context, params *PostSourcesParams, contentType string, body io.Reader) (*postSourcesResponse, error) { - rsp, err := c.PostSourcesWithBody(ctx, params, contentType, body) +// GetQuerySuggestionsNameWithResponse request returning *GetQuerySuggestionsNameResponse +func (c *ClientWithResponses) GetQuerySuggestionsNameWithResponse(ctx context.Context, name string, params *GetQuerySuggestionsNameParams) (*getQuerySuggestionsNameResponse, error) { + rsp, err := c.GetQuerySuggestionsName(ctx, name, params) if err != nil { return nil, err } - return ParsePostSourcesResponse(rsp) + return ParseGetQuerySuggestionsNameResponse(rsp) } -func (c *ClientWithResponses) PostSourcesWithResponse(ctx context.Context, params *PostSourcesParams, body PostSourcesJSONRequestBody) (*postSourcesResponse, error) { - rsp, err := c.PostSources(ctx, params, body) +// GetReadyWithResponse request returning *GetReadyResponse +func (c *ClientWithResponses) GetReadyWithResponse(ctx context.Context, params *GetReadyParams) (*getReadyResponse, error) { + rsp, err := c.GetReady(ctx, params) if err != nil { return nil, err } - return ParsePostSourcesResponse(rsp) + return ParseGetReadyResponse(rsp) } -// DeleteSourcesIDWithResponse request returning *DeleteSourcesIDResponse -func (c *ClientWithResponses) DeleteSourcesIDWithResponse(ctx context.Context, sourceID string, params *DeleteSourcesIDParams) (*deleteSourcesIDResponse, error) { - rsp, err := c.DeleteSourcesID(ctx, sourceID, params) +// GetScrapersWithResponse request returning *GetScrapersResponse +func (c *ClientWithResponses) GetScrapersWithResponse(ctx context.Context, params *GetScrapersParams) (*getScrapersResponse, error) { + rsp, err := c.GetScrapers(ctx, params) if err != nil { return nil, err } - return ParseDeleteSourcesIDResponse(rsp) + return ParseGetScrapersResponse(rsp) } -// GetSourcesIDWithResponse request returning *GetSourcesIDResponse -func (c *ClientWithResponses) GetSourcesIDWithResponse(ctx context.Context, sourceID string, params *GetSourcesIDParams) (*getSourcesIDResponse, error) { - rsp, err := c.GetSourcesID(ctx, sourceID, params) +// PostScrapersWithBodyWithResponse request with arbitrary body returning *PostScrapersResponse +func (c *ClientWithResponses) PostScrapersWithBodyWithResponse(ctx context.Context, params *PostScrapersParams, contentType string, body io.Reader) (*postScrapersResponse, error) { + rsp, err := c.PostScrapersWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseGetSourcesIDResponse(rsp) + return ParsePostScrapersResponse(rsp) } -// PatchSourcesIDWithBodyWithResponse request with arbitrary body returning *PatchSourcesIDResponse -func (c *ClientWithResponses) PatchSourcesIDWithBodyWithResponse(ctx context.Context, sourceID string, params *PatchSourcesIDParams, contentType string, body io.Reader) (*patchSourcesIDResponse, error) { - rsp, err := c.PatchSourcesIDWithBody(ctx, sourceID, params, contentType, body) +func (c *ClientWithResponses) PostScrapersWithResponse(ctx context.Context, params *PostScrapersParams, body PostScrapersJSONRequestBody) (*postScrapersResponse, error) { + rsp, err := c.PostScrapers(ctx, params, body) if err != nil { return nil, err } - return ParsePatchSourcesIDResponse(rsp) + return ParsePostScrapersResponse(rsp) } -func (c *ClientWithResponses) PatchSourcesIDWithResponse(ctx context.Context, sourceID string, params *PatchSourcesIDParams, body PatchSourcesIDJSONRequestBody) (*patchSourcesIDResponse, error) { - rsp, err := c.PatchSourcesID(ctx, sourceID, params, body) +// DeleteScrapersIDWithResponse request returning *DeleteScrapersIDResponse +func (c *ClientWithResponses) DeleteScrapersIDWithResponse(ctx context.Context, scraperTargetID string, params *DeleteScrapersIDParams) (*deleteScrapersIDResponse, error) { + rsp, err := c.DeleteScrapersID(ctx, scraperTargetID, params) if err != nil { return nil, err } - return ParsePatchSourcesIDResponse(rsp) + return ParseDeleteScrapersIDResponse(rsp) } -// GetSourcesIDBucketsWithResponse request returning *GetSourcesIDBucketsResponse -func (c *ClientWithResponses) GetSourcesIDBucketsWithResponse(ctx context.Context, sourceID string, params *GetSourcesIDBucketsParams) (*getSourcesIDBucketsResponse, error) { - rsp, err := c.GetSourcesIDBuckets(ctx, sourceID, params) +// GetScrapersIDWithResponse request returning *GetScrapersIDResponse +func (c *ClientWithResponses) GetScrapersIDWithResponse(ctx context.Context, scraperTargetID string, params *GetScrapersIDParams) (*getScrapersIDResponse, error) { + rsp, err := c.GetScrapersID(ctx, scraperTargetID, params) if err != nil { return nil, err } - return ParseGetSourcesIDBucketsResponse(rsp) + return ParseGetScrapersIDResponse(rsp) } -// GetSourcesIDHealthWithResponse request returning *GetSourcesIDHealthResponse -func (c *ClientWithResponses) GetSourcesIDHealthWithResponse(ctx context.Context, sourceID string, params *GetSourcesIDHealthParams) (*getSourcesIDHealthResponse, error) { - rsp, err := c.GetSourcesIDHealth(ctx, sourceID, params) +// PatchScrapersIDWithBodyWithResponse request with arbitrary body returning *PatchScrapersIDResponse +func (c *ClientWithResponses) PatchScrapersIDWithBodyWithResponse(ctx context.Context, scraperTargetID string, params *PatchScrapersIDParams, contentType string, body io.Reader) (*patchScrapersIDResponse, error) { + rsp, err := c.PatchScrapersIDWithBody(ctx, scraperTargetID, params, contentType, body) if err != nil { return nil, err } - return ParseGetSourcesIDHealthResponse(rsp) + return ParsePatchScrapersIDResponse(rsp) } -// GetTasksWithResponse request returning *GetTasksResponse -func (c *ClientWithResponses) GetTasksWithResponse(ctx context.Context, params *GetTasksParams) (*getTasksResponse, error) { - rsp, err := c.GetTasks(ctx, params) +func (c *ClientWithResponses) PatchScrapersIDWithResponse(ctx context.Context, scraperTargetID string, params *PatchScrapersIDParams, body PatchScrapersIDJSONRequestBody) (*patchScrapersIDResponse, error) { + rsp, err := c.PatchScrapersID(ctx, scraperTargetID, params, body) if err != nil { return nil, err } - return ParseGetTasksResponse(rsp) + return ParsePatchScrapersIDResponse(rsp) } -// PostTasksWithBodyWithResponse request with arbitrary body returning *PostTasksResponse -func (c *ClientWithResponses) PostTasksWithBodyWithResponse(ctx context.Context, params *PostTasksParams, contentType string, body io.Reader) (*postTasksResponse, error) { - rsp, err := c.PostTasksWithBody(ctx, params, contentType, body) +// GetScrapersIDLabelsWithResponse request returning *GetScrapersIDLabelsResponse +func (c *ClientWithResponses) GetScrapersIDLabelsWithResponse(ctx context.Context, scraperTargetID string, params *GetScrapersIDLabelsParams) (*getScrapersIDLabelsResponse, error) { + rsp, err := c.GetScrapersIDLabels(ctx, scraperTargetID, params) if err != nil { return nil, err } - return ParsePostTasksResponse(rsp) + return ParseGetScrapersIDLabelsResponse(rsp) } -func (c *ClientWithResponses) PostTasksWithResponse(ctx context.Context, params *PostTasksParams, body PostTasksJSONRequestBody) (*postTasksResponse, error) { - rsp, err := c.PostTasks(ctx, params, body) +// PostScrapersIDLabelsWithBodyWithResponse request with arbitrary body returning *PostScrapersIDLabelsResponse +func (c *ClientWithResponses) PostScrapersIDLabelsWithBodyWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDLabelsParams, contentType string, body io.Reader) (*postScrapersIDLabelsResponse, error) { + rsp, err := c.PostScrapersIDLabelsWithBody(ctx, scraperTargetID, params, contentType, body) if err != nil { return nil, err } - return ParsePostTasksResponse(rsp) + return ParsePostScrapersIDLabelsResponse(rsp) } -// DeleteTasksIDWithResponse request returning *DeleteTasksIDResponse -func (c *ClientWithResponses) DeleteTasksIDWithResponse(ctx context.Context, taskID string, params *DeleteTasksIDParams) (*deleteTasksIDResponse, error) { - rsp, err := c.DeleteTasksID(ctx, taskID, params) +func (c *ClientWithResponses) PostScrapersIDLabelsWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDLabelsParams, body PostScrapersIDLabelsJSONRequestBody) (*postScrapersIDLabelsResponse, error) { + rsp, err := c.PostScrapersIDLabels(ctx, scraperTargetID, params, body) if err != nil { return nil, err } - return ParseDeleteTasksIDResponse(rsp) + return ParsePostScrapersIDLabelsResponse(rsp) } -// GetTasksIDWithResponse request returning *GetTasksIDResponse -func (c *ClientWithResponses) GetTasksIDWithResponse(ctx context.Context, taskID string, params *GetTasksIDParams) (*getTasksIDResponse, error) { - rsp, err := c.GetTasksID(ctx, taskID, params) +// DeleteScrapersIDLabelsIDWithResponse request returning *DeleteScrapersIDLabelsIDResponse +func (c *ClientWithResponses) DeleteScrapersIDLabelsIDWithResponse(ctx context.Context, scraperTargetID string, labelID string, params *DeleteScrapersIDLabelsIDParams) (*deleteScrapersIDLabelsIDResponse, error) { + rsp, err := c.DeleteScrapersIDLabelsID(ctx, scraperTargetID, labelID, params) if err != nil { return nil, err } - return ParseGetTasksIDResponse(rsp) + return ParseDeleteScrapersIDLabelsIDResponse(rsp) } -// PatchTasksIDWithBodyWithResponse request with arbitrary body returning *PatchTasksIDResponse -func (c *ClientWithResponses) PatchTasksIDWithBodyWithResponse(ctx context.Context, taskID string, params *PatchTasksIDParams, contentType string, body io.Reader) (*patchTasksIDResponse, error) { - rsp, err := c.PatchTasksIDWithBody(ctx, taskID, params, contentType, body) +// 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 ParsePatchTasksIDResponse(rsp) + return ParsePatchScrapersIDLabelsIDResponse(rsp) } -func (c *ClientWithResponses) PatchTasksIDWithResponse(ctx context.Context, taskID string, params *PatchTasksIDParams, body PatchTasksIDJSONRequestBody) (*patchTasksIDResponse, error) { - rsp, err := c.PatchTasksID(ctx, taskID, params, body) +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 ParsePatchTasksIDResponse(rsp) + return ParsePatchScrapersIDLabelsIDResponse(rsp) } -// GetTasksIDLabelsWithResponse request returning *GetTasksIDLabelsResponse -func (c *ClientWithResponses) GetTasksIDLabelsWithResponse(ctx context.Context, taskID string, params *GetTasksIDLabelsParams) (*getTasksIDLabelsResponse, error) { - rsp, err := c.GetTasksIDLabels(ctx, taskID, params) +// GetScrapersIDMembersWithResponse request returning *GetScrapersIDMembersResponse +func (c *ClientWithResponses) GetScrapersIDMembersWithResponse(ctx context.Context, scraperTargetID string, params *GetScrapersIDMembersParams) (*getScrapersIDMembersResponse, error) { + rsp, err := c.GetScrapersIDMembers(ctx, scraperTargetID, params) if err != nil { return nil, err } - return ParseGetTasksIDLabelsResponse(rsp) + return ParseGetScrapersIDMembersResponse(rsp) } -// PostTasksIDLabelsWithBodyWithResponse request with arbitrary body returning *PostTasksIDLabelsResponse -func (c *ClientWithResponses) PostTasksIDLabelsWithBodyWithResponse(ctx context.Context, taskID string, params *PostTasksIDLabelsParams, contentType string, body io.Reader) (*postTasksIDLabelsResponse, error) { - rsp, err := c.PostTasksIDLabelsWithBody(ctx, taskID, params, contentType, body) +// PostScrapersIDMembersWithBodyWithResponse request with arbitrary body returning *PostScrapersIDMembersResponse +func (c *ClientWithResponses) PostScrapersIDMembersWithBodyWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDMembersParams, contentType string, body io.Reader) (*postScrapersIDMembersResponse, error) { + rsp, err := c.PostScrapersIDMembersWithBody(ctx, scraperTargetID, params, contentType, body) if err != nil { return nil, err } - return ParsePostTasksIDLabelsResponse(rsp) + return ParsePostScrapersIDMembersResponse(rsp) } -func (c *ClientWithResponses) PostTasksIDLabelsWithResponse(ctx context.Context, taskID string, params *PostTasksIDLabelsParams, body PostTasksIDLabelsJSONRequestBody) (*postTasksIDLabelsResponse, error) { - rsp, err := c.PostTasksIDLabels(ctx, taskID, params, body) +func (c *ClientWithResponses) PostScrapersIDMembersWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDMembersParams, body PostScrapersIDMembersJSONRequestBody) (*postScrapersIDMembersResponse, error) { + rsp, err := c.PostScrapersIDMembers(ctx, scraperTargetID, params, body) if err != nil { return nil, err } - return ParsePostTasksIDLabelsResponse(rsp) + return ParsePostScrapersIDMembersResponse(rsp) } -// DeleteTasksIDLabelsIDWithResponse request returning *DeleteTasksIDLabelsIDResponse -func (c *ClientWithResponses) DeleteTasksIDLabelsIDWithResponse(ctx context.Context, taskID string, labelID string, params *DeleteTasksIDLabelsIDParams) (*deleteTasksIDLabelsIDResponse, error) { - rsp, err := c.DeleteTasksIDLabelsID(ctx, taskID, labelID, params) +// DeleteScrapersIDMembersIDWithResponse request returning *DeleteScrapersIDMembersIDResponse +func (c *ClientWithResponses) DeleteScrapersIDMembersIDWithResponse(ctx context.Context, scraperTargetID string, userID string, params *DeleteScrapersIDMembersIDParams) (*deleteScrapersIDMembersIDResponse, error) { + rsp, err := c.DeleteScrapersIDMembersID(ctx, scraperTargetID, userID, params) if err != nil { return nil, err } - return ParseDeleteTasksIDLabelsIDResponse(rsp) + return ParseDeleteScrapersIDMembersIDResponse(rsp) } -// GetTasksIDLogsWithResponse request returning *GetTasksIDLogsResponse -func (c *ClientWithResponses) GetTasksIDLogsWithResponse(ctx context.Context, taskID string, params *GetTasksIDLogsParams) (*getTasksIDLogsResponse, error) { - rsp, err := c.GetTasksIDLogs(ctx, taskID, params) +// GetScrapersIDOwnersWithResponse request returning *GetScrapersIDOwnersResponse +func (c *ClientWithResponses) GetScrapersIDOwnersWithResponse(ctx context.Context, scraperTargetID string, params *GetScrapersIDOwnersParams) (*getScrapersIDOwnersResponse, error) { + rsp, err := c.GetScrapersIDOwners(ctx, scraperTargetID, params) if err != nil { return nil, err } - return ParseGetTasksIDLogsResponse(rsp) + return ParseGetScrapersIDOwnersResponse(rsp) } -// GetTasksIDMembersWithResponse request returning *GetTasksIDMembersResponse -func (c *ClientWithResponses) GetTasksIDMembersWithResponse(ctx context.Context, taskID string, params *GetTasksIDMembersParams) (*getTasksIDMembersResponse, error) { - rsp, err := c.GetTasksIDMembers(ctx, taskID, params) +// PostScrapersIDOwnersWithBodyWithResponse request with arbitrary body returning *PostScrapersIDOwnersResponse +func (c *ClientWithResponses) PostScrapersIDOwnersWithBodyWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDOwnersParams, contentType string, body io.Reader) (*postScrapersIDOwnersResponse, error) { + rsp, err := c.PostScrapersIDOwnersWithBody(ctx, scraperTargetID, params, contentType, body) if err != nil { return nil, err } - return ParseGetTasksIDMembersResponse(rsp) + return ParsePostScrapersIDOwnersResponse(rsp) } -// PostTasksIDMembersWithBodyWithResponse request with arbitrary body returning *PostTasksIDMembersResponse -func (c *ClientWithResponses) PostTasksIDMembersWithBodyWithResponse(ctx context.Context, taskID string, params *PostTasksIDMembersParams, contentType string, body io.Reader) (*postTasksIDMembersResponse, error) { - rsp, err := c.PostTasksIDMembersWithBody(ctx, taskID, params, contentType, body) +func (c *ClientWithResponses) PostScrapersIDOwnersWithResponse(ctx context.Context, scraperTargetID string, params *PostScrapersIDOwnersParams, body PostScrapersIDOwnersJSONRequestBody) (*postScrapersIDOwnersResponse, error) { + rsp, err := c.PostScrapersIDOwners(ctx, scraperTargetID, params, body) if err != nil { return nil, err } - return ParsePostTasksIDMembersResponse(rsp) + return ParsePostScrapersIDOwnersResponse(rsp) } -func (c *ClientWithResponses) PostTasksIDMembersWithResponse(ctx context.Context, taskID string, params *PostTasksIDMembersParams, body PostTasksIDMembersJSONRequestBody) (*postTasksIDMembersResponse, error) { - rsp, err := c.PostTasksIDMembers(ctx, taskID, params, body) +// DeleteScrapersIDOwnersIDWithResponse request returning *DeleteScrapersIDOwnersIDResponse +func (c *ClientWithResponses) DeleteScrapersIDOwnersIDWithResponse(ctx context.Context, scraperTargetID string, userID string, params *DeleteScrapersIDOwnersIDParams) (*deleteScrapersIDOwnersIDResponse, error) { + rsp, err := c.DeleteScrapersIDOwnersID(ctx, scraperTargetID, userID, params) if err != nil { return nil, err } - return ParsePostTasksIDMembersResponse(rsp) + return ParseDeleteScrapersIDOwnersIDResponse(rsp) } -// DeleteTasksIDMembersIDWithResponse request returning *DeleteTasksIDMembersIDResponse -func (c *ClientWithResponses) DeleteTasksIDMembersIDWithResponse(ctx context.Context, taskID string, userID string, params *DeleteTasksIDMembersIDParams) (*deleteTasksIDMembersIDResponse, error) { - rsp, err := c.DeleteTasksIDMembersID(ctx, taskID, userID, params) +// GetSetupWithResponse request returning *GetSetupResponse +func (c *ClientWithResponses) GetSetupWithResponse(ctx context.Context, params *GetSetupParams) (*getSetupResponse, error) { + rsp, err := c.GetSetup(ctx, params) if err != nil { return nil, err } - return ParseDeleteTasksIDMembersIDResponse(rsp) + return ParseGetSetupResponse(rsp) } -// GetTasksIDOwnersWithResponse request returning *GetTasksIDOwnersResponse -func (c *ClientWithResponses) GetTasksIDOwnersWithResponse(ctx context.Context, taskID string, params *GetTasksIDOwnersParams) (*getTasksIDOwnersResponse, error) { - rsp, err := c.GetTasksIDOwners(ctx, taskID, params) +// PostSetupWithBodyWithResponse request with arbitrary body returning *PostSetupResponse +func (c *ClientWithResponses) PostSetupWithBodyWithResponse(ctx context.Context, params *PostSetupParams, contentType string, body io.Reader) (*postSetupResponse, error) { + rsp, err := c.PostSetupWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseGetTasksIDOwnersResponse(rsp) -} - -// PostTasksIDOwnersWithBodyWithResponse request with arbitrary body returning *PostTasksIDOwnersResponse -func (c *ClientWithResponses) PostTasksIDOwnersWithBodyWithResponse(ctx context.Context, taskID string, params *PostTasksIDOwnersParams, contentType string, body io.Reader) (*postTasksIDOwnersResponse, error) { - rsp, err := c.PostTasksIDOwnersWithBody(ctx, taskID, params, contentType, body) + return ParsePostSetupResponse(rsp) +} + +func (c *ClientWithResponses) PostSetupWithResponse(ctx context.Context, params *PostSetupParams, body PostSetupJSONRequestBody) (*postSetupResponse, error) { + rsp, err := c.PostSetup(ctx, params, body) if err != nil { return nil, err } - return ParsePostTasksIDOwnersResponse(rsp) + return ParsePostSetupResponse(rsp) } -func (c *ClientWithResponses) PostTasksIDOwnersWithResponse(ctx context.Context, taskID string, params *PostTasksIDOwnersParams, body PostTasksIDOwnersJSONRequestBody) (*postTasksIDOwnersResponse, error) { - rsp, err := c.PostTasksIDOwners(ctx, taskID, params, body) +// PostSetupUserWithBodyWithResponse request with arbitrary body returning *PostSetupUserResponse +func (c *ClientWithResponses) PostSetupUserWithBodyWithResponse(ctx context.Context, params *PostSetupUserParams, contentType string, body io.Reader) (*postSetupUserResponse, error) { + rsp, err := c.PostSetupUserWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParsePostTasksIDOwnersResponse(rsp) + return ParsePostSetupUserResponse(rsp) } -// DeleteTasksIDOwnersIDWithResponse request returning *DeleteTasksIDOwnersIDResponse -func (c *ClientWithResponses) DeleteTasksIDOwnersIDWithResponse(ctx context.Context, taskID string, userID string, params *DeleteTasksIDOwnersIDParams) (*deleteTasksIDOwnersIDResponse, error) { - rsp, err := c.DeleteTasksIDOwnersID(ctx, taskID, userID, params) +func (c *ClientWithResponses) PostSetupUserWithResponse(ctx context.Context, params *PostSetupUserParams, body PostSetupUserJSONRequestBody) (*postSetupUserResponse, error) { + rsp, err := c.PostSetupUser(ctx, params, body) if err != nil { return nil, err } - return ParseDeleteTasksIDOwnersIDResponse(rsp) + return ParsePostSetupUserResponse(rsp) } -// GetTasksIDRunsWithResponse request returning *GetTasksIDRunsResponse -func (c *ClientWithResponses) GetTasksIDRunsWithResponse(ctx context.Context, taskID string, params *GetTasksIDRunsParams) (*getTasksIDRunsResponse, error) { - rsp, err := c.GetTasksIDRuns(ctx, taskID, params) +// PostSigninWithResponse request returning *PostSigninResponse +func (c *ClientWithResponses) PostSigninWithResponse(ctx context.Context, params *PostSigninParams) (*postSigninResponse, error) { + rsp, err := c.PostSignin(ctx, params) if err != nil { return nil, err } - return ParseGetTasksIDRunsResponse(rsp) + return ParsePostSigninResponse(rsp) } -// PostTasksIDRunsWithBodyWithResponse request with arbitrary body returning *PostTasksIDRunsResponse -func (c *ClientWithResponses) PostTasksIDRunsWithBodyWithResponse(ctx context.Context, taskID string, params *PostTasksIDRunsParams, contentType string, body io.Reader) (*postTasksIDRunsResponse, error) { - rsp, err := c.PostTasksIDRunsWithBody(ctx, taskID, params, contentType, body) +// PostSignoutWithResponse request returning *PostSignoutResponse +func (c *ClientWithResponses) PostSignoutWithResponse(ctx context.Context, params *PostSignoutParams) (*postSignoutResponse, error) { + rsp, err := c.PostSignout(ctx, params) if err != nil { return nil, err } - return ParsePostTasksIDRunsResponse(rsp) + return ParsePostSignoutResponse(rsp) } -func (c *ClientWithResponses) PostTasksIDRunsWithResponse(ctx context.Context, taskID string, params *PostTasksIDRunsParams, body PostTasksIDRunsJSONRequestBody) (*postTasksIDRunsResponse, error) { - rsp, err := c.PostTasksIDRuns(ctx, taskID, params, body) +// GetSourcesWithResponse request returning *GetSourcesResponse +func (c *ClientWithResponses) GetSourcesWithResponse(ctx context.Context, params *GetSourcesParams) (*getSourcesResponse, error) { + rsp, err := c.GetSources(ctx, params) if err != nil { return nil, err } - return ParsePostTasksIDRunsResponse(rsp) + return ParseGetSourcesResponse(rsp) } -// DeleteTasksIDRunsIDWithResponse request returning *DeleteTasksIDRunsIDResponse -func (c *ClientWithResponses) DeleteTasksIDRunsIDWithResponse(ctx context.Context, taskID string, runID string, params *DeleteTasksIDRunsIDParams) (*deleteTasksIDRunsIDResponse, error) { - rsp, err := c.DeleteTasksIDRunsID(ctx, taskID, runID, params) +// PostSourcesWithBodyWithResponse request with arbitrary body returning *PostSourcesResponse +func (c *ClientWithResponses) PostSourcesWithBodyWithResponse(ctx context.Context, params *PostSourcesParams, contentType string, body io.Reader) (*postSourcesResponse, error) { + rsp, err := c.PostSourcesWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseDeleteTasksIDRunsIDResponse(rsp) + return ParsePostSourcesResponse(rsp) } -// GetTasksIDRunsIDWithResponse request returning *GetTasksIDRunsIDResponse -func (c *ClientWithResponses) GetTasksIDRunsIDWithResponse(ctx context.Context, taskID string, runID string, params *GetTasksIDRunsIDParams) (*getTasksIDRunsIDResponse, error) { - rsp, err := c.GetTasksIDRunsID(ctx, taskID, runID, params) +func (c *ClientWithResponses) PostSourcesWithResponse(ctx context.Context, params *PostSourcesParams, body PostSourcesJSONRequestBody) (*postSourcesResponse, error) { + rsp, err := c.PostSources(ctx, params, body) if err != nil { return nil, err } - return ParseGetTasksIDRunsIDResponse(rsp) + return ParsePostSourcesResponse(rsp) } -// GetTasksIDRunsIDLogsWithResponse request returning *GetTasksIDRunsIDLogsResponse -func (c *ClientWithResponses) GetTasksIDRunsIDLogsWithResponse(ctx context.Context, taskID string, runID string, params *GetTasksIDRunsIDLogsParams) (*getTasksIDRunsIDLogsResponse, error) { - rsp, err := c.GetTasksIDRunsIDLogs(ctx, taskID, runID, params) +// DeleteSourcesIDWithResponse request returning *DeleteSourcesIDResponse +func (c *ClientWithResponses) DeleteSourcesIDWithResponse(ctx context.Context, sourceID string, params *DeleteSourcesIDParams) (*deleteSourcesIDResponse, error) { + rsp, err := c.DeleteSourcesID(ctx, sourceID, params) if err != nil { return nil, err } - return ParseGetTasksIDRunsIDLogsResponse(rsp) + return ParseDeleteSourcesIDResponse(rsp) } -// PostTasksIDRunsIDRetryWithResponse request returning *PostTasksIDRunsIDRetryResponse -func (c *ClientWithResponses) PostTasksIDRunsIDRetryWithResponse(ctx context.Context, taskID string, runID string, params *PostTasksIDRunsIDRetryParams) (*postTasksIDRunsIDRetryResponse, error) { - rsp, err := c.PostTasksIDRunsIDRetry(ctx, taskID, runID, params) +// GetSourcesIDWithResponse request returning *GetSourcesIDResponse +func (c *ClientWithResponses) GetSourcesIDWithResponse(ctx context.Context, sourceID string, params *GetSourcesIDParams) (*getSourcesIDResponse, error) { + rsp, err := c.GetSourcesID(ctx, sourceID, params) if err != nil { return nil, err } - return ParsePostTasksIDRunsIDRetryResponse(rsp) + return ParseGetSourcesIDResponse(rsp) } -// GetTelegrafPluginsWithResponse request returning *GetTelegrafPluginsResponse -func (c *ClientWithResponses) GetTelegrafPluginsWithResponse(ctx context.Context, params *GetTelegrafPluginsParams) (*getTelegrafPluginsResponse, error) { - rsp, err := c.GetTelegrafPlugins(ctx, params) +// PatchSourcesIDWithBodyWithResponse request with arbitrary body returning *PatchSourcesIDResponse +func (c *ClientWithResponses) PatchSourcesIDWithBodyWithResponse(ctx context.Context, sourceID string, params *PatchSourcesIDParams, contentType string, body io.Reader) (*patchSourcesIDResponse, error) { + rsp, err := c.PatchSourcesIDWithBody(ctx, sourceID, params, contentType, body) if err != nil { return nil, err } - return ParseGetTelegrafPluginsResponse(rsp) + return ParsePatchSourcesIDResponse(rsp) } -// GetTelegrafsWithResponse request returning *GetTelegrafsResponse -func (c *ClientWithResponses) GetTelegrafsWithResponse(ctx context.Context, params *GetTelegrafsParams) (*getTelegrafsResponse, error) { - rsp, err := c.GetTelegrafs(ctx, params) +func (c *ClientWithResponses) PatchSourcesIDWithResponse(ctx context.Context, sourceID string, params *PatchSourcesIDParams, body PatchSourcesIDJSONRequestBody) (*patchSourcesIDResponse, error) { + rsp, err := c.PatchSourcesID(ctx, sourceID, params, body) if err != nil { return nil, err } - return ParseGetTelegrafsResponse(rsp) + return ParsePatchSourcesIDResponse(rsp) } -// PostTelegrafsWithBodyWithResponse request with arbitrary body returning *PostTelegrafsResponse -func (c *ClientWithResponses) PostTelegrafsWithBodyWithResponse(ctx context.Context, params *PostTelegrafsParams, contentType string, body io.Reader) (*postTelegrafsResponse, error) { - rsp, err := c.PostTelegrafsWithBody(ctx, params, contentType, body) +// GetSourcesIDBucketsWithResponse request returning *GetSourcesIDBucketsResponse +func (c *ClientWithResponses) GetSourcesIDBucketsWithResponse(ctx context.Context, sourceID string, params *GetSourcesIDBucketsParams) (*getSourcesIDBucketsResponse, error) { + rsp, err := c.GetSourcesIDBuckets(ctx, sourceID, params) if err != nil { return nil, err } - return ParsePostTelegrafsResponse(rsp) + return ParseGetSourcesIDBucketsResponse(rsp) } -func (c *ClientWithResponses) PostTelegrafsWithResponse(ctx context.Context, params *PostTelegrafsParams, body PostTelegrafsJSONRequestBody) (*postTelegrafsResponse, error) { - rsp, err := c.PostTelegrafs(ctx, params, body) +// GetSourcesIDHealthWithResponse request returning *GetSourcesIDHealthResponse +func (c *ClientWithResponses) GetSourcesIDHealthWithResponse(ctx context.Context, sourceID string, params *GetSourcesIDHealthParams) (*getSourcesIDHealthResponse, error) { + rsp, err := c.GetSourcesIDHealth(ctx, sourceID, params) if err != nil { return nil, err } - return ParsePostTelegrafsResponse(rsp) + return ParseGetSourcesIDHealthResponse(rsp) } -// DeleteTelegrafsIDWithResponse request returning *DeleteTelegrafsIDResponse -func (c *ClientWithResponses) DeleteTelegrafsIDWithResponse(ctx context.Context, telegrafID string, params *DeleteTelegrafsIDParams) (*deleteTelegrafsIDResponse, error) { - rsp, err := c.DeleteTelegrafsID(ctx, telegrafID, params) +// ListStacksWithResponse request returning *ListStacksResponse +func (c *ClientWithResponses) ListStacksWithResponse(ctx context.Context, params *ListStacksParams) (*listStacksResponse, error) { + rsp, err := c.ListStacks(ctx, params) if err != nil { return nil, err } - return ParseDeleteTelegrafsIDResponse(rsp) + return ParseListStacksResponse(rsp) } -// GetTelegrafsIDWithResponse request returning *GetTelegrafsIDResponse -func (c *ClientWithResponses) GetTelegrafsIDWithResponse(ctx context.Context, telegrafID string, params *GetTelegrafsIDParams) (*getTelegrafsIDResponse, error) { - rsp, err := c.GetTelegrafsID(ctx, telegrafID, params) +// CreateStackWithBodyWithResponse request with arbitrary body returning *CreateStackResponse +func (c *ClientWithResponses) CreateStackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createStackResponse, error) { + rsp, err := c.CreateStackWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParseGetTelegrafsIDResponse(rsp) + return ParseCreateStackResponse(rsp) } -// PutTelegrafsIDWithBodyWithResponse request with arbitrary body returning *PutTelegrafsIDResponse -func (c *ClientWithResponses) PutTelegrafsIDWithBodyWithResponse(ctx context.Context, telegrafID string, params *PutTelegrafsIDParams, contentType string, body io.Reader) (*putTelegrafsIDResponse, error) { - rsp, err := c.PutTelegrafsIDWithBody(ctx, telegrafID, params, contentType, body) +func (c *ClientWithResponses) CreateStackWithResponse(ctx context.Context, body CreateStackJSONRequestBody) (*createStackResponse, error) { + rsp, err := c.CreateStack(ctx, body) if err != nil { return nil, err } - return ParsePutTelegrafsIDResponse(rsp) + return ParseCreateStackResponse(rsp) } -func (c *ClientWithResponses) PutTelegrafsIDWithResponse(ctx context.Context, telegrafID string, params *PutTelegrafsIDParams, body PutTelegrafsIDJSONRequestBody) (*putTelegrafsIDResponse, error) { - rsp, err := c.PutTelegrafsID(ctx, telegrafID, params, body) +// DeleteStackWithResponse request returning *DeleteStackResponse +func (c *ClientWithResponses) DeleteStackWithResponse(ctx context.Context, stackId string, params *DeleteStackParams) (*deleteStackResponse, error) { + rsp, err := c.DeleteStack(ctx, stackId, params) if err != nil { return nil, err } - return ParsePutTelegrafsIDResponse(rsp) + return ParseDeleteStackResponse(rsp) } -// GetTelegrafsIDLabelsWithResponse request returning *GetTelegrafsIDLabelsResponse -func (c *ClientWithResponses) GetTelegrafsIDLabelsWithResponse(ctx context.Context, telegrafID string, params *GetTelegrafsIDLabelsParams) (*getTelegrafsIDLabelsResponse, error) { - rsp, err := c.GetTelegrafsIDLabels(ctx, telegrafID, params) +// ReadStackWithResponse request returning *ReadStackResponse +func (c *ClientWithResponses) ReadStackWithResponse(ctx context.Context, stackId string) (*readStackResponse, error) { + rsp, err := c.ReadStack(ctx, stackId) if err != nil { return nil, err } - return ParseGetTelegrafsIDLabelsResponse(rsp) + return ParseReadStackResponse(rsp) } -// PostTelegrafsIDLabelsWithBodyWithResponse request with arbitrary body returning *PostTelegrafsIDLabelsResponse -func (c *ClientWithResponses) PostTelegrafsIDLabelsWithBodyWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDLabelsParams, contentType string, body io.Reader) (*postTelegrafsIDLabelsResponse, error) { - rsp, err := c.PostTelegrafsIDLabelsWithBody(ctx, telegrafID, params, contentType, body) +// UpdateStackWithBodyWithResponse request with arbitrary body returning *UpdateStackResponse +func (c *ClientWithResponses) UpdateStackWithBodyWithResponse(ctx context.Context, stackId string, contentType string, body io.Reader) (*updateStackResponse, error) { + rsp, err := c.UpdateStackWithBody(ctx, stackId, contentType, body) if err != nil { return nil, err } - return ParsePostTelegrafsIDLabelsResponse(rsp) + return ParseUpdateStackResponse(rsp) } -func (c *ClientWithResponses) PostTelegrafsIDLabelsWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDLabelsParams, body PostTelegrafsIDLabelsJSONRequestBody) (*postTelegrafsIDLabelsResponse, error) { - rsp, err := c.PostTelegrafsIDLabels(ctx, telegrafID, params, body) +func (c *ClientWithResponses) UpdateStackWithResponse(ctx context.Context, stackId string, body UpdateStackJSONRequestBody) (*updateStackResponse, error) { + rsp, err := c.UpdateStack(ctx, stackId, body) if err != nil { return nil, err } - return ParsePostTelegrafsIDLabelsResponse(rsp) + return ParseUpdateStackResponse(rsp) } -// DeleteTelegrafsIDLabelsIDWithResponse request returning *DeleteTelegrafsIDLabelsIDResponse -func (c *ClientWithResponses) DeleteTelegrafsIDLabelsIDWithResponse(ctx context.Context, telegrafID string, labelID string, params *DeleteTelegrafsIDLabelsIDParams) (*deleteTelegrafsIDLabelsIDResponse, error) { - rsp, err := c.DeleteTelegrafsIDLabelsID(ctx, telegrafID, labelID, params) +// UninstallStackWithResponse request returning *UninstallStackResponse +func (c *ClientWithResponses) UninstallStackWithResponse(ctx context.Context, stackId string) (*uninstallStackResponse, error) { + rsp, err := c.UninstallStack(ctx, stackId) if err != nil { return nil, err } - return ParseDeleteTelegrafsIDLabelsIDResponse(rsp) + return ParseUninstallStackResponse(rsp) } -// GetTelegrafsIDMembersWithResponse request returning *GetTelegrafsIDMembersResponse -func (c *ClientWithResponses) GetTelegrafsIDMembersWithResponse(ctx context.Context, telegrafID string, params *GetTelegrafsIDMembersParams) (*getTelegrafsIDMembersResponse, error) { - rsp, err := c.GetTelegrafsIDMembers(ctx, telegrafID, params) +// GetTasksWithResponse request returning *GetTasksResponse +func (c *ClientWithResponses) GetTasksWithResponse(ctx context.Context, params *GetTasksParams) (*getTasksResponse, error) { + rsp, err := c.GetTasks(ctx, params) if err != nil { return nil, err } - return ParseGetTelegrafsIDMembersResponse(rsp) + return ParseGetTasksResponse(rsp) } -// PostTelegrafsIDMembersWithBodyWithResponse request with arbitrary body returning *PostTelegrafsIDMembersResponse -func (c *ClientWithResponses) PostTelegrafsIDMembersWithBodyWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDMembersParams, contentType string, body io.Reader) (*postTelegrafsIDMembersResponse, error) { - rsp, err := c.PostTelegrafsIDMembersWithBody(ctx, telegrafID, params, contentType, body) +// PostTasksWithBodyWithResponse request with arbitrary body returning *PostTasksResponse +func (c *ClientWithResponses) PostTasksWithBodyWithResponse(ctx context.Context, params *PostTasksParams, contentType string, body io.Reader) (*postTasksResponse, error) { + rsp, err := c.PostTasksWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParsePostTelegrafsIDMembersResponse(rsp) + return ParsePostTasksResponse(rsp) } -func (c *ClientWithResponses) PostTelegrafsIDMembersWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDMembersParams, body PostTelegrafsIDMembersJSONRequestBody) (*postTelegrafsIDMembersResponse, error) { - rsp, err := c.PostTelegrafsIDMembers(ctx, telegrafID, params, body) +func (c *ClientWithResponses) PostTasksWithResponse(ctx context.Context, params *PostTasksParams, body PostTasksJSONRequestBody) (*postTasksResponse, error) { + rsp, err := c.PostTasks(ctx, params, body) if err != nil { return nil, err } - return ParsePostTelegrafsIDMembersResponse(rsp) + return ParsePostTasksResponse(rsp) } -// DeleteTelegrafsIDMembersIDWithResponse request returning *DeleteTelegrafsIDMembersIDResponse -func (c *ClientWithResponses) DeleteTelegrafsIDMembersIDWithResponse(ctx context.Context, telegrafID string, userID string, params *DeleteTelegrafsIDMembersIDParams) (*deleteTelegrafsIDMembersIDResponse, error) { - rsp, err := c.DeleteTelegrafsIDMembersID(ctx, telegrafID, userID, params) +// DeleteTasksIDWithResponse request returning *DeleteTasksIDResponse +func (c *ClientWithResponses) DeleteTasksIDWithResponse(ctx context.Context, taskID string, params *DeleteTasksIDParams) (*deleteTasksIDResponse, error) { + rsp, err := c.DeleteTasksID(ctx, taskID, params) if err != nil { return nil, err } - return ParseDeleteTelegrafsIDMembersIDResponse(rsp) + return ParseDeleteTasksIDResponse(rsp) } -// GetTelegrafsIDOwnersWithResponse request returning *GetTelegrafsIDOwnersResponse -func (c *ClientWithResponses) GetTelegrafsIDOwnersWithResponse(ctx context.Context, telegrafID string, params *GetTelegrafsIDOwnersParams) (*getTelegrafsIDOwnersResponse, error) { - rsp, err := c.GetTelegrafsIDOwners(ctx, telegrafID, params) +// GetTasksIDWithResponse request returning *GetTasksIDResponse +func (c *ClientWithResponses) GetTasksIDWithResponse(ctx context.Context, taskID string, params *GetTasksIDParams) (*getTasksIDResponse, error) { + rsp, err := c.GetTasksID(ctx, taskID, params) if err != nil { return nil, err } - return ParseGetTelegrafsIDOwnersResponse(rsp) + return ParseGetTasksIDResponse(rsp) } -// PostTelegrafsIDOwnersWithBodyWithResponse request with arbitrary body returning *PostTelegrafsIDOwnersResponse -func (c *ClientWithResponses) PostTelegrafsIDOwnersWithBodyWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDOwnersParams, contentType string, body io.Reader) (*postTelegrafsIDOwnersResponse, error) { - rsp, err := c.PostTelegrafsIDOwnersWithBody(ctx, telegrafID, params, contentType, body) +// PatchTasksIDWithBodyWithResponse request with arbitrary body returning *PatchTasksIDResponse +func (c *ClientWithResponses) PatchTasksIDWithBodyWithResponse(ctx context.Context, taskID string, params *PatchTasksIDParams, contentType string, body io.Reader) (*patchTasksIDResponse, error) { + rsp, err := c.PatchTasksIDWithBody(ctx, taskID, params, contentType, body) if err != nil { return nil, err } - return ParsePostTelegrafsIDOwnersResponse(rsp) + return ParsePatchTasksIDResponse(rsp) } -func (c *ClientWithResponses) PostTelegrafsIDOwnersWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDOwnersParams, body PostTelegrafsIDOwnersJSONRequestBody) (*postTelegrafsIDOwnersResponse, error) { - rsp, err := c.PostTelegrafsIDOwners(ctx, telegrafID, params, body) +func (c *ClientWithResponses) PatchTasksIDWithResponse(ctx context.Context, taskID string, params *PatchTasksIDParams, body PatchTasksIDJSONRequestBody) (*patchTasksIDResponse, error) { + rsp, err := c.PatchTasksID(ctx, taskID, params, body) if err != nil { return nil, err } - return ParsePostTelegrafsIDOwnersResponse(rsp) + return ParsePatchTasksIDResponse(rsp) } -// DeleteTelegrafsIDOwnersIDWithResponse request returning *DeleteTelegrafsIDOwnersIDResponse -func (c *ClientWithResponses) DeleteTelegrafsIDOwnersIDWithResponse(ctx context.Context, telegrafID string, userID string, params *DeleteTelegrafsIDOwnersIDParams) (*deleteTelegrafsIDOwnersIDResponse, error) { - rsp, err := c.DeleteTelegrafsIDOwnersID(ctx, telegrafID, userID, params) +// GetTasksIDLabelsWithResponse request returning *GetTasksIDLabelsResponse +func (c *ClientWithResponses) GetTasksIDLabelsWithResponse(ctx context.Context, taskID string, params *GetTasksIDLabelsParams) (*getTasksIDLabelsResponse, error) { + rsp, err := c.GetTasksIDLabels(ctx, taskID, params) if err != nil { return nil, err } - return ParseDeleteTelegrafsIDOwnersIDResponse(rsp) + return ParseGetTasksIDLabelsResponse(rsp) } -// GetUsersWithResponse request returning *GetUsersResponse -func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, params *GetUsersParams) (*getUsersResponse, error) { - rsp, err := c.GetUsers(ctx, params) +// PostTasksIDLabelsWithBodyWithResponse request with arbitrary body returning *PostTasksIDLabelsResponse +func (c *ClientWithResponses) PostTasksIDLabelsWithBodyWithResponse(ctx context.Context, taskID string, params *PostTasksIDLabelsParams, contentType string, body io.Reader) (*postTasksIDLabelsResponse, error) { + rsp, err := c.PostTasksIDLabelsWithBody(ctx, taskID, params, contentType, body) if err != nil { return nil, err } - return ParseGetUsersResponse(rsp) + return ParsePostTasksIDLabelsResponse(rsp) } -// PostUsersWithBodyWithResponse request with arbitrary body returning *PostUsersResponse -func (c *ClientWithResponses) PostUsersWithBodyWithResponse(ctx context.Context, params *PostUsersParams, contentType string, body io.Reader) (*postUsersResponse, error) { - rsp, err := c.PostUsersWithBody(ctx, params, contentType, body) +func (c *ClientWithResponses) PostTasksIDLabelsWithResponse(ctx context.Context, taskID string, params *PostTasksIDLabelsParams, body PostTasksIDLabelsJSONRequestBody) (*postTasksIDLabelsResponse, error) { + rsp, err := c.PostTasksIDLabels(ctx, taskID, params, body) if err != nil { return nil, err } - return ParsePostUsersResponse(rsp) + return ParsePostTasksIDLabelsResponse(rsp) } -func (c *ClientWithResponses) PostUsersWithResponse(ctx context.Context, params *PostUsersParams, body PostUsersJSONRequestBody) (*postUsersResponse, error) { - rsp, err := c.PostUsers(ctx, params, body) +// DeleteTasksIDLabelsIDWithResponse request returning *DeleteTasksIDLabelsIDResponse +func (c *ClientWithResponses) DeleteTasksIDLabelsIDWithResponse(ctx context.Context, taskID string, labelID string, params *DeleteTasksIDLabelsIDParams) (*deleteTasksIDLabelsIDResponse, error) { + rsp, err := c.DeleteTasksIDLabelsID(ctx, taskID, labelID, params) if err != nil { return nil, err } - return ParsePostUsersResponse(rsp) + return ParseDeleteTasksIDLabelsIDResponse(rsp) } -// DeleteUsersIDWithResponse request returning *DeleteUsersIDResponse -func (c *ClientWithResponses) DeleteUsersIDWithResponse(ctx context.Context, userID string, params *DeleteUsersIDParams) (*deleteUsersIDResponse, error) { - rsp, err := c.DeleteUsersID(ctx, userID, params) +// GetTasksIDLogsWithResponse request returning *GetTasksIDLogsResponse +func (c *ClientWithResponses) GetTasksIDLogsWithResponse(ctx context.Context, taskID string, params *GetTasksIDLogsParams) (*getTasksIDLogsResponse, error) { + rsp, err := c.GetTasksIDLogs(ctx, taskID, params) if err != nil { return nil, err } - return ParseDeleteUsersIDResponse(rsp) + return ParseGetTasksIDLogsResponse(rsp) } -// GetUsersIDWithResponse request returning *GetUsersIDResponse -func (c *ClientWithResponses) GetUsersIDWithResponse(ctx context.Context, userID string, params *GetUsersIDParams) (*getUsersIDResponse, error) { - rsp, err := c.GetUsersID(ctx, userID, params) +// GetTasksIDMembersWithResponse request returning *GetTasksIDMembersResponse +func (c *ClientWithResponses) GetTasksIDMembersWithResponse(ctx context.Context, taskID string, params *GetTasksIDMembersParams) (*getTasksIDMembersResponse, error) { + rsp, err := c.GetTasksIDMembers(ctx, taskID, params) if err != nil { return nil, err } - return ParseGetUsersIDResponse(rsp) + return ParseGetTasksIDMembersResponse(rsp) } -// PatchUsersIDWithBodyWithResponse request with arbitrary body returning *PatchUsersIDResponse -func (c *ClientWithResponses) PatchUsersIDWithBodyWithResponse(ctx context.Context, userID string, params *PatchUsersIDParams, contentType string, body io.Reader) (*patchUsersIDResponse, error) { - rsp, err := c.PatchUsersIDWithBody(ctx, userID, params, contentType, body) +// PostTasksIDMembersWithBodyWithResponse request with arbitrary body returning *PostTasksIDMembersResponse +func (c *ClientWithResponses) PostTasksIDMembersWithBodyWithResponse(ctx context.Context, taskID string, params *PostTasksIDMembersParams, contentType string, body io.Reader) (*postTasksIDMembersResponse, error) { + rsp, err := c.PostTasksIDMembersWithBody(ctx, taskID, params, contentType, body) if err != nil { return nil, err } - return ParsePatchUsersIDResponse(rsp) + return ParsePostTasksIDMembersResponse(rsp) } -func (c *ClientWithResponses) PatchUsersIDWithResponse(ctx context.Context, userID string, params *PatchUsersIDParams, body PatchUsersIDJSONRequestBody) (*patchUsersIDResponse, error) { - rsp, err := c.PatchUsersID(ctx, userID, params, body) +func (c *ClientWithResponses) PostTasksIDMembersWithResponse(ctx context.Context, taskID string, params *PostTasksIDMembersParams, body PostTasksIDMembersJSONRequestBody) (*postTasksIDMembersResponse, error) { + rsp, err := c.PostTasksIDMembers(ctx, taskID, params, body) if err != nil { return nil, err } - return ParsePatchUsersIDResponse(rsp) + return ParsePostTasksIDMembersResponse(rsp) } -// PostUsersIDPasswordWithBodyWithResponse request with arbitrary body returning *PostUsersIDPasswordResponse -func (c *ClientWithResponses) PostUsersIDPasswordWithBodyWithResponse(ctx context.Context, userID string, params *PostUsersIDPasswordParams, contentType string, body io.Reader) (*postUsersIDPasswordResponse, error) { - rsp, err := c.PostUsersIDPasswordWithBody(ctx, userID, params, contentType, body) +// DeleteTasksIDMembersIDWithResponse request returning *DeleteTasksIDMembersIDResponse +func (c *ClientWithResponses) DeleteTasksIDMembersIDWithResponse(ctx context.Context, taskID string, userID string, params *DeleteTasksIDMembersIDParams) (*deleteTasksIDMembersIDResponse, error) { + rsp, err := c.DeleteTasksIDMembersID(ctx, taskID, userID, params) if err != nil { return nil, err } - return ParsePostUsersIDPasswordResponse(rsp) + return ParseDeleteTasksIDMembersIDResponse(rsp) } -func (c *ClientWithResponses) PostUsersIDPasswordWithResponse(ctx context.Context, userID string, params *PostUsersIDPasswordParams, body PostUsersIDPasswordJSONRequestBody) (*postUsersIDPasswordResponse, error) { - rsp, err := c.PostUsersIDPassword(ctx, userID, params, body) +// GetTasksIDOwnersWithResponse request returning *GetTasksIDOwnersResponse +func (c *ClientWithResponses) GetTasksIDOwnersWithResponse(ctx context.Context, taskID string, params *GetTasksIDOwnersParams) (*getTasksIDOwnersResponse, error) { + rsp, err := c.GetTasksIDOwners(ctx, taskID, params) if err != nil { return nil, err } - return ParsePostUsersIDPasswordResponse(rsp) + return ParseGetTasksIDOwnersResponse(rsp) } -// GetVariablesWithResponse request returning *GetVariablesResponse -func (c *ClientWithResponses) GetVariablesWithResponse(ctx context.Context, params *GetVariablesParams) (*getVariablesResponse, error) { - rsp, err := c.GetVariables(ctx, params) +// PostTasksIDOwnersWithBodyWithResponse request with arbitrary body returning *PostTasksIDOwnersResponse +func (c *ClientWithResponses) PostTasksIDOwnersWithBodyWithResponse(ctx context.Context, taskID string, params *PostTasksIDOwnersParams, contentType string, body io.Reader) (*postTasksIDOwnersResponse, error) { + rsp, err := c.PostTasksIDOwnersWithBody(ctx, taskID, params, contentType, body) if err != nil { return nil, err } - return ParseGetVariablesResponse(rsp) + return ParsePostTasksIDOwnersResponse(rsp) } -// PostVariablesWithBodyWithResponse request with arbitrary body returning *PostVariablesResponse -func (c *ClientWithResponses) PostVariablesWithBodyWithResponse(ctx context.Context, params *PostVariablesParams, contentType string, body io.Reader) (*postVariablesResponse, error) { - rsp, err := c.PostVariablesWithBody(ctx, params, contentType, body) +func (c *ClientWithResponses) PostTasksIDOwnersWithResponse(ctx context.Context, taskID string, params *PostTasksIDOwnersParams, body PostTasksIDOwnersJSONRequestBody) (*postTasksIDOwnersResponse, error) { + rsp, err := c.PostTasksIDOwners(ctx, taskID, params, body) if err != nil { return nil, err } - return ParsePostVariablesResponse(rsp) + return ParsePostTasksIDOwnersResponse(rsp) } -func (c *ClientWithResponses) PostVariablesWithResponse(ctx context.Context, params *PostVariablesParams, body PostVariablesJSONRequestBody) (*postVariablesResponse, error) { - rsp, err := c.PostVariables(ctx, params, body) +// DeleteTasksIDOwnersIDWithResponse request returning *DeleteTasksIDOwnersIDResponse +func (c *ClientWithResponses) DeleteTasksIDOwnersIDWithResponse(ctx context.Context, taskID string, userID string, params *DeleteTasksIDOwnersIDParams) (*deleteTasksIDOwnersIDResponse, error) { + rsp, err := c.DeleteTasksIDOwnersID(ctx, taskID, userID, params) if err != nil { return nil, err } - return ParsePostVariablesResponse(rsp) + return ParseDeleteTasksIDOwnersIDResponse(rsp) } -// DeleteVariablesIDWithResponse request returning *DeleteVariablesIDResponse -func (c *ClientWithResponses) DeleteVariablesIDWithResponse(ctx context.Context, variableID string, params *DeleteVariablesIDParams) (*deleteVariablesIDResponse, error) { - rsp, err := c.DeleteVariablesID(ctx, variableID, params) +// GetTasksIDRunsWithResponse request returning *GetTasksIDRunsResponse +func (c *ClientWithResponses) GetTasksIDRunsWithResponse(ctx context.Context, taskID string, params *GetTasksIDRunsParams) (*getTasksIDRunsResponse, error) { + rsp, err := c.GetTasksIDRuns(ctx, taskID, params) if err != nil { return nil, err } - return ParseDeleteVariablesIDResponse(rsp) + return ParseGetTasksIDRunsResponse(rsp) } -// GetVariablesIDWithResponse request returning *GetVariablesIDResponse -func (c *ClientWithResponses) GetVariablesIDWithResponse(ctx context.Context, variableID string, params *GetVariablesIDParams) (*getVariablesIDResponse, error) { - rsp, err := c.GetVariablesID(ctx, variableID, params) +// PostTasksIDRunsWithBodyWithResponse request with arbitrary body returning *PostTasksIDRunsResponse +func (c *ClientWithResponses) PostTasksIDRunsWithBodyWithResponse(ctx context.Context, taskID string, params *PostTasksIDRunsParams, contentType string, body io.Reader) (*postTasksIDRunsResponse, error) { + rsp, err := c.PostTasksIDRunsWithBody(ctx, taskID, params, contentType, body) if err != nil { return nil, err } - return ParseGetVariablesIDResponse(rsp) + return ParsePostTasksIDRunsResponse(rsp) } -// PatchVariablesIDWithBodyWithResponse request with arbitrary body returning *PatchVariablesIDResponse -func (c *ClientWithResponses) PatchVariablesIDWithBodyWithResponse(ctx context.Context, variableID string, params *PatchVariablesIDParams, contentType string, body io.Reader) (*patchVariablesIDResponse, error) { - rsp, err := c.PatchVariablesIDWithBody(ctx, variableID, params, contentType, body) +func (c *ClientWithResponses) PostTasksIDRunsWithResponse(ctx context.Context, taskID string, params *PostTasksIDRunsParams, body PostTasksIDRunsJSONRequestBody) (*postTasksIDRunsResponse, error) { + rsp, err := c.PostTasksIDRuns(ctx, taskID, params, body) if err != nil { return nil, err } - return ParsePatchVariablesIDResponse(rsp) + return ParsePostTasksIDRunsResponse(rsp) } -func (c *ClientWithResponses) PatchVariablesIDWithResponse(ctx context.Context, variableID string, params *PatchVariablesIDParams, body PatchVariablesIDJSONRequestBody) (*patchVariablesIDResponse, error) { - rsp, err := c.PatchVariablesID(ctx, variableID, params, body) +// DeleteTasksIDRunsIDWithResponse request returning *DeleteTasksIDRunsIDResponse +func (c *ClientWithResponses) DeleteTasksIDRunsIDWithResponse(ctx context.Context, taskID string, runID string, params *DeleteTasksIDRunsIDParams) (*deleteTasksIDRunsIDResponse, error) { + rsp, err := c.DeleteTasksIDRunsID(ctx, taskID, runID, params) if err != nil { return nil, err } - return ParsePatchVariablesIDResponse(rsp) + return ParseDeleteTasksIDRunsIDResponse(rsp) } -// PutVariablesIDWithBodyWithResponse request with arbitrary body returning *PutVariablesIDResponse -func (c *ClientWithResponses) PutVariablesIDWithBodyWithResponse(ctx context.Context, variableID string, params *PutVariablesIDParams, contentType string, body io.Reader) (*putVariablesIDResponse, error) { - rsp, err := c.PutVariablesIDWithBody(ctx, variableID, params, contentType, body) +// GetTasksIDRunsIDWithResponse request returning *GetTasksIDRunsIDResponse +func (c *ClientWithResponses) GetTasksIDRunsIDWithResponse(ctx context.Context, taskID string, runID string, params *GetTasksIDRunsIDParams) (*getTasksIDRunsIDResponse, error) { + rsp, err := c.GetTasksIDRunsID(ctx, taskID, runID, params) if err != nil { return nil, err } - return ParsePutVariablesIDResponse(rsp) + return ParseGetTasksIDRunsIDResponse(rsp) } -func (c *ClientWithResponses) PutVariablesIDWithResponse(ctx context.Context, variableID string, params *PutVariablesIDParams, body PutVariablesIDJSONRequestBody) (*putVariablesIDResponse, error) { - rsp, err := c.PutVariablesID(ctx, variableID, params, body) +// GetTasksIDRunsIDLogsWithResponse request returning *GetTasksIDRunsIDLogsResponse +func (c *ClientWithResponses) GetTasksIDRunsIDLogsWithResponse(ctx context.Context, taskID string, runID string, params *GetTasksIDRunsIDLogsParams) (*getTasksIDRunsIDLogsResponse, error) { + rsp, err := c.GetTasksIDRunsIDLogs(ctx, taskID, runID, params) if err != nil { return nil, err } - return ParsePutVariablesIDResponse(rsp) + return ParseGetTasksIDRunsIDLogsResponse(rsp) } -// GetVariablesIDLabelsWithResponse request returning *GetVariablesIDLabelsResponse -func (c *ClientWithResponses) GetVariablesIDLabelsWithResponse(ctx context.Context, variableID string, params *GetVariablesIDLabelsParams) (*getVariablesIDLabelsResponse, error) { - rsp, err := c.GetVariablesIDLabels(ctx, variableID, params) +// PostTasksIDRunsIDRetryWithResponse request returning *PostTasksIDRunsIDRetryResponse +func (c *ClientWithResponses) PostTasksIDRunsIDRetryWithResponse(ctx context.Context, taskID string, runID string, params *PostTasksIDRunsIDRetryParams) (*postTasksIDRunsIDRetryResponse, error) { + rsp, err := c.PostTasksIDRunsIDRetry(ctx, taskID, runID, params) if err != nil { return nil, err } - return ParseGetVariablesIDLabelsResponse(rsp) + return ParsePostTasksIDRunsIDRetryResponse(rsp) } -// PostVariablesIDLabelsWithBodyWithResponse request with arbitrary body returning *PostVariablesIDLabelsResponse -func (c *ClientWithResponses) PostVariablesIDLabelsWithBodyWithResponse(ctx context.Context, variableID string, params *PostVariablesIDLabelsParams, contentType string, body io.Reader) (*postVariablesIDLabelsResponse, error) { - rsp, err := c.PostVariablesIDLabelsWithBody(ctx, variableID, params, contentType, body) +// GetTelegrafPluginsWithResponse request returning *GetTelegrafPluginsResponse +func (c *ClientWithResponses) GetTelegrafPluginsWithResponse(ctx context.Context, params *GetTelegrafPluginsParams) (*getTelegrafPluginsResponse, error) { + rsp, err := c.GetTelegrafPlugins(ctx, params) if err != nil { return nil, err } - return ParsePostVariablesIDLabelsResponse(rsp) + return ParseGetTelegrafPluginsResponse(rsp) } -func (c *ClientWithResponses) PostVariablesIDLabelsWithResponse(ctx context.Context, variableID string, params *PostVariablesIDLabelsParams, body PostVariablesIDLabelsJSONRequestBody) (*postVariablesIDLabelsResponse, error) { - rsp, err := c.PostVariablesIDLabels(ctx, variableID, params, body) +// GetTelegrafsWithResponse request returning *GetTelegrafsResponse +func (c *ClientWithResponses) GetTelegrafsWithResponse(ctx context.Context, params *GetTelegrafsParams) (*getTelegrafsResponse, error) { + rsp, err := c.GetTelegrafs(ctx, params) if err != nil { return nil, err } - return ParsePostVariablesIDLabelsResponse(rsp) + return ParseGetTelegrafsResponse(rsp) } -// DeleteVariablesIDLabelsIDWithResponse request returning *DeleteVariablesIDLabelsIDResponse -func (c *ClientWithResponses) DeleteVariablesIDLabelsIDWithResponse(ctx context.Context, variableID string, labelID string, params *DeleteVariablesIDLabelsIDParams) (*deleteVariablesIDLabelsIDResponse, error) { - rsp, err := c.DeleteVariablesIDLabelsID(ctx, variableID, labelID, params) +// PostTelegrafsWithBodyWithResponse request with arbitrary body returning *PostTelegrafsResponse +func (c *ClientWithResponses) PostTelegrafsWithBodyWithResponse(ctx context.Context, params *PostTelegrafsParams, contentType string, body io.Reader) (*postTelegrafsResponse, error) { + rsp, err := c.PostTelegrafsWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseDeleteVariablesIDLabelsIDResponse(rsp) + return ParsePostTelegrafsResponse(rsp) } -// PostWriteWithBodyWithResponse request with arbitrary body returning *PostWriteResponse -func (c *ClientWithResponses) PostWriteWithBodyWithResponse(ctx context.Context, params *PostWriteParams, contentType string, body io.Reader) (*postWriteResponse, error) { - rsp, err := c.PostWriteWithBody(ctx, params, contentType, body) +func (c *ClientWithResponses) PostTelegrafsWithResponse(ctx context.Context, params *PostTelegrafsParams, body PostTelegrafsJSONRequestBody) (*postTelegrafsResponse, error) { + rsp, err := c.PostTelegrafs(ctx, params, body) if err != nil { return nil, err } - return ParsePostWriteResponse(rsp) + return ParsePostTelegrafsResponse(rsp) } -// ParseGetRoutesResponse parses an HTTP response from a GetRoutesWithResponse call -func ParseGetRoutesResponse(rsp *http.Response) (*getRoutesResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +// DeleteTelegrafsIDWithResponse request returning *DeleteTelegrafsIDResponse +func (c *ClientWithResponses) DeleteTelegrafsIDWithResponse(ctx context.Context, telegrafID string, params *DeleteTelegrafsIDParams) (*deleteTelegrafsIDResponse, error) { + rsp, err := c.DeleteTelegrafsID(ctx, telegrafID, params) if err != nil { return nil, err } - - response := &getRoutesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): - var dest Routes - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil + return ParseDeleteTelegrafsIDResponse(rsp) } -// ParseGetAuthorizationsResponse parses an HTTP response from a GetAuthorizationsWithResponse call -func ParseGetAuthorizationsResponse(rsp *http.Response) (*getAuthorizationsResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +// GetTelegrafsIDWithResponse request returning *GetTelegrafsIDResponse +func (c *ClientWithResponses) GetTelegrafsIDWithResponse(ctx context.Context, telegrafID string, params *GetTelegrafsIDParams) (*getTelegrafsIDResponse, error) { + rsp, err := c.GetTelegrafsID(ctx, telegrafID, params) if err != nil { return nil, err } - - response := &getAuthorizationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Authorizations - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &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 - - } - - return response, nil + return ParseGetTelegrafsIDResponse(rsp) } -// ParsePostAuthorizationsResponse parses an HTTP response from a PostAuthorizationsWithResponse call -func ParsePostAuthorizationsResponse(rsp *http.Response) (*postAuthorizationsResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +// PutTelegrafsIDWithBodyWithResponse request with arbitrary body returning *PutTelegrafsIDResponse +func (c *ClientWithResponses) PutTelegrafsIDWithBodyWithResponse(ctx context.Context, telegrafID string, params *PutTelegrafsIDParams, contentType string, body io.Reader) (*putTelegrafsIDResponse, error) { + rsp, err := c.PutTelegrafsIDWithBody(ctx, telegrafID, params, contentType, body) if err != nil { return nil, err } - - response := &postAuthorizationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Authorization - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &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 - - } - - return response, nil + return ParsePutTelegrafsIDResponse(rsp) } -// ParseDeleteAuthorizationsIDResponse parses an HTTP response from a DeleteAuthorizationsIDWithResponse call -func ParseDeleteAuthorizationsIDResponse(rsp *http.Response) (*deleteAuthorizationsIDResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +func (c *ClientWithResponses) PutTelegrafsIDWithResponse(ctx context.Context, telegrafID string, params *PutTelegrafsIDParams, body PutTelegrafsIDJSONRequestBody) (*putTelegrafsIDResponse, error) { + rsp, err := c.PutTelegrafsID(ctx, telegrafID, params, body) if err != nil { return nil, err } + return ParsePutTelegrafsIDResponse(rsp) +} - response := &deleteAuthorizationsIDResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - 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 - +// GetTelegrafsIDLabelsWithResponse request returning *GetTelegrafsIDLabelsResponse +func (c *ClientWithResponses) GetTelegrafsIDLabelsWithResponse(ctx context.Context, telegrafID string, params *GetTelegrafsIDLabelsParams) (*getTelegrafsIDLabelsResponse, error) { + rsp, err := c.GetTelegrafsIDLabels(ctx, telegrafID, params) + if err != nil { + return nil, err } - - return response, nil + return ParseGetTelegrafsIDLabelsResponse(rsp) } -// ParseGetAuthorizationsIDResponse parses an HTTP response from a GetAuthorizationsIDWithResponse call -func ParseGetAuthorizationsIDResponse(rsp *http.Response) (*getAuthorizationsIDResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +// PostTelegrafsIDLabelsWithBodyWithResponse request with arbitrary body returning *PostTelegrafsIDLabelsResponse +func (c *ClientWithResponses) PostTelegrafsIDLabelsWithBodyWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDLabelsParams, contentType string, body io.Reader) (*postTelegrafsIDLabelsResponse, error) { + rsp, err := c.PostTelegrafsIDLabelsWithBody(ctx, telegrafID, params, contentType, body) if err != nil { return nil, err } + return ParsePostTelegrafsIDLabelsResponse(rsp) +} - response := &getAuthorizationsIDResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) PostTelegrafsIDLabelsWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDLabelsParams, body PostTelegrafsIDLabelsJSONRequestBody) (*postTelegrafsIDLabelsResponse, error) { + rsp, err := c.PostTelegrafsIDLabels(ctx, telegrafID, params, body) + if err != nil { + return nil, err } + return ParsePostTelegrafsIDLabelsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Authorization - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &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 - +// DeleteTelegrafsIDLabelsIDWithResponse request returning *DeleteTelegrafsIDLabelsIDResponse +func (c *ClientWithResponses) DeleteTelegrafsIDLabelsIDWithResponse(ctx context.Context, telegrafID string, labelID string, params *DeleteTelegrafsIDLabelsIDParams) (*deleteTelegrafsIDLabelsIDResponse, error) { + rsp, err := c.DeleteTelegrafsIDLabelsID(ctx, telegrafID, labelID, params) + if err != nil { + return nil, err } - - return response, nil + return ParseDeleteTelegrafsIDLabelsIDResponse(rsp) } -// ParsePatchAuthorizationsIDResponse parses an HTTP response from a PatchAuthorizationsIDWithResponse call -func ParsePatchAuthorizationsIDResponse(rsp *http.Response) (*patchAuthorizationsIDResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +// GetTelegrafsIDMembersWithResponse request returning *GetTelegrafsIDMembersResponse +func (c *ClientWithResponses) GetTelegrafsIDMembersWithResponse(ctx context.Context, telegrafID string, params *GetTelegrafsIDMembersParams) (*getTelegrafsIDMembersResponse, error) { + rsp, err := c.GetTelegrafsIDMembers(ctx, telegrafID, params) if err != nil { return nil, err } + return ParseGetTelegrafsIDMembersResponse(rsp) +} - response := &patchAuthorizationsIDResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// PostTelegrafsIDMembersWithBodyWithResponse request with arbitrary body returning *PostTelegrafsIDMembersResponse +func (c *ClientWithResponses) PostTelegrafsIDMembersWithBodyWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDMembersParams, contentType string, body io.Reader) (*postTelegrafsIDMembersResponse, error) { + rsp, err := c.PostTelegrafsIDMembersWithBody(ctx, telegrafID, params, contentType, body) + if err != nil { + return nil, err } + return ParsePostTelegrafsIDMembersResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Authorization - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &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 - +func (c *ClientWithResponses) PostTelegrafsIDMembersWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDMembersParams, body PostTelegrafsIDMembersJSONRequestBody) (*postTelegrafsIDMembersResponse, error) { + rsp, err := c.PostTelegrafsIDMembers(ctx, telegrafID, params, body) + if err != nil { + return nil, err } - - return response, nil + return ParsePostTelegrafsIDMembersResponse(rsp) } -// ParseGetBucketsResponse parses an HTTP response from a GetBucketsWithResponse call -func ParseGetBucketsResponse(rsp *http.Response) (*getBucketsResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +// DeleteTelegrafsIDMembersIDWithResponse request returning *DeleteTelegrafsIDMembersIDResponse +func (c *ClientWithResponses) DeleteTelegrafsIDMembersIDWithResponse(ctx context.Context, telegrafID string, userID string, params *DeleteTelegrafsIDMembersIDParams) (*deleteTelegrafsIDMembersIDResponse, error) { + rsp, err := c.DeleteTelegrafsIDMembersID(ctx, telegrafID, userID, params) if err != nil { return nil, err } + return ParseDeleteTelegrafsIDMembersIDResponse(rsp) +} - response := &getBucketsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetTelegrafsIDOwnersWithResponse request returning *GetTelegrafsIDOwnersResponse +func (c *ClientWithResponses) GetTelegrafsIDOwnersWithResponse(ctx context.Context, telegrafID string, params *GetTelegrafsIDOwnersParams) (*getTelegrafsIDOwnersResponse, error) { + rsp, err := c.GetTelegrafsIDOwners(ctx, telegrafID, params) + if err != nil { + return nil, err } + return ParseGetTelegrafsIDOwnersResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Buckets - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &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 - +// PostTelegrafsIDOwnersWithBodyWithResponse request with arbitrary body returning *PostTelegrafsIDOwnersResponse +func (c *ClientWithResponses) PostTelegrafsIDOwnersWithBodyWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDOwnersParams, contentType string, body io.Reader) (*postTelegrafsIDOwnersResponse, error) { + rsp, err := c.PostTelegrafsIDOwnersWithBody(ctx, telegrafID, params, contentType, body) + if err != nil { + return nil, err } - - return response, nil + return ParsePostTelegrafsIDOwnersResponse(rsp) } -// ParsePostBucketsResponse parses an HTTP response from a PostBucketsWithResponse call -func ParsePostBucketsResponse(rsp *http.Response) (*postBucketsResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +func (c *ClientWithResponses) PostTelegrafsIDOwnersWithResponse(ctx context.Context, telegrafID string, params *PostTelegrafsIDOwnersParams, body PostTelegrafsIDOwnersJSONRequestBody) (*postTelegrafsIDOwnersResponse, error) { + rsp, err := c.PostTelegrafsIDOwners(ctx, telegrafID, params, body) if err != nil { return nil, err } + return ParsePostTelegrafsIDOwnersResponse(rsp) +} - response := &postBucketsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteTelegrafsIDOwnersIDWithResponse request returning *DeleteTelegrafsIDOwnersIDResponse +func (c *ClientWithResponses) DeleteTelegrafsIDOwnersIDWithResponse(ctx context.Context, telegrafID string, userID string, params *DeleteTelegrafsIDOwnersIDParams) (*deleteTelegrafsIDOwnersIDResponse, error) { + rsp, err := c.DeleteTelegrafsIDOwnersID(ctx, telegrafID, userID, params) + if err != nil { + return nil, err } + return ParseDeleteTelegrafsIDOwnersIDResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Bucket - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &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 - +// ApplyTemplateWithBodyWithResponse request with arbitrary body returning *ApplyTemplateResponse +func (c *ClientWithResponses) ApplyTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*applyTemplateResponse, error) { + rsp, err := c.ApplyTemplateWithBody(ctx, contentType, body) + if err != nil { + return nil, err } - - return response, nil + return ParseApplyTemplateResponse(rsp) } -// ParseDeleteBucketsIDResponse parses an HTTP response from a DeleteBucketsIDWithResponse call -func ParseDeleteBucketsIDResponse(rsp *http.Response) (*deleteBucketsIDResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +func (c *ClientWithResponses) ApplyTemplateWithResponse(ctx context.Context, body ApplyTemplateJSONRequestBody) (*applyTemplateResponse, error) { + rsp, err := c.ApplyTemplate(ctx, body) if err != nil { return nil, err } + return ParseApplyTemplateResponse(rsp) +} - response := &deleteBucketsIDResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ExportTemplateWithBodyWithResponse request with arbitrary body returning *ExportTemplateResponse +func (c *ClientWithResponses) ExportTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*exportTemplateResponse, error) { + rsp, err := c.ExportTemplateWithBody(ctx, contentType, body) + if err != nil { + return nil, err } + return ParseExportTemplateResponse(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 - +func (c *ClientWithResponses) ExportTemplateWithResponse(ctx context.Context, body ExportTemplateJSONRequestBody) (*exportTemplateResponse, error) { + rsp, err := c.ExportTemplate(ctx, body) + if err != nil { + return nil, err } - - return response, nil + return ParseExportTemplateResponse(rsp) } -// ParseGetBucketsIDResponse parses an HTTP response from a GetBucketsIDWithResponse call -func ParseGetBucketsIDResponse(rsp *http.Response) (*getBucketsIDResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +// GetUsersWithResponse request returning *GetUsersResponse +func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, params *GetUsersParams) (*getUsersResponse, error) { + rsp, err := c.GetUsers(ctx, params) if err != nil { return nil, err } + return ParseGetUsersResponse(rsp) +} - response := &getBucketsIDResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// PostUsersWithBodyWithResponse request with arbitrary body returning *PostUsersResponse +func (c *ClientWithResponses) PostUsersWithBodyWithResponse(ctx context.Context, params *PostUsersParams, contentType string, body io.Reader) (*postUsersResponse, error) { + rsp, err := c.PostUsersWithBody(ctx, params, contentType, body) + if err != nil { + return nil, err } + return ParsePostUsersResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Bucket - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &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 +func (c *ClientWithResponses) PostUsersWithResponse(ctx context.Context, params *PostUsersParams, body PostUsersJSONRequestBody) (*postUsersResponse, error) { + rsp, err := c.PostUsers(ctx, params, body) + if err != nil { + return nil, err + } + return ParsePostUsersResponse(rsp) +} +// DeleteUsersIDWithResponse request returning *DeleteUsersIDResponse +func (c *ClientWithResponses) DeleteUsersIDWithResponse(ctx context.Context, userID string, params *DeleteUsersIDParams) (*deleteUsersIDResponse, error) { + rsp, err := c.DeleteUsersID(ctx, userID, params) + if err != nil { + return nil, err } + return ParseDeleteUsersIDResponse(rsp) +} - return response, nil +// GetUsersIDWithResponse request returning *GetUsersIDResponse +func (c *ClientWithResponses) GetUsersIDWithResponse(ctx context.Context, userID string, params *GetUsersIDParams) (*getUsersIDResponse, error) { + rsp, err := c.GetUsersID(ctx, userID, params) + if err != nil { + return nil, err + } + return ParseGetUsersIDResponse(rsp) } -// ParsePatchBucketsIDResponse parses an HTTP response from a PatchBucketsIDWithResponse call -func ParsePatchBucketsIDResponse(rsp *http.Response) (*patchBucketsIDResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +// PatchUsersIDWithBodyWithResponse request with arbitrary body returning *PatchUsersIDResponse +func (c *ClientWithResponses) PatchUsersIDWithBodyWithResponse(ctx context.Context, userID string, params *PatchUsersIDParams, contentType string, body io.Reader) (*patchUsersIDResponse, error) { + rsp, err := c.PatchUsersIDWithBody(ctx, userID, params, contentType, body) if err != nil { return nil, err } + return ParsePatchUsersIDResponse(rsp) +} - response := &patchBucketsIDResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) PatchUsersIDWithResponse(ctx context.Context, userID string, params *PatchUsersIDParams, body PatchUsersIDJSONRequestBody) (*patchUsersIDResponse, error) { + rsp, err := c.PatchUsersID(ctx, userID, params, body) + if err != nil { + return nil, err } + return ParsePatchUsersIDResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Bucket - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &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 - +// PostUsersIDPasswordWithBodyWithResponse request with arbitrary body returning *PostUsersIDPasswordResponse +func (c *ClientWithResponses) PostUsersIDPasswordWithBodyWithResponse(ctx context.Context, userID string, params *PostUsersIDPasswordParams, contentType string, body io.Reader) (*postUsersIDPasswordResponse, error) { + rsp, err := c.PostUsersIDPasswordWithBody(ctx, userID, params, contentType, body) + if err != nil { + return nil, err } - - return response, nil + return ParsePostUsersIDPasswordResponse(rsp) } -// ParseGetBucketsIDLabelsResponse parses an HTTP response from a GetBucketsIDLabelsWithResponse call -func ParseGetBucketsIDLabelsResponse(rsp *http.Response) (*getBucketsIDLabelsResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +func (c *ClientWithResponses) PostUsersIDPasswordWithResponse(ctx context.Context, userID string, params *PostUsersIDPasswordParams, body PostUsersIDPasswordJSONRequestBody) (*postUsersIDPasswordResponse, error) { + rsp, err := c.PostUsersIDPassword(ctx, userID, params, body) if err != nil { return nil, err } + return ParsePostUsersIDPasswordResponse(rsp) +} - response := &getBucketsIDLabelsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetVariablesWithResponse request returning *GetVariablesResponse +func (c *ClientWithResponses) GetVariablesWithResponse(ctx context.Context, params *GetVariablesParams) (*getVariablesResponse, error) { + rsp, err := c.GetVariables(ctx, params) + if err != nil { + return nil, err } + return ParseGetVariablesResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LabelsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &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 - +// PostVariablesWithBodyWithResponse request with arbitrary body returning *PostVariablesResponse +func (c *ClientWithResponses) PostVariablesWithBodyWithResponse(ctx context.Context, params *PostVariablesParams, contentType string, body io.Reader) (*postVariablesResponse, error) { + rsp, err := c.PostVariablesWithBody(ctx, params, contentType, body) + if err != nil { + return nil, err } - - return response, nil + return ParsePostVariablesResponse(rsp) } -// ParsePostBucketsIDLabelsResponse parses an HTTP response from a PostBucketsIDLabelsWithResponse call -func ParsePostBucketsIDLabelsResponse(rsp *http.Response) (*postBucketsIDLabelsResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +func (c *ClientWithResponses) PostVariablesWithResponse(ctx context.Context, params *PostVariablesParams, body PostVariablesJSONRequestBody) (*postVariablesResponse, error) { + rsp, err := c.PostVariables(ctx, params, body) if err != nil { return nil, err } + return ParsePostVariablesResponse(rsp) +} - response := &postBucketsIDLabelsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteVariablesIDWithResponse request returning *DeleteVariablesIDResponse +func (c *ClientWithResponses) DeleteVariablesIDWithResponse(ctx context.Context, variableID string, params *DeleteVariablesIDParams) (*deleteVariablesIDResponse, error) { + rsp, err := c.DeleteVariablesID(ctx, variableID, params) + if err != nil { + return nil, err } + return ParseDeleteVariablesIDResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest LabelResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &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 - +// GetVariablesIDWithResponse request returning *GetVariablesIDResponse +func (c *ClientWithResponses) GetVariablesIDWithResponse(ctx context.Context, variableID string, params *GetVariablesIDParams) (*getVariablesIDResponse, error) { + rsp, err := c.GetVariablesID(ctx, variableID, params) + if err != nil { + return nil, err } - - return response, nil + return ParseGetVariablesIDResponse(rsp) } -// ParseDeleteBucketsIDLabelsIDResponse parses an HTTP response from a DeleteBucketsIDLabelsIDWithResponse call -func ParseDeleteBucketsIDLabelsIDResponse(rsp *http.Response) (*deleteBucketsIDLabelsIDResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +// PatchVariablesIDWithBodyWithResponse request with arbitrary body returning *PatchVariablesIDResponse +func (c *ClientWithResponses) PatchVariablesIDWithBodyWithResponse(ctx context.Context, variableID string, params *PatchVariablesIDParams, contentType string, body io.Reader) (*patchVariablesIDResponse, error) { + rsp, err := c.PatchVariablesIDWithBody(ctx, variableID, params, contentType, body) if err != nil { return nil, err } + return ParsePatchVariablesIDResponse(rsp) +} - response := &deleteBucketsIDLabelsIDResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) PatchVariablesIDWithResponse(ctx context.Context, variableID string, params *PatchVariablesIDParams, body PatchVariablesIDJSONRequestBody) (*patchVariablesIDResponse, error) { + rsp, err := c.PatchVariablesID(ctx, variableID, params, body) + if err != nil { + return nil, err } + return ParsePatchVariablesIDResponse(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 - +// PutVariablesIDWithBodyWithResponse request with arbitrary body returning *PutVariablesIDResponse +func (c *ClientWithResponses) PutVariablesIDWithBodyWithResponse(ctx context.Context, variableID string, params *PutVariablesIDParams, contentType string, body io.Reader) (*putVariablesIDResponse, error) { + rsp, err := c.PutVariablesIDWithBody(ctx, variableID, params, contentType, body) + if err != nil { + return nil, err } - - return response, nil + return ParsePutVariablesIDResponse(rsp) } -// ParseGetBucketsIDMembersResponse parses an HTTP response from a GetBucketsIDMembersWithResponse call -func ParseGetBucketsIDMembersResponse(rsp *http.Response) (*getBucketsIDMembersResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +func (c *ClientWithResponses) PutVariablesIDWithResponse(ctx context.Context, variableID string, params *PutVariablesIDParams, body PutVariablesIDJSONRequestBody) (*putVariablesIDResponse, error) { + rsp, err := c.PutVariablesID(ctx, variableID, params, body) if err != nil { return nil, err } + return ParsePutVariablesIDResponse(rsp) +} - response := &getBucketsIDMembersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetVariablesIDLabelsWithResponse request returning *GetVariablesIDLabelsResponse +func (c *ClientWithResponses) GetVariablesIDLabelsWithResponse(ctx context.Context, variableID string, params *GetVariablesIDLabelsParams) (*getVariablesIDLabelsResponse, error) { + rsp, err := c.GetVariablesIDLabels(ctx, variableID, params) + if err != nil { + return nil, err } + return ParseGetVariablesIDLabelsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResourceMembers - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &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 - +// PostVariablesIDLabelsWithBodyWithResponse request with arbitrary body returning *PostVariablesIDLabelsResponse +func (c *ClientWithResponses) PostVariablesIDLabelsWithBodyWithResponse(ctx context.Context, variableID string, params *PostVariablesIDLabelsParams, contentType string, body io.Reader) (*postVariablesIDLabelsResponse, error) { + rsp, err := c.PostVariablesIDLabelsWithBody(ctx, variableID, params, contentType, body) + if err != nil { + return nil, err } - - return response, nil + return ParsePostVariablesIDLabelsResponse(rsp) } -// ParsePostBucketsIDMembersResponse parses an HTTP response from a PostBucketsIDMembersWithResponse call -func ParsePostBucketsIDMembersResponse(rsp *http.Response) (*postBucketsIDMembersResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() +func (c *ClientWithResponses) PostVariablesIDLabelsWithResponse(ctx context.Context, variableID string, params *PostVariablesIDLabelsParams, body PostVariablesIDLabelsJSONRequestBody) (*postVariablesIDLabelsResponse, error) { + rsp, err := c.PostVariablesIDLabels(ctx, variableID, params, body) if err != nil { return nil, err } + return ParsePostVariablesIDLabelsResponse(rsp) +} - response := &postBucketsIDMembersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteVariablesIDLabelsIDWithResponse request returning *DeleteVariablesIDLabelsIDResponse +func (c *ClientWithResponses) DeleteVariablesIDLabelsIDWithResponse(ctx context.Context, variableID string, labelID string, params *DeleteVariablesIDLabelsIDParams) (*deleteVariablesIDLabelsIDResponse, error) { + rsp, err := c.DeleteVariablesIDLabelsID(ctx, variableID, labelID, params) + if err != nil { + return nil, err } + return ParseDeleteVariablesIDLabelsIDResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ResourceMember - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &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 - +// PostWriteWithBodyWithResponse request with arbitrary body returning *PostWriteResponse +func (c *ClientWithResponses) PostWriteWithBodyWithResponse(ctx context.Context, params *PostWriteParams, contentType string, body io.Reader) (*postWriteResponse, error) { + rsp, err := c.PostWriteWithBody(ctx, params, contentType, body) + if err != nil { + return nil, err } - - return response, nil + return ParsePostWriteResponse(rsp) } -// ParseDeleteBucketsIDMembersIDResponse parses an HTTP response from a DeleteBucketsIDMembersIDWithResponse call -func ParseDeleteBucketsIDMembersIDResponse(rsp *http.Response) (*deleteBucketsIDMembersIDResponse, error) { +// ParseGetRoutesResponse parses an HTTP response from a GetRoutesWithResponse call +func ParseGetRoutesResponse(rsp *http.Response) (*getRoutesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteBucketsIDMembersIDResponse{ + response := &getRoutesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json"): - var dest Error + var dest Routes if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -22650,22 +21305,22 @@ func ParseDeleteBucketsIDMembersIDResponse(rsp *http.Response) (*deleteBucketsID return response, nil } -// ParseGetBucketsIDOwnersResponse parses an HTTP response from a GetBucketsIDOwnersWithResponse call -func ParseGetBucketsIDOwnersResponse(rsp *http.Response) (*getBucketsIDOwnersResponse, error) { +// ParseGetAuthorizationsResponse parses an HTTP response from a GetAuthorizationsWithResponse call +func ParseGetAuthorizationsResponse(rsp *http.Response) (*getAuthorizationsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getBucketsIDOwnersResponse{ + response := &getAuthorizationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResourceOwners + var dest Authorizations if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -22683,27 +21338,34 @@ func ParseGetBucketsIDOwnersResponse(rsp *http.Response) (*getBucketsIDOwnersRes return response, nil } -// ParsePostBucketsIDOwnersResponse parses an HTTP response from a PostBucketsIDOwnersWithResponse call -func ParsePostBucketsIDOwnersResponse(rsp *http.Response) (*postBucketsIDOwnersResponse, error) { +// ParsePostAuthorizationsResponse parses an HTTP response from a PostAuthorizationsWithResponse call +func ParsePostAuthorizationsResponse(rsp *http.Response) (*postAuthorizationsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postBucketsIDOwnersResponse{ + response := &postAuthorizationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ResourceOwner + var dest Authorization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22716,15 +21378,15 @@ func ParsePostBucketsIDOwnersResponse(rsp *http.Response) (*postBucketsIDOwnersR return response, nil } -// ParseDeleteBucketsIDOwnersIDResponse parses an HTTP response from a DeleteBucketsIDOwnersIDWithResponse call -func ParseDeleteBucketsIDOwnersIDResponse(rsp *http.Response) (*deleteBucketsIDOwnersIDResponse, error) { +// ParseDeleteAuthorizationsIDResponse parses an HTTP response from a DeleteAuthorizationsIDWithResponse call +func ParseDeleteAuthorizationsIDResponse(rsp *http.Response) (*deleteAuthorizationsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteBucketsIDOwnersIDResponse{ + response := &deleteAuthorizationsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -22742,22 +21404,22 @@ func ParseDeleteBucketsIDOwnersIDResponse(rsp *http.Response) (*deleteBucketsIDO return response, nil } -// ParseGetChecksResponse parses an HTTP response from a GetChecksWithResponse call -func ParseGetChecksResponse(rsp *http.Response) (*getChecksResponse, error) { +// ParseGetAuthorizationsIDResponse parses an HTTP response from a GetAuthorizationsIDWithResponse call +func ParseGetAuthorizationsIDResponse(rsp *http.Response) (*getAuthorizationsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getChecksResponse{ + response := &getAuthorizationsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Checks + var dest Authorization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -22775,26 +21437,26 @@ func ParseGetChecksResponse(rsp *http.Response) (*getChecksResponse, error) { return response, nil } -// ParseCreateCheckResponse parses an HTTP response from a CreateCheckWithResponse call -func ParseCreateCheckResponse(rsp *http.Response) (*createCheckResponse, error) { +// ParsePatchAuthorizationsIDResponse parses an HTTP response from a PatchAuthorizationsIDWithResponse call +func ParsePatchAuthorizationsIDResponse(rsp *http.Response) (*patchAuthorizationsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &createCheckResponse{ + response := &patchAuthorizationsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Check + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Authorization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -22808,26 +21470,26 @@ func ParseCreateCheckResponse(rsp *http.Response) (*createCheckResponse, error) return response, nil } -// ParseDeleteChecksIDResponse parses an HTTP response from a DeleteChecksIDWithResponse call -func ParseDeleteChecksIDResponse(rsp *http.Response) (*deleteChecksIDResponse, error) { +// ParseGetBucketsResponse parses an HTTP response from a GetBucketsWithResponse call +func ParseGetBucketsResponse(rsp *http.Response) (*getBucketsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteChecksIDResponse{ + response := &getBucketsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Buckets if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -22841,26 +21503,33 @@ func ParseDeleteChecksIDResponse(rsp *http.Response) (*deleteChecksIDResponse, e return response, nil } -// ParseGetChecksIDResponse parses an HTTP response from a GetChecksIDWithResponse call -func ParseGetChecksIDResponse(rsp *http.Response) (*getChecksIDResponse, error) { +// ParsePostBucketsResponse parses an HTTP response from a PostBucketsWithResponse call +func ParsePostBucketsResponse(rsp *http.Response) (*postBucketsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getChecksIDResponse{ + response := &postBucketsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Check + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Bucket if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -22874,27 +21543,20 @@ func ParseGetChecksIDResponse(rsp *http.Response) (*getChecksIDResponse, error) return response, nil } -// ParsePatchChecksIDResponse parses an HTTP response from a PatchChecksIDWithResponse call -func ParsePatchChecksIDResponse(rsp *http.Response) (*patchChecksIDResponse, error) { +// ParseDeleteBucketsIDResponse parses an HTTP response from a DeleteBucketsIDWithResponse call +func ParseDeleteBucketsIDResponse(rsp *http.Response) (*deleteBucketsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchChecksIDResponse{ + response := &deleteBucketsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Check - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22914,34 +21576,27 @@ func ParsePatchChecksIDResponse(rsp *http.Response) (*patchChecksIDResponse, err return response, nil } -// ParsePutChecksIDResponse parses an HTTP response from a PutChecksIDWithResponse call -func ParsePutChecksIDResponse(rsp *http.Response) (*putChecksIDResponse, error) { +// ParseGetBucketsIDResponse parses an HTTP response from a GetBucketsIDWithResponse call +func ParseGetBucketsIDResponse(rsp *http.Response) (*getBucketsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &putChecksIDResponse{ + response := &getBucketsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Check + var dest Bucket if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - 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 { @@ -22954,22 +21609,22 @@ func ParsePutChecksIDResponse(rsp *http.Response) (*putChecksIDResponse, error) return response, nil } -// ParseGetChecksIDLabelsResponse parses an HTTP response from a GetChecksIDLabelsWithResponse call -func ParseGetChecksIDLabelsResponse(rsp *http.Response) (*getChecksIDLabelsResponse, error) { +// ParsePatchBucketsIDResponse parses an HTTP response from a PatchBucketsIDWithResponse call +func ParsePatchBucketsIDResponse(rsp *http.Response) (*patchBucketsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getChecksIDLabelsResponse{ + response := &patchBucketsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LabelsResponse + var dest Bucket if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -22987,26 +21642,26 @@ func ParseGetChecksIDLabelsResponse(rsp *http.Response) (*getChecksIDLabelsRespo return response, nil } -// ParsePostChecksIDLabelsResponse parses an HTTP response from a PostChecksIDLabelsWithResponse call -func ParsePostChecksIDLabelsResponse(rsp *http.Response) (*postChecksIDLabelsResponse, error) { +// ParseGetBucketsIDLabelsResponse parses an HTTP response from a GetBucketsIDLabelsWithResponse call +func ParseGetBucketsIDLabelsResponse(rsp *http.Response) (*getBucketsIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postChecksIDLabelsResponse{ + response := &getBucketsIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest LabelResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest LabelsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23020,26 +21675,26 @@ func ParsePostChecksIDLabelsResponse(rsp *http.Response) (*postChecksIDLabelsRes return response, nil } -// ParseDeleteChecksIDLabelsIDResponse parses an HTTP response from a DeleteChecksIDLabelsIDWithResponse call -func ParseDeleteChecksIDLabelsIDResponse(rsp *http.Response) (*deleteChecksIDLabelsIDResponse, error) { +// ParsePostBucketsIDLabelsResponse parses an HTTP response from a PostBucketsIDLabelsWithResponse call +func ParsePostBucketsIDLabelsResponse(rsp *http.Response) (*postBucketsIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteChecksIDLabelsIDResponse{ + response := &postBucketsIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest LabelResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23053,34 +21708,20 @@ func ParseDeleteChecksIDLabelsIDResponse(rsp *http.Response) (*deleteChecksIDLab return response, nil } -// ParseGetChecksIDQueryResponse parses an HTTP response from a GetChecksIDQueryWithResponse call -func ParseGetChecksIDQueryResponse(rsp *http.Response) (*getChecksIDQueryResponse, error) { +// ParseDeleteBucketsIDLabelsIDResponse parses an HTTP response from a DeleteBucketsIDLabelsIDWithResponse call +func ParseDeleteBucketsIDLabelsIDResponse(rsp *http.Response) (*deleteBucketsIDLabelsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getChecksIDQueryResponse{ + response := &deleteBucketsIDLabelsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FluxResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23100,22 +21741,22 @@ func ParseGetChecksIDQueryResponse(rsp *http.Response) (*getChecksIDQueryRespons return response, nil } -// ParseGetDashboardsResponse parses an HTTP response from a GetDashboardsWithResponse call -func ParseGetDashboardsResponse(rsp *http.Response) (*getDashboardsResponse, error) { +// ParseGetBucketsIDMembersResponse parses an HTTP response from a GetBucketsIDMembersWithResponse call +func ParseGetBucketsIDMembersResponse(rsp *http.Response) (*getBucketsIDMembersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDashboardsResponse{ + response := &getBucketsIDMembersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Dashboards + var dest ResourceMembers if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23133,22 +21774,22 @@ func ParseGetDashboardsResponse(rsp *http.Response) (*getDashboardsResponse, err return response, nil } -// ParsePostDashboardsResponse parses an HTTP response from a PostDashboardsWithResponse call -func ParsePostDashboardsResponse(rsp *http.Response) (*postDashboardsResponse, error) { +// ParsePostBucketsIDMembersResponse parses an HTTP response from a PostBucketsIDMembersWithResponse call +func ParsePostBucketsIDMembersResponse(rsp *http.Response) (*postBucketsIDMembersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postDashboardsResponse{ + response := &postBucketsIDMembersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest interface{} + var dest ResourceMember if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23166,27 +21807,20 @@ func ParsePostDashboardsResponse(rsp *http.Response) (*postDashboardsResponse, e return response, nil } -// ParseDeleteDashboardsIDResponse parses an HTTP response from a DeleteDashboardsIDWithResponse call -func ParseDeleteDashboardsIDResponse(rsp *http.Response) (*deleteDashboardsIDResponse, error) { +// ParseDeleteBucketsIDMembersIDResponse parses an HTTP response from a DeleteBucketsIDMembersIDWithResponse call +func ParseDeleteBucketsIDMembersIDResponse(rsp *http.Response) (*deleteBucketsIDMembersIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteDashboardsIDResponse{ + response := &deleteBucketsIDMembersIDResponse{ 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 { @@ -23199,34 +21833,27 @@ func ParseDeleteDashboardsIDResponse(rsp *http.Response) (*deleteDashboardsIDRes return response, nil } -// ParseGetDashboardsIDResponse parses an HTTP response from a GetDashboardsIDWithResponse call -func ParseGetDashboardsIDResponse(rsp *http.Response) (*getDashboardsIDResponse, error) { +// ParseGetBucketsIDOwnersResponse parses an HTTP response from a GetBucketsIDOwnersWithResponse call +func ParseGetBucketsIDOwnersResponse(rsp *http.Response) (*getBucketsIDOwnersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDashboardsIDResponse{ + response := &getBucketsIDOwnersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest interface{} + var dest ResourceOwners if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - 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 { @@ -23239,34 +21866,53 @@ func ParseGetDashboardsIDResponse(rsp *http.Response) (*getDashboardsIDResponse, return response, nil } -// ParsePatchDashboardsIDResponse parses an HTTP response from a PatchDashboardsIDWithResponse call -func ParsePatchDashboardsIDResponse(rsp *http.Response) (*patchDashboardsIDResponse, error) { +// ParsePostBucketsIDOwnersResponse parses an HTTP response from a PostBucketsIDOwnersWithResponse call +func ParsePostBucketsIDOwnersResponse(rsp *http.Response) (*postBucketsIDOwnersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchDashboardsIDResponse{ + response := &postBucketsIDOwnersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Dashboard + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ResourceOwner if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteBucketsIDOwnersIDResponse parses an HTTP response from a DeleteBucketsIDOwnersIDWithResponse call +func ParseDeleteBucketsIDOwnersIDResponse(rsp *http.Response) (*deleteBucketsIDOwnersIDResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &deleteBucketsIDOwnersIDResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23279,33 +21925,26 @@ func ParsePatchDashboardsIDResponse(rsp *http.Response) (*patchDashboardsIDRespo return response, nil } -// ParsePostDashboardsIDCellsResponse parses an HTTP response from a PostDashboardsIDCellsWithResponse call -func ParsePostDashboardsIDCellsResponse(rsp *http.Response) (*postDashboardsIDCellsResponse, error) { +// ParseGetChecksResponse parses an HTTP response from a GetChecksWithResponse call +func ParseGetChecksResponse(rsp *http.Response) (*getChecksResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postDashboardsIDCellsResponse{ + response := &getChecksResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Cell - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Checks if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23319,34 +21958,27 @@ func ParsePostDashboardsIDCellsResponse(rsp *http.Response) (*postDashboardsIDCe return response, nil } -// ParsePutDashboardsIDCellsResponse parses an HTTP response from a PutDashboardsIDCellsWithResponse call -func ParsePutDashboardsIDCellsResponse(rsp *http.Response) (*putDashboardsIDCellsResponse, error) { +// ParseCreateCheckResponse parses an HTTP response from a CreateCheckWithResponse call +func ParseCreateCheckResponse(rsp *http.Response) (*createCheckResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &putDashboardsIDCellsResponse{ + response := &createCheckResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Dashboard + var dest Check if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest - 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 { @@ -23359,15 +21991,15 @@ func ParsePutDashboardsIDCellsResponse(rsp *http.Response) (*putDashboardsIDCell return response, nil } -// ParseDeleteDashboardsIDCellsIDResponse parses an HTTP response from a DeleteDashboardsIDCellsIDWithResponse call -func ParseDeleteDashboardsIDCellsIDResponse(rsp *http.Response) (*deleteDashboardsIDCellsIDResponse, error) { +// ParseDeleteChecksIDResponse parses an HTTP response from a DeleteChecksIDWithResponse call +func ParseDeleteChecksIDResponse(rsp *http.Response) (*deleteChecksIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteDashboardsIDCellsIDResponse{ + response := &deleteChecksIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -23392,34 +22024,27 @@ func ParseDeleteDashboardsIDCellsIDResponse(rsp *http.Response) (*deleteDashboar return response, nil } -// ParsePatchDashboardsIDCellsIDResponse parses an HTTP response from a PatchDashboardsIDCellsIDWithResponse call -func ParsePatchDashboardsIDCellsIDResponse(rsp *http.Response) (*patchDashboardsIDCellsIDResponse, error) { +// ParseGetChecksIDResponse parses an HTTP response from a GetChecksIDWithResponse call +func ParseGetChecksIDResponse(rsp *http.Response) (*getChecksIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchDashboardsIDCellsIDResponse{ + response := &getChecksIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Cell + var dest Check if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - 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 { @@ -23432,22 +22057,22 @@ func ParsePatchDashboardsIDCellsIDResponse(rsp *http.Response) (*patchDashboards return response, nil } -// ParseGetDashboardsIDCellsIDViewResponse parses an HTTP response from a GetDashboardsIDCellsIDViewWithResponse call -func ParseGetDashboardsIDCellsIDViewResponse(rsp *http.Response) (*getDashboardsIDCellsIDViewResponse, error) { +// ParsePatchChecksIDResponse parses an HTTP response from a PatchChecksIDWithResponse call +func ParsePatchChecksIDResponse(rsp *http.Response) (*patchChecksIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDashboardsIDCellsIDViewResponse{ + response := &patchChecksIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest View + var dest Check if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23472,22 +22097,22 @@ func ParseGetDashboardsIDCellsIDViewResponse(rsp *http.Response) (*getDashboards return response, nil } -// ParsePatchDashboardsIDCellsIDViewResponse parses an HTTP response from a PatchDashboardsIDCellsIDViewWithResponse call -func ParsePatchDashboardsIDCellsIDViewResponse(rsp *http.Response) (*patchDashboardsIDCellsIDViewResponse, error) { +// ParsePutChecksIDResponse parses an HTTP response from a PutChecksIDWithResponse call +func ParsePutChecksIDResponse(rsp *http.Response) (*putChecksIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchDashboardsIDCellsIDViewResponse{ + response := &putChecksIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest View + var dest Check if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23512,15 +22137,15 @@ func ParsePatchDashboardsIDCellsIDViewResponse(rsp *http.Response) (*patchDashbo return response, nil } -// ParseGetDashboardsIDLabelsResponse parses an HTTP response from a GetDashboardsIDLabelsWithResponse call -func ParseGetDashboardsIDLabelsResponse(rsp *http.Response) (*getDashboardsIDLabelsResponse, error) { +// ParseGetChecksIDLabelsResponse parses an HTTP response from a GetChecksIDLabelsWithResponse call +func ParseGetChecksIDLabelsResponse(rsp *http.Response) (*getChecksIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDashboardsIDLabelsResponse{ + response := &getChecksIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -23545,15 +22170,15 @@ func ParseGetDashboardsIDLabelsResponse(rsp *http.Response) (*getDashboardsIDLab return response, nil } -// ParsePostDashboardsIDLabelsResponse parses an HTTP response from a PostDashboardsIDLabelsWithResponse call -func ParsePostDashboardsIDLabelsResponse(rsp *http.Response) (*postDashboardsIDLabelsResponse, error) { +// ParsePostChecksIDLabelsResponse parses an HTTP response from a PostChecksIDLabelsWithResponse call +func ParsePostChecksIDLabelsResponse(rsp *http.Response) (*postChecksIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postDashboardsIDLabelsResponse{ + response := &postChecksIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -23578,15 +22203,15 @@ func ParsePostDashboardsIDLabelsResponse(rsp *http.Response) (*postDashboardsIDL return response, nil } -// ParseDeleteDashboardsIDLabelsIDResponse parses an HTTP response from a DeleteDashboardsIDLabelsIDWithResponse call -func ParseDeleteDashboardsIDLabelsIDResponse(rsp *http.Response) (*deleteDashboardsIDLabelsIDResponse, error) { +// ParseDeleteChecksIDLabelsIDResponse parses an HTTP response from a DeleteChecksIDLabelsIDWithResponse call +func ParseDeleteChecksIDLabelsIDResponse(rsp *http.Response) (*deleteChecksIDLabelsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteDashboardsIDLabelsIDResponse{ + response := &deleteChecksIDLabelsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -23611,59 +22236,40 @@ func ParseDeleteDashboardsIDLabelsIDResponse(rsp *http.Response) (*deleteDashboa return response, nil } -// ParseGetDashboardsIDMembersResponse parses an HTTP response from a GetDashboardsIDMembersWithResponse call -func ParseGetDashboardsIDMembersResponse(rsp *http.Response) (*getDashboardsIDMembersResponse, error) { +// ParseGetChecksIDQueryResponse parses an HTTP response from a GetChecksIDQueryWithResponse call +func ParseGetChecksIDQueryResponse(rsp *http.Response) (*getChecksIDQueryResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDashboardsIDMembersResponse{ + response := &getChecksIDQueryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResourceMembers + var dest FluxResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePostDashboardsIDMembersResponse parses an HTTP response from a PostDashboardsIDMembersWithResponse call -func ParsePostDashboardsIDMembersResponse(rsp *http.Response) (*postDashboardsIDMembersResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() - if err != nil { - return nil, err - } - - response := &postDashboardsIDMembersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON400 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ResourceMember + 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.JSON201 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23677,20 +22283,27 @@ func ParsePostDashboardsIDMembersResponse(rsp *http.Response) (*postDashboardsID return response, nil } -// ParseDeleteDashboardsIDMembersIDResponse parses an HTTP response from a DeleteDashboardsIDMembersIDWithResponse call -func ParseDeleteDashboardsIDMembersIDResponse(rsp *http.Response) (*deleteDashboardsIDMembersIDResponse, error) { +// ParseGetDashboardsResponse parses an HTTP response from a GetDashboardsWithResponse call +func ParseGetDashboardsResponse(rsp *http.Response) (*getDashboardsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteDashboardsIDMembersIDResponse{ + response := &getDashboardsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Dashboards + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23703,26 +22316,26 @@ func ParseDeleteDashboardsIDMembersIDResponse(rsp *http.Response) (*deleteDashbo return response, nil } -// ParseGetDashboardsIDOwnersResponse parses an HTTP response from a GetDashboardsIDOwnersWithResponse call -func ParseGetDashboardsIDOwnersResponse(rsp *http.Response) (*getDashboardsIDOwnersResponse, error) { +// ParsePostDashboardsResponse parses an HTTP response from a PostDashboardsWithResponse call +func ParsePostDashboardsResponse(rsp *http.Response) (*postDashboardsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDashboardsIDOwnersResponse{ + response := &postDashboardsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResourceOwners + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23736,26 +22349,26 @@ func ParseGetDashboardsIDOwnersResponse(rsp *http.Response) (*getDashboardsIDOwn return response, nil } -// ParsePostDashboardsIDOwnersResponse parses an HTTP response from a PostDashboardsIDOwnersWithResponse call -func ParsePostDashboardsIDOwnersResponse(rsp *http.Response) (*postDashboardsIDOwnersResponse, error) { +// ParseDeleteDashboardsIDResponse parses an HTTP response from a DeleteDashboardsIDWithResponse call +func ParseDeleteDashboardsIDResponse(rsp *http.Response) (*deleteDashboardsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postDashboardsIDOwnersResponse{ + response := &deleteDashboardsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ResourceOwner + 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.JSON201 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23769,20 +22382,34 @@ func ParsePostDashboardsIDOwnersResponse(rsp *http.Response) (*postDashboardsIDO return response, nil } -// ParseDeleteDashboardsIDOwnersIDResponse parses an HTTP response from a DeleteDashboardsIDOwnersIDWithResponse call -func ParseDeleteDashboardsIDOwnersIDResponse(rsp *http.Response) (*deleteDashboardsIDOwnersIDResponse, error) { +// ParseGetDashboardsIDResponse parses an HTTP response from a GetDashboardsIDWithResponse call +func ParseGetDashboardsIDResponse(rsp *http.Response) (*getDashboardsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteDashboardsIDOwnersIDResponse{ + response := &getDashboardsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + 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 { @@ -23795,33 +22422,33 @@ func ParseDeleteDashboardsIDOwnersIDResponse(rsp *http.Response) (*deleteDashboa return response, nil } -// ParseGetDBRPsResponse parses an HTTP response from a GetDBRPsWithResponse call -func ParseGetDBRPsResponse(rsp *http.Response) (*getDBRPsResponse, error) { +// ParsePatchDashboardsIDResponse parses an HTTP response from a PatchDashboardsIDWithResponse call +func ParsePatchDashboardsIDResponse(rsp *http.Response) (*patchDashboardsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDBRPsResponse{ + response := &patchDashboardsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DBRPs + var dest Dashboard if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + 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.JSON400 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23835,33 +22462,33 @@ func ParseGetDBRPsResponse(rsp *http.Response) (*getDBRPsResponse, error) { return response, nil } -// ParsePostDBRPResponse parses an HTTP response from a PostDBRPWithResponse call -func ParsePostDBRPResponse(rsp *http.Response) (*postDBRPResponse, error) { +// ParsePostDashboardsIDCellsResponse parses an HTTP response from a PostDashboardsIDCellsWithResponse call +func ParsePostDashboardsIDCellsResponse(rsp *http.Response) (*postDashboardsIDCellsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postDBRPResponse{ + response := &postDashboardsIDCellsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest DBRP + var dest Cell if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + 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.JSON400 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23875,26 +22502,33 @@ func ParsePostDBRPResponse(rsp *http.Response) (*postDBRPResponse, error) { return response, nil } -// ParseDeleteDBRPIDResponse parses an HTTP response from a DeleteDBRPIDWithResponse call -func ParseDeleteDBRPIDResponse(rsp *http.Response) (*deleteDBRPIDResponse, error) { +// ParsePutDashboardsIDCellsResponse parses an HTTP response from a PutDashboardsIDCellsWithResponse call +func ParsePutDashboardsIDCellsResponse(rsp *http.Response) (*putDashboardsIDCellsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteDBRPIDResponse{ + response := &putDashboardsIDCellsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Dashboard + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + 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.JSON400 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23908,33 +22542,26 @@ func ParseDeleteDBRPIDResponse(rsp *http.Response) (*deleteDBRPIDResponse, error return response, nil } -// ParseGetDBRPsIDResponse parses an HTTP response from a GetDBRPsIDWithResponse call -func ParseGetDBRPsIDResponse(rsp *http.Response) (*getDBRPsIDResponse, error) { +// ParseDeleteDashboardsIDCellsIDResponse parses an HTTP response from a DeleteDashboardsIDCellsIDWithResponse call +func ParseDeleteDashboardsIDCellsIDResponse(rsp *http.Response) (*deleteDashboardsIDCellsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDBRPsIDResponse{ + response := &deleteDashboardsIDCellsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DBRP - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + 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.JSON400 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -23948,34 +22575,27 @@ func ParseGetDBRPsIDResponse(rsp *http.Response) (*getDBRPsIDResponse, error) { return response, nil } -// ParsePatchDBRPIDResponse parses an HTTP response from a PatchDBRPIDWithResponse call -func ParsePatchDBRPIDResponse(rsp *http.Response) (*patchDBRPIDResponse, error) { +// ParsePatchDashboardsIDCellsIDResponse parses an HTTP response from a PatchDashboardsIDCellsIDWithResponse call +func ParsePatchDashboardsIDCellsIDResponse(rsp *http.Response) (*patchDashboardsIDCellsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchDBRPIDResponse{ + response := &patchDashboardsIDCellsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DBRP + var dest Cell if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23995,33 +22615,26 @@ func ParsePatchDBRPIDResponse(rsp *http.Response) (*patchDBRPIDResponse, error) return response, nil } -// ParsePostDeleteResponse parses an HTTP response from a PostDeleteWithResponse call -func ParsePostDeleteResponse(rsp *http.Response) (*postDeleteResponse, error) { +// ParseGetDashboardsIDCellsIDViewResponse parses an HTTP response from a GetDashboardsIDCellsIDViewWithResponse call +func ParseGetDashboardsIDCellsIDViewResponse(rsp *http.Response) (*getDashboardsIDCellsIDViewResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postDeleteResponse{ + response := &getDashboardsIDCellsIDViewResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest View if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error @@ -24042,27 +22655,34 @@ func ParsePostDeleteResponse(rsp *http.Response) (*postDeleteResponse, error) { return response, nil } -// ParseGetDocumentsTemplatesResponse parses an HTTP response from a GetDocumentsTemplatesWithResponse call -func ParseGetDocumentsTemplatesResponse(rsp *http.Response) (*getDocumentsTemplatesResponse, error) { +// ParsePatchDashboardsIDCellsIDViewResponse parses an HTTP response from a PatchDashboardsIDCellsIDViewWithResponse call +func ParsePatchDashboardsIDCellsIDViewResponse(rsp *http.Response) (*patchDashboardsIDCellsIDViewResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDocumentsTemplatesResponse{ + response := &patchDashboardsIDCellsIDViewResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Documents + var dest View if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + 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 { @@ -24075,26 +22695,26 @@ func ParseGetDocumentsTemplatesResponse(rsp *http.Response) (*getDocumentsTempla return response, nil } -// ParsePostDocumentsTemplatesResponse parses an HTTP response from a PostDocumentsTemplatesWithResponse call -func ParsePostDocumentsTemplatesResponse(rsp *http.Response) (*postDocumentsTemplatesResponse, error) { +// ParseGetDashboardsIDLabelsResponse parses an HTTP response from a GetDashboardsIDLabelsWithResponse call +func ParseGetDashboardsIDLabelsResponse(rsp *http.Response) (*getDashboardsIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postDocumentsTemplatesResponse{ + response := &getDashboardsIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Document + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest LabelsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24108,20 +22728,27 @@ func ParsePostDocumentsTemplatesResponse(rsp *http.Response) (*postDocumentsTemp return response, nil } -// ParseDeleteDocumentsTemplatesIDResponse parses an HTTP response from a DeleteDocumentsTemplatesIDWithResponse call -func ParseDeleteDocumentsTemplatesIDResponse(rsp *http.Response) (*deleteDocumentsTemplatesIDResponse, error) { +// ParsePostDashboardsIDLabelsResponse parses an HTTP response from a PostDashboardsIDLabelsWithResponse call +func ParsePostDashboardsIDLabelsResponse(rsp *http.Response) (*postDashboardsIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteDocumentsTemplatesIDResponse{ + response := &postDashboardsIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest LabelResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24134,26 +22761,26 @@ func ParseDeleteDocumentsTemplatesIDResponse(rsp *http.Response) (*deleteDocumen return response, nil } -// ParseGetDocumentsTemplatesIDResponse parses an HTTP response from a GetDocumentsTemplatesIDWithResponse call -func ParseGetDocumentsTemplatesIDResponse(rsp *http.Response) (*getDocumentsTemplatesIDResponse, error) { +// ParseDeleteDashboardsIDLabelsIDResponse parses an HTTP response from a DeleteDashboardsIDLabelsIDWithResponse call +func ParseDeleteDashboardsIDLabelsIDResponse(rsp *http.Response) (*deleteDashboardsIDLabelsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDocumentsTemplatesIDResponse{ + response := &deleteDashboardsIDLabelsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Document + 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.JSON200 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24167,22 +22794,22 @@ func ParseGetDocumentsTemplatesIDResponse(rsp *http.Response) (*getDocumentsTemp return response, nil } -// ParsePutDocumentsTemplatesIDResponse parses an HTTP response from a PutDocumentsTemplatesIDWithResponse call -func ParsePutDocumentsTemplatesIDResponse(rsp *http.Response) (*putDocumentsTemplatesIDResponse, error) { +// ParseGetDashboardsIDMembersResponse parses an HTTP response from a GetDashboardsIDMembersWithResponse call +func ParseGetDashboardsIDMembersResponse(rsp *http.Response) (*getDashboardsIDMembersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &putDocumentsTemplatesIDResponse{ + response := &getDashboardsIDMembersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Document + var dest ResourceMembers if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24200,26 +22827,26 @@ func ParsePutDocumentsTemplatesIDResponse(rsp *http.Response) (*putDocumentsTemp return response, nil } -// ParseGetDocumentsTemplatesIDLabelsResponse parses an HTTP response from a GetDocumentsTemplatesIDLabelsWithResponse call -func ParseGetDocumentsTemplatesIDLabelsResponse(rsp *http.Response) (*getDocumentsTemplatesIDLabelsResponse, error) { +// ParsePostDashboardsIDMembersResponse parses an HTTP response from a PostDashboardsIDMembersWithResponse call +func ParsePostDashboardsIDMembersResponse(rsp *http.Response) (*postDashboardsIDMembersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getDocumentsTemplatesIDLabelsResponse{ + response := &postDashboardsIDMembersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LabelsResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ResourceMember if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24233,27 +22860,20 @@ func ParseGetDocumentsTemplatesIDLabelsResponse(rsp *http.Response) (*getDocumen return response, nil } -// ParsePostDocumentsTemplatesIDLabelsResponse parses an HTTP response from a PostDocumentsTemplatesIDLabelsWithResponse call -func ParsePostDocumentsTemplatesIDLabelsResponse(rsp *http.Response) (*postDocumentsTemplatesIDLabelsResponse, error) { +// ParseDeleteDashboardsIDMembersIDResponse parses an HTTP response from a DeleteDashboardsIDMembersIDWithResponse call +func ParseDeleteDashboardsIDMembersIDResponse(rsp *http.Response) (*deleteDashboardsIDMembersIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postDocumentsTemplatesIDLabelsResponse{ + response := &deleteDashboardsIDMembersIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest LabelResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24266,26 +22886,26 @@ func ParsePostDocumentsTemplatesIDLabelsResponse(rsp *http.Response) (*postDocum return response, nil } -// ParseDeleteDocumentsTemplatesIDLabelsIDResponse parses an HTTP response from a DeleteDocumentsTemplatesIDLabelsIDWithResponse call -func ParseDeleteDocumentsTemplatesIDLabelsIDResponse(rsp *http.Response) (*deleteDocumentsTemplatesIDLabelsIDResponse, error) { +// ParseGetDashboardsIDOwnersResponse parses an HTTP response from a GetDashboardsIDOwnersWithResponse call +func ParseGetDashboardsIDOwnersResponse(rsp *http.Response) (*getDashboardsIDOwnersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteDocumentsTemplatesIDLabelsIDResponse{ + response := &getDashboardsIDOwnersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ResourceOwners if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24299,26 +22919,26 @@ func ParseDeleteDocumentsTemplatesIDLabelsIDResponse(rsp *http.Response) (*delet return response, nil } -// ParseGetFlagsResponse parses an HTTP response from a GetFlagsWithResponse call -func ParseGetFlagsResponse(rsp *http.Response) (*getFlagsResponse, error) { +// ParsePostDashboardsIDOwnersResponse parses an HTTP response from a PostDashboardsIDOwnersWithResponse call +func ParsePostDashboardsIDOwnersResponse(rsp *http.Response) (*postDashboardsIDOwnersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getFlagsResponse{ + response := &postDashboardsIDOwnersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Flags + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ResourceOwner if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24332,34 +22952,20 @@ func ParseGetFlagsResponse(rsp *http.Response) (*getFlagsResponse, error) { return response, nil } -// ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call -func ParseGetHealthResponse(rsp *http.Response) (*getHealthResponse, error) { +// ParseDeleteDashboardsIDOwnersIDResponse parses an HTTP response from a DeleteDashboardsIDOwnersIDWithResponse call +func ParseDeleteDashboardsIDOwnersIDResponse(rsp *http.Response) (*deleteDashboardsIDOwnersIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getHealthResponse{ + response := &deleteDashboardsIDOwnersIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest HealthCheck - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest HealthCheck - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24372,27 +22978,34 @@ func ParseGetHealthResponse(rsp *http.Response) (*getHealthResponse, error) { return response, nil } -// ParseGetLabelsResponse parses an HTTP response from a GetLabelsWithResponse call -func ParseGetLabelsResponse(rsp *http.Response) (*getLabelsResponse, error) { +// ParseGetDBRPsResponse parses an HTTP response from a GetDBRPsWithResponse call +func ParseGetDBRPsResponse(rsp *http.Response) (*getDBRPsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getLabelsResponse{ + response := &getDBRPsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LabelsResponse + var dest DBRPs if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24405,27 +23018,34 @@ func ParseGetLabelsResponse(rsp *http.Response) (*getLabelsResponse, error) { return response, nil } -// ParsePostLabelsResponse parses an HTTP response from a PostLabelsWithResponse call -func ParsePostLabelsResponse(rsp *http.Response) (*postLabelsResponse, error) { +// ParsePostDBRPResponse parses an HTTP response from a PostDBRPWithResponse call +func ParsePostDBRPResponse(rsp *http.Response) (*postDBRPResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postLabelsResponse{ + response := &postDBRPResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest LabelResponse + var dest DBRP if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24438,26 +23058,26 @@ func ParsePostLabelsResponse(rsp *http.Response) (*postLabelsResponse, error) { return response, nil } -// ParseDeleteLabelsIDResponse parses an HTTP response from a DeleteLabelsIDWithResponse call -func ParseDeleteLabelsIDResponse(rsp *http.Response) (*deleteLabelsIDResponse, error) { +// ParseDeleteDBRPIDResponse parses an HTTP response from a DeleteDBRPIDWithResponse call +func ParseDeleteDBRPIDResponse(rsp *http.Response) (*deleteDBRPIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteLabelsIDResponse{ + response := &deleteDBRPIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24471,27 +23091,34 @@ func ParseDeleteLabelsIDResponse(rsp *http.Response) (*deleteLabelsIDResponse, e return response, nil } -// ParseGetLabelsIDResponse parses an HTTP response from a GetLabelsIDWithResponse call -func ParseGetLabelsIDResponse(rsp *http.Response) (*getLabelsIDResponse, error) { +// ParseGetDBRPsIDResponse parses an HTTP response from a GetDBRPsIDWithResponse call +func ParseGetDBRPsIDResponse(rsp *http.Response) (*getDBRPsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getLabelsIDResponse{ + response := &getDBRPsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LabelResponse + var dest DBRP if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24504,27 +23131,34 @@ func ParseGetLabelsIDResponse(rsp *http.Response) (*getLabelsIDResponse, error) return response, nil } -// ParsePatchLabelsIDResponse parses an HTTP response from a PatchLabelsIDWithResponse call -func ParsePatchLabelsIDResponse(rsp *http.Response) (*patchLabelsIDResponse, error) { +// ParsePatchDBRPIDResponse parses an HTTP response from a PatchDBRPIDWithResponse call +func ParsePatchDBRPIDResponse(rsp *http.Response) (*patchDBRPIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchLabelsIDResponse{ + response := &patchDBRPIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LabelResponse + var dest DBRP if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24544,26 +23178,40 @@ func ParsePatchLabelsIDResponse(rsp *http.Response) (*patchLabelsIDResponse, err return response, nil } -// ParseGetMeResponse parses an HTTP response from a GetMeWithResponse call -func ParseGetMeResponse(rsp *http.Response) (*getMeResponse, error) { +// ParsePostDeleteResponse parses an HTTP response from a PostDeleteWithResponse call +func ParsePostDeleteResponse(rsp *http.Response) (*postDeleteResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getMeResponse{ + response := &postDeleteResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + 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 @@ -24577,20 +23225,27 @@ func ParseGetMeResponse(rsp *http.Response) (*getMeResponse, error) { return response, nil } -// ParsePutMePasswordResponse parses an HTTP response from a PutMePasswordWithResponse call -func ParsePutMePasswordResponse(rsp *http.Response) (*putMePasswordResponse, error) { +// ParseGetDocumentsTemplatesResponse parses an HTTP response from a GetDocumentsTemplatesWithResponse call +func ParseGetDocumentsTemplatesResponse(rsp *http.Response) (*getDocumentsTemplatesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &putMePasswordResponse{ + response := &getDocumentsTemplatesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Documents + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24603,26 +23258,26 @@ func ParsePutMePasswordResponse(rsp *http.Response) (*putMePasswordResponse, err return response, nil } -// ParseGetNotificationEndpointsResponse parses an HTTP response from a GetNotificationEndpointsWithResponse call -func ParseGetNotificationEndpointsResponse(rsp *http.Response) (*getNotificationEndpointsResponse, error) { +// ParsePostDocumentsTemplatesResponse parses an HTTP response from a PostDocumentsTemplatesWithResponse call +func ParsePostDocumentsTemplatesResponse(rsp *http.Response) (*postDocumentsTemplatesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getNotificationEndpointsResponse{ + response := &postDocumentsTemplatesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationEndpoints + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Document if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24636,27 +23291,20 @@ func ParseGetNotificationEndpointsResponse(rsp *http.Response) (*getNotification return response, nil } -// ParseCreateNotificationEndpointResponse parses an HTTP response from a CreateNotificationEndpointWithResponse call -func ParseCreateNotificationEndpointResponse(rsp *http.Response) (*createNotificationEndpointResponse, error) { +// ParseDeleteDocumentsTemplatesIDResponse parses an HTTP response from a DeleteDocumentsTemplatesIDWithResponse call +func ParseDeleteDocumentsTemplatesIDResponse(rsp *http.Response) (*deleteDocumentsTemplatesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &createNotificationEndpointResponse{ + response := &deleteDocumentsTemplatesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest NotificationEndpoint - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24669,26 +23317,26 @@ func ParseCreateNotificationEndpointResponse(rsp *http.Response) (*createNotific return response, nil } -// ParseDeleteNotificationEndpointsIDResponse parses an HTTP response from a DeleteNotificationEndpointsIDWithResponse call -func ParseDeleteNotificationEndpointsIDResponse(rsp *http.Response) (*deleteNotificationEndpointsIDResponse, error) { +// ParseGetDocumentsTemplatesIDResponse parses an HTTP response from a GetDocumentsTemplatesIDWithResponse call +func ParseGetDocumentsTemplatesIDResponse(rsp *http.Response) (*getDocumentsTemplatesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteNotificationEndpointsIDResponse{ + response := &getDocumentsTemplatesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Document if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24702,22 +23350,22 @@ func ParseDeleteNotificationEndpointsIDResponse(rsp *http.Response) (*deleteNoti return response, nil } -// ParseGetNotificationEndpointsIDResponse parses an HTTP response from a GetNotificationEndpointsIDWithResponse call -func ParseGetNotificationEndpointsIDResponse(rsp *http.Response) (*getNotificationEndpointsIDResponse, error) { +// ParsePutDocumentsTemplatesIDResponse parses an HTTP response from a PutDocumentsTemplatesIDWithResponse call +func ParsePutDocumentsTemplatesIDResponse(rsp *http.Response) (*putDocumentsTemplatesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getNotificationEndpointsIDResponse{ + response := &putDocumentsTemplatesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationEndpoint + var dest Document if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24735,34 +23383,27 @@ func ParseGetNotificationEndpointsIDResponse(rsp *http.Response) (*getNotificati return response, nil } -// ParsePatchNotificationEndpointsIDResponse parses an HTTP response from a PatchNotificationEndpointsIDWithResponse call -func ParsePatchNotificationEndpointsIDResponse(rsp *http.Response) (*patchNotificationEndpointsIDResponse, error) { +// ParseGetDocumentsTemplatesIDLabelsResponse parses an HTTP response from a GetDocumentsTemplatesIDLabelsWithResponse call +func ParseGetDocumentsTemplatesIDLabelsResponse(rsp *http.Response) (*getDocumentsTemplatesIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchNotificationEndpointsIDResponse{ + response := &getDocumentsTemplatesIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationEndpoint + var dest LabelsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - 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 { @@ -24775,33 +23416,26 @@ func ParsePatchNotificationEndpointsIDResponse(rsp *http.Response) (*patchNotifi return response, nil } -// ParsePutNotificationEndpointsIDResponse parses an HTTP response from a PutNotificationEndpointsIDWithResponse call -func ParsePutNotificationEndpointsIDResponse(rsp *http.Response) (*putNotificationEndpointsIDResponse, error) { +// ParsePostDocumentsTemplatesIDLabelsResponse parses an HTTP response from a PostDocumentsTemplatesIDLabelsWithResponse call +func ParsePostDocumentsTemplatesIDLabelsResponse(rsp *http.Response) (*postDocumentsTemplatesIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &putNotificationEndpointsIDResponse{ + response := &postDocumentsTemplatesIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationEndpoint - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest LabelResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24815,26 +23449,26 @@ func ParsePutNotificationEndpointsIDResponse(rsp *http.Response) (*putNotificati return response, nil } -// ParseGetNotificationEndpointsIDLabelsResponse parses an HTTP response from a GetNotificationEndpointsIDLabelsWithResponse call -func ParseGetNotificationEndpointsIDLabelsResponse(rsp *http.Response) (*getNotificationEndpointsIDLabelsResponse, error) { +// ParseDeleteDocumentsTemplatesIDLabelsIDResponse parses an HTTP response from a DeleteDocumentsTemplatesIDLabelsIDWithResponse call +func ParseDeleteDocumentsTemplatesIDLabelsIDResponse(rsp *http.Response) (*deleteDocumentsTemplatesIDLabelsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getNotificationEndpointsIDLabelsResponse{ + response := &deleteDocumentsTemplatesIDLabelsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LabelsResponse + 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.JSON200 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24848,26 +23482,26 @@ func ParseGetNotificationEndpointsIDLabelsResponse(rsp *http.Response) (*getNoti return response, nil } -// ParsePostNotificationEndpointIDLabelsResponse parses an HTTP response from a PostNotificationEndpointIDLabelsWithResponse call -func ParsePostNotificationEndpointIDLabelsResponse(rsp *http.Response) (*postNotificationEndpointIDLabelsResponse, error) { +// ParseGetFlagsResponse parses an HTTP response from a GetFlagsWithResponse call +func ParseGetFlagsResponse(rsp *http.Response) (*getFlagsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postNotificationEndpointIDLabelsResponse{ + response := &getFlagsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest LabelResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Flags if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24881,26 +23515,33 @@ func ParsePostNotificationEndpointIDLabelsResponse(rsp *http.Response) (*postNot return response, nil } -// ParseDeleteNotificationEndpointsIDLabelsIDResponse parses an HTTP response from a DeleteNotificationEndpointsIDLabelsIDWithResponse call -func ParseDeleteNotificationEndpointsIDLabelsIDResponse(rsp *http.Response) (*deleteNotificationEndpointsIDLabelsIDResponse, error) { +// ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call +func ParseGetHealthResponse(rsp *http.Response) (*getHealthResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteNotificationEndpointsIDLabelsIDResponse{ + response := &getHealthResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest HealthCheck if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest HealthCheck + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -24914,22 +23555,22 @@ func ParseDeleteNotificationEndpointsIDLabelsIDResponse(rsp *http.Response) (*de return response, nil } -// ParseGetNotificationRulesResponse parses an HTTP response from a GetNotificationRulesWithResponse call -func ParseGetNotificationRulesResponse(rsp *http.Response) (*getNotificationRulesResponse, error) { +// ParseGetLabelsResponse parses an HTTP response from a GetLabelsWithResponse call +func ParseGetLabelsResponse(rsp *http.Response) (*getLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getNotificationRulesResponse{ + response := &getLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationRules + var dest LabelsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24947,22 +23588,22 @@ func ParseGetNotificationRulesResponse(rsp *http.Response) (*getNotificationRule return response, nil } -// ParseCreateNotificationRuleResponse parses an HTTP response from a CreateNotificationRuleWithResponse call -func ParseCreateNotificationRuleResponse(rsp *http.Response) (*createNotificationRuleResponse, error) { +// ParsePostLabelsResponse parses an HTTP response from a PostLabelsWithResponse call +func ParsePostLabelsResponse(rsp *http.Response) (*postLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &createNotificationRuleResponse{ + response := &postLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest NotificationRule + var dest LabelResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24980,15 +23621,15 @@ func ParseCreateNotificationRuleResponse(rsp *http.Response) (*createNotificatio return response, nil } -// ParseDeleteNotificationRulesIDResponse parses an HTTP response from a DeleteNotificationRulesIDWithResponse call -func ParseDeleteNotificationRulesIDResponse(rsp *http.Response) (*deleteNotificationRulesIDResponse, error) { +// ParseDeleteLabelsIDResponse parses an HTTP response from a DeleteLabelsIDWithResponse call +func ParseDeleteLabelsIDResponse(rsp *http.Response) (*deleteLabelsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteNotificationRulesIDResponse{ + response := &deleteLabelsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -25013,22 +23654,22 @@ func ParseDeleteNotificationRulesIDResponse(rsp *http.Response) (*deleteNotifica return response, nil } -// ParseGetNotificationRulesIDResponse parses an HTTP response from a GetNotificationRulesIDWithResponse call -func ParseGetNotificationRulesIDResponse(rsp *http.Response) (*getNotificationRulesIDResponse, error) { +// ParseGetLabelsIDResponse parses an HTTP response from a GetLabelsIDWithResponse call +func ParseGetLabelsIDResponse(rsp *http.Response) (*getLabelsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getNotificationRulesIDResponse{ + response := &getLabelsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationRule + var dest LabelResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25046,22 +23687,22 @@ func ParseGetNotificationRulesIDResponse(rsp *http.Response) (*getNotificationRu return response, nil } -// ParsePatchNotificationRulesIDResponse parses an HTTP response from a PatchNotificationRulesIDWithResponse call -func ParsePatchNotificationRulesIDResponse(rsp *http.Response) (*patchNotificationRulesIDResponse, error) { +// ParsePatchLabelsIDResponse parses an HTTP response from a PatchLabelsIDWithResponse call +func ParsePatchLabelsIDResponse(rsp *http.Response) (*patchLabelsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchNotificationRulesIDResponse{ + response := &patchLabelsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationRule + var dest LabelResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25086,34 +23727,27 @@ func ParsePatchNotificationRulesIDResponse(rsp *http.Response) (*patchNotificati return response, nil } -// ParsePutNotificationRulesIDResponse parses an HTTP response from a PutNotificationRulesIDWithResponse call -func ParsePutNotificationRulesIDResponse(rsp *http.Response) (*putNotificationRulesIDResponse, error) { +// ParseGetMeResponse parses an HTTP response from a GetMeWithResponse call +func ParseGetMeResponse(rsp *http.Response) (*getMeResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &putNotificationRulesIDResponse{ + response := &getMeResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationRule + var dest User if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - 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 { @@ -25126,27 +23760,20 @@ func ParsePutNotificationRulesIDResponse(rsp *http.Response) (*putNotificationRu return response, nil } -// ParseGetNotificationRulesIDLabelsResponse parses an HTTP response from a GetNotificationRulesIDLabelsWithResponse call -func ParseGetNotificationRulesIDLabelsResponse(rsp *http.Response) (*getNotificationRulesIDLabelsResponse, error) { +// ParsePutMePasswordResponse parses an HTTP response from a PutMePasswordWithResponse call +func ParsePutMePasswordResponse(rsp *http.Response) (*putMePasswordResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getNotificationRulesIDLabelsResponse{ + response := &putMePasswordResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LabelsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25159,26 +23786,26 @@ func ParseGetNotificationRulesIDLabelsResponse(rsp *http.Response) (*getNotifica return response, nil } -// ParsePostNotificationRuleIDLabelsResponse parses an HTTP response from a PostNotificationRuleIDLabelsWithResponse call -func ParsePostNotificationRuleIDLabelsResponse(rsp *http.Response) (*postNotificationRuleIDLabelsResponse, error) { +// ParseGetNotificationEndpointsResponse parses an HTTP response from a GetNotificationEndpointsWithResponse call +func ParseGetNotificationEndpointsResponse(rsp *http.Response) (*getNotificationEndpointsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postNotificationRuleIDLabelsResponse{ + response := &getNotificationEndpointsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest LabelResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NotificationEndpoints if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25192,26 +23819,26 @@ func ParsePostNotificationRuleIDLabelsResponse(rsp *http.Response) (*postNotific return response, nil } -// ParseDeleteNotificationRulesIDLabelsIDResponse parses an HTTP response from a DeleteNotificationRulesIDLabelsIDWithResponse call -func ParseDeleteNotificationRulesIDLabelsIDResponse(rsp *http.Response) (*deleteNotificationRulesIDLabelsIDResponse, error) { +// ParseCreateNotificationEndpointResponse parses an HTTP response from a CreateNotificationEndpointWithResponse call +func ParseCreateNotificationEndpointResponse(rsp *http.Response) (*createNotificationEndpointResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteNotificationRulesIDLabelsIDResponse{ + response := &createNotificationEndpointResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest NotificationEndpoint if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25225,34 +23852,20 @@ func ParseDeleteNotificationRulesIDLabelsIDResponse(rsp *http.Response) (*delete return response, nil } -// ParseGetNotificationRulesIDQueryResponse parses an HTTP response from a GetNotificationRulesIDQueryWithResponse call -func ParseGetNotificationRulesIDQueryResponse(rsp *http.Response) (*getNotificationRulesIDQueryResponse, error) { +// ParseDeleteNotificationEndpointsIDResponse parses an HTTP response from a DeleteNotificationEndpointsIDWithResponse call +func ParseDeleteNotificationEndpointsIDResponse(rsp *http.Response) (*deleteNotificationEndpointsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getNotificationRulesIDQueryResponse{ + response := &deleteNotificationEndpointsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FluxResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25272,22 +23885,22 @@ func ParseGetNotificationRulesIDQueryResponse(rsp *http.Response) (*getNotificat return response, nil } -// ParseGetOrgsResponse parses an HTTP response from a GetOrgsWithResponse call -func ParseGetOrgsResponse(rsp *http.Response) (*getOrgsResponse, error) { +// ParseGetNotificationEndpointsIDResponse parses an HTTP response from a GetNotificationEndpointsIDWithResponse call +func ParseGetNotificationEndpointsIDResponse(rsp *http.Response) (*getNotificationEndpointsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getOrgsResponse{ + response := &getNotificationEndpointsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organizations + var dest NotificationEndpoint if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25305,26 +23918,33 @@ func ParseGetOrgsResponse(rsp *http.Response) (*getOrgsResponse, error) { return response, nil } -// ParsePostOrgsResponse parses an HTTP response from a PostOrgsWithResponse call -func ParsePostOrgsResponse(rsp *http.Response) (*postOrgsResponse, error) { +// ParsePatchNotificationEndpointsIDResponse parses an HTTP response from a PatchNotificationEndpointsIDWithResponse call +func ParsePatchNotificationEndpointsIDResponse(rsp *http.Response) (*patchNotificationEndpointsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postOrgsResponse{ + response := &patchNotificationEndpointsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Organization + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NotificationEndpoint if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest + + 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 @@ -25338,20 +23958,27 @@ func ParsePostOrgsResponse(rsp *http.Response) (*postOrgsResponse, error) { return response, nil } -// ParseDeleteOrgsIDResponse parses an HTTP response from a DeleteOrgsIDWithResponse call -func ParseDeleteOrgsIDResponse(rsp *http.Response) (*deleteOrgsIDResponse, error) { +// ParsePutNotificationEndpointsIDResponse parses an HTTP response from a PutNotificationEndpointsIDWithResponse call +func ParsePutNotificationEndpointsIDResponse(rsp *http.Response) (*putNotificationEndpointsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteOrgsIDResponse{ + response := &putNotificationEndpointsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NotificationEndpoint + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25371,22 +23998,22 @@ func ParseDeleteOrgsIDResponse(rsp *http.Response) (*deleteOrgsIDResponse, error return response, nil } -// ParseGetOrgsIDResponse parses an HTTP response from a GetOrgsIDWithResponse call -func ParseGetOrgsIDResponse(rsp *http.Response) (*getOrgsIDResponse, error) { +// ParseGetNotificationEndpointsIDLabelsResponse parses an HTTP response from a GetNotificationEndpointsIDLabelsWithResponse call +func ParseGetNotificationEndpointsIDLabelsResponse(rsp *http.Response) (*getNotificationEndpointsIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getOrgsIDResponse{ + response := &getNotificationEndpointsIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization + var dest LabelsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25404,26 +24031,26 @@ func ParseGetOrgsIDResponse(rsp *http.Response) (*getOrgsIDResponse, error) { return response, nil } -// ParsePatchOrgsIDResponse parses an HTTP response from a PatchOrgsIDWithResponse call -func ParsePatchOrgsIDResponse(rsp *http.Response) (*patchOrgsIDResponse, error) { +// ParsePostNotificationEndpointIDLabelsResponse parses an HTTP response from a PostNotificationEndpointIDLabelsWithResponse call +func ParsePostNotificationEndpointIDLabelsResponse(rsp *http.Response) (*postNotificationEndpointIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchOrgsIDResponse{ + response := &postNotificationEndpointIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest LabelResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25437,26 +24064,26 @@ func ParsePatchOrgsIDResponse(rsp *http.Response) (*patchOrgsIDResponse, error) return response, nil } -// ParsePostOrgsIDInvitesResponse parses an HTTP response from a PostOrgsIDInvitesWithResponse call -func ParsePostOrgsIDInvitesResponse(rsp *http.Response) (*postOrgsIDInvitesResponse, error) { +// ParseDeleteNotificationEndpointsIDLabelsIDResponse parses an HTTP response from a DeleteNotificationEndpointsIDLabelsIDWithResponse call +func ParseDeleteNotificationEndpointsIDLabelsIDResponse(rsp *http.Response) (*deleteNotificationEndpointsIDLabelsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postOrgsIDInvitesResponse{ + response := &deleteNotificationEndpointsIDLabelsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Invite + 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.JSON201 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25470,20 +24097,27 @@ func ParsePostOrgsIDInvitesResponse(rsp *http.Response) (*postOrgsIDInvitesRespo return response, nil } -// ParseDeleteOrgsIDInviteIDResponse parses an HTTP response from a DeleteOrgsIDInviteIDWithResponse call -func ParseDeleteOrgsIDInviteIDResponse(rsp *http.Response) (*deleteOrgsIDInviteIDResponse, error) { +// ParseGetNotificationRulesResponse parses an HTTP response from a GetNotificationRulesWithResponse call +func ParseGetNotificationRulesResponse(rsp *http.Response) (*getNotificationRulesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteOrgsIDInviteIDResponse{ + response := &getNotificationRulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NotificationRules + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25496,26 +24130,26 @@ func ParseDeleteOrgsIDInviteIDResponse(rsp *http.Response) (*deleteOrgsIDInviteI return response, nil } -// ParsePostOrgsIDInviteIDResponse parses an HTTP response from a PostOrgsIDInviteIDWithResponse call -func ParsePostOrgsIDInviteIDResponse(rsp *http.Response) (*postOrgsIDInviteIDResponse, error) { +// ParseCreateNotificationRuleResponse parses an HTTP response from a CreateNotificationRuleWithResponse call +func ParseCreateNotificationRuleResponse(rsp *http.Response) (*createNotificationRuleResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postOrgsIDInviteIDResponse{ + response := &createNotificationRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Invite + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest NotificationRule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25529,26 +24163,26 @@ func ParsePostOrgsIDInviteIDResponse(rsp *http.Response) (*postOrgsIDInviteIDRes return response, nil } -// ParseGetOrgsIDLabelsResponse parses an HTTP response from a GetOrgsIDLabelsWithResponse call -func ParseGetOrgsIDLabelsResponse(rsp *http.Response) (*getOrgsIDLabelsResponse, error) { +// ParseDeleteNotificationRulesIDResponse parses an HTTP response from a DeleteNotificationRulesIDWithResponse call +func ParseDeleteNotificationRulesIDResponse(rsp *http.Response) (*deleteNotificationRulesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getOrgsIDLabelsResponse{ + response := &deleteNotificationRulesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LabelsResponse + 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.JSON200 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25562,26 +24196,26 @@ func ParseGetOrgsIDLabelsResponse(rsp *http.Response) (*getOrgsIDLabelsResponse, return response, nil } -// ParsePostOrgsIDLabelsResponse parses an HTTP response from a PostOrgsIDLabelsWithResponse call -func ParsePostOrgsIDLabelsResponse(rsp *http.Response) (*postOrgsIDLabelsResponse, error) { +// ParseGetNotificationRulesIDResponse parses an HTTP response from a GetNotificationRulesIDWithResponse call +func ParseGetNotificationRulesIDResponse(rsp *http.Response) (*getNotificationRulesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postOrgsIDLabelsResponse{ + response := &getNotificationRulesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest LabelResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NotificationRule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25595,20 +24229,27 @@ func ParsePostOrgsIDLabelsResponse(rsp *http.Response) (*postOrgsIDLabelsRespons return response, nil } -// ParseDeleteOrgsIDLabelsIDResponse parses an HTTP response from a DeleteOrgsIDLabelsIDWithResponse call -func ParseDeleteOrgsIDLabelsIDResponse(rsp *http.Response) (*deleteOrgsIDLabelsIDResponse, error) { +// ParsePatchNotificationRulesIDResponse parses an HTTP response from a PatchNotificationRulesIDWithResponse call +func ParsePatchNotificationRulesIDResponse(rsp *http.Response) (*patchNotificationRulesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteOrgsIDLabelsIDResponse{ + response := &patchNotificationRulesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NotificationRule + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25628,22 +24269,22 @@ func ParseDeleteOrgsIDLabelsIDResponse(rsp *http.Response) (*deleteOrgsIDLabelsI return response, nil } -// ParseGetOrgsIDMembersResponse parses an HTTP response from a GetOrgsIDMembersWithResponse call -func ParseGetOrgsIDMembersResponse(rsp *http.Response) (*getOrgsIDMembersResponse, error) { +// ParsePutNotificationRulesIDResponse parses an HTTP response from a PutNotificationRulesIDWithResponse call +func ParsePutNotificationRulesIDResponse(rsp *http.Response) (*putNotificationRulesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getOrgsIDMembersResponse{ + response := &putNotificationRulesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResourceMembers + var dest NotificationRule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25668,26 +24309,26 @@ func ParseGetOrgsIDMembersResponse(rsp *http.Response) (*getOrgsIDMembersRespons return response, nil } -// ParsePostOrgsIDMembersResponse parses an HTTP response from a PostOrgsIDMembersWithResponse call -func ParsePostOrgsIDMembersResponse(rsp *http.Response) (*postOrgsIDMembersResponse, error) { +// ParseGetNotificationRulesIDLabelsResponse parses an HTTP response from a GetNotificationRulesIDLabelsWithResponse call +func ParseGetNotificationRulesIDLabelsResponse(rsp *http.Response) (*getNotificationRulesIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postOrgsIDMembersResponse{ + response := &getNotificationRulesIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ResourceMember + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest LabelsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25701,20 +24342,27 @@ func ParsePostOrgsIDMembersResponse(rsp *http.Response) (*postOrgsIDMembersRespo return response, nil } -// ParseDeleteOrgsIDMembersIDResponse parses an HTTP response from a DeleteOrgsIDMembersIDWithResponse call -func ParseDeleteOrgsIDMembersIDResponse(rsp *http.Response) (*deleteOrgsIDMembersIDResponse, error) { +// ParsePostNotificationRuleIDLabelsResponse parses an HTTP response from a PostNotificationRuleIDLabelsWithResponse call +func ParsePostNotificationRuleIDLabelsResponse(rsp *http.Response) (*postNotificationRuleIDLabelsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteOrgsIDMembersIDResponse{ + response := &postNotificationRuleIDLabelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest LabelResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25727,27 +24375,20 @@ func ParseDeleteOrgsIDMembersIDResponse(rsp *http.Response) (*deleteOrgsIDMember return response, nil } -// ParseGetOrgsIDOwnersResponse parses an HTTP response from a GetOrgsIDOwnersWithResponse call -func ParseGetOrgsIDOwnersResponse(rsp *http.Response) (*getOrgsIDOwnersResponse, error) { +// ParseDeleteNotificationRulesIDLabelsIDResponse parses an HTTP response from a DeleteNotificationRulesIDLabelsIDWithResponse call +func ParseDeleteNotificationRulesIDLabelsIDResponse(rsp *http.Response) (*deleteNotificationRulesIDLabelsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getOrgsIDOwnersResponse{ + response := &deleteNotificationRulesIDLabelsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResourceOwners - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25767,26 +24408,40 @@ func ParseGetOrgsIDOwnersResponse(rsp *http.Response) (*getOrgsIDOwnersResponse, return response, nil } -// ParsePostOrgsIDOwnersResponse parses an HTTP response from a PostOrgsIDOwnersWithResponse call -func ParsePostOrgsIDOwnersResponse(rsp *http.Response) (*postOrgsIDOwnersResponse, error) { +// ParseGetNotificationRulesIDQueryResponse parses an HTTP response from a GetNotificationRulesIDQueryWithResponse call +func ParseGetNotificationRulesIDQueryResponse(rsp *http.Response) (*getNotificationRulesIDQueryResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postOrgsIDOwnersResponse{ + response := &getNotificationRulesIDQueryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ResourceOwner + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest FluxResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + 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 @@ -25800,20 +24455,27 @@ func ParsePostOrgsIDOwnersResponse(rsp *http.Response) (*postOrgsIDOwnersRespons return response, nil } -// ParseDeleteOrgsIDOwnersIDResponse parses an HTTP response from a DeleteOrgsIDOwnersIDWithResponse call -func ParseDeleteOrgsIDOwnersIDResponse(rsp *http.Response) (*deleteOrgsIDOwnersIDResponse, error) { +// ParseGetOrgsResponse parses an HTTP response from a GetOrgsWithResponse call +func ParseGetOrgsResponse(rsp *http.Response) (*getOrgsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteOrgsIDOwnersIDResponse{ + response := &getOrgsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Organizations + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25826,26 +24488,26 @@ func ParseDeleteOrgsIDOwnersIDResponse(rsp *http.Response) (*deleteOrgsIDOwnersI return response, nil } -// ParseGetOrgsIDSecretsResponse parses an HTTP response from a GetOrgsIDSecretsWithResponse call -func ParseGetOrgsIDSecretsResponse(rsp *http.Response) (*getOrgsIDSecretsResponse, error) { +// ParsePostOrgsResponse parses an HTTP response from a PostOrgsWithResponse call +func ParsePostOrgsResponse(rsp *http.Response) (*postOrgsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getOrgsIDSecretsResponse{ + response := &postOrgsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SecretKeysResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Organization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25859,20 +24521,27 @@ func ParseGetOrgsIDSecretsResponse(rsp *http.Response) (*getOrgsIDSecretsRespons return response, nil } -// ParsePatchOrgsIDSecretsResponse parses an HTTP response from a PatchOrgsIDSecretsWithResponse call -func ParsePatchOrgsIDSecretsResponse(rsp *http.Response) (*patchOrgsIDSecretsResponse, error) { +// ParseDeleteOrgsIDResponse parses an HTTP response from a DeleteOrgsIDWithResponse call +func ParseDeleteOrgsIDResponse(rsp *http.Response) (*deleteOrgsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchOrgsIDSecretsResponse{ + response := &deleteOrgsIDResponse{ 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 { @@ -25885,20 +24554,27 @@ func ParsePatchOrgsIDSecretsResponse(rsp *http.Response) (*patchOrgsIDSecretsRes return response, nil } -// ParsePostOrgsIDSecretsResponse parses an HTTP response from a PostOrgsIDSecretsWithResponse call -func ParsePostOrgsIDSecretsResponse(rsp *http.Response) (*postOrgsIDSecretsResponse, error) { +// ParseGetOrgsIDResponse parses an HTTP response from a GetOrgsIDWithResponse call +func ParseGetOrgsIDResponse(rsp *http.Response) (*getOrgsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postOrgsIDSecretsResponse{ + response := &getOrgsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Organization + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25911,22 +24587,22 @@ func ParsePostOrgsIDSecretsResponse(rsp *http.Response) (*postOrgsIDSecretsRespo return response, nil } -// ParseGetCloudUsersResponse parses an HTTP response from a GetCloudUsersWithResponse call -func ParseGetCloudUsersResponse(rsp *http.Response) (*getCloudUsersResponse, error) { +// ParsePatchOrgsIDResponse parses an HTTP response from a PatchOrgsIDWithResponse call +func ParsePatchOrgsIDResponse(rsp *http.Response) (*patchOrgsIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getCloudUsersResponse{ + response := &patchOrgsIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CloudUsers + var dest Organization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25944,20 +24620,34 @@ func ParseGetCloudUsersResponse(rsp *http.Response) (*getCloudUsersResponse, err return response, nil } -// ParseDeleteOrgsIDCloudUserIDResponse parses an HTTP response from a DeleteOrgsIDCloudUserIDWithResponse call -func ParseDeleteOrgsIDCloudUserIDResponse(rsp *http.Response) (*deleteOrgsIDCloudUserIDResponse, error) { +// ParseGetOrgsIDMembersResponse parses an HTTP response from a GetOrgsIDMembersWithResponse call +func ParseGetOrgsIDMembersResponse(rsp *http.Response) (*getOrgsIDMembersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteOrgsIDCloudUserIDResponse{ + response := &getOrgsIDMembersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ResourceMembers + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + 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 { @@ -25970,26 +24660,26 @@ func ParseDeleteOrgsIDCloudUserIDResponse(rsp *http.Response) (*deleteOrgsIDClou return response, nil } -// ParseCreatePkgResponse parses an HTTP response from a CreatePkgWithResponse call -func ParseCreatePkgResponse(rsp *http.Response) (*createPkgResponse, error) { +// ParsePostOrgsIDMembersResponse parses an HTTP response from a PostOrgsIDMembersWithResponse call +func ParsePostOrgsIDMembersResponse(rsp *http.Response) (*postOrgsIDMembersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &createPkgResponse{ + response := &postOrgsIDMembersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Pkg + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ResourceMember if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.YAML200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -25998,46 +24688,25 @@ func ParseCreatePkgResponse(rsp *http.Response) (*createPkgResponse, error) { } response.JSONDefault = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: - var dest Pkg - if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.YAML200 = &dest - } return response, nil } -// ParseApplyPkgResponse parses an HTTP response from a ApplyPkgWithResponse call -func ParseApplyPkgResponse(rsp *http.Response) (*applyPkgResponse, error) { +// ParseDeleteOrgsIDMembersIDResponse parses an HTTP response from a DeleteOrgsIDMembersIDWithResponse call +func ParseDeleteOrgsIDMembersIDResponse(rsp *http.Response) (*deleteOrgsIDMembersIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &applyPkgResponse{ + response := &deleteOrgsIDMembersIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PkgSummary - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest PkgSummary - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26050,29 +24719,34 @@ func ParseApplyPkgResponse(rsp *http.Response) (*applyPkgResponse, error) { return response, nil } -// ParseListStacksResponse parses an HTTP response from a ListStacksWithResponse call -func ParseListStacksResponse(rsp *http.Response) (*listStacksResponse, error) { +// ParseGetOrgsIDOwnersResponse parses an HTTP response from a GetOrgsIDOwnersWithResponse call +func ParseGetOrgsIDOwnersResponse(rsp *http.Response) (*getOrgsIDOwnersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &listStacksResponse{ + response := &getOrgsIDOwnersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Stacks *[]Stack `json:"stacks,omitempty"` - } + var dest ResourceOwners if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + 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 { @@ -26085,22 +24759,22 @@ func ParseListStacksResponse(rsp *http.Response) (*listStacksResponse, error) { return response, nil } -// ParseCreateStackResponse parses an HTTP response from a CreateStackWithResponse call -func ParseCreateStackResponse(rsp *http.Response) (*createStackResponse, error) { +// ParsePostOrgsIDOwnersResponse parses an HTTP response from a PostOrgsIDOwnersWithResponse call +func ParsePostOrgsIDOwnersResponse(rsp *http.Response) (*postOrgsIDOwnersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &createStackResponse{ + response := &postOrgsIDOwnersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Stack + var dest ResourceOwner if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26118,15 +24792,15 @@ func ParseCreateStackResponse(rsp *http.Response) (*createStackResponse, error) return response, nil } -// ParseDeleteStackResponse parses an HTTP response from a DeleteStackWithResponse call -func ParseDeleteStackResponse(rsp *http.Response) (*deleteStackResponse, error) { +// ParseDeleteOrgsIDOwnersIDResponse parses an HTTP response from a DeleteOrgsIDOwnersIDWithResponse call +func ParseDeleteOrgsIDOwnersIDResponse(rsp *http.Response) (*deleteOrgsIDOwnersIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteStackResponse{ + response := &deleteOrgsIDOwnersIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -26144,22 +24818,22 @@ func ParseDeleteStackResponse(rsp *http.Response) (*deleteStackResponse, error) return response, nil } -// ParseReadStackResponse parses an HTTP response from a ReadStackWithResponse call -func ParseReadStackResponse(rsp *http.Response) (*readStackResponse, error) { +// ParseGetOrgsIDSecretsResponse parses an HTTP response from a GetOrgsIDSecretsWithResponse call +func ParseGetOrgsIDSecretsResponse(rsp *http.Response) (*getOrgsIDSecretsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &readStackResponse{ + response := &getOrgsIDSecretsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Stack + var dest SecretKeysResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26177,27 +24851,20 @@ func ParseReadStackResponse(rsp *http.Response) (*readStackResponse, error) { return response, nil } -// ParseUpdateStackResponse parses an HTTP response from a UpdateStackWithResponse call -func ParseUpdateStackResponse(rsp *http.Response) (*updateStackResponse, error) { +// ParsePatchOrgsIDSecretsResponse parses an HTTP response from a PatchOrgsIDSecretsWithResponse call +func ParsePatchOrgsIDSecretsResponse(rsp *http.Response) (*patchOrgsIDSecretsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &updateStackResponse{ + response := &patchOrgsIDSecretsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Stack - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26210,27 +24877,20 @@ func ParseUpdateStackResponse(rsp *http.Response) (*updateStackResponse, error) return response, nil } -// ParseExportStackResponse parses an HTTP response from a ExportStackWithResponse call -func ParseExportStackResponse(rsp *http.Response) (*exportStackResponse, error) { +// ParsePostOrgsIDSecretsResponse parses an HTTP response from a PostOrgsIDSecretsWithResponse call +func ParsePostOrgsIDSecretsResponse(rsp *http.Response) (*postOrgsIDSecretsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &exportStackResponse{ + response := &postOrgsIDSecretsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Pkg - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.YAML200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26238,13 +24898,6 @@ func ParseExportStackResponse(rsp *http.Response) (*exportStackResponse, error) } response.JSONDefault = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: - var dest Pkg - if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.YAML200 = &dest - } return response, nil @@ -26908,52 +25561,257 @@ func ParseDeleteScrapersIDOwnersIDResponse(rsp *http.Response) (*deleteScrapersI return response, nil } -// ParseGetSetupResponse parses an HTTP response from a GetSetupWithResponse call -func ParseGetSetupResponse(rsp *http.Response) (*getSetupResponse, error) { +// ParseGetSetupResponse parses an HTTP response from a GetSetupWithResponse call +func ParseGetSetupResponse(rsp *http.Response) (*getSetupResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &getSetupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest IsOnboarding + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostSetupResponse parses an HTTP response from a PostSetupWithResponse call +func ParsePostSetupResponse(rsp *http.Response) (*postSetupResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &postSetupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest OnboardingResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &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 + + } + + return response, nil +} + +// ParsePostSetupUserResponse parses an HTTP response from a PostSetupUserWithResponse call +func ParsePostSetupUserResponse(rsp *http.Response) (*postSetupUserResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &postSetupUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest OnboardingResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &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 + + } + + return response, nil +} + +// ParsePostSigninResponse parses an HTTP response from a PostSigninWithResponse call +func ParsePostSigninResponse(rsp *http.Response) (*postSigninResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &postSigninResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &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 + + } + + return response, nil +} + +// ParsePostSignoutResponse parses an HTTP response from a PostSignoutWithResponse call +func ParsePostSignoutResponse(rsp *http.Response) (*postSignoutResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &postSignoutResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &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 + + } + + return response, nil +} + +// ParseGetSourcesResponse parses an HTTP response from a GetSourcesWithResponse call +func ParseGetSourcesResponse(rsp *http.Response) (*getSourcesResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &getSourcesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Sources + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &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 + + } + + return response, nil +} + +// ParsePostSourcesResponse parses an HTTP response from a PostSourcesWithResponse call +func ParsePostSourcesResponse(rsp *http.Response) (*postSourcesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getSetupResponse{ + response := &postSourcesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IsOnboarding + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Source if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &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 } return response, nil } -// ParsePostSetupResponse parses an HTTP response from a PostSetupWithResponse call -func ParsePostSetupResponse(rsp *http.Response) (*postSetupResponse, error) { +// ParseDeleteSourcesIDResponse parses an HTTP response from a DeleteSourcesIDWithResponse call +func ParseDeleteSourcesIDResponse(rsp *http.Response) (*deleteSourcesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postSetupResponse{ + response := &deleteSourcesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest OnboardingResponse + 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.JSON201 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -26967,26 +25825,33 @@ func ParsePostSetupResponse(rsp *http.Response) (*postSetupResponse, error) { return response, nil } -// ParsePostSetupUserResponse parses an HTTP response from a PostSetupUserWithResponse call -func ParsePostSetupUserResponse(rsp *http.Response) (*postSetupUserResponse, error) { +// ParseGetSourcesIDResponse parses an HTTP response from a GetSourcesIDWithResponse call +func ParseGetSourcesIDResponse(rsp *http.Response) (*getSourcesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postSetupUserResponse{ + response := &getSourcesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest OnboardingResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Source if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest + + 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 @@ -27000,33 +25865,33 @@ func ParsePostSetupUserResponse(rsp *http.Response) (*postSetupUserResponse, err return response, nil } -// ParsePostSigninResponse parses an HTTP response from a PostSigninWithResponse call -func ParsePostSigninResponse(rsp *http.Response) (*postSigninResponse, error) { +// ParsePatchSourcesIDResponse parses an HTTP response from a PatchSourcesIDWithResponse call +func ParsePatchSourcesIDResponse(rsp *http.Response) (*patchSourcesIDResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postSigninResponse{ + response := &patchSourcesIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Source if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + 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.JSON403 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -27040,26 +25905,33 @@ func ParsePostSigninResponse(rsp *http.Response) (*postSigninResponse, error) { return response, nil } -// ParsePostSignoutResponse parses an HTTP response from a PostSignoutWithResponse call -func ParsePostSignoutResponse(rsp *http.Response) (*postSignoutResponse, error) { +// ParseGetSourcesIDBucketsResponse parses an HTTP response from a GetSourcesIDBucketsWithResponse call +func ParseGetSourcesIDBucketsResponse(rsp *http.Response) (*getSourcesIDBucketsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postSignoutResponse{ + response := &getSourcesIDBucketsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Buckets + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + 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.JSON401 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -27073,27 +25945,34 @@ func ParsePostSignoutResponse(rsp *http.Response) (*postSignoutResponse, error) return response, nil } -// ParseGetSourcesResponse parses an HTTP response from a GetSourcesWithResponse call -func ParseGetSourcesResponse(rsp *http.Response) (*getSourcesResponse, error) { +// ParseGetSourcesIDHealthResponse parses an HTTP response from a GetSourcesIDHealthWithResponse call +func ParseGetSourcesIDHealthResponse(rsp *http.Response) (*getSourcesIDHealthResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getSourcesResponse{ + response := &getSourcesIDHealthResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Sources + var dest HealthCheck if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest HealthCheck + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -27106,26 +25985,28 @@ func ParseGetSourcesResponse(rsp *http.Response) (*getSourcesResponse, error) { return response, nil } -// ParsePostSourcesResponse parses an HTTP response from a PostSourcesWithResponse call -func ParsePostSourcesResponse(rsp *http.Response) (*postSourcesResponse, error) { +// ParseListStacksResponse parses an HTTP response from a ListStacksWithResponse call +func ParseListStacksResponse(rsp *http.Response) (*listStacksResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &postSourcesResponse{ + response := &listStacksResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Source + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Stacks *[]Stack `json:"stacks,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -27139,26 +26020,26 @@ func ParsePostSourcesResponse(rsp *http.Response) (*postSourcesResponse, error) return response, nil } -// ParseDeleteSourcesIDResponse parses an HTTP response from a DeleteSourcesIDWithResponse call -func ParseDeleteSourcesIDResponse(rsp *http.Response) (*deleteSourcesIDResponse, error) { +// ParseCreateStackResponse parses an HTTP response from a CreateStackWithResponse call +func ParseCreateStackResponse(rsp *http.Response) (*createStackResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &deleteSourcesIDResponse{ + response := &createStackResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Stack if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error @@ -27172,34 +26053,20 @@ func ParseDeleteSourcesIDResponse(rsp *http.Response) (*deleteSourcesIDResponse, return response, nil } -// ParseGetSourcesIDResponse parses an HTTP response from a GetSourcesIDWithResponse call -func ParseGetSourcesIDResponse(rsp *http.Response) (*getSourcesIDResponse, error) { +// ParseDeleteStackResponse parses an HTTP response from a DeleteStackWithResponse call +func ParseDeleteStackResponse(rsp *http.Response) (*deleteStackResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getSourcesIDResponse{ + response := &deleteStackResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Source - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - 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 { @@ -27212,34 +26079,27 @@ func ParseGetSourcesIDResponse(rsp *http.Response) (*getSourcesIDResponse, error return response, nil } -// ParsePatchSourcesIDResponse parses an HTTP response from a PatchSourcesIDWithResponse call -func ParsePatchSourcesIDResponse(rsp *http.Response) (*patchSourcesIDResponse, error) { +// ParseReadStackResponse parses an HTTP response from a ReadStackWithResponse call +func ParseReadStackResponse(rsp *http.Response) (*readStackResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &patchSourcesIDResponse{ + response := &readStackResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Source + var dest Stack if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - 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 { @@ -27252,34 +26112,27 @@ func ParsePatchSourcesIDResponse(rsp *http.Response) (*patchSourcesIDResponse, e return response, nil } -// ParseGetSourcesIDBucketsResponse parses an HTTP response from a GetSourcesIDBucketsWithResponse call -func ParseGetSourcesIDBucketsResponse(rsp *http.Response) (*getSourcesIDBucketsResponse, error) { +// ParseUpdateStackResponse parses an HTTP response from a UpdateStackWithResponse call +func ParseUpdateStackResponse(rsp *http.Response) (*updateStackResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getSourcesIDBucketsResponse{ + response := &updateStackResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Buckets + var dest Stack if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - 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 { @@ -27292,34 +26145,27 @@ func ParseGetSourcesIDBucketsResponse(rsp *http.Response) (*getSourcesIDBucketsR return response, nil } -// ParseGetSourcesIDHealthResponse parses an HTTP response from a GetSourcesIDHealthWithResponse call -func ParseGetSourcesIDHealthResponse(rsp *http.Response) (*getSourcesIDHealthResponse, error) { +// ParseUninstallStackResponse parses an HTTP response from a UninstallStackWithResponse call +func ParseUninstallStackResponse(rsp *http.Response) (*uninstallStackResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &getSourcesIDHealthResponse{ + response := &uninstallStackResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest HealthCheck + var dest Stack if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest HealthCheck - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json"): var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -28474,6 +27320,86 @@ func ParseDeleteTelegrafsIDOwnersIDResponse(rsp *http.Response) (*deleteTelegraf return response, nil } +// ParseApplyTemplateResponse parses an HTTP response from a ApplyTemplateWithResponse call +func ParseApplyTemplateResponse(rsp *http.Response) (*applyTemplateResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &applyTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TemplateSummary + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TemplateSummary + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &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 + + } + + return response, nil +} + +// ParseExportTemplateResponse parses an HTTP response from a ExportTemplateWithResponse call +func ParseExportTemplateResponse(rsp *http.Response) (*exportTemplateResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &exportTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Template + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.YAML200 = &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 + + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: + var dest Template + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.YAML200 = &dest + + } + + return response, nil +} + // ParseGetUsersResponse parses an HTTP response from a GetUsersWithResponse call func ParseGetUsersResponse(rsp *http.Response) (*getUsersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) diff --git a/domain/swagger.yml b/domain/swagger.yml index 4ce84206..c6849190 100644 --- a/domain/swagger.yml +++ b/domain/swagger.yml @@ -2449,7 +2449,7 @@ paths: - "UpdatedAt" - in: query name: id - description: List of dashboard IDs to return. If both `id and `owner` are specified, only `id` is used. + description: List of dashboard IDs to return. If both `id` and `owner` are specified, only `id` is used. schema: type: array items: @@ -4083,101 +4083,6 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - "/orgs/{orgID}/labels": - get: - operationId: GetOrgsIDLabels - tags: - - Organizations - summary: List all labels for a organization - parameters: - - $ref: "#/components/parameters/TraceSpan" - - in: path - name: orgID - schema: - type: string - required: true - description: The organization ID. - responses: - "200": - description: A list of all labels for an organization - content: - application/json: - schema: - $ref: "#/components/schemas/LabelsResponse" - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - post: - operationId: PostOrgsIDLabels - tags: - - Organizations - summary: Add a label to an organization - parameters: - - $ref: "#/components/parameters/TraceSpan" - - in: path - name: orgID - schema: - type: string - required: true - description: The organization ID. - requestBody: - description: Label to add - required: true - content: - application/json: - schema: - $ref: "#/components/schemas/LabelMapping" - responses: - "201": - description: Returns the created label - content: - application/json: - schema: - $ref: "#/components/schemas/LabelResponse" - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - "/orgs/{orgID}/labels/{labelID}": - delete: - operationId: DeleteOrgsIDLabelsID - tags: - - Organizations - summary: Delete a label from an organization - parameters: - - $ref: "#/components/parameters/TraceSpan" - - in: path - name: orgID - schema: - type: string - required: true - description: The organization ID. - - in: path - name: labelID - schema: - type: string - required: true - description: The label ID. - responses: - "204": - description: Delete has been accepted - "404": - description: Organization not found - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" "/orgs/{orgID}/secrets": get: operationId: GetOrgsIDSecrets @@ -4433,161 +4338,6 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - "/orgs/{orgID}/invites": - post: - operationId: PostOrgsIDInvites - tags: - - Invites - - Organizations - summary: Creates an invite to an organization - parameters: - - $ref: "#/components/parameters/TraceSpan" - - in: path - name: orgID - schema: - type: string - required: true - description: The organization ID. - requestBody: - description: Invite to be sent - required: true - content: - application/json: - schema: - $ref: "#/components/schemas/Invite" - responses: - "201": - description: Invite sent - content: - application/json: - schema: - $ref: "#/components/schemas/Invite" - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - "/orgs/{orgID}/invites/{inviteID}": - delete: - operationId: DeleteOrgsIDInviteID - tags: - - Invites - - Organizations - summary: Remove an invite to an organization - parameters: - - $ref: "#/components/parameters/TraceSpan" - - in: path - name: inviteID - schema: - type: string - required: true - description: The ID of the invite to remove. - - in: path - name: orgID - schema: - type: string - required: true - description: The organization ID. - responses: - "204": - description: Invite removed - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - "/orgs/{orgID}/invites/{inviteID}/resend": - post: - operationId: PostOrgsIDInviteID - tags: - - Invites - - Organizations - summary: Resends an invite - parameters: - - $ref: "#/components/parameters/TraceSpan" - - in: path - name: inviteID - schema: - type: string - required: true - description: The ID of the invite to resend. - - in: path - name: orgID - schema: - type: string - required: true - description: The organization ID. - responses: - "200": - description: Invite resent - content: - application/json: - schema: - $ref: "#/components/schemas/Invite" - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - "/orgs/{orgID}/users": - get: - operationId: GetCloudUsers - tags: - - CloudUsers - parameters: - - $ref: "#/components/parameters/TraceSpan" - - in: path - name: orgID - description: Specifies the organization ID of the CloudUser. - required: true - schema: - type: string - responses: - "200": - description: A list of cloud users - content: - application/json: - schema: - $ref: "#/components/schemas/CloudUsers" - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - "/orgs/{orgID}/users/{userID}": - delete: - operationId: DeleteOrgsIDCloudUserID - tags: - - CloudUsers - - Organizations - summary: Deletes a cloud user - parameters: - - $ref: "#/components/parameters/TraceSpan" - - in: path - name: userID - schema: - type: string - required: true - description: The ID of the user to remove. - - in: path - name: orgID - schema: - type: string - required: true - description: The organization ID. - responses: - "204": - description: User removed - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" "/orgs/{orgID}/owners/{userID}": delete: operationId: DeleteOrgsIDOwnersID @@ -4618,85 +4368,12 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - /packages: - post: - operationId: CreatePkg - tags: - - InfluxPackages - summary: Create a new Influx package - requestBody: - description: Influx package to create. - required: false - content: - application/json: - schema: - $ref: "#/components/schemas/PkgCreate" - responses: - "200": - description: Influx package created - content: - application/json: - schema: - $ref: "#/components/schemas/Pkg" - application/x-yaml: - schema: - $ref: "#/components/schemas/Pkg" - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - /packages/apply: - post: - operationId: ApplyPkg - tags: - - InfluxPackages - summary: Apply or dry-run an Influx package - requestBody: - required: true - content: - application/json: - schema: - $ref: "#/components/schemas/PkgApply" - application/x-jsonnet: - schema: - $ref: "#/components/schemas/PkgApply" - text/yml: - schema: - $ref: "#/components/schemas/PkgApply" - responses: - "200": - description: > - Influx package dry-run successful, no new resources created. - The provided diff and summary will not have IDs for resources - that do not exist at the time of the dry run. - content: - application/json: - schema: - $ref: "#/components/schemas/PkgSummary" - "201": - description: > - Influx package applied successfully. Newly created resources created - available in summary. The diff compares the state of the world before - the package is applied with the changes the application will impose. - This corresponds to `"dryRun": true` - content: - application/json: - schema: - $ref: "#/components/schemas/PkgSummary" - default: - description: Unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - /packages/stacks: + /stacks: get: operationId: ListStacks tags: - - InfluxPackages - summary: Grab a list of installed Influx packages + - InfluxDB Templates + summary: Grab a list of installed InfluxDB Templates parameters: - in: query name: orgID @@ -4735,10 +4412,10 @@ paths: post: operationId: CreateStack tags: - - InfluxPackages + - InfluxDB Templates summary: Create a new stack requestBody: - description: Influx stack to create. + description: Stack to create. required: true content: application/json: @@ -4757,7 +4434,7 @@ paths: type: string responses: "201": - description: Influx stack created + description: InfluxDB Stack created content: application/json: schema: @@ -4768,11 +4445,11 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - /packages/stacks/{stack_id}: + /stacks/{stack_id}: get: operationId: ReadStack tags: - - InfluxPackages + - InfluxDB Templates summary: Grab a stack by its ID parameters: - in: path @@ -4797,8 +4474,8 @@ paths: patch: operationId: UpdateStack tags: - - InfluxPackages - summary: Update a an Influx Stack + - InfluxDB Templates + summary: Update an InfluxDB Stack parameters: - in: path name: stack_id @@ -4816,12 +4493,27 @@ paths: properties: name: type: string + nullable: true description: type: string - urls: + nullable: true + templateURLs: type: array items: type: string + nullable: true + additionalResources: + type: array + items: + type: object + properties: + resourceID: + type: string + kind: + type: string + templateMetaName: + type: string + required: ["kind","resourceID"] responses: "200": description: Influx stack updated @@ -4838,7 +4530,7 @@ paths: delete: operationId: DeleteStack tags: - - InfluxPackages + - InfluxDB Templates summary: Delete a stack and remove all its associated resources parameters: - in: path @@ -4862,35 +4554,99 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - /packages/stacks/{stack_id}/export: - delete: - operationId: ExportStack + /stacks/{stack_id}/uninstall: + post: + operationId: UninstallStack tags: - - InfluxPackages - summary: Export a stack's resources in the form of a package + - InfluxDB Templates + summary: Uninstall an InfluxDB Stack parameters: - in: path name: stack_id required: true schema: type: string - description: The stack id to be removed - - in: query - name: orgID - required: true - schema: - type: string - description: The organization id of the user + description: The stack id responses: "200": - description: Stack and all its associated resources are deleted + description: Influx stack uninstalled + content: + application/json: + schema: + $ref: "#/components/schemas/Stack" + default: + description: Unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /templates/apply: + post: + operationId: ApplyTemplate + tags: + - InfluxDB Templates + summary: Apply or dry-run an InfluxDB Template + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/TemplateApply" + application/x-jsonnet: + schema: + $ref: "#/components/schemas/TemplateApply" + text/yml: + schema: + $ref: "#/components/schemas/TemplateApply" + responses: + "200": + description: > + Influx package dry-run successful, no new resources created. + The provided diff and summary will not have IDs for resources + that do not exist at the time of the dry run. + content: + application/json: + schema: + $ref: "#/components/schemas/TemplateSummary" + "201": + description: > + Influx package applied successfully. Newly created resources created + available in summary. The diff compares the state of the world before + the package is applied with the changes the application will impose. + This corresponds to `"dryRun": true` content: application/json: schema: - $ref: "#/components/schemas/Pkg" + $ref: "#/components/schemas/TemplateSummary" + default: + description: Unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /templates/export: + post: + operationId: ExportTemplate + tags: + - InfluxDB Templates + summary: Export a new Influx Template + requestBody: + description: Export resources as an InfluxDB template. + required: false + content: + application/json: + schema: + $ref: "#/components/schemas/TemplateExport" + responses: + "200": + description: InfluxDB template created + content: + application/json: + schema: + $ref: "#/components/schemas/Template" application/x-yaml: schema: - $ref: "#/components/schemas/Pkg" + $ref: "#/components/schemas/Template" default: description: Unexpected error content: @@ -7453,7 +7209,7 @@ components: type: string retentionRules: $ref: "#/components/schemas/RetentionRules" - required: [name, retentionRules] + required: [orgID, name, retentionRules] Bucket: properties: links: @@ -7644,7 +7400,7 @@ components: type: array items: $ref: "#/components/schemas/Organization" - PkgApply: + TemplateApply: type: object properties: dryRun: @@ -7662,8 +7418,8 @@ components: type: array items: type: string - package: - $ref: "#/components/schemas/Pkg" + contents: + $ref: "#/components/schemas/Template" templates: type: array items: @@ -7675,8 +7431,16 @@ components: type: array items: type: string - package: - $ref: "#/components/schemas/Pkg" + contents: + $ref: "#/components/schemas/Template" + envRefs: + type: object + additionalProperties: + oneOf: + - type: string + - type: integer + - type: number + - type: boolean secrets: type: object additionalProperties: @@ -7736,9 +7500,11 @@ components: - Task - Telegraf - Variable - PkgCreate: + TemplateExport: type: object properties: + stackID: + type: string orgIDs: type: array items: @@ -7767,7 +7533,7 @@ components: name: type: string required: [id, kind] - Pkg: + Template: type: array items: type: object @@ -7783,7 +7549,7 @@ components: type: string spec: type: object - PkgEnvReferences: + TemplateEnvReferences: type: array items: type: object @@ -7795,13 +7561,23 @@ components: type: string description: Key identified as environment reference and is the key identified in the template value: - type: string description: Value provided to fulfill reference + nullable: true + oneOf: + - type: string + - type: integer + - type: number + - type: boolean defaultValue: - type: string description: Default value that will be provided for the reference when no value is provided - required: [resourceField, envRefKey, defaultValue] - PkgSummary: + nullable: true + oneOf: + - type: string + - type: integer + - type: number + - type: boolean + required: [resourceField, envRefKey] + TemplateSummary: type: object properties: sources: @@ -7822,7 +7598,9 @@ components: type: string orgID: type: string - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string name: type: string @@ -7833,9 +7611,9 @@ components: labelAssociations: type: array items: - $ref: "#/components/schemas/PkgSummaryLabel" + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: "#/components/schemas/PkgEnvReferences" + $ref: "#/components/schemas/TemplateEnvReferences" checks: type: array items: @@ -7843,18 +7621,16 @@ components: - $ref: "#/components/schemas/CheckDiscriminator" - type: object properties: - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string labelAssociations: type: array items: - $ref: "#/components/schemas/PkgSummaryLabel" + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: "#/components/schemas/PkgEnvReferences" - labels: - type: array - items: - $ref: "#/components/schemas/PkgSummaryLabel" + $ref: "#/components/schemas/TemplateEnvReferences" dashboards: type: array items: @@ -7864,7 +7640,9 @@ components: type: "string" orgID: type: "string" - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string name: type: "string" @@ -7873,13 +7651,17 @@ components: labelAssociations: type: array items: - $ref: "#/components/schemas/PkgSummaryLabel" + $ref: "#/components/schemas/TemplateSummaryLabel" charts: type: array items: - $ref: "#/components/schemas/PkgChart" + $ref: "#/components/schemas/TemplateChart" envReferences: - $ref: "#/components/schemas/PkgEnvReferences" + $ref: "#/components/schemas/TemplateEnvReferences" + labels: + type: array + items: + $ref: "#/components/schemas/TemplateSummaryLabel" labelMappings: type: array items: @@ -7887,7 +7669,7 @@ components: properties: status: type: string - resourcePkgName: + resourceTemplateMetaName: type: string resourceName: type: string @@ -7895,7 +7677,7 @@ components: type: string resourceType: type: string - labelPkgName: + labelTemplateMetaName: type: string labelName: type: string @@ -7916,26 +7698,30 @@ components: - $ref: "#/components/schemas/NotificationEndpointDiscrimator" - type: object properties: - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string labelAssociations: type: array items: - $ref: "#/components/schemas/PkgSummaryLabel" + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: "#/components/schemas/PkgEnvReferences" + $ref: "#/components/schemas/TemplateEnvReferences" notificationRules: type: array items: type: object properties: - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string name: type: string description: type: string - endpointPkgName: + endpointTemplateMetaName: type: string endpointID: type: string @@ -7972,15 +7758,17 @@ components: labelAssociations: type: array items: - $ref: "#/components/schemas/PkgSummaryLabel" + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: "#/components/schemas/PkgEnvReferences" + $ref: "#/components/schemas/TemplateEnvReferences" tasks: type: array items: type: object properties: - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string id: type: string @@ -7999,7 +7787,7 @@ components: status: type: string envReferences: - $ref: "#/components/schemas/PkgEnvReferences" + $ref: "#/components/schemas/TemplateEnvReferences" telegrafConfigs: type: array items: @@ -8007,20 +7795,24 @@ components: - $ref: "#/components/schemas/TelegrafRequest" - type: object properties: - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string labelAssociations: type: array items: - $ref: "#/components/schemas/PkgSummaryLabel" + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: "#/components/schemas/PkgEnvReferences" + $ref: "#/components/schemas/TemplateEnvReferences" variables: type: array items: type: object properties: - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string id: type: string @@ -8035,9 +7827,9 @@ components: labelAssociations: type: array items: - $ref: "#/components/schemas/PkgSummaryLabel" + $ref: "#/components/schemas/TemplateSummaryLabel" envReferences: - $ref: "#/components/schemas/PkgEnvReferences" + $ref: "#/components/schemas/TemplateEnvReferences" diff: type: object properties: @@ -8046,11 +7838,13 @@ components: items: type: object properties: + kind: + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: type: string - pkgName: + templateMetaName: type: string new: type: object @@ -8075,11 +7869,13 @@ components: items: type: object properties: + kind: + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: type: string - pkgName: + templateMetaName: type: string new: $ref: "#/components/schemas/CheckDiscriminator" @@ -8094,7 +7890,9 @@ components: type: string id: type: string - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string new: type: object @@ -8106,7 +7904,7 @@ components: charts: type: array items: - $ref: "#/components/schemas/PkgChart" + $ref: "#/components/schemas/TemplateChart" old: type: object properties: @@ -8117,7 +7915,7 @@ components: charts: type: array items: - $ref: "#/components/schemas/PkgChart" + $ref: "#/components/schemas/TemplateChart" labels: type: array items: @@ -8125,9 +7923,11 @@ components: properties: stateStatus: type: string + kind: + $ref: "#/components/schemas/TemplateKind" id: type: string - pkgName: + templateMetaName: type: string new: type: object @@ -8158,13 +7958,13 @@ components: type: string resourceID: type: string - resourcePkgName: + resourceTemplateMetaName: type: string resourceName: type: string labelID: type: string - labelPkgName: + labelTemplateMetaName: type: string labelName: type: string @@ -8173,11 +7973,13 @@ components: items: type: object properties: + kind: + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: type: string - pkgName: + templateMetaName: type: string new: $ref: "#/components/schemas/NotificationEndpointDiscrimator" @@ -8188,11 +7990,13 @@ components: items: type: object properties: + kind: + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: type: string - pkgName: + templateMetaName: type: string new: type: object @@ -8281,11 +8085,13 @@ components: items: type: object properties: + kind: + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: type: string - pkgName: + templateMetaName: type: string new: type: object @@ -8326,11 +8132,13 @@ components: items: type: object properties: + kind: + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: type: string - pkgName: + templateMetaName: type: string new: $ref: "#/components/schemas/TelegrafRequest" @@ -8341,11 +8149,13 @@ components: items: type: object properties: + kind: + $ref: "#/components/schemas/TemplateKind" stateStatus: type: string id: type: string - pkgName: + templateMetaName: type: string new: type: object @@ -8382,14 +8192,16 @@ components: type: array items: type: integer - PkgSummaryLabel: + TemplateSummaryLabel: type: object properties: id: type: string orgID: type: string - pkgName: + kind: + $ref: "#/components/schemas/TemplateKind" + templateMetaName: type: string name: type: string @@ -8401,8 +8213,8 @@ components: description: type: string envReferences: - $ref: "#/components/schemas/PkgEnvReferences" - PkgChart: + $ref: "#/components/schemas/TemplateEnvReferences" + TemplateChart: type: object properties: xPos: @@ -8422,48 +8234,60 @@ components: type: string orgID: type: string - name: - type: string - description: + createdAt: type: string - sources: - type: array - items: - type: string - resources: + format: date-time + readOnly: true + events: type: array items: type: object properties: - apiVersion: + eventType: type: string - resourceID: + name: type: string - kind: - $ref: "#/components/schemas/TemplateKind" - pkgName: + description: type: string - associations: + sources: + type: array + items: + type: string + resources: type: array items: type: object properties: + apiVersion: + type: string + resourceID: + type: string kind: $ref: "#/components/schemas/TemplateKind" - pkgName: + templateMetaName: type: string - urls: - type: array - items: - type: string - createdAt: - type: string - format: date-time - readOnly: true - updatedAt: - type: string - format: date-time - readOnly: true + associations: + type: array + items: + type: object + properties: + kind: + $ref: "#/components/schemas/TemplateKind" + metaName: + type: string + links: + type: object + properties: + self: + type: string + urls: + type: array + items: + type: string + updatedAt: + type: string + format: date-time + readOnly: true Runs: type: object properties: @@ -8685,46 +8509,6 @@ components: type: array items: $ref: "#/components/schemas/Invite" - CloudUser: - properties: - id: - description: the idpe id of the user - readOnly: true - type: string - firstName: - type: string - lastName: - type: string - email: - type: string - role: - type: string - enum: - - member - - owner - links: - type: object - readOnly: true - example: - self: "/api/v2/cloud_users/1" - properties: - self: - type: string - format: uri - required: [id, email, role] - CloudUsers: - type: object - properties: - links: - type: object - properties: - self: - type: string - format: uri - users: - type: array - items: - $ref: "#/components/schemas/CloudUser" User: properties: id: @@ -9031,6 +8815,8 @@ components: properties: period: type: string + fillValues: + type: boolean BuilderTagsType: type: object properties: @@ -9187,6 +8973,9 @@ components: type: string shadeBelow: type: boolean + hoverDimension: + type: string + enum: [auto, x, y, xy] position: type: string enum: [overlaid, stacked] @@ -9243,6 +9032,9 @@ components: type: string shadeBelow: type: boolean + hoverDimension: + type: string + enum: [auto, x, y, xy] position: type: string enum: [overlaid, stacked] @@ -9252,6 +9044,81 @@ components: type: string decimalPlaces: $ref: "#/components/schemas/DecimalPlaces" + MosaicViewProperties: + type: object + required: + - type + - queries + - colors + - shape + - note + - showNoteWhenEmpty + - xColumn + - ySeriesColumns + - fillColumns + - xDomain + - yDomain + - xAxisLabel + - yAxisLabel + - xPrefix + - yPrefix + - xSuffix + - ySuffix + properties: + timeFormat: + type: string + type: + type: string + enum: [mosaic] + queries: + type: array + items: + $ref: "#/components/schemas/DashboardQuery" + colors: + description: Colors define color encoding of data into a visualization + type: array + items: + type: string + shape: + type: string + enum: ["chronograf-v2"] + note: + type: string + showNoteWhenEmpty: + description: If true, will display note when empty + type: boolean + xColumn: + type: string + ySeriesColumns: + type: array + items: + type: string + fillColumns: + type: array + items: + type: string + xDomain: + type: array + items: + type: number + maxItems: 2 + yDomain: + type: array + items: + type: number + maxItems: 2 + xAxisLabel: + type: string + yAxisLabel: + type: string + xPrefix: + type: string + xSuffix: + type: string + yPrefix: + type: string + ySuffix: + type: string ScatterViewProperties: type: object required: @@ -9834,6 +9701,7 @@ components: - $ref: "#/components/schemas/CheckViewProperties" - $ref: "#/components/schemas/ScatterViewProperties" - $ref: "#/components/schemas/HeatmapViewProperties" + - $ref: "#/components/schemas/MosaicViewProperties" View: required: - name @@ -10868,7 +10736,6 @@ components: type: integer required: - username - - password - org - bucket OnboardingResponse: diff --git a/domain/types.gen.go b/domain/types.gen.go index 287589ce..2d7b9b3a 100644 --- a/domain/types.gen.go +++ b/domain/types.gen.go @@ -86,13 +86,6 @@ const ( CheckViewPropertiesTypeCheck CheckViewPropertiesType = "check" ) -// Defines values for CloudUserRole. -const ( - CloudUserRoleMember CloudUserRole = "member" - - CloudUserRoleOwner CloudUserRole = "owner" -) - // Defines values for ConstantVariablePropertiesType. const ( ConstantVariablePropertiesTypeConstant ConstantVariablePropertiesType = "constant" @@ -284,6 +277,17 @@ const ( LesserThresholdTypeLesser LesserThresholdType = "lesser" ) +// Defines values for LinePlusSingleStatPropertiesHoverDimension. +const ( + LinePlusSingleStatPropertiesHoverDimensionAuto LinePlusSingleStatPropertiesHoverDimension = "auto" + + LinePlusSingleStatPropertiesHoverDimensionTrue LinePlusSingleStatPropertiesHoverDimension = "true" + + LinePlusSingleStatPropertiesHoverDimensionX LinePlusSingleStatPropertiesHoverDimension = "x" + + LinePlusSingleStatPropertiesHoverDimensionXy LinePlusSingleStatPropertiesHoverDimension = "xy" +) + // Defines values for LinePlusSingleStatPropertiesPosition. const ( LinePlusSingleStatPropertiesPositionOverlaid LinePlusSingleStatPropertiesPosition = "overlaid" @@ -336,6 +340,16 @@ const ( MarkdownViewPropertiesTypeMarkdown MarkdownViewPropertiesType = "markdown" ) +// Defines values for MosaicViewPropertiesShape. +const ( + MosaicViewPropertiesShapeChronografV2 MosaicViewPropertiesShape = "chronograf-v2" +) + +// Defines values for MosaicViewPropertiesType. +const ( + MosaicViewPropertiesTypeMosaic MosaicViewPropertiesType = "mosaic" +) + // Defines values for NotificationEndpointBaseStatus. const ( NotificationEndpointBaseStatusActive NotificationEndpointBaseStatus = "active" @@ -894,6 +908,17 @@ const ( XYGeomStep XYGeom = "step" ) +// Defines values for XYViewPropertiesHoverDimension. +const ( + XYViewPropertiesHoverDimensionAuto XYViewPropertiesHoverDimension = "auto" + + XYViewPropertiesHoverDimensionTrue XYViewPropertiesHoverDimension = "true" + + XYViewPropertiesHoverDimensionX XYViewPropertiesHoverDimension = "x" + + XYViewPropertiesHoverDimensionXy XYViewPropertiesHoverDimension = "xy" +) + // Defines values for XYViewPropertiesPosition. const ( XYViewPropertiesPositionOverlaid XYViewPropertiesPosition = "overlaid" @@ -1126,7 +1151,8 @@ type BuilderAggregateFunctionType string // BuilderConfig defines model for BuilderConfig. type BuilderConfig struct { AggregateWindow *struct { - Period *string `json:"period,omitempty"` + FillValues *bool `json:"fillValues,omitempty"` + Period *string `json:"period,omitempty"` } `json:"aggregateWindow,omitempty"` Buckets *[]string `json:"buckets,omitempty"` Functions *[]BuilderFunctionsType `json:"functions,omitempty"` @@ -1296,31 +1322,6 @@ type Checks struct { Links *Links `json:"links,omitempty"` } -// CloudUser defines model for CloudUser. -type CloudUser struct { - Email string `json:"email"` - FirstName *string `json:"firstName,omitempty"` - - // the idpe id of the user - Id string `json:"id"` - LastName *string `json:"lastName,omitempty"` - Links *struct { - Self *string `json:"self,omitempty"` - } `json:"links,omitempty"` - Role CloudUserRole `json:"role"` -} - -// CloudUserRole defines model for CloudUser.Role. -type CloudUserRole string - -// CloudUsers defines model for CloudUsers. -type CloudUsers struct { - Links *struct { - Self *string `json:"self,omitempty"` - } `json:"links,omitempty"` - Users *[]CloudUser `json:"users,omitempty"` -} - // ConditionalExpression defines model for ConditionalExpression. type ConditionalExpression struct { Alternate *Expression `json:"alternate,omitempty"` @@ -2161,7 +2162,8 @@ type LinePlusSingleStatProperties struct { Colors []DashboardColor `json:"colors"` // Indicates whether decimal places should be enforced, and how many digits it should show. - DecimalPlaces DecimalPlaces `json:"decimalPlaces"` + DecimalPlaces DecimalPlaces `json:"decimalPlaces"` + HoverDimension *LinePlusSingleStatPropertiesHoverDimension `json:"hoverDimension,omitempty"` // Legend define encoding of data into a view's legend Legend Legend `json:"legend"` @@ -2181,6 +2183,9 @@ type LinePlusSingleStatProperties struct { YColumn *string `json:"yColumn,omitempty"` } +// LinePlusSingleStatPropertiesHoverDimension defines model for LinePlusSingleStatProperties.HoverDimension. +type LinePlusSingleStatPropertiesHoverDimension string + // LinePlusSingleStatPropertiesPosition defines model for LinePlusSingleStatProperties.Position. type LinePlusSingleStatPropertiesPosition string @@ -2316,6 +2321,38 @@ type MemberExpression struct { Type *NodeType `json:"type,omitempty"` } +// MosaicViewProperties defines model for MosaicViewProperties. +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"` + + // If true, will display note when empty + ShowNoteWhenEmpty bool `json:"showNoteWhenEmpty"` + TimeFormat *string `json:"timeFormat,omitempty"` + Type MosaicViewPropertiesType `json:"type"` + XAxisLabel string `json:"xAxisLabel"` + XColumn string `json:"xColumn"` + XDomain []float32 `json:"xDomain"` + XPrefix string `json:"xPrefix"` + XSuffix string `json:"xSuffix"` + YAxisLabel string `json:"yAxisLabel"` + YDomain []float32 `json:"yDomain"` + YPrefix string `json:"yPrefix"` + YSeriesColumns []string `json:"ySeriesColumns"` + YSuffix string `json:"ySuffix"` +} + +// MosaicViewPropertiesShape defines model for MosaicViewProperties.Shape. +type MosaicViewPropertiesShape string + +// MosaicViewPropertiesType defines model for MosaicViewProperties.Type. +type MosaicViewPropertiesType string + // Node defines model for Node. type Node interface{} @@ -2489,11 +2526,11 @@ type ObjectExpression struct { // OnboardingRequest defines model for OnboardingRequest. type OnboardingRequest struct { - Bucket string `json:"bucket"` - Org string `json:"org"` - Password string `json:"password"` - RetentionPeriodHrs *int `json:"retentionPeriodHrs,omitempty"` - Username string `json:"username"` + Bucket string `json:"bucket"` + Org string `json:"org"` + Password *string `json:"password,omitempty"` + RetentionPeriodHrs *int `json:"retentionPeriodHrs,omitempty"` + Username string `json:"username"` } // OnboardingResponse defines model for OnboardingResponse. @@ -2651,384 +2688,11 @@ type PipeLiteral struct { Type *NodeType `json:"type,omitempty"` } -// Pkg defines model for Pkg. -type Pkg []struct { - ApiVersion *string `json:"apiVersion,omitempty"` - Kind *TemplateKind `json:"kind,omitempty"` - Meta *struct { - Name *string `json:"name,omitempty"` - } `json:"meta,omitempty"` - Spec *map[string]interface{} `json:"spec,omitempty"` -} - -// PkgApply defines model for PkgApply. -type PkgApply struct { - Actions *[]interface{} `json:"actions,omitempty"` - DryRun *bool `json:"dryRun,omitempty"` - OrgID *string `json:"orgID,omitempty"` - Remotes *[]struct { - ContentType *string `json:"contentType,omitempty"` - Url string `json:"url"` - } `json:"remotes,omitempty"` - Secrets *PkgApply_Secrets `json:"secrets,omitempty"` - StackID *string `json:"stackID,omitempty"` - Template *struct { - ContentType *string `json:"contentType,omitempty"` - Package *Pkg `json:"package,omitempty"` - Sources *[]string `json:"sources,omitempty"` - } `json:"template,omitempty"` - Templates *[]struct { - ContentType *string `json:"contentType,omitempty"` - Package *Pkg `json:"package,omitempty"` - Sources *[]string `json:"sources,omitempty"` - } `json:"templates,omitempty"` -} - -// PkgApply_Secrets defines model for PkgApply.Secrets. -type PkgApply_Secrets struct { - AdditionalProperties map[string]string `json:"-"` -} - -// PkgChart defines model for PkgChart. -type PkgChart struct { - Height *int `json:"height,omitempty"` - Properties *ViewProperties `json:"properties,omitempty"` - Width *int `json:"width,omitempty"` - XPos *int `json:"xPos,omitempty"` - YPos *int `json:"yPos,omitempty"` -} - -// PkgCreate defines model for PkgCreate. -type PkgCreate struct { - OrgIDs *[]struct { - OrgID *string `json:"orgID,omitempty"` - ResourceFilters *struct { - ByLabel *[]string `json:"byLabel,omitempty"` - ByResourceKind *[]TemplateKind `json:"byResourceKind,omitempty"` - } `json:"resourceFilters,omitempty"` - } `json:"orgIDs,omitempty"` - Resources *struct { - Id string `json:"id"` - Kind TemplateKind `json:"kind"` - Name *string `json:"name,omitempty"` - } `json:"resources,omitempty"` -} - -// PkgEnvReferences defines model for PkgEnvReferences. -type PkgEnvReferences []struct { - - // Default value that will be provided for the reference when no value is provided - DefaultValue string `json:"defaultValue"` - - // Key identified as environment reference and is the key identified in the template - EnvRefKey string `json:"envRefKey"` - - // Field the environment reference corresponds too - ResourceField string `json:"resourceField"` - - // Value provided to fulfill reference - Value *string `json:"value,omitempty"` -} - -// PkgSummary defines model for PkgSummary. -type PkgSummary struct { - Diff *struct { - Buckets *[]struct { - Id *string `json:"id,omitempty"` - New *struct { - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - - // Rules to expire or retain data. No rules means data never expires. - RetentionRules *RetentionRules `json:"retentionRules,omitempty"` - } `json:"new,omitempty"` - Old *struct { - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - - // Rules to expire or retain data. No rules means data never expires. - RetentionRules *RetentionRules `json:"retentionRules,omitempty"` - } `json:"old,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - StateStatus *string `json:"stateStatus,omitempty"` - } `json:"buckets,omitempty"` - Checks *[]struct { - Id *string `json:"id,omitempty"` - New *CheckDiscriminator `json:"new,omitempty"` - Old *CheckDiscriminator `json:"old,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - StateStatus *string `json:"stateStatus,omitempty"` - } `json:"checks,omitempty"` - Dashboards *[]struct { - Id *string `json:"id,omitempty"` - New *struct { - Charts *[]PkgChart `json:"charts,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"new,omitempty"` - Old *struct { - Charts *[]PkgChart `json:"charts,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"old,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - StateStatus *string `json:"stateStatus,omitempty"` - } `json:"dashboards,omitempty"` - LabelMappings *[]struct { - LabelID *string `json:"labelID,omitempty"` - LabelName *string `json:"labelName,omitempty"` - LabelPkgName *string `json:"labelPkgName,omitempty"` - ResourceID *string `json:"resourceID,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - ResourcePkgName *string `json:"resourcePkgName,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Status *string `json:"status,omitempty"` - } `json:"labelMappings,omitempty"` - Labels *[]struct { - Id *string `json:"id,omitempty"` - New *struct { - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"new,omitempty"` - Old *struct { - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"old,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - StateStatus *string `json:"stateStatus,omitempty"` - } `json:"labels,omitempty"` - NotificationEndpoints *[]struct { - Id *string `json:"id,omitempty"` - New *NotificationEndpointDiscrimator `json:"new,omitempty"` - Old *NotificationEndpointDiscrimator `json:"old,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - StateStatus *string `json:"stateStatus,omitempty"` - } `json:"notificationEndpoints,omitempty"` - NotificationRules *[]struct { - Id *string `json:"id,omitempty"` - New *struct { - Description *string `json:"description,omitempty"` - EndpointID *string `json:"endpointID,omitempty"` - EndpointName *string `json:"endpointName,omitempty"` - EndpointType *string `json:"endpointType,omitempty"` - Every *string `json:"every,omitempty"` - MessageTemplate *string `json:"messageTemplate,omitempty"` - Name *string `json:"name,omitempty"` - Offset *string `json:"offset,omitempty"` - Status *string `json:"status,omitempty"` - StatusRules *[]struct { - CurrentLevel *string `json:"currentLevel,omitempty"` - PreviousLevel *string `json:"previousLevel,omitempty"` - } `json:"statusRules,omitempty"` - TagRules *[]struct { - Key *string `json:"key,omitempty"` - Operator *string `json:"operator,omitempty"` - Value *string `json:"value,omitempty"` - } `json:"tagRules,omitempty"` - } `json:"new,omitempty"` - Old *struct { - Description *string `json:"description,omitempty"` - EndpointID *string `json:"endpointID,omitempty"` - EndpointName *string `json:"endpointName,omitempty"` - EndpointType *string `json:"endpointType,omitempty"` - Every *string `json:"every,omitempty"` - MessageTemplate *string `json:"messageTemplate,omitempty"` - Name *string `json:"name,omitempty"` - Offset *string `json:"offset,omitempty"` - Status *string `json:"status,omitempty"` - StatusRules *[]struct { - CurrentLevel *string `json:"currentLevel,omitempty"` - PreviousLevel *string `json:"previousLevel,omitempty"` - } `json:"statusRules,omitempty"` - TagRules *[]struct { - Key *string `json:"key,omitempty"` - Operator *string `json:"operator,omitempty"` - Value *string `json:"value,omitempty"` - } `json:"tagRules,omitempty"` - } `json:"old,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - StateStatus *string `json:"stateStatus,omitempty"` - } `json:"notificationRules,omitempty"` - Tasks *[]struct { - Id *string `json:"id,omitempty"` - New *struct { - Cron *string `json:"cron,omitempty"` - Description *string `json:"description,omitempty"` - Every *string `json:"every,omitempty"` - Name *string `json:"name,omitempty"` - Offset *string `json:"offset,omitempty"` - Query *string `json:"query,omitempty"` - Status *string `json:"status,omitempty"` - } `json:"new,omitempty"` - Old *struct { - Cron *string `json:"cron,omitempty"` - Description *string `json:"description,omitempty"` - Every *string `json:"every,omitempty"` - Name *string `json:"name,omitempty"` - Offset *string `json:"offset,omitempty"` - Query *string `json:"query,omitempty"` - Status *string `json:"status,omitempty"` - } `json:"old,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - StateStatus *string `json:"stateStatus,omitempty"` - } `json:"tasks,omitempty"` - TelegrafConfigs *[]struct { - Id *string `json:"id,omitempty"` - New *TelegrafRequest `json:"new,omitempty"` - Old *TelegrafRequest `json:"old,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - StateStatus *string `json:"stateStatus,omitempty"` - } `json:"telegrafConfigs,omitempty"` - Variables *[]struct { - Id *string `json:"id,omitempty"` - New *struct { - Args *VariableProperties `json:"args,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"new,omitempty"` - Old *struct { - Args *VariableProperties `json:"args,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"old,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - StateStatus *string `json:"stateStatus,omitempty"` - } `json:"variables,omitempty"` - } `json:"diff,omitempty"` - Errors *[]struct { - Fields *[]string `json:"fields,omitempty"` - Indexes *[]int `json:"indexes,omitempty"` - Kind *TemplateKind `json:"kind,omitempty"` - Reason *string `json:"reason,omitempty"` - } `json:"errors,omitempty"` - Sources *[]string `json:"sources,omitempty"` - StackID *string `json:"stackID,omitempty"` - Summary *struct { - Buckets *[]struct { - Description *string `json:"description,omitempty"` - EnvReferences *PkgEnvReferences `json:"envReferences,omitempty"` - Id *string `json:"id,omitempty"` - LabelAssociations *[]PkgSummaryLabel `json:"labelAssociations,omitempty"` - Name *string `json:"name,omitempty"` - OrgID *string `json:"orgID,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - RetentionPeriod *int `json:"retentionPeriod,omitempty"` - } `json:"buckets,omitempty"` - Checks *[]struct { - // Embedded struct due to allOf(#/components/schemas/CheckDiscriminator) - CheckDiscriminator - // Embedded fields due to inline allOf schema - EnvReferences *PkgEnvReferences `json:"envReferences,omitempty"` - LabelAssociations *[]PkgSummaryLabel `json:"labelAssociations,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - } `json:"checks,omitempty"` - Dashboards *[]struct { - Charts *[]PkgChart `json:"charts,omitempty"` - Description *string `json:"description,omitempty"` - EnvReferences *PkgEnvReferences `json:"envReferences,omitempty"` - Id *string `json:"id,omitempty"` - LabelAssociations *[]PkgSummaryLabel `json:"labelAssociations,omitempty"` - Name *string `json:"name,omitempty"` - OrgID *string `json:"orgID,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - } `json:"dashboards,omitempty"` - LabelMappings *[]struct { - LabelID *string `json:"labelID,omitempty"` - LabelName *string `json:"labelName,omitempty"` - LabelPkgName *string `json:"labelPkgName,omitempty"` - ResourceID *string `json:"resourceID,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - ResourcePkgName *string `json:"resourcePkgName,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Status *string `json:"status,omitempty"` - } `json:"labelMappings,omitempty"` - Labels *[]PkgSummaryLabel `json:"labels,omitempty"` - MissingEnvRefs *[]string `json:"missingEnvRefs,omitempty"` - MissingSecrets *[]string `json:"missingSecrets,omitempty"` - NotificationEndpoints *[]struct { - // Embedded struct due to allOf(#/components/schemas/NotificationEndpointDiscrimator) - NotificationEndpointDiscrimator - // Embedded fields due to inline allOf schema - EnvReferences *PkgEnvReferences `json:"envReferences,omitempty"` - LabelAssociations *[]PkgSummaryLabel `json:"labelAssociations,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - } `json:"notificationEndpoints,omitempty"` - NotificationRules *[]struct { - Description *string `json:"description,omitempty"` - EndpointID *string `json:"endpointID,omitempty"` - EndpointPkgName *string `json:"endpointPkgName,omitempty"` - EndpointType *string `json:"endpointType,omitempty"` - EnvReferences *PkgEnvReferences `json:"envReferences,omitempty"` - Every *string `json:"every,omitempty"` - LabelAssociations *[]PkgSummaryLabel `json:"labelAssociations,omitempty"` - MessageTemplate *string `json:"messageTemplate,omitempty"` - Name *string `json:"name,omitempty"` - Offset *string `json:"offset,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - Status *string `json:"status,omitempty"` - StatusRules *[]struct { - CurrentLevel *string `json:"currentLevel,omitempty"` - PreviousLevel *string `json:"previousLevel,omitempty"` - } `json:"statusRules,omitempty"` - TagRules *[]struct { - Key *string `json:"key,omitempty"` - Operator *string `json:"operator,omitempty"` - Value *string `json:"value,omitempty"` - } `json:"tagRules,omitempty"` - } `json:"notificationRules,omitempty"` - Tasks *[]struct { - Cron *string `json:"cron,omitempty"` - Description *string `json:"description,omitempty"` - EnvReferences *PkgEnvReferences `json:"envReferences,omitempty"` - Every *string `json:"every,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Offset *string `json:"offset,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - Query *string `json:"query,omitempty"` - Status *string `json:"status,omitempty"` - } `json:"tasks,omitempty"` - TelegrafConfigs *[]struct { - // Embedded struct due to allOf(#/components/schemas/TelegrafRequest) - TelegrafRequest - // Embedded fields due to inline allOf schema - EnvReferences *PkgEnvReferences `json:"envReferences,omitempty"` - LabelAssociations *[]PkgSummaryLabel `json:"labelAssociations,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - } `json:"telegrafConfigs,omitempty"` - Variables *[]struct { - Arguments *VariableProperties `json:"arguments,omitempty"` - Description *string `json:"description,omitempty"` - EnvReferences *PkgEnvReferences `json:"envReferences,omitempty"` - Id *string `json:"id,omitempty"` - LabelAssociations *[]PkgSummaryLabel `json:"labelAssociations,omitempty"` - Name *string `json:"name,omitempty"` - OrgID *string `json:"orgID,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - } `json:"variables,omitempty"` - } `json:"summary,omitempty"` -} - -// PkgSummaryLabel defines model for PkgSummaryLabel. -type PkgSummaryLabel struct { - EnvReferences *PkgEnvReferences `json:"envReferences,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - OrgID *string `json:"orgID,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - Properties *struct { - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - } `json:"properties,omitempty"` -} - // PostBucketRequest defines model for PostBucketRequest. type PostBucketRequest struct { Description *string `json:"description,omitempty"` Name string `json:"name"` - OrgID *string `json:"orgID,omitempty"` + OrgID string `json:"orgID"` // Rules to expire or retain data. No rules means data never expires. RetentionRules RetentionRules `json:"retentionRules"` @@ -3543,24 +3207,30 @@ type Sources struct { // Stack defines model for Stack. type Stack struct { - CreatedAt *time.Time `json:"createdAt,omitempty"` - Description *string `json:"description,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - OrgID *string `json:"orgID,omitempty"` - Resources *[]struct { - ApiVersion *string `json:"apiVersion,omitempty"` - Associations *[]struct { - Kind *TemplateKind `json:"kind,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - } `json:"associations,omitempty"` - Kind *TemplateKind `json:"kind,omitempty"` - PkgName *string `json:"pkgName,omitempty"` - ResourceID *string `json:"resourceID,omitempty"` - } `json:"resources,omitempty"` - Sources *[]string `json:"sources,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - Urls *[]string `json:"urls,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + Events *[]struct { + Description *string `json:"description,omitempty"` + EventType *string `json:"eventType,omitempty"` + Name *string `json:"name,omitempty"` + Resources *[]struct { + ApiVersion *string `json:"apiVersion,omitempty"` + Associations *[]struct { + Kind *TemplateKind `json:"kind,omitempty"` + MetaName *string `json:"metaName,omitempty"` + } `json:"associations,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + Links *struct { + Self *string `json:"self,omitempty"` + } `json:"links,omitempty"` + ResourceID *string `json:"resourceID,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"resources,omitempty"` + Sources *[]string `json:"sources,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + Urls *[]string `json:"urls,omitempty"` + } `json:"events,omitempty"` + Id *string `json:"id,omitempty"` + OrgID *string `json:"orgID,omitempty"` } // Statement defines model for Statement. @@ -4163,17 +3833,415 @@ type TelegrafRequest struct { OrgID *string `json:"orgID,omitempty"` } -// TelegrafRequestPlugin defines model for TelegrafRequestPlugin. -type TelegrafRequestPlugin interface{} - -// Telegrafs defines model for Telegrafs. -type Telegrafs struct { - Configurations *[]Telegraf `json:"configurations,omitempty"` +// TelegrafRequestPlugin defines model for TelegrafRequestPlugin. +type TelegrafRequestPlugin interface{} + +// Telegrafs defines model for Telegrafs. +type Telegrafs struct { + Configurations *[]Telegraf `json:"configurations,omitempty"` +} + +// Template defines model for Template. +type Template []struct { + ApiVersion *string `json:"apiVersion,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + Meta *struct { + Name *string `json:"name,omitempty"` + } `json:"meta,omitempty"` + Spec *map[string]interface{} `json:"spec,omitempty"` +} + +// TemplateApply defines model for TemplateApply. +type TemplateApply struct { + Actions *[]interface{} `json:"actions,omitempty"` + DryRun *bool `json:"dryRun,omitempty"` + EnvRefs *TemplateApply_EnvRefs `json:"envRefs,omitempty"` + OrgID *string `json:"orgID,omitempty"` + Remotes *[]struct { + ContentType *string `json:"contentType,omitempty"` + Url string `json:"url"` + } `json:"remotes,omitempty"` + Secrets *TemplateApply_Secrets `json:"secrets,omitempty"` + StackID *string `json:"stackID,omitempty"` + Template *struct { + ContentType *string `json:"contentType,omitempty"` + Contents *Template `json:"contents,omitempty"` + Sources *[]string `json:"sources,omitempty"` + } `json:"template,omitempty"` + Templates *[]struct { + ContentType *string `json:"contentType,omitempty"` + Contents *Template `json:"contents,omitempty"` + Sources *[]string `json:"sources,omitempty"` + } `json:"templates,omitempty"` +} + +// TemplateApply_EnvRefs defines model for TemplateApply.EnvRefs. +type TemplateApply_EnvRefs struct { + AdditionalProperties map[string]interface{} `json:"-"` +} + +// TemplateApply_Secrets defines model for TemplateApply.Secrets. +type TemplateApply_Secrets struct { + AdditionalProperties map[string]string `json:"-"` +} + +// TemplateChart defines model for TemplateChart. +type TemplateChart struct { + Height *int `json:"height,omitempty"` + Properties *ViewProperties `json:"properties,omitempty"` + Width *int `json:"width,omitempty"` + XPos *int `json:"xPos,omitempty"` + YPos *int `json:"yPos,omitempty"` +} + +// TemplateEnvReferences defines model for TemplateEnvReferences. +type TemplateEnvReferences []struct { + + // Default value that will be provided for the reference when no value is provided + DefaultValue *interface{} `json:"defaultValue,omitempty"` + + // Key identified as environment reference and is the key identified in the template + EnvRefKey string `json:"envRefKey"` + + // Field the environment reference corresponds too + ResourceField string `json:"resourceField"` + + // Value provided to fulfill reference + Value *interface{} `json:"value,omitempty"` +} + +// TemplateExport defines model for TemplateExport. +type TemplateExport struct { + OrgIDs *[]struct { + OrgID *string `json:"orgID,omitempty"` + ResourceFilters *struct { + ByLabel *[]string `json:"byLabel,omitempty"` + ByResourceKind *[]TemplateKind `json:"byResourceKind,omitempty"` + } `json:"resourceFilters,omitempty"` + } `json:"orgIDs,omitempty"` + Resources *struct { + Id string `json:"id"` + Kind TemplateKind `json:"kind"` + Name *string `json:"name,omitempty"` + } `json:"resources,omitempty"` + StackID *string `json:"stackID,omitempty"` +} + +// TemplateKind defines model for TemplateKind. +type TemplateKind string + +// TemplateSummary defines model for TemplateSummary. +type TemplateSummary struct { + Diff *struct { + Buckets *[]struct { + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + New *struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + + // Rules to expire or retain data. No rules means data never expires. + RetentionRules *RetentionRules `json:"retentionRules,omitempty"` + } `json:"new,omitempty"` + Old *struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + + // Rules to expire or retain data. No rules means data never expires. + RetentionRules *RetentionRules `json:"retentionRules,omitempty"` + } `json:"old,omitempty"` + StateStatus *string `json:"stateStatus,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"buckets,omitempty"` + Checks *[]struct { + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + New *CheckDiscriminator `json:"new,omitempty"` + Old *CheckDiscriminator `json:"old,omitempty"` + StateStatus *string `json:"stateStatus,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"checks,omitempty"` + Dashboards *[]struct { + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + New *struct { + Charts *[]TemplateChart `json:"charts,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"new,omitempty"` + Old *struct { + Charts *[]TemplateChart `json:"charts,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"old,omitempty"` + StateStatus *string `json:"stateStatus,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"dashboards,omitempty"` + LabelMappings *[]struct { + LabelID *string `json:"labelID,omitempty"` + LabelName *string `json:"labelName,omitempty"` + LabelTemplateMetaName *string `json:"labelTemplateMetaName,omitempty"` + ResourceID *string `json:"resourceID,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` + ResourceTemplateMetaName *string `json:"resourceTemplateMetaName,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Status *string `json:"status,omitempty"` + } `json:"labelMappings,omitempty"` + Labels *[]struct { + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + New *struct { + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"new,omitempty"` + Old *struct { + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"old,omitempty"` + StateStatus *string `json:"stateStatus,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"labels,omitempty"` + NotificationEndpoints *[]struct { + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + New *NotificationEndpointDiscrimator `json:"new,omitempty"` + Old *NotificationEndpointDiscrimator `json:"old,omitempty"` + StateStatus *string `json:"stateStatus,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"notificationEndpoints,omitempty"` + NotificationRules *[]struct { + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + New *struct { + Description *string `json:"description,omitempty"` + EndpointID *string `json:"endpointID,omitempty"` + EndpointName *string `json:"endpointName,omitempty"` + EndpointType *string `json:"endpointType,omitempty"` + Every *string `json:"every,omitempty"` + MessageTemplate *string `json:"messageTemplate,omitempty"` + Name *string `json:"name,omitempty"` + Offset *string `json:"offset,omitempty"` + Status *string `json:"status,omitempty"` + StatusRules *[]struct { + CurrentLevel *string `json:"currentLevel,omitempty"` + PreviousLevel *string `json:"previousLevel,omitempty"` + } `json:"statusRules,omitempty"` + TagRules *[]struct { + Key *string `json:"key,omitempty"` + Operator *string `json:"operator,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"tagRules,omitempty"` + } `json:"new,omitempty"` + Old *struct { + Description *string `json:"description,omitempty"` + EndpointID *string `json:"endpointID,omitempty"` + EndpointName *string `json:"endpointName,omitempty"` + EndpointType *string `json:"endpointType,omitempty"` + Every *string `json:"every,omitempty"` + MessageTemplate *string `json:"messageTemplate,omitempty"` + Name *string `json:"name,omitempty"` + Offset *string `json:"offset,omitempty"` + Status *string `json:"status,omitempty"` + StatusRules *[]struct { + CurrentLevel *string `json:"currentLevel,omitempty"` + PreviousLevel *string `json:"previousLevel,omitempty"` + } `json:"statusRules,omitempty"` + TagRules *[]struct { + Key *string `json:"key,omitempty"` + Operator *string `json:"operator,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"tagRules,omitempty"` + } `json:"old,omitempty"` + StateStatus *string `json:"stateStatus,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"notificationRules,omitempty"` + Tasks *[]struct { + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + New *struct { + Cron *string `json:"cron,omitempty"` + Description *string `json:"description,omitempty"` + Every *string `json:"every,omitempty"` + Name *string `json:"name,omitempty"` + Offset *string `json:"offset,omitempty"` + Query *string `json:"query,omitempty"` + Status *string `json:"status,omitempty"` + } `json:"new,omitempty"` + Old *struct { + Cron *string `json:"cron,omitempty"` + Description *string `json:"description,omitempty"` + Every *string `json:"every,omitempty"` + Name *string `json:"name,omitempty"` + Offset *string `json:"offset,omitempty"` + Query *string `json:"query,omitempty"` + Status *string `json:"status,omitempty"` + } `json:"old,omitempty"` + StateStatus *string `json:"stateStatus,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"tasks,omitempty"` + TelegrafConfigs *[]struct { + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + New *TelegrafRequest `json:"new,omitempty"` + Old *TelegrafRequest `json:"old,omitempty"` + StateStatus *string `json:"stateStatus,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"telegrafConfigs,omitempty"` + Variables *[]struct { + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + New *struct { + Args *VariableProperties `json:"args,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"new,omitempty"` + Old *struct { + Args *VariableProperties `json:"args,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"old,omitempty"` + StateStatus *string `json:"stateStatus,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"variables,omitempty"` + } `json:"diff,omitempty"` + Errors *[]struct { + Fields *[]string `json:"fields,omitempty"` + Indexes *[]int `json:"indexes,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + Reason *string `json:"reason,omitempty"` + } `json:"errors,omitempty"` + Sources *[]string `json:"sources,omitempty"` + StackID *string `json:"stackID,omitempty"` + Summary *struct { + Buckets *[]struct { + Description *string `json:"description,omitempty"` + EnvReferences *TemplateEnvReferences `json:"envReferences,omitempty"` + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + LabelAssociations *[]TemplateSummaryLabel `json:"labelAssociations,omitempty"` + Name *string `json:"name,omitempty"` + OrgID *string `json:"orgID,omitempty"` + RetentionPeriod *int `json:"retentionPeriod,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"buckets,omitempty"` + Checks *[]struct { + // Embedded struct due to allOf(#/components/schemas/CheckDiscriminator) + CheckDiscriminator + // Embedded fields due to inline allOf schema + EnvReferences *TemplateEnvReferences `json:"envReferences,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + LabelAssociations *[]TemplateSummaryLabel `json:"labelAssociations,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"checks,omitempty"` + Dashboards *[]struct { + Charts *[]TemplateChart `json:"charts,omitempty"` + Description *string `json:"description,omitempty"` + EnvReferences *TemplateEnvReferences `json:"envReferences,omitempty"` + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + LabelAssociations *[]TemplateSummaryLabel `json:"labelAssociations,omitempty"` + Name *string `json:"name,omitempty"` + OrgID *string `json:"orgID,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"dashboards,omitempty"` + LabelMappings *[]struct { + LabelID *string `json:"labelID,omitempty"` + LabelName *string `json:"labelName,omitempty"` + LabelTemplateMetaName *string `json:"labelTemplateMetaName,omitempty"` + ResourceID *string `json:"resourceID,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` + ResourceTemplateMetaName *string `json:"resourceTemplateMetaName,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Status *string `json:"status,omitempty"` + } `json:"labelMappings,omitempty"` + Labels *[]TemplateSummaryLabel `json:"labels,omitempty"` + MissingEnvRefs *[]string `json:"missingEnvRefs,omitempty"` + MissingSecrets *[]string `json:"missingSecrets,omitempty"` + NotificationEndpoints *[]struct { + // Embedded struct due to allOf(#/components/schemas/NotificationEndpointDiscrimator) + NotificationEndpointDiscrimator + // Embedded fields due to inline allOf schema + EnvReferences *TemplateEnvReferences `json:"envReferences,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + LabelAssociations *[]TemplateSummaryLabel `json:"labelAssociations,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"notificationEndpoints,omitempty"` + NotificationRules *[]struct { + Description *string `json:"description,omitempty"` + EndpointID *string `json:"endpointID,omitempty"` + EndpointTemplateMetaName *string `json:"endpointTemplateMetaName,omitempty"` + EndpointType *string `json:"endpointType,omitempty"` + EnvReferences *TemplateEnvReferences `json:"envReferences,omitempty"` + Every *string `json:"every,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + LabelAssociations *[]TemplateSummaryLabel `json:"labelAssociations,omitempty"` + MessageTemplate *string `json:"messageTemplate,omitempty"` + Name *string `json:"name,omitempty"` + Offset *string `json:"offset,omitempty"` + Status *string `json:"status,omitempty"` + StatusRules *[]struct { + CurrentLevel *string `json:"currentLevel,omitempty"` + PreviousLevel *string `json:"previousLevel,omitempty"` + } `json:"statusRules,omitempty"` + TagRules *[]struct { + Key *string `json:"key,omitempty"` + Operator *string `json:"operator,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"tagRules,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"notificationRules,omitempty"` + Tasks *[]struct { + Cron *string `json:"cron,omitempty"` + Description *string `json:"description,omitempty"` + EnvReferences *TemplateEnvReferences `json:"envReferences,omitempty"` + Every *string `json:"every,omitempty"` + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Offset *string `json:"offset,omitempty"` + Query *string `json:"query,omitempty"` + Status *string `json:"status,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"tasks,omitempty"` + TelegrafConfigs *[]struct { + // Embedded struct due to allOf(#/components/schemas/TelegrafRequest) + TelegrafRequest + // Embedded fields due to inline allOf schema + EnvReferences *TemplateEnvReferences `json:"envReferences,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + LabelAssociations *[]TemplateSummaryLabel `json:"labelAssociations,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"telegrafConfigs,omitempty"` + Variables *[]struct { + Arguments *VariableProperties `json:"arguments,omitempty"` + Description *string `json:"description,omitempty"` + EnvReferences *TemplateEnvReferences `json:"envReferences,omitempty"` + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + LabelAssociations *[]TemplateSummaryLabel `json:"labelAssociations,omitempty"` + Name *string `json:"name,omitempty"` + OrgID *string `json:"orgID,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"variables,omitempty"` + } `json:"summary,omitempty"` +} + +// TemplateSummaryLabel defines model for TemplateSummaryLabel. +type TemplateSummaryLabel struct { + EnvReferences *TemplateEnvReferences `json:"envReferences,omitempty"` + Id *string `json:"id,omitempty"` + Kind *TemplateKind `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + OrgID *string `json:"orgID,omitempty"` + Properties *struct { + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + } `json:"properties,omitempty"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` } -// TemplateKind defines model for TemplateKind. -type TemplateKind string - // TestStatement defines model for TestStatement. type TestStatement struct { @@ -4336,8 +4404,9 @@ type XYViewProperties struct { Axes Axes `json:"axes"` // Colors define color encoding of data into a visualization - Colors []DashboardColor `json:"colors"` - Geom XYGeom `json:"geom"` + Colors []DashboardColor `json:"colors"` + Geom XYGeom `json:"geom"` + HoverDimension *XYViewPropertiesHoverDimension `json:"hoverDimension,omitempty"` // Legend define encoding of data into a view's legend Legend Legend `json:"legend"` @@ -4355,6 +4424,9 @@ type XYViewProperties struct { YColumn *string `json:"yColumn,omitempty"` } +// XYViewPropertiesHoverDimension defines model for XYViewProperties.HoverDimension. +type XYViewPropertiesHoverDimension string + // XYViewPropertiesPosition defines model for XYViewProperties.Position. type XYViewPropertiesPosition string @@ -4652,7 +4724,7 @@ type GetDashboardsParams struct { // The column to sort by. SortBy *GetDashboardsParamsSortBy `json:"sortBy,omitempty"` - // List of dashboard IDs to return. If both `id and `owner` are specified, only `id` is used. + // List of dashboard IDs to return. If both `id` and `owner` are specified, only `id` is used. Id *[]string `json:"id,omitempty"` // The organization ID. @@ -5280,54 +5352,6 @@ type PatchOrgsIDParams struct { ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` } -// PostOrgsIDInvitesJSONBody defines parameters for PostOrgsIDInvites. -type PostOrgsIDInvitesJSONBody Invite - -// PostOrgsIDInvitesParams defines parameters for PostOrgsIDInvites. -type PostOrgsIDInvitesParams struct { - - // OpenTracing span context - ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` -} - -// DeleteOrgsIDInviteIDParams defines parameters for DeleteOrgsIDInviteID. -type DeleteOrgsIDInviteIDParams struct { - - // OpenTracing span context - ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` -} - -// PostOrgsIDInviteIDParams defines parameters for PostOrgsIDInviteID. -type PostOrgsIDInviteIDParams struct { - - // OpenTracing span context - ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` -} - -// GetOrgsIDLabelsParams defines parameters for GetOrgsIDLabels. -type GetOrgsIDLabelsParams struct { - - // OpenTracing span context - ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` -} - -// PostOrgsIDLabelsJSONBody defines parameters for PostOrgsIDLabels. -type PostOrgsIDLabelsJSONBody LabelMapping - -// PostOrgsIDLabelsParams defines parameters for PostOrgsIDLabels. -type PostOrgsIDLabelsParams struct { - - // OpenTracing span context - ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` -} - -// DeleteOrgsIDLabelsIDParams defines parameters for DeleteOrgsIDLabelsID. -type DeleteOrgsIDLabelsIDParams struct { - - // OpenTracing span context - ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` -} - // GetOrgsIDMembersParams defines parameters for GetOrgsIDMembers. type GetOrgsIDMembersParams struct { @@ -5403,68 +5427,6 @@ type PostOrgsIDSecretsParams struct { ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` } -// GetCloudUsersParams defines parameters for GetCloudUsers. -type GetCloudUsersParams struct { - - // OpenTracing span context - ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` -} - -// DeleteOrgsIDCloudUserIDParams defines parameters for DeleteOrgsIDCloudUserID. -type DeleteOrgsIDCloudUserIDParams struct { - - // OpenTracing span context - ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` -} - -// CreatePkgJSONBody defines parameters for CreatePkg. -type CreatePkgJSONBody PkgCreate - -// ApplyPkgJSONBody defines parameters for ApplyPkg. -type ApplyPkgJSONBody PkgApply - -// ListStacksParams defines parameters for ListStacks. -type ListStacksParams struct { - - // The organization id of the stacks - OrgID string `json:"orgID"` - - // A collection of names to filter the list by. - Name *string `json:"name,omitempty"` - - // A collection of stackIDs to filter the list by. - StackID *string `json:"stackID,omitempty"` -} - -// CreateStackJSONBody defines parameters for CreateStack. -type CreateStackJSONBody struct { - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - OrgID *string `json:"orgID,omitempty"` - Urls *[]string `json:"urls,omitempty"` -} - -// DeleteStackParams defines parameters for DeleteStack. -type DeleteStackParams struct { - - // The organization id of the user - OrgID string `json:"orgID"` -} - -// UpdateStackJSONBody defines parameters for UpdateStack. -type UpdateStackJSONBody struct { - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - Urls *[]string `json:"urls,omitempty"` -} - -// ExportStackParams defines parameters for ExportStack. -type ExportStackParams struct { - - // The organization id of the user - OrgID string `json:"orgID"` -} - // PostQueryJSONBody defines parameters for PostQuery. type PostQueryJSONBody interface{} @@ -5777,6 +5739,46 @@ type GetSourcesIDHealthParams struct { ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` } +// ListStacksParams defines parameters for ListStacks. +type ListStacksParams struct { + + // The organization id of the stacks + OrgID string `json:"orgID"` + + // A collection of names to filter the list by. + Name *string `json:"name,omitempty"` + + // A collection of stackIDs to filter the list by. + StackID *string `json:"stackID,omitempty"` +} + +// CreateStackJSONBody defines parameters for CreateStack. +type CreateStackJSONBody struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + OrgID *string `json:"orgID,omitempty"` + Urls *[]string `json:"urls,omitempty"` +} + +// DeleteStackParams defines parameters for DeleteStack. +type DeleteStackParams struct { + + // The organization id of the user + OrgID string `json:"orgID"` +} + +// UpdateStackJSONBody defines parameters for UpdateStack. +type UpdateStackJSONBody struct { + AdditionalResources *[]struct { + Kind string `json:"kind"` + ResourceID string `json:"resourceID"` + TemplateMetaName *string `json:"templateMetaName,omitempty"` + } `json:"additionalResources,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + TemplateURLs *[]string `json:"templateURLs,omitempty"` +} + // GetTasksParams defines parameters for GetTasks. type GetTasksParams struct { @@ -6108,6 +6110,12 @@ type DeleteTelegrafsIDOwnersIDParams struct { ZapTraceSpan *TraceSpan `json:"Zap-Trace-Span,omitempty"` } +// ApplyTemplateJSONBody defines parameters for ApplyTemplate. +type ApplyTemplateJSONBody TemplateApply + +// ExportTemplateJSONBody defines parameters for ExportTemplate. +type ExportTemplateJSONBody TemplateExport + // GetUsersParams defines parameters for GetUsers. type GetUsersParams struct { @@ -6397,12 +6405,6 @@ type PostOrgsJSONRequestBody PostOrgsJSONBody // PatchOrgsIDRequestBody defines body for PatchOrgsID for application/json ContentType. type PatchOrgsIDJSONRequestBody PatchOrgsIDJSONBody -// PostOrgsIDInvitesRequestBody defines body for PostOrgsIDInvites for application/json ContentType. -type PostOrgsIDInvitesJSONRequestBody PostOrgsIDInvitesJSONBody - -// PostOrgsIDLabelsRequestBody defines body for PostOrgsIDLabels for application/json ContentType. -type PostOrgsIDLabelsJSONRequestBody PostOrgsIDLabelsJSONBody - // PostOrgsIDMembersRequestBody defines body for PostOrgsIDMembers for application/json ContentType. type PostOrgsIDMembersJSONRequestBody PostOrgsIDMembersJSONBody @@ -6415,18 +6417,6 @@ type PatchOrgsIDSecretsJSONRequestBody PatchOrgsIDSecretsJSONBody // PostOrgsIDSecretsRequestBody defines body for PostOrgsIDSecrets for application/json ContentType. type PostOrgsIDSecretsJSONRequestBody PostOrgsIDSecretsJSONBody -// CreatePkgRequestBody defines body for CreatePkg for application/json ContentType. -type CreatePkgJSONRequestBody CreatePkgJSONBody - -// ApplyPkgRequestBody defines body for ApplyPkg for application/json ContentType. -type ApplyPkgJSONRequestBody ApplyPkgJSONBody - -// CreateStackRequestBody defines body for CreateStack for application/json ContentType. -type CreateStackJSONRequestBody CreateStackJSONBody - -// UpdateStackRequestBody defines body for UpdateStack for application/json ContentType. -type UpdateStackJSONRequestBody UpdateStackJSONBody - // PostQueryRequestBody defines body for PostQuery for application/json ContentType. type PostQueryJSONRequestBody PostQueryJSONBody @@ -6466,6 +6456,12 @@ type PostSourcesJSONRequestBody PostSourcesJSONBody // PatchSourcesIDRequestBody defines body for PatchSourcesID for application/json ContentType. type PatchSourcesIDJSONRequestBody PatchSourcesIDJSONBody +// CreateStackRequestBody defines body for CreateStack for application/json ContentType. +type CreateStackJSONRequestBody CreateStackJSONBody + +// UpdateStackRequestBody defines body for UpdateStack for application/json ContentType. +type UpdateStackJSONRequestBody UpdateStackJSONBody + // PostTasksRequestBody defines body for PostTasks for application/json ContentType. type PostTasksJSONRequestBody PostTasksJSONBody @@ -6499,6 +6495,12 @@ type PostTelegrafsIDMembersJSONRequestBody PostTelegrafsIDMembersJSONBody // PostTelegrafsIDOwnersRequestBody defines body for PostTelegrafsIDOwners for application/json ContentType. type PostTelegrafsIDOwnersJSONRequestBody PostTelegrafsIDOwnersJSONBody +// ApplyTemplateRequestBody defines body for ApplyTemplate for application/json ContentType. +type ApplyTemplateJSONRequestBody ApplyTemplateJSONBody + +// ExportTemplateRequestBody defines body for ExportTemplate for application/json ContentType. +type ExportTemplateJSONRequestBody ExportTemplateJSONBody + // PostUsersRequestBody defines body for PostUsers for application/json ContentType. type PostUsersJSONRequestBody PostUsersJSONBody @@ -6891,25 +6893,25 @@ func (a MapVariableProperties_Values) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for PkgApply_Secrets. Returns the specified +// Getter for additional properties for Secrets. Returns the specified // element and whether it was found -func (a PkgApply_Secrets) Get(fieldName string) (value string, found bool) { +func (a Secrets) Get(fieldName string) (value string, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for PkgApply_Secrets -func (a *PkgApply_Secrets) Set(fieldName string, value string) { +// Setter for additional properties for Secrets +func (a *Secrets) Set(fieldName string, value string) { if a.AdditionalProperties == nil { a.AdditionalProperties = make(map[string]string) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for PkgApply_Secrets to handle AdditionalProperties -func (a *PkgApply_Secrets) UnmarshalJSON(b []byte) error { +// Override default JSON handling for Secrets to handle AdditionalProperties +func (a *Secrets) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { @@ -6930,8 +6932,8 @@ func (a *PkgApply_Secrets) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for PkgApply_Secrets to handle AdditionalProperties -func (a PkgApply_Secrets) MarshalJSON() ([]byte, error) { +// Override default JSON handling for Secrets to handle AdditionalProperties +func (a Secrets) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) @@ -6944,25 +6946,78 @@ func (a PkgApply_Secrets) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for Secrets. Returns the specified +// Getter for additional properties for TemplateApply_EnvRefs. Returns the specified // element and whether it was found -func (a Secrets) Get(fieldName string) (value string, found bool) { +func (a TemplateApply_EnvRefs) Get(fieldName string) (value interface{}, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for Secrets -func (a *Secrets) Set(fieldName string, value string) { +// Setter for additional properties for TemplateApply_EnvRefs +func (a *TemplateApply_EnvRefs) Set(fieldName string, value interface{}) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]interface{}) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for TemplateApply_EnvRefs to handle AdditionalProperties +func (a *TemplateApply_EnvRefs) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]interface{}) + for fieldName, fieldBuf := range object { + var fieldVal interface{} + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return errors.Wrap(err, fmt.Sprintf("error unmarshaling field %s", fieldName)) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for TemplateApply_EnvRefs to handle AdditionalProperties +func (a TemplateApply_EnvRefs) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, errors.Wrap(err, fmt.Sprintf("error marshaling '%s'", fieldName)) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for TemplateApply_Secrets. Returns the specified +// element and whether it was found +func (a TemplateApply_Secrets) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for TemplateApply_Secrets +func (a *TemplateApply_Secrets) Set(fieldName string, value string) { if a.AdditionalProperties == nil { a.AdditionalProperties = make(map[string]string) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for Secrets to handle AdditionalProperties -func (a *Secrets) UnmarshalJSON(b []byte) error { +// Override default JSON handling for TemplateApply_Secrets to handle AdditionalProperties +func (a *TemplateApply_Secrets) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { @@ -6983,8 +7038,8 @@ func (a *Secrets) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for Secrets to handle AdditionalProperties -func (a Secrets) MarshalJSON() ([]byte, error) { +// Override default JSON handling for TemplateApply_Secrets to handle AdditionalProperties +func (a TemplateApply_Secrets) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage)