[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\ChromePolicy\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest;
|
---|
| 21 | use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest;
|
---|
| 22 | use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest;
|
---|
| 23 | use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse;
|
---|
| 24 | use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest;
|
---|
| 25 | use Google\Service\ChromePolicy\GoogleProtobufEmpty;
|
---|
| 26 |
|
---|
| 27 | /**
|
---|
| 28 | * The "groups" collection of methods.
|
---|
| 29 | * Typical usage is:
|
---|
| 30 | * <code>
|
---|
| 31 | * $chromepolicyService = new Google\Service\ChromePolicy(...);
|
---|
| 32 | * $groups = $chromepolicyService->customers_policies_groups;
|
---|
| 33 | * </code>
|
---|
| 34 | */
|
---|
| 35 | class CustomersPoliciesGroups extends \Google\Service\Resource
|
---|
| 36 | {
|
---|
| 37 | /**
|
---|
| 38 | * Delete multiple policy values that are applied to a specific group. All
|
---|
| 39 | * targets must have the same target format. That is to say that they must point
|
---|
| 40 | * to the same target resource and must have the same keys specified in
|
---|
| 41 | * `additionalTargetKeyNames`, though the values for those keys may be
|
---|
| 42 | * different. On failure the request will return the error details as part of
|
---|
| 43 | * the google.rpc.Status. (groups.batchDelete)
|
---|
| 44 | *
|
---|
| 45 | * @param string $customer ID of the Google Workspace account or literal
|
---|
| 46 | * "my_customer" for the customer associated to the request.
|
---|
| 47 | * @param GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest $postBody
|
---|
| 48 | * @param array $optParams Optional parameters.
|
---|
| 49 | * @return GoogleProtobufEmpty
|
---|
| 50 | * @throws \Google\Service\Exception
|
---|
| 51 | */
|
---|
| 52 | public function batchDelete($customer, GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest $postBody, $optParams = [])
|
---|
| 53 | {
|
---|
| 54 | $params = ['customer' => $customer, 'postBody' => $postBody];
|
---|
| 55 | $params = array_merge($params, $optParams);
|
---|
| 56 | return $this->call('batchDelete', [$params], GoogleProtobufEmpty::class);
|
---|
| 57 | }
|
---|
| 58 | /**
|
---|
| 59 | * Modify multiple policy values that are applied to a specific group. All
|
---|
| 60 | * targets must have the same target format. That is to say that they must point
|
---|
| 61 | * to the same target resource and must have the same keys specified in
|
---|
| 62 | * `additionalTargetKeyNames`, though the values for those keys may be
|
---|
| 63 | * different. On failure the request will return the error details as part of
|
---|
| 64 | * the google.rpc.Status. (groups.batchModify)
|
---|
| 65 | *
|
---|
| 66 | * @param string $customer ID of the Google Workspace account or literal
|
---|
| 67 | * "my_customer" for the customer associated to the request.
|
---|
| 68 | * @param GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest $postBody
|
---|
| 69 | * @param array $optParams Optional parameters.
|
---|
| 70 | * @return GoogleProtobufEmpty
|
---|
| 71 | * @throws \Google\Service\Exception
|
---|
| 72 | */
|
---|
| 73 | public function batchModify($customer, GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest $postBody, $optParams = [])
|
---|
| 74 | {
|
---|
| 75 | $params = ['customer' => $customer, 'postBody' => $postBody];
|
---|
| 76 | $params = array_merge($params, $optParams);
|
---|
| 77 | return $this->call('batchModify', [$params], GoogleProtobufEmpty::class);
|
---|
| 78 | }
|
---|
| 79 | /**
|
---|
| 80 | * Retrieve a group priority ordering for an app. The target app must be
|
---|
| 81 | * supplied in `additionalTargetKeyNames` in the PolicyTargetKey. On failure the
|
---|
| 82 | * request will return the error details as part of the google.rpc.Status.
|
---|
| 83 | * (groups.listGroupPriorityOrdering)
|
---|
| 84 | *
|
---|
| 85 | * @param string $customer Required. ID of the Google Workspace account or
|
---|
| 86 | * literal "my_customer" for the customer associated to the request.
|
---|
| 87 | * @param GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest $postBody
|
---|
| 88 | * @param array $optParams Optional parameters.
|
---|
| 89 | * @return GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse
|
---|
| 90 | * @throws \Google\Service\Exception
|
---|
| 91 | */
|
---|
| 92 | public function listGroupPriorityOrdering($customer, GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest $postBody, $optParams = [])
|
---|
| 93 | {
|
---|
| 94 | $params = ['customer' => $customer, 'postBody' => $postBody];
|
---|
| 95 | $params = array_merge($params, $optParams);
|
---|
| 96 | return $this->call('listGroupPriorityOrdering', [$params], GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse::class);
|
---|
| 97 | }
|
---|
| 98 | /**
|
---|
| 99 | * Update a group priority ordering for an app. The target app must be supplied
|
---|
| 100 | * in `additionalTargetKeyNames` in the PolicyTargetKey. On failure the request
|
---|
| 101 | * will return the error details as part of the google.rpc.Status.
|
---|
| 102 | * (groups.updateGroupPriorityOrdering)
|
---|
| 103 | *
|
---|
| 104 | * @param string $customer Required. ID of the Google Workspace account or
|
---|
| 105 | * literal "my_customer" for the customer associated to the request.
|
---|
| 106 | * @param GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest $postBody
|
---|
| 107 | * @param array $optParams Optional parameters.
|
---|
| 108 | * @return GoogleProtobufEmpty
|
---|
| 109 | * @throws \Google\Service\Exception
|
---|
| 110 | */
|
---|
| 111 | public function updateGroupPriorityOrdering($customer, GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest $postBody, $optParams = [])
|
---|
| 112 | {
|
---|
| 113 | $params = ['customer' => $customer, 'postBody' => $postBody];
|
---|
| 114 | $params = array_merge($params, $optParams);
|
---|
| 115 | return $this->call('updateGroupPriorityOrdering', [$params], GoogleProtobufEmpty::class);
|
---|
| 116 | }
|
---|
| 117 | }
|
---|
| 118 |
|
---|
| 119 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 120 | class_alias(CustomersPoliciesGroups::class, 'Google_Service_ChromePolicy_Resource_CustomersPoliciesGroups');
|
---|