Skip to content

Commit ad8c6a8

Browse files
1 parent b936a8b commit ad8c6a8

19 files changed

Lines changed: 1478 additions & 0 deletions

src/MigrationCenterAPI.php

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class MigrationCenterAPI extends \Google\Service
4141

4242
public $projects_locations;
4343
public $projects_locations_assets;
44+
public $projects_locations_assetsExportJobs;
4445
public $projects_locations_discoveryClients;
4546
public $projects_locations_groups;
4647
public $projects_locations_importJobs;
@@ -280,6 +281,82 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
280281
]
281282
]
282283
);
284+
$this->projects_locations_assetsExportJobs = new MigrationCenterAPI\Resource\ProjectsLocationsAssetsExportJobs(
285+
$this,
286+
$this->serviceName,
287+
'assetsExportJobs',
288+
[
289+
'methods' => [
290+
'create' => [
291+
'path' => 'v1/{+parent}/assetsExportJobs',
292+
'httpMethod' => 'POST',
293+
'parameters' => [
294+
'parent' => [
295+
'location' => 'path',
296+
'type' => 'string',
297+
'required' => true,
298+
],
299+
'assetsExportJobId' => [
300+
'location' => 'query',
301+
'type' => 'string',
302+
],
303+
'requestId' => [
304+
'location' => 'query',
305+
'type' => 'string',
306+
],
307+
],
308+
],'delete' => [
309+
'path' => 'v1/{+name}',
310+
'httpMethod' => 'DELETE',
311+
'parameters' => [
312+
'name' => [
313+
'location' => 'path',
314+
'type' => 'string',
315+
'required' => true,
316+
],
317+
],
318+
],'get' => [
319+
'path' => 'v1/{+name}',
320+
'httpMethod' => 'GET',
321+
'parameters' => [
322+
'name' => [
323+
'location' => 'path',
324+
'type' => 'string',
325+
'required' => true,
326+
],
327+
],
328+
],'list' => [
329+
'path' => 'v1/{+parent}/assetsExportJobs',
330+
'httpMethod' => 'GET',
331+
'parameters' => [
332+
'parent' => [
333+
'location' => 'path',
334+
'type' => 'string',
335+
'required' => true,
336+
],
337+
'pageSize' => [
338+
'location' => 'query',
339+
'type' => 'integer',
340+
],
341+
'pageToken' => [
342+
'location' => 'query',
343+
'type' => 'string',
344+
],
345+
],
346+
],'run' => [
347+
'path' => 'v1/{+name}:run',
348+
'httpMethod' => 'POST',
349+
'parameters' => [
350+
'name' => [
351+
'location' => 'path',
352+
'type' => 'string',
353+
'required' => true,
354+
],
355+
],
356+
],
357+
]
358+
]
359+
);
283360
$this->projects_locations_discoveryClients = new MigrationCenterAPI\Resource\ProjectsLocationsDiscoveryClients(
284361
$this,
285362
$this->serviceName,
Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
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;
19+
20+
class AssetsExportJob extends \Google\Collection
21+
{
22+
protected $collection_key = 'recentExecutions';
23+
protected $conditionType = AssetsExportJobExportCondition::class;
24+
protected $conditionDataType = '';
25+
/**
26+
* Output only. Resource creation time.
27+
*
28+
* @var string
29+
*/
30+
public $createTime;
31+
protected $inventoryType = AssetsExportJobInventory::class;
32+
protected $inventoryDataType = '';
33+
/**
34+
* Optional. Labels as key value pairs. Labels must meet the following
35+
* constraints: * Keys and values can contain only lowercase letters, numeric
36+
* characters, underscores, and dashes. * All characters must use UTF-8
37+
* encoding, and international characters are allowed. * Keys must start with
38+
* a lowercase letter or international character. * Each resource is limited
39+
* to a maximum of 64 labels. Both keys and values are additionally
40+
* constrained to be <= 128 bytes.
41+
*
42+
* @var string[]
43+
*/
44+
public $labels;
45+
/**
46+
* Output only. Identifier. Resource name.
47+
*
48+
* @var string
49+
*/
50+
public $name;
51+
protected $networkDependenciesType = AssetsExportJobNetworkDependencies::class;
52+
protected $networkDependenciesDataType = '';
53+
protected $performanceDataType = AssetsExportJobPerformanceData::class;
54+
protected $performanceDataDataType = '';
55+
protected $recentExecutionsType = AssetsExportJobExecution::class;
56+
protected $recentExecutionsDataType = 'array';
57+
/**
58+
* Optional. When this value is set to 'true' the response will include all
59+
* assets, including those that are hidden.
60+
*
61+
* @var bool
62+
*/
63+
public $showHidden;
64+
protected $signedUriDestinationType = SignedUriDestination::class;
65+
protected $signedUriDestinationDataType = '';
66+
/**
67+
* Output only. Resource update time.
68+
*
69+
* @var string
70+
*/
71+
public $updateTime;
72+
73+
/**
74+
* Optional. Conditions for selecting assets to export.
75+
*
76+
* @param AssetsExportJobExportCondition $condition
77+
*/
78+
public function setCondition(AssetsExportJobExportCondition $condition)
79+
{
80+
$this->condition = $condition;
81+
}
82+
/**
83+
* @return AssetsExportJobExportCondition
84+
*/
85+
public function getCondition()
86+
{
87+
return $this->condition;
88+
}
89+
/**
90+
* Output only. Resource creation time.
91+
*
92+
* @param string $createTime
93+
*/
94+
public function setCreateTime($createTime)
95+
{
96+
$this->createTime = $createTime;
97+
}
98+
/**
99+
* @return string
100+
*/
101+
public function getCreateTime()
102+
{
103+
return $this->createTime;
104+
}
105+
/**
106+
* Export asset inventory details.
107+
*
108+
* @param AssetsExportJobInventory $inventory
109+
*/
110+
public function setInventory(AssetsExportJobInventory $inventory)
111+
{
112+
$this->inventory = $inventory;
113+
}
114+
/**
115+
* @return AssetsExportJobInventory
116+
*/
117+
public function getInventory()
118+
{
119+
return $this->inventory;
120+
}
121+
/**
122+
* Optional. Labels as key value pairs. Labels must meet the following
123+
* constraints: * Keys and values can contain only lowercase letters, numeric
124+
* characters, underscores, and dashes. * All characters must use UTF-8
125+
* encoding, and international characters are allowed. * Keys must start with
126+
* a lowercase letter or international character. * Each resource is limited
127+
* to a maximum of 64 labels. Both keys and values are additionally
128+
* constrained to be <= 128 bytes.
129+
*
130+
* @param string[] $labels
131+
*/
132+
public function setLabels($labels)
133+
{
134+
$this->labels = $labels;
135+
}
136+
/**
137+
* @return string[]
138+
*/
139+
public function getLabels()
140+
{
141+
return $this->labels;
142+
}
143+
/**
144+
* Output only. Identifier. Resource name.
145+
*
146+
* @param string $name
147+
*/
148+
public function setName($name)
149+
{
150+
$this->name = $name;
151+
}
152+
/**
153+
* @return string
154+
*/
155+
public function getName()
156+
{
157+
return $this->name;
158+
}
159+
/**
160+
* Export data regarding asset network dependencies.
161+
*
162+
* @param AssetsExportJobNetworkDependencies $networkDependencies
163+
*/
164+
public function setNetworkDependencies(AssetsExportJobNetworkDependencies $networkDependencies)
165+
{
166+
$this->networkDependencies = $networkDependencies;
167+
}
168+
/**
169+
* @return AssetsExportJobNetworkDependencies
170+
*/
171+
public function getNetworkDependencies()
172+
{
173+
return $this->networkDependencies;
174+
}
175+
/**
176+
* Export asset with performance data.
177+
*
178+
* @param AssetsExportJobPerformanceData $performanceData
179+
*/
180+
public function setPerformanceData(AssetsExportJobPerformanceData $performanceData)
181+
{
182+
$this->performanceData = $performanceData;
183+
}
184+
/**
185+
* @return AssetsExportJobPerformanceData
186+
*/
187+
public function getPerformanceData()
188+
{
189+
return $this->performanceData;
190+
}
191+
/**
192+
* Output only. Recent non expired executions of the job.
193+
*
194+
* @param AssetsExportJobExecution[] $recentExecutions
195+
*/
196+
public function setRecentExecutions($recentExecutions)
197+
{
198+
$this->recentExecutions = $recentExecutions;
199+
}
200+
/**
201+
* @return AssetsExportJobExecution[]
202+
*/
203+
public function getRecentExecutions()
204+
{
205+
return $this->recentExecutions;
206+
}
207+
/**
208+
* Optional. When this value is set to 'true' the response will include all
209+
* assets, including those that are hidden.
210+
*
211+
* @param bool $showHidden
212+
*/
213+
public function setShowHidden($showHidden)
214+
{
215+
$this->showHidden = $showHidden;
216+
}
217+
/**
218+
* @return bool
219+
*/
220+
public function getShowHidden()
221+
{
222+
return $this->showHidden;
223+
}
224+
/**
225+
* Export to Cloud Storage files downloadable using signed URIs.
226+
*
227+
* @param SignedUriDestination $signedUriDestination
228+
*/
229+
public function setSignedUriDestination(SignedUriDestination $signedUriDestination)
230+
{
231+
$this->signedUriDestination = $signedUriDestination;
232+
}
233+
/**
234+
* @return SignedUriDestination
235+
*/
236+
public function getSignedUriDestination()
237+
{
238+
return $this->signedUriDestination;
239+
}
240+
/**
241+
* Output only. Resource update time.
242+
*
243+
* @param string $updateTime
244+
*/
245+
public function setUpdateTime($updateTime)
246+
{
247+
$this->updateTime = $updateTime;
248+
}
249+
/**
250+
* @return string
251+
*/
252+
public function getUpdateTime()
253+
{
254+
return $this->updateTime;
255+
}
256+
}
257+
258+
// Adding a class alias for backwards compatibility with the previous class name.
259+
class_alias(AssetsExportJob::class, 'Google_Service_MigrationCenterAPI_AssetsExportJob');

0 commit comments

Comments
 (0)