@maxim_mazurok/gapi.client.composer-v1 0.0.20240106 → 0.0.20240123
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/index.d.ts +79 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://composer.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240123
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -52,6 +52,32 @@ declare namespace gapi.client {
|
|
|
52
52
|
/** Optional. Whether or not Cloud Data Lineage integration is enabled. */
|
|
53
53
|
enabled?: boolean;
|
|
54
54
|
}
|
|
55
|
+
interface ComposerWorkload {
|
|
56
|
+
/** Name of a workload. */
|
|
57
|
+
name?: string;
|
|
58
|
+
/** Output only. Status of a workload. */
|
|
59
|
+
status?: ComposerWorkloadStatus;
|
|
60
|
+
/** Type of a workload. */
|
|
61
|
+
type?: string;
|
|
62
|
+
}
|
|
63
|
+
interface ComposerWorkloadStatus {
|
|
64
|
+
/** Output only. Detailed message of the status. */
|
|
65
|
+
detailedStatusMessage?: string;
|
|
66
|
+
/** Output only. Workload state. */
|
|
67
|
+
state?: string;
|
|
68
|
+
/** Output only. Text to provide more descriptive status. */
|
|
69
|
+
statusMessage?: string;
|
|
70
|
+
}
|
|
71
|
+
interface DagProcessorResource {
|
|
72
|
+
/** Optional. The number of DAG processors. If not provided or set to 0, a single DAG processor instance will be created. */
|
|
73
|
+
count?: number;
|
|
74
|
+
/** Optional. CPU request and limit for a single Airflow DAG processor replica. */
|
|
75
|
+
cpu?: number;
|
|
76
|
+
/** Optional. Memory (GB) request and limit for a single Airflow DAG processor replica. */
|
|
77
|
+
memoryGb?: number;
|
|
78
|
+
/** Optional. Storage (GB) request and limit for a single Airflow DAG processor replica. */
|
|
79
|
+
storageGb?: number;
|
|
80
|
+
}
|
|
55
81
|
interface DatabaseConfig {
|
|
56
82
|
/** Optional. Cloud SQL machine type used by Airflow database. It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. If not specified, db-n1-standard-2 will be used. Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*. */
|
|
57
83
|
machineType?: string;
|
|
@@ -219,6 +245,12 @@ declare namespace gapi.client {
|
|
|
219
245
|
/** A list of operations that matches the specified filter in the request. */
|
|
220
246
|
operations?: Operation[];
|
|
221
247
|
}
|
|
248
|
+
interface ListWorkloadsResponse {
|
|
249
|
+
/** The page token used to query for the next page if one exists. */
|
|
250
|
+
nextPageToken?: string;
|
|
251
|
+
/** The list of environment workloads. */
|
|
252
|
+
workloads?: ComposerWorkload[];
|
|
253
|
+
}
|
|
222
254
|
interface LoadSnapshotRequest {
|
|
223
255
|
/** Whether or not to skip setting Airflow overrides when loading the environment's state. */
|
|
224
256
|
skipAirflowOverridesSetting?: boolean;
|
|
@@ -251,6 +283,10 @@ declare namespace gapi.client {
|
|
|
251
283
|
connectionType?: string;
|
|
252
284
|
}
|
|
253
285
|
interface NodeConfig {
|
|
286
|
+
/** Optional. The IP range in CIDR notation to use internally by Cloud Composer. IP addresses are not reserved - and the same range can be used by multiple Cloud Composer environments. In case of overlap, IPs from this range will not be accessible in the user's VPC network. Cannot be updated. If not specified, the default value of '100.64.128.0/20' is used. This field is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
|
|
287
|
+
composerInternalIpv4CidrBlock?: string;
|
|
288
|
+
/** Optional. Network Attachment that Cloud Composer environment is connected to, which provides connectivity with a user's VPC network. Takes precedence over network and subnetwork settings. If not provided, but network and subnetwork are defined during environment, it will be provisioned. If not provided and network and subnetwork are also empty, then connectivity to user's VPC network is disabled. Network attachment must be provided in format projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. This field is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
|
|
289
|
+
composerNetworkAttachment?: string;
|
|
254
290
|
/** Optional. The disk size in GB used for node VMs. Minimum size is 30GB. If unspecified, defaults to 100GB. Cannot be updated. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*. */
|
|
255
291
|
diskSizeGb?: number;
|
|
256
292
|
/** Optional. Deploys 'ip-masq-agent' daemon set in the GKE cluster and defines nonMasqueradeCIDRs equals to pod IP range so IP masquerading is used for all destination addresses, except between pods traffic. See: https://cloud.google.com/kubernetes-engine/docs/how-to/ip-masquerade-agent */
|
|
@@ -333,6 +369,8 @@ declare namespace gapi.client {
|
|
|
333
369
|
cloudComposerNetworkIpv4ReservedRange?: string;
|
|
334
370
|
/** Optional. The CIDR block from which IP range in tenant project will be reserved for Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`. */
|
|
335
371
|
cloudSqlIpv4CidrBlock?: string;
|
|
372
|
+
/** Optional. If `true`, builds performed during operations that install Python packages have only private connectivity to Google services (including Artifact Registry) and VPC network (if either `NodeConfig.network` and `NodeConfig.subnetwork` fields or `NodeConfig.composer_network_attachment` field are specified). If `false`, the builds also have access to the internet. This field is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
|
|
373
|
+
enablePrivateBuildsOnly?: boolean;
|
|
336
374
|
/** Optional. If `true`, a Private IP Cloud Composer environment is created. If this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be set to true for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*. */
|
|
337
375
|
enablePrivateEnvironment?: boolean;
|
|
338
376
|
/** Optional. When enabled, IPs from public (non-RFC1918) ranges can be used for `IPAllocationPolicy.cluster_ipv4_cidr_block` and `IPAllocationPolicy.service_ipv4_cidr_block`. */
|
|
@@ -393,6 +431,8 @@ declare namespace gapi.client {
|
|
|
393
431
|
pythonVersion?: string;
|
|
394
432
|
/** Optional. The number of schedulers for Airflow. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-2.*.*. */
|
|
395
433
|
schedulerCount?: number;
|
|
434
|
+
/** Optional. Whether or not the web server uses custom plugins. If unspecified, the field defaults to `PLUGINS_ENABLED`. This field is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
|
|
435
|
+
webServerPluginsMode?: string;
|
|
396
436
|
}
|
|
397
437
|
interface Status {
|
|
398
438
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
@@ -463,6 +503,8 @@ declare namespace gapi.client {
|
|
|
463
503
|
storageGb?: number;
|
|
464
504
|
}
|
|
465
505
|
interface WorkloadsConfig {
|
|
506
|
+
/** Optional. Resources used by Airflow DAG processors. This field is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
|
|
507
|
+
dagProcessor?: DagProcessorResource;
|
|
466
508
|
/** Optional. Resources used by Airflow schedulers. */
|
|
467
509
|
scheduler?: SchedulerResource;
|
|
468
510
|
/** Optional. Resources used by Airflow triggerers. */
|
|
@@ -472,6 +514,41 @@ declare namespace gapi.client {
|
|
|
472
514
|
/** Optional. Resources used by Airflow workers. */
|
|
473
515
|
worker?: WorkerResource;
|
|
474
516
|
}
|
|
517
|
+
interface WorkloadsResource {
|
|
518
|
+
/** Lists workloads in a Cloud Composer environment. Workload is a unit that runs a single Composer component. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
|
|
519
|
+
list(request?: {
|
|
520
|
+
/** V1 error format. */
|
|
521
|
+
'$.xgafv'?: string;
|
|
522
|
+
/** OAuth access token. */
|
|
523
|
+
access_token?: string;
|
|
524
|
+
/** Data format for response. */
|
|
525
|
+
alt?: string;
|
|
526
|
+
/** JSONP */
|
|
527
|
+
callback?: string;
|
|
528
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
529
|
+
fields?: string;
|
|
530
|
+
/** Optional. The list filter. Currently only supports equality on the type field. The value of a field specified in the filter expression must be one ComposerWorkloadType enum option. It's possible to get multiple types using "OR" operator, e.g.: "type=SCHEDULER OR type=CELERY_WORKER". If not specified, all items are returned. */
|
|
531
|
+
filter?: string;
|
|
532
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
533
|
+
key?: string;
|
|
534
|
+
/** OAuth 2.0 token for the current user. */
|
|
535
|
+
oauth_token?: string;
|
|
536
|
+
/** Optional. The maximum number of environments to return. */
|
|
537
|
+
pageSize?: number;
|
|
538
|
+
/** Optional. The next_page_token value returned from a previous List request, if any. */
|
|
539
|
+
pageToken?: string;
|
|
540
|
+
/** Required. The environment name to get workloads for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
|
|
541
|
+
parent: string;
|
|
542
|
+
/** Returns response with indentations and line breaks. */
|
|
543
|
+
prettyPrint?: boolean;
|
|
544
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
545
|
+
quotaUser?: string;
|
|
546
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
547
|
+
upload_protocol?: string;
|
|
548
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
549
|
+
uploadType?: string;
|
|
550
|
+
}): Request<ListWorkloadsResponse>;
|
|
551
|
+
}
|
|
475
552
|
interface EnvironmentsResource {
|
|
476
553
|
/** Create a new environment. */
|
|
477
554
|
create(request: {
|
|
@@ -1053,6 +1130,7 @@ declare namespace gapi.client {
|
|
|
1053
1130
|
},
|
|
1054
1131
|
body: StopAirflowCommandRequest
|
|
1055
1132
|
): Request<StopAirflowCommandResponse>;
|
|
1133
|
+
workloads: WorkloadsResource;
|
|
1056
1134
|
}
|
|
1057
1135
|
interface ImageVersionsResource {
|
|
1058
1136
|
/** List ImageVersions for provided location. */
|