11# -*- coding: utf-8 -*-
22
3- # Copyright 2021 Google LLC
3+ # Copyright 2023 Google LLC
44#
55# Licensed under the Apache License, Version 2.0 (the "License");
66# you may not use this file except in compliance with the License.
@@ -99,13 +99,13 @@ def create(
9999 display_name : Optional [str ] = None ,
100100 description : Optional [str ] = None ,
101101 labels : Optional [Dict [str , str ]] = None ,
102- is_default = False ,
103102 project : Optional [str ] = None ,
104103 location : Optional [str ] = None ,
105104 credentials : Optional [auth_credentials .Credentials ] = None ,
106105 request_metadata : Optional [Sequence [Tuple [str , str ]]] = (),
107106 encryption_spec_key_name : Optional [str ] = None ,
108107 create_request_timeout : Optional [float ] = None ,
108+ is_default : bool = False ,
109109 ) -> "Tensorboard" :
110110 """Creates a new tensorboard.
111111
@@ -137,10 +137,6 @@ def create(
137137 See https://goo.gl/xmQnxf for more information and examples of labels.
138138 System reserved label keys are prefixed with "aiplatform.googleapis.com/"
139139 and are immutable.
140- is_default (bool):
141- If the TensorBoard instance is default or not. The default
142- TensorBoard instance will be used by Experiment/ExperimentRun
143- when needed if no TensorBoard instance is explicitly specified.
144140 project (str):
145141 Optional. Project to upload this model to. Overrides project set in
146142 aiplatform.init.
@@ -165,6 +161,10 @@ def create(
165161 Overrides encryption_spec_key_name set in aiplatform.init.
166162 create_request_timeout (float):
167163 Optional. The timeout for the create request in seconds.
164+ is_default (bool):
165+ If the TensorBoard instance is default or not. The default
166+ TensorBoard instance will be used by Experiment/ExperimentRun
167+ when needed if no TensorBoard instance is explicitly specified.
168168
169169 Returns:
170170 tensorboard (Tensorboard):
@@ -218,9 +218,9 @@ def update(
218218 display_name : Optional [str ] = None ,
219219 description : Optional [str ] = None ,
220220 labels : Optional [Dict [str , str ]] = None ,
221- is_default : Optional [bool ] = None ,
222221 request_metadata : Optional [Sequence [Tuple [str , str ]]] = (),
223222 encryption_spec_key_name : Optional [str ] = None ,
223+ is_default : Optional [bool ] = None ,
224224 ) -> "Tensorboard" :
225225 """Updates an existing tensorboard.
226226
@@ -249,11 +249,6 @@ def update(
249249 See https://goo.gl/xmQnxf for more information and examples of labels.
250250 System reserved label keys are prefixed with "aiplatform.googleapis.com/"
251251 and are immutable.
252- is_default (bool):
253- Optional. If the TensorBoard instance is default or not.
254- The default TensorBoard instance will be used by
255- Experiment/ExperimentRun when needed if no TensorBoard instance
256- is explicitly specified.
257252 request_metadata (Sequence[Tuple[str, str]]):
258253 Optional. Strings which should be sent along with the request as metadata.
259254 encryption_spec_key_name (str):
@@ -267,6 +262,11 @@ def update(
267262 If set, this Tensorboard and all sub-resources of this Tensorboard will be secured by this key.
268263
269264 Overrides encryption_spec_key_name set in aiplatform.init.
265+ is_default (bool):
266+ Optional. If the TensorBoard instance is default or not.
267+ The default TensorBoard instance will be used by
268+ Experiment/ExperimentRun when needed if no TensorBoard instance
269+ is explicitly specified.
270270
271271 Returns:
272272 Tensorboard: The managed tensorboard resource.
0 commit comments