source: vendor/google/apiclient-services/src/Sasportal/Resource/CustomersDeployments.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: 5.1 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\Sasportal\Resource;
19
20use Google\Service\Sasportal\SasPortalDeployment;
21use Google\Service\Sasportal\SasPortalEmpty;
22use Google\Service\Sasportal\SasPortalListDeploymentsResponse;
23use Google\Service\Sasportal\SasPortalMoveDeploymentRequest;
24use Google\Service\Sasportal\SasPortalOperation;
25
26/**
27 * The "deployments" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $sasportalService = new Google\Service\Sasportal(...);
31 * $deployments = $sasportalService->customers_deployments;
32 * </code>
33 */
34class CustomersDeployments extends \Google\Service\Resource
35{
36 /**
37 * Creates a new deployment. (deployments.create)
38 *
39 * @param string $parent Required. The parent resource name where the deployment
40 * is to be created.
41 * @param SasPortalDeployment $postBody
42 * @param array $optParams Optional parameters.
43 * @return SasPortalDeployment
44 * @throws \Google\Service\Exception
45 */
46 public function create($parent, SasPortalDeployment $postBody, $optParams = [])
47 {
48 $params = ['parent' => $parent, 'postBody' => $postBody];
49 $params = array_merge($params, $optParams);
50 return $this->call('create', [$params], SasPortalDeployment::class);
51 }
52 /**
53 * Deletes a deployment. (deployments.delete)
54 *
55 * @param string $name Required. The name of the deployment.
56 * @param array $optParams Optional parameters.
57 * @return SasPortalEmpty
58 * @throws \Google\Service\Exception
59 */
60 public function delete($name, $optParams = [])
61 {
62 $params = ['name' => $name];
63 $params = array_merge($params, $optParams);
64 return $this->call('delete', [$params], SasPortalEmpty::class);
65 }
66 /**
67 * Returns a requested deployment. (deployments.get)
68 *
69 * @param string $name Required. The name of the deployment.
70 * @param array $optParams Optional parameters.
71 * @return SasPortalDeployment
72 * @throws \Google\Service\Exception
73 */
74 public function get($name, $optParams = [])
75 {
76 $params = ['name' => $name];
77 $params = array_merge($params, $optParams);
78 return $this->call('get', [$params], SasPortalDeployment::class);
79 }
80 /**
81 * Lists deployments. (deployments.listCustomersDeployments)
82 *
83 * @param string $parent Required. The parent resource name, for example,
84 * "nodes/1", customer/1/nodes/2.
85 * @param array $optParams Optional parameters.
86 *
87 * @opt_param string filter The filter expression. The filter should have the
88 * following format: "DIRECT_CHILDREN" or format: "direct_children". The filter
89 * is case insensitive. If empty, then no deployments are filtered.
90 * @opt_param int pageSize The maximum number of deployments to return in the
91 * response.
92 * @opt_param string pageToken A pagination token returned from a previous call
93 * to ListDeployments that indicates where this listing should continue from.
94 * @return SasPortalListDeploymentsResponse
95 * @throws \Google\Service\Exception
96 */
97 public function listCustomersDeployments($parent, $optParams = [])
98 {
99 $params = ['parent' => $parent];
100 $params = array_merge($params, $optParams);
101 return $this->call('list', [$params], SasPortalListDeploymentsResponse::class);
102 }
103 /**
104 * Moves a deployment under another node or customer. (deployments.move)
105 *
106 * @param string $name Required. The name of the deployment to move.
107 * @param SasPortalMoveDeploymentRequest $postBody
108 * @param array $optParams Optional parameters.
109 * @return SasPortalOperation
110 * @throws \Google\Service\Exception
111 */
112 public function move($name, SasPortalMoveDeploymentRequest $postBody, $optParams = [])
113 {
114 $params = ['name' => $name, 'postBody' => $postBody];
115 $params = array_merge($params, $optParams);
116 return $this->call('move', [$params], SasPortalOperation::class);
117 }
118 /**
119 * Updates an existing deployment. (deployments.patch)
120 *
121 * @param string $name Output only. Resource name.
122 * @param SasPortalDeployment $postBody
123 * @param array $optParams Optional parameters.
124 *
125 * @opt_param string updateMask Fields to be updated.
126 * @return SasPortalDeployment
127 * @throws \Google\Service\Exception
128 */
129 public function patch($name, SasPortalDeployment $postBody, $optParams = [])
130 {
131 $params = ['name' => $name, 'postBody' => $postBody];
132 $params = array_merge($params, $optParams);
133 return $this->call('patch', [$params], SasPortalDeployment::class);
134 }
135}
136
137// Adding a class alias for backwards compatibility with the previous class name.
138class_alias(CustomersDeployments::class, 'Google_Service_Sasportal_Resource_CustomersDeployments');
Note: See TracBrowser for help on using the repository browser.