Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion SecureSourceManager/metadata/V1/SecureSourceManager.php

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* Batch creates pull request comments. This function is used to create
* multiple PullRequestComments for code review. There needs to be exactly one
* PullRequestComment of type Review, and at most 100 PullRequestComments of
* type Code per request. The Postition of the code comments must be unique
* type Code per request. The Position of the code comments must be unique
* within the request.
*
* @param string $formattedParent The pull request in which to create the pull request comments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@

/**
* Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in
the [ListLocationsRequest.name] field:

* **Global locations**: If `name` is empty, the method lists the
public locations available to all projects. * **Project-specific
locations**: If `name` follows the format
`projects/{project}`, the method lists locations visible to that
specific project. This includes public, private, or other
project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is
passed as the `name` field. For direct service calls, the resource
name is
incorporated into the request path based on the specific service
implementation and version.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use Google\Cloud\SecureSourceManager\V1\BranchRule;
use Google\Cloud\SecureSourceManager\V1\Client\SecureSourceManagerClient;
use Google\Cloud\SecureSourceManager\V1\UpdateBranchRuleRequest;
use Google\Protobuf\FieldMask;
use Google\Rpc\Status;

/**
Expand All @@ -47,10 +46,8 @@ function update_branch_rule_sample(): void

// Prepare the request message.
$branchRule = new BranchRule();
$updateMask = new FieldMask();
$request = (new UpdateBranchRuleRequest())
->setBranchRule($branchRule)
->setUpdateMask($updateMask);
->setBranchRule($branchRule);

// Call the API and handle any network failures.
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use Google\Cloud\SecureSourceManager\V1\Client\SecureSourceManagerClient;
use Google\Cloud\SecureSourceManager\V1\Hook;
use Google\Cloud\SecureSourceManager\V1\UpdateHookRequest;
use Google\Protobuf\FieldMask;
use Google\Rpc\Status;

/**
Expand All @@ -42,11 +41,9 @@ function update_hook_sample(string $hookTargetUri): void
$secureSourceManagerClient = new SecureSourceManagerClient();

// Prepare the request message.
$updateMask = new FieldMask();
$hook = (new Hook())
->setTargetUri($hookTargetUri);
$request = (new UpdateHookRequest())
->setUpdateMask($updateMask)
->setHook($hook);

// Call the API and handle any network failures.
Expand Down
58 changes: 48 additions & 10 deletions SecureSourceManager/src/V1/BranchRule.php

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 @@ -663,7 +663,7 @@ public function __call($method, $args)
* Batch creates pull request comments. This function is used to create
* multiple PullRequestComments for code review. There needs to be exactly one
* PullRequestComment of type Review, and at most 100 PullRequestComments of
* type Code per request. The Postition of the code comments must be unique
* type Code per request. The Position of the code comments must be unique
* within the request.
*
* The async variant is
Expand Down Expand Up @@ -2188,6 +2188,22 @@ public function getLocation(GetLocationRequest $request, array $callOptions = []

/**
* Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in
the [ListLocationsRequest.name] field:

* **Global locations**: If `name` is empty, the method lists the
public locations available to all projects. * **Project-specific
locations**: If `name` follows the format
`projects/{project}`, the method lists locations visible to that
specific project. This includes public, private, or other
project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is
passed as the `name` field. For direct service calls, the resource
name is
incorporated into the request path based on the specific service
implementation and version.
*
* The async variant is {@see SecureSourceManagerClient::listLocationsAsync()} .
*
Expand Down
6 changes: 3 additions & 3 deletions SecureSourceManager/src/V1/CreateInstanceRequest.php

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

40 changes: 37 additions & 3 deletions SecureSourceManager/src/V1/DeleteInstanceRequest.php

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

6 changes: 3 additions & 3 deletions SecureSourceManager/src/V1/Hook.php

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

Loading
Loading