[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\MigrationCenterAPI\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\MigrationCenterAPI\ErrorFrame;
|
---|
| 21 | use Google\Service\MigrationCenterAPI\ListErrorFramesResponse;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "errorFrames" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $migrationcenterService = new Google\Service\MigrationCenterAPI(...);
|
---|
| 28 | * $errorFrames = $migrationcenterService->projects_locations_sources_errorFrames;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class ProjectsLocationsSourcesErrorFrames extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Gets the details of an error frame. (errorFrames.get)
|
---|
| 35 | *
|
---|
| 36 | * @param string $name Required. The name of the frame to retrieve. Format: proj
|
---|
| 37 | * ects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame
|
---|
| 38 | * }
|
---|
| 39 | * @param array $optParams Optional parameters.
|
---|
| 40 | *
|
---|
| 41 | * @opt_param string view Optional. An optional view mode to control the level
|
---|
| 42 | * of details for the frame. The default is a basic frame view.
|
---|
| 43 | * @return ErrorFrame
|
---|
| 44 | * @throws \Google\Service\Exception
|
---|
| 45 | */
|
---|
| 46 | public function get($name, $optParams = [])
|
---|
| 47 | {
|
---|
| 48 | $params = ['name' => $name];
|
---|
| 49 | $params = array_merge($params, $optParams);
|
---|
| 50 | return $this->call('get', [$params], ErrorFrame::class);
|
---|
| 51 | }
|
---|
| 52 | /**
|
---|
| 53 | * Lists all error frames in a given source and location.
|
---|
| 54 | * (errorFrames.listProjectsLocationsSourcesErrorFrames)
|
---|
| 55 | *
|
---|
| 56 | * @param string $parent Required. Parent value (the source) for
|
---|
| 57 | * `ListErrorFramesRequest`.
|
---|
| 58 | * @param array $optParams Optional parameters.
|
---|
| 59 | *
|
---|
| 60 | * @opt_param int pageSize Requested page size. Server may return fewer items
|
---|
| 61 | * than requested. If unspecified, server will pick an appropriate default.
|
---|
| 62 | * @opt_param string pageToken A token identifying a page of results the server
|
---|
| 63 | * should return.
|
---|
| 64 | * @opt_param string view Optional. An optional view mode to control the level
|
---|
| 65 | * of details of each error frame. The default is a BASIC frame view.
|
---|
| 66 | * @return ListErrorFramesResponse
|
---|
| 67 | * @throws \Google\Service\Exception
|
---|
| 68 | */
|
---|
| 69 | public function listProjectsLocationsSourcesErrorFrames($parent, $optParams = [])
|
---|
| 70 | {
|
---|
| 71 | $params = ['parent' => $parent];
|
---|
| 72 | $params = array_merge($params, $optParams);
|
---|
| 73 | return $this->call('list', [$params], ListErrorFramesResponse::class);
|
---|
| 74 | }
|
---|
| 75 | }
|
---|
| 76 |
|
---|
| 77 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 78 | class_alias(ProjectsLocationsSourcesErrorFrames::class, 'Google_Service_MigrationCenterAPI_Resource_ProjectsLocationsSourcesErrorFrames');
|
---|