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\CloudIdentity\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\CloudIdentity\InboundSamlSsoProfile;
|
---|
21 | use Google\Service\CloudIdentity\ListInboundSamlSsoProfilesResponse;
|
---|
22 | use Google\Service\CloudIdentity\Operation;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * The "inboundSamlSsoProfiles" collection of methods.
|
---|
26 | * Typical usage is:
|
---|
27 | * <code>
|
---|
28 | * $cloudidentityService = new Google\Service\CloudIdentity(...);
|
---|
29 | * $inboundSamlSsoProfiles = $cloudidentityService->inboundSamlSsoProfiles;
|
---|
30 | * </code>
|
---|
31 | */
|
---|
32 | class InboundSamlSsoProfiles extends \Google\Service\Resource
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * Creates an InboundSamlSsoProfile for a customer. When the target customer has
|
---|
36 | * enabled [Multi-party approval for sensitive
|
---|
37 | * actions](https://support.google.com/a/answer/13790448), the `Operation` in
|
---|
38 | * the response will have `"done": false`, it will not have a response, and the
|
---|
39 | * metadata will have `"state": "awaiting-multi-party-approval"`.
|
---|
40 | * (inboundSamlSsoProfiles.create)
|
---|
41 | *
|
---|
42 | * @param InboundSamlSsoProfile $postBody
|
---|
43 | * @param array $optParams Optional parameters.
|
---|
44 | * @return Operation
|
---|
45 | * @throws \Google\Service\Exception
|
---|
46 | */
|
---|
47 | public function create(InboundSamlSsoProfile $postBody, $optParams = [])
|
---|
48 | {
|
---|
49 | $params = ['postBody' => $postBody];
|
---|
50 | $params = array_merge($params, $optParams);
|
---|
51 | return $this->call('create', [$params], Operation::class);
|
---|
52 | }
|
---|
53 | /**
|
---|
54 | * Deletes an InboundSamlSsoProfile. (inboundSamlSsoProfiles.delete)
|
---|
55 | *
|
---|
56 | * @param string $name Required. The [resource
|
---|
57 | * name](https://cloud.google.com/apis/design/resource_names) of the
|
---|
58 | * InboundSamlSsoProfile to delete. Format:
|
---|
59 | * `inboundSamlSsoProfiles/{sso_profile_id}`
|
---|
60 | * @param array $optParams Optional parameters.
|
---|
61 | * @return Operation
|
---|
62 | * @throws \Google\Service\Exception
|
---|
63 | */
|
---|
64 | public function delete($name, $optParams = [])
|
---|
65 | {
|
---|
66 | $params = ['name' => $name];
|
---|
67 | $params = array_merge($params, $optParams);
|
---|
68 | return $this->call('delete', [$params], Operation::class);
|
---|
69 | }
|
---|
70 | /**
|
---|
71 | * Gets an InboundSamlSsoProfile. (inboundSamlSsoProfiles.get)
|
---|
72 | *
|
---|
73 | * @param string $name Required. The [resource
|
---|
74 | * name](https://cloud.google.com/apis/design/resource_names) of the
|
---|
75 | * InboundSamlSsoProfile to get. Format:
|
---|
76 | * `inboundSamlSsoProfiles/{sso_profile_id}`
|
---|
77 | * @param array $optParams Optional parameters.
|
---|
78 | * @return InboundSamlSsoProfile
|
---|
79 | * @throws \Google\Service\Exception
|
---|
80 | */
|
---|
81 | public function get($name, $optParams = [])
|
---|
82 | {
|
---|
83 | $params = ['name' => $name];
|
---|
84 | $params = array_merge($params, $optParams);
|
---|
85 | return $this->call('get', [$params], InboundSamlSsoProfile::class);
|
---|
86 | }
|
---|
87 | /**
|
---|
88 | * Lists InboundSamlSsoProfiles for a customer.
|
---|
89 | * (inboundSamlSsoProfiles.listInboundSamlSsoProfiles)
|
---|
90 | *
|
---|
91 | * @param array $optParams Optional parameters.
|
---|
92 | *
|
---|
93 | * @opt_param string filter A [Common Expression
|
---|
94 | * Language](https://github.com/google/cel-spec) expression to filter the
|
---|
95 | * results. The only supported filter is filtering by customer. For example:
|
---|
96 | * `customer=="customers/C0123abc"`. Omitting the filter or specifying a filter
|
---|
97 | * of `customer=="customers/my_customer"` will return the profiles for the
|
---|
98 | * customer that the caller (authenticated user) belongs to.
|
---|
99 | * @opt_param int pageSize The maximum number of InboundSamlSsoProfiles to
|
---|
100 | * return. The service may return fewer than this value. If omitted (or
|
---|
101 | * defaulted to zero) the server will use a sensible default. This default may
|
---|
102 | * change over time. The maximum allowed value is 100. Requests with page_size
|
---|
103 | * greater than that will be silently interpreted as having this maximum value.
|
---|
104 | * @opt_param string pageToken A page token, received from a previous
|
---|
105 | * `ListInboundSamlSsoProfiles` call. Provide this to retrieve the subsequent
|
---|
106 | * page. When paginating, all other parameters provided to
|
---|
107 | * `ListInboundSamlSsoProfiles` must match the call that provided the page
|
---|
108 | * token.
|
---|
109 | * @return ListInboundSamlSsoProfilesResponse
|
---|
110 | * @throws \Google\Service\Exception
|
---|
111 | */
|
---|
112 | public function listInboundSamlSsoProfiles($optParams = [])
|
---|
113 | {
|
---|
114 | $params = [];
|
---|
115 | $params = array_merge($params, $optParams);
|
---|
116 | return $this->call('list', [$params], ListInboundSamlSsoProfilesResponse::class);
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * Updates an InboundSamlSsoProfile. When the target customer has enabled
|
---|
120 | * [Multi-party approval for sensitive
|
---|
121 | * actions](https://support.google.com/a/answer/13790448), the `Operation` in
|
---|
122 | * the response will have `"done": false`, it will not have a response, and the
|
---|
123 | * metadata will have `"state": "awaiting-multi-party-approval"`.
|
---|
124 | * (inboundSamlSsoProfiles.patch)
|
---|
125 | *
|
---|
126 | * @param string $name Output only. [Resource
|
---|
127 | * name](https://cloud.google.com/apis/design/resource_names) of the SAML SSO
|
---|
128 | * profile.
|
---|
129 | * @param InboundSamlSsoProfile $postBody
|
---|
130 | * @param array $optParams Optional parameters.
|
---|
131 | *
|
---|
132 | * @opt_param string updateMask Required. The list of fields to be updated.
|
---|
133 | * @return Operation
|
---|
134 | * @throws \Google\Service\Exception
|
---|
135 | */
|
---|
136 | public function patch($name, InboundSamlSsoProfile $postBody, $optParams = [])
|
---|
137 | {
|
---|
138 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
139 | $params = array_merge($params, $optParams);
|
---|
140 | return $this->call('patch', [$params], Operation::class);
|
---|
141 | }
|
---|
142 | }
|
---|
143 |
|
---|
144 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
145 | class_alias(InboundSamlSsoProfiles::class, 'Google_Service_CloudIdentity_Resource_InboundSamlSsoProfiles');
|
---|