@maxim_mazurok/gapi.client.dataproc-v1 0.0.20230814 → 0.0.20230908

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 (3) hide show
  1. package/index.d.ts +81 -131
  2. package/package.json +1 -1
  3. package/tests.ts +586 -11
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://dataproc.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230814
12
+ // Revision: 20230908
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -477,6 +477,9 @@ declare namespace gapi.client {
477
477
  /** Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job} */
478
478
  jobs?:
479
479
  string[];
480
+ /** Optional. (Optional) The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used. */
481
+ tarballGcsDir?:
482
+ string;
480
483
  /** Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed. */
481
484
  yarnApplicationId?:
482
485
  string;
@@ -897,21 +900,13 @@ declare namespace gapi.client {
897
900
  credentialsCiphertext?:
898
901
  string;
899
902
  }
900
- interface InjectSessionCredentialsRequest {
901
- /**
902
- * Required. The encrypted credentials being injected in to the session.The client is responsible for encrypting the credentials in a way that is supported by the session.A wrapped
903
- * value is used here so that the actual contents of the encrypted credentials are not written to audit logs.
904
- */
905
- credentialsCiphertext?:
906
- string;
907
- /**
908
- * Optional. A unique ID used to identify the request. If the service receives two TerminateSessionRequest
909
- * (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.TerminateSessionRequest)s with the same ID, the first request is ignored to
910
- * ensure the most recent credentials are injected.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only
911
- * letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
912
- */
913
- requestId?:
914
- string;
903
+ interface InstanceFlexibilityPolicy {
904
+ /** Optional. List of instance selection options that the group will use when creating new VMs. */
905
+ instanceSelectionList?:
906
+ InstanceSelection[];
907
+ /** Output only. A list of instance selection results in the group. */
908
+ instanceSelectionResults?:
909
+ InstanceSelectionResult[];
915
910
  }
916
911
  interface InstanceGroupAutoscalingPolicyConfig {
917
912
  /**
@@ -949,6 +944,9 @@ declare namespace gapi.client {
949
944
  */
950
945
  imageUri?:
951
946
  string;
947
+ /** Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models. */
948
+ instanceFlexibilityPolicy?:
949
+ InstanceFlexibilityPolicy;
952
950
  /** Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group. */
953
951
  instanceNames?:
954
952
  string[];
@@ -973,12 +971,10 @@ declare namespace gapi.client {
973
971
  minCpuPlatform?:
974
972
  string;
975
973
  /**
976
- * Optional. The minimum number of instances to create. If min_num_instances is set, min_num_instances is used for a criteria to decide the cluster. Cluster creation will be failed by
977
- * being an error state if the total number of instances created is less than the min_num_instances. For example, given that num_instances = 5 and min_num_instances = 3, * if 4
978
- * instances are created and then registered successfully but one instance is failed, the failed VM will be deleted and the cluster will be resized to 4 instances in running state. *
979
- * if 2 instances are created successfully and 3 instances are failed, the cluster will be in an error state and does not delete failed VMs for debugging. * if 2 instance are created
980
- * and then registered successfully but 3 instances are failed to initialize, the cluster will be in an error state and does not delete failed VMs for debugging. NB: This can only be
981
- * set for primary workers now.
974
+ * Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least
975
+ * equal to the min_num_instances number.Example: Cluster creation request with num_instances = 5 and min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed VM is
976
+ * deleted. The cluster is resized to 4 instances and placed in a RUNNING state. If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed
977
+ * VMs are not deleted.
982
978
  */
983
979
  minNumInstances?:
984
980
  number;
@@ -1006,6 +1002,25 @@ declare namespace gapi.client {
1006
1002
  publicKey?:
1007
1003
  string;
1008
1004
  }
1005
+ interface InstanceSelection {
1006
+ /** Optional. Full machine-type names, e.g. "n1-standard-16". */
1007
+ machineTypes?:
1008
+ string[];
1009
+ /**
1010
+ * Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and
1011
+ * fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference.
1012
+ */
1013
+ rank?:
1014
+ number;
1015
+ }
1016
+ interface InstanceSelectionResult {
1017
+ /** Output only. Full machine-type names, e.g. "n1-standard-16". */
1018
+ machineType?:
1019
+ string;
1020
+ /** Output only. Number of VM provisioned with the machine_type. */
1021
+ vmCount?:
1022
+ number;
1023
+ }
1009
1024
  interface InstantiateWorkflowTemplateRequest {
1010
1025
  /** Optional. Map from parameter names to values that should be used for those parameters. Values may not exceed 1000 characters. */
1011
1026
  parameters?:
@@ -1340,7 +1355,7 @@ declare namespace gapi.client {
1340
1355
  Operation[];
1341
1356
  }
1342
1357
  interface ListSessionsResponse {
1343
- /** A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
1358
+ /** A token, which can be sent as page_token, to retrieve the next page. If this field is omitted, there are no subsequent pages. */
1344
1359
  nextPageToken?:
1345
1360
  string;
1346
1361
  /** Output only. The sessions from the specified collection. */
@@ -1393,6 +1408,9 @@ declare namespace gapi.client {
1393
1408
  /** Output only. The name of the Instance Group Manager for this group. */
1394
1409
  instanceGroupManagerName?:
1395
1410
  string;
1411
+ /** Output only. The partial URI to the instance group manager for this group. E.g. projects/my-project/regions/us-central1/instanceGroupManagers/my-igm. */
1412
+ instanceGroupManagerUri?:
1413
+ string;
1396
1414
  /** Output only. The name of the Instance Template used for the Managed Instance Group. */
1397
1415
  instanceTemplateName?:
1398
1416
  string;
@@ -1680,6 +1698,11 @@ declare namespace gapi.client {
1680
1698
  queryList?:
1681
1699
  QueryList;
1682
1700
  }
1701
+ interface PyPiRepositoryConfig {
1702
+ /** Optional. PyPi repository address */
1703
+ pypiRepository?:
1704
+ string;
1705
+ }
1683
1706
  interface PySparkBatch {
1684
1707
  /** Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. */
1685
1708
  archiveUris?:
@@ -1773,6 +1796,11 @@ declare namespace gapi.client {
1773
1796
  requestId?:
1774
1797
  string;
1775
1798
  }
1799
+ interface RepositoryConfig {
1800
+ /** Optional. Configuration for PyPi repository. */
1801
+ pypiRepositoryConfig?:
1802
+ PyPiRepositoryConfig;
1803
+ }
1776
1804
  interface ReservationAffinity {
1777
1805
  /** Optional. Type of reservation to consume */
1778
1806
  consumeReservationType?:
@@ -1814,6 +1842,9 @@ declare namespace gapi.client {
1814
1842
  /** Optional. A mapping of property names to values, which are used to configure workload execution. */
1815
1843
  properties?:
1816
1844
  { [P in string]: string };
1845
+ /** Optional. Dependency repository configuration. */
1846
+ repositoryConfig?:
1847
+ RepositoryConfig;
1817
1848
  /** Optional. Version of the batch runtime. */
1818
1849
  version?:
1819
1850
  string;
@@ -1862,8 +1893,8 @@ declare namespace gapi.client {
1862
1893
  jupyterSession?:
1863
1894
  JupyterConfig;
1864
1895
  /**
1865
- * Optional. The labels to associate with this session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values
1866
- * may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a
1896
+ * Optional. The labels to associate with the session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may
1897
+ * be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a
1867
1898
  * session.
1868
1899
  */
1869
1900
  labels?:
@@ -1878,9 +1909,9 @@ declare namespace gapi.client {
1878
1909
  runtimeInfo?:
1879
1910
  RuntimeInfo;
1880
1911
  /**
1881
- * Optional. The session template used by the session.Only resource names including project ID and location are valid.Example: *
1912
+ * Optional. The session template used by the session.Only resource names, including project ID and location, are valid.Example: *
1882
1913
  * https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] *
1883
- * projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]Note that the template must be in the same project and Dataproc region.
1914
+ * projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]The template must be in the same project and Dataproc region as the session.
1884
1915
  */
1885
1916
  sessionTemplate?:
1886
1917
  string;
@@ -1890,10 +1921,10 @@ declare namespace gapi.client {
1890
1921
  /** Output only. Historical state information for the session. */
1891
1922
  stateHistory?:
1892
1923
  SessionStateHistory[];
1893
- /** Output only. Session state details, such as a failure description if the state is FAILED. */
1924
+ /** Output only. Session state details, such as the failure description if the state is FAILED. */
1894
1925
  stateMessage?:
1895
1926
  string;
1896
- /** Output only. The time when the session entered a current state. */
1927
+ /** Output only. The time when the session entered the current state. */
1897
1928
  stateTime?:
1898
1929
  string;
1899
1930
  /** Optional. The email address of the user who owns the session. */
@@ -1930,10 +1961,10 @@ declare namespace gapi.client {
1930
1961
  string[];
1931
1962
  }
1932
1963
  interface SessionStateHistory {
1933
- /** Output only. The state of the session at this point in history. */
1964
+ /** Output only. The state of the session at this point in the session history. */
1934
1965
  state?:
1935
1966
  string;
1936
- /** Output only. Details about the state at this point in history. */
1967
+ /** Output only. Details about the state at this point in the session history. */
1937
1968
  stateMessage?:
1938
1969
  string;
1939
1970
  /** Output only. The time when the session entered the historical state. */
@@ -1957,9 +1988,9 @@ declare namespace gapi.client {
1957
1988
  jupyterSession?:
1958
1989
  JupyterConfig;
1959
1990
  /**
1960
- * Optional. The labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035
1961
- * (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035
1962
- * (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a session.
1991
+ * Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035
1992
+ * (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).
1993
+ * No more than 32 labels can be associated with a session.
1963
1994
  */
1964
1995
  labels?:
1965
1996
  { [P in string]: string };
@@ -1969,7 +2000,7 @@ declare namespace gapi.client {
1969
2000
  /** Optional. Runtime configuration for session execution. */
1970
2001
  runtimeConfig?:
1971
2002
  RuntimeConfig;
1972
- /** Output only. The time template was last updated. */
2003
+ /** Output only. The time the template was last updated. */
1973
2004
  updateTime?:
1974
2005
  string;
1975
2006
  }
@@ -3410,10 +3441,10 @@ declare namespace gapi.client {
3410
3441
  quotaUser?:
3411
3442
  string;
3412
3443
  /**
3413
- * Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequest
3414
- * (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored
3415
- * and the first Session is created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The
3416
- * value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
3444
+ * Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequests
3445
+ * (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored,
3446
+ * and the first Session is created and stored in the backend.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must
3447
+ * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
3417
3448
  */
3418
3449
  requestId?:
3419
3450
  string;
@@ -3462,10 +3493,10 @@ declare namespace gapi.client {
3462
3493
  quotaUser?:
3463
3494
  string;
3464
3495
  /**
3465
- * Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequest
3466
- * (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored
3467
- * and the first Session is created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The
3468
- * value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
3496
+ * Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequests
3497
+ * (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored,
3498
+ * and the first Session is created and stored in the backend.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must
3499
+ * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
3469
3500
  */
3470
3501
  requestId?:
3471
3502
  string;
@@ -3480,7 +3511,7 @@ declare namespace gapi.client {
3480
3511
  string;
3481
3512
  },
3482
3513
  body: Session): Request<Operation>;
3483
- /** Deletes the interactive session resource. If the session is not in terminal state, it will be terminated and deleted afterwards. */
3514
+ /** Deletes the interactive session resource. If the session is not in terminal state, it is terminated, and then deleted. */
3484
3515
  delete(request?: {
3485
3516
  /** V1 error format. */
3486
3517
  "$.xgafv"?:
@@ -3566,87 +3597,6 @@ declare namespace gapi.client {
3566
3597
  uploadType?:
3567
3598
  string;
3568
3599
  }): Request<Session>;
3569
- /** Inject Credentials in the interactive session. */
3570
- injectCredentials(request: {
3571
- /** V1 error format. */
3572
- "$.xgafv"?:
3573
- string;
3574
- /** OAuth access token. */
3575
- access_token?:
3576
- string;
3577
- /** Data format for response. */
3578
- alt?:
3579
- string;
3580
- /** JSONP */
3581
- callback?:
3582
- string;
3583
- /** Selector specifying which fields to include in a partial response. */
3584
- fields?:
3585
- string;
3586
- /** 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. */
3587
- key?:
3588
- string;
3589
- /** OAuth 2.0 token for the current user. */
3590
- oauth_token?:
3591
- string;
3592
- /** Returns response with indentations and line breaks. */
3593
- prettyPrint?:
3594
- boolean;
3595
- /** 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. */
3596
- quotaUser?:
3597
- string;
3598
- /** Required. The name of the session resource to inject credentials to. */
3599
- session:
3600
- string;
3601
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3602
- upload_protocol?:
3603
- string;
3604
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3605
- uploadType?:
3606
- string;
3607
- /** Request body */
3608
- resource:
3609
- InjectSessionCredentialsRequest;
3610
- }): Request<Operation>;
3611
- injectCredentials(request: {
3612
- /** V1 error format. */
3613
- "$.xgafv"?:
3614
- string;
3615
- /** OAuth access token. */
3616
- access_token?:
3617
- string;
3618
- /** Data format for response. */
3619
- alt?:
3620
- string;
3621
- /** JSONP */
3622
- callback?:
3623
- string;
3624
- /** Selector specifying which fields to include in a partial response. */
3625
- fields?:
3626
- string;
3627
- /** 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. */
3628
- key?:
3629
- string;
3630
- /** OAuth 2.0 token for the current user. */
3631
- oauth_token?:
3632
- string;
3633
- /** Returns response with indentations and line breaks. */
3634
- prettyPrint?:
3635
- boolean;
3636
- /** 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. */
3637
- quotaUser?:
3638
- string;
3639
- /** Required. The name of the session resource to inject credentials to. */
3640
- session:
3641
- string;
3642
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3643
- upload_protocol?:
3644
- string;
3645
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3646
- uploadType?:
3647
- string;
3648
- },
3649
- body: InjectSessionCredentialsRequest): Request<Operation>;
3650
3600
  /** Lists interactive sessions. */
3651
3601
  list(request?: {
3652
3602
  /** V1 error format. */
@@ -3666,9 +3616,9 @@ declare namespace gapi.client {
3666
3616
  string;
3667
3617
  /**
3668
3618
  * Optional. A filter for the sessions to return in the response.A filter is a logical expression constraining the values of various fields in each session resource. Filters are
3669
- * case sensitive, and may contain multiple clauses combined with logical operators (AND/OR). Supported fields are session_id, session_uuid, state, and create_time.e.g. state =
3670
- * ACTIVE and create_time < "2023-01-01T00:00:00Z" filters for sessions in state ACTIVE that were created before 2023-01-01See https://google.aip.dev/assets/misc/ebnf-filtering.txt
3671
- * for a detailed description of the filter syntax and a list of supported comparisons.
3619
+ * case sensitive, and may contain multiple clauses combined with logical operators (AND, OR). Supported fields are session_id, session_uuid, state, and create_time.Example: state
3620
+ * = ACTIVE and create_time < "2023-01-01T00:00:00Z" is a filter for sessions in an ACTIVE state that were created before 2023-01-01.See
3621
+ * https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed description of the filter syntax and a list of supported comparators.
3672
3622
  */
3673
3623
  filter?:
3674
3624
  string;
@@ -3783,7 +3733,7 @@ declare namespace gapi.client {
3783
3733
  body: TerminateSessionRequest): Request<Operation>;
3784
3734
  }
3785
3735
  interface SessionTemplatesResource {
3786
- /** Create an session template, synchronously. */
3736
+ /** Create a session template synchronously. */
3787
3737
  create(request: {
3788
3738
  /** V1 error format. */
3789
3739
  "$.xgafv"?:
@@ -3974,7 +3924,7 @@ declare namespace gapi.client {
3974
3924
  /** Optional. A page token received from a previous ListSessions call. Provide this token to retrieve the subsequent page. */
3975
3925
  pageToken?:
3976
3926
  string;
3977
- /** Required. The parent, which owns this collection of session templates. */
3927
+ /** Required. The parent that owns this collection of session templates. */
3978
3928
  parent:
3979
3929
  string;
3980
3930
  /** Returns response with indentations and line breaks. */
@@ -3990,7 +3940,7 @@ declare namespace gapi.client {
3990
3940
  uploadType?:
3991
3941
  string;
3992
3942
  }): Request<ListSessionTemplatesResponse>;
3993
- /** Updates the session template, synchronously.Disable check for update_mask, because all updates will be full replacements. */
3943
+ /** Updates the session template synchronously. */
3994
3944
  patch(request: {
3995
3945
  /** V1 error format. */
3996
3946
  "$.xgafv"?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dataproc-v1",
3
- "version": "0.0.20230814",
3
+ "version": "0.0.20230908",
4
4
  "description": "TypeScript typings for Cloud Dataproc API v1",
5
5
  "license": "MIT",
6
6
  "author": {