<?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\AndroidDeveloperIDStatus\Resource;

use Google\Service\AndroidDeveloperIDStatus\PackageRegistrationStatus;

/**
 * The "packageRegistrationStatus" collection of methods.
 * Typical usage is:
 *  <code>
 *   $androiddeveloperidstatusService = new Google\Service\AndroidDeveloperIDStatus(...);
 *   $packageRegistrationStatus = $androiddeveloperidstatusService->packages_packageRegistrationStatus;
 *  </code>
 */
class PackagesPackageRegistrationStatus extends \Google\Service\Resource
{
  /**
   * Retrieves the Android Developer ID registration status for a given package.
   * (packageRegistrationStatus.check)
   *
   * @param string $name Required. The name of the package registration status
   * resource. Format: packages/{package}/packageRegistrationStatus `{package}`
   * must follow the specific format: The fully-qualified Android package name
   * with dots ('.') replaced by hyphens ('-') (e.g., `com-example-app` instead of
   * `com.example.app`).
   * @param array $optParams Optional parameters.
   *
   * @opt_param string certificateFingerprint Optional. The SHA-256 fingerprint of
   * the public certificate represented as a 64-character lowercase hexadecimal
   * string without any colons or separators (e.g.,
   * `d6ac89ed1d0a805aad4b087d06d5f41645b814480b133fbc867ef7498d069e06`).
   * @return PackageRegistrationStatus
   * @throws \Google\Service\Exception
   */
  public function check($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('check', [$params], PackageRegistrationStatus::class);
  }
}

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