source: vendor/google/apiclient-services/src/SASPortalTesting/Resource/NodesNodesNodes.php@ f9c482b

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

Upload new project files

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