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 9e62246 commit 21a2ec8
Show file tree
Hide file tree
Showing 284 changed files with 166 additions and 63,659 deletions.
Binary file modified Spanner/metadata/V1/Spanner.php
Binary file not shown.
62 changes: 62 additions & 0 deletions Spanner/src/V1/ExecuteBatchDmlRequest.php

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

62 changes: 62 additions & 0 deletions Spanner/src/V1/ExecuteSqlRequest.php

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

42 changes: 42 additions & 0 deletions Spanner/src/V1/Gapic/SpannerGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,16 @@ public function deleteSession($name, array $optionalArgs = [])
*
* @type RequestOptions $requestOptions
* Common options for this request.
* @type bool $lastStatements
* Optional. If set to true, this request marks the end of the transaction.
* The transaction should be committed or aborted after these statements
* execute, and attempts to execute any other requests against this
* transaction (including reads and queries) will be rejected.
*
* Setting this option may cause some error reporting to be deferred until
* commit time (e.g. validation of unique constraints). Given this, successful
* execution of statements should not be assumed until a subsequent Commit
* call completes successfully.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand Down Expand Up @@ -908,6 +918,10 @@ public function executeBatchDml(
$request->setRequestOptions($optionalArgs['requestOptions']);
}

if (isset($optionalArgs['lastStatements'])) {
$request->setLastStatements($optionalArgs['lastStatements']);
}

$requestParams = new RequestParamsHeaderDescriptor(
$requestParamHeaders
);
Expand Down Expand Up @@ -1032,6 +1046,16 @@ public function executeBatchDml(
*
* If the field is set to `true` but the request does not set
* `partition_token`, the API returns an `INVALID_ARGUMENT` error.
* @type bool $lastStatement
* Optional. If set to true, this statement marks the end of the transaction.
* The transaction should be committed or aborted after this statement
* executes, and attempts to execute any other requests against this
* transaction (including reads and queries) will be rejected.
*
* For DML statements, setting this option may cause some error reporting to
* be deferred until commit time (e.g. validation of unique constraints).
* Given this, successful execution of a DML statement should not be assumed
* until a subsequent Commit call completes successfully.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand Down Expand Up @@ -1095,6 +1119,10 @@ public function executeSql($session, $sql, array $optionalArgs = [])
$request->setDataBoostEnabled($optionalArgs['dataBoostEnabled']);
}

if (isset($optionalArgs['lastStatement'])) {
$request->setLastStatement($optionalArgs['lastStatement']);
}

$requestParams = new RequestParamsHeaderDescriptor(
$requestParamHeaders
);
Expand Down Expand Up @@ -1215,6 +1243,16 @@ public function executeSql($session, $sql, array $optionalArgs = [])
*
* If the field is set to `true` but the request does not set
* `partition_token`, the API returns an `INVALID_ARGUMENT` error.
* @type bool $lastStatement
* Optional. If set to true, this statement marks the end of the transaction.
* The transaction should be committed or aborted after this statement
* executes, and attempts to execute any other requests against this
* transaction (including reads and queries) will be rejected.
*
* For DML statements, setting this option may cause some error reporting to
* be deferred until commit time (e.g. validation of unique constraints).
* Given this, successful execution of a DML statement should not be assumed
* until a subsequent Commit call completes successfully.
* @type int $timeoutMillis
* Timeout to use for this call.
* }
Expand Down Expand Up @@ -1279,6 +1317,10 @@ public function executeStreamingSql(
$request->setDataBoostEnabled($optionalArgs['dataBoostEnabled']);
}

if (isset($optionalArgs['lastStatement'])) {
$request->setLastStatement($optionalArgs['lastStatement']);
}

$requestParams = new RequestParamsHeaderDescriptor(
$requestParamHeaders
);
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 21a2ec8

Please sign in to comment.