| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="redis_v1.html">Google Cloud Memorystore for Redis API</a> . <a href="redis_v1.projects.html">projects</a> . <a href="redis_v1.projects.locations.html">locations</a> . <a href="redis_v1.projects.locations.backupCollections.html">backupCollections</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="redis_v1.projects.locations.backupCollections.backups.html">backups()</a></code> |
| 79 |
</p> |
| 80 |
<p class="firstline">Returns the backups Resource.</p> |
| 81 |
|
| 82 |
<p class="toc_element"> |
| 83 |
<code><a href="#close">close()</a></code></p> |
| 84 |
<p class="firstline">Close httplib2 connections.</p> |
| 85 |
<p class="toc_element"> |
| 86 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 87 |
<p class="firstline">Get a backup collection.</p> |
| 88 |
<p class="toc_element"> |
| 89 |
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 90 |
<p class="firstline">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.</p> |
| 91 |
<p class="toc_element"> |
| 92 |
<code><a href="#list_next">list_next()</a></code></p> |
| 93 |
<p class="firstline">Retrieves the next page of results.</p> |
| 94 |
<h3>Method Details</h3> |
| 95 |
<div class="method"> |
| 96 |
<code class="details" id="close">close()</code> |
| 97 |
<pre>Close httplib2 connections.</pre> |
| 98 |
</div> |
| 99 |
|
| 100 |
<div class="method"> |
| 101 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 102 |
<pre>Get a backup collection. |
| 103 |
|
| 104 |
Args: |
| 105 |
name: string, 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. (required) |
| 106 |
x__xgafv: string, V1 error format. |
| 107 |
Allowed values |
| 108 |
1 - v1 error format |
| 109 |
2 - v2 error format |
| 110 |
|
| 111 |
Returns: |
| 112 |
An object of the form: |
| 113 |
|
| 114 |
{ # BackupCollection of a cluster. |
| 115 |
"cluster": "A String", # Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster} |
| 116 |
"clusterUid": "A String", # Output only. The cluster uid of the backup collection. |
| 117 |
"createTime": "A String", # Output only. The time when the backup collection was created. |
| 118 |
"kmsKey": "A String", # Output only. The KMS key used to encrypt the backups under this backup collection. |
| 119 |
"lastBackupTime": "A String", # Output only. The last time a backup was created in the backup collection. |
| 120 |
"name": "A String", # Identifier. Full resource path of the backup collection. |
| 121 |
"totalBackupCount": "A String", # Output only. Total number of backups in the backup collection. |
| 122 |
"totalBackupSizeBytes": "A String", # Output only. Total size of all backups in the backup collection. |
| 123 |
"uid": "A String", # Output only. System assigned unique identifier of the backup collection. |
| 124 |
}</pre> |
| 125 |
</div> |
| 126 |
|
| 127 |
<div class="method"> |
| 128 |
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 129 |
<pre>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. |
| 130 |
|
| 131 |
Args: |
| 132 |
parent: string, 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. (required) |
| 133 |
pageSize: integer, 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. |
| 134 |
pageToken: string, Optional. The `next_page_token` value returned from a previous [ListBackupCollections] request, if any. |
| 135 |
x__xgafv: string, V1 error format. |
| 136 |
Allowed values |
| 137 |
1 - v1 error format |
| 138 |
2 - v2 error format |
| 139 |
|
| 140 |
Returns: |
| 141 |
An object of the form: |
| 142 |
|
| 143 |
{ # Response for `ListBackupCollections`. |
| 144 |
"backupCollections": [ # A list of backupCollections in the project. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the `name` field set to a value of the form `projects/{project_id}/locations/{location_id}/backupCollections/`- and the `status` field set to ERROR and `status_message` field set to "location not available for ListBackupCollections". |
| 145 |
{ # BackupCollection of a cluster. |
| 146 |
"cluster": "A String", # Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster} |
| 147 |
"clusterUid": "A String", # Output only. The cluster uid of the backup collection. |
| 148 |
"createTime": "A String", # Output only. The time when the backup collection was created. |
| 149 |
"kmsKey": "A String", # Output only. The KMS key used to encrypt the backups under this backup collection. |
| 150 |
"lastBackupTime": "A String", # Output only. The last time a backup was created in the backup collection. |
| 151 |
"name": "A String", # Identifier. Full resource path of the backup collection. |
| 152 |
"totalBackupCount": "A String", # Output only. Total number of backups in the backup collection. |
| 153 |
"totalBackupSizeBytes": "A String", # Output only. Total size of all backups in the backup collection. |
| 154 |
"uid": "A String", # Output only. System assigned unique identifier of the backup collection. |
| 155 |
}, |
| 156 |
], |
| 157 |
"nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list. |
| 158 |
"unreachable": [ # Locations that could not be reached. |
| 159 |
"A String", |
| 160 |
], |
| 161 |
}</pre> |
| 162 |
</div> |
| 163 |
|
| 164 |
<div class="method"> |
| 165 |
<code class="details" id="list_next">list_next()</code> |
| 166 |
<pre>Retrieves the next page of results. |
| 167 |
|
| 168 |
Args: |
| 169 |
previous_request: The request for the previous page. (required) |
| 170 |
previous_response: The response from the request for the previous page. (required) |
| 171 |
|
| 172 |
Returns: |
| 173 |
A request object that you can call 'execute()' on to request the next |
| 174 |
page. Returns None if there are no more items in the collection. |
| 175 |
</pre> |
| 176 |
</div> |
| 177 |
|
| 178 |
</body></html> |