Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
/**
* The "customers" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $customers = $cloudidentityService->customers;
* </code>
*/
class Customers extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customers::class, 'Google_Service_CloudIdentity_Resource_Customers');
@@ -0,0 +1,150 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\CancelUserInvitationRequest;
use Google\Service\CloudIdentity\IsInvitableUserResponse;
use Google\Service\CloudIdentity\ListUserInvitationsResponse;
use Google\Service\CloudIdentity\Operation;
use Google\Service\CloudIdentity\SendUserInvitationRequest;
use Google\Service\CloudIdentity\UserInvitation;
/**
* The "userinvitations" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $userinvitations = $cloudidentityService->customers_userinvitations;
* </code>
*/
class CustomersUserinvitations extends \Google\Service\Resource
{
/**
* Cancels a UserInvitation that was already sent. (userinvitations.cancel)
*
* @param string $name Required. `UserInvitation` name in the format
* `customers/{customer}/userinvitations/{user_email_address}`
* @param CancelUserInvitationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelUserInvitationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], Operation::class);
}
/**
* Retrieves a UserInvitation resource. **Note:** New consumer accounts with the
* customer's verified domain created within the previous 48 hours will not
* appear in the result. This delay also applies to newly-verified domains.
* (userinvitations.get)
*
* @param string $name Required. `UserInvitation` name in the format
* `customers/{customer}/userinvitations/{user_email_address}`
* @param array $optParams Optional parameters.
* @return UserInvitation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UserInvitation::class);
}
/**
* Verifies whether a user account is eligible to receive a UserInvitation (is
* an unmanaged account). Eligibility is based on the following criteria: * the
* email address is a consumer account and it's the primary email address of the
* account, and * the domain of the email address matches an existing verified
* Google Workspace or Cloud Identity domain If both conditions are met, the
* user is eligible. **Note:** This method is not supported for Workspace
* Essentials customers. (userinvitations.isInvitableUser)
*
* @param string $name Required. `UserInvitation` name in the format
* `customers/{customer}/userinvitations/{user_email_address}`
* @param array $optParams Optional parameters.
* @return IsInvitableUserResponse
* @throws \Google\Service\Exception
*/
public function isInvitableUser($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('isInvitableUser', [$params], IsInvitableUserResponse::class);
}
/**
* Retrieves a list of UserInvitation resources. **Note:** New consumer accounts
* with the customer's verified domain created within the previous 48 hours will
* not appear in the result. This delay also applies to newly-verified domains.
* (userinvitations.listCustomersUserinvitations)
*
* @param string $parent Required. The customer ID of the Google Workspace or
* Cloud Identity account the UserInvitation resources are associated with.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A query string for filtering
* `UserInvitation` results by their current state, in the format:
* `"state=='invited'"`.
* @opt_param string orderBy Optional. The sort order of the list results. You
* can sort the results in descending order based on either email or last update
* timestamp but not both, using `order_by="email desc"`. Currently, sorting is
* supported for `update_time asc`, `update_time desc`, `email asc`, and `email
* desc`. If not specified, results will be returned based on `email asc` order.
* @opt_param int pageSize Optional. The maximum number of UserInvitation
* resources to return. If unspecified, at most 100 resources will be returned.
* The maximum value is 200; values above 200 will be set to 200.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListUserInvitations` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListBooks` must match the
* call that provided the page token.
* @return ListUserInvitationsResponse
* @throws \Google\Service\Exception
*/
public function listCustomersUserinvitations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUserInvitationsResponse::class);
}
/**
* Sends a UserInvitation to email. If the `UserInvitation` does not exist for
* this request and it is a valid request, the request creates a
* `UserInvitation`. **Note:** The `get` and `list` methods have a 48-hour delay
* where newly-created consumer accounts will not appear in the results. You can
* still send a `UserInvitation` to those accounts if you know the unmanaged
* email address and IsInvitableUser==True. (userinvitations.send)
*
* @param string $name Required. `UserInvitation` name in the format
* `customers/{customer}/userinvitations/{user_email_address}`
* @param SendUserInvitationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function send($name, SendUserInvitationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('send', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersUserinvitations::class, 'Google_Service_CloudIdentity_Resource_CustomersUserinvitations');
@@ -0,0 +1,193 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1Device;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1ListDevicesResponse;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1WipeDeviceRequest;
use Google\Service\CloudIdentity\Operation;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $devices = $cloudidentityService->devices;
* </code>
*/
class Devices extends \Google\Service\Resource
{
/**
* Cancels an unfinished device wipe. This operation can be used to cancel
* device wipe in the gap between the wipe operation returning success and the
* device being wiped. This operation is possible when the device is in a
* "pending wipe" state. The device enters the "pending wipe" state when a wipe
* device command is issued, but has not yet been sent to the device. The cancel
* wipe will fail if the wipe command has already been issued to the device.
* (devices.cancelWipe)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* format: `devices/{device}`, where device is the unique ID assigned to the
* Device.
* @param GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function cancelWipe($name, GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancelWipe', [$params], Operation::class);
}
/**
* Creates a device. Only company-owned device may be created. **Note**: This
* method is available only to customers who have one of the following SKUs:
* Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud
* Identity Premium (devices.create)
*
* @param GoogleAppsCloudidentityDevicesV1Device $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use
* `customers/my_customer` If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create(GoogleAppsCloudidentityDevicesV1Device $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified device. (devices.delete)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* format: `devices/{device}`, where device is the unique ID assigned to the
* Device.
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use
* `customers/my_customer` If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Retrieves the specified device. (devices.get)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* the format: `devices/{device}`, where device is the unique ID assigned to the
* Device.
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Customer in
* the format: `customers/{customer}`, where customer is the customer to whom
* the device belongs. If you're using this API for your own organization, use
* `customers/my_customer`. If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @return GoogleAppsCloudidentityDevicesV1Device
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleAppsCloudidentityDevicesV1Device::class);
}
/**
* Lists/Searches devices. (devices.listDevices)
*
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the customer in
* the format: `customers/{customer}`, where customer is the customer to whom
* the device belongs. If you're using this API for your own organization, use
* `customers/my_customer`. If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @opt_param string filter Optional. Additional restrictions when fetching list
* of devices. For a list of search fields, refer to [Mobile device search
* fields](https://developers.google.com/admin-sdk/directory/v1/search-
* operators). Multiple search fields are separated by the space character.
* @opt_param string orderBy Optional. Order specification for devices in the
* response. Only one of the following field names may be used to specify the
* order: `create_time`, `last_sync_time`, `model`, `os_version`, `device_type`
* and `serial_number`. `desc` may be specified optionally at the end to specify
* results to be sorted in descending order. Default order is ascending.
* @opt_param int pageSize Optional. The maximum number of Devices to return. If
* unspecified, at most 20 Devices will be returned. The maximum value is 100;
* values above 100 will be coerced to 100.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListDevices` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListDevices` must match the
* call that provided the page token.
* @opt_param string view Optional. The view to use for the List request.
* @return GoogleAppsCloudidentityDevicesV1ListDevicesResponse
* @throws \Google\Service\Exception
*/
public function listDevices($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleAppsCloudidentityDevicesV1ListDevicesResponse::class);
}
/**
* Wipes all data on the specified device. (devices.wipe)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* format: `devices/{device}/deviceUsers/{device_user}`, where device is the
* unique ID assigned to the Device, and device_user is the unique ID assigned
* to the User.
* @param GoogleAppsCloudidentityDevicesV1WipeDeviceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function wipe($name, GoogleAppsCloudidentityDevicesV1WipeDeviceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('wipe', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Devices::class, 'Google_Service_CloudIdentity_Resource_Devices');
@@ -0,0 +1,260 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1DeviceUser;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest;
use Google\Service\CloudIdentity\Operation;
/**
* The "deviceUsers" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $deviceUsers = $cloudidentityService->devices_deviceUsers;
* </code>
*/
class DevicesDeviceUsers extends \Google\Service\Resource
{
/**
* Approves device to access user data. (deviceUsers.approve)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* format: `devices/{device}/deviceUsers/{device_user}`, where device is the
* unique ID assigned to the Device, and device_user is the unique ID assigned
* to the User.
* @param GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function approve($name, GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params], Operation::class);
}
/**
* Blocks device from accessing user data (deviceUsers.block)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* format: `devices/{device}/deviceUsers/{device_user}`, where device is the
* unique ID assigned to the Device, and device_user is the unique ID assigned
* to the User.
* @param GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function block($name, GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('block', [$params], Operation::class);
}
/**
* Cancels an unfinished user account wipe. This operation can be used to cancel
* device wipe in the gap between the wipe operation returning success and the
* device being wiped. (deviceUsers.cancelWipe)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* format: `devices/{device}/deviceUsers/{device_user}`, where device is the
* unique ID assigned to the Device, and device_user is the unique ID assigned
* to the User.
* @param GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function cancelWipe($name, GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancelWipe', [$params], Operation::class);
}
/**
* Deletes the specified DeviceUser. This also revokes the user's access to
* device data. (deviceUsers.delete)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* format: `devices/{device}/deviceUsers/{device_user}`, where device is the
* unique ID assigned to the Device, and device_user is the unique ID assigned
* to the User.
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use
* `customers/my_customer` If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Retrieves the specified DeviceUser (deviceUsers.get)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* format: `devices/{device}/deviceUsers/{device_user}`, where device is the
* unique ID assigned to the Device, and device_user is the unique ID assigned
* to the User.
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use
* `customers/my_customer` If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @return GoogleAppsCloudidentityDevicesV1DeviceUser
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleAppsCloudidentityDevicesV1DeviceUser::class);
}
/**
* Lists/Searches DeviceUsers. (deviceUsers.listDevicesDeviceUsers)
*
* @param string $parent Required. To list all DeviceUsers, set this to
* "devices/-". To list all DeviceUsers owned by a device, set this to the
* resource name of the device. Format: devices/{device}
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use
* `customers/my_customer` If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @opt_param string filter Optional. Additional restrictions when fetching list
* of devices. For a list of search fields, refer to [Mobile device search
* fields](https://developers.google.com/admin-sdk/directory/v1/search-
* operators). Multiple search fields are separated by the space character.
* @opt_param string orderBy Optional. Order specification for devices in the
* response.
* @opt_param int pageSize Optional. The maximum number of DeviceUsers to
* return. If unspecified, at most 5 DeviceUsers will be returned. The maximum
* value is 20; values above 20 will be coerced to 20.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListDeviceUsers` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListBooks` must match the call
* that provided the page token.
* @return GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse
* @throws \Google\Service\Exception
*/
public function listDevicesDeviceUsers($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse::class);
}
/**
* Looks up resource names of the DeviceUsers associated with the caller's
* credentials, as well as the properties provided in the request. This method
* must be called with end-user credentials with the scope:
* https://www.googleapis.com/auth/cloud-identity.devices.lookup If multiple
* properties are provided, only DeviceUsers having all of these properties are
* considered as matches - i.e. the query behaves like an AND. Different
* platforms require different amounts of information from the caller to ensure
* that the DeviceUser is uniquely identified. - iOS: No properties need to be
* passed, the caller's credentials are sufficient to identify the corresponding
* DeviceUser. - Android: Specifying the 'android_id' field is required. -
* Desktop: Specifying the 'raw_resource_id' field is required.
* (deviceUsers.lookup)
*
* @param string $parent Must be set to "devices/-/deviceUsers" to search across
* all DeviceUser belonging to the user.
* @param array $optParams Optional parameters.
*
* @opt_param string androidId Android Id returned by [Settings.Secure#ANDROID_I
* D](https://developer.android.com/reference/android/provider/Settings.Secure.h
* tml#ANDROID_ID).
* @opt_param int pageSize The maximum number of DeviceUsers to return. If
* unspecified, at most 20 DeviceUsers will be returned. The maximum value is
* 20; values above 20 will be coerced to 20.
* @opt_param string pageToken A page token, received from a previous
* `LookupDeviceUsers` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `LookupDeviceUsers` must match
* the call that provided the page token.
* @opt_param string rawResourceId Raw Resource Id used by Google Endpoint
* Verification. If the user is enrolled into Google Endpoint Verification, this
* id will be saved as the 'device_resource_id' field in the following platform
* dependent files. * macOS: ~/.secureConnect/context_aware_config.json *
* Windows: %USERPROFILE%\AppData\Local\Google\Endpoint
* Verification\accounts.json * Linux:
* ~/.secureConnect/context_aware_config.json
* @opt_param string userId The user whose DeviceUser's resource name will be
* fetched. Must be set to 'me' to fetch the DeviceUser's resource name for the
* calling user.
* @return GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse
* @throws \Google\Service\Exception
*/
public function lookup($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse::class);
}
/**
* Wipes the user's account on a device. Other data on the device that is not
* associated with the user's work account is not affected. For example, if a
* Gmail app is installed on a device that is used for personal and work
* purposes, and the user is logged in to the Gmail app with their personal
* account as well as their work account, wiping the "deviceUser" by their work
* administrator will not affect their personal account within Gmail or other
* apps such as Photos. (deviceUsers.wipe)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Device in
* format: `devices/{device}/deviceUsers/{device_user}`, where device is the
* unique ID assigned to the Device, and device_user is the unique ID assigned
* to the User.
* @param GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function wipe($name, GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('wipe', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DevicesDeviceUsers::class, 'Google_Service_CloudIdentity_Resource_DevicesDeviceUsers');
@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1ClientState;
use Google\Service\CloudIdentity\GoogleAppsCloudidentityDevicesV1ListClientStatesResponse;
use Google\Service\CloudIdentity\Operation;
/**
* The "clientStates" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $clientStates = $cloudidentityService->devices_deviceUsers_clientStates;
* </code>
*/
class DevicesDeviceUsersClientStates extends \Google\Service\Resource
{
/**
* Gets the client state for the device user (clientStates.get)
*
* @param string $name Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the ClientState
* in format:
* `devices/{device}/deviceUsers/{device_user}/clientStates/{partner}`, where
* `device` is the unique ID assigned to the Device, `device_user` is the unique
* ID assigned to the User and `partner` identifies the partner storing the
* data. To get the client state for devices belonging to your own organization,
* the `partnerId` is in the format: `customerId-*anystring*`. Where the
* `customerId` is your organization's customer ID and `anystring` is any
* suffix. This suffix is used in setting up Custom Access Levels in Context-
* Aware Access. You may use `my_customer` instead of the customer ID for
* devices managed by your own organization. You may specify `-` in place of the
* `{device}`, so the ClientState resource name can be:
* `devices/-/deviceUsers/{device_user_resource}/clientStates/{partner}`.
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use
* `customers/my_customer` If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @return GoogleAppsCloudidentityDevicesV1ClientState
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleAppsCloudidentityDevicesV1ClientState::class);
}
/**
* Lists the client states for the given search query.
* (clientStates.listDevicesDeviceUsersClientStates)
*
* @param string $parent Required. To list all ClientStates, set this to
* "devices/-/deviceUsers/-". To list all ClientStates owned by a DeviceUser,
* set this to the resource name of the DeviceUser. Format:
* devices/{device}/deviceUsers/{deviceUser}
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use
* `customers/my_customer` If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @opt_param string filter Optional. Additional restrictions when fetching list
* of client states.
* @opt_param string orderBy Optional. Order specification for client states in
* the response.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListClientStates` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListClientStates` must match
* the call that provided the page token.
* @return GoogleAppsCloudidentityDevicesV1ListClientStatesResponse
* @throws \Google\Service\Exception
*/
public function listDevicesDeviceUsersClientStates($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleAppsCloudidentityDevicesV1ListClientStatesResponse::class);
}
/**
* Updates the client state for the device user **Note**: This method is
* available only to customers who have one of the following SKUs: Enterprise
* Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity
* Premium (clientStates.patch)
*
* @param string $name Output only. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the ClientState
* in format:
* `devices/{device}/deviceUsers/{device_user}/clientState/{partner}`, where
* partner corresponds to the partner storing the data. For partners belonging
* to the "BeyondCorp Alliance", this is the partner ID specified to you by
* Google. For all other callers, this is a string of the form:
* `{customer}-suffix`, where `customer` is your customer ID. The *suffix* is
* any string the caller specifies. This string will be displayed verbatim in
* the administration console. This suffix is used in setting up Custom Access
* Levels in Context-Aware Access. Your organization's customer ID can be
* obtained from the URL: `GET
* https://www.googleapis.com/admin/directory/v1/customers/my_customer` The `id`
* field in the response contains the customer ID starting with the letter 'C'.
* The customer ID to be used in this API is the string after the letter 'C'
* (not including 'C')
* @param GoogleAppsCloudidentityDevicesV1ClientState $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customer Optional. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use
* `customers/my_customer` If you're using this API to manage another
* organization, use `customers/{customer}`, where customer is the customer to
* whom the device belongs.
* @opt_param string updateMask Optional. Comma-separated list of fully
* qualified names of fields to be updated. If not specified, all updatable
* fields in ClientState are updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleAppsCloudidentityDevicesV1ClientState $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DevicesDeviceUsersClientStates::class, 'Google_Service_CloudIdentity_Resource_DevicesDeviceUsersClientStates');
@@ -0,0 +1,248 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\Group;
use Google\Service\CloudIdentity\ListGroupsResponse;
use Google\Service\CloudIdentity\LookupGroupNameResponse;
use Google\Service\CloudIdentity\Operation;
use Google\Service\CloudIdentity\SearchGroupsResponse;
use Google\Service\CloudIdentity\SecuritySettings;
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $groups = $cloudidentityService->groups;
* </code>
*/
class Groups extends \Google\Service\Resource
{
/**
* Creates a Group. (groups.create)
*
* @param Group $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string initialGroupConfig Optional. The initial configuration
* option for the `Group`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create(Group $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a `Group`. (groups.delete)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the `Group` to
* retrieve. Must be of the form `groups/{group}`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Retrieves a `Group`. (groups.get)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the `Group` to
* retrieve. Must be of the form `groups/{group}`.
* @param array $optParams Optional parameters.
* @return Group
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Group::class);
}
/**
* Get Security Settings (groups.getSecuritySettings)
*
* @param string $name Required. The security settings to retrieve. Format:
* `groups/{group_id}/securitySettings`
* @param array $optParams Optional parameters.
*
* @opt_param string readMask Field-level read mask of which fields to return.
* "*" returns all fields. If not specified, all fields will be returned. May
* only contain the following field: `member_restriction`.
* @return SecuritySettings
* @throws \Google\Service\Exception
*/
public function getSecuritySettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getSecuritySettings', [$params], SecuritySettings::class);
}
/**
* Lists the `Group` resources under a customer or namespace.
* (groups.listGroups)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of results to return. Note that
* the number of results returned may be less than this value even if there are
* more available results. To fetch all results, clients must continue calling
* this method repeatedly until the response no longer contains a
* `next_page_token`. If unspecified, defaults to 200 for `View.BASIC` and to 50
* for `View.FULL`. Must not be greater than 1000 for `View.BASIC` or 500 for
* `View.FULL`.
* @opt_param string pageToken The `next_page_token` value returned from a
* previous list request, if any.
* @opt_param string parent Required. The parent resource under which to list
* all `Group` resources. Must be of the form
* `identitysources/{identity_source}` for external- identity-mapped groups or
* `customers/{customer_id}` for Google Groups. The `customer_id` must begin
* with "C" (for example, 'C046psxkn'). [Find your customer ID.]
* (https://support.google.com/cloudidentity/answer/10070793)
* @opt_param string view The level of detail to be returned. If unspecified,
* defaults to `View.BASIC`.
* @return ListGroupsResponse
* @throws \Google\Service\Exception
*/
public function listGroups($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGroupsResponse::class);
}
/**
* Looks up the [resource
* name](https://cloud.google.com/apis/design/resource_names) of a `Group` by
* its `EntityKey`. (groups.lookup)
*
* @param array $optParams Optional parameters.
*
* @opt_param string groupKey.id The ID of the entity. For Google-managed
* entities, the `id` should be the email address of an existing group or user.
* Email addresses need to adhere to [name guidelines for users and
* groups](https://support.google.com/a/answer/9193374). For external-identity-
* mapped entities, the `id` must be a string conforming to the Identity
* Source's requirements. Must be unique within a `namespace`.
* @opt_param string groupKey.namespace The namespace in which the entity
* exists. If not specified, the `EntityKey` represents a Google-managed entity
* such as a Google user or a Google Group. If specified, the `EntityKey`
* represents an external-identity-mapped group. The namespace must correspond
* to an identity source created in Admin Console and must be in the form of
* `identitysources/{identity_source}`.
* @return LookupGroupNameResponse
* @throws \Google\Service\Exception
*/
public function lookup($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupGroupNameResponse::class);
}
/**
* Updates a `Group`. (groups.patch)
*
* @param string $name Output only. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the `Group`.
* Shall be of the form `groups/{group}`.
* @param Group $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The names of fields to update. May
* only contain the following field names: `display_name`, `description`,
* `labels`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Group $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Searches for `Group` resources matching a specified query. (groups.search)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of results to return. Note that
* the number of results returned may be less than this value even if there are
* more available results. To fetch all results, clients must continue calling
* this method repeatedly until the response no longer contains a
* `next_page_token`. If unspecified, defaults to 200 for `GroupView.BASIC` and
* 50 for `GroupView.FULL`. Must not be greater than 1000 for `GroupView.BASIC`
* or 500 for `GroupView.FULL`.
* @opt_param string pageToken The `next_page_token` value returned from a
* previous search request, if any.
* @opt_param string query Required. The search query. * Must be specified in
* [Common Expression Language](https://opensource.google/projects/cel). * Must
* contain equality operators on the parent, e.g. `parent ==
* 'customers/{customer_id}'`. The `customer_id` must begin with "C" (for
* example, 'C046psxkn'). [Find your customer ID.]
* (https://support.google.com/cloudidentity/answer/10070793) * Can contain
* optional inclusion operators on `labels` such as
* `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can
* contain an optional equality operator on `domain_name`. e.g. `domain_name ==
* 'examplepetstore.com'` * Can contain optional `startsWith/contains/equality`
* operators on `group_key`, e.g. `group_key.startsWith('dev')`,
* `group_key.contains('dev'), group_key == 'dev@examplepetstore.com'` * Can
* contain optional `startsWith/contains/equality` operators on `display_name`,
* such as `display_name.startsWith('dev')` , `display_name.contains('dev')`,
* `display_name == 'dev'`
* @opt_param string view The level of detail to be returned. If unspecified,
* defaults to `View.BASIC`.
* @return SearchGroupsResponse
* @throws \Google\Service\Exception
*/
public function search($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchGroupsResponse::class);
}
/**
* Update Security Settings (groups.updateSecuritySettings)
*
* @param string $name Output only. The resource name of the security settings.
* Shall be of the form `groups/{group_id}/securitySettings`.
* @param SecuritySettings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The fully-qualified names of fields to
* update. May only contain the following field: `member_restriction.query`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateSecuritySettings($name, SecuritySettings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateSecuritySettings', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Groups::class, 'Google_Service_CloudIdentity_Resource_Groups');
@@ -0,0 +1,336 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\CheckTransitiveMembershipResponse;
use Google\Service\CloudIdentity\ListMembershipsResponse;
use Google\Service\CloudIdentity\LookupMembershipNameResponse;
use Google\Service\CloudIdentity\Membership;
use Google\Service\CloudIdentity\ModifyMembershipRolesRequest;
use Google\Service\CloudIdentity\ModifyMembershipRolesResponse;
use Google\Service\CloudIdentity\Operation;
use Google\Service\CloudIdentity\SearchDirectGroupsResponse;
use Google\Service\CloudIdentity\SearchTransitiveGroupsResponse;
use Google\Service\CloudIdentity\SearchTransitiveMembershipsResponse;
/**
* The "memberships" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $memberships = $cloudidentityService->groups_memberships;
* </code>
*/
class GroupsMemberships extends \Google\Service\Resource
{
/**
* Check a potential member for membership in a group. **Note:** This feature is
* only available to Google Workspace Enterprise Standard, Enterprise Plus, and
* Enterprise for Education; and Cloud Identity Premium accounts. If the account
* of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code
* will be returned. A member has membership to a group as long as there is a
* single viewable transitive membership between the group and the member. The
* actor must have view permissions to at least one transitive membership
* between the member and group. (memberships.checkTransitiveMembership)
*
* @param string $parent [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the group to
* check the transitive membership in. Format: `groups/{group}`, where `group`
* is the unique id assigned to the Group to which the Membership belongs to.
* @param array $optParams Optional parameters.
*
* @opt_param string query Required. A CEL expression that MUST include member
* specification. This is a `required` field. Certain groups are uniquely
* identified by both a 'member_key_id' and a 'member_key_namespace', which
* requires an additional query input: 'member_key_namespace'. Example query:
* `member_key_id == 'member_key_id_value'`
* @return CheckTransitiveMembershipResponse
* @throws \Google\Service\Exception
*/
public function checkTransitiveMembership($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('checkTransitiveMembership', [$params], CheckTransitiveMembershipResponse::class);
}
/**
* Creates a `Membership`. (memberships.create)
*
* @param string $parent Required. The parent `Group` resource under which to
* create the `Membership`. Must be of the form `groups/{group}`.
* @param Membership $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Membership $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a `Membership`. (memberships.delete)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the
* `Membership` to delete. Must be of the form
* `groups/{group}/memberships/{membership}`
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Retrieves a `Membership`. (memberships.get)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the
* `Membership` to retrieve. Must be of the form
* `groups/{group}/memberships/{membership}`.
* @param array $optParams Optional parameters.
* @return Membership
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Membership::class);
}
/**
* Get a membership graph of just a member or both a member and a group.
* **Note:** This feature is only available to Google Workspace Enterprise
* Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity
* Premium accounts. If the account of the member is not one of these, a 403
* (PERMISSION_DENIED) HTTP status code will be returned. Given a member, the
* response will contain all membership paths from the member. Given both a
* group and a member, the response will contain all membership paths between
* the group and the member. (memberships.getMembershipGraph)
*
* @param string $parent Required. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the group to
* search transitive memberships in. Format: `groups/{group}`, where `group` is
* the unique ID assigned to the Group to which the Membership belongs to. group
* can be a wildcard collection id "-". When a group is specified, the
* membership graph will be constrained to paths between the member (defined in
* the query) and the parent. If a wildcard collection is provided, all
* membership paths connected to the member will be returned.
* @param array $optParams Optional parameters.
*
* @opt_param string query Required. A CEL expression that MUST include member
* specification AND label(s). Certain groups are uniquely identified by both a
* 'member_key_id' and a 'member_key_namespace', which requires an additional
* query input: 'member_key_namespace'. Example query: `member_key_id ==
* 'member_key_id_value' && in labels`
* @return Operation
* @throws \Google\Service\Exception
*/
public function getMembershipGraph($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('getMembershipGraph', [$params], Operation::class);
}
/**
* Lists the `Membership`s within a `Group`. (memberships.listGroupsMemberships)
*
* @param string $parent Required. The parent `Group` resource under which to
* lookup the `Membership` name. Must be of the form `groups/{group}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of results to return. Note that
* the number of results returned may be less than this value even if there are
* more available results. To fetch all results, clients must continue calling
* this method repeatedly until the response no longer contains a
* `next_page_token`. If unspecified, defaults to 200 for `GroupView.BASIC` and
* to 50 for `GroupView.FULL`. Must not be greater than 1000 for
* `GroupView.BASIC` or 500 for `GroupView.FULL`.
* @opt_param string pageToken The `next_page_token` value returned from a
* previous search request, if any.
* @opt_param string view The level of detail to be returned. If unspecified,
* defaults to `View.BASIC`.
* @return ListMembershipsResponse
* @throws \Google\Service\Exception
*/
public function listGroupsMemberships($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMembershipsResponse::class);
}
/**
* Looks up the [resource
* name](https://cloud.google.com/apis/design/resource_names) of a `Membership`
* by its `EntityKey`. (memberships.lookup)
*
* @param string $parent Required. The parent `Group` resource under which to
* lookup the `Membership` name. Must be of the form `groups/{group}`.
* @param array $optParams Optional parameters.
*
* @opt_param string memberKey.id The ID of the entity. For Google-managed
* entities, the `id` should be the email address of an existing group or user.
* Email addresses need to adhere to [name guidelines for users and
* groups](https://support.google.com/a/answer/9193374). For external-identity-
* mapped entities, the `id` must be a string conforming to the Identity
* Source's requirements. Must be unique within a `namespace`.
* @opt_param string memberKey.namespace The namespace in which the entity
* exists. If not specified, the `EntityKey` represents a Google-managed entity
* such as a Google user or a Google Group. If specified, the `EntityKey`
* represents an external-identity-mapped group. The namespace must correspond
* to an identity source created in Admin Console and must be in the form of
* `identitysources/{identity_source}`.
* @return LookupMembershipNameResponse
* @throws \Google\Service\Exception
*/
public function lookup($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupMembershipNameResponse::class);
}
/**
* Modifies the `MembershipRole`s of a `Membership`.
* (memberships.modifyMembershipRoles)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the
* `Membership` whose roles are to be modified. Must be of the form
* `groups/{group}/memberships/{membership}`.
* @param ModifyMembershipRolesRequest $postBody
* @param array $optParams Optional parameters.
* @return ModifyMembershipRolesResponse
* @throws \Google\Service\Exception
*/
public function modifyMembershipRoles($name, ModifyMembershipRolesRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('modifyMembershipRoles', [$params], ModifyMembershipRolesResponse::class);
}
/**
* Searches direct groups of a member. (memberships.searchDirectGroups)
*
* @param string $parent [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the group to
* search transitive memberships in. Format: groups/{group_id}, where group_id
* is always '-' as this API will search across all groups for a given member.
* @param array $optParams Optional parameters.
*
* @opt_param string orderBy The ordering of membership relation for the display
* name or email in the response. The syntax for this field can be found at
* https://cloud.google.com/apis/design/design_patterns#sorting_order. Example:
* Sort by the ascending display name: order_by="group_name" or
* order_by="group_name asc". Sort by the descending display name:
* order_by="group_name desc". Sort by the ascending group key:
* order_by="group_key" or order_by="group_key asc". Sort by the descending
* group key: order_by="group_key desc".
* @opt_param int pageSize The default page size is 200 (max 1000).
* @opt_param string pageToken The `next_page_token` value returned from a
* previous list request, if any
* @opt_param string query Required. A CEL expression that MUST include member
* specification AND label(s). Users can search on label attributes of groups.
* CONTAINS match ('in') is supported on labels. Identity-mapped groups are
* uniquely identified by both a `member_key_id` and a `member_key_namespace`,
* which requires an additional query input: `member_key_namespace`. Example
* query: `member_key_id == 'member_key_id_value' && 'label_value' in labels`
* @return SearchDirectGroupsResponse
* @throws \Google\Service\Exception
*/
public function searchDirectGroups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('searchDirectGroups', [$params], SearchDirectGroupsResponse::class);
}
/**
* Search transitive groups of a member. **Note:** This feature is only
* available to Google Workspace Enterprise Standard, Enterprise Plus, and
* Enterprise for Education; and Cloud Identity Premium accounts. If the account
* of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code
* will be returned. A transitive group is any group that has a direct or
* indirect membership to the member. Actor must have view permissions all
* transitive groups. (memberships.searchTransitiveGroups)
*
* @param string $parent [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the group to
* search transitive memberships in. Format: `groups/{group}`, where `group` is
* always '-' as this API will search across all groups for a given member.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The default page size is 200 (max 1000).
* @opt_param string pageToken The `next_page_token` value returned from a
* previous list request, if any.
* @opt_param string query Required. A CEL expression that MUST include member
* specification AND label(s). This is a `required` field. Users can search on
* label attributes of groups. CONTAINS match ('in') is supported on labels.
* Identity-mapped groups are uniquely identified by both a `member_key_id` and
* a `member_key_namespace`, which requires an additional query input:
* `member_key_namespace`. Example query: `member_key_id ==
* 'member_key_id_value' && in labels` Query may optionally contain equality
* operators on the parent of the group restricting the search within a
* particular customer, e.g. `parent == 'customers/{customer_id}'`. The
* `customer_id` must begin with "C" (for example, 'C046psxkn'). This filtering
* is only supported for Admins with groups read permissions on the input
* customer. Example query: `member_key_id == 'member_key_id_value' && in labels
* && parent == 'customers/C046psxkn'`
* @return SearchTransitiveGroupsResponse
* @throws \Google\Service\Exception
*/
public function searchTransitiveGroups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('searchTransitiveGroups', [$params], SearchTransitiveGroupsResponse::class);
}
/**
* Search transitive memberships of a group. **Note:** This feature is only
* available to Google Workspace Enterprise Standard, Enterprise Plus, and
* Enterprise for Education; and Cloud Identity Premium accounts. If the account
* of the group is not one of these, a 403 (PERMISSION_DENIED) HTTP status code
* will be returned. A transitive membership is any direct or indirect
* membership of a group. Actor must have view permissions to all transitive
* memberships. (memberships.searchTransitiveMemberships)
*
* @param string $parent [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the group to
* search transitive memberships in. Format: `groups/{group}`, where `group` is
* the unique ID assigned to the Group.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The default page size is 200 (max 1000).
* @opt_param string pageToken The `next_page_token` value returned from a
* previous list request, if any.
* @return SearchTransitiveMembershipsResponse
* @throws \Google\Service\Exception
*/
public function searchTransitiveMemberships($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('searchTransitiveMemberships', [$params], SearchTransitiveMembershipsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupsMemberships::class, 'Google_Service_CloudIdentity_Resource_GroupsMemberships');
@@ -0,0 +1,145 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\InboundSamlSsoProfile;
use Google\Service\CloudIdentity\ListInboundSamlSsoProfilesResponse;
use Google\Service\CloudIdentity\Operation;
/**
* The "inboundSamlSsoProfiles" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $inboundSamlSsoProfiles = $cloudidentityService->inboundSamlSsoProfiles;
* </code>
*/
class InboundSamlSsoProfiles extends \Google\Service\Resource
{
/**
* Creates an InboundSamlSsoProfile for a customer. When the target customer has
* enabled [Multi-party approval for sensitive
* actions](https://support.google.com/a/answer/13790448), the `Operation` in
* the response will have `"done": false`, it will not have a response, and the
* metadata will have `"state": "awaiting-multi-party-approval"`.
* (inboundSamlSsoProfiles.create)
*
* @param InboundSamlSsoProfile $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create(InboundSamlSsoProfile $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an InboundSamlSsoProfile. (inboundSamlSsoProfiles.delete)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the
* InboundSamlSsoProfile to delete. Format:
* `inboundSamlSsoProfiles/{sso_profile_id}`
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets an InboundSamlSsoProfile. (inboundSamlSsoProfiles.get)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the
* InboundSamlSsoProfile to get. Format:
* `inboundSamlSsoProfiles/{sso_profile_id}`
* @param array $optParams Optional parameters.
* @return InboundSamlSsoProfile
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], InboundSamlSsoProfile::class);
}
/**
* Lists InboundSamlSsoProfiles for a customer.
* (inboundSamlSsoProfiles.listInboundSamlSsoProfiles)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter A [Common Expression
* Language](https://github.com/google/cel-spec) expression to filter the
* results. The only supported filter is filtering by customer. For example:
* `customer=="customers/C0123abc"`. Omitting the filter or specifying a filter
* of `customer=="customers/my_customer"` will return the profiles for the
* customer that the caller (authenticated user) belongs to.
* @opt_param int pageSize The maximum number of InboundSamlSsoProfiles to
* return. The service may return fewer than this value. If omitted (or
* defaulted to zero) the server will use a sensible default. This default may
* change over time. The maximum allowed value is 100. Requests with page_size
* greater than that will be silently interpreted as having this maximum value.
* @opt_param string pageToken A page token, received from a previous
* `ListInboundSamlSsoProfiles` call. Provide this to retrieve the subsequent
* page. When paginating, all other parameters provided to
* `ListInboundSamlSsoProfiles` must match the call that provided the page
* token.
* @return ListInboundSamlSsoProfilesResponse
* @throws \Google\Service\Exception
*/
public function listInboundSamlSsoProfiles($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInboundSamlSsoProfilesResponse::class);
}
/**
* Updates an InboundSamlSsoProfile. When the target customer has enabled
* [Multi-party approval for sensitive
* actions](https://support.google.com/a/answer/13790448), the `Operation` in
* the response will have `"done": false`, it will not have a response, and the
* metadata will have `"state": "awaiting-multi-party-approval"`.
* (inboundSamlSsoProfiles.patch)
*
* @param string $name Output only. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the SAML SSO
* profile.
* @param InboundSamlSsoProfile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The list of fields to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, InboundSamlSsoProfile $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InboundSamlSsoProfiles::class, 'Google_Service_CloudIdentity_Resource_InboundSamlSsoProfiles');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\AddIdpCredentialRequest;
use Google\Service\CloudIdentity\IdpCredential;
use Google\Service\CloudIdentity\ListIdpCredentialsResponse;
use Google\Service\CloudIdentity\Operation;
/**
* The "idpCredentials" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $idpCredentials = $cloudidentityService->inboundSamlSsoProfiles_idpCredentials;
* </code>
*/
class InboundSamlSsoProfilesIdpCredentials extends \Google\Service\Resource
{
/**
* Adds an IdpCredential. Up to 2 credentials are allowed. When the target
* customer has enabled [Multi-party approval for sensitive
* actions](https://support.google.com/a/answer/13790448), the `Operation` in
* the response will have `"done": false`, it will not have a response, and the
* metadata will have `"state": "awaiting-multi-party-approval"`.
* (idpCredentials.add)
*
* @param string $parent Required. The InboundSamlSsoProfile that owns the
* IdpCredential. Format: `inboundSamlSsoProfiles/{sso_profile_id}`
* @param AddIdpCredentialRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function add($parent, AddIdpCredentialRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('add', [$params], Operation::class);
}
/**
* Deletes an IdpCredential. (idpCredentials.delete)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the
* IdpCredential to delete. Format:
* `inboundSamlSsoProfiles/{sso_profile_id}/idpCredentials/{idp_credential_id}`
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets an IdpCredential. (idpCredentials.get)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the
* IdpCredential to retrieve. Format:
* `inboundSamlSsoProfiles/{sso_profile_id}/idpCredentials/{idp_credential_id}`
* @param array $optParams Optional parameters.
* @return IdpCredential
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], IdpCredential::class);
}
/**
* Returns a list of IdpCredentials in an InboundSamlSsoProfile.
* (idpCredentials.listInboundSamlSsoProfilesIdpCredentials)
*
* @param string $parent Required. The parent, which owns this collection of
* `IdpCredential`s. Format: `inboundSamlSsoProfiles/{sso_profile_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of `IdpCredential`s to return. The
* service may return fewer than this value.
* @opt_param string pageToken A page token, received from a previous
* `ListIdpCredentials` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListIdpCredentials` must match
* the call that provided the page token.
* @return ListIdpCredentialsResponse
* @throws \Google\Service\Exception
*/
public function listInboundSamlSsoProfilesIdpCredentials($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListIdpCredentialsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InboundSamlSsoProfilesIdpCredentials::class, 'Google_Service_CloudIdentity_Resource_InboundSamlSsoProfilesIdpCredentials');
@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\InboundSsoAssignment;
use Google\Service\CloudIdentity\ListInboundSsoAssignmentsResponse;
use Google\Service\CloudIdentity\Operation;
/**
* The "inboundSsoAssignments" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $inboundSsoAssignments = $cloudidentityService->inboundSsoAssignments;
* </code>
*/
class InboundSsoAssignments extends \Google\Service\Resource
{
/**
* Creates an InboundSsoAssignment for users and devices in a `Customer` under a
* given `Group` or `OrgUnit`. (inboundSsoAssignments.create)
*
* @param InboundSsoAssignment $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create(InboundSsoAssignment $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an InboundSsoAssignment. To disable SSO, Create (or Update) an
* assignment that has `sso_mode` == `SSO_OFF`. (inboundSsoAssignments.delete)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the
* InboundSsoAssignment to delete. Format: `inboundSsoAssignments/{assignment}`
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets an InboundSsoAssignment. (inboundSsoAssignments.get)
*
* @param string $name Required. The [resource
* name](https://cloud.google.com/apis/design/resource_names) of the
* InboundSsoAssignment to fetch. Format: `inboundSsoAssignments/{assignment}`
* @param array $optParams Optional parameters.
* @return InboundSsoAssignment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], InboundSsoAssignment::class);
}
/**
* Lists the InboundSsoAssignments for a `Customer`.
* (inboundSsoAssignments.listInboundSsoAssignments)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter A CEL expression to filter the results. The only
* supported filter is filtering by customer. For example:
* `customer==customers/C0123abc`. Omitting the filter or specifying a filter of
* `customer==customers/my_customer` will return the assignments for the
* customer that the caller (authenticated user) belongs to.
* @opt_param int pageSize The maximum number of assignments to return. The
* service may return fewer than this value. If omitted (or defaulted to zero)
* the server will use a sensible default. This default may change over time.
* The maximum allowed value is 100, though requests with page_size greater than
* that will be silently interpreted as having this maximum value. This may
* increase in the futue.
* @opt_param string pageToken A page token, received from a previous
* `ListInboundSsoAssignments` call. Provide this to retrieve the subsequent
* page. When paginating, all other parameters provided to
* `ListInboundSsoAssignments` must match the call that provided the page token.
* @return ListInboundSsoAssignmentsResponse
* @throws \Google\Service\Exception
*/
public function listInboundSsoAssignments($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInboundSsoAssignmentsResponse::class);
}
/**
* Updates an InboundSsoAssignment. The body of this request is the
* `inbound_sso_assignment` field and the `update_mask` is relative to that. For
* example: a PATCH to
* `/v1/inboundSsoAssignments/0abcdefg1234567&update_mask=rank` with a body of
* `{ "rank": 1 }` moves that (presumably group-targeted) SSO assignment to the
* highest priority and shifts any other group-targeted assignments down in
* priority. (inboundSsoAssignments.patch)
*
* @param string $name Output only. [Resource
* name](https://cloud.google.com/apis/design/resource_names) of the Inbound SSO
* Assignment.
* @param InboundSsoAssignment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The list of fields to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, InboundSsoAssignment $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InboundSsoAssignments::class, 'Google_Service_CloudIdentity_Resource_InboundSsoAssignments');
@@ -0,0 +1,86 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIdentity\Resource;
use Google\Service\CloudIdentity\ListPoliciesResponse;
use Google\Service\CloudIdentity\Policy;
/**
* The "policies" collection of methods.
* Typical usage is:
* <code>
* $cloudidentityService = new Google\Service\CloudIdentity(...);
* $policies = $cloudidentityService->policies;
* </code>
*/
class Policies extends \Google\Service\Resource
{
/**
* Get a Policy (policies.get)
*
* @param string $name Required. The name of the policy to retrieve. Format:
* "policies/{policy}".
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Policy::class);
}
/**
* List Policies (policies.listPolicies)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A CEL expression for filtering the
* results. Policies can be filtered by application with this expression:
* setting.name = 'settings/gmail.*' Policies can be filtered by setting type
* with this expression: setting.name = '*.service_status' A maximum of one of
* the above setting.name clauses can be used. Policies can be filtered by
* customer with this expression: customer = "customers/{customer}" Where
* `customer` is the `id` from the [Admin SDK `Customer`
* resource](https://developers.google.com/admin-
* sdk/directory/reference/rest/v1/customers). You may use
* `customers/my_customer` to specify your own organization. When no customer is
* mentioned it will be default to customers/my_customer. A maximum of one
* customer clause can be used. The above clauses can only be combined together
* in a single filter expression with the `&&` operator.
* @opt_param int pageSize Optional. The maximum number of results to return.
* The service can return fewer than this number. If omitted or set to 0, the
* default is 50 results per page. The maximum allowed value is 100. `page_size`
* values greater than 100 default to 100.
* @opt_param string pageToken Optional. The pagination token received from a
* prior call to PoliciesService.ListPolicies to retrieve the next page of
* results. When paginating, all other parameters provided to
* `ListPoliciesRequest` must match the call that provided the page token.
* @return ListPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listPolicies($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPoliciesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policies::class, 'Google_Service_CloudIdentity_Resource_Policies');