source: vendor/google/apiclient-services/src/Dataflow/Resource/ProjectsLocationsSnapshots.php

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

Upload project files

  • Property mode set to 100644
File size: 3.3 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\Dataflow\Resource;
19
20use Google\Service\Dataflow\DeleteSnapshotResponse;
21use Google\Service\Dataflow\ListSnapshotsResponse;
22use Google\Service\Dataflow\Snapshot;
23
24/**
25 * The "snapshots" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $dataflowService = new Google\Service\Dataflow(...);
29 * $snapshots = $dataflowService->projects_locations_snapshots;
30 * </code>
31 */
32class ProjectsLocationsSnapshots extends \Google\Service\Resource
33{
34 /**
35 * Deletes a snapshot. (snapshots.delete)
36 *
37 * @param string $projectId The ID of the Cloud Platform project that the
38 * snapshot belongs to.
39 * @param string $location The location that contains this snapshot.
40 * @param string $snapshotId The ID of the snapshot.
41 * @param array $optParams Optional parameters.
42 * @return DeleteSnapshotResponse
43 * @throws \Google\Service\Exception
44 */
45 public function delete($projectId, $location, $snapshotId, $optParams = [])
46 {
47 $params = ['projectId' => $projectId, 'location' => $location, 'snapshotId' => $snapshotId];
48 $params = array_merge($params, $optParams);
49 return $this->call('delete', [$params], DeleteSnapshotResponse::class);
50 }
51 /**
52 * Gets information about a snapshot. (snapshots.get)
53 *
54 * @param string $projectId The ID of the Cloud Platform project that the
55 * snapshot belongs to.
56 * @param string $location The location that contains this snapshot.
57 * @param string $snapshotId The ID of the snapshot.
58 * @param array $optParams Optional parameters.
59 * @return Snapshot
60 * @throws \Google\Service\Exception
61 */
62 public function get($projectId, $location, $snapshotId, $optParams = [])
63 {
64 $params = ['projectId' => $projectId, 'location' => $location, 'snapshotId' => $snapshotId];
65 $params = array_merge($params, $optParams);
66 return $this->call('get', [$params], Snapshot::class);
67 }
68 /**
69 * Lists snapshots. (snapshots.listProjectsLocationsSnapshots)
70 *
71 * @param string $projectId The project ID to list snapshots for.
72 * @param string $location The location to list snapshots in.
73 * @param array $optParams Optional parameters.
74 *
75 * @opt_param string jobId If specified, list snapshots created from this job.
76 * @return ListSnapshotsResponse
77 * @throws \Google\Service\Exception
78 */
79 public function listProjectsLocationsSnapshots($projectId, $location, $optParams = [])
80 {
81 $params = ['projectId' => $projectId, 'location' => $location];
82 $params = array_merge($params, $optParams);
83 return $this->call('list', [$params], ListSnapshotsResponse::class);
84 }
85}
86
87// Adding a class alias for backwards compatibility with the previous class name.
88class_alias(ProjectsLocationsSnapshots::class, 'Google_Service_Dataflow_Resource_ProjectsLocationsSnapshots');
Note: See TracBrowser for help on using the repository browser.