Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 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="file_v1beta1.html">Cloud Filestore API</a> . <a href="file_v1beta1.projects.html">projects</a> . <a href="file_v1beta1.projects.locations.html">locations</a> . <a href="file_v1beta1.projects.locations.instances.html">instances</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 78 | <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <p class="firstline">Creates an instance.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Deletes an instance.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Gets the details of a specific instance.</p> |
| 86 | <p class="toc_element"> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 87 | <code><a href="#list">list(parent, filter=None, pageToken=None, orderBy=None, pageSize=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 88 | <p class="firstline">Lists all instances in a project for either a specified location</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 91 | <p class="firstline">Retrieves the next page of results.</p> |
| 92 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 93 | <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 94 | <p class="firstline">Updates the settings of a specific instance.</p> |
| 95 | <h3>Method Details</h3> |
| 96 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 97 | <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 98 | <pre>Creates an instance. |
| 99 | |
| 100 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 101 | parent: string, Required. The instance's project and location, in the format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 102 | projects/{project_id}/locations/{location}. In Cloud Filestore, |
| 103 | locations map to GCP zones, for example **us-west1-b**. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 104 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 105 | The object takes the form of: |
| 106 | |
| 107 | { # A Cloud Filestore instance. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 108 | "state": "A String", # Output only. The instance state. |
| 109 | "statusMessage": "A String", # Output only. Additional information about the instance state, if available. |
| 110 | "name": "A String", # Output only. The resource name of the instance, in the format |
| 111 | # projects/{project_id}/locations/{location_id}/instances/{instance_id}. |
| 112 | "networks": [ # VPC networks to which the instance is connected. |
| 113 | # For this version, only a single network is supported. |
| 114 | { # Network configuration for the instance. |
| 115 | "network": "A String", # The name of the Google Compute Engine |
| 116 | # [VPC network](/compute/docs/networks-and-firewalls#networks) to which the |
| 117 | # instance is connected. |
| 118 | "modes": [ # Internet protocol versions for which the instance has IP addresses |
| 119 | # assigned. For this version, only MODE_IPV4 is supported. |
| 120 | "A String", |
| 121 | ], |
| 122 | "reservedIpRange": "A String", # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the |
| 123 | # [internal IP address |
| 124 | # ranges](https://www.arin.net/knowledge/address_filters.html) that |
| 125 | # identifies the range of IP addresses reserved for this instance. For |
| 126 | # example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap |
| 127 | # with either existing subnets or assigned IP address ranges for other Cloud |
| 128 | # Filestore instances in the selected VPC network. |
| 129 | "ipAddresses": [ # Output only. IPv4 addresses in the format |
| 130 | # {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format |
| 131 | # {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block |
| 132 | # 7}:{block 8}. |
| 133 | "A String", |
| 134 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 135 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 136 | ], |
| 137 | "fileShares": [ # File system shares on the instance. |
| 138 | # For this version, only a single file share is supported. |
| 139 | { # File share configuration for the instance. |
| 140 | "name": "A String", # The name of the file share (must be 16 characters or less). |
| 141 | "capacityGb": "A String", # File share capacity in gigabytes (GB). |
| 142 | # Cloud Filestore defines 1 GB as 1024^3 bytes. |
| 143 | }, |
| 144 | ], |
| 145 | "tier": "A String", # The service tier of the instance. |
| 146 | "description": "A String", # The description of the instance (2048 characters or less). |
| 147 | "etag": "A String", # Server-specified ETag for the instance resource to prevent simultaneous |
| 148 | # updates from overwriting each other. |
| 149 | "labels": { # Resource labels to represent user provided metadata. |
| 150 | "a_key": "A String", |
| 151 | }, |
| 152 | "createTime": "A String", # Output only. The time when the instance was created. |
| 153 | } |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 154 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 155 | instanceId: string, Required. The ID of the instance to create. |
| 156 | The ID must be unique within the specified project and location. |
| 157 | |
| 158 | This value must start with a lowercase letter followed by up to 62 |
| 159 | lowercase letters, numbers, or hyphens, and cannot end with a hyphen. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 160 | x__xgafv: string, V1 error format. |
| 161 | Allowed values |
| 162 | 1 - v1 error format |
| 163 | 2 - v2 error format |
| 164 | |
| 165 | Returns: |
| 166 | An object of the form: |
| 167 | |
| 168 | { # This resource represents a long-running operation that is the result of a |
| 169 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 170 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 171 | # If `true`, the operation is completed, and either `error` or `response` is |
| 172 | # available. |
| 173 | "response": { # The normal response of the operation in case of success. If the original |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 174 | # method returns no data on success, such as `Delete`, the response is |
| 175 | # `google.protobuf.Empty`. If the original method is standard |
| 176 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 177 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 178 | # is the original method name. For example, if the original method name |
| 179 | # is `TakeSnapshot()`, the inferred response type is |
| 180 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 181 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 182 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 183 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 184 | # originally returns it. If you use the default HTTP mapping, the |
| 185 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 186 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 187 | # different programming environments, including REST APIs and RPC APIs. It is |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 188 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 189 | # three pieces of data: error code, error message, and error details. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 190 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 191 | # You can find out more about this error model and how to work with it in the |
| 192 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 193 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 194 | "message": "A String", # A developer-facing error message, which should be in English. Any |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 195 | # user-facing error message should be localized and sent in the |
| 196 | # google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 197 | "details": [ # A list of messages that carry the error details. There is a common set of |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 198 | # message types for APIs to use. |
| 199 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 200 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 201 | }, |
| 202 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 203 | }, |
| 204 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 205 | # contains progress information and common metadata such as create time. |
| 206 | # Some services might not provide such metadata. Any method that returns a |
| 207 | # long-running operation should document the metadata type, if any. |
| 208 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 209 | }, |
| 210 | }</pre> |
| 211 | </div> |
| 212 | |
| 213 | <div class="method"> |
| 214 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 215 | <pre>Deletes an instance. |
| 216 | |
| 217 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 218 | name: string, Required. The instance resource name, in the format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 219 | projects/{project_id}/locations/{location}/instances/{instance_id} (required) |
| 220 | x__xgafv: string, V1 error format. |
| 221 | Allowed values |
| 222 | 1 - v1 error format |
| 223 | 2 - v2 error format |
| 224 | |
| 225 | Returns: |
| 226 | An object of the form: |
| 227 | |
| 228 | { # This resource represents a long-running operation that is the result of a |
| 229 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 230 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 231 | # If `true`, the operation is completed, and either `error` or `response` is |
| 232 | # available. |
| 233 | "response": { # The normal response of the operation in case of success. If the original |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 234 | # method returns no data on success, such as `Delete`, the response is |
| 235 | # `google.protobuf.Empty`. If the original method is standard |
| 236 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 237 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 238 | # is the original method name. For example, if the original method name |
| 239 | # is `TakeSnapshot()`, the inferred response type is |
| 240 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 241 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 242 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 243 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 244 | # originally returns it. If you use the default HTTP mapping, the |
| 245 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 246 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 247 | # different programming environments, including REST APIs and RPC APIs. It is |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 248 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 249 | # three pieces of data: error code, error message, and error details. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 250 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 251 | # You can find out more about this error model and how to work with it in the |
| 252 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 253 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 254 | "message": "A String", # A developer-facing error message, which should be in English. Any |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 255 | # user-facing error message should be localized and sent in the |
| 256 | # google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 257 | "details": [ # A list of messages that carry the error details. There is a common set of |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 258 | # message types for APIs to use. |
| 259 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 260 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 261 | }, |
| 262 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 263 | }, |
| 264 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 265 | # contains progress information and common metadata such as create time. |
| 266 | # Some services might not provide such metadata. Any method that returns a |
| 267 | # long-running operation should document the metadata type, if any. |
| 268 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 269 | }, |
| 270 | }</pre> |
| 271 | </div> |
| 272 | |
| 273 | <div class="method"> |
| 274 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 275 | <pre>Gets the details of a specific instance. |
| 276 | |
| 277 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 278 | name: string, Required. The instance resource name, in the format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 279 | projects/{project_id}/locations/{location}/instances/{instance_id}. (required) |
| 280 | x__xgafv: string, V1 error format. |
| 281 | Allowed values |
| 282 | 1 - v1 error format |
| 283 | 2 - v2 error format |
| 284 | |
| 285 | Returns: |
| 286 | An object of the form: |
| 287 | |
| 288 | { # A Cloud Filestore instance. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 289 | "state": "A String", # Output only. The instance state. |
| 290 | "statusMessage": "A String", # Output only. Additional information about the instance state, if available. |
| 291 | "name": "A String", # Output only. The resource name of the instance, in the format |
| 292 | # projects/{project_id}/locations/{location_id}/instances/{instance_id}. |
| 293 | "networks": [ # VPC networks to which the instance is connected. |
| 294 | # For this version, only a single network is supported. |
| 295 | { # Network configuration for the instance. |
| 296 | "network": "A String", # The name of the Google Compute Engine |
| 297 | # [VPC network](/compute/docs/networks-and-firewalls#networks) to which the |
| 298 | # instance is connected. |
| 299 | "modes": [ # Internet protocol versions for which the instance has IP addresses |
| 300 | # assigned. For this version, only MODE_IPV4 is supported. |
| 301 | "A String", |
| 302 | ], |
| 303 | "reservedIpRange": "A String", # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the |
| 304 | # [internal IP address |
| 305 | # ranges](https://www.arin.net/knowledge/address_filters.html) that |
| 306 | # identifies the range of IP addresses reserved for this instance. For |
| 307 | # example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap |
| 308 | # with either existing subnets or assigned IP address ranges for other Cloud |
| 309 | # Filestore instances in the selected VPC network. |
| 310 | "ipAddresses": [ # Output only. IPv4 addresses in the format |
| 311 | # {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format |
| 312 | # {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block |
| 313 | # 7}:{block 8}. |
| 314 | "A String", |
| 315 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 316 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 317 | ], |
| 318 | "fileShares": [ # File system shares on the instance. |
| 319 | # For this version, only a single file share is supported. |
| 320 | { # File share configuration for the instance. |
| 321 | "name": "A String", # The name of the file share (must be 16 characters or less). |
| 322 | "capacityGb": "A String", # File share capacity in gigabytes (GB). |
| 323 | # Cloud Filestore defines 1 GB as 1024^3 bytes. |
| 324 | }, |
| 325 | ], |
| 326 | "tier": "A String", # The service tier of the instance. |
| 327 | "description": "A String", # The description of the instance (2048 characters or less). |
| 328 | "etag": "A String", # Server-specified ETag for the instance resource to prevent simultaneous |
| 329 | # updates from overwriting each other. |
| 330 | "labels": { # Resource labels to represent user provided metadata. |
| 331 | "a_key": "A String", |
| 332 | }, |
| 333 | "createTime": "A String", # Output only. The time when the instance was created. |
| 334 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 335 | </div> |
| 336 | |
| 337 | <div class="method"> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 338 | <code class="details" id="list">list(parent, filter=None, pageToken=None, orderBy=None, pageSize=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 339 | <pre>Lists all instances in a project for either a specified location |
| 340 | or for all locations. |
| 341 | |
| 342 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 343 | parent: string, Required. The project and location for which to retrieve instance information, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 344 | in the format projects/{project_id}/locations/{location}. In Cloud |
| 345 | Filestore, locations map to GCP zones, for example **us-west1-b**. To |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 346 | retrieve instance information for all locations, use "-" for the {location} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 347 | value. (required) |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 348 | filter: string, List filter. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 349 | pageToken: string, The next_page_token value to use if there are additional |
| 350 | results to retrieve for this list request. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 351 | orderBy: string, Sort results. Supported values are "name", "name desc" or "" (unsorted). |
| 352 | pageSize: integer, The maximum number of items to return. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 353 | x__xgafv: string, V1 error format. |
| 354 | Allowed values |
| 355 | 1 - v1 error format |
| 356 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 357 | |
| 358 | Returns: |
| 359 | An object of the form: |
| 360 | |
| 361 | { # ListInstancesResponse is the result of ListInstancesRequest. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 362 | "unreachable": [ # Locations that could not be reached. |
| 363 | "A String", |
| 364 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 365 | "instances": [ # A list of instances in the project for the specified location. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 366 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 367 | # If the {location} value in the request is "-", the response contains a list |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 368 | # of instances from all locations. If any location is unreachable, the |
| 369 | # response will only return instances in reachable locations and the |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 370 | # "unreachable" field will be populated with a list of unreachable locations. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 371 | { # A Cloud Filestore instance. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 372 | "state": "A String", # Output only. The instance state. |
| 373 | "statusMessage": "A String", # Output only. Additional information about the instance state, if available. |
| 374 | "name": "A String", # Output only. The resource name of the instance, in the format |
| 375 | # projects/{project_id}/locations/{location_id}/instances/{instance_id}. |
| 376 | "networks": [ # VPC networks to which the instance is connected. |
| 377 | # For this version, only a single network is supported. |
| 378 | { # Network configuration for the instance. |
| 379 | "network": "A String", # The name of the Google Compute Engine |
| 380 | # [VPC network](/compute/docs/networks-and-firewalls#networks) to which the |
| 381 | # instance is connected. |
| 382 | "modes": [ # Internet protocol versions for which the instance has IP addresses |
| 383 | # assigned. For this version, only MODE_IPV4 is supported. |
| 384 | "A String", |
| 385 | ], |
| 386 | "reservedIpRange": "A String", # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the |
| 387 | # [internal IP address |
| 388 | # ranges](https://www.arin.net/knowledge/address_filters.html) that |
| 389 | # identifies the range of IP addresses reserved for this instance. For |
| 390 | # example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap |
| 391 | # with either existing subnets or assigned IP address ranges for other Cloud |
| 392 | # Filestore instances in the selected VPC network. |
| 393 | "ipAddresses": [ # Output only. IPv4 addresses in the format |
| 394 | # {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format |
| 395 | # {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block |
| 396 | # 7}:{block 8}. |
| 397 | "A String", |
| 398 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 399 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 400 | ], |
| 401 | "fileShares": [ # File system shares on the instance. |
| 402 | # For this version, only a single file share is supported. |
| 403 | { # File share configuration for the instance. |
| 404 | "name": "A String", # The name of the file share (must be 16 characters or less). |
| 405 | "capacityGb": "A String", # File share capacity in gigabytes (GB). |
| 406 | # Cloud Filestore defines 1 GB as 1024^3 bytes. |
| 407 | }, |
| 408 | ], |
| 409 | "tier": "A String", # The service tier of the instance. |
| 410 | "description": "A String", # The description of the instance (2048 characters or less). |
| 411 | "etag": "A String", # Server-specified ETag for the instance resource to prevent simultaneous |
| 412 | # updates from overwriting each other. |
| 413 | "labels": { # Resource labels to represent user provided metadata. |
| 414 | "a_key": "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 415 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 416 | "createTime": "A String", # Output only. The time when the instance was created. |
| 417 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 418 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 419 | "nextPageToken": "A String", # The token you can use to retrieve the next page of results. Not returned |
| 420 | # if there are no more results in the list. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 421 | }</pre> |
| 422 | </div> |
| 423 | |
| 424 | <div class="method"> |
| 425 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 426 | <pre>Retrieves the next page of results. |
| 427 | |
| 428 | Args: |
| 429 | previous_request: The request for the previous page. (required) |
| 430 | previous_response: The response from the request for the previous page. (required) |
| 431 | |
| 432 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 433 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 434 | page. Returns None if there are no more items in the collection. |
| 435 | </pre> |
| 436 | </div> |
| 437 | |
| 438 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 439 | <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 440 | <pre>Updates the settings of a specific instance. |
| 441 | |
| 442 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 443 | name: string, Output only. The resource name of the instance, in the format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 444 | projects/{project_id}/locations/{location_id}/instances/{instance_id}. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 445 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 446 | The object takes the form of: |
| 447 | |
| 448 | { # A Cloud Filestore instance. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 449 | "state": "A String", # Output only. The instance state. |
| 450 | "statusMessage": "A String", # Output only. Additional information about the instance state, if available. |
| 451 | "name": "A String", # Output only. The resource name of the instance, in the format |
| 452 | # projects/{project_id}/locations/{location_id}/instances/{instance_id}. |
| 453 | "networks": [ # VPC networks to which the instance is connected. |
| 454 | # For this version, only a single network is supported. |
| 455 | { # Network configuration for the instance. |
| 456 | "network": "A String", # The name of the Google Compute Engine |
| 457 | # [VPC network](/compute/docs/networks-and-firewalls#networks) to which the |
| 458 | # instance is connected. |
| 459 | "modes": [ # Internet protocol versions for which the instance has IP addresses |
| 460 | # assigned. For this version, only MODE_IPV4 is supported. |
| 461 | "A String", |
| 462 | ], |
| 463 | "reservedIpRange": "A String", # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the |
| 464 | # [internal IP address |
| 465 | # ranges](https://www.arin.net/knowledge/address_filters.html) that |
| 466 | # identifies the range of IP addresses reserved for this instance. For |
| 467 | # example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap |
| 468 | # with either existing subnets or assigned IP address ranges for other Cloud |
| 469 | # Filestore instances in the selected VPC network. |
| 470 | "ipAddresses": [ # Output only. IPv4 addresses in the format |
| 471 | # {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format |
| 472 | # {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block |
| 473 | # 7}:{block 8}. |
| 474 | "A String", |
| 475 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 476 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 477 | ], |
| 478 | "fileShares": [ # File system shares on the instance. |
| 479 | # For this version, only a single file share is supported. |
| 480 | { # File share configuration for the instance. |
| 481 | "name": "A String", # The name of the file share (must be 16 characters or less). |
| 482 | "capacityGb": "A String", # File share capacity in gigabytes (GB). |
| 483 | # Cloud Filestore defines 1 GB as 1024^3 bytes. |
| 484 | }, |
| 485 | ], |
| 486 | "tier": "A String", # The service tier of the instance. |
| 487 | "description": "A String", # The description of the instance (2048 characters or less). |
| 488 | "etag": "A String", # Server-specified ETag for the instance resource to prevent simultaneous |
| 489 | # updates from overwriting each other. |
| 490 | "labels": { # Resource labels to represent user provided metadata. |
| 491 | "a_key": "A String", |
| 492 | }, |
| 493 | "createTime": "A String", # Output only. The time when the instance was created. |
| 494 | } |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 495 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 496 | updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 497 | field. The elements of the repeated paths field may only include these |
| 498 | fields: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 499 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 500 | * "description" |
| 501 | * "file_shares" |
| 502 | * "labels" |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 503 | x__xgafv: string, V1 error format. |
| 504 | Allowed values |
| 505 | 1 - v1 error format |
| 506 | 2 - v2 error format |
| 507 | |
| 508 | Returns: |
| 509 | An object of the form: |
| 510 | |
| 511 | { # This resource represents a long-running operation that is the result of a |
| 512 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 513 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 514 | # If `true`, the operation is completed, and either `error` or `response` is |
| 515 | # available. |
| 516 | "response": { # The normal response of the operation in case of success. If the original |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 517 | # method returns no data on success, such as `Delete`, the response is |
| 518 | # `google.protobuf.Empty`. If the original method is standard |
| 519 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 520 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 521 | # is the original method name. For example, if the original method name |
| 522 | # is `TakeSnapshot()`, the inferred response type is |
| 523 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 524 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 525 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 526 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 527 | # originally returns it. If you use the default HTTP mapping, the |
| 528 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 529 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 530 | # different programming environments, including REST APIs and RPC APIs. It is |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 531 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 532 | # three pieces of data: error code, error message, and error details. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 533 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 534 | # You can find out more about this error model and how to work with it in the |
| 535 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 536 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 537 | "message": "A String", # A developer-facing error message, which should be in English. Any |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 538 | # user-facing error message should be localized and sent in the |
| 539 | # google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 540 | "details": [ # A list of messages that carry the error details. There is a common set of |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 541 | # message types for APIs to use. |
| 542 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 543 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 544 | }, |
| 545 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 546 | }, |
| 547 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 548 | # contains progress information and common metadata such as create time. |
| 549 | # Some services might not provide such metadata. Any method that returns a |
| 550 | # long-running operation should document the metadata type, if any. |
| 551 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 552 | }, |
| 553 | }</pre> |
| 554 | </div> |
| 555 | |
| 556 | </body></html> |