source: vendor/google/apiclient-services/src/VMMigrationService/Resource/ProjectsLocationsSourcesMigratingVmsReplicationCycles.php

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

Upload project files

  • Property mode set to 100644
File size: 3.2 KB
RevLine 
[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
18namespace Google\Service\VMMigrationService\Resource;
19
20use Google\Service\VMMigrationService\ListReplicationCyclesResponse;
21use Google\Service\VMMigrationService\ReplicationCycle;
22
23/**
24 * The "replicationCycles" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $vmmigrationService = new Google\Service\VMMigrationService(...);
28 * $replicationCycles = $vmmigrationService->projects_locations_sources_migratingVms_replicationCycles;
29 * </code>
30 */
31class ProjectsLocationsSourcesMigratingVmsReplicationCycles extends \Google\Service\Resource
32{
33 /**
34 * Gets details of a single ReplicationCycle. (replicationCycles.get)
35 *
36 * @param string $name Required. The name of the ReplicationCycle.
37 * @param array $optParams Optional parameters.
38 * @return ReplicationCycle
39 * @throws \Google\Service\Exception
40 */
41 public function get($name, $optParams = [])
42 {
43 $params = ['name' => $name];
44 $params = array_merge($params, $optParams);
45 return $this->call('get', [$params], ReplicationCycle::class);
46 }
47 /**
48 * Lists ReplicationCycles in a given MigratingVM.
49 * (replicationCycles.listProjectsLocationsSourcesMigratingVmsReplicationCycles)
50 *
51 * @param string $parent Required. The parent, which owns this collection of
52 * ReplicationCycles.
53 * @param array $optParams Optional parameters.
54 *
55 * @opt_param string filter Optional. The filter request.
56 * @opt_param string orderBy Optional. the order by fields for the result.
57 * @opt_param int pageSize Optional. The maximum number of replication cycles to
58 * return. The service may return fewer than this value. If unspecified, at most
59 * 100 migrating VMs will be returned. The maximum value is 100; values above
60 * 100 will be coerced to 100.
61 * @opt_param string pageToken Required. A page token, received from a previous
62 * `ListReplicationCycles` call. Provide this to retrieve the subsequent page.
63 * When paginating, all other parameters provided to `ListReplicationCycles`
64 * must match the call that provided the page token.
65 * @return ListReplicationCyclesResponse
66 * @throws \Google\Service\Exception
67 */
68 public function listProjectsLocationsSourcesMigratingVmsReplicationCycles($parent, $optParams = [])
69 {
70 $params = ['parent' => $parent];
71 $params = array_merge($params, $optParams);
72 return $this->call('list', [$params], ListReplicationCyclesResponse::class);
73 }
74}
75
76// Adding a class alias for backwards compatibility with the previous class name.
77class_alias(ProjectsLocationsSourcesMigratingVmsReplicationCycles::class, 'Google_Service_VMMigrationService_Resource_ProjectsLocationsSourcesMigratingVmsReplicationCycles');
Note: See TracBrowser for help on using the repository browser.