source: vendor/google/apiclient-services/src/GKEHub/Resource/ProjectsLocationsScopesRbacrolebindings.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.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\GKEHub\Resource;
19
20use Google\Service\GKEHub\ListScopeRBACRoleBindingsResponse;
21use Google\Service\GKEHub\Operation;
22use Google\Service\GKEHub\RBACRoleBinding;
23
24/**
25 * The "rbacrolebindings" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $gkehubService = new Google\Service\GKEHub(...);
29 * $rbacrolebindings = $gkehubService->projects_locations_scopes_rbacrolebindings;
30 * </code>
31 */
32class ProjectsLocationsScopesRbacrolebindings extends \Google\Service\Resource
33{
34 /**
35 * Creates a Scope RBACRoleBinding. (rbacrolebindings.create)
36 *
37 * @param string $parent Required. The parent (project and location) where the
38 * RBACRoleBinding will be created. Specified in the format
39 * `projects/locations/scopes`.
40 * @param RBACRoleBinding $postBody
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string rbacrolebindingId Required. Client chosen ID for the
44 * RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS
45 * label: 1. At most 63 characters in length 2. It must consist of lower case
46 * alphanumeric characters or `-` 3. It must start and end with an alphanumeric
47 * character Which can be expressed as the regex:
48 * `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
49 * @return Operation
50 * @throws \Google\Service\Exception
51 */
52 public function create($parent, RBACRoleBinding $postBody, $optParams = [])
53 {
54 $params = ['parent' => $parent, 'postBody' => $postBody];
55 $params = array_merge($params, $optParams);
56 return $this->call('create', [$params], Operation::class);
57 }
58 /**
59 * Deletes a Scope RBACRoleBinding. (rbacrolebindings.delete)
60 *
61 * @param string $name Required. The RBACRoleBinding resource name in the format
62 * `projects/locations/scopes/rbacrolebindings`.
63 * @param array $optParams Optional parameters.
64 * @return Operation
65 * @throws \Google\Service\Exception
66 */
67 public function delete($name, $optParams = [])
68 {
69 $params = ['name' => $name];
70 $params = array_merge($params, $optParams);
71 return $this->call('delete', [$params], Operation::class);
72 }
73 /**
74 * Returns the details of a Scope RBACRoleBinding. (rbacrolebindings.get)
75 *
76 * @param string $name Required. The RBACRoleBinding resource name in the format
77 * `projects/locations/scopes/rbacrolebindings`.
78 * @param array $optParams Optional parameters.
79 * @return RBACRoleBinding
80 * @throws \Google\Service\Exception
81 */
82 public function get($name, $optParams = [])
83 {
84 $params = ['name' => $name];
85 $params = array_merge($params, $optParams);
86 return $this->call('get', [$params], RBACRoleBinding::class);
87 }
88 /**
89 * Lists all Scope RBACRoleBindings.
90 * (rbacrolebindings.listProjectsLocationsScopesRbacrolebindings)
91 *
92 * @param string $parent Required. The parent (project and location) where the
93 * Features will be listed. Specified in the format `projects/locations/scopes`.
94 * @param array $optParams Optional parameters.
95 *
96 * @opt_param int pageSize Optional. When requesting a 'page' of resources,
97 * `page_size` specifies number of resources to return. If unspecified or set to
98 * 0, all resources will be returned.
99 * @opt_param string pageToken Optional. Token returned by previous call to
100 * `ListScopeRBACRoleBindings` which specifies the position in the list from
101 * where to continue listing the resources.
102 * @return ListScopeRBACRoleBindingsResponse
103 * @throws \Google\Service\Exception
104 */
105 public function listProjectsLocationsScopesRbacrolebindings($parent, $optParams = [])
106 {
107 $params = ['parent' => $parent];
108 $params = array_merge($params, $optParams);
109 return $this->call('list', [$params], ListScopeRBACRoleBindingsResponse::class);
110 }
111 /**
112 * Updates a Scope RBACRoleBinding. (rbacrolebindings.patch)
113 *
114 * @param string $name The resource name for the rbacrolebinding `projects/{proj
115 * ect}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
116 * or `projects/{project}/locations/{location}/memberships/{membership}/rbacrole
117 * bindings/{rbacrolebinding}`
118 * @param RBACRoleBinding $postBody
119 * @param array $optParams Optional parameters.
120 *
121 * @opt_param string updateMask Required. The fields to be updated.
122 * @return Operation
123 * @throws \Google\Service\Exception
124 */
125 public function patch($name, RBACRoleBinding $postBody, $optParams = [])
126 {
127 $params = ['name' => $name, 'postBody' => $postBody];
128 $params = array_merge($params, $optParams);
129 return $this->call('patch', [$params], Operation::class);
130 }
131}
132
133// Adding a class alias for backwards compatibility with the previous class name.
134class_alias(ProjectsLocationsScopesRbacrolebindings::class, 'Google_Service_GKEHub_Resource_ProjectsLocationsScopesRbacrolebindings');
Note: See TracBrowser for help on using the repository browser.