source: vendor/google/apiclient-services/src/CloudIdentity/Resource/InboundSsoAssignments.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 5.7 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\CloudIdentity\Resource;
19
20use Google\Service\CloudIdentity\InboundSsoAssignment;
21use Google\Service\CloudIdentity\ListInboundSsoAssignmentsResponse;
22use Google\Service\CloudIdentity\Operation;
23
24/**
25 * The "inboundSsoAssignments" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $cloudidentityService = new Google\Service\CloudIdentity(...);
29 * $inboundSsoAssignments = $cloudidentityService->inboundSsoAssignments;
30 * </code>
31 */
32class InboundSsoAssignments extends \Google\Service\Resource
33{
34 /**
35 * Creates an InboundSsoAssignment for users and devices in a `Customer` under a
36 * given `Group` or `OrgUnit`. (inboundSsoAssignments.create)
37 *
38 * @param InboundSsoAssignment $postBody
39 * @param array $optParams Optional parameters.
40 * @return Operation
41 * @throws \Google\Service\Exception
42 */
43 public function create(InboundSsoAssignment $postBody, $optParams = [])
44 {
45 $params = ['postBody' => $postBody];
46 $params = array_merge($params, $optParams);
47 return $this->call('create', [$params], Operation::class);
48 }
49 /**
50 * Deletes an InboundSsoAssignment. To disable SSO, Create (or Update) an
51 * assignment that has `sso_mode` == `SSO_OFF`. (inboundSsoAssignments.delete)
52 *
53 * @param string $name Required. The [resource
54 * name](https://cloud.google.com/apis/design/resource_names) of the
55 * InboundSsoAssignment to delete. Format: `inboundSsoAssignments/{assignment}`
56 * @param array $optParams Optional parameters.
57 * @return Operation
58 * @throws \Google\Service\Exception
59 */
60 public function delete($name, $optParams = [])
61 {
62 $params = ['name' => $name];
63 $params = array_merge($params, $optParams);
64 return $this->call('delete', [$params], Operation::class);
65 }
66 /**
67 * Gets an InboundSsoAssignment. (inboundSsoAssignments.get)
68 *
69 * @param string $name Required. The [resource
70 * name](https://cloud.google.com/apis/design/resource_names) of the
71 * InboundSsoAssignment to fetch. Format: `inboundSsoAssignments/{assignment}`
72 * @param array $optParams Optional parameters.
73 * @return InboundSsoAssignment
74 * @throws \Google\Service\Exception
75 */
76 public function get($name, $optParams = [])
77 {
78 $params = ['name' => $name];
79 $params = array_merge($params, $optParams);
80 return $this->call('get', [$params], InboundSsoAssignment::class);
81 }
82 /**
83 * Lists the InboundSsoAssignments for a `Customer`.
84 * (inboundSsoAssignments.listInboundSsoAssignments)
85 *
86 * @param array $optParams Optional parameters.
87 *
88 * @opt_param string filter A CEL expression to filter the results. The only
89 * supported filter is filtering by customer. For example:
90 * `customer==customers/C0123abc`. Omitting the filter or specifying a filter of
91 * `customer==customers/my_customer` will return the assignments for the
92 * customer that the caller (authenticated user) belongs to.
93 * @opt_param int pageSize The maximum number of assignments to return. The
94 * service may return fewer than this value. If omitted (or defaulted to zero)
95 * the server will use a sensible default. This default may change over time.
96 * The maximum allowed value is 100, though requests with page_size greater than
97 * that will be silently interpreted as having this maximum value. This may
98 * increase in the futue.
99 * @opt_param string pageToken A page token, received from a previous
100 * `ListInboundSsoAssignments` call. Provide this to retrieve the subsequent
101 * page. When paginating, all other parameters provided to
102 * `ListInboundSsoAssignments` must match the call that provided the page token.
103 * @return ListInboundSsoAssignmentsResponse
104 * @throws \Google\Service\Exception
105 */
106 public function listInboundSsoAssignments($optParams = [])
107 {
108 $params = [];
109 $params = array_merge($params, $optParams);
110 return $this->call('list', [$params], ListInboundSsoAssignmentsResponse::class);
111 }
112 /**
113 * Updates an InboundSsoAssignment. The body of this request is the
114 * `inbound_sso_assignment` field and the `update_mask` is relative to that. For
115 * example: a PATCH to
116 * `/v1/inboundSsoAssignments/0abcdefg1234567&update_mask=rank` with a body of
117 * `{ "rank": 1 }` moves that (presumably group-targeted) SSO assignment to the
118 * highest priority and shifts any other group-targeted assignments down in
119 * priority. (inboundSsoAssignments.patch)
120 *
121 * @param string $name Output only. [Resource
122 * name](https://cloud.google.com/apis/design/resource_names) of the Inbound SSO
123 * Assignment.
124 * @param InboundSsoAssignment $postBody
125 * @param array $optParams Optional parameters.
126 *
127 * @opt_param string updateMask Required. The list of fields to be updated.
128 * @return Operation
129 * @throws \Google\Service\Exception
130 */
131 public function patch($name, InboundSsoAssignment $postBody, $optParams = [])
132 {
133 $params = ['name' => $name, 'postBody' => $postBody];
134 $params = array_merge($params, $optParams);
135 return $this->call('patch', [$params], Operation::class);
136 }
137}
138
139// Adding a class alias for backwards compatibility with the previous class name.
140class_alias(InboundSsoAssignments::class, 'Google_Service_CloudIdentity_Resource_InboundSsoAssignments');
Note: See TracBrowser for help on using the repository browser.