chore: update to go 1.19 (#465) (#467)

* chore: upgrade go releaser to v1.13.1 (#464)

* chore: update goreleaser and actually use go 1.19

* chore: format for go 1.19

Co-authored-by: Brandon Pfeifer <bpfeifer@influxdata.com>

Co-authored-by: Brandon Pfeifer <bpfeifer@influxdata.com>
This commit is contained in:
Jeffrey Smith II
2023-01-03 16:16:12 -05:00
committed by GitHub
parent 5546ab6ea7
commit ae62da0b32
17 changed files with 386 additions and 365 deletions

View File

@ -251,7 +251,7 @@ commands:
steps: steps:
- run: - run:
name: Install goreleaser name: Install goreleaser
command: ./scripts/ci/download-goreleaser.sh v1.13.1 command: ./scripts/ci/download-goreleaser.sh v1.14.0
jobs: jobs:
lint: lint:

View File

@ -383,18 +383,18 @@ func (r ApiGetAuthorizationsRequest) ExecuteWithHttpInfo() (Authorizations, *_ne
} }
/* /*
* GetAuthorizations List authorizations - GetAuthorizations List authorizations
* Retrieves a list of authorizations. - Retrieves a list of authorizations.
To limit which authorizations are returned, pass query parameters in your request. To limit which authorizations are returned, pass query parameters in your request.
If no query parameters are passed, InfluxDB returns all authorizations. If no query parameters are passed, InfluxDB returns all authorizations.
#### InfluxDB OSS #### InfluxDB OSS
- Returns - Returns
[API token]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#token) values in authorizations. [API token]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#token) values in authorizations.
- If the request uses an _[operator token](https://docs.influxdata.com/influxdb/latest/security/tokens/#operator-token)_, - If the request uses an _[operator token](https://docs.influxdata.com/influxdb/latest/security/tokens/#operator-token)_,
InfluxDB OSS returns authorizations for all organizations in the instance. InfluxDB OSS returns authorizations for all organizations in the instance.
#### Required permissions #### Required permissions
@ -404,8 +404,8 @@ If no query parameters are passed, InfluxDB returns all authorizations.
- [View tokens]({{% INFLUXDB_DOCS_URL %}}/security/tokens/view-tokens/) - [View tokens]({{% INFLUXDB_DOCS_URL %}}/security/tokens/view-tokens/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiGetAuthorizationsRequest - @return ApiGetAuthorizationsRequest
*/ */
func (a *AuthorizationsApiService) GetAuthorizations(ctx _context.Context) ApiGetAuthorizationsRequest { func (a *AuthorizationsApiService) GetAuthorizations(ctx _context.Context) ApiGetAuthorizationsRequest {
return ApiGetAuthorizationsRequest{ return ApiGetAuthorizationsRequest{
@ -940,8 +940,8 @@ func (r ApiPostAuthorizationsRequest) ExecuteWithHttpInfo() (Authorization, *_ne
} }
/* /*
* PostAuthorizations Create an authorization - PostAuthorizations Create an authorization
* Creates an authorization. - Creates an authorization.
Use this endpoint to create an authorization, which generates an API token Use this endpoint to create an authorization, which generates an API token
with permissions to `read` or `write` to a specific resource or `type` of resource. with permissions to `read` or `write` to a specific resource or `type` of resource.
@ -955,11 +955,11 @@ Keep the following in mind when creating and updating authorizations:
#### Limitations #### Limitations
- In InfluxDB OSS, API tokens are visible to the user who created the authorization and to any - In InfluxDB OSS, API tokens are visible to the user who created the authorization and to any
user with an _[operator token]({{% INFLUXDB_DOCS_URL %}}/security/tokens/#operator-token)_. user with an _[operator token]({{% INFLUXDB_DOCS_URL %}}/security/tokens/#operator-token)_.
- Even if an API token has `read-authorizations` permission, the - Even if an API token has `read-authorizations` permission, the
token can't be used to view its authorization details. token can't be used to view its authorization details.
- Tokens stop working when the user who created the token is deleted. - Tokens stop working when the user who created the token is deleted.
We recommend creating a generic user to create and manage tokens for writing data. We recommend creating a generic user to create and manage tokens for writing data.
@ -967,8 +967,8 @@ We recommend creating a generic user to create and manage tokens for writing dat
- [Create a token]({{% INFLUXDB_DOCS_URL %}}/security/tokens/create-token/) - [Create a token]({{% INFLUXDB_DOCS_URL %}}/security/tokens/create-token/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiPostAuthorizationsRequest - @return ApiPostAuthorizationsRequest
*/ */
func (a *AuthorizationsApiService) PostAuthorizations(ctx _context.Context) ApiPostAuthorizationsRequest { func (a *AuthorizationsApiService) PostAuthorizations(ctx _context.Context) ApiPostAuthorizationsRequest {
return ApiPostAuthorizationsRequest{ return ApiPostAuthorizationsRequest{

View File

@ -122,13 +122,14 @@ func (r ApiGetBackupKVRequest) ExecuteWithHttpInfo() (*_nethttp.Response, *_neth
} }
/* /*
* GetBackupKV Download snapshot of metadata stored in the server's embedded KV store. Don't use with InfluxDB versions greater than InfluxDB 2.1.x. - GetBackupKV Download snapshot of metadata stored in the server's embedded KV store. Don't use with InfluxDB versions greater than InfluxDB 2.1.x.
* Retrieves a snapshot of metadata stored in the server's embedded KV store. - Retrieves a snapshot of metadata stored in the server's embedded KV store.
InfluxDB versions greater than 2.1.x don't include metadata stored in embedded SQL; InfluxDB versions greater than 2.1.x don't include metadata stored in embedded SQL;
avoid using this endpoint with versions greater than 2.1.x. avoid using this endpoint with versions greater than 2.1.x.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiGetBackupKVRequest - @return ApiGetBackupKVRequest
*/ */
func (a *BackupApiService) GetBackupKV(ctx _context.Context) ApiGetBackupKVRequest { func (a *BackupApiService) GetBackupKV(ctx _context.Context) ApiGetBackupKVRequest {
return ApiGetBackupKVRequest{ return ApiGetBackupKVRequest{

View File

@ -221,8 +221,9 @@ func (r ApiCreateMeasurementSchemaRequest) ExecuteWithHttpInfo() (MeasurementSch
} }
/* /*
* CreateMeasurementSchema Create a measurement schema for a bucket - CreateMeasurementSchema Create a measurement schema for a bucket
* Creates an _explict_ measurement [schema]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#schema) - Creates an _explict_ measurement [schema]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#schema)
for a bucket. for a bucket.
_Explicit_ schemas are used to enforce column names, tags, fields, and data _Explicit_ schemas are used to enforce column names, tags, fields, and data
@ -243,9 +244,9 @@ schemas.
- [Manage bucket schemas]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/bucket-schema/). - [Manage bucket schemas]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/bucket-schema/).
- [Create a bucket with an explicit schema]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/create-bucket/#create-a-bucket-with-an-explicit-schema) - [Create a bucket with an explicit schema]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/create-bucket/#create-a-bucket-with-an-explicit-schema)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param bucketID A bucket ID. Adds a schema for the specified bucket. - @param bucketID A bucket ID. Adds a schema for the specified bucket.
* @return ApiCreateMeasurementSchemaRequest - @return ApiCreateMeasurementSchemaRequest
*/ */
func (a *BucketSchemasApiService) CreateMeasurementSchema(ctx _context.Context, bucketID string) ApiCreateMeasurementSchemaRequest { func (a *BucketSchemasApiService) CreateMeasurementSchema(ctx _context.Context, bucketID string) ApiCreateMeasurementSchemaRequest {
return ApiCreateMeasurementSchemaRequest{ return ApiCreateMeasurementSchemaRequest{
@ -443,13 +444,13 @@ func (r ApiGetMeasurementSchemaRequest) ExecuteWithHttpInfo() (MeasurementSchema
} }
/* /*
* GetMeasurementSchema Retrieve a measurement schema * GetMeasurementSchema Retrieve a measurement schema
* Retrieves an explicit measurement [schema]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#schema). * Retrieves an explicit measurement [schema]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#schema).
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param bucketID A bucket ID. Retrieves schemas for the specified bucket. * @param bucketID A bucket ID. Retrieves schemas for the specified bucket.
* @param measurementID The measurement schema ID. Specifies the measurement schema to retrieve. * @param measurementID The measurement schema ID. Specifies the measurement schema to retrieve.
* @return ApiGetMeasurementSchemaRequest * @return ApiGetMeasurementSchemaRequest
*/ */
func (a *BucketSchemasApiService) GetMeasurementSchema(ctx _context.Context, bucketID string, measurementID string) ApiGetMeasurementSchemaRequest { func (a *BucketSchemasApiService) GetMeasurementSchema(ctx _context.Context, bucketID string, measurementID string) ApiGetMeasurementSchemaRequest {
return ApiGetMeasurementSchemaRequest{ return ApiGetMeasurementSchemaRequest{
@ -636,8 +637,9 @@ func (r ApiGetMeasurementSchemasRequest) ExecuteWithHttpInfo() (MeasurementSchem
} }
/* /*
* GetMeasurementSchemas List measurement schemas of a bucket - GetMeasurementSchemas List measurement schemas of a bucket
* Retrieves a list of _explicit_ - Retrieves a list of _explicit_
[schemas]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#schema) [schemas]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#schema)
(`"schemaType": "explicit"`) for a bucket. (`"schemaType": "explicit"`) for a bucket.
@ -651,9 +653,9 @@ that conforms to your data.
- [Using bucket schemas](https://www.influxdata.com/blog/new-bucket-schema-option-protect-from-unwanted-schema-changes/) - [Using bucket schemas](https://www.influxdata.com/blog/new-bucket-schema-option-protect-from-unwanted-schema-changes/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param bucketID A bucket ID. Lists measurement schemas for the specified bucket. - @param bucketID A bucket ID. Lists measurement schemas for the specified bucket.
* @return ApiGetMeasurementSchemasRequest - @return ApiGetMeasurementSchemasRequest
*/ */
func (a *BucketSchemasApiService) GetMeasurementSchemas(ctx _context.Context, bucketID string) ApiGetMeasurementSchemasRequest { func (a *BucketSchemasApiService) GetMeasurementSchemas(ctx _context.Context, bucketID string) ApiGetMeasurementSchemasRequest {
return ApiGetMeasurementSchemasRequest{ return ApiGetMeasurementSchemasRequest{
@ -861,8 +863,8 @@ func (r ApiUpdateMeasurementSchemaRequest) ExecuteWithHttpInfo() (MeasurementSch
} }
/* /*
* UpdateMeasurementSchema Update a measurement schema - UpdateMeasurementSchema Update a measurement schema
* Updates a measurement [schema]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#schema). - Updates a measurement [schema]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#schema).
Use this endpoint to update the fields (`name`, `type`, and `dataType`) of a Use this endpoint to update the fields (`name`, `type`, and `dataType`) of a
measurement schema. measurement schema.
@ -876,10 +878,10 @@ measurement schema.
- [Manage bucket schemas]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/bucket-schema/). - [Manage bucket schemas]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/bucket-schema/).
- [Using bucket schemas](https://www.influxdata.com/blog/new-bucket-schema-option-protect-from-unwanted-schema-changes/). - [Using bucket schemas](https://www.influxdata.com/blog/new-bucket-schema-option-protect-from-unwanted-schema-changes/).
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param bucketID A bucket ID. Specifies the bucket to retrieve schemas for. - @param bucketID A bucket ID. Specifies the bucket to retrieve schemas for.
* @param measurementID A measurement schema ID. Retrieves the specified measurement schema. - @param measurementID A measurement schema ID. Retrieves the specified measurement schema.
* @return ApiUpdateMeasurementSchemaRequest - @return ApiUpdateMeasurementSchemaRequest
*/ */
func (a *BucketSchemasApiService) UpdateMeasurementSchema(ctx _context.Context, bucketID string, measurementID string) ApiUpdateMeasurementSchemaRequest { func (a *BucketSchemasApiService) UpdateMeasurementSchema(ctx _context.Context, bucketID string, measurementID string) ApiUpdateMeasurementSchemaRequest {
return ApiUpdateMeasurementSchemaRequest{ return ApiUpdateMeasurementSchemaRequest{

View File

@ -271,16 +271,16 @@ func (r ApiDeleteBucketsIDRequest) ExecuteWithHttpInfo() (*_nethttp.Response, er
} }
/* /*
* DeleteBucketsID Delete a bucket - DeleteBucketsID Delete a bucket
* Deletes a bucket and all associated records. - Deletes a bucket and all associated records.
#### InfluxDB Cloud #### InfluxDB Cloud
- Does the following when you send a delete request: - Does the following when you send a delete request:
1. Validates the request and queues the delete. 1. Validates the request and queues the delete.
2. Returns an HTTP `204` status code if queued; _error_ otherwise. 2. Returns an HTTP `204` status code if queued; _error_ otherwise.
3. Handles the delete asynchronously. 3. Handles the delete asynchronously.
#### InfluxDB OSS #### InfluxDB OSS
@ -295,9 +295,9 @@ and then responds with success or failure.
- [Delete a bucket]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/delete-bucket/#delete-a-bucket-in-the-influxdb-ui) - [Delete a bucket]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/delete-bucket/#delete-a-bucket-in-the-influxdb-ui)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param bucketID Bucket ID. The ID of the bucket to delete. - @param bucketID Bucket ID. The ID of the bucket to delete.
* @return ApiDeleteBucketsIDRequest - @return ApiDeleteBucketsIDRequest
*/ */
func (a *BucketsApiService) DeleteBucketsID(ctx _context.Context, bucketID string) ApiDeleteBucketsIDRequest { func (a *BucketsApiService) DeleteBucketsID(ctx _context.Context, bucketID string) ApiDeleteBucketsIDRequest {
return ApiDeleteBucketsIDRequest{ return ApiDeleteBucketsIDRequest{
@ -523,8 +523,8 @@ func (r ApiGetBucketsRequest) ExecuteWithHttpInfo() (Buckets, *_nethttp.Response
} }
/* /*
* GetBuckets List buckets - GetBuckets List buckets
* Retrieves a list of [buckets]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#bucket). - Retrieves a list of [buckets]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#bucket).
InfluxDB retrieves buckets owned by the InfluxDB retrieves buckets owned by the
[organization]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#organization) [organization]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#organization)
@ -540,11 +540,11 @@ default `limit`.
#### InfluxDB OSS #### InfluxDB OSS
- If you use an _[operator token]({{% INFLUXDB_DOCS_URL %}}/security/tokens/#operator-token)_ - If you use an _[operator token]({{% INFLUXDB_DOCS_URL %}}/security/tokens/#operator-token)_
to authenticate your request, InfluxDB retrieves resources for _all to authenticate your request, InfluxDB retrieves resources for _all
organizations_ in the instance. organizations_ in the instance.
To retrieve resources for only a specific organization, use the To retrieve resources for only a specific organization, use the
`org` parameter or the `orgID` parameter to specify the organization. `org` parameter or the `orgID` parameter to specify the organization.
#### Required permissions #### Required permissions
@ -557,8 +557,8 @@ default `limit`.
- [Manage buckets]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/) - [Manage buckets]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiGetBucketsRequest - @return ApiGetBucketsRequest
*/ */
func (a *BucketsApiService) GetBuckets(ctx _context.Context) ApiGetBucketsRequest { func (a *BucketsApiService) GetBuckets(ctx _context.Context) ApiGetBucketsRequest {
return ApiGetBucketsRequest{ return ApiGetBucketsRequest{
@ -749,14 +749,14 @@ func (r ApiGetBucketsIDRequest) ExecuteWithHttpInfo() (Bucket, *_nethttp.Respons
} }
/* /*
* GetBucketsID Retrieve a bucket - GetBucketsID Retrieve a bucket
* Retrieves a bucket. - Retrieves a bucket.
Use this endpoint to retrieve information for a specific bucket. Use this endpoint to retrieve information for a specific bucket.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param bucketID The ID of the bucket to retrieve. - @param bucketID The ID of the bucket to retrieve.
* @return ApiGetBucketsIDRequest - @return ApiGetBucketsIDRequest
*/ */
func (a *BucketsApiService) GetBucketsID(ctx _context.Context, bucketID string) ApiGetBucketsIDRequest { func (a *BucketsApiService) GetBucketsID(ctx _context.Context, bucketID string) ApiGetBucketsIDRequest {
return ApiGetBucketsIDRequest{ return ApiGetBucketsIDRequest{
@ -948,8 +948,8 @@ func (r ApiPatchBucketsIDRequest) ExecuteWithHttpInfo() (Bucket, *_nethttp.Respo
} }
/* /*
* PatchBucketsID Update a bucket - PatchBucketsID Update a bucket
* Updates a bucket. - Updates a bucket.
Use this endpoint to update properties Use this endpoint to update properties
(`name`, `description`, and `retentionRules`) of a bucket. (`name`, `description`, and `retentionRules`) of a bucket.
@ -967,9 +967,9 @@ provide `retentionRules`, InfluxDB responds with an HTTP `403` status code.
- [Update a bucket]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/update-bucket/) - [Update a bucket]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/update-bucket/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param bucketID The bucket ID. - @param bucketID The bucket ID.
* @return ApiPatchBucketsIDRequest - @return ApiPatchBucketsIDRequest
*/ */
func (a *BucketsApiService) PatchBucketsID(ctx _context.Context, bucketID string) ApiPatchBucketsIDRequest { func (a *BucketsApiService) PatchBucketsID(ctx _context.Context, bucketID string) ApiPatchBucketsIDRequest {
return ApiPatchBucketsIDRequest{ return ApiPatchBucketsIDRequest{
@ -1179,8 +1179,9 @@ func (r ApiPostBucketsRequest) ExecuteWithHttpInfo() (Bucket, *_nethttp.Response
} }
/* /*
* PostBuckets Create a bucket - PostBuckets Create a bucket
* Creates a [bucket]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#bucket) - Creates a [bucket]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#bucket)
and returns the bucket resource. and returns the bucket resource.
The default data The default data
[retention period]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#retention-period) [retention period]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#retention-period)
@ -1205,8 +1206,8 @@ For additional information regarding InfluxDB Cloud offerings, see
- [Create a bucket]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/create-bucket/) - [Create a bucket]({{% INFLUXDB_DOCS_URL %}}/organizations/buckets/create-bucket/)
- [Create bucket CLI reference]({{% INFLUXDB_DOCS_URL %}}/reference/cli/influx/bucket/create) - [Create bucket CLI reference]({{% INFLUXDB_DOCS_URL %}}/reference/cli/influx/bucket/create)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiPostBucketsRequest - @return ApiPostBucketsRequest
*/ */
func (a *BucketsApiService) PostBuckets(ctx _context.Context) ApiPostBucketsRequest { func (a *BucketsApiService) PostBuckets(ctx _context.Context) ApiPostBucketsRequest {
return ApiPostBucketsRequest{ return ApiPostBucketsRequest{

View File

@ -82,8 +82,8 @@ func (r ApiGetConfigRequest) ExecuteWithHttpInfo() (Config, *_nethttp.Response,
} }
/* /*
* GetConfig Retrieve runtime configuration - GetConfig Retrieve runtime configuration
* Returns the active runtime configuration of the InfluxDB instance. - Returns the active runtime configuration of the InfluxDB instance.
In InfluxDB v2.2+, use this endpoint to view your active runtime configuration, In InfluxDB v2.2+, use this endpoint to view your active runtime configuration,
including flags and environment variables. including flags and environment variables.
@ -92,8 +92,8 @@ including flags and environment variables.
- [View your runtime server configuration]({{% INFLUXDB_DOCS_URL %}}/reference/config-options/#view-your-runtime-server-configuration) - [View your runtime server configuration]({{% INFLUXDB_DOCS_URL %}}/reference/config-options/#view-your-runtime-server-configuration)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiGetConfigRequest - @return ApiGetConfigRequest
*/ */
func (a *ConfigApiService) GetConfig(ctx _context.Context) ApiGetConfigRequest { func (a *ConfigApiService) GetConfig(ctx _context.Context) ApiGetConfigRequest {
return ApiGetConfigRequest{ return ApiGetConfigRequest{

View File

@ -157,8 +157,8 @@ func (r ApiPostDeleteRequest) ExecuteWithHttpInfo() (*_nethttp.Response, error)
} }
/* /*
* PostDelete Delete data - PostDelete Delete data
* Deletes data from a bucket. - Deletes data from a bucket.
Use this endpoint to delete points from a bucket in a specified time range. Use this endpoint to delete points from a bucket in a specified time range.
@ -166,9 +166,9 @@ Use this endpoint to delete points from a bucket in a specified time range.
- Does the following when you send a delete request: - Does the following when you send a delete request:
1. Validates the request and queues the delete. 1. Validates the request and queues the delete.
2. If queued, responds with _success_ (HTTP `2xx` status code); _error_ otherwise. 2. If queued, responds with _success_ (HTTP `2xx` status code); _error_ otherwise.
3. Handles the delete asynchronously and reaches eventual consistency. 3. Handles the delete asynchronously and reaches eventual consistency.
To ensure that InfluxDB Cloud handles writes and deletes in the order you request them, To ensure that InfluxDB Cloud handles writes and deletes in the order you request them,
wait for a success response (HTTP `2xx` status code) before you send the next request. wait for a success response (HTTP `2xx` status code) before you send the next request.
@ -178,8 +178,8 @@ when you receive the response.
#### InfluxDB OSS #### InfluxDB OSS
- Validates the request, handles the delete synchronously, - Validates the request, handles the delete synchronously,
and then responds with success or failure. and then responds with success or failure.
#### Required permissions #### Required permissions
@ -194,13 +194,16 @@ For more information, see [limits and adjustable quotas](https://docs.influxdata
#### Related guides #### Related guides
- [Delete data]({{% INFLUXDB_DOCS_URL %}}/write-data/delete-data/) - [Delete data]({{% INFLUXDB_DOCS_URL %}}/write-data/delete-data/)
- Learn how to use [delete predicate syntax]({{% INFLUXDB_DOCS_URL %}}/reference/syntax/delete-predicate/).
- Learn how InfluxDB handles [deleted tags](https://docs.influxdata.com/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagkeys/)
and [deleted fields](https://docs.influxdata.com/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementfieldkeys/).
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - Learn how to use [delete predicate syntax]({{% INFLUXDB_DOCS_URL %}}/reference/syntax/delete-predicate/).
* @return ApiPostDeleteRequest
- Learn how InfluxDB handles [deleted tags](https://docs.influxdata.com/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagkeys/)
and [deleted fields](https://docs.influxdata.com/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementfieldkeys/).
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiPostDeleteRequest
*/ */
func (a *DeleteApiService) PostDelete(ctx _context.Context) ApiPostDeleteRequest { func (a *DeleteApiService) PostDelete(ctx _context.Context) ApiPostDeleteRequest {
return ApiPostDeleteRequest{ return ApiPostDeleteRequest{

View File

@ -382,15 +382,15 @@ func (r ApiGetScriptsRequest) ExecuteWithHttpInfo() (Scripts, *_nethttp.Response
} }
/* /*
* GetScripts List scripts - GetScripts List scripts
* Retrieves a list of [scripts](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/). - Retrieves a list of [scripts](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/).
#### Related guides #### Related guides
- [Invoke custom scripts](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/) - [Invoke custom scripts](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiGetScriptsRequest - @return ApiGetScriptsRequest
*/ */
func (a *InvokableScriptsApiService) GetScripts(ctx _context.Context) ApiGetScriptsRequest { func (a *InvokableScriptsApiService) GetScripts(ctx _context.Context) ApiGetScriptsRequest {
return ApiGetScriptsRequest{ return ApiGetScriptsRequest{
@ -582,12 +582,12 @@ func (r ApiGetScriptsIDRequest) ExecuteWithHttpInfo() (Script, *_nethttp.Respons
} }
/* /*
* GetScriptsID Retrieve a script * GetScriptsID Retrieve a script
* Retrieves a [script](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/). * Retrieves a [script](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/).
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param scriptID A script ID. Retrieves the specified script. * @param scriptID A script ID. Retrieves the specified script.
* @return ApiGetScriptsIDRequest * @return ApiGetScriptsIDRequest
*/ */
func (a *InvokableScriptsApiService) GetScriptsID(ctx _context.Context, scriptID string) ApiGetScriptsIDRequest { func (a *InvokableScriptsApiService) GetScriptsID(ctx _context.Context, scriptID string) ApiGetScriptsIDRequest {
return ApiGetScriptsIDRequest{ return ApiGetScriptsIDRequest{
@ -756,14 +756,14 @@ func (r ApiPatchScriptsIDRequest) ExecuteWithHttpInfo() (Script, *_nethttp.Respo
} }
/* /*
* PatchScriptsID Update a script - PatchScriptsID Update a script
* Updates a [script](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/) and returns the script. - Updates a [script](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/) and returns the script.
Use this endpoint to update the properties (`name`, `description`, and `script`) of an invokable script. Use this endpoint to update the properties (`name`, `description`, and `script`) of an invokable script.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param scriptID A script ID. Updates the specified script. - @param scriptID A script ID. Updates the specified script.
* @return ApiPatchScriptsIDRequest - @return ApiPatchScriptsIDRequest
*/ */
func (a *InvokableScriptsApiService) PatchScriptsID(ctx _context.Context, scriptID string) ApiPatchScriptsIDRequest { func (a *InvokableScriptsApiService) PatchScriptsID(ctx _context.Context, scriptID string) ApiPatchScriptsIDRequest {
return ApiPatchScriptsIDRequest{ return ApiPatchScriptsIDRequest{
@ -928,8 +928,9 @@ func (r ApiPostScriptsRequest) ExecuteWithHttpInfo() (Script, *_nethttp.Response
} }
/* /*
* PostScripts Create a script - PostScripts Create a script
* Creates an [invokable script](https://docs.influxdata.com/resources/videos/api-invokable-scripts/) - Creates an [invokable script](https://docs.influxdata.com/resources/videos/api-invokable-scripts/)
and returns the script. and returns the script.
#### Related guides #### Related guides
@ -937,8 +938,8 @@ and returns the script.
- [Invokable scripts](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/) - [Invokable scripts](https://docs.influxdata.com/influxdb/cloud/api-guide/api-invokable-scripts/)
- [Creating custom InfluxDB endpoints](https://docs.influxdata.com/resources/videos/api-invokable-scripts/) - [Creating custom InfluxDB endpoints](https://docs.influxdata.com/resources/videos/api-invokable-scripts/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiPostScriptsRequest - @return ApiPostScriptsRequest
*/ */
func (a *InvokableScriptsApiService) PostScripts(ctx _context.Context) ApiPostScriptsRequest { func (a *InvokableScriptsApiService) PostScripts(ctx _context.Context) ApiPostScriptsRequest {
return ApiPostScriptsRequest{ return ApiPostScriptsRequest{

View File

@ -904,8 +904,8 @@ func (r ApiPostLegacyAuthorizationsRequest) ExecuteWithHttpInfo() (Authorization
} }
/* /*
* PostLegacyAuthorizations Create a legacy authorization - PostLegacyAuthorizations Create a legacy authorization
* Creates a legacy authorization and returns the legacy authorization. - Creates a legacy authorization and returns the legacy authorization.
#### Required permissions #### Required permissions
@ -913,8 +913,8 @@ func (r ApiPostLegacyAuthorizationsRequest) ExecuteWithHttpInfo() (Authorization
*`USER_ID`* is the ID of the user that you want to scope the authorization to. *`USER_ID`* is the ID of the user that you want to scope the authorization to.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiPostLegacyAuthorizationsRequest - @return ApiPostLegacyAuthorizationsRequest
*/ */
func (a *LegacyAuthorizationsApiService) PostLegacyAuthorizations(ctx _context.Context) ApiPostLegacyAuthorizationsRequest { func (a *LegacyAuthorizationsApiService) PostLegacyAuthorizations(ctx _context.Context) ApiPostLegacyAuthorizationsRequest {
return ApiPostLegacyAuthorizationsRequest{ return ApiPostLegacyAuthorizationsRequest{

View File

@ -519,8 +519,8 @@ func (r ApiDeleteOrgsIDRequest) ExecuteWithHttpInfo() (*_nethttp.Response, error
} }
/* /*
* DeleteOrgsID Delete an organization - DeleteOrgsID Delete an organization
* Deletes an organization. - Deletes an organization.
Deleting an organization from InfluxDB Cloud can't be undone. Deleting an organization from InfluxDB Cloud can't be undone.
Once deleted, all data associated with the organization is removed. Once deleted, all data associated with the organization is removed.
@ -529,9 +529,9 @@ Once deleted, all data associated with the organization is removed.
- Does the following when you send a delete request: - Does the following when you send a delete request:
1. Validates the request and queues the delete. 1. Validates the request and queues the delete.
2. Returns an HTTP `204` status code if queued; _error_ otherwise. 2. Returns an HTTP `204` status code if queued; _error_ otherwise.
3. Handles the delete asynchronously. 3. Handles the delete asynchronously.
#### InfluxDB OSS #### InfluxDB OSS
@ -546,9 +546,9 @@ and then responds with success or failure.
- [Delete organizations]({{% INFLUXDB_DOCS_URL %}}/organizations/delete-orgs/) - [Delete organizations]({{% INFLUXDB_DOCS_URL %}}/organizations/delete-orgs/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param orgID The ID of the organization to delete. - @param orgID The ID of the organization to delete.
* @return ApiDeleteOrgsIDRequest - @return ApiDeleteOrgsIDRequest
*/ */
func (a *OrganizationsApiService) DeleteOrgsID(ctx _context.Context, orgID string) ApiDeleteOrgsIDRequest { func (a *OrganizationsApiService) DeleteOrgsID(ctx _context.Context, orgID string) ApiDeleteOrgsIDRequest {
return ApiDeleteOrgsIDRequest{ return ApiDeleteOrgsIDRequest{
@ -718,16 +718,16 @@ func (r ApiDeleteOrgsIDMembersIDRequest) ExecuteWithHttpInfo() (*_nethttp.Respon
} }
/* /*
* DeleteOrgsIDMembersID Remove a member from an organization - DeleteOrgsIDMembersID Remove a member from an organization
* Removes a member from an organization. - Removes a member from an organization.
Use this endpoint to remove a user's member privileges from a bucket. This Use this endpoint to remove a user's member privileges from a bucket. This
removes the user's `read` and `write` permissions from the organization. removes the user's `read` and `write` permissions from the organization.
#### InfluxDB Cloud #### InfluxDB Cloud
- Doesn't use `owner` and `member` roles. - Doesn't use `owner` and `member` roles.
Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions. Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions.
#### Limitations #### Limitations
@ -745,10 +745,10 @@ owner from.
- [Manage members]({{% INFLUXDB_DOCS_URL %}}/organizations/members/) - [Manage members]({{% INFLUXDB_DOCS_URL %}}/organizations/members/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param userID The ID of the user to remove. - @param userID The ID of the user to remove.
* @param orgID The ID of the organization to remove a user from. - @param orgID The ID of the organization to remove a user from.
* @return ApiDeleteOrgsIDMembersIDRequest - @return ApiDeleteOrgsIDMembersIDRequest
*/ */
func (a *OrganizationsApiService) DeleteOrgsIDMembersID(ctx _context.Context, userID string, orgID string) ApiDeleteOrgsIDMembersIDRequest { func (a *OrganizationsApiService) DeleteOrgsIDMembersID(ctx _context.Context, userID string, orgID string) ApiDeleteOrgsIDMembersIDRequest {
return ApiDeleteOrgsIDMembersIDRequest{ return ApiDeleteOrgsIDMembersIDRequest{
@ -909,16 +909,17 @@ func (r ApiDeleteOrgsIDOwnersIDRequest) ExecuteWithHttpInfo() (*_nethttp.Respons
} }
/* /*
* DeleteOrgsIDOwnersID Remove an owner from an organization - DeleteOrgsIDOwnersID Remove an owner from an organization
* Removes an [owner]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#owner) from - Removes an [owner]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#owner) from
the organization. the organization.
Organization owners have permission to delete organizations and remove user and member Organization owners have permission to delete organizations and remove user and member
permissions from the organization. permissions from the organization.
#### InfluxDB Cloud #### InfluxDB Cloud
- Doesn't use `owner` and `member` roles. - Doesn't use `owner` and `member` roles.
Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions. Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions.
#### Limitations #### Limitations
@ -935,10 +936,10 @@ remove an owner from.
#### Related endpoints #### Related endpoints
- [Authorizations](#tag/Authorizations) - [Authorizations](#tag/Authorizations)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param userID The ID of the user to remove. - @param userID The ID of the user to remove.
* @param orgID The ID of the organization to remove an owner from. - @param orgID The ID of the organization to remove an owner from.
* @return ApiDeleteOrgsIDOwnersIDRequest - @return ApiDeleteOrgsIDOwnersIDRequest
*/ */
func (a *OrganizationsApiService) DeleteOrgsIDOwnersID(ctx _context.Context, userID string, orgID string) ApiDeleteOrgsIDOwnersIDRequest { func (a *OrganizationsApiService) DeleteOrgsIDOwnersID(ctx _context.Context, userID string, orgID string) ApiDeleteOrgsIDOwnersIDRequest {
return ApiDeleteOrgsIDOwnersIDRequest{ return ApiDeleteOrgsIDOwnersIDRequest{
@ -1135,8 +1136,8 @@ func (r ApiGetOrgsRequest) ExecuteWithHttpInfo() (Organizations, *_nethttp.Respo
} }
/* /*
* GetOrgs List organizations - GetOrgs List organizations
* Retrieves a list of [organizations]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#organization/). - Retrieves a list of [organizations]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#organization/).
To limit which organizations are returned, pass query parameters in your request. To limit which organizations are returned, pass query parameters in your request.
If no query parameters are passed, InfluxDB returns all organizations up to the default `limit`. If no query parameters are passed, InfluxDB returns all organizations up to the default `limit`.
@ -1149,8 +1150,8 @@ If no query parameters are passed, InfluxDB returns all organizations up to the
- [View organizations]({{% INFLUXDB_DOCS_URL %}}/organizations/view-orgs/) - [View organizations]({{% INFLUXDB_DOCS_URL %}}/organizations/view-orgs/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiGetOrgsRequest - @return ApiGetOrgsRequest
*/ */
func (a *OrganizationsApiService) GetOrgs(ctx _context.Context) ApiGetOrgsRequest { func (a *OrganizationsApiService) GetOrgs(ctx _context.Context) ApiGetOrgsRequest {
return ApiGetOrgsRequest{ return ApiGetOrgsRequest{
@ -1371,8 +1372,8 @@ func (r ApiGetOrgsIDRequest) ExecuteWithHttpInfo() (Organization, *_nethttp.Resp
} }
/* /*
* GetOrgsID Retrieve an organization - GetOrgsID Retrieve an organization
* Retrieves an organization. - Retrieves an organization.
Use this endpoint to retrieve information for a specific organization. Use this endpoint to retrieve information for a specific organization.
@ -1380,9 +1381,9 @@ Use this endpoint to retrieve information for a specific organization.
- [View organizations]({{% INFLUXDB_DOCS_URL %}}/organizations/view-orgs/) - [View organizations]({{% INFLUXDB_DOCS_URL %}}/organizations/view-orgs/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param orgID The ID of the organization to retrieve. - @param orgID The ID of the organization to retrieve.
* @return ApiGetOrgsIDRequest - @return ApiGetOrgsIDRequest
*/ */
func (a *OrganizationsApiService) GetOrgsID(ctx _context.Context, orgID string) ApiGetOrgsIDRequest { func (a *OrganizationsApiService) GetOrgsID(ctx _context.Context, orgID string) ApiGetOrgsIDRequest {
return ApiGetOrgsIDRequest{ return ApiGetOrgsIDRequest{
@ -1565,8 +1566,8 @@ func (r ApiGetOrgsIDMembersRequest) ExecuteWithHttpInfo() (ResourceMembers, *_ne
} }
/* /*
* GetOrgsIDMembers List all members of an organization - GetOrgsIDMembers List all members of an organization
* Retrieves a list of all users that belong to an organization. - Retrieves a list of all users that belong to an organization.
InfluxDB [users]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) have InfluxDB [users]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) have
permission to access InfluxDB. permission to access InfluxDB.
@ -1576,8 +1577,8 @@ within the organization.
#### InfluxDB Cloud #### InfluxDB Cloud
- Doesn't use `owner` and `member` roles. - Doesn't use `owner` and `member` roles.
Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions. Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions.
#### Limitations #### Limitations
@ -1596,9 +1597,9 @@ members for.
- [Manage users]({{% INFLUXDB_DOCS_URL %}}/users/) - [Manage users]({{% INFLUXDB_DOCS_URL %}}/users/)
- [Manage members]({{% INFLUXDB_DOCS_URL %}}/organizations/members/) - [Manage members]({{% INFLUXDB_DOCS_URL %}}/organizations/members/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param orgID The ID of the organization to retrieve users for. - @param orgID The ID of the organization to retrieve users for.
* @return ApiGetOrgsIDMembersRequest - @return ApiGetOrgsIDMembersRequest
*/ */
func (a *OrganizationsApiService) GetOrgsIDMembers(ctx _context.Context, orgID string) ApiGetOrgsIDMembersRequest { func (a *OrganizationsApiService) GetOrgsIDMembers(ctx _context.Context, orgID string) ApiGetOrgsIDMembersRequest {
return ApiGetOrgsIDMembersRequest{ return ApiGetOrgsIDMembersRequest{
@ -1781,13 +1782,13 @@ func (r ApiGetOrgsIDOwnersRequest) ExecuteWithHttpInfo() (ResourceOwners, *_neth
} }
/* /*
* GetOrgsIDOwners List all owners of an organization - GetOrgsIDOwners List all owners of an organization
* Retrieves a list of all owners of an organization. - Retrieves a list of all owners of an organization.
#### InfluxDB Cloud #### InfluxDB Cloud
- Doesn't use `owner` and `member` roles. - Doesn't use `owner` and `member` roles.
Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions. Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions.
#### Required permissions #### Required permissions
@ -1796,9 +1797,9 @@ func (r ApiGetOrgsIDOwnersRequest) ExecuteWithHttpInfo() (ResourceOwners, *_neth
*`INFLUX_ORG_ID`* is the ID of the organization that you want to retrieve a *`INFLUX_ORG_ID`* is the ID of the organization that you want to retrieve a
list of owners from. list of owners from.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param orgID The ID of the organization to list owners for. - @param orgID The ID of the organization to list owners for.
* @return ApiGetOrgsIDOwnersRequest - @return ApiGetOrgsIDOwnersRequest
*/ */
func (a *OrganizationsApiService) GetOrgsIDOwners(ctx _context.Context, orgID string) ApiGetOrgsIDOwnersRequest { func (a *OrganizationsApiService) GetOrgsIDOwners(ctx _context.Context, orgID string) ApiGetOrgsIDOwnersRequest {
return ApiGetOrgsIDOwnersRequest{ return ApiGetOrgsIDOwnersRequest{
@ -1979,8 +1980,8 @@ func (r ApiPatchOrgsIDRequest) ExecuteWithHttpInfo() (Organization, *_nethttp.Re
} }
/* /*
* PatchOrgsID Update an organization - PatchOrgsID Update an organization
* Updates an organization. - Updates an organization.
Use this endpoint to update properties Use this endpoint to update properties
(`name`, `description`) of an organization. (`name`, `description`) of an organization.
@ -2001,9 +2002,9 @@ in these resources as well.
- [Update an organization]({{% INFLUXDB_DOCS_URL %}}/organizations/update-org/) - [Update an organization]({{% INFLUXDB_DOCS_URL %}}/organizations/update-org/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param orgID The ID of the organization to update. - @param orgID The ID of the organization to update.
* @return ApiPatchOrgsIDRequest - @return ApiPatchOrgsIDRequest
*/ */
func (a *OrganizationsApiService) PatchOrgsID(ctx _context.Context, orgID string) ApiPatchOrgsIDRequest { func (a *OrganizationsApiService) PatchOrgsID(ctx _context.Context, orgID string) ApiPatchOrgsIDRequest {
return ApiPatchOrgsIDRequest{ return ApiPatchOrgsIDRequest{
@ -2180,8 +2181,9 @@ func (r ApiPostOrgsRequest) ExecuteWithHttpInfo() (Organization, *_nethttp.Respo
} }
/* /*
* PostOrgs Create an organization - PostOrgs Create an organization
* Creates an [organization]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#organization) - Creates an [organization]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#organization)
and returns the newly created organization. and returns the newly created organization.
#### InfluxDB Cloud #### InfluxDB Cloud
@ -2192,8 +2194,8 @@ and returns the newly created organization.
- [Manage organizations]({{% INFLUXDB_DOCS_URL %}}/organizations) - [Manage organizations]({{% INFLUXDB_DOCS_URL %}}/organizations)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiPostOrgsRequest - @return ApiPostOrgsRequest
*/ */
func (a *OrganizationsApiService) PostOrgs(ctx _context.Context) ApiPostOrgsRequest { func (a *OrganizationsApiService) PostOrgs(ctx _context.Context) ApiPostOrgsRequest {
return ApiPostOrgsRequest{ return ApiPostOrgsRequest{
@ -2377,8 +2379,8 @@ func (r ApiPostOrgsIDMembersRequest) ExecuteWithHttpInfo() (ResourceMember, *_ne
} }
/* /*
* PostOrgsIDMembers Add a member to an organization - PostOrgsIDMembers Add a member to an organization
* Add a user to an organization. - Add a user to an organization.
InfluxDB [users]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) have InfluxDB [users]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) have
permission to access InfluxDB. permission to access InfluxDB.
@ -2387,8 +2389,8 @@ permission to access InfluxDB.
within the organization. within the organization.
#### InfluxDB Cloud #### InfluxDB Cloud
- Doesn't use `owner` and `member` roles. - Doesn't use `owner` and `member` roles.
Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions. Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions.
#### Limitations #### Limitations
@ -2406,9 +2408,9 @@ within the organization.
- [Manage users]({{% INFLUXDB_DOCS_URL %}}/users/) - [Manage users]({{% INFLUXDB_DOCS_URL %}}/users/)
- [Manage members]({{% INFLUXDB_DOCS_URL %}}/organizations/members/) - [Manage members]({{% INFLUXDB_DOCS_URL %}}/organizations/members/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param orgID The ID of the organization. - @param orgID The ID of the organization.
* @return ApiPostOrgsIDMembersRequest - @return ApiPostOrgsIDMembersRequest
*/ */
func (a *OrganizationsApiService) PostOrgsIDMembers(ctx _context.Context, orgID string) ApiPostOrgsIDMembersRequest { func (a *OrganizationsApiService) PostOrgsIDMembers(ctx _context.Context, orgID string) ApiPostOrgsIDMembersRequest {
return ApiPostOrgsIDMembersRequest{ return ApiPostOrgsIDMembersRequest{
@ -2594,15 +2596,15 @@ func (r ApiPostOrgsIDOwnersRequest) ExecuteWithHttpInfo() (ResourceOwner, *_neth
} }
/* /*
* PostOrgsIDOwners Add an owner to an organization - PostOrgsIDOwners Add an owner to an organization
* Adds an owner to an organization. - Adds an owner to an organization.
Use this endpoint to assign the organization `owner` role to a user. Use this endpoint to assign the organization `owner` role to a user.
#### InfluxDB Cloud #### InfluxDB Cloud
- Doesn't use `owner` and `member` roles. - Doesn't use `owner` and `member` roles.
Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions. Use [`/api/v2/authorizations`](#tag/Authorizations) to assign user permissions.
#### Required permissions #### Required permissions
@ -2614,9 +2616,9 @@ Use this endpoint to assign the organization `owner` role to a user.
- [Authorizations](#tag/Authorizations) - [Authorizations](#tag/Authorizations)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param orgID The ID of the organization that you want to add an owner for. - @param orgID The ID of the organization that you want to add an owner for.
* @return ApiPostOrgsIDOwnersRequest - @return ApiPostOrgsIDOwnersRequest
*/ */
func (a *OrganizationsApiService) PostOrgsIDOwners(ctx _context.Context, orgID string) ApiPostOrgsIDOwnersRequest { func (a *OrganizationsApiService) PostOrgsIDOwners(ctx _context.Context, orgID string) ApiPostOrgsIDOwnersRequest {
return ApiPostOrgsIDOwnersRequest{ return ApiPostOrgsIDOwnersRequest{

View File

@ -106,8 +106,8 @@ func (r ApiGetPingRequest) ExecuteWithHttpInfo() (*_nethttp.Response, error) {
} }
/* /*
* GetPing Get the status of the instance - GetPing Get the status of the instance
* Retrieves the status and InfluxDB version of the instance. - Retrieves the status and InfluxDB version of the instance.
Use this endpoint to monitor uptime for the InfluxDB instance. The response Use this endpoint to monitor uptime for the InfluxDB instance. The response
returns a HTTP `204` status code to inform you the instance is available. returns a HTTP `204` status code to inform you the instance is available.
@ -120,8 +120,8 @@ returns a HTTP `204` status code to inform you the instance is available.
- [Influx ping]({{% INFLUXDB_DOCS_URL %}}/reference/cli/influx/ping/) - [Influx ping]({{% INFLUXDB_DOCS_URL %}}/reference/cli/influx/ping/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiGetPingRequest - @return ApiGetPingRequest
*/ */
func (a *PingApiService) GetPing(ctx _context.Context) ApiGetPingRequest { func (a *PingApiService) GetPing(ctx _context.Context) ApiGetPingRequest {
return ApiGetPingRequest{ return ApiGetPingRequest{
@ -229,8 +229,8 @@ func (r ApiHeadPingRequest) ExecuteWithHttpInfo() (*_nethttp.Response, error) {
} }
/* /*
* HeadPing Get the status of the instance - HeadPing Get the status of the instance
* Returns the status and InfluxDB version of the instance. - Returns the status and InfluxDB version of the instance.
Use this endpoint to monitor uptime for the InfluxDB instance. The response Use this endpoint to monitor uptime for the InfluxDB instance. The response
returns a HTTP `204` status code to inform you the instance is available. returns a HTTP `204` status code to inform you the instance is available.
@ -243,8 +243,8 @@ returns a HTTP `204` status code to inform you the instance is available.
- [Influx ping]({{% INFLUXDB_DOCS_URL %}}/reference/cli/influx/ping/) - [Influx ping]({{% INFLUXDB_DOCS_URL %}}/reference/cli/influx/ping/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiHeadPingRequest - @return ApiHeadPingRequest
*/ */
func (a *PingApiService) HeadPing(ctx _context.Context) ApiHeadPingRequest { func (a *PingApiService) HeadPing(ctx _context.Context) ApiHeadPingRequest {
return ApiHeadPingRequest{ return ApiHeadPingRequest{

View File

@ -97,8 +97,9 @@ func (r ApiPostSigninRequest) ExecuteWithHttpInfo() (*_nethttp.Response, error)
} }
/* /*
* PostSignin Create a user session. - PostSignin Create a user session.
* Authenticates [Basic authentication credentials](#section/Authentication/BasicAuthentication) - Authenticates [Basic authentication credentials](#section/Authentication/BasicAuthentication)
for a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user), for a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user),
and then, if successful, generates a user session. and then, if successful, generates a user session.
@ -115,17 +116,17 @@ They expire within ten minutes and during restarts of the InfluxDB instance.
#### User sessions with authorizations #### User sessions with authorizations
- In InfluxDB Cloud, a user session inherits all the user's permissions for - In InfluxDB Cloud, a user session inherits all the user's permissions for
the organization. the organization.
- In InfluxDB OSS, a user session inherits all the user's permissions for all - In InfluxDB OSS, a user session inherits all the user's permissions for all
the organizations that the user belongs to. the organizations that the user belongs to.
#### Related endpoints #### Related endpoints
- [Signout](#tag/Signout) - [Signout](#tag/Signout)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiPostSigninRequest - @return ApiPostSigninRequest
*/ */
func (a *SigninApiService) PostSignin(ctx _context.Context) ApiPostSigninRequest { func (a *SigninApiService) PostSignin(ctx _context.Context) ApiPostSigninRequest {
return ApiPostSigninRequest{ return ApiPostSigninRequest{

View File

@ -499,17 +499,17 @@ func (r ApiDeleteTasksIDRequest) ExecuteWithHttpInfo() (*_nethttp.Response, erro
} }
/* /*
* DeleteTasksID Delete a task - DeleteTasksID Delete a task
* Deletes a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) and associated records. - Deletes a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) and associated records.
Use this endpoint to delete a task and all associated records (task runs, logs, and labels). Use this endpoint to delete a task and all associated records (task runs, logs, and labels).
Once the task is deleted, InfluxDB cancels all scheduled runs of the task. Once the task is deleted, InfluxDB cancels all scheduled runs of the task.
If you want to disable a task instead of delete it, [update the task status to `inactive`](#operation/PatchTasksID). If you want to disable a task instead of delete it, [update the task status to `inactive`](#operation/PatchTasksID).
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) ID. Specifies the task to delete. - @param taskID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) ID. Specifies the task to delete.
* @return ApiDeleteTasksIDRequest - @return ApiDeleteTasksIDRequest
*/ */
func (a *TasksApiService) DeleteTasksID(ctx _context.Context, taskID string) ApiDeleteTasksIDRequest { func (a *TasksApiService) DeleteTasksID(ctx _context.Context, taskID string) ApiDeleteTasksIDRequest {
return ApiDeleteTasksIDRequest{ return ApiDeleteTasksIDRequest{
@ -668,8 +668,8 @@ func (r ApiDeleteTasksIDRunsIDRequest) ExecuteWithHttpInfo() (*_nethttp.Response
} }
/* /*
* DeleteTasksIDRunsID Cancel a running task - DeleteTasksIDRunsID Cancel a running task
* Cancels a running [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task). - Cancels a running [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task).
Use this endpoint with InfluxDB OSS to cancel a running task. Use this endpoint with InfluxDB OSS to cancel a running task.
@ -677,10 +677,10 @@ Use this endpoint with InfluxDB OSS to cancel a running task.
- Doesn't support this operation. - Doesn't support this operation.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID The ID of the task to cancel. - @param taskID The ID of the task to cancel.
* @param runID The ID of the task run to cancel. - @param runID The ID of the task run to cancel.
* @return ApiDeleteTasksIDRunsIDRequest - @return ApiDeleteTasksIDRunsIDRequest
*/ */
func (a *TasksApiService) DeleteTasksIDRunsID(ctx _context.Context, taskID string, runID string) ApiDeleteTasksIDRunsIDRequest { func (a *TasksApiService) DeleteTasksIDRunsID(ctx _context.Context, taskID string, runID string) ApiDeleteTasksIDRunsIDRequest {
return ApiDeleteTasksIDRunsIDRequest{ return ApiDeleteTasksIDRunsIDRequest{
@ -933,14 +933,14 @@ func (r ApiGetTasksRequest) ExecuteWithHttpInfo() (Tasks, *_nethttp.Response, er
} }
/* /*
* GetTasks List all tasks - GetTasks List all tasks
* Retrieves a list of [tasks]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task). - Retrieves a list of [tasks]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task).
To limit which tasks are returned, pass query parameters in your request. To limit which tasks are returned, pass query parameters in your request.
If no query parameters are passed, InfluxDB returns all tasks up to the default `limit`. If no query parameters are passed, InfluxDB returns all tasks up to the default `limit`.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiGetTasksRequest - @return ApiGetTasksRequest
*/ */
func (a *TasksApiService) GetTasks(ctx _context.Context) ApiGetTasksRequest { func (a *TasksApiService) GetTasks(ctx _context.Context) ApiGetTasksRequest {
return ApiGetTasksRequest{ return ApiGetTasksRequest{
@ -1143,12 +1143,12 @@ func (r ApiGetTasksIDRequest) ExecuteWithHttpInfo() (Task, *_nethttp.Response, e
} }
/* /*
* GetTasksID Retrieve a task * GetTasksID Retrieve a task
* Retrieves a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task). * Retrieves a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task).
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) ID. Specifies the task to retrieve. * @param taskID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) ID. Specifies the task to retrieve.
* @return ApiGetTasksIDRequest * @return ApiGetTasksIDRequest
*/ */
func (a *TasksApiService) GetTasksID(ctx _context.Context, taskID string) ApiGetTasksIDRequest { func (a *TasksApiService) GetTasksID(ctx _context.Context, taskID string) ApiGetTasksIDRequest {
return ApiGetTasksIDRequest{ return ApiGetTasksIDRequest{
@ -1320,8 +1320,8 @@ func (r ApiGetTasksIDLogsRequest) ExecuteWithHttpInfo() (Logs, *_nethttp.Respons
} }
/* /*
* GetTasksIDLogs Retrieve all logs for a task - GetTasksIDLogs Retrieve all logs for a task
* Retrieves a list of all logs for a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task). - Retrieves a list of all logs for a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task).
When an InfluxDB task runs, a “run” record is created in the task’s history. When an InfluxDB task runs, a “run” record is created in the task’s history.
Logs associated with each run provide relevant log messages, timestamps, and the exit status of the run attempt. Logs associated with each run provide relevant log messages, timestamps, and the exit status of the run attempt.
@ -1329,9 +1329,9 @@ Logs associated with each run provide relevant log messages, timestamps, and the
Use this endpoint to retrieve only the log events for a task, Use this endpoint to retrieve only the log events for a task,
without additional task metadata. without additional task metadata.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID The task ID. - @param taskID The task ID.
* @return ApiGetTasksIDLogsRequest - @return ApiGetTasksIDLogsRequest
*/ */
func (a *TasksApiService) GetTasksIDLogs(ctx _context.Context, taskID string) ApiGetTasksIDLogsRequest { func (a *TasksApiService) GetTasksIDLogs(ctx _context.Context, taskID string) ApiGetTasksIDLogsRequest {
return ApiGetTasksIDLogsRequest{ return ApiGetTasksIDLogsRequest{
@ -1539,15 +1539,15 @@ func (r ApiGetTasksIDRunsRequest) ExecuteWithHttpInfo() (Runs, *_nethttp.Respons
} }
/* /*
* GetTasksIDRuns List runs for a task - GetTasksIDRuns List runs for a task
* Retrieves a list of runs for a [task]({{% INFLUXDB_DOCS_URL %}}/process-data/). - Retrieves a list of runs for a [task]({{% INFLUXDB_DOCS_URL %}}/process-data/).
To limit which task runs are returned, pass query parameters in your request. To limit which task runs are returned, pass query parameters in your request.
If no query parameters are passed, InfluxDB returns all task runs up to the default `limit`. If no query parameters are passed, InfluxDB returns all task runs up to the default `limit`.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID The ID of the task to get runs for. Only returns runs for this task. - @param taskID The ID of the task to get runs for. Only returns runs for this task.
* @return ApiGetTasksIDRunsRequest - @return ApiGetTasksIDRunsRequest
*/ */
func (a *TasksApiService) GetTasksIDRuns(ctx _context.Context, taskID string) ApiGetTasksIDRunsRequest { func (a *TasksApiService) GetTasksIDRuns(ctx _context.Context, taskID string) ApiGetTasksIDRunsRequest {
return ApiGetTasksIDRunsRequest{ return ApiGetTasksIDRunsRequest{
@ -1740,15 +1740,15 @@ func (r ApiGetTasksIDRunsIDRequest) ExecuteWithHttpInfo() (Run, *_nethttp.Respon
} }
/* /*
* GetTasksIDRunsID Retrieve a run for a task. - GetTasksIDRunsID Retrieve a run for a task.
* Retrieves a specific run for a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task). - Retrieves a specific run for a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task).
Use this endpoint to retrieve detail and logs for a specific task run. Use this endpoint to retrieve detail and logs for a specific task run.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID The ID of the task to retrieve runs for. - @param taskID The ID of the task to retrieve runs for.
* @param runID The ID of the run to retrieve. - @param runID The ID of the run to retrieve.
* @return ApiGetTasksIDRunsIDRequest - @return ApiGetTasksIDRunsIDRequest
*/ */
func (a *TasksApiService) GetTasksIDRunsID(ctx _context.Context, taskID string, runID string) ApiGetTasksIDRunsIDRequest { func (a *TasksApiService) GetTasksIDRunsID(ctx _context.Context, taskID string, runID string) ApiGetTasksIDRunsIDRequest {
return ApiGetTasksIDRunsIDRequest{ return ApiGetTasksIDRunsIDRequest{
@ -1931,16 +1931,17 @@ func (r ApiGetTasksIDRunsIDLogsRequest) ExecuteWithHttpInfo() (Logs, *_nethttp.R
} }
/* /*
* GetTasksIDRunsIDLogs Retrieve all logs for a run - GetTasksIDRunsIDLogs Retrieve all logs for a run
* Retrieves all logs for a task run. - Retrieves all logs for a task run.
A log is a list of run events with `runID`, `time`, and `message` properties. A log is a list of run events with `runID`, `time`, and `message` properties.
Use this endpoint to help analyze task performance and troubleshoot failed task runs. Use this endpoint to help analyze task performance and troubleshoot failed task runs.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID The ID of the task to get logs for. - @param taskID The ID of the task to get logs for.
* @param runID The ID of the run to get logs for. - @param runID The ID of the run to get logs for.
* @return ApiGetTasksIDRunsIDLogsRequest - @return ApiGetTasksIDRunsIDLogsRequest
*/ */
func (a *TasksApiService) GetTasksIDRunsIDLogs(ctx _context.Context, taskID string, runID string) ApiGetTasksIDRunsIDLogsRequest { func (a *TasksApiService) GetTasksIDRunsIDLogs(ctx _context.Context, taskID string, runID string) ApiGetTasksIDRunsIDLogsRequest {
return ApiGetTasksIDRunsIDLogsRequest{ return ApiGetTasksIDRunsIDLogsRequest{
@ -2123,8 +2124,9 @@ func (r ApiPatchTasksIDRequest) ExecuteWithHttpInfo() (Task, *_nethttp.Response,
} }
/* /*
* PatchTasksID Update a task - PatchTasksID Update a task
* Updates a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task), - Updates a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task),
and then cancels all scheduled runs of the task. and then cancels all scheduled runs of the task.
Use this endpoint to set, modify, or clear task properties--for example: `cron`, `name`, `flux`, `status`. Use this endpoint to set, modify, or clear task properties--for example: `cron`, `name`, `flux`, `status`.
@ -2142,16 +2144,16 @@ _`"status": "inactive"`_ cancels scheduled runs and prevents manual runs of the
```json ```json
{ {
"flux": "option task = {name: \"CPU Total 1 Hour New\", every: 1h}\ "flux": "option task = {name: \"CPU Total 1 Hour New\", every: 1h}\
from(bucket: \"telegraf\") from(bucket: \"telegraf\")
|> range(start: -1h) |> range(start: -1h)
|> filter(fn: (r) => (r._measurement == \"cpu\")) |> filter(fn: (r) => (r._measurement == \"cpu\"))
|> filter(fn: (r) =>\n\t\t(r._field == \"usage_system\")) |> filter(fn: (r) =>\n\t\t(r._field == \"usage_system\"))
|> filter(fn: (r) => (r.cpu == \"cpu-total\")) |> filter(fn: (r) => (r.cpu == \"cpu-total\"))
|> aggregateWindow(every: 1h, fn: max) |> aggregateWindow(every: 1h, fn: max)
|> to(bucket: \"cpu_usage_user_total_1h\", org: \"INFLUX_ORG\")", |> to(bucket: \"cpu_usage_user_total_1h\", org: \"INFLUX_ORG\")",
"status": "active", "status": "active",
"description": "This task downsamples CPU data every hour" "description": "This task downsamples CPU data every hour"
} }
``` ```
@ -2162,26 +2164,26 @@ _`"status": "inactive"`_ cancels scheduled runs and prevents manual runs of the
```json ```json
{ {
"name": "CPU Total 1 Hour New", "name": "CPU Total 1 Hour New",
"description": "This task downsamples CPU data every hour", "description": "This task downsamples CPU data every hour",
"every": "1h", "every": "1h",
"scriptID": "SCRIPT_ID", "scriptID": "SCRIPT_ID",
"scriptParameters": "scriptParameters":
{ {
"rangeStart": "-1h", "rangeStart": "-1h",
"bucket": "telegraf", "bucket": "telegraf",
"filterField": "cpu-total" "filterField": "cpu-total"
} }
} }
``` ```
#### Limitations: #### Limitations:
- You can't use `flux` and `scriptID` for the same task. - You can't use `flux` and `scriptID` for the same task.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) ID. Specifies the task to update. - @param taskID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) ID. Specifies the task to update.
* @return ApiPatchTasksIDRequest - @return ApiPatchTasksIDRequest
*/ */
func (a *TasksApiService) PatchTasksID(ctx _context.Context, taskID string) ApiPatchTasksIDRequest { func (a *TasksApiService) PatchTasksID(ctx _context.Context, taskID string) ApiPatchTasksIDRequest {
return ApiPatchTasksIDRequest{ return ApiPatchTasksIDRequest{
@ -2358,8 +2360,8 @@ func (r ApiPostTasksRequest) ExecuteWithHttpInfo() (Task, *_nethttp.Response, er
} }
/* /*
* PostTasks Create a task - PostTasks Create a task
* Creates a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) and returns the task. - Creates a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) and returns the task.
Use this endpoint to create a scheduled task that runs a Flux script. Use this endpoint to create a scheduled task that runs a Flux script.
@ -2371,16 +2373,16 @@ Use this endpoint to create a scheduled task that runs a Flux script.
```json ```json
{ {
"flux": "option task = {name: \"CPU Total 1 Hour New\", every: 1h}\ "flux": "option task = {name: \"CPU Total 1 Hour New\", every: 1h}\
from(bucket: \"telegraf\") from(bucket: \"telegraf\")
|> range(start: -1h) |> range(start: -1h)
|> filter(fn: (r) => (r._measurement == \"cpu\")) |> filter(fn: (r) => (r._measurement == \"cpu\"))
|> filter(fn: (r) =>\n\t\t(r._field == \"usage_system\")) |> filter(fn: (r) =>\n\t\t(r._field == \"usage_system\"))
|> filter(fn: (r) => (r.cpu == \"cpu-total\")) |> filter(fn: (r) => (r.cpu == \"cpu-total\"))
|> aggregateWindow(every: 1h, fn: max) |> aggregateWindow(every: 1h, fn: max)
|> to(bucket: \"cpu_usage_user_total_1h\", org: \"INFLUX_ORG\")", |> to(bucket: \"cpu_usage_user_total_1h\", org: \"INFLUX_ORG\")",
"status": "active", "status": "active",
"description": "This task downsamples CPU data every hour" "description": "This task downsamples CPU data every hour"
} }
``` ```
@ -2391,17 +2393,17 @@ Use this endpoint to create a scheduled task that runs a Flux script.
```json ```json
{ {
"name": "CPU Total 1 Hour New", "name": "CPU Total 1 Hour New",
"description": "This task downsamples CPU data every hour", "description": "This task downsamples CPU data every hour",
"every": "1h", "every": "1h",
"scriptID": "SCRIPT_ID", "scriptID": "SCRIPT_ID",
"scriptParameters": "scriptParameters":
{ {
"rangeStart": "-1h", "rangeStart": "-1h",
"bucket": "telegraf", "bucket": "telegraf",
"filterField": "cpu-total" "filterField": "cpu-total"
} }
} }
``` ```
#### Limitations: #### Limitations:
@ -2415,8 +2417,8 @@ Use this endpoint to create a scheduled task that runs a Flux script.
- [Common tasks]({{% INFLUXDB_DOCS_URL %}}/process-data/common-tasks/) - [Common tasks]({{% INFLUXDB_DOCS_URL %}}/process-data/common-tasks/)
- [Task configuration options]({{% INFLUXDB_DOCS_URL %}}/process-data/task-options/) - [Task configuration options]({{% INFLUXDB_DOCS_URL %}}/process-data/task-options/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiPostTasksRequest - @return ApiPostTasksRequest
*/ */
func (a *TasksApiService) PostTasks(ctx _context.Context) ApiPostTasksRequest { func (a *TasksApiService) PostTasks(ctx _context.Context) ApiPostTasksRequest {
return ApiPostTasksRequest{ return ApiPostTasksRequest{
@ -2611,8 +2613,8 @@ func (r ApiPostTasksIDRunsRequest) ExecuteWithHttpInfo() (Run, *_nethttp.Respons
} }
/* /*
* PostTasksIDRuns Start a task run, overriding the schedule - PostTasksIDRuns Start a task run, overriding the schedule
* Schedules a task run to start immediately, ignoring scheduled runs. - Schedules a task run to start immediately, ignoring scheduled runs.
Use this endpoint to manually start a task run. Use this endpoint to manually start a task run.
Scheduled runs will continue to run as scheduled. Scheduled runs will continue to run as scheduled.
@ -2621,9 +2623,9 @@ This may result in concurrently running tasks.
To _retry_ a previous run (and avoid creating a new run), To _retry_ a previous run (and avoid creating a new run),
use the [`POST /api/v2/tasks/{taskID}/runs/{runID}/retry` endpoint](#operation/PostTasksIDRunsIDRetry). use the [`POST /api/v2/tasks/{taskID}/runs/{runID}/retry` endpoint](#operation/PostTasksIDRunsIDRetry).
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID - @param taskID
* @return ApiPostTasksIDRunsRequest - @return ApiPostTasksIDRunsRequest
*/ */
func (a *TasksApiService) PostTasksIDRuns(ctx _context.Context, taskID string) ApiPostTasksIDRunsRequest { func (a *TasksApiService) PostTasksIDRuns(ctx _context.Context, taskID string) ApiPostTasksIDRunsRequest {
return ApiPostTasksIDRunsRequest{ return ApiPostTasksIDRunsRequest{
@ -2815,8 +2817,9 @@ func (r ApiPostTasksIDRunsIDRetryRequest) ExecuteWithHttpInfo() (Run, *_nethttp.
} }
/* /*
* PostTasksIDRunsIDRetry Retry a task run - PostTasksIDRunsIDRetry Retry a task run
* Queues a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) run to - Queues a [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) run to
retry and returns the scheduled run. retry and returns the scheduled run.
To manually start a _new_ task run, use the To manually start a _new_ task run, use the
@ -2826,10 +2829,10 @@ To manually start a _new_ task run, use the
- The task must be _active_ (`status: "active"`). - The task must be _active_ (`status: "active"`).
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param taskID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) ID. Specifies the task to retry. - @param taskID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) ID. Specifies the task to retry.
* @param runID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) run ID. Specifies the task run to retry. To find a task run ID, use the [`GET /api/v2/tasks/{taskID}/runs` endpoint](#operation/GetTasksIDRuns) to list task runs. - @param runID A [task]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#task) run ID. Specifies the task run to retry. To find a task run ID, use the [`GET /api/v2/tasks/{taskID}/runs` endpoint](#operation/GetTasksIDRuns) to list task runs.
* @return ApiPostTasksIDRunsIDRetryRequest - @return ApiPostTasksIDRunsIDRetryRequest
*/ */
func (a *TasksApiService) PostTasksIDRunsIDRetry(ctx _context.Context, taskID string, runID string) ApiPostTasksIDRunsIDRetryRequest { func (a *TasksApiService) PostTasksIDRunsIDRetry(ctx _context.Context, taskID string, runID string) ApiPostTasksIDRunsIDRetryRequest {
return ApiPostTasksIDRunsIDRetryRequest{ return ApiPostTasksIDRunsIDRetryRequest{

View File

@ -313,8 +313,8 @@ func (r ApiDeleteUsersIDRequest) ExecuteWithHttpInfo() (*_nethttp.Response, erro
} }
/* /*
* DeleteUsersID Delete a user - DeleteUsersID Delete a user
* Deletes a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user). - Deletes a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user).
#### Required permissions #### Required permissions
@ -328,9 +328,9 @@ func (r ApiDeleteUsersIDRequest) ExecuteWithHttpInfo() (*_nethttp.Response, erro
- [Manage users]({{% INFLUXDB_DOCS_URL %}}/organizations/users/) - [Manage users]({{% INFLUXDB_DOCS_URL %}}/organizations/users/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param userID A user ID. Specifies the [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) to delete. - @param userID A user ID. Specifies the [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) to delete.
* @return ApiDeleteUsersIDRequest - @return ApiDeleteUsersIDRequest
*/ */
func (a *UsersApiService) DeleteUsersID(ctx _context.Context, userID string) ApiDeleteUsersIDRequest { func (a *UsersApiService) DeleteUsersID(ctx _context.Context, userID string) ApiDeleteUsersIDRequest {
return ApiDeleteUsersIDRequest{ return ApiDeleteUsersIDRequest{
@ -527,8 +527,9 @@ func (r ApiGetUsersRequest) ExecuteWithHttpInfo() (Users, *_nethttp.Response, er
} }
/* /*
* GetUsers List users - GetUsers List users
* Retrieves a list of [users]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user). - Retrieves a list of [users]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user).
Default limit is `20`. Default limit is `20`.
To limit which users are returned, pass query parameters in your request. To limit which users are returned, pass query parameters in your request.
@ -542,8 +543,8 @@ To limit which users are returned, pass query parameters in your request.
*`USER_ID`* is the ID of the user that you want to retrieve. *`USER_ID`* is the ID of the user that you want to retrieve.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiGetUsersRequest - @return ApiGetUsersRequest
*/ */
func (a *UsersApiService) GetUsers(ctx _context.Context) ApiGetUsersRequest { func (a *UsersApiService) GetUsers(ctx _context.Context) ApiGetUsersRequest {
return ApiGetUsersRequest{ return ApiGetUsersRequest{
@ -739,16 +740,16 @@ func (r ApiGetUsersIDRequest) ExecuteWithHttpInfo() (UserResponse, *_nethttp.Res
} }
/* /*
* GetUsersID Retrieve a user - GetUsersID Retrieve a user
* Retrieves a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user). - Retrieves a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user).
#### Related guides #### Related guides
- [Manage users]({{% INFLUXDB_DOCS_URL %}}/organizations/users/) - [Manage users]({{% INFLUXDB_DOCS_URL %}}/organizations/users/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param userID A user ID. Retrieves the specified [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user). - @param userID A user ID. Retrieves the specified [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user).
* @return ApiGetUsersIDRequest - @return ApiGetUsersIDRequest
*/ */
func (a *UsersApiService) GetUsersID(ctx _context.Context, userID string) ApiGetUsersIDRequest { func (a *UsersApiService) GetUsersID(ctx _context.Context, userID string) ApiGetUsersIDRequest {
return ApiGetUsersIDRequest{ return ApiGetUsersIDRequest{
@ -918,8 +919,8 @@ func (r ApiPatchUsersIDRequest) ExecuteWithHttpInfo() (UserResponse, *_nethttp.R
} }
/* /*
* PatchUsersID Update a user - PatchUsersID Update a user
* Updates a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) and returns the user. - Updates a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) and returns the user.
#### Required permissions #### Required permissions
@ -933,9 +934,9 @@ func (r ApiPatchUsersIDRequest) ExecuteWithHttpInfo() (UserResponse, *_nethttp.R
- [Manage users]({{% INFLUXDB_DOCS_URL %}}/organizations/users/) - [Manage users]({{% INFLUXDB_DOCS_URL %}}/organizations/users/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param userID A user ID. Specifies the [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) to update. - @param userID A user ID. Specifies the [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) to update.
* @return ApiPatchUsersIDRequest - @return ApiPatchUsersIDRequest
*/ */
func (a *UsersApiService) PatchUsersID(ctx _context.Context, userID string) ApiPatchUsersIDRequest { func (a *UsersApiService) PatchUsersID(ctx _context.Context, userID string) ApiPatchUsersIDRequest {
return ApiPatchUsersIDRequest{ return ApiPatchUsersIDRequest{
@ -1112,8 +1113,9 @@ func (r ApiPostUsersRequest) ExecuteWithHttpInfo() (UserResponse, *_nethttp.Resp
} }
/* /*
* PostUsers Create a user - PostUsers Create a user
* Creates a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) that can access InfluxDB. - Creates a [user]({{% INFLUXDB_DOCS_URL %}}/reference/glossary/#user) that can access InfluxDB.
Returns the user. Returns the user.
Use this endpoint to create a user that can sign in to start a user session Use this endpoint to create a user that can sign in to start a user session
@ -1126,10 +1128,10 @@ through one of the following interfaces:
This endpoint represents the first two steps in a four-step process to allow a user This endpoint represents the first two steps in a four-step process to allow a user
to authenticate with a username and password, and then access data in an organization: to authenticate with a username and password, and then access data in an organization:
1. Create a user: send a `POST` request to `POST /api/v2/users`. `name` is required. 1. Create a user: send a `POST` request to `POST /api/v2/users`. `name` is required.
2. Extract the user ID (`id`) value from the API response for _step 1_. 2. Extract the user ID (`id`) value from the API response for _step 1_.
3. Create an authorization (and API token) for the user: send a `POST` request to [`POST /api/v2/authorizations`](#operation/PostAuthorizations), passing the user ID (`id`) from _step 2_. 3. Create an authorization (and API token) for the user: send a `POST` request to [`POST /api/v2/authorizations`](#operation/PostAuthorizations), passing the user ID (`id`) from _step 2_.
4. Create a password for the user: send a `POST` request to [`POST /api/v2/users/USER_ID/password`](#operation/PostUsersIDPassword), passing the user ID from _step 2_. 4. Create a password for the user: send a `POST` request to [`POST /api/v2/users/USER_ID/password`](#operation/PostUsersIDPassword), passing the user ID from _step 2_.
#### Required permissions #### Required permissions
@ -1142,8 +1144,8 @@ to authenticate with a username and password, and then access data in an organiz
- [Create a user](https://docs.influxdata.com/influxdb/latest/users/create-user/) - [Create a user](https://docs.influxdata.com/influxdb/latest/users/create-user/)
- [Create an API token scoped to a user](https://docs.influxdata.com/influxdb/latest/security/tokens/create-token/#create-a-token-scoped-to-a-user) - [Create an API token scoped to a user](https://docs.influxdata.com/influxdb/latest/security/tokens/create-token/#create-a-token-scoped-to-a-user)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiPostUsersRequest - @return ApiPostUsersRequest
*/ */
func (a *UsersApiService) PostUsers(ctx _context.Context) ApiPostUsersRequest { func (a *UsersApiService) PostUsers(ctx _context.Context) ApiPostUsersRequest {
return ApiPostUsersRequest{ return ApiPostUsersRequest{
@ -1338,22 +1340,22 @@ func (r ApiPostUsersIDPasswordRequest) ExecuteWithHttpInfo() (*_nethttp.Response
} }
/* /*
* PostUsersIDPassword Update a password - PostUsersIDPassword Update a password
* Updates a user password. - Updates a user password.
#### InfluxDB Cloud #### InfluxDB Cloud
- Doesn't allow you to manage user passwords through the API. - Doesn't allow you to manage user passwords through the API.
Use the InfluxDB Cloud user interface (UI) to update a password. Use the InfluxDB Cloud user interface (UI) to update a password.
#### Related guides #### Related guides
- [InfluxDB Cloud - Change your password](https://docs.influxdata.com/influxdb/cloud/account-management/change-password/) - [InfluxDB Cloud - Change your password](https://docs.influxdata.com/influxdb/cloud/account-management/change-password/)
- [InfluxDB OSS - Change your password](https://docs.influxdata.com/influxdb/latest/users/change-password/) - [InfluxDB OSS - Change your password](https://docs.influxdata.com/influxdb/latest/users/change-password/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param userID The ID of the user to set the password for. - @param userID The ID of the user to set the password for.
* @return ApiPostUsersIDPasswordRequest - @return ApiPostUsersIDPasswordRequest
*/ */
func (a *UsersApiService) PostUsersIDPassword(ctx _context.Context, userID string) ApiPostUsersIDPasswordRequest { func (a *UsersApiService) PostUsersIDPassword(ctx _context.Context, userID string) ApiPostUsersIDPasswordRequest {
return ApiPostUsersIDPasswordRequest{ return ApiPostUsersIDPasswordRequest{
@ -1517,8 +1519,8 @@ func (r ApiPutUsersIDPasswordRequest) ExecuteWithHttpInfo() (*_nethttp.Response,
} }
/* /*
* PutUsersIDPassword Update a password - PutUsersIDPassword Update a password
* Updates a user password. - Updates a user password.
Use this endpoint to let a user authenticate with Use this endpoint to let a user authenticate with
[Basic authentication credentials](#section/Authentication/BasicAuthentication) [Basic authentication credentials](#section/Authentication/BasicAuthentication)
@ -1526,17 +1528,17 @@ and set a new password.
#### InfluxDB Cloud #### InfluxDB Cloud
- Doesn't allow you to manage user passwords through the API. - Doesn't allow you to manage user passwords through the API.
Use the InfluxDB Cloud user interface (UI) to update a password. Use the InfluxDB Cloud user interface (UI) to update a password.
#### Related guides #### Related guides
- [InfluxDB Cloud - Change your password](https://docs.influxdata.com/influxdb/cloud/account-management/change-password/) - [InfluxDB Cloud - Change your password](https://docs.influxdata.com/influxdb/cloud/account-management/change-password/)
- [InfluxDB OSS - Change your password](https://docs.influxdata.com/influxdb/latest/users/change-password/) - [InfluxDB OSS - Change your password](https://docs.influxdata.com/influxdb/latest/users/change-password/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param userID The ID of the user to set the password for. - @param userID The ID of the user to set the password for.
* @return ApiPutUsersIDPasswordRequest - @return ApiPutUsersIDPasswordRequest
*/ */
func (a *UsersApiService) PutUsersIDPassword(ctx _context.Context, userID string) ApiPutUsersIDPasswordRequest { func (a *UsersApiService) PutUsersIDPassword(ctx _context.Context, userID string) ApiPutUsersIDPasswordRequest {
return ApiPutUsersIDPasswordRequest{ return ApiPutUsersIDPasswordRequest{

View File

@ -193,8 +193,8 @@ func (r ApiPostWriteRequest) ExecuteWithHttpInfo() (*_nethttp.Response, error) {
} }
/* /*
* PostWrite Write data - PostWrite Write data
* Writes data to a bucket. - Writes data to a bucket.
Use this endpoint to send data in [line protocol]({{% INFLUXDB_DOCS_URL %}}/reference/syntax/line-protocol/) format to InfluxDB. Use this endpoint to send data in [line protocol]({{% INFLUXDB_DOCS_URL %}}/reference/syntax/line-protocol/) format to InfluxDB.
@ -202,27 +202,29 @@ Use this endpoint to send data in [line protocol]({{% INFLUXDB_DOCS_URL %}}/refe
- Does the following when you send a write request: - Does the following when you send a write request:
1. Validates the request and queues the write. 1. Validates the request and queues the write.
2. If queued, responds with _success_ (HTTP `2xx` status code); _error_ otherwise.
3. Handles the delete asynchronously and reaches eventual consistency.
To ensure that InfluxDB Cloud handles writes and deletes in the order you request them, 2. If queued, responds with _success_ (HTTP `2xx` status code); _error_ otherwise.
wait for a success response (HTTP `2xx` status code) before you send the next request.
Because writes and deletes are asynchronous, your change might not yet be readable 3. Handles the delete asynchronously and reaches eventual consistency.
when you receive the response.
To ensure that InfluxDB Cloud handles writes and deletes in the order you request them,
wait for a success response (HTTP `2xx` status code) before you send the next request.
Because writes and deletes are asynchronous, your change might not yet be readable
when you receive the response.
#### InfluxDB OSS #### InfluxDB OSS
- Validates the request and handles the write synchronously. - Validates the request and handles the write synchronously.
- If all points were written successfully, responds with HTTP `2xx` status code; - If all points were written successfully, responds with HTTP `2xx` status code;
otherwise, returns the first line that failed. otherwise, returns the first line that failed.
#### Required permissions #### Required permissions
- `write-buckets` or `write-bucket BUCKET_ID`. - `write-buckets` or `write-bucket BUCKET_ID`.
*`BUCKET_ID`* is the ID of the destination bucket. *`BUCKET_ID`* is the ID of the destination bucket.
#### Rate limits (with InfluxDB Cloud) #### Rate limits (with InfluxDB Cloud)
@ -235,8 +237,8 @@ For more information, see [limits and adjustable quotas](https://docs.influxdata
- [Optimize writes to InfluxDB]({{% INFLUXDB_DOCS_URL %}}/write-data/best-practices/optimize-writes/) - [Optimize writes to InfluxDB]({{% INFLUXDB_DOCS_URL %}}/write-data/best-practices/optimize-writes/)
- [Troubleshoot issues writing data]({{% INFLUXDB_DOCS_URL %}}/write-data/troubleshoot/) - [Troubleshoot issues writing data]({{% INFLUXDB_DOCS_URL %}}/write-data/troubleshoot/)
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @return ApiPostWriteRequest - @return ApiPostWriteRequest
*/ */
func (a *WriteApiService) PostWrite(ctx _context.Context) ApiPostWriteRequest { func (a *WriteApiService) PostWrite(ctx _context.Context) ApiPostWriteRequest {
return ApiPostWriteRequest{ return ApiPostWriteRequest{

View File

@ -4,6 +4,9 @@ set -o nounset \
-o pipefail -o pipefail
case ${1} in case ${1} in
v1.14.0)
CHECKSUM=5f832026b88340318caaec5bd985951e7d363bd248bf49f25239ebb802304bcb
;;
v1.13.1) v1.13.1)
CHECKSUM=136fecfb2e2f3a7965274ad5e2571985d8b2fa724b6536874f082e4b0bb9f344 CHECKSUM=136fecfb2e2f3a7965274ad5e2571985d8b2fa724b6536874f082e4b0bb9f344
;; ;;

View File

@ -1,22 +1,22 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eo pipefail set -eo pipefail
declare -r GO_VERSION=1.18.3 declare -r GO_VERSION=1.19.4
# Hashes are from the table at https://golang.org/dl/ # Hashes are from the table at https://golang.org/dl/
function go_hash () { function go_hash () {
case $1 in case $1 in
linux_amd64) linux_amd64)
echo 956f8507b302ab0bb747613695cdae10af99bbd39a90cae522b7c0302cc27245 echo c9c08f783325c4cf840a94333159cc937f05f75d36a8b307951d5bd959cf2ab8
;; ;;
linux_arm64) linux_arm64)
echo beacbe1441bee4d7978b900136d1d6a71d150f0a9bb77e9d50c822065623a35a echo 9df122d6baf6f2275270306b92af3b09d7973fb1259257e284dba33c0db14f1b
;; ;;
mac) mac)
echo a23a24c5528671d444328a36a98056902f699a5a211b6ad5db29ca0c012e0085 echo 44894862d996eec96ef2a39878e4e1fce4d05423fc18bdc1cbba745ebfa41253
;; ;;
windows) windows)
echo 9c46023f3ad0300fcfd1e62f2b6c2dfd9667b1f2f5c7a720b14b792af831f071 echo ada490e188bfb57c7388da7c5eba7565390992b6496204d30e710d37755956b0
;; ;;
esac esac
} }