[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\Datapipelines\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse;
|
---|
| 21 | use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1TransformDescription;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "transformDescriptions" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $datapipelinesService = new Google\Service\Datapipelines(...);
|
---|
| 28 | * $transformDescriptions = $datapipelinesService->transformDescriptions;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class ProjectsLocationsTransformDescriptions extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Gets transform descriptions in a batch, associated with a list of provided
|
---|
| 35 | * uniform resource names. (transformDescriptions.batchGet)
|
---|
| 36 | *
|
---|
| 37 | * @param string $parent Required. The project and location shared by all
|
---|
| 38 | * transform descriptions being retrieved, formatted as
|
---|
| 39 | * "projects/{project}/locations/{location}".
|
---|
| 40 | * @param array $optParams Optional parameters.
|
---|
| 41 | *
|
---|
| 42 | * @opt_param string names Optional. The names of the transform descriptions
|
---|
| 43 | * being retrieved, formatted as "projects/{project}/locations/{location}/transf
|
---|
| 44 | * ormdescriptions/{transform_description}". If no name is provided, all of the
|
---|
| 45 | * transform descriptions will be returned.
|
---|
| 46 | * @return GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse
|
---|
| 47 | */
|
---|
| 48 | public function batchGet($parent, $optParams = [])
|
---|
| 49 | {
|
---|
| 50 | $params = ['parent' => $parent];
|
---|
| 51 | $params = array_merge($params, $optParams);
|
---|
| 52 | return $this->call('batchGet', [$params], GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse::class);
|
---|
| 53 | }
|
---|
| 54 | /**
|
---|
| 55 | * Gets the transform description associated with the provided uniform resource
|
---|
| 56 | * name. (transformDescriptions.get)
|
---|
| 57 | *
|
---|
| 58 | * @param string $name Required. The full name formatted as "projects/{your-
|
---|
| 59 | * project}/locations/{google-cloud-region}/transformdescriptions/{uniform-
|
---|
| 60 | * resource-name}".
|
---|
| 61 | * @param array $optParams Optional parameters.
|
---|
| 62 | * @return GoogleCloudDatapipelinesV1TransformDescription
|
---|
| 63 | */
|
---|
| 64 | public function get($name, $optParams = [])
|
---|
| 65 | {
|
---|
| 66 | $params = ['name' => $name];
|
---|
| 67 | $params = array_merge($params, $optParams);
|
---|
| 68 | return $this->call('get', [$params], GoogleCloudDatapipelinesV1TransformDescription::class);
|
---|
| 69 | }
|
---|
| 70 | }
|
---|
| 71 |
|
---|
| 72 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 73 | class_alias(ProjectsLocationsTransformDescriptions::class, 'Google_Service_Datapipelines_Resource_ProjectsLocationsTransformDescriptions');
|
---|