source: vendor/google/apiclient-services/src/Contentwarehouse/Resource/ProjectsLocations.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload new project files

  • Property mode set to 100644
File size: 3.5 KB
Line 
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
18namespace Google\Service\Contentwarehouse\Resource;
19
20use Google\Service\Contentwarehouse\GoogleCloudContentwarehouseV1InitializeProjectRequest;
21use Google\Service\Contentwarehouse\GoogleCloudContentwarehouseV1ProjectStatus;
22use Google\Service\Contentwarehouse\GoogleCloudContentwarehouseV1RunPipelineRequest;
23use Google\Service\Contentwarehouse\GoogleLongrunningOperation;
24
25/**
26 * The "locations" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $contentwarehouseService = new Google\Service\Contentwarehouse(...);
30 * $locations = $contentwarehouseService->projects_locations;
31 * </code>
32 */
33class ProjectsLocations extends \Google\Service\Resource
34{
35 /**
36 * Get the project status. (locations.getStatus)
37 *
38 * @param string $location Required. The location to be queried Format:
39 * projects/{project_number}/locations/{location}.
40 * @param array $optParams Optional parameters.
41 * @return GoogleCloudContentwarehouseV1ProjectStatus
42 * @throws \Google\Service\Exception
43 */
44 public function getStatus($location, $optParams = [])
45 {
46 $params = ['location' => $location];
47 $params = array_merge($params, $optParams);
48 return $this->call('getStatus', [$params], GoogleCloudContentwarehouseV1ProjectStatus::class);
49 }
50 /**
51 * Provisions resources for given tenant project. Returns a long running
52 * operation. (locations.initialize)
53 *
54 * @param string $location Required. The location to be initialized Format:
55 * projects/{project_number}/locations/{location}.
56 * @param GoogleCloudContentwarehouseV1InitializeProjectRequest $postBody
57 * @param array $optParams Optional parameters.
58 * @return GoogleLongrunningOperation
59 * @throws \Google\Service\Exception
60 */
61 public function initialize($location, GoogleCloudContentwarehouseV1InitializeProjectRequest $postBody, $optParams = [])
62 {
63 $params = ['location' => $location, 'postBody' => $postBody];
64 $params = array_merge($params, $optParams);
65 return $this->call('initialize', [$params], GoogleLongrunningOperation::class);
66 }
67 /**
68 * Run a predefined pipeline. (locations.runPipeline)
69 *
70 * @param string $name Required. The resource name which owns the resources of
71 * the pipeline. Format: projects/{project_number}/locations/{location}.
72 * @param GoogleCloudContentwarehouseV1RunPipelineRequest $postBody
73 * @param array $optParams Optional parameters.
74 * @return GoogleLongrunningOperation
75 * @throws \Google\Service\Exception
76 */
77 public function runPipeline($name, GoogleCloudContentwarehouseV1RunPipelineRequest $postBody, $optParams = [])
78 {
79 $params = ['name' => $name, 'postBody' => $postBody];
80 $params = array_merge($params, $optParams);
81 return $this->call('runPipeline', [$params], GoogleLongrunningOperation::class);
82 }
83}
84
85// Adding a class alias for backwards compatibility with the previous class name.
86class_alias(ProjectsLocations::class, 'Google_Service_Contentwarehouse_Resource_ProjectsLocations');
Note: See TracBrowser for help on using the repository browser.