Skip to content

Commit 53fc845

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
docs: Add run custom job on persistent resource sample.
PiperOrigin-RevId: 621940735
1 parent 137b5e1 commit 53fc845

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samples/model-builder/create_custom_job_on_persistent_resource_sample.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from typing import Optional
1516

1617
from google.cloud import aiplatform
1718

@@ -24,7 +25,7 @@ def create_custom_job_on_persistent_resource_sample(
2425
display_name: str,
2526
container_uri: str,
2627
persistent_resource_id: str,
27-
service_account: str,
28+
service_account: Optional[str] = None,
2829
) -> None:
2930
aiplatform.init(
3031
project=project, location=location, staging_bucket=staging_bucket

0 commit comments

Comments
 (0)