@maxim_mazurok/gapi.client.composer-v1 0.0.20240106 → 0.0.20240204

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.
Files changed (2) hide show
  1. package/index.d.ts +511 -1
  2. 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: 20240106
12
+ // Revision: 20240204
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,24 @@ 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 ListUserWorkloadsConfigMapsResponse {
249
+ /** The page token used to query for the next page if one exists. */
250
+ nextPageToken?: string;
251
+ /** The list of ConfigMaps returned by a ListUserWorkloadsConfigMapsRequest. */
252
+ userWorkloadsConfigMaps?: UserWorkloadsConfigMap[];
253
+ }
254
+ interface ListUserWorkloadsSecretsResponse {
255
+ /** The page token used to query for the next page if one exists. */
256
+ nextPageToken?: string;
257
+ /** The list of Secrets returned by a ListUserWorkloadsSecretsRequest. */
258
+ userWorkloadsSecrets?: UserWorkloadsSecret[];
259
+ }
260
+ interface ListWorkloadsResponse {
261
+ /** The page token used to query for the next page if one exists. */
262
+ nextPageToken?: string;
263
+ /** The list of environment workloads. */
264
+ workloads?: ComposerWorkload[];
265
+ }
222
266
  interface LoadSnapshotRequest {
223
267
  /** Whether or not to skip setting Airflow overrides when loading the environment's state. */
224
268
  skipAirflowOverridesSetting?: boolean;
@@ -251,6 +295,10 @@ declare namespace gapi.client {
251
295
  connectionType?: string;
252
296
  }
253
297
  interface NodeConfig {
298
+ /** 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. */
299
+ composerInternalIpv4CidrBlock?: string;
300
+ /** 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. */
301
+ composerNetworkAttachment?: string;
254
302
  /** 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
303
  diskSizeGb?: number;
256
304
  /** 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 +381,8 @@ declare namespace gapi.client {
333
381
  cloudComposerNetworkIpv4ReservedRange?: string;
334
382
  /** 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
383
  cloudSqlIpv4CidrBlock?: string;
384
+ /** 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. */
385
+ enablePrivateBuildsOnly?: boolean;
336
386
  /** 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
387
  enablePrivateEnvironment?: boolean;
338
388
  /** 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 +443,8 @@ declare namespace gapi.client {
393
443
  pythonVersion?: string;
394
444
  /** Optional. The number of schedulers for Airflow. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-2.*.*. */
395
445
  schedulerCount?: number;
446
+ /** 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. */
447
+ webServerPluginsMode?: string;
396
448
  }
397
449
  interface Status {
398
450
  /** The status code, which should be an enum value of google.rpc.Code. */
@@ -434,6 +486,18 @@ declare namespace gapi.client {
434
486
  /** Optional. Memory (GB) request and limit for a single Airflow triggerer replica. */
435
487
  memoryGb?: number;
436
488
  }
489
+ interface UserWorkloadsConfigMap {
490
+ /** Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/ */
491
+ data?: {[P in string]: string};
492
+ /** Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" */
493
+ name?: string;
494
+ }
495
+ interface UserWorkloadsSecret {
496
+ /** Optional. The "data" field of Kubernetes Secret, organized in key-value pairs, which can contain sensitive values such as a password, a token, or a key. The values for all keys have to be base64-encoded strings. For details see: https://kubernetes.io/docs/concepts/configuration/secret/ */
497
+ data?: {[P in string]: string};
498
+ /** Identifier. The resource name of the Secret, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" */
499
+ name?: string;
500
+ }
437
501
  interface WebServerConfig {
438
502
  /** Optional. Machine type on which Airflow web server is running. It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. If not specified, composer-n1-webserver-2 will be used. Value custom is returned only in response, if Airflow web server parameters were manually changed to a non-standard values. */
439
503
  machineType?: string;
@@ -463,6 +527,8 @@ declare namespace gapi.client {
463
527
  storageGb?: number;
464
528
  }
465
529
  interface WorkloadsConfig {
530
+ /** Optional. Resources used by Airflow DAG processors. This field is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
531
+ dagProcessor?: DagProcessorResource;
466
532
  /** Optional. Resources used by Airflow schedulers. */
467
533
  scheduler?: SchedulerResource;
468
534
  /** Optional. Resources used by Airflow triggerers. */
@@ -472,6 +538,447 @@ declare namespace gapi.client {
472
538
  /** Optional. Resources used by Airflow workers. */
473
539
  worker?: WorkerResource;
474
540
  }
541
+ interface UserWorkloadsConfigMapsResource {
542
+ /** Creates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
543
+ create(request: {
544
+ /** V1 error format. */
545
+ '$.xgafv'?: string;
546
+ /** OAuth access token. */
547
+ access_token?: string;
548
+ /** Data format for response. */
549
+ alt?: string;
550
+ /** JSONP */
551
+ callback?: string;
552
+ /** Selector specifying which fields to include in a partial response. */
553
+ fields?: string;
554
+ /** 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. */
555
+ key?: string;
556
+ /** OAuth 2.0 token for the current user. */
557
+ oauth_token?: string;
558
+ /** Required. The environment name to create a ConfigMap for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
559
+ parent: string;
560
+ /** Returns response with indentations and line breaks. */
561
+ prettyPrint?: boolean;
562
+ /** 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. */
563
+ quotaUser?: string;
564
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
565
+ upload_protocol?: string;
566
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
567
+ uploadType?: string;
568
+ /** Request body */
569
+ resource: UserWorkloadsConfigMap;
570
+ }): Request<UserWorkloadsConfigMap>;
571
+ create(
572
+ request: {
573
+ /** V1 error format. */
574
+ '$.xgafv'?: string;
575
+ /** OAuth access token. */
576
+ access_token?: string;
577
+ /** Data format for response. */
578
+ alt?: string;
579
+ /** JSONP */
580
+ callback?: string;
581
+ /** Selector specifying which fields to include in a partial response. */
582
+ fields?: string;
583
+ /** 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. */
584
+ key?: string;
585
+ /** OAuth 2.0 token for the current user. */
586
+ oauth_token?: string;
587
+ /** Required. The environment name to create a ConfigMap for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
588
+ parent: string;
589
+ /** Returns response with indentations and line breaks. */
590
+ prettyPrint?: boolean;
591
+ /** 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. */
592
+ quotaUser?: string;
593
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
594
+ upload_protocol?: string;
595
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
596
+ uploadType?: string;
597
+ },
598
+ body: UserWorkloadsConfigMap
599
+ ): Request<UserWorkloadsConfigMap>;
600
+ /** Deletes a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
601
+ delete(request?: {
602
+ /** V1 error format. */
603
+ '$.xgafv'?: string;
604
+ /** OAuth access token. */
605
+ access_token?: string;
606
+ /** Data format for response. */
607
+ alt?: string;
608
+ /** JSONP */
609
+ callback?: string;
610
+ /** Selector specifying which fields to include in a partial response. */
611
+ fields?: string;
612
+ /** 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. */
613
+ key?: string;
614
+ /** Required. The ConfigMap to delete, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" */
615
+ name: string;
616
+ /** OAuth 2.0 token for the current user. */
617
+ oauth_token?: string;
618
+ /** Returns response with indentations and line breaks. */
619
+ prettyPrint?: boolean;
620
+ /** 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. */
621
+ quotaUser?: string;
622
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
623
+ upload_protocol?: string;
624
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
625
+ uploadType?: string;
626
+ }): Request<{}>;
627
+ /** Gets an existing user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
628
+ get(request?: {
629
+ /** V1 error format. */
630
+ '$.xgafv'?: string;
631
+ /** OAuth access token. */
632
+ access_token?: string;
633
+ /** Data format for response. */
634
+ alt?: string;
635
+ /** JSONP */
636
+ callback?: string;
637
+ /** Selector specifying which fields to include in a partial response. */
638
+ fields?: string;
639
+ /** 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. */
640
+ key?: string;
641
+ /** Required. The resource name of the ConfigMap to get, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" */
642
+ name: string;
643
+ /** OAuth 2.0 token for the current user. */
644
+ oauth_token?: string;
645
+ /** Returns response with indentations and line breaks. */
646
+ prettyPrint?: boolean;
647
+ /** 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. */
648
+ quotaUser?: string;
649
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
650
+ upload_protocol?: string;
651
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
652
+ uploadType?: string;
653
+ }): Request<UserWorkloadsConfigMap>;
654
+ /** Lists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
655
+ list(request?: {
656
+ /** V1 error format. */
657
+ '$.xgafv'?: string;
658
+ /** OAuth access token. */
659
+ access_token?: string;
660
+ /** Data format for response. */
661
+ alt?: string;
662
+ /** JSONP */
663
+ callback?: string;
664
+ /** Selector specifying which fields to include in a partial response. */
665
+ fields?: string;
666
+ /** 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. */
667
+ key?: string;
668
+ /** OAuth 2.0 token for the current user. */
669
+ oauth_token?: string;
670
+ /** Optional. The maximum number of ConfigMaps to return. */
671
+ pageSize?: number;
672
+ /** Optional. The next_page_token value returned from a previous List request, if any. */
673
+ pageToken?: string;
674
+ /** Required. List ConfigMaps in the given environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
675
+ parent: string;
676
+ /** Returns response with indentations and line breaks. */
677
+ prettyPrint?: boolean;
678
+ /** 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. */
679
+ quotaUser?: string;
680
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
681
+ upload_protocol?: string;
682
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
683
+ uploadType?: string;
684
+ }): Request<ListUserWorkloadsConfigMapsResponse>;
685
+ /** Updates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
686
+ update(request: {
687
+ /** V1 error format. */
688
+ '$.xgafv'?: string;
689
+ /** OAuth access token. */
690
+ access_token?: string;
691
+ /** Data format for response. */
692
+ alt?: string;
693
+ /** JSONP */
694
+ callback?: string;
695
+ /** Selector specifying which fields to include in a partial response. */
696
+ fields?: string;
697
+ /** 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. */
698
+ key?: string;
699
+ /** Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" */
700
+ name: string;
701
+ /** OAuth 2.0 token for the current user. */
702
+ oauth_token?: string;
703
+ /** Returns response with indentations and line breaks. */
704
+ prettyPrint?: boolean;
705
+ /** 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. */
706
+ quotaUser?: string;
707
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
708
+ upload_protocol?: string;
709
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
710
+ uploadType?: string;
711
+ /** Request body */
712
+ resource: UserWorkloadsConfigMap;
713
+ }): Request<UserWorkloadsConfigMap>;
714
+ update(
715
+ request: {
716
+ /** V1 error format. */
717
+ '$.xgafv'?: string;
718
+ /** OAuth access token. */
719
+ access_token?: string;
720
+ /** Data format for response. */
721
+ alt?: string;
722
+ /** JSONP */
723
+ callback?: string;
724
+ /** Selector specifying which fields to include in a partial response. */
725
+ fields?: string;
726
+ /** 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. */
727
+ key?: string;
728
+ /** Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" */
729
+ name: string;
730
+ /** OAuth 2.0 token for the current user. */
731
+ oauth_token?: string;
732
+ /** Returns response with indentations and line breaks. */
733
+ prettyPrint?: boolean;
734
+ /** 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. */
735
+ quotaUser?: string;
736
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
737
+ upload_protocol?: string;
738
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
739
+ uploadType?: string;
740
+ },
741
+ body: UserWorkloadsConfigMap
742
+ ): Request<UserWorkloadsConfigMap>;
743
+ }
744
+ interface UserWorkloadsSecretsResource {
745
+ /** Creates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
746
+ create(request: {
747
+ /** V1 error format. */
748
+ '$.xgafv'?: string;
749
+ /** OAuth access token. */
750
+ access_token?: string;
751
+ /** Data format for response. */
752
+ alt?: string;
753
+ /** JSONP */
754
+ callback?: string;
755
+ /** Selector specifying which fields to include in a partial response. */
756
+ fields?: string;
757
+ /** 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. */
758
+ key?: string;
759
+ /** OAuth 2.0 token for the current user. */
760
+ oauth_token?: string;
761
+ /** Required. The environment name to create a Secret for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
762
+ parent: string;
763
+ /** Returns response with indentations and line breaks. */
764
+ prettyPrint?: boolean;
765
+ /** 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. */
766
+ quotaUser?: string;
767
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
768
+ upload_protocol?: string;
769
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
770
+ uploadType?: string;
771
+ /** Request body */
772
+ resource: UserWorkloadsSecret;
773
+ }): Request<UserWorkloadsSecret>;
774
+ create(
775
+ request: {
776
+ /** V1 error format. */
777
+ '$.xgafv'?: string;
778
+ /** OAuth access token. */
779
+ access_token?: string;
780
+ /** Data format for response. */
781
+ alt?: string;
782
+ /** JSONP */
783
+ callback?: string;
784
+ /** Selector specifying which fields to include in a partial response. */
785
+ fields?: string;
786
+ /** 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. */
787
+ key?: string;
788
+ /** OAuth 2.0 token for the current user. */
789
+ oauth_token?: string;
790
+ /** Required. The environment name to create a Secret for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
791
+ parent: string;
792
+ /** Returns response with indentations and line breaks. */
793
+ prettyPrint?: boolean;
794
+ /** 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. */
795
+ quotaUser?: string;
796
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
797
+ upload_protocol?: string;
798
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
799
+ uploadType?: string;
800
+ },
801
+ body: UserWorkloadsSecret
802
+ ): Request<UserWorkloadsSecret>;
803
+ /** Deletes a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
804
+ delete(request?: {
805
+ /** V1 error format. */
806
+ '$.xgafv'?: string;
807
+ /** OAuth access token. */
808
+ access_token?: string;
809
+ /** Data format for response. */
810
+ alt?: string;
811
+ /** JSONP */
812
+ callback?: string;
813
+ /** Selector specifying which fields to include in a partial response. */
814
+ fields?: string;
815
+ /** 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. */
816
+ key?: string;
817
+ /** Required. The Secret to delete, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" */
818
+ name: string;
819
+ /** OAuth 2.0 token for the current user. */
820
+ oauth_token?: string;
821
+ /** Returns response with indentations and line breaks. */
822
+ prettyPrint?: boolean;
823
+ /** 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. */
824
+ quotaUser?: string;
825
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
826
+ upload_protocol?: string;
827
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
828
+ uploadType?: string;
829
+ }): Request<{}>;
830
+ /** Gets an existing user workloads Secret. Values of the "data" field in the response are cleared. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
831
+ get(request?: {
832
+ /** V1 error format. */
833
+ '$.xgafv'?: string;
834
+ /** OAuth access token. */
835
+ access_token?: string;
836
+ /** Data format for response. */
837
+ alt?: string;
838
+ /** JSONP */
839
+ callback?: string;
840
+ /** Selector specifying which fields to include in a partial response. */
841
+ fields?: string;
842
+ /** 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. */
843
+ key?: string;
844
+ /** Required. The resource name of the Secret to get, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" */
845
+ name: string;
846
+ /** OAuth 2.0 token for the current user. */
847
+ oauth_token?: string;
848
+ /** Returns response with indentations and line breaks. */
849
+ prettyPrint?: boolean;
850
+ /** 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. */
851
+ quotaUser?: string;
852
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
853
+ upload_protocol?: string;
854
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
855
+ uploadType?: string;
856
+ }): Request<UserWorkloadsSecret>;
857
+ /** Lists user workloads Secrets. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
858
+ list(request?: {
859
+ /** V1 error format. */
860
+ '$.xgafv'?: string;
861
+ /** OAuth access token. */
862
+ access_token?: string;
863
+ /** Data format for response. */
864
+ alt?: string;
865
+ /** JSONP */
866
+ callback?: string;
867
+ /** Selector specifying which fields to include in a partial response. */
868
+ fields?: string;
869
+ /** 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. */
870
+ key?: string;
871
+ /** OAuth 2.0 token for the current user. */
872
+ oauth_token?: string;
873
+ /** Optional. The maximum number of Secrets to return. */
874
+ pageSize?: number;
875
+ /** Optional. The next_page_token value returned from a previous List request, if any. */
876
+ pageToken?: string;
877
+ /** Required. List Secrets in the given environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
878
+ parent: string;
879
+ /** Returns response with indentations and line breaks. */
880
+ prettyPrint?: boolean;
881
+ /** 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. */
882
+ quotaUser?: string;
883
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
884
+ upload_protocol?: string;
885
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
886
+ uploadType?: string;
887
+ }): Request<ListUserWorkloadsSecretsResponse>;
888
+ /** Updates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. */
889
+ update(request: {
890
+ /** V1 error format. */
891
+ '$.xgafv'?: string;
892
+ /** OAuth access token. */
893
+ access_token?: string;
894
+ /** Data format for response. */
895
+ alt?: string;
896
+ /** JSONP */
897
+ callback?: string;
898
+ /** Selector specifying which fields to include in a partial response. */
899
+ fields?: string;
900
+ /** 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. */
901
+ key?: string;
902
+ /** Identifier. The resource name of the Secret, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" */
903
+ name: string;
904
+ /** OAuth 2.0 token for the current user. */
905
+ oauth_token?: string;
906
+ /** Returns response with indentations and line breaks. */
907
+ prettyPrint?: boolean;
908
+ /** 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. */
909
+ quotaUser?: string;
910
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
911
+ upload_protocol?: string;
912
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
913
+ uploadType?: string;
914
+ /** Request body */
915
+ resource: UserWorkloadsSecret;
916
+ }): Request<UserWorkloadsSecret>;
917
+ update(
918
+ request: {
919
+ /** V1 error format. */
920
+ '$.xgafv'?: string;
921
+ /** OAuth access token. */
922
+ access_token?: string;
923
+ /** Data format for response. */
924
+ alt?: string;
925
+ /** JSONP */
926
+ callback?: string;
927
+ /** Selector specifying which fields to include in a partial response. */
928
+ fields?: string;
929
+ /** 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. */
930
+ key?: string;
931
+ /** Identifier. The resource name of the Secret, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" */
932
+ name: string;
933
+ /** OAuth 2.0 token for the current user. */
934
+ oauth_token?: string;
935
+ /** Returns response with indentations and line breaks. */
936
+ prettyPrint?: boolean;
937
+ /** 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. */
938
+ quotaUser?: string;
939
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
940
+ upload_protocol?: string;
941
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
942
+ uploadType?: string;
943
+ },
944
+ body: UserWorkloadsSecret
945
+ ): Request<UserWorkloadsSecret>;
946
+ }
947
+ interface WorkloadsResource {
948
+ /** 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. */
949
+ list(request?: {
950
+ /** V1 error format. */
951
+ '$.xgafv'?: string;
952
+ /** OAuth access token. */
953
+ access_token?: string;
954
+ /** Data format for response. */
955
+ alt?: string;
956
+ /** JSONP */
957
+ callback?: string;
958
+ /** Selector specifying which fields to include in a partial response. */
959
+ fields?: string;
960
+ /** 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. */
961
+ filter?: string;
962
+ /** 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. */
963
+ key?: string;
964
+ /** OAuth 2.0 token for the current user. */
965
+ oauth_token?: string;
966
+ /** Optional. The maximum number of environments to return. */
967
+ pageSize?: number;
968
+ /** Optional. The next_page_token value returned from a previous List request, if any. */
969
+ pageToken?: string;
970
+ /** Required. The environment name to get workloads for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
971
+ parent: string;
972
+ /** Returns response with indentations and line breaks. */
973
+ prettyPrint?: boolean;
974
+ /** 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. */
975
+ quotaUser?: string;
976
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
977
+ upload_protocol?: string;
978
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
979
+ uploadType?: string;
980
+ }): Request<ListWorkloadsResponse>;
981
+ }
475
982
  interface EnvironmentsResource {
476
983
  /** Create a new environment. */
477
984
  create(request: {
@@ -1053,6 +1560,9 @@ declare namespace gapi.client {
1053
1560
  },
1054
1561
  body: StopAirflowCommandRequest
1055
1562
  ): Request<StopAirflowCommandResponse>;
1563
+ userWorkloadsConfigMaps: UserWorkloadsConfigMapsResource;
1564
+ userWorkloadsSecrets: UserWorkloadsSecretsResource;
1565
+ workloads: WorkloadsResource;
1056
1566
  }
1057
1567
  interface ImageVersionsResource {
1058
1568
  /** List ImageVersions for provided location. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.composer-v1",
3
- "version": "0.0.20240106",
3
+ "version": "0.0.20240204",
4
4
  "description": "TypeScript typings for Cloud Composer API v1",
5
5
  "repository": {
6
6
  "type": "git",