source: vendor/google/apiclient-services/src/Networkconnectivity/Resource/ProjectsLocationsNetworkconnectivityGlobalHubsGroups.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: 8.3 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\Networkconnectivity\Resource;
19
20use Google\Service\Networkconnectivity\GoogleLongrunningOperation;
21use Google\Service\Networkconnectivity\Group;
22use Google\Service\Networkconnectivity\ListGroupsResponse;
23use Google\Service\Networkconnectivity\Policy;
24use Google\Service\Networkconnectivity\SetIamPolicyRequest;
25use Google\Service\Networkconnectivity\TestIamPermissionsRequest;
26use Google\Service\Networkconnectivity\TestIamPermissionsResponse;
27
28/**
29 * The "groups" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $networkconnectivityService = new Google\Service\Networkconnectivity(...);
33 * $groups = $networkconnectivityService->projects_locations_global_hubs_groups;
34 * </code>
35 */
36class ProjectsLocationsNetworkconnectivityGlobalHubsGroups extends \Google\Service\Resource
37{
38 /**
39 * Gets details about a Network Connectivity Center group. (groups.get)
40 *
41 * @param string $name Required. The name of the route table resource.
42 * @param array $optParams Optional parameters.
43 * @return Group
44 * @throws \Google\Service\Exception
45 */
46 public function get($name, $optParams = [])
47 {
48 $params = ['name' => $name];
49 $params = array_merge($params, $optParams);
50 return $this->call('get', [$params], Group::class);
51 }
52 /**
53 * Gets the access control policy for a resource. Returns an empty policy if the
54 * resource exists and does not have a policy set. (groups.getIamPolicy)
55 *
56 * @param string $resource REQUIRED: The resource for which the policy is being
57 * requested. See [Resource
58 * names](https://cloud.google.com/apis/design/resource_names) for the
59 * appropriate value for this field.
60 * @param array $optParams Optional parameters.
61 *
62 * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
63 * version that will be used to format the policy. Valid values are 0, 1, and 3.
64 * Requests specifying an invalid value will be rejected. Requests for policies
65 * with any conditional role bindings must specify version 3. Policies with no
66 * conditional role bindings may specify any valid value or leave the field
67 * unset. The policy in the response might use the policy version that you
68 * specified, or it might use a lower policy version. For example, if you
69 * specify version 3, but the policy has no conditional role bindings, the
70 * response uses version 1. To learn which resources support conditions in their
71 * IAM policies, see the [IAM
72 * documentation](https://cloud.google.com/iam/help/conditions/resource-
73 * policies).
74 * @return Policy
75 * @throws \Google\Service\Exception
76 */
77 public function getIamPolicy($resource, $optParams = [])
78 {
79 $params = ['resource' => $resource];
80 $params = array_merge($params, $optParams);
81 return $this->call('getIamPolicy', [$params], Policy::class);
82 }
83 /**
84 * Lists groups in a given hub.
85 * (groups.listProjectsLocationsNetworkconnectivityGlobalHubsGroups)
86 *
87 * @param string $parent Required. The parent resource's name.
88 * @param array $optParams Optional parameters.
89 *
90 * @opt_param string filter An expression that filters the list of results.
91 * @opt_param string orderBy Sort the results by a certain order.
92 * @opt_param int pageSize The maximum number of results to return per page.
93 * @opt_param string pageToken The page token.
94 * @return ListGroupsResponse
95 * @throws \Google\Service\Exception
96 */
97 public function listProjectsLocationsNetworkconnectivityGlobalHubsGroups($parent, $optParams = [])
98 {
99 $params = ['parent' => $parent];
100 $params = array_merge($params, $optParams);
101 return $this->call('list', [$params], ListGroupsResponse::class);
102 }
103 /**
104 * Updates the parameters of a Network Connectivity Center group. (groups.patch)
105 *
106 * @param string $name Immutable. The name of the group. Group names must be
107 * unique. They use the following form:
108 * `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
109 * @param Group $postBody
110 * @param array $optParams Optional parameters.
111 *
112 * @opt_param string requestId Optional. A request ID to identify requests.
113 * Specify a unique request ID so that if you must retry your request, the
114 * server knows to ignore the request if it has already been completed. The
115 * server guarantees that a request doesn't result in creation of duplicate
116 * commitments for at least 60 minutes. For example, consider a situation where
117 * you make an initial request and the request times out. If you make the
118 * request again with the same request ID, the server can check to see whether
119 * the original operation was received. If it was, the server ignores the second
120 * request. This behavior prevents clients from mistakenly creating duplicate
121 * commitments. The request ID must be a valid UUID, with the exception that
122 * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
123 * @opt_param string updateMask Optional. In the case of an update to an
124 * existing group, field mask is used to specify the fields to be overwritten.
125 * The fields specified in the update_mask are relative to the resource, not the
126 * full request. A field is overwritten if it is in the mask. If the user does
127 * not provide a mask, then all fields are overwritten.
128 * @return GoogleLongrunningOperation
129 * @throws \Google\Service\Exception
130 */
131 public function patch($name, Group $postBody, $optParams = [])
132 {
133 $params = ['name' => $name, 'postBody' => $postBody];
134 $params = array_merge($params, $optParams);
135 return $this->call('patch', [$params], GoogleLongrunningOperation::class);
136 }
137 /**
138 * Sets the access control policy on the specified resource. Replaces any
139 * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
140 * `PERMISSION_DENIED` errors. (groups.setIamPolicy)
141 *
142 * @param string $resource REQUIRED: The resource for which the policy is being
143 * specified. See [Resource
144 * names](https://cloud.google.com/apis/design/resource_names) for the
145 * appropriate value for this field.
146 * @param SetIamPolicyRequest $postBody
147 * @param array $optParams Optional parameters.
148 * @return Policy
149 * @throws \Google\Service\Exception
150 */
151 public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
152 {
153 $params = ['resource' => $resource, 'postBody' => $postBody];
154 $params = array_merge($params, $optParams);
155 return $this->call('setIamPolicy', [$params], Policy::class);
156 }
157 /**
158 * Returns permissions that a caller has on the specified resource. If the
159 * resource does not exist, this will return an empty set of permissions, not a
160 * `NOT_FOUND` error. Note: This operation is designed to be used for building
161 * permission-aware UIs and command-line tools, not for authorization checking.
162 * This operation may "fail open" without warning. (groups.testIamPermissions)
163 *
164 * @param string $resource REQUIRED: The resource for which the policy detail is
165 * being requested. See [Resource
166 * names](https://cloud.google.com/apis/design/resource_names) for the
167 * appropriate value for this field.
168 * @param TestIamPermissionsRequest $postBody
169 * @param array $optParams Optional parameters.
170 * @return TestIamPermissionsResponse
171 * @throws \Google\Service\Exception
172 */
173 public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
174 {
175 $params = ['resource' => $resource, 'postBody' => $postBody];
176 $params = array_merge($params, $optParams);
177 return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
178 }
179}
180
181// Adding a class alias for backwards compatibility with the previous class name.
182class_alias(ProjectsLocationsNetworkconnectivityGlobalHubsGroups::class, 'Google_Service_Networkconnectivity_Resource_ProjectsLocationsNetworkconnectivityGlobalHubsGroups');
Note: See TracBrowser for help on using the repository browser.