@maxim_mazurok/gapi.client.redis-v1 0.3.20261102 → 0.4.20261105

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 +1834 -1843
  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://redis.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20261102
12
+ // Revision: 20261105
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -737,13 +737,14 @@ declare namespace gapi.client {
737
737
  /** Optional. Maintenance info for the resource. */
738
738
  maintenanceInfo?: ResourceMaintenanceInfo;
739
739
  /** Optional. The modes of the database resource. */
740
- modes?:
740
+ modes?: (
741
741
  | 'MODE_UNSPECIFIED'
742
742
  | 'MODE_NATIVE'
743
743
  | 'MODE_MONGODB_COMPATIBLE'
744
744
  | 'MODE_DATASTORE'
745
745
  | 'MODE_CLUSTER_ENABLED'
746
- | 'MODE_CLUSTER_DISABLED'[];
746
+ | 'MODE_CLUSTER_DISABLED'
747
+ )[];
747
748
  /** Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional. */
748
749
  primaryResourceId?: DatabaseResourceId;
749
750
  /** Primary resource location. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional. */
@@ -1136,8 +1137,9 @@ declare namespace gapi.client {
1136
1137
  /** Output only. Additional information about the current status of this instance, if available. */
1137
1138
  statusMessage?: string;
1138
1139
  /** Optional. reasons that causes instance in "SUSPENDED" state. */
1139
- suspensionReasons?:
1140
- 'SUSPENSION_REASON_UNSPECIFIED' | 'CUSTOMER_MANAGED_KEY_ISSUE'[];
1140
+ suspensionReasons?: (
1141
+ 'SUSPENSION_REASON_UNSPECIFIED' | 'CUSTOMER_MANAGED_KEY_ISSUE'
1142
+ )[];
1141
1143
  /** Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" */
1142
1144
  tags?: {[P in string]: string};
1143
1145
  /** Required. The service tier of the instance. */
@@ -1752,1548 +1754,11 @@ declare namespace gapi.client {
1752
1754
  /** Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters. */
1753
1755
  zones?: string[];
1754
1756
  }
1755
- interface RevisionsResource {
1756
- /** Gets details of a specific ACL policy revision. */
1757
- get(request?: {
1758
- /** V1 error format. */
1759
- '$.xgafv'?: '1' | '2';
1760
- /** OAuth access token. */
1761
- access_token?: string;
1762
- /** Data format for response. */
1763
- alt?: 'json' | 'media' | 'proto';
1764
- /** JSONP */
1765
- callback?: string;
1766
- /** Selector specifying which fields to include in a partial response. */
1767
- fields?: string;
1768
- /** 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. */
1769
- key?: string;
1770
- /** Required. Redis ACL policy revision resource name using the form: `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` where `location_id` refers to a Google Cloud region. */
1771
- name: string;
1772
- /** OAuth 2.0 token for the current user. */
1773
- oauth_token?: string;
1774
- /** Returns response with indentations and line breaks. */
1775
- prettyPrint?: boolean;
1776
- /** 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. */
1777
- quotaUser?: string;
1778
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1779
- upload_protocol?: string;
1780
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1781
- uploadType?: string;
1782
- }): Request<AclPolicyRevision>;
1783
- /** Lists all ACL policy revisions in a given ACL policy. */
1784
- list(request?: {
1785
- /** V1 error format. */
1786
- '$.xgafv'?: '1' | '2';
1787
- /** OAuth access token. */
1788
- access_token?: string;
1789
- /** Data format for response. */
1790
- alt?: 'json' | 'media' | 'proto';
1791
- /** JSONP */
1792
- callback?: string;
1793
- /** Selector specifying which fields to include in a partial response. */
1794
- fields?: string;
1795
- /** 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. */
1796
- key?: string;
1797
- /** OAuth 2.0 token for the current user. */
1798
- oauth_token?: string;
1799
- /** Optional. The maximum number of items to return. */
1800
- pageSize?: number;
1801
- /** Optional. The `next_page_token` value returned from a previous `ListAclPolicyRevisions` request, if any. */
1802
- pageToken?: string;
1803
- /** Required. The name of the ACL policy to list revisions for. Format: "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" */
1804
- parent: string;
1805
- /** Returns response with indentations and line breaks. */
1806
- prettyPrint?: boolean;
1807
- /** 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. */
1808
- quotaUser?: string;
1809
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1810
- upload_protocol?: string;
1811
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1812
- uploadType?: string;
1813
- }): Request<ListAclPolicyRevisionsResponse>;
1814
- }
1815
- interface AclPoliciesResource {
1816
- /** Creates an ACL policy. The creation is executed synchronously and the policy is available for use immediately after the RPC returns. */
1817
- create(request: {
1818
- /** V1 error format. */
1819
- '$.xgafv'?: '1' | '2';
1820
- /** OAuth access token. */
1821
- access_token?: string;
1822
- /** Required. The logical name of the ACL policy in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
1823
- aclPolicyId?: string;
1824
- /** Data format for response. */
1825
- alt?: 'json' | 'media' | 'proto';
1826
- /** JSONP */
1827
- callback?: string;
1828
- /** Selector specifying which fields to include in a partial response. */
1829
- fields?: string;
1830
- /** 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. */
1831
- key?: string;
1832
- /** OAuth 2.0 token for the current user. */
1833
- oauth_token?: string;
1834
- /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
1835
- parent: string;
1836
- /** Returns response with indentations and line breaks. */
1837
- prettyPrint?: boolean;
1838
- /** 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. */
1839
- quotaUser?: string;
1840
- /** Optional. Idempotent request UUID. . */
1841
- requestId?: string;
1842
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1843
- upload_protocol?: string;
1844
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1845
- uploadType?: string;
1846
- /** Request body */
1847
- resource: AclPolicy;
1848
- }): Request<AclPolicy>;
1849
- create(
1850
- request: {
1851
- /** V1 error format. */
1852
- '$.xgafv'?: '1' | '2';
1853
- /** OAuth access token. */
1854
- access_token?: string;
1855
- /** Required. The logical name of the ACL policy in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
1856
- aclPolicyId?: string;
1857
- /** Data format for response. */
1858
- alt?: 'json' | 'media' | 'proto';
1859
- /** JSONP */
1860
- callback?: string;
1861
- /** Selector specifying which fields to include in a partial response. */
1862
- fields?: string;
1863
- /** 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. */
1864
- key?: string;
1865
- /** OAuth 2.0 token for the current user. */
1866
- oauth_token?: string;
1867
- /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
1868
- parent: string;
1869
- /** Returns response with indentations and line breaks. */
1870
- prettyPrint?: boolean;
1871
- /** 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. */
1872
- quotaUser?: string;
1873
- /** Optional. Idempotent request UUID. . */
1874
- requestId?: string;
1875
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1876
- upload_protocol?: string;
1877
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1878
- uploadType?: string;
1879
- },
1880
- body: AclPolicy,
1881
- ): Request<AclPolicy>;
1882
- /** Deletes a specific ACL policy. This action will delete the ACL policy and all the rules associated with it. An ACL policy cannot be deleted if it is attached to a cluster. */
1883
- delete(request?: {
1884
- /** V1 error format. */
1885
- '$.xgafv'?: '1' | '2';
1886
- /** OAuth access token. */
1887
- access_token?: string;
1888
- /** Data format for response. */
1889
- alt?: 'json' | 'media' | 'proto';
1890
- /** JSONP */
1891
- callback?: string;
1892
- /** Optional. Etag of the ACL policy. If this is different from the server's etag, the request will fail with an ABORTED error. */
1893
- etag?: string;
1894
- /** Selector specifying which fields to include in a partial response. */
1895
- fields?: string;
1896
- /** 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. */
1897
- key?: string;
1898
- /** Required. Redis ACL policy resource name using the form: `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where `location_id` refers to a Google Cloud region. */
1899
- name: string;
1900
- /** OAuth 2.0 token for the current user. */
1901
- oauth_token?: string;
1902
- /** Returns response with indentations and line breaks. */
1903
- prettyPrint?: boolean;
1904
- /** 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. */
1905
- quotaUser?: string;
1906
- /** Optional. Idempotent request UUID. */
1907
- requestId?: string;
1908
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1909
- upload_protocol?: string;
1910
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1911
- uploadType?: string;
1912
- }): Request<Operation>;
1913
- /** Gets the details of a specific Redis Cluster ACL policy. */
1914
- get(request?: {
1915
- /** V1 error format. */
1916
- '$.xgafv'?: '1' | '2';
1917
- /** OAuth access token. */
1918
- access_token?: string;
1919
- /** Data format for response. */
1920
- alt?: 'json' | 'media' | 'proto';
1921
- /** JSONP */
1922
- callback?: string;
1923
- /** Selector specifying which fields to include in a partial response. */
1924
- fields?: string;
1925
- /** 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. */
1926
- key?: string;
1927
- /** Required. Redis ACL policy resource name using the form: `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where `location_id` refers to a Google Cloud region. */
1928
- name: string;
1929
- /** OAuth 2.0 token for the current user. */
1930
- oauth_token?: string;
1931
- /** Returns response with indentations and line breaks. */
1932
- prettyPrint?: boolean;
1933
- /** 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. */
1934
- quotaUser?: string;
1935
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1936
- upload_protocol?: string;
1937
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1938
- uploadType?: string;
1939
- }): Request<AclPolicy>;
1940
- /** Lists all ACL policies owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. */
1941
- list(request?: {
1942
- /** V1 error format. */
1943
- '$.xgafv'?: '1' | '2';
1944
- /** OAuth access token. */
1945
- access_token?: string;
1946
- /** Data format for response. */
1947
- alt?: 'json' | 'media' | 'proto';
1948
- /** JSONP */
1949
- callback?: string;
1950
- /** Selector specifying which fields to include in a partial response. */
1951
- fields?: string;
1952
- /** 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. */
1953
- key?: string;
1954
- /** OAuth 2.0 token for the current user. */
1955
- oauth_token?: string;
1956
- /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more ACL policies left to be queried. The maximum value is 1000; values above 1000 will be coerced to 1000. */
1957
- pageSize?: number;
1958
- /** Optional. The `next_page_token` value returned from a previous `ListAclPolicies` request, if any. */
1959
- pageToken?: string;
1960
- /** Required. The resource name of the ACL policy location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
1961
- parent: string;
1962
- /** Returns response with indentations and line breaks. */
1963
- prettyPrint?: boolean;
1964
- /** 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. */
1965
- quotaUser?: string;
1966
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1967
- upload_protocol?: string;
1968
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1969
- uploadType?: string;
1970
- }): Request<ListAclPoliciesResponse>;
1971
- /** Updates the ACL policy. The operation applies the updated ACL policy to all of the linked clusters. If Memorystore can apply the policy to all clusters, then the operation returns a SUCCESS status. If Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, Memorystore uses reconciliation to apply the policy to the failed clusters. Completed longrunning.Operation will contain the new ACL policy object in the response field. */
1972
- patch(request: {
1973
- /** V1 error format. */
1974
- '$.xgafv'?: '1' | '2';
1975
- /** OAuth access token. */
1976
- access_token?: string;
1977
- /** Data format for response. */
1978
- alt?: 'json' | 'media' | 'proto';
1979
- /** JSONP */
1980
- callback?: string;
1981
- /** Selector specifying which fields to include in a partial response. */
1982
- fields?: string;
1983
- /** 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. */
1984
- key?: string;
1985
- /** Identifier. Full resource path of the ACL policy. */
1986
- name: string;
1987
- /** OAuth 2.0 token for the current user. */
1988
- oauth_token?: string;
1989
- /** Returns response with indentations and line breaks. */
1990
- prettyPrint?: boolean;
1991
- /** 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. */
1992
- quotaUser?: string;
1993
- /** Optional. Idempotent request UUID. */
1994
- requestId?: string;
1995
- /** Optional. Mask of fields to be updated. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from `AclPolicy`: * `rules` */
1996
- updateMask?: string;
1997
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1998
- upload_protocol?: string;
1999
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2000
- uploadType?: string;
2001
- /** Request body */
2002
- resource: AclPolicy;
2003
- }): Request<Operation>;
2004
- patch(
2005
- request: {
2006
- /** V1 error format. */
2007
- '$.xgafv'?: '1' | '2';
2008
- /** OAuth access token. */
2009
- access_token?: string;
2010
- /** Data format for response. */
2011
- alt?: 'json' | 'media' | 'proto';
2012
- /** JSONP */
2013
- callback?: string;
2014
- /** Selector specifying which fields to include in a partial response. */
2015
- fields?: string;
2016
- /** 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. */
2017
- key?: string;
2018
- /** Identifier. Full resource path of the ACL policy. */
2019
- name: string;
2020
- /** OAuth 2.0 token for the current user. */
2021
- oauth_token?: string;
2022
- /** Returns response with indentations and line breaks. */
2023
- prettyPrint?: boolean;
2024
- /** 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. */
2025
- quotaUser?: string;
2026
- /** Optional. Idempotent request UUID. */
2027
- requestId?: string;
2028
- /** Optional. Mask of fields to be updated. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from `AclPolicy`: * `rules` */
2029
- updateMask?: string;
2030
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2031
- upload_protocol?: string;
2032
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2033
- uploadType?: string;
2034
- },
2035
- body: AclPolicy,
2036
- ): Request<Operation>;
2037
- revisions: RevisionsResource;
2038
- }
2039
- interface BackupsResource {
2040
- /** Deletes a specific backup. */
2041
- delete(request?: {
2042
- /** V1 error format. */
2043
- '$.xgafv'?: '1' | '2';
2044
- /** OAuth access token. */
2045
- access_token?: string;
2046
- /** Data format for response. */
2047
- alt?: 'json' | 'media' | 'proto';
2048
- /** JSONP */
2049
- callback?: string;
2050
- /** Selector specifying which fields to include in a partial response. */
2051
- fields?: string;
2052
- /** 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. */
2053
- key?: string;
2054
- /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` */
2055
- name: string;
2056
- /** OAuth 2.0 token for the current user. */
2057
- oauth_token?: string;
2058
- /** Returns response with indentations and line breaks. */
2059
- prettyPrint?: boolean;
2060
- /** 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. */
2061
- quotaUser?: string;
2062
- /** Optional. Idempotent request UUID. */
2063
- requestId?: string;
2064
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2065
- upload_protocol?: string;
2066
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2067
- uploadType?: string;
2068
- }): Request<Operation>;
2069
- /** Exports a specific backup to a customer target Cloud Storage URI. */
2070
- export(request: {
2071
- /** V1 error format. */
2072
- '$.xgafv'?: '1' | '2';
2073
- /** OAuth access token. */
2074
- access_token?: string;
2075
- /** Data format for response. */
2076
- alt?: 'json' | 'media' | 'proto';
2077
- /** JSONP */
2078
- callback?: string;
2079
- /** Selector specifying which fields to include in a partial response. */
2080
- fields?: string;
2081
- /** 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. */
2082
- key?: string;
2083
- /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` */
2084
- name: string;
2085
- /** OAuth 2.0 token for the current user. */
2086
- oauth_token?: string;
2087
- /** Returns response with indentations and line breaks. */
2088
- prettyPrint?: boolean;
2089
- /** 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. */
2090
- quotaUser?: string;
2091
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2092
- upload_protocol?: string;
2093
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2094
- uploadType?: string;
2095
- /** Request body */
2096
- resource: ExportBackupRequest;
2097
- }): Request<Operation>;
2098
- export(
2099
- request: {
2100
- /** V1 error format. */
2101
- '$.xgafv'?: '1' | '2';
2102
- /** OAuth access token. */
2103
- access_token?: string;
2104
- /** Data format for response. */
2105
- alt?: 'json' | 'media' | 'proto';
2106
- /** JSONP */
2107
- callback?: string;
2108
- /** Selector specifying which fields to include in a partial response. */
2109
- fields?: string;
2110
- /** 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. */
2111
- key?: string;
2112
- /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` */
2113
- name: string;
2114
- /** OAuth 2.0 token for the current user. */
2115
- oauth_token?: string;
2116
- /** Returns response with indentations and line breaks. */
2117
- prettyPrint?: boolean;
2118
- /** 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. */
2119
- quotaUser?: string;
2120
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2121
- upload_protocol?: string;
2122
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2123
- uploadType?: string;
2124
- },
2125
- body: ExportBackupRequest,
2126
- ): Request<Operation>;
2127
- /** Gets the details of a specific backup. */
2128
- get(request?: {
2129
- /** V1 error format. */
2130
- '$.xgafv'?: '1' | '2';
2131
- /** OAuth access token. */
2132
- access_token?: string;
2133
- /** Data format for response. */
2134
- alt?: 'json' | 'media' | 'proto';
2135
- /** JSONP */
2136
- callback?: string;
2137
- /** Selector specifying which fields to include in a partial response. */
2138
- fields?: string;
2139
- /** 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. */
2140
- key?: string;
2141
- /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` */
2142
- name: string;
2143
- /** OAuth 2.0 token for the current user. */
2144
- oauth_token?: string;
2145
- /** Returns response with indentations and line breaks. */
2146
- prettyPrint?: boolean;
2147
- /** 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. */
2148
- quotaUser?: string;
2149
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2150
- upload_protocol?: string;
2151
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2152
- uploadType?: string;
2153
- }): Request<Backup>;
2154
- /** Lists all backups owned by a backup collection. */
2155
- list(request?: {
2156
- /** V1 error format. */
2157
- '$.xgafv'?: '1' | '2';
2158
- /** OAuth access token. */
2159
- access_token?: string;
2160
- /** Data format for response. */
2161
- alt?: 'json' | 'media' | 'proto';
2162
- /** JSONP */
2163
- callback?: string;
2164
- /** Selector specifying which fields to include in a partial response. */
2165
- fields?: string;
2166
- /** 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. */
2167
- key?: string;
2168
- /** OAuth 2.0 token for the current user. */
2169
- oauth_token?: string;
2170
- /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more clusters left to be queried. */
2171
- pageSize?: number;
2172
- /** Optional. The `next_page_token` value returned from a previous [ListBackupCollections] request, if any. */
2173
- pageToken?: string;
2174
- /** Required. The resource name of the backupCollection using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` */
2175
- parent: string;
2176
- /** Returns response with indentations and line breaks. */
2177
- prettyPrint?: boolean;
2178
- /** 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. */
2179
- quotaUser?: string;
2180
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2181
- upload_protocol?: string;
2182
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2183
- uploadType?: string;
2184
- }): Request<ListBackupsResponse>;
2185
- }
2186
- interface BackupCollectionsResource {
2187
- /** Get a backup collection. */
2188
- get(request?: {
2189
- /** V1 error format. */
2190
- '$.xgafv'?: '1' | '2';
2191
- /** OAuth access token. */
2192
- access_token?: string;
2193
- /** Data format for response. */
2194
- alt?: 'json' | 'media' | 'proto';
2195
- /** JSONP */
2196
- callback?: string;
2197
- /** Selector specifying which fields to include in a partial response. */
2198
- fields?: string;
2199
- /** 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. */
2200
- key?: string;
2201
- /** Required. Redis backupCollection resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` where `location_id` refers to a Google Cloud region. */
2202
- name: string;
2203
- /** OAuth 2.0 token for the current user. */
2204
- oauth_token?: string;
2205
- /** Returns response with indentations and line breaks. */
2206
- prettyPrint?: boolean;
2207
- /** 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. */
2208
- quotaUser?: string;
2209
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2210
- upload_protocol?: string;
2211
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2212
- uploadType?: string;
2213
- }): Request<BackupCollection>;
2214
- /** Lists all backup collections owned by a consumer project in either the specified location (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. */
2215
- list(request?: {
2216
- /** V1 error format. */
2217
- '$.xgafv'?: '1' | '2';
2218
- /** OAuth access token. */
2219
- access_token?: string;
2220
- /** Data format for response. */
2221
- alt?: 'json' | 'media' | 'proto';
2222
- /** JSONP */
2223
- callback?: string;
2224
- /** Selector specifying which fields to include in a partial response. */
2225
- fields?: string;
2226
- /** 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. */
2227
- key?: string;
2228
- /** OAuth 2.0 token for the current user. */
2229
- oauth_token?: string;
2230
- /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more clusters left to be queried. */
2231
- pageSize?: number;
2232
- /** Optional. The `next_page_token` value returned from a previous [ListBackupCollections] request, if any. */
2233
- pageToken?: string;
2234
- /** Required. The resource name of the backupCollection location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
2235
- parent: string;
2236
- /** Returns response with indentations and line breaks. */
2237
- prettyPrint?: boolean;
2238
- /** 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. */
2239
- quotaUser?: string;
2240
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2241
- upload_protocol?: string;
2242
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2243
- uploadType?: string;
2244
- }): Request<ListBackupCollectionsResponse>;
2245
- backups: BackupsResource;
2246
- }
2247
- interface AuthTokensResource {
2248
- /** Removes a auth token for a user of a token based auth enabled instance. */
2249
- delete(request?: {
2250
- /** V1 error format. */
2251
- '$.xgafv'?: '1' | '2';
2252
- /** OAuth access token. */
2253
- access_token?: string;
2254
- /** Data format for response. */
2255
- alt?: 'json' | 'media' | 'proto';
2256
- /** JSONP */
2257
- callback?: string;
2258
- /** Selector specifying which fields to include in a partial response. */
2259
- fields?: string;
2260
- /** 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. */
2261
- key?: string;
2262
- /** Required. The name of the token auth user resource that this auth token will be deleted from. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} */
2263
- name: string;
2264
- /** OAuth 2.0 token for the current user. */
2265
- oauth_token?: string;
2266
- /** Returns response with indentations and line breaks. */
2267
- prettyPrint?: boolean;
2268
- /** 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. */
2269
- quotaUser?: string;
2270
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2271
- upload_protocol?: string;
2272
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2273
- uploadType?: string;
2274
- }): Request<Operation>;
2275
- /** Gets a specific auth token for a specific token auth user. */
2276
- get(request?: {
2277
- /** V1 error format. */
2278
- '$.xgafv'?: '1' | '2';
2279
- /** OAuth access token. */
2280
- access_token?: string;
2281
- /** Data format for response. */
2282
- alt?: 'json' | 'media' | 'proto';
2283
- /** JSONP */
2284
- callback?: string;
2285
- /** Selector specifying which fields to include in a partial response. */
2286
- fields?: string;
2287
- /** 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. */
2288
- key?: string;
2289
- /** Required. The name of auth token for a token based auth enabled cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} */
2290
- name: string;
2291
- /** OAuth 2.0 token for the current user. */
2292
- oauth_token?: string;
2293
- /** Returns response with indentations and line breaks. */
2294
- prettyPrint?: boolean;
2295
- /** 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. */
2296
- quotaUser?: string;
2297
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2298
- upload_protocol?: string;
2299
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2300
- uploadType?: string;
2301
- }): Request<AuthToken>;
2302
- /** Lists all the auth tokens for a specific token auth user. */
2303
- list(request?: {
2304
- /** V1 error format. */
2305
- '$.xgafv'?: '1' | '2';
2306
- /** OAuth access token. */
2307
- access_token?: string;
2308
- /** Data format for response. */
2309
- alt?: 'json' | 'media' | 'proto';
2310
- /** JSONP */
2311
- callback?: string;
2312
- /** Selector specifying which fields to include in a partial response. */
2313
- fields?: string;
2314
- /** Optional. Expression for filtering results. */
2315
- filter?: string;
2316
- /** 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. */
2317
- key?: string;
2318
- /** OAuth 2.0 token for the current user. */
2319
- oauth_token?: string;
2320
- /** Optional. Sort results by a defined order. */
2321
- orderBy?: string;
2322
- /** Optional. The maximum number of items to return. The maximum value is 1000; values above 1000 will be coerced to 1000. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more clusters left to be queried. */
2323
- pageSize?: number;
2324
- /** Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] request, if any. */
2325
- pageToken?: string;
2326
- /** Required. The parent resource that this auth token will be listed for. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2327
- parent: string;
2328
- /** Returns response with indentations and line breaks. */
2329
- prettyPrint?: boolean;
2330
- /** 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. */
2331
- quotaUser?: string;
2332
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2333
- upload_protocol?: string;
2334
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2335
- uploadType?: string;
2336
- }): Request<ListAuthTokensResponse>;
2337
- }
2338
- interface TokenAuthUsersResource {
2339
- /** Adds a auth token for a user of a token based auth enabled cluster. */
2340
- addAuthToken(request: {
2341
- /** V1 error format. */
2342
- '$.xgafv'?: '1' | '2';
2343
- /** OAuth access token. */
2344
- access_token?: string;
2345
- /** Data format for response. */
2346
- alt?: 'json' | 'media' | 'proto';
2347
- /** JSONP */
2348
- callback?: string;
2349
- /** Selector specifying which fields to include in a partial response. */
2350
- fields?: string;
2351
- /** 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. */
2352
- key?: string;
2353
- /** OAuth 2.0 token for the current user. */
2354
- oauth_token?: string;
2355
- /** Returns response with indentations and line breaks. */
2356
- prettyPrint?: boolean;
2357
- /** 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. */
2358
- quotaUser?: string;
2359
- /** Required. The name of the token auth user resource that this auth token will be added for. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2360
- tokenAuthUser: string;
2361
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2362
- upload_protocol?: string;
2363
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2364
- uploadType?: string;
2365
- /** Request body */
2366
- resource: AddAuthTokenRequest;
2367
- }): Request<Operation>;
2368
- addAuthToken(
2369
- request: {
2370
- /** V1 error format. */
2371
- '$.xgafv'?: '1' | '2';
2372
- /** OAuth access token. */
2373
- access_token?: string;
2374
- /** Data format for response. */
2375
- alt?: 'json' | 'media' | 'proto';
2376
- /** JSONP */
2377
- callback?: string;
2378
- /** Selector specifying which fields to include in a partial response. */
2379
- fields?: string;
2380
- /** 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. */
2381
- key?: string;
2382
- /** OAuth 2.0 token for the current user. */
2383
- oauth_token?: string;
2384
- /** Returns response with indentations and line breaks. */
2385
- prettyPrint?: boolean;
2386
- /** 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. */
2387
- quotaUser?: string;
2388
- /** Required. The name of the token auth user resource that this auth token will be added for. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2389
- tokenAuthUser: string;
2390
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2391
- upload_protocol?: string;
2392
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2393
- uploadType?: string;
2394
- },
2395
- body: AddAuthTokenRequest,
2396
- ): Request<Operation>;
2397
- /** Deletes a token auth user for a token based auth enabled cluster. */
2398
- delete(request?: {
2399
- /** V1 error format. */
2400
- '$.xgafv'?: '1' | '2';
2401
- /** OAuth access token. */
2402
- access_token?: string;
2403
- /** Data format for response. */
2404
- alt?: 'json' | 'media' | 'proto';
2405
- /** JSONP */
2406
- callback?: string;
2407
- /** Selector specifying which fields to include in a partial response. */
2408
- fields?: string;
2409
- /** Optional. If set to true, any child auth tokens of this user will also be deleted. Otherwise, the request will only work if the user has no auth tokens. */
2410
- force?: boolean;
2411
- /** 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. */
2412
- key?: string;
2413
- /** Required. The name of the token auth user to delete. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2414
- name: string;
2415
- /** OAuth 2.0 token for the current user. */
2416
- oauth_token?: string;
2417
- /** Returns response with indentations and line breaks. */
2418
- prettyPrint?: boolean;
2419
- /** 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. */
2420
- quotaUser?: string;
2421
- /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
2422
- requestId?: string;
2423
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2424
- upload_protocol?: string;
2425
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2426
- uploadType?: string;
2427
- }): Request<Operation>;
2428
- /** Gets a specific token auth user for a basic auth enabled cluster. */
2429
- get(request?: {
2430
- /** V1 error format. */
2431
- '$.xgafv'?: '1' | '2';
2432
- /** OAuth access token. */
2433
- access_token?: string;
2434
- /** Data format for response. */
2435
- alt?: 'json' | 'media' | 'proto';
2436
- /** JSONP */
2437
- callback?: string;
2438
- /** Selector specifying which fields to include in a partial response. */
2439
- fields?: string;
2440
- /** 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. */
2441
- key?: string;
2442
- /** Required. The name of token auth user for a token based auth enabled cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2443
- name: string;
2444
- /** OAuth 2.0 token for the current user. */
2445
- oauth_token?: string;
2446
- /** Returns response with indentations and line breaks. */
2447
- prettyPrint?: boolean;
2448
- /** 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. */
2449
- quotaUser?: string;
2450
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2451
- upload_protocol?: string;
2452
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2453
- uploadType?: string;
2454
- }): Request<TokenAuthUser>;
2455
- /** Lists all the token auth users for a token based auth enabled cluster. */
2456
- list(request?: {
2457
- /** V1 error format. */
2458
- '$.xgafv'?: '1' | '2';
2459
- /** OAuth access token. */
2460
- access_token?: string;
2461
- /** Data format for response. */
2462
- alt?: 'json' | 'media' | 'proto';
2463
- /** JSONP */
2464
- callback?: string;
2465
- /** Selector specifying which fields to include in a partial response. */
2466
- fields?: string;
2467
- /** Optional. Expression for filtering results. */
2468
- filter?: string;
2469
- /** 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. */
2470
- key?: string;
2471
- /** OAuth 2.0 token for the current user. */
2472
- oauth_token?: string;
2473
- /** Optional. Sort results by a defined order. */
2474
- orderBy?: string;
2475
- /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's The maximum value is 1000; values above 1000 will be coerced to 1000. `next_page_token` to determine if there are more clusters left to be queried. */
2476
- pageSize?: number;
2477
- /** Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] request, if any. */
2478
- pageToken?: string;
2479
- /** Required. The parent resource that this token based auth user will be listed for. Format: projects/{project}/locations/{location}/clusters/{cluster} */
2480
- parent: string;
2481
- /** Returns response with indentations and line breaks. */
2482
- prettyPrint?: boolean;
2483
- /** 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. */
2484
- quotaUser?: string;
2485
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2486
- upload_protocol?: string;
2487
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2488
- uploadType?: string;
2489
- }): Request<ListTokenAuthUsersResponse>;
2490
- authTokens: AuthTokensResource;
2491
- }
2492
- interface ClustersResource {
2493
- /** Adds a token auth user for a token based auth enabled cluster. */
2494
- addTokenAuthUser(request: {
2495
- /** V1 error format. */
2496
- '$.xgafv'?: '1' | '2';
2497
- /** OAuth access token. */
2498
- access_token?: string;
2499
- /** Data format for response. */
2500
- alt?: 'json' | 'media' | 'proto';
2501
- /** JSONP */
2502
- callback?: string;
2503
- /** Required. The cluster resource that this token auth user will be added for. Format: projects/{project}/locations/{location}/clusters/{cluster} */
2504
- cluster: string;
2505
- /** Selector specifying which fields to include in a partial response. */
2506
- fields?: string;
2507
- /** 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. */
2508
- key?: string;
2509
- /** OAuth 2.0 token for the current user. */
2510
- oauth_token?: string;
2511
- /** Returns response with indentations and line breaks. */
2512
- prettyPrint?: boolean;
2513
- /** 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. */
2514
- quotaUser?: string;
2515
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2516
- upload_protocol?: string;
2517
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2518
- uploadType?: string;
2519
- /** Request body */
2520
- resource: AddTokenAuthUserRequest;
2521
- }): Request<Operation>;
2522
- addTokenAuthUser(
2523
- request: {
2524
- /** V1 error format. */
2525
- '$.xgafv'?: '1' | '2';
2526
- /** OAuth access token. */
2527
- access_token?: string;
2528
- /** Data format for response. */
2529
- alt?: 'json' | 'media' | 'proto';
2530
- /** JSONP */
2531
- callback?: string;
2532
- /** Required. The cluster resource that this token auth user will be added for. Format: projects/{project}/locations/{location}/clusters/{cluster} */
2533
- cluster: string;
2534
- /** Selector specifying which fields to include in a partial response. */
2535
- fields?: string;
2536
- /** 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. */
2537
- key?: string;
2538
- /** OAuth 2.0 token for the current user. */
2539
- oauth_token?: string;
2540
- /** Returns response with indentations and line breaks. */
2541
- prettyPrint?: boolean;
2542
- /** 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. */
2543
- quotaUser?: string;
2544
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2545
- upload_protocol?: string;
2546
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2547
- uploadType?: string;
2548
- },
2549
- body: AddTokenAuthUserRequest,
2550
- ): Request<Operation>;
2551
- /** Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup. */
2552
- backup(request: {
2553
- /** V1 error format. */
2554
- '$.xgafv'?: '1' | '2';
2555
- /** OAuth access token. */
2556
- access_token?: string;
2557
- /** Data format for response. */
2558
- alt?: 'json' | 'media' | 'proto';
2559
- /** JSONP */
2560
- callback?: string;
2561
- /** Selector specifying which fields to include in a partial response. */
2562
- fields?: string;
2563
- /** 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. */
2564
- key?: string;
2565
- /** Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2566
- name: string;
2567
- /** OAuth 2.0 token for the current user. */
2568
- oauth_token?: string;
2569
- /** Returns response with indentations and line breaks. */
2570
- prettyPrint?: boolean;
2571
- /** 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. */
2572
- quotaUser?: string;
2573
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2574
- upload_protocol?: string;
2575
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2576
- uploadType?: string;
2577
- /** Request body */
2578
- resource: BackupClusterRequest;
2579
- }): Request<Operation>;
2580
- backup(
2581
- request: {
2582
- /** V1 error format. */
2583
- '$.xgafv'?: '1' | '2';
2584
- /** OAuth access token. */
2585
- access_token?: string;
2586
- /** Data format for response. */
2587
- alt?: 'json' | 'media' | 'proto';
2588
- /** JSONP */
2589
- callback?: string;
2590
- /** Selector specifying which fields to include in a partial response. */
2591
- fields?: string;
2592
- /** 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. */
2593
- key?: string;
2594
- /** Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2595
- name: string;
2596
- /** OAuth 2.0 token for the current user. */
2597
- oauth_token?: string;
2598
- /** Returns response with indentations and line breaks. */
2599
- prettyPrint?: boolean;
2600
- /** 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. */
2601
- quotaUser?: string;
2602
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2603
- upload_protocol?: string;
2604
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2605
- uploadType?: string;
2606
- },
2607
- body: BackupClusterRequest,
2608
- ): Request<Operation>;
2609
- /** Creates a Redis cluster based on the specified properties. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis cluster will be fully functional. The completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
2610
- create(request: {
2611
- /** V1 error format. */
2612
- '$.xgafv'?: '1' | '2';
2613
- /** OAuth access token. */
2614
- access_token?: string;
2615
- /** Data format for response. */
2616
- alt?: 'json' | 'media' | 'proto';
2617
- /** JSONP */
2618
- callback?: string;
2619
- /** Required. The logical name of the Redis cluster in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
2620
- clusterId?: string;
2621
- /** Selector specifying which fields to include in a partial response. */
2622
- fields?: string;
2623
- /** 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. */
2624
- key?: string;
2625
- /** OAuth 2.0 token for the current user. */
2626
- oauth_token?: string;
2627
- /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
2628
- parent: string;
2629
- /** Returns response with indentations and line breaks. */
2630
- prettyPrint?: boolean;
2631
- /** 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. */
2632
- quotaUser?: string;
2633
- /** Optional. Idempotent request UUID. */
2634
- requestId?: string;
2635
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2636
- upload_protocol?: string;
2637
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2638
- uploadType?: string;
2639
- /** Request body */
2640
- resource: Cluster;
2641
- }): Request<Operation>;
2642
- create(
2643
- request: {
2644
- /** V1 error format. */
2645
- '$.xgafv'?: '1' | '2';
2646
- /** OAuth access token. */
2647
- access_token?: string;
2648
- /** Data format for response. */
2649
- alt?: 'json' | 'media' | 'proto';
2650
- /** JSONP */
2651
- callback?: string;
2652
- /** Required. The logical name of the Redis cluster in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
2653
- clusterId?: string;
2654
- /** Selector specifying which fields to include in a partial response. */
2655
- fields?: string;
2656
- /** 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. */
2657
- key?: string;
2658
- /** OAuth 2.0 token for the current user. */
2659
- oauth_token?: string;
2660
- /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
2661
- parent: string;
2662
- /** Returns response with indentations and line breaks. */
2663
- prettyPrint?: boolean;
2664
- /** 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. */
2665
- quotaUser?: string;
2666
- /** Optional. Idempotent request UUID. */
2667
- requestId?: string;
2668
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2669
- upload_protocol?: string;
2670
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2671
- uploadType?: string;
2672
- },
2673
- body: Cluster,
2674
- ): Request<Operation>;
2675
- /** Deletes a specific Redis cluster. Cluster stops serving and data is deleted. */
2676
- delete(request?: {
2677
- /** V1 error format. */
2678
- '$.xgafv'?: '1' | '2';
2679
- /** OAuth access token. */
2680
- access_token?: string;
2681
- /** Data format for response. */
2682
- alt?: 'json' | 'media' | 'proto';
2683
- /** JSONP */
2684
- callback?: string;
2685
- /** Selector specifying which fields to include in a partial response. */
2686
- fields?: string;
2687
- /** 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. */
2688
- key?: string;
2689
- /** Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2690
- name: string;
2691
- /** OAuth 2.0 token for the current user. */
2692
- oauth_token?: string;
2693
- /** Returns response with indentations and line breaks. */
2694
- prettyPrint?: boolean;
2695
- /** 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. */
2696
- quotaUser?: string;
2697
- /** Optional. Idempotent request UUID. */
2698
- requestId?: string;
2699
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2700
- upload_protocol?: string;
2701
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2702
- uploadType?: string;
2703
- }): Request<Operation>;
2704
- /** Gets the details of a specific Redis cluster. */
2705
- get(request?: {
2706
- /** V1 error format. */
2707
- '$.xgafv'?: '1' | '2';
2708
- /** OAuth access token. */
2709
- access_token?: string;
2710
- /** Data format for response. */
2711
- alt?: 'json' | 'media' | 'proto';
2712
- /** JSONP */
2713
- callback?: string;
2714
- /** Selector specifying which fields to include in a partial response. */
2715
- fields?: string;
2716
- /** 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. */
2717
- key?: string;
2718
- /** Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2719
- name: string;
2720
- /** OAuth 2.0 token for the current user. */
2721
- oauth_token?: string;
2722
- /** Returns response with indentations and line breaks. */
2723
- prettyPrint?: boolean;
2724
- /** 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. */
2725
- quotaUser?: string;
2726
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2727
- upload_protocol?: string;
2728
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2729
- uploadType?: string;
2730
- }): Request<Cluster>;
2731
- /** Gets the details of certificate authority information for Redis cluster. */
2732
- getCertificateAuthority(request?: {
2733
- /** V1 error format. */
2734
- '$.xgafv'?: '1' | '2';
2735
- /** OAuth access token. */
2736
- access_token?: string;
2737
- /** Data format for response. */
2738
- alt?: 'json' | 'media' | 'proto';
2739
- /** JSONP */
2740
- callback?: string;
2741
- /** Selector specifying which fields to include in a partial response. */
2742
- fields?: string;
2743
- /** 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. */
2744
- key?: string;
2745
- /** Required. Redis cluster certificate authority resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` where `location_id` refers to a Google Cloud region. */
2746
- name: string;
2747
- /** OAuth 2.0 token for the current user. */
2748
- oauth_token?: string;
2749
- /** Returns response with indentations and line breaks. */
2750
- prettyPrint?: boolean;
2751
- /** 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. */
2752
- quotaUser?: string;
2753
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2754
- upload_protocol?: string;
2755
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2756
- uploadType?: string;
2757
- }): Request<CertificateAuthority>;
2758
- /** Lists all Redis clusters owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. */
2759
- list(request?: {
2760
- /** V1 error format. */
2761
- '$.xgafv'?: '1' | '2';
2762
- /** OAuth access token. */
2763
- access_token?: string;
2764
- /** Data format for response. */
2765
- alt?: 'json' | 'media' | 'proto';
2766
- /** JSONP */
2767
- callback?: string;
2768
- /** Selector specifying which fields to include in a partial response. */
2769
- fields?: string;
2770
- /** 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. */
2771
- key?: string;
2772
- /** OAuth 2.0 token for the current user. */
2773
- oauth_token?: string;
2774
- /** The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more clusters left to be queried. */
2775
- pageSize?: number;
2776
- /** The `next_page_token` value returned from a previous `ListClusters` request, if any. */
2777
- pageToken?: string;
2778
- /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
2779
- parent: string;
2780
- /** Returns response with indentations and line breaks. */
2781
- prettyPrint?: boolean;
2782
- /** 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. */
2783
- quotaUser?: string;
2784
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2785
- upload_protocol?: string;
2786
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2787
- uploadType?: string;
2788
- }): Request<ListClustersResponse>;
2789
- /** Updates the metadata and configuration of a specific Redis cluster. Completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
2790
- patch(request: {
2791
- /** V1 error format. */
2792
- '$.xgafv'?: '1' | '2';
2793
- /** OAuth access token. */
2794
- access_token?: string;
2795
- /** Data format for response. */
2796
- alt?: 'json' | 'media' | 'proto';
2797
- /** JSONP */
2798
- callback?: string;
2799
- /** Selector specifying which fields to include in a partial response. */
2800
- fields?: string;
2801
- /** 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. */
2802
- key?: string;
2803
- /** Required. Identifier. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` */
2804
- name: string;
2805
- /** OAuth 2.0 token for the current user. */
2806
- oauth_token?: string;
2807
- /** Returns response with indentations and line breaks. */
2808
- prettyPrint?: boolean;
2809
- /** 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. */
2810
- quotaUser?: string;
2811
- /** Optional. Idempotent request UUID. */
2812
- requestId?: string;
2813
- /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Cluster: * `size_gb` * `replica_count` * `cluster_endpoints` */
2814
- updateMask?: string;
2815
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2816
- upload_protocol?: string;
2817
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2818
- uploadType?: string;
2819
- /** Request body */
2820
- resource: Cluster;
2821
- }): Request<Operation>;
2822
- patch(
2823
- request: {
2824
- /** V1 error format. */
2825
- '$.xgafv'?: '1' | '2';
2826
- /** OAuth access token. */
2827
- access_token?: string;
2828
- /** Data format for response. */
2829
- alt?: 'json' | 'media' | 'proto';
2830
- /** JSONP */
2831
- callback?: string;
2832
- /** Selector specifying which fields to include in a partial response. */
2833
- fields?: string;
2834
- /** 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. */
2835
- key?: string;
2836
- /** Required. Identifier. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` */
2837
- name: string;
2838
- /** OAuth 2.0 token for the current user. */
2839
- oauth_token?: string;
2840
- /** Returns response with indentations and line breaks. */
2841
- prettyPrint?: boolean;
2842
- /** 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. */
2843
- quotaUser?: string;
2844
- /** Optional. Idempotent request UUID. */
2845
- requestId?: string;
2846
- /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Cluster: * `size_gb` * `replica_count` * `cluster_endpoints` */
2847
- updateMask?: string;
2848
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2849
- upload_protocol?: string;
2850
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2851
- uploadType?: string;
2852
- },
2853
- body: Cluster,
2854
- ): Request<Operation>;
2855
- /** Reschedules upcoming maintenance event. */
2856
- rescheduleClusterMaintenance(request: {
2857
- /** V1 error format. */
2858
- '$.xgafv'?: '1' | '2';
2859
- /** OAuth access token. */
2860
- access_token?: string;
2861
- /** Data format for response. */
2862
- alt?: 'json' | 'media' | 'proto';
2863
- /** JSONP */
2864
- callback?: string;
2865
- /** Selector specifying which fields to include in a partial response. */
2866
- fields?: string;
2867
- /** 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. */
2868
- key?: string;
2869
- /** Required. Redis Cluster instance resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2870
- name: string;
2871
- /** OAuth 2.0 token for the current user. */
2872
- oauth_token?: string;
2873
- /** Returns response with indentations and line breaks. */
2874
- prettyPrint?: boolean;
2875
- /** 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. */
2876
- quotaUser?: string;
2877
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2878
- upload_protocol?: string;
2879
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2880
- uploadType?: string;
2881
- /** Request body */
2882
- resource: RescheduleClusterMaintenanceRequest;
2883
- }): Request<Operation>;
2884
- rescheduleClusterMaintenance(
2885
- request: {
2886
- /** V1 error format. */
2887
- '$.xgafv'?: '1' | '2';
2888
- /** OAuth access token. */
2889
- access_token?: string;
2890
- /** Data format for response. */
2891
- alt?: 'json' | 'media' | 'proto';
2892
- /** JSONP */
2893
- callback?: string;
2894
- /** Selector specifying which fields to include in a partial response. */
2895
- fields?: string;
2896
- /** 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. */
2897
- key?: string;
2898
- /** Required. Redis Cluster instance resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2899
- name: string;
2900
- /** OAuth 2.0 token for the current user. */
2901
- oauth_token?: string;
2902
- /** Returns response with indentations and line breaks. */
2903
- prettyPrint?: boolean;
2904
- /** 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. */
2905
- quotaUser?: string;
2906
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2907
- upload_protocol?: string;
2908
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2909
- uploadType?: string;
2910
- },
2911
- body: RescheduleClusterMaintenanceRequest,
2912
- ): Request<Operation>;
2913
- tokenAuthUsers: TokenAuthUsersResource;
2914
- }
2915
- interface InstancesResource {
2916
- /** Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's [default network](https://cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
2917
- create(request: {
2918
- /** V1 error format. */
2919
- '$.xgafv'?: '1' | '2';
2920
- /** OAuth access token. */
2921
- access_token?: string;
2922
- /** Data format for response. */
2923
- alt?: 'json' | 'media' | 'proto';
2924
- /** JSONP */
2925
- callback?: string;
2926
- /** Selector specifying which fields to include in a partial response. */
2927
- fields?: string;
2928
- /** Required. The logical name of the Redis instance in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
2929
- instanceId?: string;
2930
- /** 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. */
2931
- key?: string;
2932
- /** OAuth 2.0 token for the current user. */
2933
- oauth_token?: string;
2934
- /** Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. */
2935
- parent: string;
2936
- /** Returns response with indentations and line breaks. */
2937
- prettyPrint?: boolean;
2938
- /** 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. */
2939
- quotaUser?: string;
2940
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2941
- upload_protocol?: string;
2942
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2943
- uploadType?: string;
2944
- /** Request body */
2945
- resource: Instance;
2946
- }): Request<Operation>;
2947
- create(
2948
- request: {
2949
- /** V1 error format. */
2950
- '$.xgafv'?: '1' | '2';
2951
- /** OAuth access token. */
2952
- access_token?: string;
2953
- /** Data format for response. */
2954
- alt?: 'json' | 'media' | 'proto';
2955
- /** JSONP */
2956
- callback?: string;
2957
- /** Selector specifying which fields to include in a partial response. */
2958
- fields?: string;
2959
- /** Required. The logical name of the Redis instance in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
2960
- instanceId?: string;
2961
- /** 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. */
2962
- key?: string;
2963
- /** OAuth 2.0 token for the current user. */
2964
- oauth_token?: string;
2965
- /** Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. */
2966
- parent: string;
2967
- /** Returns response with indentations and line breaks. */
2968
- prettyPrint?: boolean;
2969
- /** 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. */
2970
- quotaUser?: string;
2971
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2972
- upload_protocol?: string;
2973
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2974
- uploadType?: string;
2975
- },
2976
- body: Instance,
2977
- ): Request<Operation>;
2978
- /** Deletes a specific Redis instance. Instance stops serving and data is deleted. */
2979
- delete(request?: {
2980
- /** V1 error format. */
2981
- '$.xgafv'?: '1' | '2';
2982
- /** OAuth access token. */
2983
- access_token?: string;
2984
- /** Data format for response. */
2985
- alt?: 'json' | 'media' | 'proto';
2986
- /** JSONP */
2987
- callback?: string;
2988
- /** Selector specifying which fields to include in a partial response. */
2989
- fields?: string;
2990
- /** 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. */
2991
- key?: string;
2992
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
2993
- name: string;
2994
- /** OAuth 2.0 token for the current user. */
2995
- oauth_token?: string;
2996
- /** Returns response with indentations and line breaks. */
2997
- prettyPrint?: boolean;
2998
- /** 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. */
2999
- quotaUser?: string;
3000
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3001
- upload_protocol?: string;
3002
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3003
- uploadType?: string;
3004
- }): Request<Operation>;
3005
- /** Export Redis instance data into a Redis RDB format file in Cloud Storage. Redis will continue serving during this operation. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
3006
- export(request: {
3007
- /** V1 error format. */
3008
- '$.xgafv'?: '1' | '2';
3009
- /** OAuth access token. */
3010
- access_token?: string;
3011
- /** Data format for response. */
3012
- alt?: 'json' | 'media' | 'proto';
3013
- /** JSONP */
3014
- callback?: string;
3015
- /** Selector specifying which fields to include in a partial response. */
3016
- fields?: string;
3017
- /** 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. */
3018
- key?: string;
3019
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3020
- name: string;
3021
- /** OAuth 2.0 token for the current user. */
3022
- oauth_token?: string;
3023
- /** Returns response with indentations and line breaks. */
3024
- prettyPrint?: boolean;
3025
- /** 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. */
3026
- quotaUser?: string;
3027
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3028
- upload_protocol?: string;
3029
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3030
- uploadType?: string;
3031
- /** Request body */
3032
- resource: ExportInstanceRequest;
3033
- }): Request<Operation>;
3034
- export(
3035
- request: {
3036
- /** V1 error format. */
3037
- '$.xgafv'?: '1' | '2';
3038
- /** OAuth access token. */
3039
- access_token?: string;
3040
- /** Data format for response. */
3041
- alt?: 'json' | 'media' | 'proto';
3042
- /** JSONP */
3043
- callback?: string;
3044
- /** Selector specifying which fields to include in a partial response. */
3045
- fields?: string;
3046
- /** 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. */
3047
- key?: string;
3048
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3049
- name: string;
3050
- /** OAuth 2.0 token for the current user. */
3051
- oauth_token?: string;
3052
- /** Returns response with indentations and line breaks. */
3053
- prettyPrint?: boolean;
3054
- /** 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. */
3055
- quotaUser?: string;
3056
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3057
- upload_protocol?: string;
3058
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3059
- uploadType?: string;
3060
- },
3061
- body: ExportInstanceRequest,
3062
- ): Request<Operation>;
3063
- /** Initiates a failover of the primary node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance. */
3064
- failover(request: {
3065
- /** V1 error format. */
3066
- '$.xgafv'?: '1' | '2';
3067
- /** OAuth access token. */
3068
- access_token?: string;
3069
- /** Data format for response. */
3070
- alt?: 'json' | 'media' | 'proto';
3071
- /** JSONP */
3072
- callback?: string;
3073
- /** Selector specifying which fields to include in a partial response. */
3074
- fields?: string;
3075
- /** 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. */
3076
- key?: string;
3077
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3078
- name: string;
3079
- /** OAuth 2.0 token for the current user. */
3080
- oauth_token?: string;
3081
- /** Returns response with indentations and line breaks. */
3082
- prettyPrint?: boolean;
3083
- /** 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. */
3084
- quotaUser?: string;
3085
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3086
- upload_protocol?: string;
3087
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3088
- uploadType?: string;
3089
- /** Request body */
3090
- resource: FailoverInstanceRequest;
3091
- }): Request<Operation>;
3092
- failover(
3093
- request: {
3094
- /** V1 error format. */
3095
- '$.xgafv'?: '1' | '2';
3096
- /** OAuth access token. */
3097
- access_token?: string;
3098
- /** Data format for response. */
3099
- alt?: 'json' | 'media' | 'proto';
3100
- /** JSONP */
3101
- callback?: string;
3102
- /** Selector specifying which fields to include in a partial response. */
3103
- fields?: string;
3104
- /** 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. */
3105
- key?: string;
3106
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3107
- name: string;
3108
- /** OAuth 2.0 token for the current user. */
3109
- oauth_token?: string;
3110
- /** Returns response with indentations and line breaks. */
3111
- prettyPrint?: boolean;
3112
- /** 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. */
3113
- quotaUser?: string;
3114
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3115
- upload_protocol?: string;
3116
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3117
- uploadType?: string;
3118
- },
3119
- body: FailoverInstanceRequest,
3120
- ): Request<Operation>;
3121
- /** Gets the details of a specific Redis instance. */
3122
- get(request?: {
3123
- /** V1 error format. */
3124
- '$.xgafv'?: '1' | '2';
3125
- /** OAuth access token. */
3126
- access_token?: string;
3127
- /** Data format for response. */
3128
- alt?: 'json' | 'media' | 'proto';
3129
- /** JSONP */
3130
- callback?: string;
3131
- /** Selector specifying which fields to include in a partial response. */
3132
- fields?: string;
3133
- /** 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. */
3134
- key?: string;
3135
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3136
- name: string;
3137
- /** OAuth 2.0 token for the current user. */
3138
- oauth_token?: string;
3139
- /** Returns response with indentations and line breaks. */
3140
- prettyPrint?: boolean;
3141
- /** 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. */
3142
- quotaUser?: string;
3143
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3144
- upload_protocol?: string;
3145
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3146
- uploadType?: string;
3147
- }): Request<Instance>;
3148
- /** Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance. */
3149
- getAuthString(request?: {
3150
- /** V1 error format. */
3151
- '$.xgafv'?: '1' | '2';
3152
- /** OAuth access token. */
3153
- access_token?: string;
3154
- /** Data format for response. */
3155
- alt?: 'json' | 'media' | 'proto';
3156
- /** JSONP */
3157
- callback?: string;
3158
- /** Selector specifying which fields to include in a partial response. */
3159
- fields?: string;
3160
- /** 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. */
3161
- key?: string;
3162
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3163
- name: string;
3164
- /** OAuth 2.0 token for the current user. */
3165
- oauth_token?: string;
3166
- /** Returns response with indentations and line breaks. */
3167
- prettyPrint?: boolean;
3168
- /** 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. */
3169
- quotaUser?: string;
3170
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3171
- upload_protocol?: string;
3172
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3173
- uploadType?: string;
3174
- }): Request<InstanceAuthString>;
3175
- /** Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
3176
- import(request: {
3177
- /** V1 error format. */
3178
- '$.xgafv'?: '1' | '2';
3179
- /** OAuth access token. */
3180
- access_token?: string;
3181
- /** Data format for response. */
3182
- alt?: 'json' | 'media' | 'proto';
3183
- /** JSONP */
3184
- callback?: string;
3185
- /** Selector specifying which fields to include in a partial response. */
3186
- fields?: string;
3187
- /** 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. */
3188
- key?: string;
3189
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3190
- name: string;
3191
- /** OAuth 2.0 token for the current user. */
3192
- oauth_token?: string;
3193
- /** Returns response with indentations and line breaks. */
3194
- prettyPrint?: boolean;
3195
- /** 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. */
3196
- quotaUser?: string;
3197
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3198
- upload_protocol?: string;
3199
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3200
- uploadType?: string;
3201
- /** Request body */
3202
- resource: ImportInstanceRequest;
3203
- }): Request<Operation>;
3204
- import(
3205
- request: {
3206
- /** V1 error format. */
3207
- '$.xgafv'?: '1' | '2';
3208
- /** OAuth access token. */
3209
- access_token?: string;
3210
- /** Data format for response. */
3211
- alt?: 'json' | 'media' | 'proto';
3212
- /** JSONP */
3213
- callback?: string;
3214
- /** Selector specifying which fields to include in a partial response. */
3215
- fields?: string;
3216
- /** 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. */
3217
- key?: string;
3218
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3219
- name: string;
3220
- /** OAuth 2.0 token for the current user. */
3221
- oauth_token?: string;
3222
- /** Returns response with indentations and line breaks. */
3223
- prettyPrint?: boolean;
3224
- /** 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. */
3225
- quotaUser?: string;
3226
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3227
- upload_protocol?: string;
3228
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3229
- uploadType?: string;
3230
- },
3231
- body: ImportInstanceRequest,
3232
- ): Request<Operation>;
3233
- /** Lists all Redis instances owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. */
3234
- list(request?: {
3235
- /** V1 error format. */
3236
- '$.xgafv'?: '1' | '2';
3237
- /** OAuth access token. */
3238
- access_token?: string;
3239
- /** Data format for response. */
3240
- alt?: 'json' | 'media' | 'proto';
3241
- /** JSONP */
3242
- callback?: string;
3243
- /** Selector specifying which fields to include in a partial response. */
3244
- fields?: string;
3245
- /** 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. */
3246
- key?: string;
3247
- /** OAuth 2.0 token for the current user. */
3248
- oauth_token?: string;
3249
- /** The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more instances left to be queried. */
3250
- pageSize?: number;
3251
- /** The `next_page_token` value returned from a previous ListInstances request, if any. */
3252
- pageToken?: string;
3253
- /** Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. */
3254
- parent: string;
3255
- /** Returns response with indentations and line breaks. */
3256
- prettyPrint?: boolean;
3257
- /** 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. */
3258
- quotaUser?: string;
3259
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3260
- upload_protocol?: string;
3261
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3262
- uploadType?: string;
3263
- }): Request<ListInstancesResponse>;
3264
- /** Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
3265
- patch(request: {
3266
- /** V1 error format. */
3267
- '$.xgafv'?: '1' | '2';
3268
- /** OAuth access token. */
3269
- access_token?: string;
3270
- /** Data format for response. */
3271
- alt?: 'json' | 'media' | 'proto';
3272
- /** JSONP */
3273
- callback?: string;
3274
- /** Selector specifying which fields to include in a partial response. */
3275
- fields?: string;
3276
- /** 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. */
3277
- key?: string;
3278
- /** Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. */
3279
- name: string;
3280
- /** OAuth 2.0 token for the current user. */
3281
- oauth_token?: string;
3282
- /** Returns response with indentations and line breaks. */
3283
- prettyPrint?: boolean;
3284
- /** 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. */
3285
- quotaUser?: string;
3286
- /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` * `replica_count` */
3287
- updateMask?: string;
3288
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3289
- upload_protocol?: string;
3290
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3291
- uploadType?: string;
3292
- /** Request body */
3293
- resource: Instance;
3294
- }): Request<Operation>;
3295
- patch(
3296
- request: {
1757
+
1758
+ const projects: {
1759
+ locations: {
1760
+ /** Gets information about a location. */
1761
+ get(request?: {
3297
1762
  /** V1 error format. */
3298
1763
  '$.xgafv'?: '1' | '2';
3299
1764
  /** OAuth access token. */
@@ -3306,7 +1771,7 @@ declare namespace gapi.client {
3306
1771
  fields?: string;
3307
1772
  /** 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. */
3308
1773
  key?: string;
3309
- /** Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. */
1774
+ /** Resource name for the location. */
3310
1775
  name: string;
3311
1776
  /** OAuth 2.0 token for the current user. */
3312
1777
  oauth_token?: string;
@@ -3314,46 +1779,13 @@ declare namespace gapi.client {
3314
1779
  prettyPrint?: boolean;
3315
1780
  /** 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. */
3316
1781
  quotaUser?: string;
3317
- /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` * `replica_count` */
3318
- updateMask?: string;
3319
1782
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3320
1783
  upload_protocol?: string;
