Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Nov 18, 2024
1 parent cef93db commit dfd242a
Show file tree
Hide file tree
Showing 1,743 changed files with 75 additions and 353,339 deletions.
Binary file modified AiPlatform/metadata/V1/NotebookExecutionJob.php
Binary file not shown.
40 changes: 40 additions & 0 deletions AiPlatform/src/V1/Client/ScheduleServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,25 @@ public static function pipelineJobName(string $project, string $location, string
]);
}

/**
* Formats a string containing the fully-qualified path to represent a reservation
* resource.
*
* @param string $projectIdOrNumber
* @param string $zone
* @param string $reservationName
*
* @return string The formatted reservation resource.
*/
public static function reservationName(string $projectIdOrNumber, string $zone, string $reservationName): string
{
return self::getPathTemplate('reservation')->render([
'project_id_or_number' => $projectIdOrNumber,
'zone' => $zone,
'reservation_name' => $reservationName,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a schedule
* resource.
Expand All @@ -406,6 +425,25 @@ public static function scheduleName(string $project, string $location, string $s
]);
}

/**
* Formats a string containing the fully-qualified path to represent a subnetwork
* resource.
*
* @param string $project
* @param string $region
* @param string $subnetwork
*
* @return string The formatted subnetwork resource.
*/
public static function subnetworkName(string $project, string $region, string $subnetwork): string
{
return self::getPathTemplate('subnetwork')->render([
'project' => $project,
'region' => $region,
'subnetwork' => $subnetwork,
]);
}

/**
* Parses a formatted name string and returns an associative array of the components in the name.
* The following name formats are supported:
Expand All @@ -420,7 +458,9 @@ public static function scheduleName(string $project, string $location, string $s
* - notebookExecutionJob: projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}
* - notebookRuntimeTemplate: projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}
* - pipelineJob: projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}
* - reservation: projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}
* - schedule: projects/{project}/locations/{location}/schedules/{schedule}
* - subnetwork: projects/{project}/regions/{region}/subnetworks/{subnetwork}
*
* The optional $template argument can be supplied to specify a particular pattern,
* and must match one of the templates listed above. If no $template argument is
Expand Down
33 changes: 33 additions & 0 deletions AiPlatform/src/V1/NotebookExecutionJob.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@
'notebookExecutionJob' => 'projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}',
'notebookRuntimeTemplate' => 'projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}',
'pipelineJob' => 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}',
'reservation' => 'projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}',
'schedule' => 'projects/{project}/locations/{location}/schedules/{schedule}',
'subnetwork' => 'projects/{project}/regions/{region}/subnetworks/{subnetwork}',
],
],
],
Expand Down
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Loading

0 comments on commit dfd242a

Please sign in to comment.