source: vendor/google/apiclient-services/src/SASPortalTesting/Resource/CustomersNodesDeployments.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 2.9 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\SASPortalTesting\Resource;
19
20use Google\Service\SASPortalTesting\SasPortalDeployment;
21use Google\Service\SASPortalTesting\SasPortalListDeploymentsResponse;
22
23/**
24 * The "deployments" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $prod_tt_sasportalService = new Google\Service\SASPortalTesting(...);
28 * $deployments = $prod_tt_sasportalService->customers_nodes_deployments;
29 * </code>
30 */
31class CustomersNodesDeployments extends \Google\Service\Resource
32{
33 /**
34 * Creates a new deployment. (deployments.create)
35 *
36 * @param string $parent Required. The parent resource name where the deployment
37 * is to be created.
38 * @param SasPortalDeployment $postBody
39 * @param array $optParams Optional parameters.
40 * @return SasPortalDeployment
41 * @throws \Google\Service\Exception
42 */
43 public function create($parent, SasPortalDeployment $postBody, $optParams = [])
44 {
45 $params = ['parent' => $parent, 'postBody' => $postBody];
46 $params = array_merge($params, $optParams);
47 return $this->call('create', [$params], SasPortalDeployment::class);
48 }
49 /**
50 * Lists deployments. (deployments.listCustomersNodesDeployments)
51 *
52 * @param string $parent Required. The parent resource name, for example,
53 * "nodes/1", customer/1/nodes/2.
54 * @param array $optParams Optional parameters.
55 *
56 * @opt_param string filter The filter expression. The filter should have the
57 * following format: "DIRECT_CHILDREN" or format: "direct_children". The filter
58 * is case insensitive. If empty, then no deployments are filtered.
59 * @opt_param int pageSize The maximum number of deployments to return in the
60 * response.
61 * @opt_param string pageToken A pagination token returned from a previous call
62 * to ListDeployments that indicates where this listing should continue from.
63 * @return SasPortalListDeploymentsResponse
64 * @throws \Google\Service\Exception
65 */
66 public function listCustomersNodesDeployments($parent, $optParams = [])
67 {
68 $params = ['parent' => $parent];
69 $params = array_merge($params, $optParams);
70 return $this->call('list', [$params], SasPortalListDeploymentsResponse::class);
71 }
72}
73
74// Adding a class alias for backwards compatibility with the previous class name.
75class_alias(CustomersNodesDeployments::class, 'Google_Service_SASPortalTesting_Resource_CustomersNodesDeployments');
Note: See TracBrowser for help on using the repository browser.