@influxdata/influxdb-client-apis 1.22.0 → 1.23.0-nightly.1735

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/all.d.ts CHANGED
@@ -131,6 +131,22 @@ interface Label {
131
131
  /** Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value. */
132
132
  properties?: any;
133
133
  }
134
+ interface TelegrafPluginRequest {
135
+ name?: string;
136
+ description?: string;
137
+ plugins?: Array<{
138
+ type?: string;
139
+ name?: string;
140
+ alias?: string;
141
+ description?: string;
142
+ config?: string;
143
+ }>;
144
+ metadata?: {
145
+ buckets?: string[];
146
+ };
147
+ config?: string;
148
+ orgID?: string;
149
+ }
134
150
  interface LabelsResponse {
135
151
  labels?: Labels;
136
152
  links?: Links;
@@ -404,6 +420,8 @@ interface XYViewProperties {
404
420
  queries: DashboardQuery[];
405
421
  /** Colors define color encoding of data into a visualization */
406
422
  colors: DashboardColor[];
423
+ /** An object that contains information about the color mapping */
424
+ colorMapping?: ColorMapping;
407
425
  shape: 'chronograf-v2';
408
426
  note: string;
409
427
  /** If true, will display note when empty */
@@ -429,6 +447,10 @@ interface XYViewProperties {
429
447
  legendOpacity?: number;
430
448
  legendOrientationThreshold?: number;
431
449
  }
450
+ /**
451
+ * A color mapping is an object that maps time series data to a UI color scheme to allow the UI to render graphs consistent colors across reloads.
452
+ */
453
+ declare type ColorMapping = any;
432
454
  declare type XYGeom = 'line' | 'step' | 'stacked' | 'bar' | 'monotoneX';
433
455
  interface SingleStatViewProperties {
434
456
  type: 'single-stat';
@@ -2385,6 +2407,73 @@ interface BucketShardMapping {
2385
2407
  oldId: number;
2386
2408
  newId: number;
2387
2409
  }
2410
+ interface Config {
2411
+ config?: any;
2412
+ }
2413
+ interface RemoteConnections {
2414
+ remotes?: RemoteConnection[];
2415
+ }
2416
+ interface RemoteConnection {
2417
+ id: string;
2418
+ name: string;
2419
+ orgID: string;
2420
+ description?: string;
2421
+ remoteURL: string;
2422
+ remoteOrgID: string;
2423
+ allowInsecureTLS: boolean;
2424
+ }
2425
+ interface RemoteConnectionCreationRequest {
2426
+ name: string;
2427
+ description?: string;
2428
+ orgID: string;
2429
+ remoteURL: string;
2430
+ remoteAPIToken: string;
2431
+ remoteOrgID: string;
2432
+ allowInsecureTLS: boolean;
2433
+ }
2434
+ interface RemoteConnectionUpdateRequest {
2435
+ name?: string;
2436
+ description?: string;
2437
+ remoteURL?: string;
2438
+ remoteAPIToken?: string;
2439
+ remoteOrgID?: string;
2440
+ allowInsecureTLS?: boolean;
2441
+ }
2442
+ interface Replications {
2443
+ replications?: Replication[];
2444
+ }
2445
+ interface Replication {
2446
+ id: string;
2447
+ name: string;
2448
+ description?: string;
2449
+ orgID: string;
2450
+ remoteID: string;
2451
+ localBucketID: string;
2452
+ remoteBucketID: string;
2453
+ maxQueueSizeBytes: number;
2454
+ currentQueueSizeBytes: number;
2455
+ latestResponseCode?: number;
2456
+ latestErrorMessage?: string;
2457
+ dropNonRetryableData?: boolean;
2458
+ }
2459
+ interface ReplicationCreationRequest {
2460
+ name: string;
2461
+ description?: string;
2462
+ orgID: string;
2463
+ remoteID: string;
2464
+ localBucketID: string;
2465
+ remoteBucketID: string;
2466
+ maxQueueSizeBytes: number;
2467
+ dropNonRetryableData?: boolean;
2468
+ }
2469
+ interface ReplicationUpdateRequest {
2470
+ name?: string;
2471
+ description?: string;
2472
+ remoteID?: string;
2473
+ remoteBucketID?: string;
2474
+ maxQueueSizeBytes?: number;
2475
+ dropNonRetryableData?: boolean;
2476
+ }
2388
2477
  interface Dashboards {
2389
2478
  links?: Links;
2390
2479
  dashboards?: Dashboard[];
@@ -2951,6 +3040,28 @@ declare class ChecksAPI {
2951
3040
  getChecksIDQuery(request: GetChecksIDQueryRequest, requestOptions?: RequestOptions): Promise<FluxResponse>;
2952
3041
  }
2953
3042
 
3043
+ interface GetConfigRequest {
3044
+ }
3045
+ /**
3046
+ * Config API
3047
+ */
3048
+ declare class ConfigAPI {
3049
+ private base;
3050
+ /**
3051
+ * Creates ConfigAPI
3052
+ * @param influxDB - an instance that knows how to communicate with InfluxDB server
3053
+ */
3054
+ constructor(influxDB: InfluxDB);
3055
+ /**
3056
+ * Get the run-time configuration of the instance.
3057
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetConfig }
3058
+ * @param request - request parameters and body (if supported)
3059
+ * @param requestOptions - optional transport options
3060
+ * @returns promise of response
3061
+ */
3062
+ getConfig(request?: GetConfigRequest, requestOptions?: RequestOptions): Promise<Config>;
3063
+ }
3064
+
2954
3065
  interface GetDashboardsIDRequest {
2955
3066
  /** The ID of the dashboard to update. */
2956
3067
  dashboardID: string;
@@ -3637,6 +3748,28 @@ declare class MeAPI {
3637
3748
  putMePassword(request: PutMePasswordRequest, requestOptions?: RequestOptions): Promise<void>;
3638
3749
  }
3639
3750
 
3751
+ interface GetMetricsRequest {
3752
+ }
3753
+ /**
3754
+ * Metrics API
3755
+ */
3756
+ declare class MetricsAPI {
3757
+ private base;
3758
+ /**
3759
+ * Creates MetricsAPI
3760
+ * @param influxDB - an instance that knows how to communicate with InfluxDB server
3761
+ */
3762
+ constructor(influxDB: InfluxDB);
3763
+ /**
3764
+ * Get metrics of an instance.
3765
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetMetrics }
3766
+ * @param request - request parameters and body (if supported)
3767
+ * @param requestOptions - optional transport options
3768
+ * @returns promise of response
3769
+ */
3770
+ getMetrics(request?: GetMetricsRequest, requestOptions?: RequestOptions): Promise<any>;
3771
+ }
3772
+
3640
3773
  interface GetNotificationEndpointsRequest {
3641
3774
  offset?: number;
3642
3775
  limit?: number;
@@ -4246,6 +4379,168 @@ declare class ReadyAPI {
4246
4379
  getReady(request?: GetReadyRequest, requestOptions?: RequestOptions): Promise<Ready>;
4247
4380
  }
4248
4381
 
4382
+ interface GetRemoteConnectionsRequest {
4383
+ /** The organization ID. */
4384
+ orgID: string;
4385
+ name?: string;
4386
+ remoteURL?: string;
4387
+ }
4388
+ interface PostRemoteConnectionRequest {
4389
+ /** entity body */
4390
+ body: RemoteConnectionCreationRequest;
4391
+ }
4392
+ interface GetRemoteConnectionByIDRequest {
4393
+ remoteID: string;
4394
+ }
4395
+ interface PatchRemoteConnectionByIDRequest {
4396
+ remoteID: string;
4397
+ /** entity body */
4398
+ body: RemoteConnectionUpdateRequest;
4399
+ }
4400
+ interface DeleteRemoteConnectionByIDRequest {
4401
+ remoteID: string;
4402
+ }
4403
+ /**
4404
+ * Remotes API
4405
+ */
4406
+ declare class RemotesAPI {
4407
+ private base;
4408
+ /**
4409
+ * Creates RemotesAPI
4410
+ * @param influxDB - an instance that knows how to communicate with InfluxDB server
4411
+ */
4412
+ constructor(influxDB: InfluxDB);
4413
+ /**
4414
+ * List all remote connections.
4415
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetRemoteConnections }
4416
+ * @param request - request parameters and body (if supported)
4417
+ * @param requestOptions - optional transport options
4418
+ * @returns promise of response
4419
+ */
4420
+ getRemoteConnections(request: GetRemoteConnectionsRequest, requestOptions?: RequestOptions): Promise<RemoteConnections>;
4421
+ /**
4422
+ * Register a new remote connection.
4423
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PostRemoteConnection }
4424
+ * @param request - request parameters and body (if supported)
4425
+ * @param requestOptions - optional transport options
4426
+ * @returns promise of response
4427
+ */
4428
+ postRemoteConnection(request: PostRemoteConnectionRequest, requestOptions?: RequestOptions): Promise<RemoteConnection>;
4429
+ /**
4430
+ * Retrieve a remote connection.
4431
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetRemoteConnectionByID }
4432
+ * @param request - request parameters and body (if supported)
4433
+ * @param requestOptions - optional transport options
4434
+ * @returns promise of response
4435
+ */
4436
+ getRemoteConnectionByID(request: GetRemoteConnectionByIDRequest, requestOptions?: RequestOptions): Promise<RemoteConnection>;
4437
+ /**
4438
+ * Update a remote connection.
4439
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PatchRemoteConnectionByID }
4440
+ * @param request - request parameters and body (if supported)
4441
+ * @param requestOptions - optional transport options
4442
+ * @returns promise of response
4443
+ */
4444
+ patchRemoteConnectionByID(request: PatchRemoteConnectionByIDRequest, requestOptions?: RequestOptions): Promise<RemoteConnection>;
4445
+ /**
4446
+ * Delete a remote connection.
4447
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/DeleteRemoteConnectionByID }
4448
+ * @param request - request parameters and body (if supported)
4449
+ * @param requestOptions - optional transport options
4450
+ * @returns promise of response
4451
+ */
4452
+ deleteRemoteConnectionByID(request: DeleteRemoteConnectionByIDRequest, requestOptions?: RequestOptions): Promise<void>;
4453
+ }
4454
+
4455
+ interface GetReplicationsRequest {
4456
+ /** The organization ID. */
4457
+ orgID: string;
4458
+ name?: string;
4459
+ remoteID?: string;
4460
+ localBucketID?: string;
4461
+ }
4462
+ interface PostReplicationRequest {
4463
+ /** entity body */
4464
+ body: ReplicationCreationRequest;
4465
+ /** If true, validate the replication, but don't save it. */
4466
+ validate?: any;
4467
+ }
4468
+ interface GetReplicationByIDRequest {
4469
+ replicationID: string;
4470
+ }
4471
+ interface PatchReplicationByIDRequest {
4472
+ replicationID: string;
4473
+ /** entity body */
4474
+ body: ReplicationUpdateRequest;
4475
+ /** If true, validate the updated information, but don't save it. */
4476
+ validate?: any;
4477
+ }
4478
+ interface DeleteReplicationByIDRequest {
4479
+ replicationID: string;
4480
+ }
4481
+ interface PostValidateReplicationByIDRequest {
4482
+ replicationID: string;
4483
+ }
4484
+ /**
4485
+ * Replications API
4486
+ */
4487
+ declare class ReplicationsAPI {
4488
+ private base;
4489
+ /**
4490
+ * Creates ReplicationsAPI
4491
+ * @param influxDB - an instance that knows how to communicate with InfluxDB server
4492
+ */
4493
+ constructor(influxDB: InfluxDB);
4494
+ /**
4495
+ * List all replications.
4496
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetReplications }
4497
+ * @param request - request parameters and body (if supported)
4498
+ * @param requestOptions - optional transport options
4499
+ * @returns promise of response
4500
+ */
4501
+ getReplications(request: GetReplicationsRequest, requestOptions?: RequestOptions): Promise<Replications>;
4502
+ /**
4503
+ * Register a new replication.
4504
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PostReplication }
4505
+ * @param request - request parameters and body (if supported)
4506
+ * @param requestOptions - optional transport options
4507
+ * @returns promise of response
4508
+ */
4509
+ postReplication(request: PostReplicationRequest, requestOptions?: RequestOptions): Promise<Replication>;
4510
+ /**
4511
+ * Retrieve a replication.
4512
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetReplicationByID }
4513
+ * @param request - request parameters and body (if supported)
4514
+ * @param requestOptions - optional transport options
4515
+ * @returns promise of response
4516
+ */
4517
+ getReplicationByID(request: GetReplicationByIDRequest, requestOptions?: RequestOptions): Promise<Replication>;
4518
+ /**
4519
+ * Update a replication.
4520
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PatchReplicationByID }
4521
+ * @param request - request parameters and body (if supported)
4522
+ * @param requestOptions - optional transport options
4523
+ * @returns promise of response
4524
+ */
4525
+ patchReplicationByID(request: PatchReplicationByIDRequest, requestOptions?: RequestOptions): Promise<Replication>;
4526
+ /**
4527
+ * Delete a replication.
4528
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/DeleteReplicationByID }
4529
+ * @param request - request parameters and body (if supported)
4530
+ * @param requestOptions - optional transport options
4531
+ * @returns promise of response
4532
+ */
4533
+ deleteReplicationByID(request: DeleteReplicationByIDRequest, requestOptions?: RequestOptions): Promise<void>;
4534
+ /**
4535
+ * Validate a replication.
4536
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PostValidateReplicationByID }
4537
+ * @param request - request parameters and body (if supported)
4538
+ * @param requestOptions - optional transport options
4539
+ * @returns promise of response
4540
+ */
4541
+ postValidateReplicationByID(request: PostValidateReplicationByIDRequest, requestOptions?: RequestOptions): Promise<void>;
4542
+ }
4543
+
4249
4544
  interface GetResourcesRequest {
4250
4545
  }
4251
4546
  /**
@@ -5267,7 +5562,7 @@ interface GetTelegrafsRequest {
5267
5562
  }
5268
5563
  interface PostTelegrafsRequest {
5269
5564
  /** Telegraf configuration to create */
5270
- body: TelegrafRequest;
5565
+ body: TelegrafPluginRequest;
5271
5566
  }
5272
5567
  interface GetTelegrafsIDRequest {
5273
5568
  /** The Telegraf configuration ID. */
@@ -5277,7 +5572,7 @@ interface PutTelegrafsIDRequest {
5277
5572
  /** The Telegraf config ID. */
5278
5573
  telegrafID: string;
5279
5574
  /** Telegraf configuration update to apply */
5280
- body: TelegrafRequest;
5575
+ body: TelegrafPluginRequest;
5281
5576
  }
5282
5577
  interface DeleteTelegrafsIDRequest {
5283
5578
  /** The Telegraf configuration ID. */
@@ -5789,4 +6084,4 @@ declare class FluxScriptInvocationAPI {
5789
6084
  private createExecutor;
5790
6085
  }
5791
6086
 
5792
- export { ASTResponse, AddResourceMemberRequestBody, AnalyzeQueryResponse, ApplyTemplateRequest, ArrayExpression, Authorization, AuthorizationPostRequest, AuthorizationUpdateRequest, Authorizations, AuthorizationsAPI, Axes, Axis, AxisScale, BackupAPI, BadStatement, BandViewProperties, BinaryExpression, Block, BooleanLiteral, Bucket, BucketMetadataManifest, BucketMetadataManifests, BucketShardMapping, BucketShardMappings, Buckets, BucketsAPI, BuilderAggregateFunctionType, BuilderConfig, BuilderFunctionsType, BuilderTagsType, BuiltinStatement, CallExpression, Cell, CellUpdate, CellWithViewProperties, Cells, CellsWithViewProperties, Check, CheckBase, CheckDiscriminator, CheckPatch, CheckStatusLevel, CheckViewProperties, Checks, ChecksAPI, ConditionalExpression, ConstantVariableProperties, CreateCell, CreateCheckRequest, CreateDashboardRequest, CreateNotificationEndpointRequest, CreateNotificationRuleRequest, CreateStackRequest, CustomCheck, DBRP, DBRPCreate, DBRPGet, DBRPUpdate, DBRPs, Dashboard, DashboardColor, DashboardQuery, DashboardWithViewProperties, Dashboards, DashboardsAPI, DateTimeLiteral, DbrpsAPI, DeadmanCheck, DecimalPlaces, DeleteAPI, DeleteAuthorizationsIDRequest, DeleteBucketsIDLabelsIDRequest, DeleteBucketsIDMembersIDRequest, DeleteBucketsIDOwnersIDRequest, DeleteBucketsIDRequest, DeleteChecksIDLabelsIDRequest, DeleteChecksIDRequest, DeleteDBRPIDRequest, DeleteDashboardsIDCellsIDRequest, DeleteDashboardsIDLabelsIDRequest, DeleteDashboardsIDMembersIDRequest, DeleteDashboardsIDOwnersIDRequest, DeleteDashboardsIDRequest, DeleteLabelsIDRequest, DeleteLegacyAuthorizationsIDRequest, DeleteNotificationEndpointsIDLabelsIDRequest, DeleteNotificationEndpointsIDRequest, DeleteNotificationRulesIDLabelsIDRequest, DeleteNotificationRulesIDRequest, DeleteOrgsIDMembersIDRequest, DeleteOrgsIDOwnersIDRequest, DeleteOrgsIDRequest, DeleteOrgsIDSecretsIDRequest, DeletePredicateRequest, DeleteScrapersIDLabelsIDRequest, DeleteScrapersIDMembersIDRequest, DeleteScrapersIDOwnersIDRequest, DeleteScrapersIDRequest, DeleteScriptsIDRequest, DeleteSourcesIDRequest, DeleteStackRequest, DeleteTasksIDLabelsIDRequest, DeleteTasksIDMembersIDRequest, DeleteTasksIDOwnersIDRequest, DeleteTasksIDRequest, DeleteTasksIDRunsIDRequest, DeleteTelegrafsIDLabelsIDRequest, DeleteTelegrafsIDMembersIDRequest, DeleteTelegrafsIDOwnersIDRequest, DeleteTelegrafsIDRequest, DeleteUsersIDRequest, DeleteVariablesIDLabelsIDRequest, DeleteVariablesIDRequest, Dialect, DictExpression, DictItem, Duration, DurationLiteral, Error, ExecutionOptions, ExportTemplateRequest, Expression, ExpressionStatement, File, Flags, FlagsAPI, FloatLiteral, FluxResponse, FluxScriptInvocationAPI, FluxSuggestion, FluxSuggestions, FunctionExpression, GaugeViewProperties, GeoCircleViewLayer, GeoHeatMapViewLayer, GeoPointMapViewLayer, GeoTrackMapViewLayer, GeoViewLayer, GeoViewLayerProperties, GeoViewProperties, GetAuthorizationsIDRequest, GetAuthorizationsRequest, GetBackupKVRequest, GetBackupMetadataRequest, GetBackupShardIdRequest, GetBucketsIDLabelsRequest, GetBucketsIDMembersRequest, GetBucketsIDOwnersRequest, GetBucketsIDRequest, GetBucketsRequest, GetChecksIDLabelsRequest, GetChecksIDQueryRequest, GetChecksIDRequest, GetChecksRequest, GetDBRPsIDRequest, GetDBRPsRequest, GetDashboardsIDCellsIDViewRequest, GetDashboardsIDLabelsRequest, GetDashboardsIDMembersRequest, GetDashboardsIDOwnersRequest, GetDashboardsIDRequest, GetDashboardsRequest, GetFlagsRequest, GetHealthRequest, GetLabelsIDRequest, GetLabelsRequest, GetLegacyAuthorizationsIDRequest, GetLegacyAuthorizationsRequest, GetMeRequest, GetNotificationEndpointsIDLabelsRequest, GetNotificationEndpointsIDRequest, GetNotificationEndpointsRequest, GetNotificationRulesIDLabelsRequest, GetNotificationRulesIDQueryRequest, GetNotificationRulesIDRequest, GetNotificationRulesRequest, GetOrgsIDMembersRequest, GetOrgsIDOwnersRequest, GetOrgsIDRequest, GetOrgsIDSecretsRequest, GetOrgsRequest, GetPingRequest, GetQuerySuggestionsNameRequest, GetQuerySuggestionsRequest, GetReadyRequest, GetResourcesRequest, GetRoutesRequest, GetScrapersIDLabelsRequest, GetScrapersIDMembersRequest, GetScrapersIDOwnersRequest, GetScrapersIDRequest, GetScrapersRequest, GetScriptsIDRequest, GetScriptsRequest, GetSetupRequest, GetSourcesIDBucketsRequest, GetSourcesIDHealthRequest, GetSourcesIDRequest, GetSourcesRequest, GetTasksIDLabelsRequest, GetTasksIDLogsRequest, GetTasksIDMembersRequest, GetTasksIDOwnersRequest, GetTasksIDRequest, GetTasksIDRunsIDLogsRequest, GetTasksIDRunsIDRequest, GetTasksIDRunsRequest, GetTasksRequest, GetTelegrafPluginsRequest, GetTelegrafsIDLabelsRequest, GetTelegrafsIDMembersRequest, GetTelegrafsIDOwnersRequest, GetTelegrafsIDRequest, GetTelegrafsRequest, GetUsersIDRequest, GetUsersRequest, GetVariablesIDLabelsRequest, GetVariablesIDRequest, GetVariablesRequest, GreaterThreshold, HTTPNotificationEndpoint, HTTPNotificationRule, HTTPNotificationRuleBase, HealthAPI, HealthCheck, HeatmapViewProperties, HistogramViewProperties, Identifier, ImportDeclaration, IndexExpression, IntegerLiteral, IsOnboarding, Label, LabelCreateRequest, LabelMapping, LabelResponse, LabelUpdate, Labels, LabelsAPI, LabelsResponse, LanguageRequest, LatLonColumn, LatLonColumns, LegacyAPI, LegacyAuthorizationPostRequest, LesserThreshold, LinePlusSingleStatProperties, LineProtocolError, LineProtocolLengthError, Link, Links, ListStacksRequest, LogEvent, LogicalExpression, Logs, MapVariableProperties, MarkdownViewProperties, MeAPI, MemberAssignment, MemberExpression, MetadataBackup, MosaicViewProperties, Node, NodeType, NotificationEndpoint, NotificationEndpointBase, NotificationEndpointDiscriminator, NotificationEndpointType, NotificationEndpointUpdate, NotificationEndpoints, NotificationEndpointsAPI, NotificationRule, NotificationRuleBase, NotificationRuleDiscriminator, NotificationRuleUpdate, NotificationRules, NotificationRulesAPI, ObjectExpression, OnboardingRequest, OnboardingResponse, OptionStatement, Organization, Organizations, OrgsAPI, Package, PackageClause, PagerDutyNotificationEndpoint, PagerDutyNotificationRule, PagerDutyNotificationRuleBase, ParenExpression, PasswordResetBody, PatchAuthorizationsIDRequest, PatchBucketRequest, PatchBucketsIDRequest, PatchChecksIDRequest, PatchDBRPIDRequest, PatchDashboardsIDCellsIDRequest, PatchDashboardsIDCellsIDViewRequest, PatchDashboardsIDRequest, PatchLabelsIDRequest, PatchLegacyAuthorizationsIDRequest, PatchNotificationEndpointsIDRequest, PatchNotificationRulesIDRequest, PatchOrganizationRequest, PatchOrgsIDRequest, PatchOrgsIDSecretsRequest, PatchRetentionRule, PatchRetentionRules, PatchScrapersIDRequest, PatchScriptsIDRequest, PatchSourcesIDRequest, PatchTasksIDRequest, PatchUsersIDRequest, PatchVariablesIDRequest, Permission, PingAPI, PipeExpression, PipeLiteral, PostAuthorizationsRequest, PostBucketRequest, PostBucketsIDLabelsRequest, PostBucketsIDMembersRequest, PostBucketsIDOwnersRequest, PostBucketsRequest, PostCheck, PostChecksIDLabelsRequest, PostDBRPRequest, PostDashboardsIDCellsRequest, PostDashboardsIDLabelsRequest, PostDashboardsIDMembersRequest, PostDashboardsIDOwnersRequest, PostDashboardsRequest, PostDeleteRequest, PostLabelsRequest, PostLegacyAuthorizationsIDPasswordRequest, PostLegacyAuthorizationsRequest, PostNotificationEndpoint, PostNotificationEndpointIDLabelsRequest, PostNotificationRule, PostNotificationRuleIDLabelsRequest, PostOrganizationRequest, PostOrgsIDMembersRequest, PostOrgsIDOwnersRequest, PostOrgsIDSecretsRequest, PostOrgsRequest, PostQueryAnalyzeRequest, PostQueryAstRequest, PostQueryRequest, PostRestoreBucketIDRequest, PostRestoreBucketMetadataRequest, PostRestoreKVRequest, PostRestoreSQLRequest, PostRestoreShardIdRequest, PostScrapersIDLabelsRequest, PostScrapersIDMembersRequest, PostScrapersIDOwnersRequest, PostScrapersRequest, PostScriptsIDInvokeRequest, PostScriptsRequest, PostSetupRequest, PostSigninRequest, PostSignoutRequest, PostSourcesRequest, PostTasksIDLabelsRequest, PostTasksIDMembersRequest, PostTasksIDOwnersRequest, PostTasksIDRunsIDRetryRequest, PostTasksIDRunsRequest, PostTasksRequest, PostTelegrafsIDLabelsRequest, PostTelegrafsIDMembersRequest, PostTelegrafsIDOwnersRequest, PostTelegrafsRequest, PostUsersIDPasswordRequest, PostUsersRequest, PostVariablesIDLabelsRequest, PostVariablesRequest, PostWriteRequest, Property, PropertyKey, PutChecksIDRequest, PutDashboardsIDCellsRequest, PutMePasswordRequest, PutNotificationEndpointsIDRequest, PutNotificationRulesIDRequest, PutTelegrafsIDRequest, PutVariablesIDRequest, Query, QueryAPI, QueryEditMode, QueryVariableProperties, RangeThreshold, ReadStackRequest, Ready, ReadyAPI, RegexpLiteral, RenamableField, RequestOptions, Resource, ResourceMember, ResourceMembers, ResourceOwner, ResourceOwners, ResourcesAPI, RestoreAPI, RestoredBucketMappings, RetentionPolicyManifest, RetentionPolicyManifests, RetentionRule, RetentionRules, ReturnStatement, RootAPI, Routes, RuleStatusLevel, Run, RunManually, Runs, SMTPNotificationRule, SMTPNotificationRuleBase, ScatterViewProperties, SchemaType, ScraperTargetRequest, ScraperTargetResponse, ScraperTargetResponses, ScrapersAPI, Script, ScriptCreateRequest, ScriptHTTPResponseData, ScriptInvocationParams, ScriptLanguage, ScriptUpdateRequest, Scripts, ScriptsAPI, SecretKeys, SecretKeysResponse, Secrets, SetupAPI, ShardGroupManifest, ShardGroupManifests, ShardManifest, ShardManifests, ShardOwner, ShardOwners, SigninAPI, SignoutAPI, SimpleTableViewProperties, SingleStatViewProperties, SlackNotificationEndpoint, SlackNotificationRule, SlackNotificationRuleBase, Source, Sources, SourcesAPI, Stack, StacksAPI, Statement, StaticLegend, StatusRule, StringLiteral, SubscriptionManifest, SubscriptionManifests, TableViewProperties, TagRule, Task, TaskCreateRequest, TaskStatusType, TaskUpdateRequest, Tasks, TasksAPI, Telegraf, TelegrafAPI, TelegrafPlugin, TelegrafPlugins, TelegrafRequest, Telegrafs, TelegrafsAPI, TelegramNotificationEndpoint, TelegramNotificationRule, TelegramNotificationRuleBase, Template, TemplateApply, TemplateChart, TemplateEnvReferences, TemplateExportByID, TemplateExportByName, TemplateKind, TemplateSummary, TemplateSummaryLabel, TemplatesAPI, TestStatement, Threshold, ThresholdBase, ThresholdCheck, UnaryExpression, UninstallStackRequest, UnsignedIntegerLiteral, UpdateStackRequest, User, UserResponse, Users, UsersAPI, Variable, VariableAssignment, VariableProperties, Variables, VariablesAPI, View, ViewProperties, WriteAPI, XYGeom, XYViewProperties };
6087
+ export { ASTResponse, AddResourceMemberRequestBody, AnalyzeQueryResponse, ApplyTemplateRequest, ArrayExpression, Authorization, AuthorizationPostRequest, AuthorizationUpdateRequest, Authorizations, AuthorizationsAPI, Axes, Axis, AxisScale, BackupAPI, BadStatement, BandViewProperties, BinaryExpression, Block, BooleanLiteral, Bucket, BucketMetadataManifest, BucketMetadataManifests, BucketShardMapping, BucketShardMappings, Buckets, BucketsAPI, BuilderAggregateFunctionType, BuilderConfig, BuilderFunctionsType, BuilderTagsType, BuiltinStatement, CallExpression, Cell, CellUpdate, CellWithViewProperties, Cells, CellsWithViewProperties, Check, CheckBase, CheckDiscriminator, CheckPatch, CheckStatusLevel, CheckViewProperties, Checks, ChecksAPI, ColorMapping, ConditionalExpression, Config, ConfigAPI, ConstantVariableProperties, CreateCell, CreateCheckRequest, CreateDashboardRequest, CreateNotificationEndpointRequest, CreateNotificationRuleRequest, CreateStackRequest, CustomCheck, DBRP, DBRPCreate, DBRPGet, DBRPUpdate, DBRPs, Dashboard, DashboardColor, DashboardQuery, DashboardWithViewProperties, Dashboards, DashboardsAPI, DateTimeLiteral, DbrpsAPI, DeadmanCheck, DecimalPlaces, DeleteAPI, DeleteAuthorizationsIDRequest, DeleteBucketsIDLabelsIDRequest, DeleteBucketsIDMembersIDRequest, DeleteBucketsIDOwnersIDRequest, DeleteBucketsIDRequest, DeleteChecksIDLabelsIDRequest, DeleteChecksIDRequest, DeleteDBRPIDRequest, DeleteDashboardsIDCellsIDRequest, DeleteDashboardsIDLabelsIDRequest, DeleteDashboardsIDMembersIDRequest, DeleteDashboardsIDOwnersIDRequest, DeleteDashboardsIDRequest, DeleteLabelsIDRequest, DeleteLegacyAuthorizationsIDRequest, DeleteNotificationEndpointsIDLabelsIDRequest, DeleteNotificationEndpointsIDRequest, DeleteNotificationRulesIDLabelsIDRequest, DeleteNotificationRulesIDRequest, DeleteOrgsIDMembersIDRequest, DeleteOrgsIDOwnersIDRequest, DeleteOrgsIDRequest, DeleteOrgsIDSecretsIDRequest, DeletePredicateRequest, DeleteRemoteConnectionByIDRequest, DeleteReplicationByIDRequest, DeleteScrapersIDLabelsIDRequest, DeleteScrapersIDMembersIDRequest, DeleteScrapersIDOwnersIDRequest, DeleteScrapersIDRequest, DeleteScriptsIDRequest, DeleteSourcesIDRequest, DeleteStackRequest, DeleteTasksIDLabelsIDRequest, DeleteTasksIDMembersIDRequest, DeleteTasksIDOwnersIDRequest, DeleteTasksIDRequest, DeleteTasksIDRunsIDRequest, DeleteTelegrafsIDLabelsIDRequest, DeleteTelegrafsIDMembersIDRequest, DeleteTelegrafsIDOwnersIDRequest, DeleteTelegrafsIDRequest, DeleteUsersIDRequest, DeleteVariablesIDLabelsIDRequest, DeleteVariablesIDRequest, Dialect, DictExpression, DictItem, Duration, DurationLiteral, Error, ExecutionOptions, ExportTemplateRequest, Expression, ExpressionStatement, File, Flags, FlagsAPI, FloatLiteral, FluxResponse, FluxScriptInvocationAPI, FluxSuggestion, FluxSuggestions, FunctionExpression, GaugeViewProperties, GeoCircleViewLayer, GeoHeatMapViewLayer, GeoPointMapViewLayer, GeoTrackMapViewLayer, GeoViewLayer, GeoViewLayerProperties, GeoViewProperties, GetAuthorizationsIDRequest, GetAuthorizationsRequest, GetBackupKVRequest, GetBackupMetadataRequest, GetBackupShardIdRequest, GetBucketsIDLabelsRequest, GetBucketsIDMembersRequest, GetBucketsIDOwnersRequest, GetBucketsIDRequest, GetBucketsRequest, GetChecksIDLabelsRequest, GetChecksIDQueryRequest, GetChecksIDRequest, GetChecksRequest, GetConfigRequest, GetDBRPsIDRequest, GetDBRPsRequest, GetDashboardsIDCellsIDViewRequest, GetDashboardsIDLabelsRequest, GetDashboardsIDMembersRequest, GetDashboardsIDOwnersRequest, GetDashboardsIDRequest, GetDashboardsRequest, GetFlagsRequest, GetHealthRequest, GetLabelsIDRequest, GetLabelsRequest, GetLegacyAuthorizationsIDRequest, GetLegacyAuthorizationsRequest, GetMeRequest, GetMetricsRequest, GetNotificationEndpointsIDLabelsRequest, GetNotificationEndpointsIDRequest, GetNotificationEndpointsRequest, GetNotificationRulesIDLabelsRequest, GetNotificationRulesIDQueryRequest, GetNotificationRulesIDRequest, GetNotificationRulesRequest, GetOrgsIDMembersRequest, GetOrgsIDOwnersRequest, GetOrgsIDRequest, GetOrgsIDSecretsRequest, GetOrgsRequest, GetPingRequest, GetQuerySuggestionsNameRequest, GetQuerySuggestionsRequest, GetReadyRequest, GetRemoteConnectionByIDRequest, GetRemoteConnectionsRequest, GetReplicationByIDRequest, GetReplicationsRequest, GetResourcesRequest, GetRoutesRequest, GetScrapersIDLabelsRequest, GetScrapersIDMembersRequest, GetScrapersIDOwnersRequest, GetScrapersIDRequest, GetScrapersRequest, GetScriptsIDRequest, GetScriptsRequest, GetSetupRequest, GetSourcesIDBucketsRequest, GetSourcesIDHealthRequest, GetSourcesIDRequest, GetSourcesRequest, GetTasksIDLabelsRequest, GetTasksIDLogsRequest, GetTasksIDMembersRequest, GetTasksIDOwnersRequest, GetTasksIDRequest, GetTasksIDRunsIDLogsRequest, GetTasksIDRunsIDRequest, GetTasksIDRunsRequest, GetTasksRequest, GetTelegrafPluginsRequest, GetTelegrafsIDLabelsRequest, GetTelegrafsIDMembersRequest, GetTelegrafsIDOwnersRequest, GetTelegrafsIDRequest, GetTelegrafsRequest, GetUsersIDRequest, GetUsersRequest, GetVariablesIDLabelsRequest, GetVariablesIDRequest, GetVariablesRequest, GreaterThreshold, HTTPNotificationEndpoint, HTTPNotificationRule, HTTPNotificationRuleBase, HealthAPI, HealthCheck, HeatmapViewProperties, HistogramViewProperties, Identifier, ImportDeclaration, IndexExpression, IntegerLiteral, IsOnboarding, Label, LabelCreateRequest, LabelMapping, LabelResponse, LabelUpdate, Labels, LabelsAPI, LabelsResponse, LanguageRequest, LatLonColumn, LatLonColumns, LegacyAPI, LegacyAuthorizationPostRequest, LesserThreshold, LinePlusSingleStatProperties, LineProtocolError, LineProtocolLengthError, Link, Links, ListStacksRequest, LogEvent, LogicalExpression, Logs, MapVariableProperties, MarkdownViewProperties, MeAPI, MemberAssignment, MemberExpression, MetadataBackup, MetricsAPI, MosaicViewProperties, Node, NodeType, NotificationEndpoint, NotificationEndpointBase, NotificationEndpointDiscriminator, NotificationEndpointType, NotificationEndpointUpdate, NotificationEndpoints, NotificationEndpointsAPI, NotificationRule, NotificationRuleBase, NotificationRuleDiscriminator, NotificationRuleUpdate, NotificationRules, NotificationRulesAPI, ObjectExpression, OnboardingRequest, OnboardingResponse, OptionStatement, Organization, Organizations, OrgsAPI, Package, PackageClause, PagerDutyNotificationEndpoint, PagerDutyNotificationRule, PagerDutyNotificationRuleBase, ParenExpression, PasswordResetBody, PatchAuthorizationsIDRequest, PatchBucketRequest, PatchBucketsIDRequest, PatchChecksIDRequest, PatchDBRPIDRequest, PatchDashboardsIDCellsIDRequest, PatchDashboardsIDCellsIDViewRequest, PatchDashboardsIDRequest, PatchLabelsIDRequest, PatchLegacyAuthorizationsIDRequest, PatchNotificationEndpointsIDRequest, PatchNotificationRulesIDRequest, PatchOrganizationRequest, PatchOrgsIDRequest, PatchOrgsIDSecretsRequest, PatchRemoteConnectionByIDRequest, PatchReplicationByIDRequest, PatchRetentionRule, PatchRetentionRules, PatchScrapersIDRequest, PatchScriptsIDRequest, PatchSourcesIDRequest, PatchTasksIDRequest, PatchUsersIDRequest, PatchVariablesIDRequest, Permission, PingAPI, PipeExpression, PipeLiteral, PostAuthorizationsRequest, PostBucketRequest, PostBucketsIDLabelsRequest, PostBucketsIDMembersRequest, PostBucketsIDOwnersRequest, PostBucketsRequest, PostCheck, PostChecksIDLabelsRequest, PostDBRPRequest, PostDashboardsIDCellsRequest, PostDashboardsIDLabelsRequest, PostDashboardsIDMembersRequest, PostDashboardsIDOwnersRequest, PostDashboardsRequest, PostDeleteRequest, PostLabelsRequest, PostLegacyAuthorizationsIDPasswordRequest, PostLegacyAuthorizationsRequest, PostNotificationEndpoint, PostNotificationEndpointIDLabelsRequest, PostNotificationRule, PostNotificationRuleIDLabelsRequest, PostOrganizationRequest, PostOrgsIDMembersRequest, PostOrgsIDOwnersRequest, PostOrgsIDSecretsRequest, PostOrgsRequest, PostQueryAnalyzeRequest, PostQueryAstRequest, PostQueryRequest, PostRemoteConnectionRequest, PostReplicationRequest, PostRestoreBucketIDRequest, PostRestoreBucketMetadataRequest, PostRestoreKVRequest, PostRestoreSQLRequest, PostRestoreShardIdRequest, PostScrapersIDLabelsRequest, PostScrapersIDMembersRequest, PostScrapersIDOwnersRequest, PostScrapersRequest, PostScriptsIDInvokeRequest, PostScriptsRequest, PostSetupRequest, PostSigninRequest, PostSignoutRequest, PostSourcesRequest, PostTasksIDLabelsRequest, PostTasksIDMembersRequest, PostTasksIDOwnersRequest, PostTasksIDRunsIDRetryRequest, PostTasksIDRunsRequest, PostTasksRequest, PostTelegrafsIDLabelsRequest, PostTelegrafsIDMembersRequest, PostTelegrafsIDOwnersRequest, PostTelegrafsRequest, PostUsersIDPasswordRequest, PostUsersRequest, PostValidateReplicationByIDRequest, PostVariablesIDLabelsRequest, PostVariablesRequest, PostWriteRequest, Property, PropertyKey, PutChecksIDRequest, PutDashboardsIDCellsRequest, PutMePasswordRequest, PutNotificationEndpointsIDRequest, PutNotificationRulesIDRequest, PutTelegrafsIDRequest, PutVariablesIDRequest, Query, QueryAPI, QueryEditMode, QueryVariableProperties, RangeThreshold, ReadStackRequest, Ready, ReadyAPI, RegexpLiteral, RemoteConnection, RemoteConnectionCreationRequest, RemoteConnectionUpdateRequest, RemoteConnections, RemotesAPI, RenamableField, Replication, ReplicationCreationRequest, ReplicationUpdateRequest, Replications, ReplicationsAPI, RequestOptions, Resource, ResourceMember, ResourceMembers, ResourceOwner, ResourceOwners, ResourcesAPI, RestoreAPI, RestoredBucketMappings, RetentionPolicyManifest, RetentionPolicyManifests, RetentionRule, RetentionRules, ReturnStatement, RootAPI, Routes, RuleStatusLevel, Run, RunManually, Runs, SMTPNotificationRule, SMTPNotificationRuleBase, ScatterViewProperties, SchemaType, ScraperTargetRequest, ScraperTargetResponse, ScraperTargetResponses, ScrapersAPI, Script, ScriptCreateRequest, ScriptHTTPResponseData, ScriptInvocationParams, ScriptLanguage, ScriptUpdateRequest, Scripts, ScriptsAPI, SecretKeys, SecretKeysResponse, Secrets, SetupAPI, ShardGroupManifest, ShardGroupManifests, ShardManifest, ShardManifests, ShardOwner, ShardOwners, SigninAPI, SignoutAPI, SimpleTableViewProperties, SingleStatViewProperties, SlackNotificationEndpoint, SlackNotificationRule, SlackNotificationRuleBase, Source, Sources, SourcesAPI, Stack, StacksAPI, Statement, StaticLegend, StatusRule, StringLiteral, SubscriptionManifest, SubscriptionManifests, TableViewProperties, TagRule, Task, TaskCreateRequest, TaskStatusType, TaskUpdateRequest, Tasks, TasksAPI, Telegraf, TelegrafAPI, TelegrafPlugin, TelegrafPluginRequest, TelegrafPlugins, TelegrafRequest, Telegrafs, TelegrafsAPI, TelegramNotificationEndpoint, TelegramNotificationRule, TelegramNotificationRuleBase, Template, TemplateApply, TemplateChart, TemplateEnvReferences, TemplateExportByID, TemplateExportByName, TemplateKind, TemplateSummary, TemplateSummaryLabel, TemplatesAPI, TestStatement, Threshold, ThresholdBase, ThresholdCheck, UnaryExpression, UninstallStackRequest, UnsignedIntegerLiteral, UpdateStackRequest, User, UserResponse, Users, UsersAPI, Variable, VariableAssignment, VariableProperties, Variables, VariablesAPI, View, ViewProperties, WriteAPI, XYGeom, XYViewProperties };
@@ -0,0 +1,25 @@
1
+ import { InfluxDB } from '@influxdata/influxdb-client';
2
+ import { RequestOptions } from '../APIBase';
3
+ import { Config } from './types';
4
+ export interface GetConfigRequest {
5
+ }
6
+ /**
7
+ * Config API
8
+ */
9
+ export declare class ConfigAPI {
10
+ private base;
11
+ /**
12
+ * Creates ConfigAPI
13
+ * @param influxDB - an instance that knows how to communicate with InfluxDB server
14
+ */
15
+ constructor(influxDB: InfluxDB);
16
+ /**
17
+ * Get the run-time configuration of the instance.
18
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetConfig }
19
+ * @param request - request parameters and body (if supported)
20
+ * @param requestOptions - optional transport options
21
+ * @returns promise of response
22
+ */
23
+ getConfig(request?: GetConfigRequest, requestOptions?: RequestOptions): Promise<Config>;
24
+ }
25
+ //# sourceMappingURL=ConfigAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigAPI.d.ts","sourceRoot":"","sources":["../src/generated/ConfigAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAU,cAAc,EAAC,MAAM,YAAY,CAAA;AAClD,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAA;AAE9B,MAAM,WAAW,gBAAgB;CAAG;AACpC;;GAEG;AACH,qBAAa,SAAS;IAEpB,OAAO,CAAC,IAAI,CAAS;IAErB;;;OAGG;gBACS,QAAQ,EAAE,QAAQ;IAG9B;;;;;;OAMG;IACH,SAAS,CACP,OAAO,CAAC,EAAE,gBAAgB,EAC1B,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,MAAM,CAAC;CAGnB"}
@@ -0,0 +1,24 @@
1
+ import { InfluxDB } from '@influxdata/influxdb-client';
2
+ import { RequestOptions } from '../APIBase';
3
+ export interface GetMetricsRequest {
4
+ }
5
+ /**
6
+ * Metrics API
7
+ */
8
+ export declare class MetricsAPI {
9
+ private base;
10
+ /**
11
+ * Creates MetricsAPI
12
+ * @param influxDB - an instance that knows how to communicate with InfluxDB server
13
+ */
14
+ constructor(influxDB: InfluxDB);
15
+ /**
16
+ * Get metrics of an instance.
17
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetMetrics }
18
+ * @param request - request parameters and body (if supported)
19
+ * @param requestOptions - optional transport options
20
+ * @returns promise of response
21
+ */
22
+ getMetrics(request?: GetMetricsRequest, requestOptions?: RequestOptions): Promise<any>;
23
+ }
24
+ //# sourceMappingURL=MetricsAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricsAPI.d.ts","sourceRoot":"","sources":["../src/generated/MetricsAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAU,cAAc,EAAC,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,iBAAiB;CAAG;AACrC;;GAEG;AACH,qBAAa,UAAU;IAErB,OAAO,CAAC,IAAI,CAAS;IAErB;;;OAGG;gBACS,QAAQ,EAAE,QAAQ;IAG9B;;;;;;OAMG;IACH,UAAU,CACR,OAAO,CAAC,EAAE,iBAAiB,EAC3B,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,GAAG,CAAC;CAGhB"}
@@ -0,0 +1,76 @@
1
+ import { InfluxDB } from '@influxdata/influxdb-client';
2
+ import { RequestOptions } from '../APIBase';
3
+ import { RemoteConnection, RemoteConnectionCreationRequest, RemoteConnectionUpdateRequest, RemoteConnections } from './types';
4
+ export interface GetRemoteConnectionsRequest {
5
+ /** The organization ID. */
6
+ orgID: string;
7
+ name?: string;
8
+ remoteURL?: string;
9
+ }
10
+ export interface PostRemoteConnectionRequest {
11
+ /** entity body */
12
+ body: RemoteConnectionCreationRequest;
13
+ }
14
+ export interface GetRemoteConnectionByIDRequest {
15
+ remoteID: string;
16
+ }
17
+ export interface PatchRemoteConnectionByIDRequest {
18
+ remoteID: string;
19
+ /** entity body */
20
+ body: RemoteConnectionUpdateRequest;
21
+ }
22
+ export interface DeleteRemoteConnectionByIDRequest {
23
+ remoteID: string;
24
+ }
25
+ /**
26
+ * Remotes API
27
+ */
28
+ export declare class RemotesAPI {
29
+ private base;
30
+ /**
31
+ * Creates RemotesAPI
32
+ * @param influxDB - an instance that knows how to communicate with InfluxDB server
33
+ */
34
+ constructor(influxDB: InfluxDB);
35
+ /**
36
+ * List all remote connections.
37
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetRemoteConnections }
38
+ * @param request - request parameters and body (if supported)
39
+ * @param requestOptions - optional transport options
40
+ * @returns promise of response
41
+ */
42
+ getRemoteConnections(request: GetRemoteConnectionsRequest, requestOptions?: RequestOptions): Promise<RemoteConnections>;
43
+ /**
44
+ * Register a new remote connection.
45
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PostRemoteConnection }
46
+ * @param request - request parameters and body (if supported)
47
+ * @param requestOptions - optional transport options
48
+ * @returns promise of response
49
+ */
50
+ postRemoteConnection(request: PostRemoteConnectionRequest, requestOptions?: RequestOptions): Promise<RemoteConnection>;
51
+ /**
52
+ * Retrieve a remote connection.
53
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetRemoteConnectionByID }
54
+ * @param request - request parameters and body (if supported)
55
+ * @param requestOptions - optional transport options
56
+ * @returns promise of response
57
+ */
58
+ getRemoteConnectionByID(request: GetRemoteConnectionByIDRequest, requestOptions?: RequestOptions): Promise<RemoteConnection>;
59
+ /**
60
+ * Update a remote connection.
61
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PatchRemoteConnectionByID }
62
+ * @param request - request parameters and body (if supported)
63
+ * @param requestOptions - optional transport options
64
+ * @returns promise of response
65
+ */
66
+ patchRemoteConnectionByID(request: PatchRemoteConnectionByIDRequest, requestOptions?: RequestOptions): Promise<RemoteConnection>;
67
+ /**
68
+ * Delete a remote connection.
69
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/DeleteRemoteConnectionByID }
70
+ * @param request - request parameters and body (if supported)
71
+ * @param requestOptions - optional transport options
72
+ * @returns promise of response
73
+ */
74
+ deleteRemoteConnectionByID(request: DeleteRemoteConnectionByIDRequest, requestOptions?: RequestOptions): Promise<void>;
75
+ }
76
+ //# sourceMappingURL=RemotesAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemotesAPI.d.ts","sourceRoot":"","sources":["../src/generated/RemotesAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAU,cAAc,EAAC,MAAM,YAAY,CAAA;AAClD,OAAO,EACL,gBAAgB,EAChB,+BAA+B,EAC/B,6BAA6B,EAC7B,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAEhB,MAAM,WAAW,2BAA2B;IAC1C,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AACD,MAAM,WAAW,2BAA2B;IAC1C,kBAAkB;IAClB,IAAI,EAAE,+BAA+B,CAAA;CACtC;AACD,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,kBAAkB;IAClB,IAAI,EAAE,6BAA6B,CAAA;CACpC;AACD,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD;;GAEG;AACH,qBAAa,UAAU;IAErB,OAAO,CAAC,IAAI,CAAS;IAErB;;;OAGG;gBACS,QAAQ,EAAE,QAAQ;IAG9B;;;;;;OAMG;IACH,oBAAoB,CAClB,OAAO,EAAE,2BAA2B,EACpC,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,iBAAiB,CAAC;IAY7B;;;;;;OAMG;IACH,oBAAoB,CAClB,OAAO,EAAE,2BAA2B,EACpC,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,gBAAgB,CAAC;IAS5B;;;;;;OAMG;IACH,uBAAuB,CACrB,OAAO,EAAE,8BAA8B,EACvC,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,gBAAgB,CAAC;IAQ5B;;;;;;OAMG;IACH,yBAAyB,CACvB,OAAO,EAAE,gCAAgC,EACzC,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,gBAAgB,CAAC;IAS5B;;;;;;OAMG;IACH,0BAA0B,CACxB,OAAO,EAAE,iCAAiC,EAC1C,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,IAAI,CAAC;CAQjB"}
@@ -0,0 +1,92 @@
1
+ import { InfluxDB } from '@influxdata/influxdb-client';
2
+ import { RequestOptions } from '../APIBase';
3
+ import { Replication, ReplicationCreationRequest, ReplicationUpdateRequest, Replications } from './types';
4
+ export interface GetReplicationsRequest {
5
+ /** The organization ID. */
6
+ orgID: string;
7
+ name?: string;
8
+ remoteID?: string;
9
+ localBucketID?: string;
10
+ }
11
+ export interface PostReplicationRequest {
12
+ /** entity body */
13
+ body: ReplicationCreationRequest;
14
+ /** If true, validate the replication, but don't save it. */
15
+ validate?: any;
16
+ }
17
+ export interface GetReplicationByIDRequest {
18
+ replicationID: string;
19
+ }
20
+ export interface PatchReplicationByIDRequest {
21
+ replicationID: string;
22
+ /** entity body */
23
+ body: ReplicationUpdateRequest;
24
+ /** If true, validate the updated information, but don't save it. */
25
+ validate?: any;
26
+ }
27
+ export interface DeleteReplicationByIDRequest {
28
+ replicationID: string;
29
+ }
30
+ export interface PostValidateReplicationByIDRequest {
31
+ replicationID: string;
32
+ }
33
+ /**
34
+ * Replications API
35
+ */
36
+ export declare class ReplicationsAPI {
37
+ private base;
38
+ /**
39
+ * Creates ReplicationsAPI
40
+ * @param influxDB - an instance that knows how to communicate with InfluxDB server
41
+ */
42
+ constructor(influxDB: InfluxDB);
43
+ /**
44
+ * List all replications.
45
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetReplications }
46
+ * @param request - request parameters and body (if supported)
47
+ * @param requestOptions - optional transport options
48
+ * @returns promise of response
49
+ */
50
+ getReplications(request: GetReplicationsRequest, requestOptions?: RequestOptions): Promise<Replications>;
51
+ /**
52
+ * Register a new replication.
53
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PostReplication }
54
+ * @param request - request parameters and body (if supported)
55
+ * @param requestOptions - optional transport options
56
+ * @returns promise of response
57
+ */
58
+ postReplication(request: PostReplicationRequest, requestOptions?: RequestOptions): Promise<Replication>;
59
+ /**
60
+ * Retrieve a replication.
61
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/GetReplicationByID }
62
+ * @param request - request parameters and body (if supported)
63
+ * @param requestOptions - optional transport options
64
+ * @returns promise of response
65
+ */
66
+ getReplicationByID(request: GetReplicationByIDRequest, requestOptions?: RequestOptions): Promise<Replication>;
67
+ /**
68
+ * Update a replication.
69
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PatchReplicationByID }
70
+ * @param request - request parameters and body (if supported)
71
+ * @param requestOptions - optional transport options
72
+ * @returns promise of response
73
+ */
74
+ patchReplicationByID(request: PatchReplicationByIDRequest, requestOptions?: RequestOptions): Promise<Replication>;
75
+ /**
76
+ * Delete a replication.
77
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/DeleteReplicationByID }
78
+ * @param request - request parameters and body (if supported)
79
+ * @param requestOptions - optional transport options
80
+ * @returns promise of response
81
+ */
82
+ deleteReplicationByID(request: DeleteReplicationByIDRequest, requestOptions?: RequestOptions): Promise<void>;
83
+ /**
84
+ * Validate a replication.
85
+ * See {@link https://docs.influxdata.com/influxdb/v2.1/api/#operation/PostValidateReplicationByID }
86
+ * @param request - request parameters and body (if supported)
87
+ * @param requestOptions - optional transport options
88
+ * @returns promise of response
89
+ */
90
+ postValidateReplicationByID(request: PostValidateReplicationByIDRequest, requestOptions?: RequestOptions): Promise<void>;
91
+ }
92
+ //# sourceMappingURL=ReplicationsAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReplicationsAPI.d.ts","sourceRoot":"","sources":["../src/generated/ReplicationsAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAU,cAAc,EAAC,MAAM,YAAY,CAAA;AAClD,OAAO,EACL,WAAW,EACX,0BAA0B,EAC1B,wBAAwB,EACxB,YAAY,EACb,MAAM,SAAS,CAAA;AAEhB,MAAM,WAAW,sBAAsB;IACrC,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AACD,MAAM,WAAW,sBAAsB;IACrC,kBAAkB;IAClB,IAAI,EAAE,0BAA0B,CAAA;IAChC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,GAAG,CAAA;CACf;AACD,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,MAAM,CAAA;CACtB;AACD,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB;IAClB,IAAI,EAAE,wBAAwB,CAAA;IAC9B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,GAAG,CAAA;CACf;AACD,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,MAAM,CAAA;CACtB;AACD,MAAM,WAAW,kCAAkC;IACjD,aAAa,EAAE,MAAM,CAAA;CACtB;AACD;;GAEG;AACH,qBAAa,eAAe;IAE1B,OAAO,CAAC,IAAI,CAAS;IAErB;;;OAGG;gBACS,QAAQ,EAAE,QAAQ;IAG9B;;;;;;OAMG;IACH,eAAe,CACb,OAAO,EAAE,sBAAsB,EAC/B,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,YAAY,CAAC;IAaxB;;;;;;OAMG;IACH,eAAe,CACb,OAAO,EAAE,sBAAsB,EAC/B,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,WAAW,CAAC;IASvB;;;;;;OAMG;IACH,kBAAkB,CAChB,OAAO,EAAE,yBAAyB,EAClC,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,WAAW,CAAC;IAQvB;;;;;;OAMG;IACH,oBAAoB,CAClB,OAAO,EAAE,2BAA2B,EACpC,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,WAAW,CAAC;IAWvB;;;;;;OAMG;IACH,qBAAqB,CACnB,OAAO,EAAE,4BAA4B,EACrC,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;;OAMG;IACH,2BAA2B,CACzB,OAAO,EAAE,kCAAkC,EAC3C,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,IAAI,CAAC;CAQjB"}
@@ -1,13 +1,13 @@
1
1
  import { InfluxDB } from '@influxdata/influxdb-client';
2
2
  import { RequestOptions } from '../APIBase';
3
- import { AddResourceMemberRequestBody, LabelMapping, LabelResponse, LabelsResponse, ResourceMember, ResourceMembers, ResourceOwner, ResourceOwners, Telegraf, TelegrafRequest, Telegrafs } from './types';
3
+ import { AddResourceMemberRequestBody, LabelMapping, LabelResponse, LabelsResponse, ResourceMember, ResourceMembers, ResourceOwner, ResourceOwners, Telegraf, TelegrafPluginRequest, Telegrafs } from './types';
4
4
  export interface GetTelegrafsRequest {
5
5
  /** The organization ID the Telegraf config belongs to. */
6
6
  orgID?: string;
7
7
  }
8
8
  export interface PostTelegrafsRequest {
9
9
  /** Telegraf configuration to create */
10
- body: TelegrafRequest;
10
+ body: TelegrafPluginRequest;
11
11
  }
12
12
  export interface GetTelegrafsIDRequest {
13
13
  /** The Telegraf configuration ID. */
@@ -17,7 +17,7 @@ export interface PutTelegrafsIDRequest {
17
17
  /** The Telegraf config ID. */
18
18
  telegrafID: string;
19
19
  /** Telegraf configuration update to apply */
20
- body: TelegrafRequest;
20
+ body: TelegrafPluginRequest;
21
21
  }
22
22
  export interface DeleteTelegrafsIDRequest {
23
23
  /** The Telegraf configuration ID. */