Skip to content

Commit 3c7ba89

Browse files
feat: [Dataform] Add Developer Connect integration for Git repository authentication (#9303)
* feat: Add Developer Connect integration for Git repository authentication feat: Add effective default branch field for repositories docs: Clarify field usage guidelines and default values in API reference documentation PiperOrigin-RevId: 939094745 Source-Link: googleapis/googleapis@1a9328c Source-Link: googleapis/googleapis-gen@0211e8b Copy-Tag: eyJwIjoiRGF0YWZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjAyMTFlOGJlZjNhNGUyNGYzZjMxMTExN2RiMzgxNzUwNGY2ZmQ0NTkifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Brent Shaffer <betterbrent@google.com>
1 parent 824bd1e commit 3c7ba89

16 files changed

Lines changed: 252 additions & 119 deletions

Dataform/metadata/V1/Dataform.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dataform/samples/V1/DataformClient/list_locations.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
* Lists information about the supported locations for this service.
3434
*
3535
* This method lists locations based on the resource scope provided in
36-
* the [ListLocationsRequest.name] field:
37-
*
38-
* * **Global locations**: If `name` is empty, the method lists the
36+
* the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: *
37+
* **Global locations**: If `name` is empty, the method lists the
3938
* public locations available to all projects. * **Project-specific
4039
* locations**: If `name` follows the format
4140
* `projects/{project}`, the method lists locations visible to that

Dataform/samples/V1/DataformClient/query_folder_contents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/**
3333
* Returns the contents of a given Folder.
3434
*
35-
* @param string $formattedFolder Name of the folder whose contents to list.
35+
* @param string $formattedFolder Resource name of the Folder to list contents for.
3636
* Format: projects/&#42;/locations/&#42;/folders/*
3737
* Please see {@see DataformClient::folderName()} for help formatting this field.
3838
*/

Dataform/samples/V1/DataformClient/query_team_folder_contents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/**
3333
* Returns the contents of a given TeamFolder.
3434
*
35-
* @param string $formattedTeamFolder Name of the team_folder whose contents to list.
35+
* @param string $formattedTeamFolder Resource name of the TeamFolder to list contents for.
3636
* Format: `projects/&#42;/locations/&#42;/teamFolders/*`. Please see
3737
* {@see DataformClient::teamFolderName()} for help formatting this field.
3838
*/

Dataform/samples/V1/DataformClient/query_user_root_contents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* The root folder contains all resources that are created by the user and not
3535
* contained in any other folder.
3636
*
37-
* @param string $formattedLocation Location of the user root folder whose contents to list.
37+
* @param string $formattedLocation Location of the user root folder to list contents for.
3838
* Format: projects/&#42;/locations/*
3939
* Please see {@see DataformClient::locationName()} for help formatting this field.
4040
*/

Dataform/src/V1/Client/DataformClient.php

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,31 @@ public static function folderName(string $project, string $location, string $fol
452452
]);
453453
}
454454

455+
/**
456+
* Formats a string containing the fully-qualified path to represent a
457+
* git_repository_link resource.
458+
*
459+
* @param string $project
460+
* @param string $location
461+
* @param string $connection
462+
* @param string $gitRepositoryLink
463+
*
464+
* @return string The formatted git_repository_link resource.
465+
*/
466+
public static function gitRepositoryLinkName(
467+
string $project,
468+
string $location,
469+
string $connection,
470+
string $gitRepositoryLink
471+
): string {
472+
return self::getPathTemplate('gitRepositoryLink')->render([
473+
'project' => $project,
474+
'location' => $location,
475+
'connection' => $connection,
476+
'git_repository_link' => $gitRepositoryLink,
477+
]);
478+
}
479+
455480
/**
456481
* Formats a string containing the fully-qualified path to represent a location
457482
* resource.
@@ -657,6 +682,7 @@ public static function workspaceName(
657682
* - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
658683
* - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
659684
* - folder: projects/{project}/locations/{location}/folders/{folder}
685+
* - gitRepositoryLink: projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}
660686
* - location: projects/{project}/locations/{location}
661687
* - notebookRuntimeTemplate: projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}
662688
* - releaseConfig: projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}
@@ -2899,9 +2925,8 @@ public function getLocation(GetLocationRequest $request, array $callOptions = []
28992925
* Lists information about the supported locations for this service.
29002926
*
29012927
* This method lists locations based on the resource scope provided in
2902-
* the [ListLocationsRequest.name] field:
2903-
*
2904-
* * **Global locations**: If `name` is empty, the method lists the
2928+
* the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: *
2929+
* **Global locations**: If `name` is empty, the method lists the
29052930
* public locations available to all projects. * **Project-specific
29062931
* locations**: If `name` follows the format
29072932
* `projects/{project}`, the method lists locations visible to that

Dataform/src/V1/DirectoryContentsView.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dataform/src/V1/DirectoryEntry.php

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dataform/src/V1/Folder.php

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dataform/src/V1/QueryFolderContentsRequest.php

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)