3321
1784
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3322
1785
  uploadType?: string;
3323
- },
3324
- body: Instance,
3325
- ): Request<Operation>;
3326
- /** Reschedule maintenance for a given instance in a given project and location. */
3327
- rescheduleMaintenance(request: {
3328
- /** V1 error format. */
3329
- '$.xgafv'?: '1' | '2';
3330
- /** OAuth access token. */
3331
- access_token?: string;
3332
- /** Data format for response. */
3333
- alt?: 'json' | 'media' | 'proto';
3334
- /** JSONP */
3335
- callback?: string;
3336
- /** Selector specifying which fields to include in a partial response. */
3337
- fields?: string;
3338
- /** 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. */
3339
- key?: string;
3340
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3341
- name: string;
3342
- /** OAuth 2.0 token for the current user. */
3343
- oauth_token?: string;
3344
- /** Returns response with indentations and line breaks. */
3345
- prettyPrint?: boolean;
3346
- /** 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. */
3347
- quotaUser?: string;
3348
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3349
- upload_protocol?: string;
3350
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3351
- uploadType?: string;
3352
- /** Request body */
3353
- resource: RescheduleMaintenanceRequest;
3354
- }): Request<Operation>;
3355
- rescheduleMaintenance(
3356
- request: {
1786
+ }): Request<Location>;
1787
+ /** Gets the details of regional certificate authority information for Redis cluster. */
1788
+ getSharedRegionalCertificateAuthority(request?: {
3357
1789
  /** V1 error format. */
3358
1790
  '$.xgafv'?: '1' | '2';
3359
1791
  /** OAuth access token. */
@@ -3366,7 +1798,7 @@ declare namespace gapi.client {
3366
1798
  fields?: string;
3367
1799
  /** 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. */
3368
1800
  key?: string;
3369
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
1801
+ /** Required. Regional certificate authority resource name using the form: `projects/{project_id}/locations/{location_id}/sharedRegionalCertificateAuthority` where `location_id` refers to a Google Cloud region. */
3370
1802
  name: string;
3371
1803
  /** OAuth 2.0 token for the current user. */
3372
1804
  oauth_token?: string;
@@ -3378,40 +1810,9 @@ declare namespace gapi.client {
3378
1810
  upload_protocol?: string;
3379
1811
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3380
1812
  uploadType?: string;
3381
- },
3382
- body: RescheduleMaintenanceRequest,
3383
- ): Request<Operation>;
3384
- /** Upgrades Redis instance to the newer Redis version specified in the request. */
3385
- upgrade(request: {
3386
- /** V1 error format. */
3387
- '$.xgafv'?: '1' | '2';
3388
- /** OAuth access token. */
3389
- access_token?: string;
3390
- /** Data format for response. */
3391
- alt?: 'json' | 'media' | 'proto';
3392
- /** JSONP */
3393
- callback?: string;
3394
- /** Selector specifying which fields to include in a partial response. */
3395
- fields?: string;
3396
- /** 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. */
3397
- key?: string;
3398
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3399
- name: string;
3400
- /** OAuth 2.0 token for the current user. */
3401
- oauth_token?: string;
3402
- /** Returns response with indentations and line breaks. */
3403
- prettyPrint?: boolean;
3404
- /** 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. */
3405
- quotaUser?: string;
3406
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3407
- upload_protocol?: string;
3408
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3409
- uploadType?: string;
3410
- /** Request body */
3411
- resource: UpgradeInstanceRequest;
3412
- }): Request<Operation>;
3413
- upgrade(
3414
- request: {
1813
+ }): Request<SharedRegionalCertificateAuthority>;
1814
+ /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
1815
+ list(request?: {
3415
1816
  /** V1 error format. */
3416
1817
  '$.xgafv'?: '1' | '2';
3417
1818
  /** OAuth access token. */
@@ -3420,14 +1821,22 @@ declare namespace gapi.client {
3420
1821
  alt?: 'json' | 'media' | 'proto';
3421
1822
  /** JSONP */
3422
1823
  callback?: string;
1824
+ /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
1825
+ extraLocationTypes?: string | string[];
3423
1826
  /** Selector specifying which fields to include in a partial response. */
3424
1827
  fields?: string;
1828
+ /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */
1829
+ filter?: string;
3425
1830
  /** 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. */
3426
1831
  key?: string;
3427
- /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
1832
+ /** The resource that owns the locations collection, if applicable. */
3428
1833
  name: string;
3429
1834
  /** OAuth 2.0 token for the current user. */
3430
1835
  oauth_token?: string;
1836
+ /** The maximum number of results to return. If not set, the service selects a default. */
1837
+ pageSize?: number;
1838
+ /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
1839
+ pageToken?: string;
3431
1840
  /** Returns response with indentations and line breaks. */
3432
1841
  prettyPrint?: boolean;
3433
1842
  /** 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. */
@@ -3436,228 +1845,1810 @@ declare namespace gapi.client {
3436
1845
  upload_protocol?: string;
3437
1846
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3438
1847
  uploadType?: string;
3439
- },
3440
- body: UpgradeInstanceRequest,
3441
- ): Request<Operation>;
3442
- }
3443
- interface OperationsResource {
3444
- /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
3445
- cancel(request?: {
3446
- /** V1 error format. */
3447
- '$.xgafv'?: '1' | '2';
3448
- /** OAuth access token. */
3449
- access_token?: string;
3450
- /** Data format for response. */
3451
- alt?: 'json' | 'media' | 'proto';
3452
- /** JSONP */
3453
- callback?: string;
3454
- /** Selector specifying which fields to include in a partial response. */
3455
- fields?: string;
3456
- /** 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. */
3457
- key?: string;
3458
- /** The name of the operation resource to be cancelled. */
3459
- name: string;
3460
- /** OAuth 2.0 token for the current user. */
3461
- oauth_token?: string;
3462
- /** Returns response with indentations and line breaks. */
3463
- prettyPrint?: boolean;
3464
- /** 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. */
3465
- quotaUser?: string;
3466
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3467
- upload_protocol?: string;
3468
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3469
- uploadType?: string;
3470
- }): Request<{}>;
3471
- /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
3472
- delete(request?: {
3473
- /** V1 error format. */
3474
- '$.xgafv'?: '1' | '2';
3475
- /** OAuth access token. */
3476
- access_token?: string;
3477
- /** Data format for response. */
3478
- alt?: 'json' | 'media' | 'proto';
3479
- /** JSONP */
3480
- callback?: string;
3481
- /** Selector specifying which fields to include in a partial response. */
3482
- fields?: string;
3483
- /** 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. */
3484
- key?: string;
3485
- /** The name of the operation resource to be deleted. */
3486
- name: string;
3487
- /** OAuth 2.0 token for the current user. */
3488
- oauth_token?: string;
3489
- /** Returns response with indentations and line breaks. */
3490
- prettyPrint?: boolean;
3491
- /** 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. */
3492
- quotaUser?: string;
3493
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3494
- upload_protocol?: string;
3495
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3496
- uploadType?: string;
3497
- }): Request<{}>;
3498
- /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
3499
- get(request?: {
3500
- /** V1 error format. */
3501
- '$.xgafv'?: '1' | '2';
3502
- /** OAuth access token. */
3503
- access_token?: string;
3504
- /** Data format for response. */
3505
- alt?: 'json' | 'media' | 'proto';
3506
- /** JSONP */
3507
- callback?: string;
3508
- /** Selector specifying which fields to include in a partial response. */
3509
- fields?: string;
3510
- /** 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. */
3511
- key?: string;
3512
- /** The name of the operation resource. */
3513
- name: string;
3514
- /** OAuth 2.0 token for the current user. */
3515
- oauth_token?: string;
3516
- /** Returns response with indentations and line breaks. */
3517
- prettyPrint?: boolean;
3518
- /** 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. */
3519
- quotaUser?: string;
3520
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3521
- upload_protocol?: string;
3522
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3523
- uploadType?: string;
3524
- }): Request<Operation>;
3525
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
3526
- list(request?: {
3527
- /** V1 error format. */
3528
- '$.xgafv'?: '1' | '2';
3529
- /** OAuth access token. */
3530
- access_token?: string;
3531
- /** Data format for response. */
3532
- alt?: 'json' | 'media' | 'proto';
3533
- /** JSONP */
3534
- callback?: string;
3535
- /** Selector specifying which fields to include in a partial response. */
3536
- fields?: string;
3537
- /** The standard list filter. */
3538
- filter?: string;
3539
- /** 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. */
3540
- key?: string;
3541
- /** The name of the operation's parent resource. */
3542
- name: string;
3543
- /** OAuth 2.0 token for the current user. */
3544
- oauth_token?: string;
3545
- /** The standard list page size. */
3546
- pageSize?: number;
3547
- /** The standard list page token. */
3548
- pageToken?: string;
3549
- /** Returns response with indentations and line breaks. */
3550
- prettyPrint?: boolean;
3551
- /** 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. */
3552
- quotaUser?: string;
3553
- /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
3554
- returnPartialSuccess?: boolean;
3555
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3556
- upload_protocol?: string;
3557
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3558
- uploadType?: string;
3559
- }): Request<ListOperationsResponse>;
3560
- }
3561
- interface LocationsResource {
3562
- /** Gets information about a location. */
3563
- get(request?: {
3564
- /** V1 error format. */
3565
- '$.xgafv'?: '1' | '2';
3566
- /** OAuth access token. */
3567
- access_token?: string;
3568
- /** Data format for response. */
3569
- alt?: 'json' | 'media' | 'proto';
3570
- /** JSONP */
3571
- callback?: string;
3572
- /** Selector specifying which fields to include in a partial response. */
3573
- fields?: string;
3574
- /** 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. */
3575
- key?: string;
3576
- /** Resource name for the location. */
3577
- name: string;
3578
- /** OAuth 2.0 token for the current user. */
3579
- oauth_token?: string;
3580
- /** Returns response with indentations and line breaks. */
3581
- prettyPrint?: boolean;
3582
- /** 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. */
3583
- quotaUser?: string;
3584
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3585
- upload_protocol?: string;
3586
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3587
- uploadType?: string;
3588
- }): Request<Location>;
3589
- /** Gets the details of regional certificate authority information for Redis cluster. */
3590
- getSharedRegionalCertificateAuthority(request?: {
3591
- /** V1 error format. */
3592
- '$.xgafv'?: '1' | '2';
3593
- /** OAuth access token. */
3594
- access_token?: string;
3595
- /** Data format for response. */
3596
- alt?: 'json' | 'media' | 'proto';
3597
- /** JSONP */
3598
- callback?: string;
3599
- /** Selector specifying which fields to include in a partial response. */
3600
- fields?: string;
3601
- /** 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. */
3602
- key?: string;
3603
- /** Required. Regional certificate authority resource name using the form: `projects/{project_id}/locations/{location_id}/sharedRegionalCertificateAuthority` where `location_id` refers to a Google Cloud region. */
3604
- name: string;
3605
- /** OAuth 2.0 token for the current user. */
3606
- oauth_token?: string;
3607
- /** Returns response with indentations and line breaks. */
3608
- prettyPrint?: boolean;
3609
- /** 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. */
3610
- quotaUser?: string;
3611
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3612
- upload_protocol?: string;
3613
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3614
- uploadType?: string;
3615
- }): Request<SharedRegionalCertificateAuthority>;
3616
- /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
3617
- list(request?: {
3618
- /** V1 error format. */
3619
- '$.xgafv'?: '1' | '2';
3620
- /** OAuth access token. */
3621
- access_token?: string;
3622
- /** Data format for response. */
3623
- alt?: 'json' | 'media' | 'proto';
3624
- /** JSONP */
3625
- callback?: string;
3626
- /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
3627
- extraLocationTypes?: string | string[];
3628
- /** Selector specifying which fields to include in a partial response. */
3629
- fields?: string;
3630
- /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */
3631
- filter?: string;
3632
- /** 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. */
3633
- key?: string;
3634
- /** The resource that owns the locations collection, if applicable. */
3635
- name: string;
3636
- /** OAuth 2.0 token for the current user. */
3637
- oauth_token?: string;
3638
- /** The maximum number of results to return. If not set, the service selects a default. */
3639
- pageSize?: number;
3640
- /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
3641
- pageToken?: string;
3642
- /** Returns response with indentations and line breaks. */
3643
- prettyPrint?: boolean;
3644
- /** 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. */
3645
- quotaUser?: string;
3646
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3647
- upload_protocol?: string;
3648
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3649
- uploadType?: string;
3650
- }): Request<ListLocationsResponse>;
3651
- aclPolicies: AclPoliciesResource;
3652
- backupCollections: BackupCollectionsResource;
3653
- clusters: ClustersResource;
3654
- instances: InstancesResource;
3655
- operations: OperationsResource;
3656
- }
3657
- interface ProjectsResource {
3658
- locations: LocationsResource;
3659
- }
3660
-
3661
- const projects: ProjectsResource;
1848
+ }): Request<ListLocationsResponse>;
1849
+ aclPolicies: {
1850
+ /** Creates an ACL policy. The creation is executed synchronously and the policy is available for use immediately after the RPC returns. */
1851
+ create(request: {
1852
+ /** V1 error format. */
1853
+ '$.xgafv'?: '1' | '2';
1854
+ /** OAuth access token. */
1855
+ access_token?: string;
1856
+ /** Required. The logical name of the ACL policy in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
1857
+ aclPolicyId?: string;
1858
+ /** Data format for response. */
1859
+ alt?: 'json' | 'media' | 'proto';
1860
+ /** JSONP */
1861
+ callback?: string;
1862
+ /** Selector specifying which fields to include in a partial response. */
1863
+ fields?: string;
1864
+ /** 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. */
1865
+ key?: string;
1866
+ /** OAuth 2.0 token for the current user. */
1867
+ oauth_token?: string;
1868
+ /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
1869
+ parent: string;
1870
+ /** Returns response with indentations and line breaks. */
1871
+ prettyPrint?: boolean;
1872
+ /** 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. */
1873
+ quotaUser?: string;
1874
+ /** Optional. Idempotent request UUID. . */
1875
+ requestId?: string;
1876
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1877
+ upload_protocol?: string;
1878
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1879
+ uploadType?: string;
1880
+ /** Request body */
1881
+ resource: AclPolicy;
1882
+ }): Request<AclPolicy>;
1883
+ create(
1884
+ request: {
1885
+ /** V1 error format. */
1886
+ '$.xgafv'?: '1' | '2';
1887
+ /** OAuth access token. */
1888
+ access_token?: string;
1889
+ /** Required. The logical name of the ACL policy in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
1890
+ aclPolicyId?: string;
1891
+ /** Data format for response. */
1892
+ alt?: 'json' | 'media' | 'proto';
1893
+ /** JSONP */
1894
+ callback?: string;
1895
+ /** Selector specifying which fields to include in a partial response. */
1896
+ fields?: string;
1897
+ /** 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. */
1898
+ key?: string;
1899
+ /** OAuth 2.0 token for the current user. */
1900
+ oauth_token?: string;
1901
+ /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
1902
+ parent: string;
1903
+ /** Returns response with indentations and line breaks. */
1904
+ prettyPrint?: boolean;
1905
+ /** 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. */
1906
+ quotaUser?: string;
1907
+ /** Optional. Idempotent request UUID. . */
1908
+ requestId?: string;
1909
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1910
+ upload_protocol?: string;
1911
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1912
+ uploadType?: string;
1913
+ },
1914
+ body: AclPolicy,
1915
+ ): Request<AclPolicy>;
1916
+ /** Deletes a specific ACL policy. This action will delete the ACL policy and all the rules associated with it. An ACL policy cannot be deleted if it is attached to a cluster. */
1917
+ delete(request?: {
1918
+ /** V1 error format. */
1919
+ '$.xgafv'?: '1' | '2';
1920
+ /** OAuth access token. */
1921
+ access_token?: string;
1922
+ /** Data format for response. */
1923
+ alt?: 'json' | 'media' | 'proto';
1924
+ /** JSONP */
1925
+ callback?: string;
1926
+ /** Optional. Etag of the ACL policy. If this is different from the server's etag, the request will fail with an ABORTED error. */
1927
+ etag?: string;
1928
+ /** Selector specifying which fields to include in a partial response. */
1929
+ fields?: string;
1930
+ /** 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. */
1931
+ key?: string;
1932
+ /** Required. Redis ACL policy resource name using the form: `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where `location_id` refers to a Google Cloud region. */
1933
+ name: string;
1934
+ /** OAuth 2.0 token for the current user. */
1935
+ oauth_token?: string;
1936
+ /** Returns response with indentations and line breaks. */
1937
+ prettyPrint?: boolean;
1938
+ /** 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. */
1939
+ quotaUser?: string;
1940
+ /** Optional. Idempotent request UUID. */
1941
+ requestId?: string;
1942
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1943
+ upload_protocol?: string;
1944
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1945
+ uploadType?: string;
1946
+ }): Request<Operation>;
1947
+ /** Gets the details of a specific Redis Cluster ACL policy. */
1948
+ get(request?: {
1949
+ /** V1 error format. */
1950
+ '$.xgafv'?: '1' | '2';
1951
+ /** OAuth access token. */
1952
+ access_token?: string;
1953
+ /** Data format for response. */
1954
+ alt?: 'json' | 'media' | 'proto';
1955
+ /** JSONP */
1956
+ callback?: string;
1957
+ /** Selector specifying which fields to include in a partial response. */
1958
+ fields?: string;
1959
+ /** 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. */
1960
+ key?: string;
1961
+ /** Required. Redis ACL policy resource name using the form: `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where `location_id` refers to a Google Cloud region. */
1962
+ name: string;
1963
+ /** OAuth 2.0 token for the current user. */
1964
+ oauth_token?: string;
1965
+ /** Returns response with indentations and line breaks. */
1966
+ prettyPrint?: boolean;
1967
+ /** 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. */
1968
+ quotaUser?: string;
1969
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1970
+ upload_protocol?: string;
1971
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1972
+ uploadType?: string;
1973
+ }): Request<AclPolicy>;
1974
+ /** Lists all ACL policies owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. */
1975
+ list(request?: {
1976
+ /** V1 error format. */
1977
+ '$.xgafv'?: '1' | '2';
1978
+ /** OAuth access token. */
1979
+ access_token?: string;
1980
+ /** Data format for response. */
1981
+ alt?: 'json' | 'media' | 'proto';
1982
+ /** JSONP */
1983
+ callback?: string;
1984
+ /** Selector specifying which fields to include in a partial response. */
1985
+ fields?: string;
1986
+ /** 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. */
1987
+ key?: string;
1988
+ /** OAuth 2.0 token for the current user. */
1989
+ oauth_token?: string;
1990
+ /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more ACL policies left to be queried. The maximum value is 1000; values above 1000 will be coerced to 1000. */
1991
+ pageSize?: number;
1992
+ /** Optional. The `next_page_token` value returned from a previous `ListAclPolicies` request, if any. */
1993
+ pageToken?: string;
1994
+ /** Required. The resource name of the ACL policy location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
1995
+ parent: string;
1996
+ /** Returns response with indentations and line breaks. */
1997
+ prettyPrint?: boolean;
1998
+ /** 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. */
1999
+ quotaUser?: string;
2000
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2001
+ upload_protocol?: string;
2002
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2003
+ uploadType?: string;
2004
+ }): Request<ListAclPoliciesResponse>;
2005
+ /** Updates the ACL policy. The operation applies the updated ACL policy to all of the linked clusters. If Memorystore can apply the policy to all clusters, then the operation returns a SUCCESS status. If Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, Memorystore uses reconciliation to apply the policy to the failed clusters. Completed longrunning.Operation will contain the new ACL policy object in the response field. */
2006
+ patch(request: {
2007
+ /** V1 error format. */
2008
+ '$.xgafv'?: '1' | '2';
2009
+ /** OAuth access token. */
2010
+ access_token?: string;
2011
+ /** Data format for response. */
2012
+ alt?: 'json' | 'media' | 'proto';
2013
+ /** JSONP */
2014
+ callback?: string;
2015
+ /** Selector specifying which fields to include in a partial response. */
2016
+ fields?: string;
2017
+ /** 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. */
2018
+ key?: string;
2019
+ /** Identifier. Full resource path of the ACL policy. */
2020
+ name: string;
2021
+ /** OAuth 2.0 token for the current user. */
2022
+ oauth_token?: string;
2023
+ /** Returns response with indentations and line breaks. */
2024
+ prettyPrint?: boolean;
2025
+ /** 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. */
2026
+ quotaUser?: string;
2027
+ /** Optional. Idempotent request UUID. */
2028
+ requestId?: string;
2029
+ /** Optional. Mask of fields to be updated. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from `AclPolicy`: * `rules` */
2030
+ updateMask?: string;
2031
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2032
+ upload_protocol?: string;
2033
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2034
+ uploadType?: string;
2035
+ /** Request body */
2036
+ resource: AclPolicy;
2037
+ }): Request<Operation>;
2038
+ patch(
2039
+ request: {
2040
+ /** V1 error format. */
2041
+ '$.xgafv'?: '1' | '2';
2042
+ /** OAuth access token. */
2043
+ access_token?: string;
2044
+ /** Data format for response. */
2045
+ alt?: 'json' | 'media' | 'proto';
2046
+ /** JSONP */
2047
+ callback?: string;
2048
+ /** Selector specifying which fields to include in a partial response. */
2049
+ fields?: string;
2050
+ /** 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. */
2051
+ key?: string;
2052
+ /** Identifier. Full resource path of the ACL policy. */
2053
+ name: string;
2054
+ /** OAuth 2.0 token for the current user. */
2055
+ oauth_token?: string;
2056
+ /** Returns response with indentations and line breaks. */
2057
+ prettyPrint?: boolean;
2058
+ /** 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. */
2059
+ quotaUser?: string;
2060
+ /** Optional. Idempotent request UUID. */
2061
+ requestId?: string;
2062
+ /** Optional. Mask of fields to be updated. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from `AclPolicy`: * `rules` */
2063
+ updateMask?: string;
2064
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2065
+ upload_protocol?: string;
2066
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2067
+ uploadType?: string;
2068
+ },
2069
+ body: AclPolicy,
2070
+ ): Request<Operation>;
2071
+ revisions: {
2072
+ /** Gets details of a specific ACL policy revision. */
2073
+ get(request?: {
2074
+ /** V1 error format. */
2075
+ '$.xgafv'?: '1' | '2';
2076
+ /** OAuth access token. */
2077
+ access_token?: string;
2078
+ /** Data format for response. */
2079
+ alt?: 'json' | 'media' | 'proto';
2080
+ /** JSONP */
2081
+ callback?: string;
2082
+ /** Selector specifying which fields to include in a partial response. */
2083
+ fields?: string;
2084
+ /** 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. */
2085
+ key?: string;
2086
+ /** Required. Redis ACL policy revision resource name using the form: `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` where `location_id` refers to a Google Cloud region. */
2087
+ name: string;
2088
+ /** OAuth 2.0 token for the current user. */
2089
+ oauth_token?: string;
2090
+ /** Returns response with indentations and line breaks. */
2091
+ prettyPrint?: boolean;
2092
+ /** 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. */
2093
+ quotaUser?: string;
2094
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2095
+ upload_protocol?: string;
2096
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2097
+ uploadType?: string;
2098
+ }): Request<AclPolicyRevision>;
2099
+ /** Lists all ACL policy revisions in a given ACL policy. */
2100
+ list(request?: {
2101
+ /** V1 error format. */
2102
+ '$.xgafv'?: '1' | '2';
2103
+ /** OAuth access token. */
2104
+ access_token?: string;
2105
+ /** Data format for response. */
2106
+ alt?: 'json' | 'media' | 'proto';
2107
+ /** JSONP */
2108
+ callback?: string;
2109
+ /** Selector specifying which fields to include in a partial response. */
2110
+ fields?: string;
2111
+ /** 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. */
2112
+ key?: string;
2113
+ /** OAuth 2.0 token for the current user. */
2114
+ oauth_token?: string;
2115
+ /** Optional. The maximum number of items to return. */
2116
+ pageSize?: number;
2117
+ /** Optional. The `next_page_token` value returned from a previous `ListAclPolicyRevisions` request, if any. */
2118
+ pageToken?: string;
2119
+ /** Required. The name of the ACL policy to list revisions for. Format: "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" */
2120
+ parent: string;
2121
+ /** Returns response with indentations and line breaks. */
2122
+ prettyPrint?: boolean;
2123
+ /** 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. */
2124
+ quotaUser?: string;
2125
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2126
+ upload_protocol?: string;
2127
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2128
+ uploadType?: string;
2129
+ }): Request<ListAclPolicyRevisionsResponse>;
2130
+ };
2131
+ };
2132
+ backupCollections: {
2133
+ /** Get a backup collection. */
2134
+ get(request?: {
2135
+ /** V1 error format. */
2136
+ '$.xgafv'?: '1' | '2';
2137
+ /** OAuth access token. */
2138
+ access_token?: string;
2139
+ /** Data format for response. */
2140
+ alt?: 'json' | 'media' | 'proto';
2141
+ /** JSONP */
2142
+ callback?: string;
2143
+ /** Selector specifying which fields to include in a partial response. */
2144
+ fields?: string;
2145
+ /** 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. */
2146
+ key?: string;
2147
+ /** Required. Redis backupCollection resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` where `location_id` refers to a Google Cloud region. */
2148
+ name: string;
2149
+ /** OAuth 2.0 token for the current user. */
2150
+ oauth_token?: string;
2151
+ /** Returns response with indentations and line breaks. */
2152
+ prettyPrint?: boolean;
2153
+ /** 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. */
2154
+ quotaUser?: string;
2155
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2156
+ upload_protocol?: string;
2157
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2158
+ uploadType?: string;
2159
+ }): Request<BackupCollection>;
2160
+ /** Lists all backup collections owned by a consumer project in either the specified location (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. */
2161
+ list(request?: {
2162
+ /** V1 error format. */
2163
+ '$.xgafv'?: '1' | '2';
2164
+ /** OAuth access token. */
2165
+ access_token?: string;
2166
+ /** Data format for response. */
2167
+ alt?: 'json' | 'media' | 'proto';
2168
+ /** JSONP */
2169
+ callback?: string;
2170
+ /** Selector specifying which fields to include in a partial response. */
2171
+ fields?: string;
2172
+ /** 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. */
2173
+ key?: string;
2174
+ /** OAuth 2.0 token for the current user. */
2175
+ oauth_token?: string;
2176
+ /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more clusters left to be queried. */
2177
+ pageSize?: number;
2178
+ /** Optional. The `next_page_token` value returned from a previous [ListBackupCollections] request, if any. */
2179
+ pageToken?: string;
2180
+ /** Required. The resource name of the backupCollection location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
2181
+ parent: string;
2182
+ /** Returns response with indentations and line breaks. */
2183
+ prettyPrint?: boolean;
2184
+ /** 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. */
2185
+ quotaUser?: string;
2186
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2187
+ upload_protocol?: string;
2188
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2189
+ uploadType?: string;
2190
+ }): Request<ListBackupCollectionsResponse>;
2191
+ backups: {
2192
+ /** Deletes a specific backup. */
2193
+ delete(request?: {
2194
+ /** V1 error format. */
2195
+ '$.xgafv'?: '1' | '2';
2196
+ /** OAuth access token. */
2197
+ access_token?: string;
2198
+ /** Data format for response. */
2199
+ alt?: 'json' | 'media' | 'proto';
2200
+ /** JSONP */
2201
+ callback?: string;
2202
+ /** Selector specifying which fields to include in a partial response. */
2203
+ fields?: string;
2204
+ /** 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. */
2205
+ key?: string;
2206
+ /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` */
2207
+ name: string;
2208
+ /** OAuth 2.0 token for the current user. */
2209
+ oauth_token?: string;
2210
+ /** Returns response with indentations and line breaks. */
2211
+ prettyPrint?: boolean;
2212
+ /** 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. */
2213
+ quotaUser?: string;
2214
+ /** Optional. Idempotent request UUID. */
2215
+ requestId?: string;
2216
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2217
+ upload_protocol?: string;
2218
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2219
+ uploadType?: string;
2220
+ }): Request<Operation>;
2221
+ /** Exports a specific backup to a customer target Cloud Storage URI. */
2222
+ export(request: {
2223
+ /** V1 error format. */
2224
+ '$.xgafv'?: '1' | '2';
2225
+ /** OAuth access token. */
2226
+ access_token?: string;
2227
+ /** Data format for response. */
2228
+ alt?: 'json' | 'media' | 'proto';
2229
+ /** JSONP */
2230
+ callback?: string;
2231
+ /** Selector specifying which fields to include in a partial response. */
2232
+ fields?: string;
2233
+ /** 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. */
2234
+ key?: string;
2235
+ /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` */
2236
+ name: string;
2237
+ /** OAuth 2.0 token for the current user. */
2238
+ oauth_token?: string;
2239
+ /** Returns response with indentations and line breaks. */
2240
+ prettyPrint?: boolean;
2241
+ /** 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. */
2242
+ quotaUser?: string;
2243
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2244
+ upload_protocol?: string;
2245
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2246
+ uploadType?: string;
2247
+ /** Request body */
2248
+ resource: ExportBackupRequest;
2249
+ }): Request<Operation>;
2250
+ export(
2251
+ request: {
2252
+ /** V1 error format. */
2253
+ '$.xgafv'?: '1' | '2';
2254
+ /** OAuth access token. */
2255
+ access_token?: string;
2256
+ /** Data format for response. */
2257
+ alt?: 'json' | 'media' | 'proto';
2258
+ /** JSONP */
2259
+ callback?: string;
2260
+ /** Selector specifying which fields to include in a partial response. */
2261
+ fields?: string;
2262
+ /** 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. */
2263
+ key?: string;
2264
+ /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` */
2265
+ name: string;
2266
+ /** OAuth 2.0 token for the current user. */
2267
+ oauth_token?: string;
2268
+ /** Returns response with indentations and line breaks. */
2269
+ prettyPrint?: boolean;
2270
+ /** 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. */
2271
+ quotaUser?: string;
2272
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2273
+ upload_protocol?: string;
2274
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2275
+ uploadType?: string;
2276
+ },
2277
+ body: ExportBackupRequest,
2278
+ ): Request<Operation>;
2279
+ /** Gets the details of a specific backup. */
2280
+ get(request?: {
2281
+ /** V1 error format. */
2282
+ '$.xgafv'?: '1' | '2';
2283
+ /** OAuth access token. */
2284
+ access_token?: string;
2285
+ /** Data format for response. */
2286
+ alt?: 'json' | 'media' | 'proto';
2287
+ /** JSONP */
2288
+ callback?: string;
2289
+ /** Selector specifying which fields to include in a partial response. */
2290
+ fields?: string;
2291
+ /** 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. */
2292
+ key?: string;
2293
+ /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` */
2294
+ name: string;
2295
+ /** OAuth 2.0 token for the current user. */
2296
+ oauth_token?: string;
2297
+ /** Returns response with indentations and line breaks. */
2298
+ prettyPrint?: boolean;
2299
+ /** 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. */
2300
+ quotaUser?: string;
2301
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2302
+ upload_protocol?: string;
2303
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2304
+ uploadType?: string;
2305
+ }): Request<Backup>;
2306
+ /** Lists all backups owned by a backup collection. */
2307
+ list(request?: {
2308
+ /** V1 error format. */
2309
+ '$.xgafv'?: '1' | '2';
2310
+ /** OAuth access token. */
2311
+ access_token?: string;
2312
+ /** Data format for response. */
2313
+ alt?: 'json' | 'media' | 'proto';
2314
+ /** JSONP */
2315
+ callback?: string;
2316
+ /** Selector specifying which fields to include in a partial response. */
2317
+ fields?: string;
2318
+ /** 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. */
2319
+ key?: string;
2320
+ /** OAuth 2.0 token for the current user. */
2321
+ oauth_token?: string;
2322
+ /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more clusters left to be queried. */
2323
+ pageSize?: number;
2324
+ /** Optional. The `next_page_token` value returned from a previous [ListBackupCollections] request, if any. */
2325
+ pageToken?: string;
2326
+ /** Required. The resource name of the backupCollection using the form: `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` */
2327
+ parent: string;
2328
+ /** Returns response with indentations and line breaks. */
2329
+ prettyPrint?: boolean;
2330
+ /** 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. */
2331
+ quotaUser?: string;
2332
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2333
+ upload_protocol?: string;
2334
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2335
+ uploadType?: string;
2336
+ }): Request<ListBackupsResponse>;
2337
+ };
2338
+ };
2339
+ clusters: {
2340
+ /** Adds a token auth user for a token based auth enabled cluster. */
2341
+ addTokenAuthUser(request: {
2342
+ /** V1 error format. */
2343
+ '$.xgafv'?: '1' | '2';
2344
+ /** OAuth access token. */
2345
+ access_token?: string;
2346
+ /** Data format for response. */
2347
+ alt?: 'json' | 'media' | 'proto';
2348
+ /** JSONP */
2349
+ callback?: string;
2350
+ /** Required. The cluster resource that this token auth user will be added for. Format: projects/{project}/locations/{location}/clusters/{cluster} */
2351
+ cluster: string;
2352
+ /** Selector specifying which fields to include in a partial response. */
2353
+ fields?: string;
2354
+ /** 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. */
2355
+ key?: string;
2356
+ /** OAuth 2.0 token for the current user. */
2357
+ oauth_token?: string;
2358
+ /** Returns response with indentations and line breaks. */
2359
+ prettyPrint?: boolean;
2360
+ /** 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. */
2361
+ quotaUser?: string;
2362
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2363
+ upload_protocol?: string;
2364
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2365
+ uploadType?: string;
2366
+ /** Request body */
2367
+ resource: AddTokenAuthUserRequest;
2368
+ }): Request<Operation>;
2369
+ addTokenAuthUser(
2370
+ request: {
2371
+ /** V1 error format. */
2372
+ '$.xgafv'?: '1' | '2';
2373
+ /** OAuth access token. */
2374
+ access_token?: string;
2375
+ /** Data format for response. */
2376
+ alt?: 'json' | 'media' | 'proto';
2377
+ /** JSONP */
2378
+ callback?: string;
2379
+ /** Required. The cluster resource that this token auth user will be added for. Format: projects/{project}/locations/{location}/clusters/{cluster} */
2380
+ cluster: string;
2381
+ /** Selector specifying which fields to include in a partial response. */
2382
+ fields?: string;
2383
+ /** 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. */
2384
+ key?: string;
2385
+ /** OAuth 2.0 token for the current user. */
2386
+ oauth_token?: string;
2387
+ /** Returns response with indentations and line breaks. */
2388
+ prettyPrint?: boolean;
2389
+ /** 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. */
2390
+ quotaUser?: string;
2391
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2392
+ upload_protocol?: string;
2393
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2394
+ uploadType?: string;
2395
+ },
2396
+ body: AddTokenAuthUserRequest,
2397
+ ): Request<Operation>;
2398
+ /** Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup. */
2399
+ backup(request: {
2400
+ /** V1 error format. */
2401
+ '$.xgafv'?: '1' | '2';
2402
+ /** OAuth access token. */
2403
+ access_token?: string;
2404
+ /** Data format for response. */
2405
+ alt?: 'json' | 'media' | 'proto';
2406
+ /** JSONP */
2407
+ callback?: string;
2408
+ /** Selector specifying which fields to include in a partial response. */
2409
+ fields?: string;
2410
+ /** 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. */
2411
+ key?: string;
2412
+ /** Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2413
+ name: string;
2414
+ /** OAuth 2.0 token for the current user. */
2415
+ oauth_token?: string;
2416
+ /** Returns response with indentations and line breaks. */
2417
+ prettyPrint?: boolean;
2418
+ /** 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. */
2419
+ quotaUser?: string;
2420
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2421
+ upload_protocol?: string;
2422
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2423
+ uploadType?: string;
2424
+ /** Request body */
2425
+ resource: BackupClusterRequest;
2426
+ }): Request<Operation>;
2427
+ backup(
2428
+ request: {
2429
+ /** V1 error format. */
2430
+ '$.xgafv'?: '1' | '2';
2431
+ /** OAuth access token. */
2432
+ access_token?: string;
2433
+ /** Data format for response. */
2434
+ alt?: 'json' | 'media' | 'proto';
2435
+ /** JSONP */
2436
+ callback?: string;
2437
+ /** Selector specifying which fields to include in a partial response. */
2438
+ fields?: string;
2439
+ /** 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. */
2440
+ key?: string;
2441
+ /** Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2442
+ name: string;
2443
+ /** OAuth 2.0 token for the current user. */
2444
+ oauth_token?: string;
2445
+ /** Returns response with indentations and line breaks. */
2446
+ prettyPrint?: boolean;
2447
+ /** 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. */
2448
+ quotaUser?: string;
2449
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2450
+ upload_protocol?: string;
2451
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2452
+ uploadType?: string;
2453
+ },
2454
+ body: BackupClusterRequest,
2455
+ ): Request<Operation>;
2456
+ /** Creates a Redis cluster based on the specified properties. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis cluster will be fully functional. The completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
2457
+ create(request: {
2458
+ /** V1 error format. */
2459
+ '$.xgafv'?: '1' | '2';
2460
+ /** OAuth access token. */
2461
+ access_token?: string;
2462
+ /** Data format for response. */
2463
+ alt?: 'json' | 'media' | 'proto';
2464
+ /** JSONP */
2465
+ callback?: string;
2466
+ /** Required. The logical name of the Redis cluster in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
2467
+ clusterId?: string;
2468
+ /** Selector specifying which fields to include in a partial response. */
2469
+ fields?: string;
2470
+ /** 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. */
2471
+ key?: string;
2472
+ /** OAuth 2.0 token for the current user. */
2473
+ oauth_token?: string;
2474
+ /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
2475
+ parent: string;
2476
+ /** Returns response with indentations and line breaks. */
2477
+ prettyPrint?: boolean;
2478
+ /** 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. */
2479
+ quotaUser?: string;
2480
+ /** Optional. Idempotent request UUID. */
2481
+ requestId?: string;
2482
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2483
+ upload_protocol?: string;
2484
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2485
+ uploadType?: string;
2486
+ /** Request body */
2487
+ resource: Cluster;
2488
+ }): Request<Operation>;
2489
+ create(
2490
+ request: {
2491
+ /** V1 error format. */
2492
+ '$.xgafv'?: '1' | '2';
2493
+ /** OAuth access token. */
2494
+ access_token?: string;
2495
+ /** Data format for response. */
2496
+ alt?: 'json' | 'media' | 'proto';
2497
+ /** JSONP */
2498
+ callback?: string;
2499
+ /** Required. The logical name of the Redis cluster in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
2500
+ clusterId?: string;
2501
+ /** Selector specifying which fields to include in a partial response. */
2502
+ fields?: string;
2503
+ /** 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. */
2504
+ key?: string;
2505
+ /** OAuth 2.0 token for the current user. */
2506
+ oauth_token?: string;
2507
+ /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
2508
+ parent: string;
2509
+ /** Returns response with indentations and line breaks. */
2510
+ prettyPrint?: boolean;
2511
+ /** 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. */
2512
+ quotaUser?: string;
2513
+ /** Optional. Idempotent request UUID. */
2514
+ requestId?: string;
2515
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2516
+ upload_protocol?: string;
2517
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2518
+ uploadType?: string;
2519
+ },
2520
+ body: Cluster,
2521
+ ): Request<Operation>;
2522
+ /** Deletes a specific Redis cluster. Cluster stops serving and data is deleted. */
2523
+ delete(request?: {
2524
+ /** V1 error format. */
2525
+ '$.xgafv'?: '1' | '2';
2526
+ /** OAuth access token. */
2527
+ access_token?: string;
2528
+ /** Data format for response. */
2529
+ alt?: 'json' | 'media' | 'proto';
2530
+ /** JSONP */
2531
+ callback?: string;
2532
+ /** Selector specifying which fields to include in a partial response. */
2533
+ fields?: string;
2534
+ /** 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. */
2535
+ key?: string;
2536
+ /** Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2537
+ name: string;
2538
+ /** OAuth 2.0 token for the current user. */
2539
+ oauth_token?: string;
2540
+ /** Returns response with indentations and line breaks. */
2541
+ prettyPrint?: boolean;
2542
+ /** 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. */
2543
+ quotaUser?: string;
2544
+ /** Optional. Idempotent request UUID. */
2545
+ requestId?: string;
2546
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2547
+ upload_protocol?: string;
2548
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2549
+ uploadType?: string;
2550
+ }): Request<Operation>;
2551
+ /** Gets the details of a specific Redis cluster. */
2552
+ get(request?: {
2553
+ /** V1 error format. */
2554
+ '$.xgafv'?: '1' | '2';
2555
+ /** OAuth access token. */
2556
+ access_token?: string;
2557
+ /** Data format for response. */
2558
+ alt?: 'json' | 'media' | 'proto';
2559
+ /** JSONP */
2560
+ callback?: string;
2561
+ /** Selector specifying which fields to include in a partial response. */
2562
+ fields?: string;
2563
+ /** 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. */
2564
+ key?: string;
2565
+ /** Required. Redis cluster resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2566
+ name: string;
2567
+ /** OAuth 2.0 token for the current user. */
2568
+ oauth_token?: string;
2569
+ /** Returns response with indentations and line breaks. */
2570
+ prettyPrint?: boolean;
2571
+ /** 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. */
2572
+ quotaUser?: string;
2573
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2574
+ upload_protocol?: string;
2575
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2576
+ uploadType?: string;
2577
+ }): Request<Cluster>;
2578
+ /** Gets the details of certificate authority information for Redis cluster. */
2579
+ getCertificateAuthority(request?: {
2580
+ /** V1 error format. */
2581
+ '$.xgafv'?: '1' | '2';
2582
+ /** OAuth access token. */
2583
+ access_token?: string;
2584
+ /** Data format for response. */
2585
+ alt?: 'json' | 'media' | 'proto';
2586
+ /** JSONP */
2587
+ callback?: string;
2588
+ /** Selector specifying which fields to include in a partial response. */
2589
+ fields?: string;
2590
+ /** 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. */
2591
+ key?: string;
2592
+ /** Required. Redis cluster certificate authority resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` where `location_id` refers to a Google Cloud region. */
2593
+ name: string;
2594
+ /** OAuth 2.0 token for the current user. */
2595
+ oauth_token?: string;
2596
+ /** Returns response with indentations and line breaks. */
2597
+ prettyPrint?: boolean;
2598
+ /** 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. */
2599
+ quotaUser?: string;
2600
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2601
+ upload_protocol?: string;
2602
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2603
+ uploadType?: string;
2604
+ }): Request<CertificateAuthority>;
2605
+ /** Lists all Redis clusters owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. */
2606
+ list(request?: {
2607
+ /** V1 error format. */
2608
+ '$.xgafv'?: '1' | '2';
2609
+ /** OAuth access token. */
2610
+ access_token?: string;
2611
+ /** Data format for response. */
2612
+ alt?: 'json' | 'media' | 'proto';
2613
+ /** JSONP */
2614
+ callback?: string;
2615
+ /** Selector specifying which fields to include in a partial response. */
2616
+ fields?: string;
2617
+ /** 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. */
2618
+ key?: string;
2619
+ /** OAuth 2.0 token for the current user. */
2620
+ oauth_token?: string;
2621
+ /** The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more clusters left to be queried. */
2622
+ pageSize?: number;
2623
+ /** The `next_page_token` value returned from a previous `ListClusters` request, if any. */
2624
+ pageToken?: string;
2625
+ /** Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. */
2626
+ parent: string;
2627
+ /** Returns response with indentations and line breaks. */
2628
+ prettyPrint?: boolean;
2629
+ /** 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. */
2630
+ quotaUser?: string;
2631
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2632
+ upload_protocol?: string;
2633
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2634
+ uploadType?: string;
2635
+ }): Request<ListClustersResponse>;
2636
+ /** Updates the metadata and configuration of a specific Redis cluster. Completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
2637
+ patch(request: {
2638
+ /** V1 error format. */
2639
+ '$.xgafv'?: '1' | '2';
2640
+ /** OAuth access token. */
2641
+ access_token?: string;
2642
+ /** Data format for response. */
2643
+ alt?: 'json' | 'media' | 'proto';
2644
+ /** JSONP */
2645
+ callback?: string;
2646
+ /** Selector specifying which fields to include in a partial response. */
2647
+ fields?: string;
2648
+ /** 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. */
2649
+ key?: string;
2650
+ /** Required. Identifier. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` */
2651
+ name: string;
2652
+ /** OAuth 2.0 token for the current user. */
2653
+ oauth_token?: string;
2654
+ /** Returns response with indentations and line breaks. */
2655
+ prettyPrint?: boolean;
2656
+ /** 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. */
2657
+ quotaUser?: string;
2658
+ /** Optional. Idempotent request UUID. */
2659
+ requestId?: string;
2660
+ /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Cluster: * `size_gb` * `replica_count` * `cluster_endpoints` */
2661
+ updateMask?: string;
2662
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2663
+ upload_protocol?: string;
2664
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2665
+ uploadType?: string;
2666
+ /** Request body */
2667
+ resource: Cluster;
2668
+ }): Request<Operation>;
2669
+ patch(
2670
+ request: {
2671
+ /** V1 error format. */
2672
+ '$.xgafv'?: '1' | '2';
2673
+ /** OAuth access token. */
2674
+ access_token?: string;
2675
+ /** Data format for response. */
2676
+ alt?: 'json' | 'media' | 'proto';
2677
+ /** JSONP */
2678
+ callback?: string;
2679
+ /** Selector specifying which fields to include in a partial response. */
2680
+ fields?: string;
2681
+ /** 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. */
2682
+ key?: string;
2683
+ /** Required. Identifier. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` */
2684
+ name: string;
2685
+ /** OAuth 2.0 token for the current user. */
2686
+ oauth_token?: string;
2687
+ /** Returns response with indentations and line breaks. */
2688
+ prettyPrint?: boolean;
2689
+ /** 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. */
2690
+ quotaUser?: string;
2691
+ /** Optional. Idempotent request UUID. */
2692
+ requestId?: string;
2693
+ /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Cluster: * `size_gb` * `replica_count` * `cluster_endpoints` */
2694
+ updateMask?: string;
2695
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2696
+ upload_protocol?: string;
2697
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2698
+ uploadType?: string;
2699
+ },
2700
+ body: Cluster,
2701
+ ): Request<Operation>;
2702
+ /** Reschedules upcoming maintenance event. */
2703
+ rescheduleClusterMaintenance(request: {
2704
+ /** V1 error format. */
2705
+ '$.xgafv'?: '1' | '2';
2706
+ /** OAuth access token. */
2707
+ access_token?: string;
2708
+ /** Data format for response. */
2709
+ alt?: 'json' | 'media' | 'proto';
2710
+ /** JSONP */
2711
+ callback?: string;
2712
+ /** Selector specifying which fields to include in a partial response. */
2713
+ fields?: string;
2714
+ /** 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. */
2715
+ key?: string;
2716
+ /** Required. Redis Cluster instance resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2717
+ name: string;
2718
+ /** OAuth 2.0 token for the current user. */
2719
+ oauth_token?: string;
2720
+ /** Returns response with indentations and line breaks. */
2721
+ prettyPrint?: boolean;
2722
+ /** 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. */
2723
+ quotaUser?: string;
2724
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2725
+ upload_protocol?: string;
2726
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2727
+ uploadType?: string;
2728
+ /** Request body */
2729
+ resource: RescheduleClusterMaintenanceRequest;
2730
+ }): Request<Operation>;
2731
+ rescheduleClusterMaintenance(
2732
+ request: {
2733
+ /** V1 error format. */
2734
+ '$.xgafv'?: '1' | '2';
2735
+ /** OAuth access token. */
2736
+ access_token?: string;
2737
+ /** Data format for response. */
2738
+ alt?: 'json' | 'media' | 'proto';
2739
+ /** JSONP */
2740
+ callback?: string;
2741
+ /** Selector specifying which fields to include in a partial response. */
2742
+ fields?: string;
2743
+ /** 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. */
2744
+ key?: string;
2745
+ /** Required. Redis Cluster instance resource name using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to a Google Cloud region. */
2746
+ name: string;
2747
+ /** OAuth 2.0 token for the current user. */
2748
+ oauth_token?: string;
2749
+ /** Returns response with indentations and line breaks. */
2750
+ prettyPrint?: boolean;
2751
+ /** 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. */
2752
+ quotaUser?: string;
2753
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2754
+ upload_protocol?: string;
2755
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2756
+ uploadType?: string;
2757
+ },
2758
+ body: RescheduleClusterMaintenanceRequest,
2759
+ ): Request<Operation>;
2760
+ tokenAuthUsers: {
2761
+ /** Adds a auth token for a user of a token based auth enabled cluster. */
2762
+ addAuthToken(request: {
2763
+ /** V1 error format. */
2764
+ '$.xgafv'?: '1' | '2';
2765
+ /** OAuth access token. */
2766
+ access_token?: string;
2767
+ /** Data format for response. */
2768
+ alt?: 'json' | 'media' | 'proto';
2769
+ /** JSONP */
2770
+ callback?: string;
2771
+ /** Selector specifying which fields to include in a partial response. */
2772
+ fields?: string;
2773
+ /** 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. */
2774
+ key?: string;
2775
+ /** OAuth 2.0 token for the current user. */
2776
+ oauth_token?: string;
2777
+ /** Returns response with indentations and line breaks. */
2778
+ prettyPrint?: boolean;
2779
+ /** 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. */
2780
+ quotaUser?: string;
2781
+ /** Required. The name of the token auth user resource that this auth token will be added for. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2782
+ tokenAuthUser: string;
2783
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2784
+ upload_protocol?: string;
2785
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2786
+ uploadType?: string;
2787
+ /** Request body */
2788
+ resource: AddAuthTokenRequest;
2789
+ }): Request<Operation>;
2790
+ addAuthToken(
2791
+ request: {
2792
+ /** V1 error format. */
2793
+ '$.xgafv'?: '1' | '2';
2794
+ /** OAuth access token. */
2795
+ access_token?: string;
2796
+ /** Data format for response. */
2797
+ alt?: 'json' | 'media' | 'proto';
2798
+ /** JSONP */
2799
+ callback?: string;
2800
+ /** Selector specifying which fields to include in a partial response. */
2801
+ fields?: string;
2802
+ /** 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. */
2803
+ key?: string;
2804
+ /** OAuth 2.0 token for the current user. */
2805
+ oauth_token?: string;
2806
+ /** Returns response with indentations and line breaks. */
2807
+ prettyPrint?: boolean;
2808
+ /** 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. */
2809
+ quotaUser?: string;
2810
+ /** Required. The name of the token auth user resource that this auth token will be added for. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2811
+ tokenAuthUser: string;
2812
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2813
+ upload_protocol?: string;
2814
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2815
+ uploadType?: string;
2816
+ },
2817
+ body: AddAuthTokenRequest,
2818
+ ): Request<Operation>;
2819
+ /** Deletes a token auth user for a token based auth enabled cluster. */
2820
+ delete(request?: {
2821
+ /** V1 error format. */
2822
+ '$.xgafv'?: '1' | '2';
2823
+ /** OAuth access token. */
2824
+ access_token?: string;
2825
+ /** Data format for response. */
2826
+ alt?: 'json' | 'media' | 'proto';
2827
+ /** JSONP */
2828
+ callback?: string;
2829
+ /** Selector specifying which fields to include in a partial response. */
2830
+ fields?: string;
2831
+ /** Optional. If set to true, any child auth tokens of this user will also be deleted. Otherwise, the request will only work if the user has no auth tokens. */
2832
+ force?: boolean;
2833
+ /** 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. */
2834
+ key?: string;
2835
+ /** Required. The name of the token auth user to delete. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2836
+ name: string;
2837
+ /** OAuth 2.0 token for the current user. */
2838
+ oauth_token?: string;
2839
+ /** Returns response with indentations and line breaks. */
2840
+ prettyPrint?: boolean;
2841
+ /** 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. */
2842
+ quotaUser?: string;
2843
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
2844
+ requestId?: string;
2845
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2846
+ upload_protocol?: string;
2847
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2848
+ uploadType?: string;
2849
+ }): Request<Operation>;
2850
+ /** Gets a specific token auth user for a basic auth enabled cluster. */
2851
+ get(request?: {
2852
+ /** V1 error format. */
2853
+ '$.xgafv'?: '1' | '2';
2854
+ /** OAuth access token. */
2855
+ access_token?: string;
2856
+ /** Data format for response. */
2857
+ alt?: 'json' | 'media' | 'proto';
2858
+ /** JSONP */
2859
+ callback?: string;
2860
+ /** Selector specifying which fields to include in a partial response. */
2861
+ fields?: string;
2862
+ /** 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. */
2863
+ key?: string;
2864
+ /** Required. The name of token auth user for a token based auth enabled cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2865
+ name: string;
2866
+ /** OAuth 2.0 token for the current user. */
2867
+ oauth_token?: string;
2868
+ /** Returns response with indentations and line breaks. */
2869
+ prettyPrint?: boolean;
2870
+ /** 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. */
2871
+ quotaUser?: string;
2872
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2873
+ upload_protocol?: string;
2874
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2875
+ uploadType?: string;
2876
+ }): Request<TokenAuthUser>;
2877
+ /** Lists all the token auth users for a token based auth enabled cluster. */
2878
+ list(request?: {
2879
+ /** V1 error format. */
2880
+ '$.xgafv'?: '1' | '2';
2881
+ /** OAuth access token. */
2882
+ access_token?: string;
2883
+ /** Data format for response. */
2884
+ alt?: 'json' | 'media' | 'proto';
2885
+ /** JSONP */
2886
+ callback?: string;
2887
+ /** Selector specifying which fields to include in a partial response. */
2888
+ fields?: string;
2889
+ /** Optional. Expression for filtering results. */
2890
+ filter?: string;
2891
+ /** 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. */
2892
+ key?: string;
2893
+ /** OAuth 2.0 token for the current user. */
2894
+ oauth_token?: string;
2895
+ /** Optional. Sort results by a defined order. */
2896
+ orderBy?: string;
2897
+ /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's The maximum value is 1000; values above 1000 will be coerced to 1000. `next_page_token` to determine if there are more clusters left to be queried. */
2898
+ pageSize?: number;
2899
+ /** Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] request, if any. */
2900
+ pageToken?: string;
2901
+ /** Required. The parent resource that this token based auth user will be listed for. Format: projects/{project}/locations/{location}/clusters/{cluster} */
2902
+ parent: string;
2903
+ /** Returns response with indentations and line breaks. */
2904
+ prettyPrint?: boolean;
2905
+ /** 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. */
2906
+ quotaUser?: string;
2907
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2908
+ upload_protocol?: string;
2909
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2910
+ uploadType?: string;
2911
+ }): Request<ListTokenAuthUsersResponse>;
2912
+ authTokens: {
2913
+ /** Removes a auth token for a user of a token based auth enabled instance. */
2914
+ delete(request?: {
2915
+ /** V1 error format. */
2916
+ '$.xgafv'?: '1' | '2';
2917
+ /** OAuth access token. */
2918
+ access_token?: string;
2919
+ /** Data format for response. */
2920
+ alt?: 'json' | 'media' | 'proto';
2921
+ /** JSONP */
2922
+ callback?: string;
2923
+ /** Selector specifying which fields to include in a partial response. */
2924
+ fields?: string;
2925
+ /** 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. */
2926
+ key?: string;
2927
+ /** Required. The name of the token auth user resource that this auth token will be deleted from. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} */
2928
+ name: string;
2929
+ /** OAuth 2.0 token for the current user. */
2930
+ oauth_token?: string;
2931
+ /** Returns response with indentations and line breaks. */
2932
+ prettyPrint?: boolean;
2933
+ /** 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. */
2934
+ quotaUser?: string;
2935
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2936
+ upload_protocol?: string;
2937
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2938
+ uploadType?: string;
2939
+ }): Request<Operation>;
2940
+ /** Gets a specific auth token for a specific token auth user. */
2941
+ get(request?: {
2942
+ /** V1 error format. */
2943
+ '$.xgafv'?: '1' | '2';
2944
+ /** OAuth access token. */
2945
+ access_token?: string;
2946
+ /** Data format for response. */
2947
+ alt?: 'json' | 'media' | 'proto';
2948
+ /** JSONP */
2949
+ callback?: string;
2950
+ /** Selector specifying which fields to include in a partial response. */
2951
+ fields?: string;
2952
+ /** 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. */
2953
+ key?: string;
2954
+ /** Required. The name of auth token for a token based auth enabled cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} */
2955
+ name: string;
2956
+ /** OAuth 2.0 token for the current user. */
2957
+ oauth_token?: string;
2958
+ /** Returns response with indentations and line breaks. */
2959
+ prettyPrint?: boolean;
2960
+ /** 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. */
2961
+ quotaUser?: string;
2962
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2963
+ upload_protocol?: string;
2964
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2965
+ uploadType?: string;
2966
+ }): Request<AuthToken>;
2967
+ /** Lists all the auth tokens for a specific token auth user. */
2968
+ list(request?: {
2969
+ /** V1 error format. */
2970
+ '$.xgafv'?: '1' | '2';
2971
+ /** OAuth access token. */
2972
+ access_token?: string;
2973
+ /** Data format for response. */
2974
+ alt?: 'json' | 'media' | 'proto';
2975
+ /** JSONP */
2976
+ callback?: string;
2977
+ /** Selector specifying which fields to include in a partial response. */
2978
+ fields?: string;
2979
+ /** Optional. Expression for filtering results. */
2980
+ filter?: string;
2981
+ /** 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. */
2982
+ key?: string;
2983
+ /** OAuth 2.0 token for the current user. */
2984
+ oauth_token?: string;
2985
+ /** Optional. Sort results by a defined order. */
2986
+ orderBy?: string;
2987
+ /** Optional. The maximum number of items to return. The maximum value is 1000; values above 1000 will be coerced to 1000. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more clusters left to be queried. */
2988
+ pageSize?: number;
2989
+ /** Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] request, if any. */
2990
+ pageToken?: string;
2991
+ /** Required. The parent resource that this auth token will be listed for. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} */
2992
+ parent: string;
2993
+ /** Returns response with indentations and line breaks. */
2994
+ prettyPrint?: boolean;
2995
+ /** 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. */
2996
+ quotaUser?: string;
2997
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2998
+ upload_protocol?: string;
2999
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3000
+ uploadType?: string;
3001
+ }): Request<ListAuthTokensResponse>;
3002
+ };
3003
+ };
3004
+ };
3005
+ instances: {
3006
+ /** Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's [default network](https://cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
3007
+ create(request: {
3008
+ /** V1 error format. */
3009
+ '$.xgafv'?: '1' | '2';
3010
+ /** OAuth access token. */
3011
+ access_token?: string;
3012
+ /** Data format for response. */
3013
+ alt?: 'json' | 'media' | 'proto';
3014
+ /** JSONP */
3015
+ callback?: string;
3016
+ /** Selector specifying which fields to include in a partial response. */
3017
+ fields?: string;
3018
+ /** Required. The logical name of the Redis instance in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
3019
+ instanceId?: string;
3020
+ /** 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. */
3021
+ key?: string;
3022
+ /** OAuth 2.0 token for the current user. */
3023
+ oauth_token?: string;
3024
+ /** Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. */
3025
+ parent: string;
3026
+ /** Returns response with indentations and line breaks. */
3027
+ prettyPrint?: boolean;
3028
+ /** 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. */
3029
+ quotaUser?: string;
3030
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3031
+ upload_protocol?: string;
3032
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3033
+ uploadType?: string;
3034
+ /** Request body */
3035
+ resource: Instance;
3036
+ }): Request<Operation>;
3037
+ create(
3038
+ request: {
3039
+ /** V1 error format. */
3040
+ '$.xgafv'?: '1' | '2';
3041
+ /** OAuth access token. */
3042
+ access_token?: string;
3043
+ /** Data format for response. */
3044
+ alt?: 'json' | 'media' | 'proto';
3045
+ /** JSONP */
3046
+ callback?: string;
3047
+ /** Selector specifying which fields to include in a partial response. */
3048
+ fields?: string;
3049
+ /** Required. The logical name of the Redis instance in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / location */
3050
+ instanceId?: string;
3051
+ /** 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. */
3052
+ key?: string;
3053
+ /** OAuth 2.0 token for the current user. */
3054
+ oauth_token?: string;
3055
+ /** Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. */
3056
+ parent: string;
3057
+ /** Returns response with indentations and line breaks. */
3058
+ prettyPrint?: boolean;
3059
+ /** 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. */
3060
+ quotaUser?: string;
3061
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3062
+ upload_protocol?: string;
3063
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3064
+ uploadType?: string;
3065
+ },
3066
+ body: Instance,
3067
+ ): Request<Operation>;
3068
+ /** Deletes a specific Redis instance. Instance stops serving and data is deleted. */
3069
+ delete(request?: {
3070
+ /** V1 error format. */
3071
+ '$.xgafv'?: '1' | '2';
3072
+ /** OAuth access token. */
3073
+ access_token?: string;
3074
+ /** Data format for response. */
3075
+ alt?: 'json' | 'media' | 'proto';
3076
+ /** JSONP */
3077
+ callback?: string;
3078
+ /** Selector specifying which fields to include in a partial response. */
3079
+ fields?: string;
3080
+ /** 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. */
3081
+ key?: string;
3082
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3083
+ name: string;
3084
+ /** OAuth 2.0 token for the current user. */
3085
+ oauth_token?: string;
3086
+ /** Returns response with indentations and line breaks. */
3087
+ prettyPrint?: boolean;
3088
+ /** 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. */
3089
+ quotaUser?: string;
3090
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3091
+ upload_protocol?: string;
3092
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3093
+ uploadType?: string;
3094
+ }): Request<Operation>;
3095
+ /** Export Redis instance data into a Redis RDB format file in Cloud Storage. Redis will continue serving during this operation. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
3096
+ export(request: {
3097
+ /** V1 error format. */
3098
+ '$.xgafv'?: '1' | '2';
3099
+ /** OAuth access token. */
3100
+ access_token?: string;
3101
+ /** Data format for response. */
3102
+ alt?: 'json' | 'media' | 'proto';
3103
+ /** JSONP */
3104
+ callback?: string;
3105
+ /** Selector specifying which fields to include in a partial response. */
3106
+ fields?: string;
3107
+ /** 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. */
3108
+ key?: string;
3109
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3110
+ name: string;
3111
+ /** OAuth 2.0 token for the current user. */
3112
+ oauth_token?: string;
3113
+ /** Returns response with indentations and line breaks. */
3114
+ prettyPrint?: boolean;
3115
+ /** 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. */
3116
+ quotaUser?: string;
3117
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3118
+ upload_protocol?: string;
3119
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3120
+ uploadType?: string;
3121
+ /** Request body */
3122
+ resource: ExportInstanceRequest;
3123
+ }): Request<Operation>;
3124
+ export(
3125
+ request: {
3126
+ /** V1 error format. */
3127
+ '$.xgafv'?: '1' | '2';
3128
+ /** OAuth access token. */
3129
+ access_token?: string;
3130
+ /** Data format for response. */
3131
+ alt?: 'json' | 'media' | 'proto';
3132
+ /** JSONP */
3133
+ callback?: string;
3134
+ /** Selector specifying which fields to include in a partial response. */
3135
+ fields?: string;
3136
+ /** 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. */
3137
+ key?: string;
3138
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3139
+ name: string;
3140
+ /** OAuth 2.0 token for the current user. */
3141
+ oauth_token?: string;
3142
+ /** Returns response with indentations and line breaks. */
3143
+ prettyPrint?: boolean;
3144
+ /** 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. */
3145
+ quotaUser?: string;
3146
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3147
+ upload_protocol?: string;
3148
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3149
+ uploadType?: string;
3150
+ },
3151
+ body: ExportInstanceRequest,
3152
+ ): Request<Operation>;
3153
+ /** Initiates a failover of the primary node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance. */
3154
+ failover(request: {
3155
+ /** V1 error format. */
3156
+ '$.xgafv'?: '1' | '2';
3157
+ /** OAuth access token. */
3158
+ access_token?: string;
3159
+ /** Data format for response. */
3160
+ alt?: 'json' | 'media' | 'proto';
3161
+ /** JSONP */
3162
+ callback?: string;
3163
+ /** Selector specifying which fields to include in a partial response. */
3164
+ fields?: string;
3165
+ /** 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. */
3166
+ key?: string;
3167
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3168
+ name: string;
3169
+ /** OAuth 2.0 token for the current user. */
3170
+ oauth_token?: string;
3171
+ /** Returns response with indentations and line breaks. */
3172
+ prettyPrint?: boolean;
3173
+ /** 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. */
3174
+ quotaUser?: string;
3175
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3176
+ upload_protocol?: string;
3177
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3178
+ uploadType?: string;
3179
+ /** Request body */
3180
+ resource: FailoverInstanceRequest;
3181
+ }): Request<Operation>;
3182
+ failover(
3183
+ request: {
3184
+ /** V1 error format. */
3185
+ '$.xgafv'?: '1' | '2';
3186
+ /** OAuth access token. */
3187
+ access_token?: string;
3188
+ /** Data format for response. */
3189
+ alt?: 'json' | 'media' | 'proto';
3190
+ /** JSONP */
3191
+ callback?: string;
3192
+ /** Selector specifying which fields to include in a partial response. */
3193
+ fields?: string;
3194
+ /** 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. */
3195
+ key?: string;
3196
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3197
+ name: string;
3198
+ /** OAuth 2.0 token for the current user. */
3199
+ oauth_token?: string;
3200
+ /** Returns response with indentations and line breaks. */
3201
+ prettyPrint?: boolean;
3202
+ /** 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. */
3203
+ quotaUser?: string;
3204
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3205
+ upload_protocol?: string;
3206
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3207
+ uploadType?: string;
3208
+ },
3209
+ body: FailoverInstanceRequest,
3210
+ ): Request<Operation>;
3211
+ /** Gets the details of a specific Redis instance. */
3212
+ get(request?: {
3213
+ /** V1 error format. */
3214
+ '$.xgafv'?: '1' | '2';
3215
+ /** OAuth access token. */
3216
+ access_token?: string;
3217
+ /** Data format for response. */
3218
+ alt?: 'json' | 'media' | 'proto';
3219
+ /** JSONP */
3220
+ callback?: string;
3221
+ /** Selector specifying which fields to include in a partial response. */
3222
+ fields?: string;
3223
+ /** 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. */
3224
+ key?: string;
3225
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3226
+ name: string;
3227
+ /** OAuth 2.0 token for the current user. */
3228
+ oauth_token?: string;
3229
+ /** Returns response with indentations and line breaks. */
3230
+ prettyPrint?: boolean;
3231
+ /** 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. */
3232
+ quotaUser?: string;
3233
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3234
+ upload_protocol?: string;
3235
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3236
+ uploadType?: string;
3237
+ }): Request<Instance>;
3238
+ /** Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance. */
3239
+ getAuthString(request?: {
3240
+ /** V1 error format. */
3241
+ '$.xgafv'?: '1' | '2';
3242
+ /** OAuth access token. */
3243
+ access_token?: string;
3244
+ /** Data format for response. */
3245
+ alt?: 'json' | 'media' | 'proto';
3246
+ /** JSONP */
3247
+ callback?: string;
3248
+ /** Selector specifying which fields to include in a partial response. */
3249
+ fields?: string;
3250
+ /** 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. */
3251
+ key?: string;
3252
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3253
+ name: string;
3254
+ /** OAuth 2.0 token for the current user. */
3255
+ oauth_token?: string;
3256
+ /** Returns response with indentations and line breaks. */
3257
+ prettyPrint?: boolean;
3258
+ /** 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. */
3259
+ quotaUser?: string;
3260
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3261
+ upload_protocol?: string;
3262
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3263
+ uploadType?: string;
3264
+ }): Request<InstanceAuthString>;
3265
+ /** Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
3266
+ import(request: {
3267
+ /** V1 error format. */
3268
+ '$.xgafv'?: '1' | '2';
3269
+ /** OAuth access token. */
3270
+ access_token?: string;
3271
+ /** Data format for response. */
3272
+ alt?: 'json' | 'media' | 'proto';
3273
+ /** JSONP */
3274
+ callback?: string;
3275
+ /** Selector specifying which fields to include in a partial response. */
3276
+ fields?: string;
3277
+ /** 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. */
3278
+ key?: string;
3279
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3280
+ name: string;
3281
+ /** OAuth 2.0 token for the current user. */
3282
+ oauth_token?: string;
3283
+ /** Returns response with indentations and line breaks. */
3284
+ prettyPrint?: boolean;
3285
+ /** 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. */
3286
+ quotaUser?: string;
3287
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3288
+ upload_protocol?: string;
3289
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3290
+ uploadType?: string;
3291
+ /** Request body */
3292
+ resource: ImportInstanceRequest;
3293
+ }): Request<Operation>;
3294
+ import(
3295
+ request: {
3296
+ /** V1 error format. */
3297
+ '$.xgafv'?: '1' | '2';
3298
+ /** OAuth access token. */
3299
+ access_token?: string;
3300
+ /** Data format for response. */
3301
+ alt?: 'json' | 'media' | 'proto';
3302
+ /** JSONP */
3303
+ callback?: string;
3304
+ /** Selector specifying which fields to include in a partial response. */
3305
+ fields?: string;
3306
+ /** 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. */
3307
+ key?: string;
3308
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3309
+ name: string;
3310
+ /** OAuth 2.0 token for the current user. */
3311
+ oauth_token?: string;
3312
+ /** Returns response with indentations and line breaks. */
3313
+ prettyPrint?: boolean;
3314
+ /** 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. */
3315
+ quotaUser?: string;
3316
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3317
+ upload_protocol?: string;
3318
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3319
+ uploadType?: string;
3320
+ },
3321
+ body: ImportInstanceRequest,
3322
+ ): Request<Operation>;
3323
+ /** Lists all Redis instances owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. */
3324
+ list(request?: {
3325
+ /** V1 error format. */
3326
+ '$.xgafv'?: '1' | '2';
3327
+ /** OAuth access token. */
3328
+ access_token?: string;
3329
+ /** Data format for response. */
3330
+ alt?: 'json' | 'media' | 'proto';
3331
+ /** JSONP */
3332
+ callback?: string;
3333
+ /** Selector specifying which fields to include in a partial response. */
3334
+ fields?: string;
3335
+ /** 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. */
3336
+ key?: string;
3337
+ /** OAuth 2.0 token for the current user. */
3338
+ oauth_token?: string;
3339
+ /** The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more instances left to be queried. */
3340
+ pageSize?: number;
3341
+ /** The `next_page_token` value returned from a previous ListInstances request, if any. */
3342
+ pageToken?: string;
3343
+ /** Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. */
3344
+ parent: string;
3345
+ /** Returns response with indentations and line breaks. */
3346
+ prettyPrint?: boolean;
3347
+ /** 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. */
3348
+ quotaUser?: string;
3349
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3350
+ upload_protocol?: string;
3351
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3352
+ uploadType?: string;
3353
+ }): Request<ListInstancesResponse>;
3354
+ /** Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. */
3355
+ patch(request: {
3356
+ /** V1 error format. */
3357
+ '$.xgafv'?: '1' | '2';
3358
+ /** OAuth access token. */
3359
+ access_token?: string;
3360
+ /** Data format for response. */
3361
+ alt?: 'json' | 'media' | 'proto';
3362
+ /** JSONP */
3363
+ callback?: string;
3364
+ /** Selector specifying which fields to include in a partial response. */
3365
+ fields?: string;
3366
+ /** 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. */
3367
+ key?: string;
3368
+ /** Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. */
3369
+ name: string;
3370
+ /** OAuth 2.0 token for the current user. */
3371
+ oauth_token?: string;
3372
+ /** Returns response with indentations and line breaks. */
3373
+ prettyPrint?: boolean;
3374
+ /** 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. */
3375
+ quotaUser?: string;
3376
+ /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` * `replica_count` */
3377
+ updateMask?: string;
3378
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3379
+ upload_protocol?: string;
3380
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3381
+ uploadType?: string;
3382
+ /** Request body */
3383
+ resource: Instance;
3384
+ }): Request<Operation>;
3385
+ patch(
3386
+ request: {
3387
+ /** V1 error format. */
3388
+ '$.xgafv'?: '1' | '2';
3389
+ /** OAuth access token. */
3390
+ access_token?: string;
3391
+ /** Data format for response. */
3392
+ alt?: 'json' | 'media' | 'proto';
3393
+ /** JSONP */
3394
+ callback?: string;
3395
+ /** Selector specifying which fields to include in a partial response. */
3396
+ fields?: string;
3397
+ /** 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. */
3398
+ key?: string;
3399
+ /** Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. */
3400
+ name: string;
3401
+ /** OAuth 2.0 token for the current user. */
3402
+ oauth_token?: string;
3403
+ /** Returns response with indentations and line breaks. */
3404
+ prettyPrint?: boolean;
3405
+ /** 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. */
3406
+ quotaUser?: string;
3407
+ /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` * `replica_count` */
3408
+ updateMask?: string;
3409
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3410
+ upload_protocol?: string;
3411
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3412
+ uploadType?: string;
3413
+ },
3414
+ body: Instance,
3415
+ ): Request<Operation>;
3416
+ /** Reschedule maintenance for a given instance in a given project and location. */
3417
+ rescheduleMaintenance(request: {
3418
+ /** V1 error format. */
3419
+ '$.xgafv'?: '1' | '2';
3420
+ /** OAuth access token. */
3421
+ access_token?: string;
3422
+ /** Data format for response. */
3423
+ alt?: 'json' | 'media' | 'proto';
3424
+ /** JSONP */
3425
+ callback?: string;
3426
+ /** Selector specifying which fields to include in a partial response. */
3427
+ fields?: string;
3428
+ /** 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. */
3429
+ key?: string;
3430
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3431
+ name: string;
3432
+ /** OAuth 2.0 token for the current user. */
3433
+ oauth_token?: string;
3434
+ /** Returns response with indentations and line breaks. */
3435
+ prettyPrint?: boolean;
3436
+ /** 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. */
3437
+ quotaUser?: string;
3438
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3439
+ upload_protocol?: string;
3440
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3441
+ uploadType?: string;
3442
+ /** Request body */
3443
+ resource: RescheduleMaintenanceRequest;
3444
+ }): Request<Operation>;
3445
+ rescheduleMaintenance(
3446
+ request: {
3447
+ /** V1 error format. */
3448
+ '$.xgafv'?: '1' | '2';
3449
+ /** OAuth access token. */
3450
+ access_token?: string;
3451
+ /** Data format for response. */
3452
+ alt?: 'json' | 'media' | 'proto';
3453
+ /** JSONP */
3454
+ callback?: string;
3455
+ /** Selector specifying which fields to include in a partial response. */
3456
+ fields?: string;
3457
+ /** 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. */
3458
+ key?: string;
3459
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3460
+ name: string;
3461
+ /** OAuth 2.0 token for the current user. */
3462
+ oauth_token?: string;
3463
+ /** Returns response with indentations and line breaks. */
3464
+ prettyPrint?: boolean;
3465
+ /** 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. */
3466
+ quotaUser?: string;
3467
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3468
+ upload_protocol?: string;
3469
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3470
+ uploadType?: string;
3471
+ },
3472
+ body: RescheduleMaintenanceRequest,
3473
+ ): Request<Operation>;
3474
+ /** Upgrades Redis instance to the newer Redis version specified in the request. */
3475
+ upgrade(request: {
3476
+ /** V1 error format. */
3477
+ '$.xgafv'?: '1' | '2';
3478
+ /** OAuth access token. */
3479
+ access_token?: string;
3480
+ /** Data format for response. */
3481
+ alt?: 'json' | 'media' | 'proto';
3482
+ /** JSONP */
3483
+ callback?: string;
3484
+ /** Selector specifying which fields to include in a partial response. */
3485
+ fields?: string;
3486
+ /** 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. */
3487
+ key?: string;
3488
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3489
+ name: string;
3490
+ /** OAuth 2.0 token for the current user. */
3491
+ oauth_token?: string;
3492
+ /** Returns response with indentations and line breaks. */
3493
+ prettyPrint?: boolean;
3494
+ /** 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. */
3495
+ quotaUser?: string;
3496
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3497
+ upload_protocol?: string;
3498
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3499
+ uploadType?: string;
3500
+ /** Request body */
3501
+ resource: UpgradeInstanceRequest;
3502
+ }): Request<Operation>;
3503
+ upgrade(
3504
+ request: {
3505
+ /** V1 error format. */
3506
+ '$.xgafv'?: '1' | '2';
3507
+ /** OAuth access token. */
3508
+ access_token?: string;
3509
+ /** Data format for response. */
3510
+ alt?: 'json' | 'media' | 'proto';
3511
+ /** JSONP */
3512
+ callback?: string;
3513
+ /** Selector specifying which fields to include in a partial response. */
3514
+ fields?: string;
3515
+ /** 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. */
3516
+ key?: string;
3517
+ /** Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. */
3518
+ name: string;
3519
+ /** OAuth 2.0 token for the current user. */
3520
+ oauth_token?: string;
3521
+ /** Returns response with indentations and line breaks. */
3522
+ prettyPrint?: boolean;
3523
+ /** 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. */
3524
+ quotaUser?: string;
3525
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3526
+ upload_protocol?: string;
3527
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3528
+ uploadType?: string;
3529
+ },
3530
+ body: UpgradeInstanceRequest,
3531
+ ): Request<Operation>;
3532
+ };
3533
+ operations: {
3534
+ /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
3535
+ cancel(request?: {
3536
+ /** V1 error format. */
3537
+ '$.xgafv'?: '1' | '2';
3538
+ /** OAuth access token. */
3539
+ access_token?: string;
3540
+ /** Data format for response. */
3541
+ alt?: 'json' | 'media' | 'proto';
3542
+ /** JSONP */
3543
+ callback?: string;
3544
+ /** Selector specifying which fields to include in a partial response. */
3545
+ fields?: string;
3546
+ /** 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. */
3547
+ key?: string;
3548
+ /** The name of the operation resource to be cancelled. */
3549
+ name: string;
3550
+ /** OAuth 2.0 token for the current user. */
3551
+ oauth_token?: string;
3552
+ /** Returns response with indentations and line breaks. */
3553
+ prettyPrint?: boolean;
3554
+ /** 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. */
3555
+ quotaUser?: string;
3556
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3557
+ upload_protocol?: string;
3558
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3559
+ uploadType?: string;
3560
+ }): Request<{}>;
3561
+ /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
3562
+ delete(request?: {
3563
+ /** V1 error format. */
3564
+ '$.xgafv'?: '1' | '2';
3565
+ /** OAuth access token. */
3566
+ access_token?: string;
3567
+ /** Data format for response. */
3568
+ alt?: 'json' | 'media' | 'proto';
3569
+ /** JSONP */
3570
+ callback?: string;
3571
+ /** Selector specifying which fields to include in a partial response. */
3572
+ fields?: string;
3573
+ /** 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. */
3574
+ key?: string;
3575
+ /** The name of the operation resource to be deleted. */
3576
+ name: string;
3577
+ /** OAuth 2.0 token for the current user. */
3578
+ oauth_token?: string;
3579
+ /** Returns response with indentations and line breaks. */
3580
+ prettyPrint?: boolean;
3581
+ /** 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. */
3582
+ quotaUser?: string;
3583
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3584
+ upload_protocol?: string;
3585
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3586
+ uploadType?: string;
3587
+ }): Request<{}>;
3588
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
3589
+ get(request?: {
3590
+ /** V1 error format. */
3591
+ '$.xgafv'?: '1' | '2';
3592
+ /** OAuth access token. */
3593
+ access_token?: string;
3594
+ /** Data format for response. */
3595
+ alt?: 'json' | 'media' | 'proto';
3596
+ /** JSONP */
3597
+ callback?: string;
3598
+ /** Selector specifying which fields to include in a partial response. */
3599
+ fields?: string;
3600
+ /** 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. */
3601
+ key?: string;
3602
+ /** The name of the operation resource. */
3603
+ name: string;
3604
+ /** OAuth 2.0 token for the current user. */
3605
+ oauth_token?: string;
3606
+ /** Returns response with indentations and line breaks. */
3607
+ prettyPrint?: boolean;
3608
+ /** 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. */
3609
+ quotaUser?: string;
3610
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3611
+ upload_protocol?: string;
3612
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3613
+ uploadType?: string;
3614
+ }): Request<Operation>;
3615
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
3616
+ list(request?: {
3617
+ /** V1 error format. */
3618
+ '$.xgafv'?: '1' | '2';
3619
+ /** OAuth access token. */
3620
+ access_token?: string;
3621
+ /** Data format for response. */
3622
+ alt?: 'json' | 'media' | 'proto';
3623
+ /** JSONP */
3624
+ callback?: string;
3625
+ /** Selector specifying which fields to include in a partial response. */
3626
+ fields?: string;
3627
+ /** The standard list filter. */
3628
+ filter?: string;
3629
+ /** 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. */
3630
+ key?: string;
3631
+ /** The name of the operation's parent resource. */
3632
+ name: string;
3633
+ /** OAuth 2.0 token for the current user. */
3634
+ oauth_token?: string;
3635
+ /** The standard list page size. */
3636
+ pageSize?: number;
3637
+ /** The standard list page token. */
3638
+ pageToken?: string;
3639
+ /** Returns response with indentations and line breaks. */
3640
+ prettyPrint?: boolean;
3641
+ /** 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. */
3642
+ quotaUser?: string;
3643
+ /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
3644
+ returnPartialSuccess?: boolean;
3645
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3646
+ upload_protocol?: string;
3647
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3648
+ uploadType?: string;
3649
+ }): Request<ListOperationsResponse>;
3650
+ };
3651
+ };
3652
+ };
3662
3653
  }
3663
3654
  }