source: vendor/google/apiclient-services/src/VMwareEngine/Resource/ProjectsLocationsPrivateCloudsClustersNodes.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: 3.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\VMwareEngine\Resource;
19
20use Google\Service\VMwareEngine\ListNodesResponse;
21use Google\Service\VMwareEngine\Node;
22
23/**
24 * The "nodes" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $vmwareengineService = new Google\Service\VMwareEngine(...);
28 * $nodes = $vmwareengineService->projects_locations_privateClouds_clusters_nodes;
29 * </code>
30 */
31class ProjectsLocationsPrivateCloudsClustersNodes extends \Google\Service\Resource
32{
33 /**
34 * Gets details of a single node. (nodes.get)
35 *
36 * @param string $name Required. The resource name of the node to retrieve. For
37 * example: `projects/{project}/locations/{location}/privateClouds/{private_clou
38 * d}/clusters/{cluster}/nodes/{node}`
39 * @param array $optParams Optional parameters.
40 * @return Node
41 * @throws \Google\Service\Exception
42 */
43 public function get($name, $optParams = [])
44 {
45 $params = ['name' => $name];
46 $params = array_merge($params, $optParams);
47 return $this->call('get', [$params], Node::class);
48 }
49 /**
50 * Lists nodes in a given cluster.
51 * (nodes.listProjectsLocationsPrivateCloudsClustersNodes)
52 *
53 * @param string $parent Required. The resource name of the cluster to be
54 * queried for nodes. Resource names are schemeless URIs that follow the
55 * conventions in https://cloud.google.com/apis/design/resource_names. For
56 * example: `projects/my-project/locations/us-central1-a/privateClouds/my-
57 * cloud/clusters/my-cluster`
58 * @param array $optParams Optional parameters.
59 *
60 * @opt_param int pageSize The maximum number of nodes to return in one page.
61 * The service may return fewer than this value. The maximum value is coerced to
62 * 1000. The default value of this field is 500.
63 * @opt_param string pageToken A page token, received from a previous
64 * `ListNodes` call. Provide this to retrieve the subsequent page. When
65 * paginating, all other parameters provided to `ListNodes` must match the call
66 * that provided the page token.
67 * @return ListNodesResponse
68 * @throws \Google\Service\Exception
69 */
70 public function listProjectsLocationsPrivateCloudsClustersNodes($parent, $optParams = [])
71 {
72 $params = ['parent' => $parent];
73 $params = array_merge($params, $optParams);
74 return $this->call('list', [$params], ListNodesResponse::class);
75 }
76}
77
78// Adding a class alias for backwards compatibility with the previous class name.
79class_alias(ProjectsLocationsPrivateCloudsClustersNodes::class, 'Google_Service_VMwareEngine_Resource_ProjectsLocationsPrivateCloudsClustersNodes');
Note: See TracBrowser for help on using the repository browser.