source: vendor/google/apiclient-services/src/GKEHub/Resource/ProjectsLocationsMembershipsRbacrolebindings.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

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