Skip to content

Commit 7b27dbe

Browse files
1 parent 8b0ffa7 commit 7b27dbe

File tree

134 files changed

+373
-22860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+373
-22860
lines changed
1.16 KB
Binary file not shown.
File renamed without changes.

owl-bot-staging/Config/v1/samples/V1/ConfigClient/update_auto_migration_config.php renamed to Config/samples/V1/ConfigClient/update_auto_migration_config.php

File renamed without changes.
File renamed without changes.

β€ŽConfig/src/V1/Client/ConfigClient.phpβ€Ž

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
use Google\ApiCore\Transport\TransportInterface;
3636
use Google\ApiCore\ValidationException;
3737
use Google\Auth\FetchAuthTokenInterface;
38+
use Google\Cloud\Config\V1\AutoMigrationConfig;
3839
use Google\Cloud\Config\V1\CreateDeploymentRequest;
3940
use Google\Cloud\Config\V1\CreatePreviewRequest;
4041
use Google\Cloud\Config\V1\DeleteDeploymentRequest;
@@ -46,6 +47,7 @@
4647
use Google\Cloud\Config\V1\ExportPreviewResultRequest;
4748
use Google\Cloud\Config\V1\ExportPreviewResultResponse;
4849
use Google\Cloud\Config\V1\ExportRevisionStatefileRequest;
50+
use Google\Cloud\Config\V1\GetAutoMigrationConfigRequest;
4951
use Google\Cloud\Config\V1\GetDeploymentRequest;
5052
use Google\Cloud\Config\V1\GetPreviewRequest;
5153
use Google\Cloud\Config\V1\GetResourceChangeRequest;
@@ -71,6 +73,7 @@
7173
use Google\Cloud\Config\V1\Statefile;
7274
use Google\Cloud\Config\V1\TerraformVersion;
7375
use Google\Cloud\Config\V1\UnlockDeploymentRequest;
76+
use Google\Cloud\Config\V1\UpdateAutoMigrationConfigRequest;
7477
use Google\Cloud\Config\V1\UpdateDeploymentRequest;
7578
use Google\Cloud\Iam\V1\GetIamPolicyRequest;
7679
use Google\Cloud\Iam\V1\Policy;
@@ -106,6 +109,7 @@
106109
* @method PromiseInterface<LockInfo> exportLockInfoAsync(ExportLockInfoRequest $request, array $optionalArgs = [])
107110
* @method PromiseInterface<ExportPreviewResultResponse> exportPreviewResultAsync(ExportPreviewResultRequest $request, array $optionalArgs = [])
108111
* @method PromiseInterface<Statefile> exportRevisionStatefileAsync(ExportRevisionStatefileRequest $request, array $optionalArgs = [])
112+
* @method PromiseInterface<AutoMigrationConfig> getAutoMigrationConfigAsync(GetAutoMigrationConfigRequest $request, array $optionalArgs = [])
109113
* @method PromiseInterface<Deployment> getDeploymentAsync(GetDeploymentRequest $request, array $optionalArgs = [])
110114
* @method PromiseInterface<Preview> getPreviewAsync(GetPreviewRequest $request, array $optionalArgs = [])
111115
* @method PromiseInterface<Resource> getResourceAsync(GetResourceRequest $request, array $optionalArgs = [])
@@ -123,6 +127,7 @@
123127
* @method PromiseInterface<PagedListResponse> listTerraformVersionsAsync(ListTerraformVersionsRequest $request, array $optionalArgs = [])
124128
* @method PromiseInterface<OperationResponse> lockDeploymentAsync(LockDeploymentRequest $request, array $optionalArgs = [])
125129
* @method PromiseInterface<OperationResponse> unlockDeploymentAsync(UnlockDeploymentRequest $request, array $optionalArgs = [])
130+
* @method PromiseInterface<OperationResponse> updateAutoMigrationConfigAsync(UpdateAutoMigrationConfigRequest $request, array $optionalArgs = [])
126131
* @method PromiseInterface<OperationResponse> updateDeploymentAsync(UpdateDeploymentRequest $request, array $optionalArgs = [])
127132
* @method PromiseInterface<Location> getLocationAsync(GetLocationRequest $request, array $optionalArgs = [])
128133
* @method PromiseInterface<PagedListResponse> listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = [])
@@ -226,6 +231,23 @@ private function createOperationsClient(array $options)
226231
return new OperationsClient($options);
227232
}
228233

