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 22, 2024
1 parent e16a3eb commit 6e211c5
Show file tree
Hide file tree
Showing 1,881 changed files with 1,571 additions and 355,653 deletions.
File renamed without changes.
Binary file modified AiPlatform/metadata/V1/Io.php
Binary file not shown.
Binary file modified AiPlatform/metadata/V1/Tool.php
Binary file not shown.
File renamed without changes.
File renamed without changes.

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.

File renamed without changes.
20 changes: 20 additions & 0 deletions AiPlatform/src/V1/Client/LlmUtilityServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,33 @@ public static function projectLocationPublisherModelName(
]);
}

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

/**
* Parses a formatted name string and returns an associative array of the components in the name.
* The following name formats are supported:
* Template: Pattern
* - endpoint: projects/{project}/locations/{location}/endpoints/{endpoint}
* - projectLocationEndpoint: projects/{project}/locations/{location}/endpoints/{endpoint}
* - projectLocationPublisherModel: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
* - ragCorpus: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
*
* 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
20 changes: 20 additions & 0 deletions AiPlatform/src/V1/Client/PredictionServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,33 @@ public static function projectLocationPublisherModelName(
]);
}

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

/**
* Parses a formatted name string and returns an associative array of the components in the name.
* The following name formats are supported:
* Template: Pattern
* - endpoint: projects/{project}/locations/{location}/endpoints/{endpoint}
* - projectLocationEndpoint: projects/{project}/locations/{location}/endpoints/{endpoint}
* - projectLocationPublisherModel: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
* - ragCorpus: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
*
* 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
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ final class VertexRagDataServiceClient
private const CODEGEN_NAME = 'gapic';

/** The default scopes required by the service. */
public static $serviceScopes = [
'https://www.googleapis.com/auth/cloud-platform',
];
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];

private $operationsClient;

Expand Down Expand Up @@ -159,7 +157,9 @@ public function getOperationsClient()
*/
public function resumeOperation($operationName, $methodName = null)
{
$options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : [];
$options = isset($this->descriptors[$methodName]['longRunning'])
? $this->descriptors[$methodName]['longRunning']
: [];
$operation = new OperationResponse($operationName, $this->getOperationsClient(), $options);
$operation->reload();
return $operation;
Expand Down Expand Up @@ -269,8 +269,12 @@ public static function projectLocationEndpointName(string $project, string $loca
*
* @return string The formatted project_location_publisher_model resource.
*/
public static function projectLocationPublisherModelName(string $project, string $location, string $publisher, string $model): string
{
public static function projectLocationPublisherModelName(
string $project,
string $location,
string $publisher,
string $model
): string {
return self::getPathTemplate('projectLocationPublisherModel')->render([
'project' => $project,
'location' => $location,
Expand Down Expand Up @@ -838,8 +842,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
*
* @throws ApiException Thrown if the API call fails.
*/
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
{
public function testIamPermissions(
TestIamPermissionsRequest $request,
array $callOptions = []
): TestIamPermissionsResponse {
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ final class VertexRagServiceClient
private const CODEGEN_NAME = 'gapic';

/** The default scopes required by the service. */
public static $serviceScopes = [
'https://www.googleapis.com/auth/cloud-platform',
];
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];

private static function getClientDefaults()
{
Expand Down Expand Up @@ -300,8 +298,10 @@ public function augmentPrompt(AugmentPromptRequest $request, array $callOptions
*
* @throws ApiException Thrown if the API call fails.
*/
public function corroborateContent(CorroborateContentRequest $request, array $callOptions = []): CorroborateContentResponse
{
public function corroborateContent(
CorroborateContentRequest $request,
array $callOptions = []
): CorroborateContentResponse {
return $this->startApiCall('CorroborateContent', $request, $callOptions)->wait();
}

Expand All @@ -326,8 +326,10 @@ public function corroborateContent(CorroborateContentRequest $request, array $ca
*
* @throws ApiException Thrown if the API call fails.
*/
public function retrieveContexts(RetrieveContextsRequest $request, array $callOptions = []): RetrieveContextsResponse
{
public function retrieveContexts(
RetrieveContextsRequest $request,
array $callOptions = []
): RetrieveContextsResponse {
return $this->startApiCall('RetrieveContexts', $request, $callOptions)->wait();
}

Expand Down Expand Up @@ -467,8 +469,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
*
* @throws ApiException Thrown if the API call fails.
*/
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
{
public function testIamPermissions(
TestIamPermissionsRequest $request,
array $callOptions = []
): TestIamPermissionsResponse {
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
}
}
File renamed without changes.

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.

File renamed without changes.
File renamed without changes.
File renamed without changes.

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

File renamed without changes.
File renamed without changes.

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.

File renamed without changes.

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

File renamed without changes.

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

File renamed without changes.

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

File renamed without changes.

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

File renamed without changes.
File renamed without changes.

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

File renamed without changes.

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.

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

36 changes: 36 additions & 0 deletions AiPlatform/src/V1/Retrieval.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.

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

File renamed without changes.

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

File renamed without changes.

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.

File renamed without changes.

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

Loading

0 comments on commit 6e211c5

Please sign in to comment.