source: vendor/google/apiclient-services/src/Datapipelines.php

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

Upload project files

  • Property mode set to 100644
File size: 6.0 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;
19
20use Google\Client;
21
22/**
23 * Service definition for Datapipelines (v1).
24 *
25 * <p>
26 * Data Pipelines provides an interface for creating, updating, and managing
27 * recurring Data Analytics jobs.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/dataflow/docs/guides/data-pipelines" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Datapipelines extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41
42 public $projects_locations_pipelines;
43 public $projects_locations_pipelines_jobs;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the Datapipelines service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://datapipelines.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://datapipelines.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'datapipelines';
62
63 $this->projects_locations_pipelines = new Datapipelines\Resource\ProjectsLocationsPipelines(
64 $this,
65 $this->serviceName,
66 'pipelines',
67 [
68 'methods' => [
69 'create' => [
70 'path' => 'v1/{+parent}/pipelines',
71 'httpMethod' => 'POST',
72 'parameters' => [
73 'parent' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 ],
79 ],'delete' => [
80 'path' => 'v1/{+name}',
81 'httpMethod' => 'DELETE',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 ],
89 ],'get' => [
90 'path' => 'v1/{+name}',
91 'httpMethod' => 'GET',
92 'parameters' => [
93 'name' => [
94 'location' => 'path',
95 'type' => 'string',
96 'required' => true,
97 ],
98 ],
99 ],'list' => [
100 'path' => 'v1/{+parent}/pipelines',
101 'httpMethod' => 'GET',
102 'parameters' => [
103 'parent' => [
104 'location' => 'path',
105 'type' => 'string',
106 'required' => true,
107 ],
108 'filter' => [
109 'location' => 'query',
110 'type' => 'string',
111 ],
112 'pageSize' => [
113 'location' => 'query',
114 'type' => 'integer',
115 ],
116 'pageToken' => [
117 'location' => 'query',
118 'type' => 'string',
119 ],
120 ],
121 ],'patch' => [
122 'path' => 'v1/{+name}',
123 'httpMethod' => 'PATCH',
124 'parameters' => [
125 'name' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 'updateMask' => [
131 'location' => 'query',
132 'type' => 'string',
133 ],
134 ],
135 ],'run' => [
136 'path' => 'v1/{+name}:run',
137 'httpMethod' => 'POST',
138 'parameters' => [
139 'name' => [
140 'location' => 'path',
141 'type' => 'string',
142 'required' => true,
143 ],
144 ],
145 ],'stop' => [
146 'path' => 'v1/{+name}:stop',
147 'httpMethod' => 'POST',
148 'parameters' => [
149 'name' => [
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ],
154 ],
155 ],
156 ]
157 ]
158 );
159 $this->projects_locations_pipelines_jobs = new Datapipelines\Resource\ProjectsLocationsPipelinesJobs(
160 $this,
161 $this->serviceName,
162 'jobs',
163 [
164 'methods' => [
165 'list' => [
166 'path' => 'v1/{+parent}/jobs',
167 'httpMethod' => 'GET',
168 'parameters' => [
169 'parent' => [
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ],
174 'pageSize' => [
175 'location' => 'query',
176 'type' => 'integer',
177 ],
178 'pageToken' => [
179 'location' => 'query',
180 'type' => 'string',
181 ],
182 ],
183 ],
184 ]
185 ]
186 );
187 }
188}
189
190// Adding a class alias for backwards compatibility with the previous class name.
191class_alias(Datapipelines::class, 'Google_Service_Datapipelines');
Note: See TracBrowser for help on using the repository browser.