| 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="gkehub_v1alpha.html">GKE Hub API</a> . <a href="gkehub_v1alpha.projects.html">projects</a> . <a href="gkehub_v1alpha.projects.locations.html">locations</a> . <a href="gkehub_v1alpha.projects.locations.namespaces.html">namespaces</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="gkehub_v1alpha.projects.locations.namespaces.rbacrolebindings.html">rbacrolebindings()</a></code> |
| 79 |
</p> |
| 80 |
<p class="firstline">Returns the rbacrolebindings 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="#create">create(parent, body=None, namespaceId=None, x__xgafv=None)</a></code></p> |
| 87 |
<p class="firstline">Creates a fleet namespace.</p> |
| 88 |
<p class="toc_element"> |
| 89 |
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 90 |
<p class="firstline">Deletes a fleet namespace.</p> |
| 91 |
<p class="toc_element"> |
| 92 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 93 |
<p class="firstline">Returns the details of a fleet namespace.</p> |
| 94 |
<p class="toc_element"> |
| 95 |
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 96 |
<p class="firstline">Lists fleet namespaces.</p> |
| 97 |
<p class="toc_element"> |
| 98 |
<code><a href="#list_next">list_next()</a></code></p> |
| 99 |
<p class="firstline">Retrieves the next page of results.</p> |
| 100 |
<p class="toc_element"> |
| 101 |
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| 102 |
<p class="firstline">Updates a fleet namespace.</p> |
| 103 |
<h3>Method Details</h3> |
| 104 |
<div class="method"> |
| 105 |
<code class="details" id="close">close()</code> |
| 106 |
<pre>Close httplib2 connections.</pre> |
| 107 |
</div> |
| 108 |
|
| 109 |
<div class="method"> |
| 110 |
<code class="details" id="create">create(parent, body=None, namespaceId=None, x__xgafv=None)</code> |
| 111 |
<pre>Creates a fleet namespace. |
| 112 |
|
| 113 |
Args: |
| 114 |
parent: string, Required. The parent (project and location) where the Namespace will be created. Specified in the format `projects/*/locations/*`. (required) |
| 115 |
body: object, The request body. |
| 116 |
The object takes the form of: |
| 117 |
|
| 118 |
{ # Namespace represents a namespace across the Fleet |
| 119 |
"createTime": "A String", # Output only. When the namespace was created. |
| 120 |
"deleteTime": "A String", # Output only. When the namespace was deleted. |
| 121 |
"labels": { # Optional. Labels for this Namespace. |
| 122 |
"a_key": "A String", |
| 123 |
}, |
| 124 |
"name": "A String", # The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}` |
| 125 |
"namespaceLabels": { # Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. |
| 126 |
"a_key": "A String", |
| 127 |
}, |
| 128 |
"scope": "A String", # Required. Scope associated with the namespace |
| 129 |
"state": { # NamespaceLifecycleState describes the state of a Namespace resource. # Output only. State of the namespace resource. |
| 130 |
"code": "A String", # Output only. The current state of the Namespace resource. |
| 131 |
}, |
| 132 |
"uid": "A String", # Output only. Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid. |
| 133 |
"updateTime": "A String", # Output only. When the namespace was last updated. |
| 134 |
} |
| 135 |
|
| 136 |
namespaceId: string, Required. Client chosen ID for the Namespace. `namespace_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters. |
| 137 |
x__xgafv: string, V1 error format. |
| 138 |
Allowed values |
| 139 |
1 - v1 error format |
| 140 |
2 - v2 error format |
| 141 |
|
| 142 |
Returns: |
| 143 |
An object of the form: |
| 144 |
|
| 145 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 146 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 147 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 148 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 149 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 150 |
{ |
| 151 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 152 |
}, |
| 153 |
], |
| 154 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 155 |
}, |
| 156 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 157 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 158 |
}, |
| 159 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 160 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 161 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 162 |
}, |
| 163 |
}</pre> |
| 164 |
</div> |
| 165 |
|
| 166 |
<div class="method"> |
| 167 |
<code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 168 |
<pre>Deletes a fleet namespace. |
| 169 |
|
| 170 |
Args: |
| 171 |
name: string, Required. The Namespace resource name in the format `projects/*/locations/*/namespaces/*`. (required) |
| 172 |
x__xgafv: string, V1 error format. |
| 173 |
Allowed values |
| 174 |
1 - v1 error format |
| 175 |
2 - v2 error format |
| 176 |
|
| 177 |
Returns: |
| 178 |
An object of the form: |
| 179 |
|
| 180 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 181 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 182 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 183 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 184 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 185 |
{ |
| 186 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 187 |
}, |
| 188 |
], |
| 189 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 190 |
}, |
| 191 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 192 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 193 |
}, |
| 194 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 195 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 196 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 197 |
}, |
| 198 |
}</pre> |
| 199 |
</div> |
| 200 |
|
| 201 |
<div class="method"> |
| 202 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 203 |
<pre>Returns the details of a fleet namespace. |
| 204 |
|
| 205 |
Args: |
| 206 |
name: string, Required. The Namespace resource name in the format `projects/*/locations/*/namespaces/*`. (required) |
| 207 |
x__xgafv: string, V1 error format. |
| 208 |
Allowed values |
| 209 |
1 - v1 error format |
| 210 |
2 - v2 error format |
| 211 |
|
| 212 |
Returns: |
| 213 |
An object of the form: |
| 214 |
|
| 215 |
{ # Namespace represents a namespace across the Fleet |
| 216 |
"createTime": "A String", # Output only. When the namespace was created. |
| 217 |
"deleteTime": "A String", # Output only. When the namespace was deleted. |
| 218 |
"labels": { # Optional. Labels for this Namespace. |
| 219 |
"a_key": "A String", |
| 220 |
}, |
| 221 |
"name": "A String", # The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}` |
| 222 |
"namespaceLabels": { # Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. |
| 223 |
"a_key": "A String", |
| 224 |
}, |
| 225 |
"scope": "A String", # Required. Scope associated with the namespace |
| 226 |
"state": { # NamespaceLifecycleState describes the state of a Namespace resource. # Output only. State of the namespace resource. |
| 227 |
"code": "A String", # Output only. The current state of the Namespace resource. |
| 228 |
}, |
| 229 |
"uid": "A String", # Output only. Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid. |
| 230 |
"updateTime": "A String", # Output only. When the namespace was last updated. |
| 231 |
}</pre> |
| 232 |
</div> |
| 233 |
|
| 234 |
<div class="method"> |
| 235 |
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 236 |
<pre>Lists fleet namespaces. |
| 237 |
|
| 238 |
Args: |
| 239 |
parent: string, Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*/locations/*`. (required) |
| 240 |
pageSize: integer, Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned. |
| 241 |
pageToken: string, Optional. Token returned by previous call to `ListFeatures` which specifies the position in the list from where to continue listing the resources. |
| 242 |
x__xgafv: string, V1 error format. |
| 243 |
Allowed values |
| 244 |
1 - v1 error format |
| 245 |
2 - v2 error format |
| 246 |
|
| 247 |
Returns: |
| 248 |
An object of the form: |
| 249 |
|
| 250 |
{ # List of fleet namespaces. |
| 251 |
"namespaces": [ # The list of fleet namespaces |
| 252 |
{ # Namespace represents a namespace across the Fleet |
| 253 |
"createTime": "A String", # Output only. When the namespace was created. |
| 254 |
"deleteTime": "A String", # Output only. When the namespace was deleted. |
| 255 |
"labels": { # Optional. Labels for this Namespace. |
| 256 |
"a_key": "A String", |
| 257 |
}, |
| 258 |
"name": "A String", # The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}` |
| 259 |
"namespaceLabels": { # Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. |
| 260 |
"a_key": "A String", |
| 261 |
}, |
| 262 |
"scope": "A String", # Required. Scope associated with the namespace |
| 263 |
"state": { # NamespaceLifecycleState describes the state of a Namespace resource. # Output only. State of the namespace resource. |
| 264 |
"code": "A String", # Output only. The current state of the Namespace resource. |
| 265 |
}, |
| 266 |
"uid": "A String", # Output only. Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid. |
| 267 |
"updateTime": "A String", # Output only. When the namespace was last updated. |
| 268 |
}, |
| 269 |
], |
| 270 |
"nextPageToken": "A String", # A token to request the next page of resources from the `ListNamespaces` method. The value of an empty string means that there are no more resources to return. |
| 271 |
}</pre> |
| 272 |
</div> |
| 273 |
|
| 274 |
<div class="method"> |
| 275 |
<code class="details" id="list_next">list_next()</code> |
| 276 |
<pre>Retrieves the next page of results. |
| 277 |
|
| 278 |
Args: |
| 279 |
previous_request: The request for the previous page. (required) |
| 280 |
previous_response: The response from the request for the previous page. (required) |
| 281 |
|
| 282 |
Returns: |
| 283 |
A request object that you can call 'execute()' on to request the next |
| 284 |
page. Returns None if there are no more items in the collection. |
| 285 |
</pre> |
| 286 |
</div> |
| 287 |
|
| 288 |
<div class="method"> |
| 289 |
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| 290 |
<pre>Updates a fleet namespace. |
| 291 |
|
| 292 |
Args: |
| 293 |
name: string, The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}` (required) |
| 294 |
body: object, The request body. |
| 295 |
The object takes the form of: |
| 296 |
|
| 297 |
{ # Namespace represents a namespace across the Fleet |
| 298 |
"createTime": "A String", # Output only. When the namespace was created. |
| 299 |
"deleteTime": "A String", # Output only. When the namespace was deleted. |
| 300 |
"labels": { # Optional. Labels for this Namespace. |
| 301 |
"a_key": "A String", |
| 302 |
}, |
| 303 |
"name": "A String", # The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}` |
| 304 |
"namespaceLabels": { # Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. |
| 305 |
"a_key": "A String", |
| 306 |
}, |
| 307 |
"scope": "A String", # Required. Scope associated with the namespace |
| 308 |
"state": { # NamespaceLifecycleState describes the state of a Namespace resource. # Output only. State of the namespace resource. |
| 309 |
"code": "A String", # Output only. The current state of the Namespace resource. |
| 310 |
}, |
| 311 |
"uid": "A String", # Output only. Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid. |
| 312 |
"updateTime": "A String", # Output only. When the namespace was last updated. |
| 313 |
} |
| 314 |
|
| 315 |
updateMask: string, Required. The fields to be updated. |
| 316 |
x__xgafv: string, V1 error format. |
| 317 |
Allowed values |
| 318 |
1 - v1 error format |
| 319 |
2 - v2 error format |
| 320 |
|
| 321 |
Returns: |
| 322 |
An object of the form: |
| 323 |
|
| 324 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 325 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 326 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 327 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 328 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 329 |
{ |
| 330 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 331 |
}, |
| 332 |
], |
| 333 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 334 |
}, |
| 335 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 336 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 337 |
}, |
| 338 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 339 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 340 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 341 |
}, |
| 342 |
}</pre> |
| 343 |
</div> |
| 344 |
|
| 345 |
</body></html> |