234+
/**
235+
* Formats a string containing the fully-qualified path to represent a
236+
* auto_migration_config resource.
237+
*
238+
* @param string $project
239+
* @param string $location
240+
*
241+
* @return string The formatted auto_migration_config resource.
242+
*/
243+
public static function autoMigrationConfigName(string $project, string $location): string
244+
{
245+
return self::getPathTemplate('autoMigrationConfig')->render([
246+
'project' => $project,
247+
'location' => $location,
248+
]);
249+
}
250+
229251
/**
230252
* Formats a string containing the fully-qualified path to represent a deployment
231253
* resource.
@@ -439,6 +461,7 @@ public static function workerPoolName(string $project, string $location, string
439461
* Parses a formatted name string and returns an associative array of the components in the name.
440462
* The following name formats are supported:
441463
* Template: Pattern
464+
* - autoMigrationConfig: projects/{project}/locations/{location}/autoMigrationConfig
442465
* - deployment: projects/{project}/locations/{location}/deployments/{deployment}
443466
* - location: projects/{project}/locations/{location}
444467
* - preview: projects/{project}/locations/{location}/previews/{preview}
@@ -790,6 +813,34 @@ public function exportRevisionStatefile(ExportRevisionStatefileRequest $request,
790813
return $this->startApiCall('ExportRevisionStatefile', $request, $callOptions)->wait();
791814
}
792815

816+
/**
817+
* Get the AutoMigrationConfig for a given project and location.
818+
*
819+
* The async variant is {@see ConfigClient::getAutoMigrationConfigAsync()} .
820+
*
821+
* @example samples/V1/ConfigClient/get_auto_migration_config.php
822+
*
823+
* @param GetAutoMigrationConfigRequest $request A request to house fields associated with the call.
824+
* @param array $callOptions {
825+
* Optional.
826+
*
827+
* @type RetrySettings|array $retrySettings
828+
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
829+
* associative array of retry settings parameters. See the documentation on
830+
* {@see RetrySettings} for example usage.
831+
* }
832+
*
833+
* @return AutoMigrationConfig
834+
*
835+
* @throws ApiException Thrown if the API call fails.
836+
*/
837+
public function getAutoMigrationConfig(
838+
GetAutoMigrationConfigRequest $request,
839+
array $callOptions = []
840+
): AutoMigrationConfig {
841+
return $this->startApiCall('GetAutoMigrationConfig', $request, $callOptions)->wait();
842+
}
843+
793844
/**
794845
* Gets details about a [Deployment][google.cloud.config.v1.Deployment].
795846
*
@@ -1240,6 +1291,34 @@ public function unlockDeployment(UnlockDeploymentRequest $request, array $callOp
12401291
return $this->startApiCall('UnlockDeployment', $request, $callOptions)->wait();
12411292
}
12421293

1294+
/**
1295+
* Updates the AutoMigrationConfig for a given project and location.
1296+
*
1297+
* The async variant is {@see ConfigClient::updateAutoMigrationConfigAsync()} .
1298+
*
1299+
* @example samples/V1/ConfigClient/update_auto_migration_config.php
1300+
*
1301+
* @param UpdateAutoMigrationConfigRequest $request A request to house fields associated with the call.
1302+
* @param array $callOptions {
1303+
* Optional.
1304+
*
1305+
* @type RetrySettings|array $retrySettings
1306+
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
1307+
* associative array of retry settings parameters. See the documentation on
1308+
* {@see RetrySettings} for example usage.
1309+
* }
1310+
*
1311+
* @return OperationResponse<AutoMigrationConfig>
1312+
*
1313+
* @throws ApiException Thrown if the API call fails.
1314+
*/
1315+
public function updateAutoMigrationConfig(
1316+
UpdateAutoMigrationConfigRequest $request,
1317+
array $callOptions = []
1318+
): OperationResponse {
1319+
return $this->startApiCall('UpdateAutoMigrationConfig', $request, $callOptions)->wait();
1320+
}
1321+
12431322
/**
12441323
* Updates a [Deployment][google.cloud.config.v1.Deployment].
12451324
*

β€ŽConfig/src/V1/Deployment/ErrorCode.phpβ€Ž

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

β€ŽConfig/src/V1/Preview/ErrorCode.phpβ€Ž

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

β€ŽConfig/src/V1/Revision/ErrorCode.phpβ€Ž

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

owl-bot-staging/Config/v1/proto/src/Google/Cloud/Config/V1/UpdateAutoMigrationConfigRequest.php renamed to Config/src/V1/UpdateAutoMigrationConfigRequest.php

File renamed without changes.

0 commit comments

Comments
Β (0)